setup-cpp/dist/modern/setup-cpp.js

42 lines
248 KiB
JavaScript

#!/usr/bin/env node
let e,t,r,n,i,o,s,a;var l,c,u,p,d,f=require("os"),h=require("path"),m=require("fs"),g=require("crypto"),v=require("http"),E=require("https");require("net");var y=require("tls"),w=require("events"),x=require("assert"),b=require("util"),S=require("fs"),I=require("child_process"),R=require("string_decoder"),O=require("timers"),$=require("buffer"),T=require("stream"),C=require("process"),A=require("buffer"),_=require("path"),P=require("child_process"),N=require("process"),L=require("url"),D=require("os"),k=require("util"),U=require("url"),j=require("console");function M(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function F(e){return e&&e.__esModule?e.default:e;}var G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},B={},H={},V=G.parcelRequire810d;null==V&&((V=function(e){if(e in B)return B[e].exports;if(e in H){var t=H[e];delete H[e];var r={id:e,exports:{}};return B[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){H[e]=t;},G.parcelRequire810d=V),V.register("dTX7a",function(e,t){var r=V("gjIAX");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));}),V.register("gjIAX",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"}]');}),V.register("ER74K",function(e,t){M(e.exports,"error",()=>i),M(e.exports,"success",()=>o),M(e.exports,"warning",()=>s),M(e.exports,"notice",()=>a),M(e.exports,"info",()=>l);var r=V("lcRzN"),n=V("dTX7a");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 l(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}}),V.register("lcRzN",function(e,t){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{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((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 l=V("17SLf"),c=V("7PXQQ"),u=V("6L1x9");let p=s(f),d=s(h);var m=V("5n2X4");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={}){l.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e);}function E(e){l.issue("group",e);}function y(){l.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 c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t));l.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){l.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){let t=process.env.GITHUB_PATH||"";t?c.issueFileCommand("PATH",e):l.issueCommand("add-path",{},e),process.env.PATH=`${e}${d.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 c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t));process.stdout.write(p.EOL),l.issueCommand("set-output",{name:e},u.toCommandValue(t));},e.exports.setCommandEcho=function(e){l.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){l.issueCommand("debug",{},e);},e.exports.error=v,e.exports.warning=function(e,t={}){l.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){l.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+p.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 c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t));l.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 m.OidcClient.getIDToken(e);});};var w=V("4rwlm");Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return w.summary;}});var w=V("4rwlm");Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return w.markdownSummary;}});var x=V("3jp5d");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;}});}),V.register("17SLf",function(e,t){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(f);var s=V("6L1x9");function a(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+o.EOL);}e.exports.issueCommand=a,e.exports.issue=function(e,t=""){a(e,{},t);};class l{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"))}`;}}}),V.register("6L1x9",function(e,t){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}:{};};}),V.register("7PXQQ",function(e,t){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(f);var a=V("4dndm"),l=V("6L1x9");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,`${l.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r=`ghadelimiter_${a.default()}`,n=l.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}`;};}),V.register("4dndm",function(e,t){M(e.exports,"default",()=>i);var r=V("5SVBN"),n=V("38Etc"),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);};}),V.register("5SVBN",function(e,t){M(e.exports,"default",()=>i);let r=new Uint8Array(256),n=r.length;function i(){return n>r.length-16&&(F(g).randomFillSync(r),n=0),r.slice(n,n+=16);}}),V.register("38Etc",function(e,t){M(e.exports,"default",()=>i);var r=V("f9HAa");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;};}),V.register("f9HAa",function(e,t){M(e.exports,"default",()=>n);var r=V("bpRYF"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),V.register("bpRYF",function(e,t){M(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;}),V.register("5n2X4",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=V("3bels"),i=V("8GCMm"),o=V("lcRzN");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;}),V.register("3bels",function(e,t){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];}),l=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),c=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 l(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{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((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 p=c(v),d=c(E),f=c(V("ht6Lg")),h=c(V("eYDoL"));(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 m=[i.MovedPermanently,i.ResourceMoved,i.SeeOther,i.TemporaryRedirect,i.PermanentRedirect],g=[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),l=this._allowRetries&&y.includes(e)?this._maxRetries+1:1,c=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&&m.includes(o.message.statusCode)&&this._allowRedirects&&t>0;){let i=o.message.headers.location;if(!i)break;let l=new URL(i);if("https:"===s.protocol&&s.protocol!==l.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(),l.hostname!==s.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,l,n),o=yield this.requestRaw(a,r),t--;}if(!o.message.statusCode||!g.includes(o.message.statusCode))break;(c+=1)<l&&(yield o.readBody(),yield this._performExponentialBackoff(c));}while(c<l);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?d:p,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||p.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?h.httpsOverHttps:h.httpsOverHttp:n?h.httpOverHttps:h.httpOverHttp)(e),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.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,l={statusCode:a,result:null,headers:{}};a===i.NotFound&&r(l);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),l.result=o),l.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=l.result,n(t);}else r(l);}));});}};let b=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),V.register("ht6Lg",function(e,t){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;}),V.register("eYDoL",function(e,t){e.exports=V("gBbBa");}),V.register("gBbBa",function(e,t){var r,n,i,o,s,a;function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||v.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 l=t.requests[s];if(l.host===o.host&&l.port===o.port){t.requests.splice(s,1),l.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function c(e,t){var r=this;l.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=p({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=y.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 p(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;}M(e.exports,"httpOverHttp",()=>r,e=>r=e),M(e.exports,"httpsOverHttp",()=>n,e=>n=e),M(e.exports,"httpOverHttps",()=>i,e=>i=e),M(e.exports,"httpsOverHttps",()=>o,e=>o=e),M(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new l(e);return t.request=v.request,t;},n=function(e){var t=new l(e);return t.request=v.request,t.createSocket=c,t.defaultPort=443,t;},i=function(e){var t=new l(e);return t.request=E.request,t;},o=function(e){var t=new l(e);return t.request=E.request,t.createSocket=c,t.defaultPort=443,t;},b.inherits(l,w.EventEmitter),l.prototype.addRequest=function(e,t,r,n){var i=this,o=p({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);});},l.prototype.createSocket=function(e,t){var r=this,n={};r.sockets.push(n);var i=p({},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,l){if(o.removeAllListeners(),s.removeAllListeners(),200!==i.statusCode){a("tunneling socket could not be established, statusCode=%d",i.statusCode),s.destroy();var c=Error("tunneling socket could not be established, statusCode="+i.statusCode);c.code="ECONNRESET",e.request.emit("error",c),r.removeSocket(n);return;}if(l.length>0){a("got illegal response body from proxy"),s.destroy();var c=Error("got illegal response body from proxy");c.code="ECONNRESET",e.request.emit("error",c),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();},l.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(){};}),V.register("8GCMm",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((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");});}};}),V.register("4rwlm",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((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(f.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;}),V.register("3jp5d",function(e,t){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(h);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);};}),V.register("fXZh0",function(e,t){var r=h.resolve(__dirname,"../../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){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);}),V.register("25uEY",function(e,t){var r=V("ggaxg"),n=V("crMMK");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,l){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 l=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),c=[];for(let e of l){let[t,n]=e;if(n>0&&c.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)),c.length>=o.span)break;}return c.join(o.delimiter);}(t,o,l=Object.assign({},e,l||{}));}};},addLocale:a,defaultConfig:o};}),V.register("ggaxg",function(e,t){e.exports=V("fXZh0");}),V.register("crMMK",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),V.register("a3PNV",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);};}),V.register("7gw6J",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,l;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),l=parseInt("010",8),r&parseInt("001",8)||r&l&&i===s||r&a&&n===o||r&(a|l)&&0===o);}e.exports=r,r.sync=function(e,t){return n(m.statSync(e),t);};}),V.register("1YMV0",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");}),V.register("lJEXJ",function(e,t){var r=V("fB52W"),n=V("juUXZ"),i=V("kxoMX"),o=V("eT4Gq"),s=V("6moLM"),a=V("eJTZB"),l=V("e3PGr"),c=V("dqKDW"),u=V("gPIs5"),p=V("bX9Em"),d=V("iAJEE"),f=V("fHTYs"),h=V("8PQ4n"),m=V("3Z6CK"),g=V("6WviK"),v=V("8cCiP"),E=V("2JTVo"),y=V("bizdR"),w=V("2lHfL"),x=V("9XGBY"),b=V("2zuiw"),S=V("bDcXu"),I=V("lvpAe"),R=V("1um22"),O=V("1ndHP"),$=V("7Dt1t"),T=V("9hSY8"),C=V("ge7Lx"),A=V("gBfHp"),_=V("gxgIF"),P=V("eRxC5"),N=V("aWpPt"),L=V("gGB3p"),D=V("hnV3l"),k=V("3sVLb"),U=V("iqmnd"),j=V("bl7vX"),M=V("1K9I5"),F=V("2qx0f"),G=V("k8BEA"),B=V("4B26j");e.exports={parse:s,valid:a,clean:l,inc:c,diff:u,major:p,minor:d,patch:f,prerelease:h,compare:m,rcompare:g,compareLoose:v,compareBuild:E,sort:y,rsort:w,gt:x,lt:b,eq:S,neq:I,gte:R,lte:O,cmp:$,coerce:T,Comparator:C,Range:A,satisfies:_,toComparators:P,maxSatisfying:N,minSatisfying:L,minVersion:D,validRange:k,outside:U,gtr:j,ltr:M,intersects:F,simplifyRange:G,subset:B,SemVer:i,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers};}),V.register("fB52W",function(e,t){var r=V("juUXZ"),n=r.MAX_SAFE_COMPONENT_LENGTH,i=r.MAX_SAFE_BUILD_LENGTH,o=r.MAX_LENGTH,s=V("3Zcn3");t=e.exports={};let a=t.re=[],l=t.safeRe=[],c=t.src=[],u=t.t={},p=0,d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[d,i]],h=e=>{for(let[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=p++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),m("COERCERTL",c[u.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),V.register("juUXZ",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,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};}),V.register("3Zcn3",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;}),V.register("kxoMX",function(e,t){var r=V("3Zcn3"),n=V("juUXZ"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=V("fB52W"),a=s.safeRe,l=s.t,c=V("ifDVe"),u=V("eT4Gq").compareIdentifiers;class p{constructor(e,t){if(t=c(t),e instanceof p){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[l.LOOSE]:a[l.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 p)){if("string"==typeof e&&e===this.version)return 0;e=new p(e,this.options);}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e);}compareMain(e){return e instanceof p||(e=new p(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch);}comparePre(e){if(e instanceof p||(e=new p(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 p||(e=new p(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.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this;}}e.exports=p;}),V.register("ifDVe",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),V.register("eT4Gq",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)};}),V.register("6moLM",function(e,t){var r=V("kxoMX");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;}};}),V.register("eJTZB",function(e,t){var r=V("6moLM");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),V.register("e3PGr",function(e,t){var r=V("6moLM");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),V.register("dqKDW",function(e,t){var r=V("kxoMX");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),V.register("gPIs5",function(e,t){var r=V("6moLM");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length,u=!!l.prerelease.length;if(u&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let p=c?"pre":"";return n.major!==i.major?p+"major":n.minor!==i.minor?p+"minor":n.patch!==i.patch?p+"patch":"prerelease";};}),V.register("bX9Em",function(e,t){var r=V("kxoMX");e.exports=(e,t)=>new r(e,t).major;}),V.register("iAJEE",function(e,t){var r=V("kxoMX");e.exports=(e,t)=>new r(e,t).minor;}),V.register("fHTYs",function(e,t){var r=V("kxoMX");e.exports=(e,t)=>new r(e,t).patch;}),V.register("8PQ4n",function(e,t){var r=V("6moLM");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),V.register("3Z6CK",function(e,t){var r=V("kxoMX");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),V.register("6WviK",function(e,t){var r=V("3Z6CK");e.exports=(e,t,n)=>r(t,e,n);}),V.register("8cCiP",function(e,t){var r=V("3Z6CK");e.exports=(e,t)=>r(e,t,!0);}),V.register("2JTVo",function(e,t){var r=V("kxoMX");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),V.register("bizdR",function(e,t){var r=V("2JTVo");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),V.register("2lHfL",function(e,t){var r=V("2JTVo");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),V.register("9XGBY",function(e,t){var r=V("3Z6CK");e.exports=(e,t,n)=>r(e,t,n)>0;}),V.register("2zuiw",function(e,t){var r=V("3Z6CK");e.exports=(e,t,n)=>0>r(e,t,n);}),V.register("bDcXu",function(e,t){var r=V("3Z6CK");e.exports=(e,t,n)=>0===r(e,t,n);}),V.register("lvpAe",function(e,t){var r=V("3Z6CK");e.exports=(e,t,n)=>0!==r(e,t,n);}),V.register("1um22",function(e,t){var r=V("3Z6CK");e.exports=(e,t,n)=>r(e,t,n)>=0;}),V.register("1ndHP",function(e,t){var r=V("3Z6CK");e.exports=(e,t,n)=>0>=r(e,t,n);}),V.register("7Dt1t",function(e,t){var r=V("bDcXu"),n=V("lvpAe"),i=V("9XGBY"),o=V("1um22"),s=V("2zuiw"),a=V("1ndHP");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return n(e,l,c);case">":return i(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw TypeError(`Invalid operator: ${t}`);}};}),V.register("9hSY8",function(e,t){var r=V("kxoMX"),n=V("6moLM"),i=V("fB52W"),o=i.safeRe,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);};}),V.register("ge7Lx",function(e,t){let r=Symbol("SemVer ANY");class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this);}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=V("ifDVe"),o=V("fB52W"),s=o.safeRe,a=o.t,l=V("7Dt1t"),c=V("3Zcn3"),u=V("kxoMX"),p=V("gBfHp");}),V.register("gBfHp",function(e,t){class r{constructor(e,t){if(t=o(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!E(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=(this.options.includePrerelease&&g)|(this.options.loose&&v),r=t+":"+e,n=i.get(r);if(n)return n;let o=this.options.loose,l=o?u[p.HYPHENRANGELOOSE]:u[p.HYPHENRANGE];a("hyphen replace",e=e.replace(l,_(this.options.includePrerelease))),a("comparator trim",e=e.replace(u[p.COMPARATORTRIM],d)),a("tilde trim",e=e.replace(u[p.TILDETRIM],f)),a("caret trim",e=e.replace(u[p.CARETTRIM],h));let c=e.split(" ").map(e=>x(e,this.options)).join(" ").split(/\s+/).map(e=>A(e,this.options));o&&(c=c.filter(e=>(a("loose invalid filter",e,this.options),!!e.match(u[p.COMPARATORLOOSE])))),a("range list",c);let m=new Map(),y=c.map(e=>new s(e,this.options));for(let e of y){if(E(e))return[e];m.set(e.value,e);}m.size>1&&m.has("")&&m.delete("");let w=[...m.values()];return i.set(r,w),w;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>w(r,t)&&e.set.some(e=>w(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options);}catch(e){return!1;}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1;}}e.exports=r;var n=V("l6u7r");let i=new n({max:1e3});var o=V("ifDVe"),s=V("ge7Lx"),a=V("3Zcn3"),l=V("kxoMX"),c=V("fB52W"),u=c.safeRe,p=c.t,d=c.comparatorTrimReplace,f=c.tildeTrimReplace,h=c.caretTrimReplace,m=V("juUXZ"),g=m.FLAG_INCLUDE_PRERELEASE,v=m.FLAG_LOOSE;let E=e=>"<0.0.0-0"===e.value,y=e=>""===e.value,w=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},x=(e,t)=>(a("comp",e,t),e=R(e,t),a("caret",e),e=S(e,t),a("tildes",e),e=$(e,t),a("xrange",e),e=C(e,t),a("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map(e=>I(e,t)).join(" "),I=(e,t)=>{let r=t.loose?u[p.TILDELOOSE]:u[p.TILDE];return e.replace(r,(t,r,n,i,o)=>{let s;return a("tilde",e,t,r,n,i,o),b(r)?s="":b(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",s),s;});},R=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(" "),O=(e,t)=>{a("caret",e,t);let r=t.loose?u[p.CARETLOOSE]:u[p.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,s)=>{let l;return a("caret",e,t,r,i,o,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),a("caret return",l),l;});},$=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map(e=>T(e,t)).join(" ")),T=(e,t)=>{e=e.trim();let r=t.loose?u[p.XRANGELOOSE]:u[p.XRANGE];return e.replace(r,(r,n,i,o,s,l)=>{a("xRange",e,r,n,i,o,s,l);let c=b(i),u=c||b(o),p=u||b(s);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),s=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${s}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",r),r;});},C=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[p.STAR],"")),A=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?p.GTE0PRE:p.GTE0],"")),_=e=>(t,r,n,i,o,s,a,l,c,u,p,d,f)=>`${r=b(n)?"":b(i)?`>=${n}.0.0${e?"-0":""}`:b(o)?`>=${n}.${i}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:`<=${l}`}`.trim(),P=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(a(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),V.register("l6u7r",function(e,t){var r=V("hDmTp");let n=Symbol("max"),i=Symbol("length"),o=Symbol("lengthCalculator"),s=Symbol("allowStale"),a=Symbol("maxAge"),l=Symbol("dispose"),c=Symbol("noDisposeOnSet"),u=Symbol("lruList"),p=Symbol("cache"),d=Symbol("updateAgeOnGet"),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(v(e,n),!e[s])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a];},g=e=>{if(e[i]>e[n])for(let t=e[u].tail;e[i]>e[n]&&null!==t;){let r=t.prev;v(e,t),t=r;}},v=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[u].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let y=(e,t,r,n)=>{let i=r.value;m(e,i)&&(v(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,g(this);}get max(){return this[n];}set allowStale(e){this[s]=!!e;}get allowStale(){return this[s];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[a]=e,g(this);}get maxAge(){return this[a];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),g(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[u].length;}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){let n=r.prev;y(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){let n=r.next;y(this,e,r,t),r=n;}}keys(){return this[u].toArray().map(e=>e.key);}values(){return this[u].toArray().map(e=>e.value);}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[u]=new r(),this[i]=0;}dump(){return this[u].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[u];}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let s=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return v(this,this[p].get(e)),!1;let o=this[p].get(e),a=o.value;return this[l]&&!this[c]&&this[l](e,a.value),a.now=s,a.maxAge=r,a.value=t,this[i]+=d-a.length,a.length=d,this.get(e),g(this),!0;}let f=new E(e,t,d,s,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[p].set(e,this[u].head),g(this),!0);}has(e){if(!this[p].has(e))return!1;let t=this[p].get(e).value;return!m(this,t);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[u].tail;return e?(v(this,e),e.value):null;}del(e){v(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),V.register("hDmTp",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;t<r;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;t<r;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(var s=[],i=0;o&&i<t;i++)s.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var i=0;i<r.length;i++)o=function(e,t,r){var i=t===e.head?new n(r,null,t,e):new n(r,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i;}(this,o,r[i]);return s;},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n;}return this.head=t,this.tail=e,this;};try{V("hSPNO")(r);}catch(e){}}),V.register("hSPNO",function(e,t){e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value;};};}),V.register("gxgIF",function(e,t){var r=V("gBfHp");e.exports=(e,t,n)=>{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),V.register("eRxC5",function(e,t){var r=V("gBfHp");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),V.register("aWpPt",function(e,t){var r=V("kxoMX"),n=V("gBfHp");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(o=e,s=new r(o,i));}),o;};}),V.register("gGB3p",function(e,t){var r=V("kxoMX"),n=V("gBfHp");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(o=e,s=new r(o,i));}),o;};}),V.register("hnV3l",function(e,t){var r=V("kxoMX"),n=V("gBfHp"),i=V("9XGBY");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t<e.set.length;++t){let n=e.set[t],s=null;n.forEach(e=>{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`);}}),s&&(!o||i(o,s))&&(o=s);}return o&&e.test(o)?o:null;};}),V.register("3sVLb",function(e,t){var r=V("gBfHp");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),V.register("iqmnd",function(e,t){var r=V("kxoMX"),n=V("ge7Lx");let{ANY:i}=n;var o=V("gBfHp"),s=V("gxgIF"),a=V("9XGBY"),l=V("2zuiw"),c=V("1ndHP"),u=V("1um22");e.exports=(e,t,p,d)=>{let f,h,m,g,v;switch(e=new r(e,d),t=new o(t,d),p){case">":f=a,h=c,m=l,g=">",v=">=";break;case"<":f=l,h=u,m=a,g="<",v="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,d))return!1;for(let r=0;r<t.set.length;++r){let o=t.set[r],s=null,a=null;if(o.forEach(e=>{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e);}),s.operator===g||s.operator===v||(!a.operator||a.operator===g)&&h(e,a.semver)||a.operator===v&&m(e,a.semver))return!1;}return!0;};}),V.register("bl7vX",function(e,t){var r=V("iqmnd");e.exports=(e,t,n)=>r(e,t,">",n);}),V.register("1K9I5",function(e,t){var r=V("iqmnd");e.exports=(e,t,n)=>r(e,t,"<",n);}),V.register("2qx0f",function(e,t){var r=V("gBfHp");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),V.register("k8BEA",function(e,t){var r=V("gxgIF"),n=V("3Z6CK");e.exports=(e,t,i)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l){let n=r(e,t,i);n?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);}s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");let u=c.join(" || "),p="string"==typeof t.raw?t.raw:String(t);return u.length<p.length?u:t;};}),V.register("4B26j",function(e,t){var r=V("gBfHp"),n=V("ge7Lx");let{ANY:i}=n;var o=V("gxgIF"),s=V("3Z6CK");let a=[new n(">=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,d,f,h,m,g;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let v=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=p(c,t,r):v.add(t.semver);if(v.size>1||n&&c&&((d=s(n.semver,c.semver,r))>0||0===d&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of v){if(n&&!o(e,String(n),r)||c&&!o(e,String(c),r))return null;for(let n of t)if(!o(e,String(n),r))return!1;return!0;}let E=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,y=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===c.operator&&0===E.prerelease[0]&&(E=!1),t)){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if((f=u(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,String(e),r))return!1;}if(c){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if((h=p(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,String(e),r))return!1;}if(!e.operator&&(c||n)&&0!==d)return!1;}return(!n||!m||!!c||0===d)&&(!c||!g||!!n||0===d)&&!y&&!E;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),V.register("awj79",function(e,t){var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(r,"\\$&");};}),V.register("dOmbL",function(e,t){M(e.exports,"pathExists",()=>r);async function r(e){try{return await(0,S.promises).access(e),!0;}catch{return!1;}}}),V.register("ceI0e",function(e,t){M(e.exports,"addExeExt",()=>l),M(e.exports,"addShExt",()=>p),M(e.exports,"addShRelativePrefix",()=>d),M(e.exports,"dirname",()=>h.dirname),M(e.exports,"join",()=>h.join);var r=V("9ag04"),n=V("923E2");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,h.basename)(e):(0,h.basename)(e,(0,h.extname)(e));}function a(e){return(0,h.normalize)(e).replace(RegExp((0,r.default)(h.sep)+"$"),"");}function l(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function c(e,t){let r=(0,h.extname)(e),n=`${t}${(0,h.basename)(e,r)}${r}`;return(0,h.join)((0,h.dirname)(e),n);}function u(e,t){let r=(0,h.extname)(e),n=`${(0,h.basename)(e,r)}${t}${r}`;return(0,h.join)((0,h.dirname)(e),n);}function p(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function d(e){return"win32"===process.platform?e:"./"+e;}function f(e){let t=(0,h.extname)(e).length;return e.slice(0,-t);}function m(e,t){return F(n)(e,t);}function g(e,t){let r=(0,h.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+h.sep)||r===(0,h.resolve)(e));}var v={},E={};o(E,"name",()=>s);var y={};o(y,"normalizeTrim",()=>a);var w={};o(w,"addExeExt",()=>l);var x={};o(x,"addNamePrefix",()=>c);var b={};o(b,"addNameSuffix",()=>u);var S={};o(S,"addShExt",()=>p);var I={};o(I,"addShRelativePrefix",()=>d);var R={};o(R,"removeExt",()=>f);var O={};o(O,"replaceExt",()=>m);var $={};o($,"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,R),i(v,O),i(v,$);}),V.register("9ag04",function(e,t){M(e.exports,"default",()=>r);function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}}),V.register("923E2",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=h.basename(e,h.extname(e))+t,i=h.join(h.dirname(e),n);return(r=e.slice(0,2))==="."+h.sep||"./"===r?"."+h.sep+i:i;};}),V.register("fcBgE",function(e,t){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{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((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(h),a=i(V("ejt9m"));function l(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 c(e){return o(this,void 0,void 0,function*(){x.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 p(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:l}=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 d=u&&u.isDirectory()&&l?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 c(r);let o=yield a.readdir(t);for(let s of o){let o=`${t}/${s}`,l=`${r}/${s}`,c=yield a.lstat(o);c.isDirectory()?yield e(o,l,n,i):yield p(o,l,i);}yield a.chmod(r,(yield a.stat(t)).mode);});}(e,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===s.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield p(e,d,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 l(t);else throw Error("Destination already exists");}}yield c(s.dirname(t)),yield a.rename(e,t);});},e.exports.rmRF=l,e.exports.mkdirP=c,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;}),V.register("ejt9m",function(e,t){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{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((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),l=o(h);function c(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=l.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(c(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=l.dirname(t),n=l.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=l.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(c(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),V.register("ktIRP",function(e,t){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{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((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(V("aNgTs"));var a=V("lcRzN");e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=f.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)&&(c=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}`),l=o;break;}}return l&&c&&((o=Object.assign({},l)).files=[c]),o;});},e.exports._getOsVersion=function(){let t=f.platform(),r="";if("darwin"===t)r=I.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;};}),V.register("aNgTs",function(e,t){t=e.exports=m,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.safeRe=[],s=t.src=[],a=t.tokens={},l=0;function c(e){a[e]=l++;}var u="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",256],[u,250]];function d(e){for(var t=0;t<p.length;t++){var r=p[t][0],n=p[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}");}return e;}c("NUMERICIDENTIFIER"),s[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),s[a.NUMERICIDENTIFIERLOOSE]="\\d+",c("NONNUMERICIDENTIFIER"),s[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+u+"*",c("MAINVERSION"),s[a.MAINVERSION]="("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")\\.("+s[a.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),s[a.MAINVERSIONLOOSE]="("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")\\.("+s[a.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),s[a.PRERELEASEIDENTIFIER]="(?:"+s[a.NUMERICIDENTIFIER]+"|"+s[a.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),s[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+s[a.NUMERICIDENTIFIERLOOSE]+"|"+s[a.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),s[a.PRERELEASE]="(?:-("+s[a.PRERELEASEIDENTIFIER]+"(?:\\."+s[a.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),s[a.PRERELEASELOOSE]="(?:-?("+s[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+s[a.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),s[a.BUILDIDENTIFIER]=u+"+",c("BUILD"),s[a.BUILD]="(?:\\+("+s[a.BUILDIDENTIFIER]+"(?:\\."+s[a.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),s[a.FULLPLAIN]="v?"+s[a.MAINVERSION]+s[a.PRERELEASE]+"?"+s[a.BUILD]+"?",s[a.FULL]="^"+s[a.FULLPLAIN]+"$",c("LOOSEPLAIN"),s[a.LOOSEPLAIN]="[v=\\s]*"+s[a.MAINVERSIONLOOSE]+s[a.PRERELEASELOOSE]+"?"+s[a.BUILD]+"?",c("LOOSE"),s[a.LOOSE]="^"+s[a.LOOSEPLAIN]+"$",c("GTLT"),s[a.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),s[a.XRANGEIDENTIFIERLOOSE]=s[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),s[a.XRANGEIDENTIFIER]=s[a.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),s[a.XRANGEPLAIN]="[v=\\s]*("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:\\.("+s[a.XRANGEIDENTIFIER]+")(?:"+s[a.PRERELEASE]+")?"+s[a.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),s[a.XRANGEPLAINLOOSE]="[v=\\s]*("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+s[a.XRANGEIDENTIFIERLOOSE]+")(?:"+s[a.PRERELEASELOOSE]+")?"+s[a.BUILD]+"?)?)?",c("XRANGE"),s[a.XRANGE]="^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAIN]+"$",c("XRANGELOOSE"),s[a.XRANGELOOSE]="^"+s[a.GTLT]+"\\s*"+s[a.XRANGEPLAINLOOSE]+"$",c("COERCE"),s[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),i[a.COERCERTL]=RegExp(s[a.COERCE],"g"),o[a.COERCERTL]=RegExp(d(s[a.COERCE]),"g"),c("LONETILDE"),s[a.LONETILDE]="(?:~>?)",c("TILDETRIM"),s[a.TILDETRIM]="(\\s*)"+s[a.LONETILDE]+"\\s+",i[a.TILDETRIM]=RegExp(s[a.TILDETRIM],"g"),o[a.TILDETRIM]=RegExp(d(s[a.TILDETRIM]),"g"),c("TILDE"),s[a.TILDE]="^"+s[a.LONETILDE]+s[a.XRANGEPLAIN]+"$",c("TILDELOOSE"),s[a.TILDELOOSE]="^"+s[a.LONETILDE]+s[a.XRANGEPLAINLOOSE]+"$",c("LONECARET"),s[a.LONECARET]="(?:\\^)",c("CARETTRIM"),s[a.CARETTRIM]="(\\s*)"+s[a.LONECARET]+"\\s+",i[a.CARETTRIM]=RegExp(s[a.CARETTRIM],"g"),o[a.CARETTRIM]=RegExp(d(s[a.CARETTRIM]),"g"),c("CARET"),s[a.CARET]="^"+s[a.LONECARET]+s[a.XRANGEPLAIN]+"$",c("CARETLOOSE"),s[a.CARETLOOSE]="^"+s[a.LONECARET]+s[a.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),s[a.COMPARATORLOOSE]="^"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),s[a.COMPARATOR]="^"+s[a.GTLT]+"\\s*("+s[a.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),s[a.COMPARATORTRIM]="(\\s*)"+s[a.GTLT]+"\\s*("+s[a.LOOSEPLAIN]+"|"+s[a.XRANGEPLAIN]+")",i[a.COMPARATORTRIM]=RegExp(s[a.COMPARATORTRIM],"g"),o[a.COMPARATORTRIM]=RegExp(d(s[a.COMPARATORTRIM]),"g"),c("HYPHENRANGE"),s[a.HYPHENRANGE]="^\\s*("+s[a.XRANGEPLAIN]+")\\s+-\\s+("+s[a.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),s[a.HYPHENRANGELOOSE]="^\\s*("+s[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+s[a.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),s[a.STAR]="(<|>)?=?\\s*\\*";for(var f=0;f<l;f++)r(f,s[f]),i[f]||(i[f]=new RegExp(s[f]),o[f]=new RegExp(d(s[f])));function h(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m)return e;if("string"!=typeof e||e.length>256||!(t.loose?o[a.LOOSE]:o[a.FULL]).test(e))return null;try{return new m(e,t);}catch(e){return null;}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){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 m))return new m(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!i)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[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");i[4]?this.prerelease=i[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=i[5]?i[5].split("."):[],this.format();}t.parse=h,t.valid=function(e,t){var r=h(e,t);return r?r.version:null;},t.clean=function(e,t){var r=h(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null;},t.SemVer=m,m.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;},m.prototype.toString=function(){return this.version;},m.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof m||(e=new m(e,this.options)),this.compareMain(e)||this.comparePre(e);},m.prototype.compareMain=function(e){return e instanceof m||(e=new m(e,this.options)),v(this.major,e.major)||v(this.minor,e.minor)||v(this.patch,e.patch);},m.prototype.comparePre=function(e){if(e instanceof m||(e=new m(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 v(n,i);}while(++t);},m.prototype.compareBuild=function(e){e instanceof m||(e=new m(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 v(n,i);}while(++t);},m.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 m(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(x(e,t))return null;var r=h(e),n=h(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=v;var g=/^[0-9]+$/;function v(e,t){var r=g.test(e),n=g.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1;}function E(e,t,r){return new m(e,r).compare(new m(t,r));}function y(e,t,r){return E(e,t,r)>0;}function w(e,t,r){return 0>E(e,t,r);}function x(e,t,r){return 0===E(e,t,r);}function b(e,t,r){return 0!==E(e,t,r);}function S(e,t,r){return E(e,t,r)>=0;}function I(e,t,r){return 0>=E(e,t,r);}function R(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 x(e,r,n);case"!=":return b(e,r,n);case">":return y(e,r,n);case">=":return S(e,r,n);case"<":return w(e,r,n);case"<=":return I(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function O(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof O){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof O))return new O(e,t);r("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===$?this.value="":this.value=this.operator+this.semver.version,r("comp",this);}t.rcompareIdentifiers=function(e,t){return v(t,e);},t.major=function(e,t){return new m(e,t).major;},t.minor=function(e,t){return new m(e,t).minor;},t.patch=function(e,t){return new m(e,t).patch;},t.compare=E,t.compareLoose=function(e,t){return E(e,t,!0);},t.compareBuild=function(e,t,r){var n=new m(e,r),i=new m(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return E(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=y,t.lt=w,t.eq=x,t.neq=b,t.gte=S,t.lte=I,t.cmp=R,t.Comparator=O;var $={};function T(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof T)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new T(e.raw,t);if(e instanceof O)return new T(e.value,t);if(!(this instanceof T))return new T(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function C(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 A(e){return!e||"x"===e.toLowerCase()||"*"===e;}function _(e,t,r,n,i,o,s,a,l,c,u,p,d){return((t=A(r)?"":A(n)?">="+r+".0.0":A(i)?">="+r+"."+n+".0":">="+t)+" "+(a=A(l)?"":A(c)?"<"+(+l+1)+".0.0":A(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+a)).trim();}function P(e,t,r){try{t=new T(t,r);}catch(e){return!1;}return t.test(e);}function N(e,t,r,n){switch(e=new m(e,n),t=new T(t,n),r){case">":i=y,o=I,s=w,a=">",l=">=";break;case"<":i=w,o=S,s=y,a="<",l="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(P(e,t,n))return!1;for(var i,o,s,a,l,c=0;c<t.set.length;++c){var u=t.set[c],p=null,d=null;if(u.forEach(function(e){e.semver===$&&(e=new O(">=0.0.0")),p=p||e,d=d||e,i(e.semver,p.semver,n)?p=e:s(e.semver,d.semver,n)&&(d=e);}),p.operator===a||p.operator===l||(!d.operator||d.operator===a)&&o(e,d.semver)||d.operator===l&&s(e,d.semver))return!1;}return!0;}O.prototype.parse=function(e){var t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.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 m(r[2],this.options.loose):this.semver=$;},O.prototype.toString=function(){return this.value;},O.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===$||e===$)return!0;if("string"==typeof e)try{e=new m(e,this.options);}catch(e){return!1;}return R(e,this.operator,this.semver,this.options);},O.prototype.intersects=function(e,t){if(!(e instanceof O))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new T(e.value,t),P(this.value,r,t));if(""===e.operator)return""===e.value||(r=new T(this.value,t),P(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=R(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=R(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||l;},t.Range=T,T.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},T.prototype.toString=function(){return this.range;},T.prototype.parseRange=function(e){var t=this.options.loose,n=t?o[a.HYPHENRANGELOOSE]:o[a.HYPHENRANGE];r("hyphen replace",e=e.replace(n,_)),r("comparator trim",e=e.replace(o[a.COMPARATORTRIM],"$1$2$3"),o[a.COMPARATORTRIM]),e=(e=(e=e.replace(o[a.TILDETRIM],"$1~")).replace(o[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],s=e.split(" ").map(function(e){var t,n,i,s;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?o[a.CARETLOOSE]:o[a.CARET],e.replace(t,function(t,n,i,o,s){var a;return r("caret",e,t,n,i,o,s),A(n)?a="":A(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":A(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?o[a.TILDELOOSE]:o[a.TILDE],e.replace(t,function(t,n,i,o,s){var a;return r("tilde",e,t,n,i,o,s),A(n)?a="":A(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":A(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",i=t,n),t=i.split(/\s+/).map(function(e){var t,i;return t=(t=e).trim(),i=n.loose?o[a.XRANGELOOSE]:o[a.XRANGE],t.replace(i,function(e,i,o,s,a,l){r("xRange",t,e,i,o,s,a,l);var c=A(o),u=c||A(s),p=u||A(a);return"="===i&&p&&(i=""),l=n.includePrerelease?"-0":"",c?e=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(u&&(s=0),a=0,">"===i?(i=">=",u?(o=+o+1,s=0):s=+s+1,a=0):"<="===i&&(i="<",u?o=+o+1:s=+s+1),e=i+o+"."+s+"."+a+l):u?e=">="+o+".0.0"+l+" <"+(+o+1)+".0.0"+l:p&&(e=">="+o+"."+s+".0"+l+" <"+o+"."+(+s+1)+".0"+l),r("xRange return",e),e;});}).join(" "))),r("stars",(r("replaceStars",s=t,n),t=s.trim().replace(o[a.STAR],""))),t;},this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter(function(e){return!!e.match(i);})),s=s.map(function(e){return new O(e,this.options);},this);},T.prototype.intersects=function(e,t){if(!(e instanceof T))throw TypeError("a Range is required");return this.set.some(function(r){return C(r,t)&&e.set.some(function(e){return C(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new T(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},T.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new m(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!==$&&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=P,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var o=new T(t,r);}catch(e){return null;}return e.forEach(function(e){o.test(e)&&(!n||-1===i.compare(e))&&(n=e,i=new m(n,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var o=new T(t,r);}catch(e){return null;}return e.forEach(function(e){o.test(e)&&(!n||1===i.compare(e))&&(n=e,i=new m(n,r));}),n;},t.minVersion=function(e,t){e=new T(e,t);var r=new m("0.0.0");if(e.test(r)||(r=new m("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 m(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||y(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 T(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return N(e,t,"<",r);},t.gtr=function(e,t,r){return N(e,t,">",r);},t.outside=N,t.prerelease=function(e,t){var r=h(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new T(e,r),t=new T(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof m)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[a.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[a.COERCERTL].lastIndex=-1;}else n=e.match(o[a.COERCE]);return null===n?null:h(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),V.register("dGCqI",function(e,t){var r=V("fVQSr"),n=V("3MZit");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);};}),V.register("fVQSr",function(e,t){e.exports=function(){return g.randomBytes(16);};}),V.register("3MZit",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("");};}),V.register("jlr6Q",function(e,t){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{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let s=i(V("jbxr5"));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="",l=new R.StringDecoder("utf8"),c=new R.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout:e=>{o+=l.write(e),u&&u(e);},stderr:e=>{s+=c.write(e),p&&p(e);}}),f=yield a(e,t,Object.assign(Object.assign({},r),{listeners:d}));return{exitCode:f,stdout:o+=l.end(),stderr:s+=c.end()};});};}),V.register("jbxr5",function(e,t){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{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(f),a=i(w),l=i(I),c=i(h),u=i(V("fcBgE")),p=i(V("ejt9m")),d="win32"===process.platform;class m 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(d){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 d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(d&&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!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=c.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 p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.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 c="";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);}c=this._processLineBuffer(e,c,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),c.length>0&&this.emit("errline",c),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=m,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();}}}}),V.register("5fF9z",function(e,t){e.exports=Promise.resolve(require("./actions_python.7a34735b.js")).then(()=>V("4kQHk"));});var X=V("dTX7a"),q=V("ER74K"),K=V("ggaxg"),z={};(function(){V("fXZh0").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(z);var W={};W=V("25uEY");var Y={};Y={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 J={};const Q=f.homedir();J=e=>{if("string"!=typeof e)throw TypeError(`Expected a string, got ${typeof e}`);return Q?e.replace(/^~(?=$|\/|\\)/,Q):e;};var Z={};const ee="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,et=ee?";":":";var er={};function en(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){en(e,t||{},function(e,t){e?n(e):r(t);});});}e4(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}e4="win32"===process.platform||G.TESTING_WINDOWS?V("a3PNV"):V("7gw6J"),er=en,en.sync=function(e,t){try{return e4.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const ei=e=>Object.assign(Error(`not found: ${e}`),{code:"ENOENT"}),eo=(e,t)=>{let r=t.colon||et,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};},es=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=eo(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(ei(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=h.join(c,e),p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(l(p,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];er(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};Z=es,es.sync=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=eo(e,t),o=[];for(let s=0;s<r.length;s++){let a=r[s],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=h.join(l,e),u=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let e=0;e<n.length;e++){let r=u+n[e];try{let e=er.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 ei(e);};var ea={},el={},ec={},eu={},ep={};const ed=(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 ef(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=Z.sync(e.command,{path:n[ep({env:n})],pathExt:t?h.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=h.resolve(o?e.options.cwd:"",r)),r;}(ep=ed).default=ed,eu=function(e){return ef(e)||ef(e,!0);};const eh=/([()\][%!^"`<>&|;, *?])/g;var em={},eg={},ev={};ev=/^#!(.*)/,eg=(e="")=>{let t=e.match(ev);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},em=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 eg(r.toString());};const eE="win32"===process.platform,ey=/\.(?:com|exe)$/i,ew=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;ec=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(!eE)return e;let t=function(e){e.file=eu(e);let t=e.file&&em(e.file);return t?(e.args.unshift(e.file),e.command=t,eu(e)):e.file;}(e),r=!ey.test(t);if(e.options.forceShell||r){let r=ew.test(t);e.command=h.normalize(e.command),e.command=(0,e.command).replace(eh,"^$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(eh,"^$1"),r&&(t=t.replace(eh,"^$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 ex={};const eb="win32"===process.platform;function eS(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 eI(e,t){return eb&&1===e&&!t.file?eS(t.original,"spawn"):null;}function eR(e,t,r){let n=ec(e,t,r),i=I.spawn(n.command,n.args,n.options);return ex.hookChildProcess(i,n),i;}ex={hookChildProcess:function(e,t){if(!eb)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=eI(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:eI,verifyENOENTSync:function(e,t){return eb&&1===e&&!t.file?eS(t.original,"spawnSync"):null;},notFoundError:eS},(el=eR).spawn=eR,el.sync=function(e,t,r){let n=ec(e,t,r),i=I.spawnSync(n.command,n.args,n.options);return i.error=i.error||ex.verifyENOENTSync(i.status,n),i;},el._parse=ec,el._enoent=ex;var eO={};eO=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 e$={};const eT=e=>{let t;e={cwd:process.cwd(),path:process.env[ep()],execPath:process.execPath,...e};let r=h.resolve(e.cwd),n=[];for(;t!==r;)n.push(h.join(r,"node_modules/.bin")),t=r,r=h.resolve(r,"..");let i=h.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(h.delimiter);};(e$=eT).default=eT,e$.env=e=>{e={env:process.env,...e};let t={...e.env},r=ep({env:t});return e.path=t[r],t[r]=e$(e),t;};var eC={},eA={};const e_=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e;};(eA=e_).default=e_;const eP=new WeakMap(),eN=(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(eP.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 eA(o,e),eP.set(o,n),o;};(eC=eN).default=eN,eC.callCount=e=>{if(!eP.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return eP.get(e);};var eL={},eD={};Object.defineProperty(eD,"__esModule",{value:!0}),eD.signalsByNumber=eD.signalsByName=void 0;var ek={};Object.defineProperty(ek,"__esModule",{value:!0}),ek.getSignals=void 0;var eU={};Object.defineProperty(eU,"__esModule",{value:!0}),eU.SIGNALS=void 0,eU.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 ej={};Object.defineProperty(ej,"__esModule",{value:!0}),ej.SIGRTMAX=ej.getRealtimeSignals=void 0,ej.getRealtimeSignals=function(){return Array.from({length:eG-eF+1},eM);};const eM=function(e,t){return{name:`SIGRT${t+1}`,number:eF+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"};},eF=34,eG=64;ej.SIGRTMAX=eG,ek.getSignals=function(){let e=(0,ej.getRealtimeSignals)(),t=[...eU.SIGNALS,...e].map(eB);return t;};const eB=function({name:e,number:t,description:r,action:n,forced:i=!1,standard:o}){let{signals:{[e]:s}}=f.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},eH=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}};},eV=function(){let e=(0,ek.getSignals)();return e.reduce(eH,{});}();eD.signalsByName=eV;const eX=function(e,t){let r=eq(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},eq=function(e,t){let r=t.find(({name:t})=>f.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);},eK=function(){let e=(0,ek.getSignals)(),t=ej.SIGRTMAX+1,r=Array.from({length:t},(t,r)=>eX(r,e));return Object.assign({},...r);}();eD.signalsByNumber=eK;var ez=eD.signalsByName;const eW=({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";eL=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let d=void 0===i?void 0:ez[i].description,f=n&&n.code,h=eW({timedOut:l,timeout:p,errorCode:f,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),m=`Command ${h}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),v=g?`${m}
${n.message}`:m,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=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;};var eY={};const eJ=["stdin","stdout","stderr"],eQ=e=>eJ.some(t=>void 0!==e[t]),eZ=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return eJ.map(t=>e[t]);if(eQ(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${eJ.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,eJ.length);return Array.from({length:r},(e,r)=>t[r]);};(eY=eZ).node=e=>{let t=eZ(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];};var e0={},e1={},e2=G.process;const e3=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(e3(e2)){var e4,e6,e5=V("1YMV0"),e8=/^win/i.test(e2.platform),e9=w;"function"!=typeof e9&&(e9=e9.EventEmitter),e2.__signal_exit_emitter__?e6=e2.__signal_exit_emitter__:((e6=e2.__signal_exit_emitter__=new e9()).count=0,e6.emitted={}),e6.infinite||(e6.setMaxListeners(1/0),e6.infinite=!0);var e7=function(){tr&&e3(G.process)&&(tr=!1,e5.forEach(function(e){try{e2.removeListener(e,tt[e]);}catch(e){}}),e2.emit=ts,e2.reallyExit=ti,e6.count-=1);};(e1=function(e,t){if(!e3(G.process))return function(){};x.equal(typeof e,"function","a callback must be provided for exit handler"),!1===tr&&tn();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),e6.on(r,e),function(){e6.removeListener(r,e),0===e6.listeners("exit").length&&0===e6.listeners("afterexit").length&&e7();};}).unload=e7;var te=function(e,t,r){e6.emitted[e]||(e6.emitted[e]=!0,e6.emit(e,t,r));},tt={};e5.forEach(function(e){tt[e]=function(){e3(G.process)&&e2.listeners(e).length===e6.count&&(e7(),te("exit",null,e),te("afterexit",null,e),e8&&"SIGHUP"===e&&(e="SIGINT"),e2.kill(e2.pid,e));};}),e1.signals=function(){return e5;};var tr=!1,tn=function(){!tr&&e3(G.process)&&(tr=!0,e6.count+=1,e5=e5.filter(function(e){try{return e2.on(e,tt[e]),!0;}catch(e){return!1;}}),e2.emit=ta,e2.reallyExit=to);};e1.load=tn;var ti=e2.reallyExit,to=function(e){e3(G.process)&&(e2.exitCode=e||0,te("exit",e2.exitCode,null),te("afterexit",e2.exitCode,null),ti.call(e2,e2.exitCode));},ts=e2.emit,ta=function(e,t){if(!("exit"===e&&e3(G.process)))return ts.apply(this,arguments);void 0!==t&&(e2.exitCode=t);var r=ts.apply(this,arguments);return te("exit",e2.exitCode,null),te("afterexit",e2.exitCode,null),r;};}else e1=function(){return function(){};};const tl=(e,t,r,n)=>{if(!tc(t,r,n))return;let i=tp(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},tc=(e,{forceKillAfterTimeout:t},r)=>tu(e)&&!1!==t&&r,tu=e=>e===f.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),tp=({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;},td=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},tf=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=e1(()=>{e.kill();});return n.finally(()=>{i();});};var th=(e0={spawnedKill:(e,t="SIGTERM",r={})=>{let n=e(t);return tl(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(()=>{td(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:tf}).spawnedKill,tm=e0.spawnedCancel,tg=e0.setupTimeout,tv=e0.validateTimeout,tE=e0.setExitHandler,ty={},tw={};const tx=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;tx.writable=e=>tx(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,tx.readable=e=>tx(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,tx.duplex=e=>tx.writable(e)&&tx.readable(e),tx.transform=e=>tx.duplex(e)&&"function"==typeof e._transform,tw=tx;var tb={},tS=$.constants,tI=b.promisify,tR={},tO=T.PassThrough;tR=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 tO({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$=tI(T.pipeline);class tT extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}async function tC(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=tR(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=tS.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 tT());});}),n.getBufferedValue();}(tb=tC).buffer=(e,t)=>tC(e,{...t,encoding:"buffer"}),tb.array=(e,t)=>tC(e,{...t,array:!0}),tb.MaxBufferError=tT;var tA={},t_=T.PassThrough;tA=function(){var e=[],t=new t_({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):(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();}};const tP=async(e,t)=>{if(e){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},tN=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?tb(e,{encoding:t,maxBuffer:n}):tb.buffer(e,{maxBuffer:n});},tL=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=tN(e,{encoding:n,buffer:i,maxBuffer:o}),l=tN(t,{encoding:n,buffer:i,maxBuffer:o}),c=tN(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},tP(e,a),tP(t,l),tP(r,c)]);}};var tD=(ty={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(tw(t)?t.pipe(e.stdin):e.stdin.end(t));},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=tA();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},getSpawnedResult:tL,validateInputSync:({input:e})=>{if(tw(e))throw TypeError("The `input` option cannot be a stream in sync mode");}}).handleInput,tk=ty.getSpawnedResult,tU=ty.makeAllStream,tj=ty.validateInputSync,tM={};const tF=(async()=>{})().constructor.prototype,tG=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(tF,e)]);var tB=(tM={mergePromise:(e,t)=>{for(let[r,n]of tG){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,tH=tM.getSpawnedPromise,tV={};const tX=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],tq=/^[\w.-]+$/,tK=/"/g,tz=e=>"string"!=typeof e||tq.test(e)?e:`"${e.replace(tK,'\\"')}"`,tW=/ +/g;var tY=(tV={joinCommand:(e,t)=>tX(e,t).join(" "),getEscapedCommand:(e,t)=>tX(e,t).map(e=>tz(e)).join(" "),parseCommand:e=>{let t=[];for(let r of e.trim().split(tW)){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=tV.parseCommand,tQ=tV.getEscapedCommand;const tZ=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...process.env,...e}:e;return r?e$.env({env:o,cwd:n,execPath:i}):o;},t0=(e,t,r={})=>{let n=el._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=tZ(r),r.stdio=eY(r),"win32"===process.platform&&"cmd"===h.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?eO(t):t:void 0===r?void 0:"",t2=(e,t,r)=>{let n;let i=t0(e,t,r),o=tY(e,t),s=tQ(e,t);tv(i.options);try{n=I.spawn(i.file,i.args,i.options);}catch(r){let e=new I.ChildProcess(),t=Promise.reject(eL({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return tB(e,t);}let a=tH(n),l=tg(n,i.options,a),c=tE(n,i.options,l),u={isCanceled:!1};n.kill=th.bind(null,n.kill.bind(n)),n.cancel=tm.bind(null,n,u);let p=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,p,d]=await tk(n,i.options,c),f=t1(i.options,l),h=t1(i.options,p),m=t1(i.options,d);if(e||0!==t||null!==r){let l=eL({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},d=eC(p);return tD(n,i.options.input),n.all=tU(n,i.options),tB(n,d);};function t3(){return(process.getuid?.()===0||!!process.env.CI)&&null!==F(Z).sync("sudo",{nothrow:!0});}function t4(e,t=[],r={stdio:"inherit",shell:!0}){return t3()?F(ea).commandSync(`sudo ${[e,...t].map(e=>`'${e}'`).join(" ")}`,r):F(ea).sync(e,t,r);}function t6(e,t=[],r={stdio:"inherit",shell:!0}){return t3()?F(ea).command(`sudo ${[e,...t].map(e=>`'${e}'`).join(" ")}`,r):F(ea)(e,t,r);}function t5(e){return t3()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,h.join)("/Users/",process.env.SUDO_USER,e):(0,h.join)("/home/",process.env.SUDO_USER,e):F(J)(`~/${e}`);}(ea=t2).sync=(e,t,r)=>{let n;let i=t0(e,t,r),o=tY(e,t),s=tQ(e,t);tj(i.options);try{n=I.spawnSync(i.file,i.args,i.options);}catch(e){throw eL({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),l=t1(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=eL({stdout:a,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:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},ea.command=(e,t)=>{let[r,...n]=tJ(e);return t2(r,n,t);},ea.commandSync=(e,t)=>{let[r,...n]=tJ(e);return t2.sync(r,n,t);},ea.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);let n=eY.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 q=V("ER74K"),t8={},t9=V("lJEXJ");function t7(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}function re(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(a){return function(l){return function(a){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue;}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break;}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break;}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break;}i[2]&&s.ops.pop(),s.trys.pop();continue;}a=t.call(e,s);}catch(e){a=[6,e],n=0;}finally{r=i=0;}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0};}([a,l]);};}}var rt=C.env.npm_package_json,rr=C.env.npm_config_user_agent,rn=!!(rr&&rr.startsWith("npm")),ri=!!(rt&&rt.endsWith("package.json")),ro=!!(rr&&rr.startsWith("yarn")),rs=rn||ri||ro,ra=f.homedir(),rl=process.env.XDG_CONFIG_HOME||h.join(ra,".config","simple-update-notifier"),rc=function(e){return h.join(rl,"".concat(e.replace("@","").replace("/","__"),".json"));},ru=function(){m.existsSync(rl)||m.mkdirSync(rl,{recursive:!0});},rp=function(e){var t=rc(e);try{if(!m.existsSync(t))return;return JSON.parse(m.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},rd=function(e){var t=rc(e);m.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},rf=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 t7(void 0,void 0,void 0,function(){var e,r;return re(this,function(i){switch(i.label){case 0:var l;if(ru(),e=rp(t.name),!(s||!e||e<new Date().getTime()-n))return[3,2];return[4,(l=t.name,t7(void 0,void 0,void 0,function(){var e;return re(this,function(t){return e="https://registry.npmjs.org/-/package/".concat(l,"/dist-tags"),[2,new Promise(function(t,r){E.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(),rd(t.name),t9.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];}});});},rh=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");};t8=function(e){return t7(void 0,void 0,void 0,function(){var t,r;return re(this,function(n){switch(n.label){case 0:if(!e.alwaysRun&&(!process.stdout.isTTY||rs&&!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,rf(e)];case 2:return(t=n.sent())&&console.error(rh("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 rm={};async function rg(){try{await F(t8)({pkg:F(rm)});}catch(e){(0,q.warning)(`Failed to check for updates: ${e instanceof Error?e.message+e.stack:e}`);}}rm=JSON.parse('{"name":"setup-cpp","version":"0.33.0"}');var rv=V("lcRzN"),q=V("ER74K");function rE(e){return null==e?[]:Array.isArray(e)?e:[e];}var X=V("dTX7a"),rv=V("lcRzN"),X=V("dTX7a"),q=V("ER74K");function ry(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;}function rw(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";}function rx({env:e=F(N).env,...t}={}){e={...e};let r=rw({env:e});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=F(N).cwd(),path:n=F(N).env[rw()],execPath:i=F(N).execPath}=e,o=r instanceof URL?F(L).fileURLToPath(r):r,s=F(_).resolve(o),a=[];for(;t!==s;)a.push(F(_).join(s,"node_modules/.bin")),t=s,s=F(_).resolve(s,"..");return a.push(F(_).resolve(o,i,"..")),[...a,n].join(F(_).delimiter);}(t),e;}const rb=(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);(rS(i,o)||!n)&&Object.defineProperty(e,r,o);},rS=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);},rI=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},rR=(e,t)=>`/* Wrapped ${e}*/
${t}`,rO=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),r$=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),rT=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=rR.bind(null,n,t.toString());Object.defineProperty(i,"name",r$),Object.defineProperty(e,"toString",{...rO,value:i});},rC=new WeakMap(),rA=(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(rC.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))rb(e,t,n,r);rI(e,t),rT(e,t,n);}(o,e),rC.set(o,n),o;};rA.callCount=e=>{if(!rC.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return rC.get(e);};const r_=()=>Array.from({length:rL-rN+1},rP),rP=(e,t)=>({name:`SIGRT${t+1}`,number:rN+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),rN=34,rL=64,rD=[{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"}],rk=()=>{let e=r_(),t=[...rD,...e].map(rU);return t;},rU=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=D.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},rj=({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}],rM=(()=>{let e=rk();return Object.fromEntries(e.map(rj));})(),rF=(e,t)=>{let r=rG(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},rG=(e,t)=>{let r=t.find(({name:t})=>D.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=rk(),t=Array.from({length:rL+1},(t,r)=>rF(r,e));return Object.assign({},...t);})();const rB=({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",rH=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let d=void 0===i?void 0:rM[i].description,f=n&&n.code,h=rB({timedOut:l,timeout:p,errorCode:f,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),m=`Command ${h}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),v=g?`${m}
${n.message}`:m,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=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},rV=["stdin","stdout","stderr"],rX=e=>rV.some(t=>void 0!==e[t]),rq=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return rV.map(t=>e[t]);if(rX(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${rV.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,rV.length);return Array.from({length:r},(e,r)=>t[r]);},rK=(e,t="SIGTERM",r={})=>{let n=e(t);return rz(e,t,r,n),n;},rz=(e,t,r,n)=>{if(!rW(t,r,n))return;let i=rJ(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},rW=(e,{forceKillAfterTimeout:t},r)=>rY(e)&&!1!==t&&r,rY=e=>e===F(D).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),rJ=({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;},rQ=(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0);},rZ=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},r0=(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(()=>{rZ(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},r1=({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})`);},r2=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=F(e1)(()=>{e.kill();});return n.finally(()=>{i();});};function r3(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function r4(e){return r3(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}const r6=e=>e instanceof P.ChildProcess&&"function"==typeof e.then,r5=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,S.createWriteStream)(r)),e;if(r4(r))return e[t].pipe(r),e;if(!r6(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!r4(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},r8=e=>{null!==e.stdout&&(e.pipeStdout=r5.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=r5.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=r5.bind(void 0,e,"all"));},r9=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},r7=({input:e,inputFile:t})=>"string"!=typeof t?e:(r9(e),(0,S.readFileSync)(t)),ne=e=>{let t=r7(e);if(r3(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},nt=({input:e,inputFile:t})=>"string"!=typeof t?e:(r9(e),(0,S.createReadStream)(t)),nr=(e,t)=>{let r=nt(t);void 0!==r&&(r3(r)?r.pipe(e.stdin):e.stdin.end(r));},nn=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=F(tA)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},ni=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},no=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?F(tb)(e,{encoding:t,maxBuffer:n}):F(tb).buffer(e,{maxBuffer:n});},ns=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=no(e,{encoding:n,buffer:i,maxBuffer:o}),l=no(t,{encoding:n,buffer:i,maxBuffer:o}),c=no(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},ni(e,a),ni(t,l),ni(r,c)]);}},na=(async()=>{})().constructor.prototype,nl=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(na,e)]),nc=(e,t)=>{for(let[r,n]of nl){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},nu=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);});}),np=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],nd=/^[\w.-]+$/,nf=/"/g,nh=e=>"string"!=typeof e||nd.test(e)?e:`"${e.replace(nf,'\\"')}"`,nm=(e,t)=>np(e,t).join(" "),ng=(e,t)=>np(e,t).map(e=>nh(e)).join(" "),nv=/ +/g,nE=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if("object"===t&&null!==e&&!(e instanceof P.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,A.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},ny=(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)],nw=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=o.split(nv).filter(Boolean),a=ny(r,s,o.startsWith(" "));if(n===t.length)return a;let l=t[n],c=Array.isArray(l)?l.map(e=>nE(e)):[nE(l)];return ny(a,c,o.endsWith(" "));},nx=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=nw({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},nb=(0,k.debuglog)("execa").enabled,nS=(e,t)=>String(e).padStart(t,"0"),nI=()=>{let e=new Date();return`${nS(e.getHours(),2)}:${nS(e.getMinutes(),2)}:${nS(e.getSeconds(),2)}.${nS(e.getMilliseconds(),3)}`;},nR=(e,{verbose:t})=>{t&&F(N).stderr.write(`[${nI()}] ${e}
`);},nO=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...F(N).env,...e}:e;return r?rx({env:o,cwd:n,execPath:i}):o;},n$=(e,t,r={})=>{let n=F(el)._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||F(N).cwd(),execPath:F(N).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:nb,...r}).env=nO(r),r.stdio=rq(r),"win32"===F(N).platform&&"cmd"===F(_).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},nT=(e,t,r)=>"string"==typeof t||(0,A.Buffer).isBuffer(t)?e.stripFinalNewline?ry(t):t:void 0===r?void 0:"";function nC(e,t,r){let n;let i=n$(e,t,r),o=nm(e,t),s=ng(e,t);nR(s,i.options),r1(i.options);try{n=F(P).spawn(i.file,i.args,i.options);}catch(r){let e=new(F(P).ChildProcess)(),t=Promise.reject(rH({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return nc(e,t),e;}let a=nu(n),l=r0(n,i.options,a),c=r2(n,i.options,l),u={isCanceled:!1};n.kill=rK.bind(null,n.kill.bind(n)),n.cancel=rQ.bind(null,n,u);let p=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,p,d]=await ns(n,i.options,c),f=nT(i.options,l),h=nT(i.options,p),m=nT(i.options,d);if(e||0!==t||null!==r){let l=rH({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,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 l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},d=rA(p);return nr(n,i.options),n.all=nn(n,i.options),r8(n),nc(n,d),n;}const nA=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},n_=(e={})=>({preferLocal:!0,...nA(e),...e});function nP(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return nC(function(){if(void 0===e){let t=F(Z).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=F(Z).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]=nx(n,i);return nC(o,s,n_(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]=nx(e,r);return function(e,t,r){let n;let i=n$(e,t,r),o=nm(e,t),s=ng(e,t);nR(s,i.options);let a=ne(i.options);try{n=F(P).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw rH({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=nT(i.options,n.stdout,n.error),c=nT(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=rH({stdout:l,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:l,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(n,i,n_(t));},r;}();var nN={};const nL="win32"!==f.platform(),nD=f.release(),nk=/(\d+\.\d+)\.(\d+)/,nU=(e="",t="")=>/1\d+\.\d+/.test(e)&&Number(t)>=17134.1184;function nj(e){if(("linux"===process.platform||"darwin"===process.platform)&&t3()&&void 0!==process.env.SUDO_USER){let t=(0,m.statSync)(e).isDirectory();t4("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0});}}nN=function(e){return nL?e.replace(/(\s+)/g,"\\$1"):nU(...nk.exec(nD).splice(1))?e:e.replace(/(\s+)/g,"%20");};var nM={};(function(){var e,t;e=V("awj79"),t=function(e){return e.split("").reverse().join("");},nM=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(nM);var nF=V("dOmbL");const nG={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1};async function nB(e,t,r=nG){let n=function(e,t=!1){let r=t?F(nN)(e):e;return F(nM)(r,'"',"\\");}(t??"",r.shouldEscapeSpace);try{if(X.GITHUB_ACTIONS)try{if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,rv.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,rv.exportVariable)(e,n);}catch(t){(0,q.error)(t),await nX(e,n,r);}else await nX(e,n,r);}catch(t){(0,q.error)(t),(0,rv.setFailed)(`Failed to export environment variable ${e}=${n}. You should add it manually.`);}}async function nH(e){process.env.PATH=`${e}${h.delimiter}${process.env.PATH}`;try{if(X.GITHUB_ACTIONS)try{(0,rv.addPath)(e);}catch(t){(0,q.error)(t),await nq(e);}else await nq(e);}catch(t){(0,q.error)(t),(0,rv.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}const nV=t5(".cpprc");async function nX(e,t,r){let n=t??"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,rv.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await nP(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,rv.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await nz(),r.shouldAddOnlyIfNotDefined?((0,m.appendFileSync)(nV,`
if [ -z "\${${e}}" ]; then export ${e}="${n}"; fi
`),(0,rv.info)(`if not defined ${e} then ${e}="${n}" was added to "${nV}`)):((0,m.appendFileSync)(nV,`
export ${e}="${n}"
`),(0,rv.info)(`${e}="${n}" was added to "${nV}`));return;}process.env[e]=n;}async function nq(e){switch(process.platform){case"win32":await nP(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,rv.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await nz(),(0,m.appendFileSync)(nV,`
export PATH="${e}:$PATH"
`),(0,rv.info)(`"${e}" was added to "${nV}"`);return;default:return;}}let nK=!1;async function nz(){if(nK)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await(0,nF.pathExists)(nV)){let t=(0,m.readFileSync)(nV,"utf8");if(t.includes(e))return;}(0,m.appendFileSync)(nV,`
${e}
`),(0,rv.info)(`Added ${e} to ${nV}`);let t=`
# source .cpprc if SOURCE_CPPRC is not set to 0
if [[ "$SOURCE_CPPRC" != 0 && -f "${nV}" ]]; then source "${nV}"; fi
`;try{let e=t5(".profile");(0,m.appendFileSync)(e,t),(0,rv.info)(`${t} was added to ${e}`);let r=t5(".bashrc");(0,m.appendFileSync)(r,t),(0,rv.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}`);}nK=!0;}async function nW(){if(await(0,nF.pathExists)(nV)){let e=(0,m.readFileSync)(nV,"utf-8").split("\n"),t=[...new Set(e.reverse())].reverse();(0,m.writeFileSync)(nV,t.join("\n"));try{nj(nV);}catch{}}}var nF=V("dOmbL");const nY=({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",nJ=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p,cwd:d=F(N).cwd()}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let f=void 0===i?void 0:rM[i].description,h=n&&n.code,m=nY({timedOut:l,timeout:p,errorCode:h,signal:i,signalDescription:f,exitCode:o,isCanceled:c}),g=`Command ${m}: ${s}`,v="[object Error]"===Object.prototype.toString.call(n),E=v?`${g}
${n.message}`:g,y=[E,t,e].filter(Boolean).join("\n");return v?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=E,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=f,n.stdout=e,n.stderr=t,n.cwd=d,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},nQ=["stdin","stdout","stderr"],nZ=e=>nQ.some(t=>void 0!==e[t]),n0=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return nQ.map(t=>e[t]);if(nZ(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${nQ.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,nQ.length);return Array.from({length:r},(e,r)=>t[r]);},n1=(e,t="SIGTERM",r={})=>{let n=e(t);return n2(e,t,r,n),n;},n2=(e,t,r,n)=>{if(!n3(t,r,n))return;let i=n6(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},n3=(e,{forceKillAfterTimeout:t},r)=>n4(e)&&!1!==t&&r,n4=e=>e===F(D).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),n6=({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;},n5=(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0);},n8=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},n9=(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(()=>{n8(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},n7=({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})`);},ie=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=F(e1)(()=>{e.kill();});return n.finally(()=>{i();});},it=e=>e instanceof P.ChildProcess&&"function"==typeof e.then,ir=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,S.createWriteStream)(r)),e;if(r4(r))return e[t].pipe(r),e;if(!it(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!r4(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},ii=e=>{null!==e.stdout&&(e.pipeStdout=ir.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=ir.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=ir.bind(void 0,e,"all"));},io=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},is=({input:e,inputFile:t})=>"string"!=typeof t?e:(io(e),(0,S.readFileSync)(t)),ia=e=>{let t=is(e);if(r3(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},il=({input:e,inputFile:t})=>"string"!=typeof t?e:(io(e),(0,S.createReadStream)(t)),ic=(e,t)=>{let r=il(t);void 0!==r&&(r3(r)?r.pipe(e.stdin):e.stdin.end(r));},iu=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=F(tA)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},ip=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},id=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?F(tb)(e,{encoding:t,maxBuffer:n}):F(tb).buffer(e,{maxBuffer:n});},ih=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=id(e,{encoding:n,buffer:i,maxBuffer:o}),l=id(t,{encoding:n,buffer:i,maxBuffer:o}),c=id(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},ip(e,a),ip(t,l),ip(r,c)]);}},im=(async()=>{})().constructor.prototype,ig=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(im,e)]),iv=(e,t)=>{for(let[r,n]of ig){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},iE=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);});}),iy=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],iw=/^[\w.-]+$/,ix=/"/g,ib=e=>"string"!=typeof e||iw.test(e)?e:`"${e.replace(ix,'\\"')}"`,iS=(e,t)=>iy(e,t).join(" "),iI=(e,t)=>iy(e,t).map(e=>ib(e)).join(" "),iR=/ +/g,iO=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if("object"===t&&null!==e&&!(e instanceof P.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,A.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},i$=(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)],iT=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=o.split(iR).filter(Boolean),a=i$(r,s,o.startsWith(" "));if(n===t.length)return a;let l=t[n],c=Array.isArray(l)?l.map(e=>iO(e)):[iO(l)];return i$(a,c,o.endsWith(" "));},iC=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=iT({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},iA=(0,k.debuglog)("execa").enabled,i_=(e,t)=>String(e).padStart(t,"0"),iP=()=>{let e=new Date();return`${i_(e.getHours(),2)}:${i_(e.getMinutes(),2)}:${i_(e.getSeconds(),2)}.${i_(e.getMilliseconds(),3)}`;},iN=(e,{verbose:t})=>{t&&F(N).stderr.write(`[${iP()}] ${e}
`);},iL=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...F(N).env,...e}:e;return r?rx({env:o,cwd:n,execPath:i}):o;},iD=(e,t,r={})=>{let n=F(el)._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||F(N).cwd(),execPath:F(N).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:iA,...r}).env=iL(r),r.stdio=n0(r),"win32"===F(N).platform&&"cmd"===F(_).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},ik=(e,t,r)=>"string"==typeof t||(0,A.Buffer).isBuffer(t)?e.stripFinalNewline?ry(t):t:void 0===r?void 0:"";function iU(e,t,r){let n;let i=iD(e,t,r),o=iS(e,t),s=iI(e,t);iN(s,i.options),n7(i.options);try{n=F(P).spawn(i.file,i.args,i.options);}catch(r){let e=new(F(P).ChildProcess)(),t=Promise.reject(nJ({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return iv(e,t),e;}let a=iE(n),l=n9(n,i.options,a),c=ie(n,i.options,l),u={isCanceled:!1};n.kill=n1.bind(null,n.kill.bind(n)),n.cancel=n5.bind(null,n,u);let p=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,p,d]=await ih(n,i.options,c),f=ik(i.options,l),h=ik(i.options,p),m=ik(i.options,d);if(e||0!==t||null!==r){let l=nJ({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,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 l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},d=rA(p);return ic(n,i.options),n.all=iu(n,i.options),ii(n),iv(n,d),n;}function ij(e,t,r){let n;let i=iD(e,t,r),o=iS(e,t),s=iI(e,t);iN(s,i.options);let a=ia(i.options);try{n=F(P).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw nJ({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=ik(i.options,n.stdout,n.error),c=ik(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=nJ({stdout:l,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:l,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}const iM=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},iF=(e={})=>({preferLocal:!0,...iM(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=iC(n,i);return iU(o,s,iF(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]=iC(e,r);return ij(n,i,iF(t));},r;}();var iG=V("9ag04"),q=V("ER74K"),iB={},iH=h.join,iV=h.delimiter,iX=h.sep,iq=h.posix;const iK="win32"===process.platform,iz=new RegExp(`[${iq.sep}${iX===iq.sep?"":iX}]`.replace(/(\\)/g,"\\$1")),iW=RegExp(`^\\.${iz.source}`),iY=e=>Object.assign(Error(`not found: ${e}`),{code:"ENOENT"}),iJ=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=iV})=>{let i=e.match(iz)?[""]:[...(iK?[process.cwd()]:[]),...(t||"").split(n)];if(iK){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:[""]};},iQ=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&iW.test(t)?t.slice(0,2):"";return n+iH(r,t);},iZ=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iJ(e,t),o=[];for(let s of r){let r=iQ(s,e);for(let e of n){let n=r+e,s=await er(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 iY(e);};iB=iZ,iZ.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iJ(e,t),o=[];for(let s of r){let r=iQ(s,e);for(let e of n){let n=r+e,s=er.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 iY(e);};const{appendFile:i0}=m.promises;let i1=!1,i2=!1;const i3=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];async function i4(e,t=!1){let r=i8()?"nala":"apt-get";for(let{name:t,version:n}of e)(0,q.info)(`Installing ${t} ${n??""} via ${r}`);process.env.DEBIAN_FRONTEND="noninteractive",(!i1||t)&&(i9(r),i1=!0),i2||(await i7(r),i2=!0);let n=[...new Set(e.flatMap(e=>e.repositories??[]))];if(0!==n.length){for(let e of n)t4("add-apt-repository",["-y",e]);i9(r);}let i=await Promise.all(e.map(e=>i5(e.name,e.version)));try{t4(r,["install","--fix-broken","-y",...i]);}catch(e){if("stderr"in e){let t=e.stderr;i3.some(e=>t.includes(e))&&((0,q.warning)(`Failed to install packages ${i}. Retrying...`),t4(r,["install","--fix-broken","-y",...i]));}else throw e;}return{binDir:"/usr/bin/"};}async function i6(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await iU("apt-cache",["search","--names-only",`^${(0,iG.default)(e)}-${(0,iG.default)(t)}$`]);if(""!==r.trim())return u.NameDashVersion;try{let{stdout:r}=await iU("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return u.NameEqualsVersion;}catch{}}try{let{stdout:t}=await iU("apt-cache",["show",e]);if(""!==t.trim())return u.Name;}catch{}return u.None;}async function i5(e,t){let r=await i6(e,t);switch(r){case u.NameDashVersion:return`${e}-${t}`;case u.NameEqualsVersion:return`${e}=${t}`;case u.Name:return e;case u.None:default:throw Error(`Could not find package ${e} ${t??""}`);}}function i8(){return null!==F(iB).sync("nala",{nothrow:!0});}function i9(e){t4(e,"nala"!==e?["update","-y"]:["update"]);}async function i7(e){t4(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[ot(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),ot(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(nB("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),nB("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function oe(){t4("gpg",["-k"]);}async function ot(e,t,r="keyserver.ubuntu.com"){try{let n=`/etc/apt/trusted.gpg.d/${t}`;return(await(0,nF.pathExists)(n))||(oe(),await Promise.all(e.map(async e=>{await t6("gpg",["--no-default-keyring","--keyring",`gnupg-ring:${n}`,"--keyserver",r,"--recv-keys",e]),await t6("chmod",["644",n]);}))),n;}catch(e){(0,q.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function or(e,t){let r=`/etc/apt/trusted.gpg.d/${e}`;return(await(0,nF.pathExists)(r))||(oe(),await i4([{name:"curl"},{name:"ca-certificates"}],void 0),await iU("curl",["-s",t,"-o",`/tmp/${e}`]),t4("gpg",["--no-default-keyring","--keyring",`gnupg-ring:${r}`,"--import",`/tmp/${e}`]),t4("chmod",["644",r])),r;}async function on(e,t){return X.GITHUB_ACTIONS?t6("update-alternatives",["--install",`/usr/bin/${e}`,e,t,"40"]):(await nz(),i0(nV,`
if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi
`));}async function oi(e){try{let{stdout:t}=await iU("dpkg",["-l",e]),r=t.split("\n");return r.some(e=>e.startsWith("ii"));}catch{return!1;}}(l=u||(u={}))[l.NameDashVersion=0]="NameDashVersion",l[l.NameEqualsVersion=1]="NameEqualsVersion",l[l.Name=2]="Name",l[l.None=3]="None";var rv=V("lcRzN"),oo=(V("ceI0e"),V("ceI0e")),os=V("fcBgE");async function oa(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=F(iB).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,oo.dirname)(i)};let o=F(h).join((0,f.tmpdir)(),"setup-cpp","brew");await(0,os.mkdirP)(o),ij("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,h.join)(o,"install.sh");if("linux"===process.platform){let e=(0,m.readFileSync)(s,"utf-8");e.replace("#!/bin/bash","");}return ij("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=ol(),await nH(t),{binDir:t};}function ol(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}let oc=!1;async function ou(e,t,r=[]){(0,rv.info)(`Installing ${e} ${t??""} via brew`),oc&&null!==F(iB).sync("brew",{nothrow:!0})||(await oa("","",process.arch),oc=!0);let n=ol();return ij((0,oo.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}var nF=V("dOmbL"),oo=V("ceI0e");async function op(e,t,n){if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let i=F(iB).sync("choco",{nothrow:!0});if(null!==i)return{binDir:r=(0,oo.dirname)(i)};let o="powershell.exe",s=F(iB).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(o=s),ij(o,["-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 a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await nH(a);let l=F(iB).sync("choco",{nothrow:!0});if(r=null!==l?(0,oo.dirname)(l):`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`,await(0,nF.pathExists)(r))return{binDir:r};}var rv=V("lcRzN"),q=V("ER74K");let od=!1;async function of(e,t,r=[]){(0,rv.info)(`Installing ${e} ${t??""} via chocolatey`),od&&null!==F(iB).sync("choco",{nothrow:!0})||(await op("","",process.arch),od=!0);let n=process.env.PATH,i={...process.env};if(delete i.TMP,delete i.TEMP,delete i.Path,i.PATH=n,void 0!==t&&""!==t)ij("choco",["install","-y",e,`--version=${t}`,...r],{env:i,extendEnv:!1,stdio:"inherit"});else try{ij("choco",["install","-y",e,...r],{env:i,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 o=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`;return await nH(o),{binDir:o};}function oh(){return"linux"===process.platform&&(void 0===o&&(o=null!==F(iB).sync("pacman",{nothrow:!0})),o);}function om(){return"linux"===process.platform&&(void 0===s&&(s=null!==F(iB).sync("dnf",{nothrow:!0})),s);}async function og(e){for(let{name:t,version:r}of e)(0,q.info)(`Installing ${t} ${r??""} via dnf`);let t=await Promise.all(e.map(e=>ov(e.name,e.version)));return t4("dnf",["-y","install",...t]),{binDir:"/usr/bin/"};}async function ov(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await iU("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await iU("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,q.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}function oE(){return"linux"===process.platform&&(void 0===a&&(a=null!==F(iB).sync("apt-get",{nothrow:!0})),a);}async function oy(e,t,r){switch(process.platform){case"win32":return of("bazelisk",e);case"darwin":return ou("bazelisk",e);case"linux":if(oh())throw Error("installing bazel on Arch linux is not supported yet");if(om())return await og([{name:"dnf-plugins-core"}]),t4("dnf",["copr","enable","vbatts/bazel"]),og([{name:"bazel4"}]);if(oE()){let t=await or("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return t4("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`]),i4([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}var q=(V("ER74K"),V("ER74K"));let ow=!1,ox=!1;async function ob(e,t,r){(0,q.info)(`Installing ${e} ${t??""} via pacman`);let n="pacman";if("yay"===r&&null===F(iB).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);ow||"yay"===r||(t4(n,["-Sy","--noconfirm"]),ow=!0),ox||"yay"===r||(t4(n,["-S","--noconfirm","base-devel"]),ox=!0);let i=e=>"yay"===r?ij(r,["-S","--noconfirm",e]):t4(r??n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){let r=await oI(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 oS=/Version\s*:\s*(.*)/g;async function oI(e,t){let r=[];try{let{stdout:n}=await iU(e,["-Si",t]);for(let e of n.matchAll(oS))r.push(e[1]);}catch(e){(0,q.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}var oR={},oO=h.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),o$=oR&&oR.__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];}),oT=oR&&oR.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),oC=oR&&oR.__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)&&o$(t,e,r);return oT(t,e),t;},oA=oR&&oR.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},o_=oR&&oR.__importDefault||function(e){return e&&e.__esModule?e:{default:e};};Object.defineProperty(oR,"__esModule",{value:!0}),oR.evaluateVersions=oR.isExplicitVersion=oR.findFromManifest=oR.getManifestFromRepo=oR.findAllVersions=oR.find=oR.cacheFile=oR.cacheDir=oR.extractZip=oR.extractXar=oR.extractTar=oR.extract7z=oR.downloadTool=oR.HTTPError=void 0;const oP=oC(V("lcRzN")),oN=oC(V("fcBgE")),oL=oC(m),oD=oC(V("ktIRP")),ok=oC(f),oU=oC(h),oj=oC(V("3bels")),oM=oC(V("aNgTs")),oF=oC(T),oG=oC(b),oB=o_(V("dGCqI"));var oH=V("jlr6Q"),oV={},oX=oV&&oV.__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];}),oq=oV&&oV.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),oK=oV&&oV.__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)&&oX(t,e,r);return oq(t,e),t;},oz=oV&&oV.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(oV,"__esModule",{value:!0}),oV.RetryHelper=void 0;const oW=oK(V("lcRzN"));oV.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 oz(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{break;}catch(e){if(t&&!t(e))throw e;oW.info(e.message);}let e=this.getSleepAmount();oW.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 oz(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,1e3*e));});}};class oY extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}oR.HTTPError=oY;const oJ="win32"===process.platform,oQ="darwin"===process.platform;function oZ(e,t){let r=[];t=t||ok.arch();let n=oU.join(o6(),e);if(oL.existsSync(n)){let e=oL.readdirSync(n);for(let i of e)if(o3(i)){let e=oU.join(n,i,t||"");oL.existsSync(e)&&oL.existsSync(`${e}.complete`)&&r.push(i);}}return r;}function o0(e){return oA(this,void 0,void 0,function*(){return e||(e=oU.join(o5(),oB.default())),yield oN.mkdirP(e),e;});}function o1(e,t,r){return oA(this,void 0,void 0,function*(){let n=oU.join(o6(),e,oM.clean(t)||t,r||"");oP.debug(`destination ${n}`);let i=`${n}.complete`;return yield oN.rmRF(n),yield oN.rmRF(i),yield oN.mkdirP(n),n;});}function o2(e,t,r){let n=oU.join(o6(),e,oM.clean(t)||t,r||""),i=`${n}.complete`;oL.writeFileSync(i,""),oP.debug("finished caching tool");}function o3(e){let t=oM.clean(e)||"";oP.debug(`isExplicit: ${t}`);let r=null!=oM.valid(t);return oP.debug(`explicit? ${r}`),r;}function o4(e,t){let r="";oP.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>oM.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n],o=oM.satisfies(i,t);if(o){r=i;break;}}return r?oP.debug(`matched: ${r}`):oP.debug("match not found"),r;}function o6(){let e=process.env.RUNNER_TOOL_CACHE||"";return x.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function o5(){let e=process.env.RUNNER_TEMP||"";return x.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function o8(e,t){let r=G[e];return void 0!==r?r:t;}oR.downloadTool=function(e,t,r,n){return oA(this,void 0,void 0,function*(){t=t||oU.join(o5(),oB.default()),yield oN.mkdirP(oU.dirname(t)),oP.debug(`Downloading ${e}`),oP.debug(`Destination ${t}`);let i=o8("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=o8("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new oV.RetryHelper(3,i,o);return yield s.execute(()=>oA(this,void 0,void 0,function*(){return yield function(e,t,r,n){return oA(this,void 0,void 0,function*(){if(oL.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new oj.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(oP.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 oY(o.message.statusCode);throw oP.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=oG.promisify(oF.pipeline),a=o8("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message),l=a(),c=!1;try{return yield s(l,oL.createWriteStream(t)),oP.debug("download complete"),c=!0,t;}finally{if(!c){oP.debug("download failed");try{yield oN.rmRF(t);}catch(e){oP.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof oY)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},oR.extract7z=function(e,t,r){return oA(this,void 0,void 0,function*(){x.ok(oJ,"extract7z() not supported on current OS"),x.ok(e,'parameter "file" is required'),t=yield o0(t);let n=process.cwd();if(process.chdir(t),r)try{let t=oP.isDebug()?"-bb1":"-bb0",n=["x",t,"-bd","-sccUTF-8",e];yield oH.exec(`"${r}"`,n,{silent:!0});}finally{process.chdir(n);}else{let r=oU.join(oO,"..","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 oN.which("powershell",!0);yield oH.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},oR.extractTar=function(e,t,r="xz"){return oA(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield o0(t),oP.debug("Checking tar --version");let i="";yield oH.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),oP.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],oP.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return oJ&&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 oH.exec("tar",n),t;});},oR.extractXar=function(e,t,r=[]){return oA(this,void 0,void 0,function*(){let n;x.ok(oQ,"extractXar() not supported on current OS"),x.ok(e,'parameter "file" is required'),t=yield o0(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),oP.isDebug()&&n.push("-v");let i=yield oN.which("xar",!0);return yield oH.exec(`"${i}"`,Array.from(new Set(n))),t;});},oR.extractZip=function(e,t){return oA(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield o0(t),oJ?yield function(e,t){return oA(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 oN.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];oP.debug(`Using pwsh at path: ${i}`),yield oH.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 oN.which("powershell",!0);oP.debug(`Using powershell at path: ${i}`),yield oH.exec(`"${i}"`,t);}});}(e,t):yield function(e,t){return oA(this,void 0,void 0,function*(){let r=yield oN.which("unzip",!0),n=[e];oP.isDebug()||n.unshift("-q"),n.unshift("-o"),yield oH.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},oR.cacheDir=function(e,t,r,n){return oA(this,void 0,void 0,function*(){if(r=oM.clean(r)||r,n=n||ok.arch(),oP.debug(`Caching tool ${t} ${r} ${n}`),oP.debug(`source dir: ${e}`),!oL.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield o1(t,r,n);for(let t of oL.readdirSync(e)){let r=oU.join(e,t);yield oN.cp(r,i,{recursive:!0});}return o2(t,r,n),i;});},oR.cacheFile=function(e,t,r,n,i){return oA(this,void 0,void 0,function*(){if(n=oM.clean(n)||n,i=i||ok.arch(),oP.debug(`Caching tool ${r} ${n} ${i}`),oP.debug(`source file: ${e}`),!oL.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield o1(r,n,i),s=oU.join(o,t);return oP.debug(`destination file ${s}`),yield oN.cp(e,s),o2(r,n,i),o;});},oR.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");if(r=r||ok.arch(),!o3(t)){let n=oZ(e,r),i=o4(n,t);t=i;}let n="";if(t){t=oM.clean(t)||"";let i=oU.join(o6(),e,t,r);oP.debug(`checking cache: ${i}`),oL.existsSync(i)&&oL.existsSync(`${i}.complete`)?(oP.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):oP.debug("not found");}return n;},oR.findAllVersions=oZ,oR.getManifestFromRepo=function(e,t,r,n="master"){return oA(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new oj.HttpClient("tool-cache"),a={};r&&(oP.debug("set auth"),a.authorization=r);let l=yield s.getJson(o,a);if(!l.result)return i;let c="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break;}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u);}catch(e){oP.debug("Invalid json");}}return i;});},oR.findFromManifest=function(e,t,r,n=ok.arch()){return oA(this,void 0,void 0,function*(){let i=yield oD._findMatch(e,t,r,n);return i;});},oR.isExplicitVersion=o3,oR.evaluateVersions=o4;var o9=V("1ndHP"),o7=V("9hSY8"),oo=V("ceI0e"),q=V("ER74K"),X=V("dTX7a"),nF=V("dOmbL"),se={};Object.defineProperty(se,"__esModule",{value:!0}),se.retryAsPromised=se.TimeoutError=void 0;class st extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}function sr(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 st(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 l=r.$current<r.max;if(!l||!(l=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 c=r.backoffBase*Math.pow(r.backoffExponent,r.$current-1);r.$current++,r.report&&r.report(`Retrying ${r.name} (${r.$current})`,r),c?(r.report&&r.report(`Delaying retry of ${r.name} by ${c}`,r),o=setTimeout(function(){sr(e,r).then(t).catch(n);},c)):sr(e,r).then(t).catch(n);});});}se.TimeoutError=st,se.retryAsPromised=sr,se.default=sr;let sn=!1;async function si(e,t,r,n,i){(0,q.info)(`Installing ${e} ${t} ${i} via direct downloading`),process.env.RUNNER_TEMP=process.env.RUNNER_TEMP??(0,f.tmpdir)(),process.env.RUNNER_TOOL_CACHE=process.env.RUNNER_TOOL_CACHE??(0,oo.join)((0,f.tmpdir)(),"setup-cpp","hostedtoolcache");let{url:o,binRelativeDir:s,binFileName:a,extractedFolderName:l,extractFunction:c}=await r(t,process.platform,i);if(X.GITHUB_ACTIONS)try{let r=(0,oR.find)(e,t);if(r){let n=(0,oo.join)(r,l),i=(0,oo.join)(n,s);if(await(0,nF.pathExists)((0,oo.join)(i,a)))return(0,q.info)(`${e} ${t} was found in the cache at ${i}.`),await nH(i),{installDir:n,binDir:i};}}catch{}let u=(0,oo.join)(n,l),p=(0,oo.join)(u,s),d=(0,oo.join)(p,a);if((await Promise.all([(0,nF.pathExists)(p),(0,nF.pathExists)(d)])).includes(!1))try{(0,q.info)(`Download ${e} ${t}`);let r=await F(se)(()=>(0,oR.downloadTool)(o),{name:o,max:4,backoffBase:2e3,report:e=>(0,q.info)(e)});sn||((0,q.info)("Installing extraction dependencies"),"linux"===process.platform&&(oh()?await Promise.all([ob("unzip"),ob("tar"),ob("xz")]):om()?await og([{name:"unzip"},{name:"tar"},{name:"xz"}]):oE()&&(await i4([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),sn=!0),(0,q.info)(`Extracting ${r} to ${n}`),await c?.(r,n);}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${o}: ${r}`);}return(0,q.info)(`Add ${p} to PATH`),await nH(p),X.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,oR.cacheDir)(n,e,t)),{installDir:u,binDir:p};}var oo=V("ceI0e"),os=V("fcBgE");function so(e,t,r){switch(process.platform){case"win32":return of("7zip",e);case"darwin":return ou("p7zip",e);case"linux":if(oh())return ob("p7zip",e);if(om())return og([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(oE())return i4([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}var q=V("ER74K");async function ss(e,t){return await iU(await sa(),["x",e,`-o${t}`,"-y"],{stdio:"inherit"}),nj(t),t;}async function sa(){return void 0===n&&(null===F(iB).sync("7z",{nothrow:!0})&&(await so("","",process.arch)),n="7z"),n;}function sl(e,t){return ss(e,t);}function sc(e,t){return ss(e,t);}async function su(e,t,r=["--strip-components=0"]){try{await(0,os.mkdirP)(t);}catch{}try{await iU("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 nj(t),t;}function sp(e,t,r){let n=F(o7)(e)??e;switch(t){case"win32":{let t;let i=F(o9)(n,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?i?"win32-x86":"windows-i386":i?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,oo.addExeExt)("cmake"),extractedFolderName:o,extractFunction:sc,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=F(o9)(n,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,oo.addExeExt)("cmake"),extractedFolderName:r,extractFunction:oR.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let i=F(o9)(n,"v3.19.8");t=["aarch64"].includes(r)?i?"Linux-aarch64":"linux-aarch64":i?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,oo.addExeExt)("cmake"),extractedFolderName:o,extractFunction:oR.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function sd(e,t,r){return si("cmake",e,sp,t,r);}var rv=V("lcRzN"),nF=V("dOmbL"),oo=V("ceI0e"),oH=V("jlr6Q"),X=V("dTX7a"),q=V("ER74K"),sf={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},sh=Array.prototype.slice;function sm(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:sh.call(e,0):[];}function sg(e,t){return e===t||e!=e&&t!=t;}function sv(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}var sE=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:sm(this.keys),size:this.size,values:sm(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var s=1;s<o;s++)if(r(i[s],e))return s;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var s=e.length;if(s>1){for(var a=0;a<o;a++)if((t=i[a]).length===s){for(r=0;r<s&&n(t[r],e[r]);r++);if(r===s)return a;}}else for(var a=0;a<o;a++)if((t=i[a]).length===s&&n(t[0],e[0]))return a;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;o<n;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,s=r;s--;)n[s+1]=n[s],i[s+1]=i[s];n[0]=e,i[0]=t;var a=this.options.maxSize;o===a&&r===o?(n.pop(),i.pop()):r>=a&&(n.length=i.length=a);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}();function sy(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return sy(e.fn,sv(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,s=t.maxSize,a=t.onCacheAdd,l=t.onCacheChange,c=t.onCacheHit,u=t.transformKey,p=sv({isEqual:void 0===r?sg:r,isMatchingKey:n,isPromise:o,maxSize:void 0===s?1:s,onCacheAdd:a,onCacheChange:l,onCacheHit:c,transformKey:u},function(e){var t={};for(var r in e)sf[r]||(t[r]=e[r]);return t;}(t)),d=new sE(p),f=d.keys,h=d.values,m=d.canTransformKey,g=d.shouldCloneArguments,v=d.shouldUpdateOnAdd,E=d.shouldUpdateOnChange,y=d.shouldUpdateOnHit,w=function(){var t=g?sm(arguments):arguments;m&&(t=u(t));var r=f.length?d.getKeyIndex(t):-1;if(-1!==r)y&&c(d,p,w),r&&(d.orderByLru(f[r],h[r],r),E&&l(d,p,w));else{var n=e.apply(this,arguments),i=g?t:sm(arguments);d.orderByLru(i,n,f.length),o&&d.updateAsyncCache(w),v&&a(d,p,w),E&&l(d,p,w);}return h[0];};return w.cache=d,w.fn=e,w.isMemoized=!0,w.options=p,w;}var oo=V("ceI0e");function sw(e,t){return new Promise(r=>{try{let n=(0,E.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 sx=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;}},sb=async e=>{let t=sx(e);if(!t)return!1;let r=await sw(e,"HEAD");return!!r||!!(r=await sw(e,"GET"));},sS=V("3Z6CK"),o7=V("9hSY8"),sI=V("eJTZB"),oH=V("jlr6Q"),q=V("ER74K");function sR(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return F(sS)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function sO(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await sb(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 sR(e,r)){let e=await n(t,o);if(null!==e){if(await sb(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}const s$=/v?(\d\S*)/;async function sT(e,t=s$){try{let r=await(0,oH.getExecOutput)(e,["--version"]),n=r.stdout||r.stderr||"",i=n.trim().match(t)?.[1];return F(o7)(i)??void 0;}catch(e){console.error(e);return;}}async function sC(e,t,r=s$){let n=await sT(e,r);return void 0!==n&&""!==t&&-1!==F(sS)(n,t);}function sA(){switch(process.platform){case"linux":return"15.0.6-ubuntu-18.04";case"darwin":return"15.0.3";default:return"15.0.4";}}const s_={llvm:sA(),clangtidy:sA(),clangformat:sA(),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:oh()?"1.9.6-1":"1.9.7",gcc:oh()?"13.1.1-1":"13"},sP={pip:"22.2.0",python:"3.7.9"},sN={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},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"}};var nF=V("dOmbL");async function sL(e,t,r){let n=await sD(e,t,r);F(x)(void 0!==n.bin);let i=n.bin,o=await sM(i);if(void 0===o)throw Error("pip was not installed correctly");try{await s0(i,"setuptools",void 0,!0),await s0(i,"wheel",void 0,!0);}catch(e){(0,q.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}return n;}async function sD(e,t,r){let n;let i=await sU(t);if(void 0!==i){let e=(0,oo.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(X.GITHUB_ACTIONS)try{(0,q.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await V("5fF9z");await o(e,t,r),i=await sU(t);let s=(0,oo.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,q.warning)(e.toString());}void 0===n&&(n=await sk(t,e));}return(void 0===i||void 0===n.bin)&&(i=await sU(t),n.bin=i),n;}async function sk(e,t){let r;switch(process.platform){case"win32":{e?await of("python3",t,[`--params=/InstallDir:${e}`]):await of("python3",t);let n=await sU(e),i=(0,oo.dirname)(n);await nH(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await ou("python3",t);let e=await iU("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,oo.join)(e.stdout,"libexec","bin");await nH(n);break;}case"linux":if(oh())r=await ob("python",t);else if(om())r=await og([{name:"python3",version:t}]);else if(oE())r=await i4([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function sU(e){for(let t of["python3","python"]){let r=await sj(t,e);if(void 0!==r)return r;}}async function sj(e,t){try{if(void 0!==t){let r=(0,oo.join)(t,(0,oo.addExeExt)(e));if((await(0,nF.pathExists)(r))&&(await sC(r,sP.python)))return r;}let r=(await F(iB)(e,{nothrow:!0,all:!0}))??[];for(let e of r)if(await sC(e,sP.python))return e;}catch{}}async function sM(e){let t=await sF();return void 0===t?((0,q.info)("pip was not found. Installing pip"),await sB(e),sF()):t;}async function sF(){for(let e of["pip3","pip"]){let t=await sG(e);if(void 0!==t)return t;}}async function sG(e){try{let t=(await F(iB)(e,{nothrow:!0,all:!0}))??[];for(let e of t)if(null!==e&&(await sC(e,sP.pip)))return e;}catch{}}async function sB(e){let t=await sH(e);t||(await function(){if("linux"===process.platform){if(oh())return ob("python-pip");if(om())return og([{name:"python3-pip"}]);if(oE())return i4([{name:"python3-pip"}]);}throw Error(`Could not install pip on ${process.platform}`);}(),await sH(e));}async function sH(e){try{return await iU(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,q.info)(t?.toString?.());try{return await iU(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,q.info)(e?.toString?.());}}return!1;}async function sV(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,oH.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,oo.join)(r,"Scripts"),(0,oo.join)(r,"Scripts","bin"),(0,oo.join)(r,"bin")),[...new Set(t)];}const sX=sy(sV);function sq(e,t,r=null){return sK(t)&&"linux"===process.platform&&null!==r&&e in sN?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,sN[e]):sK(t)&&e in s_?s_[e]:"true"===t?"":t??"";}function sK(e){return"true"===e||void 0===e;}var q=V("ER74K"),sz={};async function sW(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{I.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,l=!1;for(let e of r.split("\n")){let t=e.match(n);if(null!==t){let e=t[1];if("Ubuntu"!==e)return[];l=!0;}let r=e.match(i);r&&(s=r);let c=e.match(o);if(c&&(a=c),l&&s&&a)break;}if(!l)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 sY(){try{if(!oE())return null;{try{null===F(iB).sync("lsb_release",{nothrow:!0})&&(await i4([{name:"lsb-release"}]));}catch{return sQ();}let e=await(0,sz.getUbuntuVersion)();if(0===e.length)return sQ();return e;}}catch(e){return(0,q.warning)(e.toString()),null;}}Object.defineProperty(sz,"__esModule",{value:!0}),sz.getUbuntuVersion=void 0,sz.getUbuntuVersion=sW;const sJ=sy(sY);function sQ(){let e=F(f).version(),t=e.split("."),r=parseInt(t[0].replace("#",""),10),n=parseInt(t[1].replace("~",""),10),i=parseInt(t[2].split("-")[0],10);return[r,n,i];}async function sZ(e,t,r=!1){return s0(await s2(),e,t,r);}async function s0(e,t,r,n=!1){(0,rv.info)(`Installing ${t} ${r??""} via pip`);let i=void 0!==r&&""!==r?`${t}==${r}`:t;ij(e,["-m","pip","install",...(!0===n?["--upgrade"]:[]),i],{stdio:"inherit"});let o=await sX(e),s=await s3(o,t);return await nH(s),{binDir:s};}async function s1(){let e=(await sL(sq("python",void 0,await sJ()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}const s2=sy(s1);async function s3(e,t){let r=await Promise.all(e.map(e=>(0,nF.pathExists)((0,oo.join)(e,(0,oo.addExeExt)(t))))),n=r.findIndex(e=>e);if(-1!==n){let t=e[n];return t;}let i=F(iB).sync((0,oo.addExeExt)(t),{nothrow:!0});return null!==i?(0,oo.dirname)(i):e[e.length-1];}async function s4(e,t,r){return await sZ("setuptools",""),sZ("conan",e);}async function s6(e,t,r){switch(process.platform){case"win32":{await of("cppcheck",e);let t=await s5();return{binDir:t};}case"darwin":return ou("cppcheck",e);case"linux":if(oh())return ob("cppcheck",e);if(om())return og([{name:"ccache",version:e}]);if(oE())return i4([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function s5(){let e="C:/Program Files/Cppcheck";return await nH(e),e;}var oo=V("ceI0e"),q=V("ER74K");async function s8(e,t,r){switch(process.platform){case"win32":return await of("graphviz",e),s9();case"darwin":return ou("graphviz",e);case"linux":if(oh())return ob("graphviz",e);if(om())return og([{name:"graphviz",version:e}]);if(oE())return i4([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function s9(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await nH(e),{binDir:e};}throw Error("Unsupported platform");}var nF=V("dOmbL");function s7(e,t,r){switch(t){case"linux":{let t=`doxygen-${e}`;return{binRelativeDir:"bin/",binFileName:(0,oo.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:oR.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t=`doxygen-${e}`;return{binRelativeDir:"",binFileName:(0,oo.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:sc,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}default:throw Error(`Unsupported platform '${t}'`);}}async function ae(e,t,r){switch(process.platform){case"win32":{await F(se)(()=>of("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,q.info)(e)});let t=await at();return await s8(sq("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await ou("doxygen",void 0);return await s8(sq("graphviz",void 0),"",r),e;}case"linux":{let n;if(""===e||oh()||om()){if(oh())n=await ob("doxygen",e);else if(om())return og([{name:"doxygen",version:e}]);else if(oE())n=await i4([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(oE())try{n=await si("doxygen",e,s7,t,r),await i4([{name:"libclang-cpp9"}]);}catch(e){(0,q.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await i4([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await s8(sq("graphviz",void 0,await sJ()),"",r),n;}default:throw Error("Unsupported platform");}}async function at(){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,nF.pathExists)((0,oo.join)(e,"doxygen.exe")))return await nH(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}var ar=V("bX9Em"),o7=V("9hSY8"),oH=V("jlr6Q"),q=V("ER74K");async function an(){if("darwin"===process.platform)try{let e=await(0,oH.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await nB("SDKROOT",t.trim()):(0,q.error)("SDKROOT not set");}catch(e){(0,q.error)(e);}}var oo=V("ceI0e"),q=V("ER74K"),X=V("dTX7a"),nF=V("dOmbL"),ai=h.resolve(__dirname,"../../src/gcc");const ao={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 as(e,t,r){if("win32"===t){let t=ao[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,oo.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:ss,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 aa(e,t,r){let n;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await of("gcc-arm-embedded",e));try{n=await si("g++",e,as,t,r);}catch(t){(0,q.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),n=await ac(e,r);}break;case"darwin":n=await ou("gcc",e);break;case"linux":"x64"===r?oh()?n=await ob("gcc",e):om()?n=await og([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):oE()&&(n=await i4([{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`),oh()?await ob("gcc-multilib",e):oE()&&(await i4([{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 au(e,n.binDir),n;}async function al(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return aa(e,t,r);case"linux":oh()?n=await ob("mingw-w64-gcc",e):om()?n=await og([{name:"mingw64-gcc",version:e}]):oE()&&(n=await i4([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error(`Unsupported platform for ${r}`);}if(void 0!==n)return n;}async function ac(e,t){let r;if(await of("mingw",e),"x64"===t&&(await(0,nF.pathExists)("C:/tools/mingw64/bin"))?(r="C:/tools/mingw64/bin",await nH(r)):"ia32"===t&&(await(0,nF.pathExists)("C:/tools/mingw32/bin"))?(r="C:/tools/mingw32/bin",await nH(r)):(await(0,nF.pathExists)(`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(r=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`),void 0!==r)return{binDir:r};}async function au(e,t){let r=[];if("win32"===process.platform)r.push(nB("CC",(0,oo.addExeExt)(`${t}/gcc`)),nB("CXX",(0,oo.addExeExt)(`${t}/g++`)));else{let n=F(ar)(F(o7)(e)??e);n>=5?(r.push(nB("CC",`${t}/gcc-${n}`),nB("CXX",`${t}/g++-${n}`)),oE()&&r.push(on("cc",`${t}/gcc-${n}`),on("cxx",`${t}/g++-${n}`),on("gcc",`${t}/gcc-${n}`),on("g++",`${t}/g++-${n}`))):(r.push(nB("CC",`${t}/gcc-${e}`),nB("CXX",`${t}/g++-${e}`)),oE()&&r.push(on("cc",`${t}/gcc-${e}`),on("cxx",`${t}/g++-${e}`),on("gcc",`${t}/gcc-${e}`),on("g++",`${t}/g++-${e}`)));}r.push(an()),X.GITHUB_ACTIONS&&(await ap()),await Promise.all(r);}async function ap(){let e=(0,oo.join)(ai,"gcc_matcher.json");if(!(await(0,nF.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 sI=V("eJTZB"),ar=V("bX9Em"),oo=V("ceI0e"),q=V("ER74K"),oo=V("ceI0e");function ad(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,oo.addExeExt)("ninja"),extractedFolderName:"",extractFunction:sc,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function af(e,t,r){return si("ninja",e,ad,t,r);}var ah=h.resolve(__dirname,"../../src/kcov");function am(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,oo.addExeExt)("kcov"),extractFunction:su};}function ag(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,oo.addExeExt)("kcov"),extractFunction:av};}async function av(e,t){let r=await su(e,t,["--strip-components=1"]),n=await aE();"linux"===process.platform&&(oh()?await Promise.all([ob("libdwarf"),ob("libcurl-openssl")]):om()?await og([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):oE()&&(await i4([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==F(iB).sync("patch",{nothrow:!0})){let e=(0,oo.join)(ah,"gcc13.patch");await iU("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,oo.join)(r,"build");return await iU(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await iU(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function aE(){let e=F(iB).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await sd(sq("cmake",void 0,await sJ()),(0,oo.join)(t5(""),"cmake"),"");e=(0,oo.join)(t,"cmake");}let t=F(iB).sync("ninja",{nothrow:!0});return null===t&&(await af(sq("ninja",void 0,await sJ()),(0,oo.join)(t5(""),"ninja"),"")),e;}async function ay(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],l=parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await si("kcov",s,am,t,r),oh()?await ob("binutils"):om()?await og([{name:"binutils"}]):oE()&&(await i4([{name:"libbinutils"}]))):i=await si("kcov",s,ag,t,r),i;}var X=V("dTX7a"),q=V("ER74K"),nF=V("dOmbL"),oo=V("ceI0e"),rv=V("lcRzN"),q=V("ER74K"),oo=V("ceI0e"),aw={},ax=aw&&aw.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},ab=aw&&aw.__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(aw,"__esModule",{value:!0});var aS={},aI=aS&&aS.__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(aS,"__esModule",{value:!0});const aR=aI(f);var aO={};function a$(e,t,r){let n=new aT(e,t,r);process.stdout.write(n.toString()+aR.EOL);}Object.defineProperty(aO,"__esModule",{value:!0}),aO.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},aS.issueCommand=a$,aS.issue=function(e,t=""){a$(e,{},t);};class aT{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}=${aO.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+`::${(e=this.message,aO.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}`;}}var aC={},aA=aC&&aC.__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(aC,"__esModule",{value:!0});const a_=aA(m),aP=aA(f);aC.issueCommand=function(e,t){let r=process.env[`GITHUB_${e}`];if(!r)throw Error(`Unable to find environment variable for file command ${e}`);if(!a_.existsSync(r))throw Error(`Missing file at path: ${r}`);a_.appendFileSync(r,`${aO.toCommandValue(t)}${aP.EOL}`,{encoding:"utf8"});};const aN=ab(f),aL=ab(h);function aD(e){aS.issue("error",e instanceof Error?e.toString():e);}function ak(e){aS.issue("group",e);}function aU(){aS.issue("endgroup");}(c=d=aw.ExitCode||(aw.ExitCode={}))[c.Success=0]="Success",c[c.Failure=1]="Failure",aw.exportVariable=function(e,t){let r=aO.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n){let t="_GitHubActionsFileCommandDelimeter_",n=`${e}<<${t}${aN.EOL}${r}${aN.EOL}${t}`;aC.issueCommand("ENV",n);}else aS.issueCommand("set-env",{name:e},r);},aw.setSecret=function(e){aS.issueCommand("add-mask",{},e);},aw.addPath=function(e){let t=process.env.GITHUB_PATH||"";t?aC.issueCommand("PATH",e):aS.issueCommand("add-path",{},e),process.env.PATH=`${e}${aL.delimiter}${process.env.PATH}`;},aw.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();},aw.setOutput=function(e,t){aS.issueCommand("set-output",{name:e},t);},aw.setCommandEcho=function(e){aS.issue("echo",e?"on":"off");},aw.setFailed=function(e){process.exitCode=d.Failure,aD(e);},aw.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},aw.debug=function(e){aS.issueCommand("debug",{},e);},aw.error=aD,aw.warning=function(e){aS.issue("warning",e instanceof Error?e.toString():e);},aw.info=function(e){process.stdout.write(e+aN.EOL);},aw.startGroup=ak,aw.endGroup=aU,aw.group=function(e,t){return ax(this,void 0,void 0,function*(){let r;ak(e);try{r=yield t();}finally{aU();}return r;});},aw.saveState=function(e,t){aS.issueCommand("save-state",{name:e},t);},aw.getState=function(e){return process.env[`STATE_${e}`]||"";};const aj=C.env["ProgramFiles(x86)"],aM=[C.env["ProgramFiles(x86)"],C.env.ProgramFiles],aF=["Enterprise","Professional","Community"],aG=["2022","2019","2017"],aB={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};function aH(e){if(Object.values(aB).includes(e));else if(e in aB)return aB[e];return e;}const aV=`${aj}\\Microsoft Visual Studio\\Installer`;function aX(e){let t;let r=aH(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return I.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){aw.warning(`vswhere failed: ${e}`);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&m.existsSync(n))return aw.info(`Found with vswhere: ${n}`),n;aw.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(aB).includes(e));else for(let[t,r]of Object.entries(aB))if(r===e)return t;return e;}(e)]:aG;for(let e of aM)for(let t of i)for(let r of aF)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,aw.info(`Trying standard location: ${n}`),m.existsSync(n))return aw.info(`Found standard location: ${n}`),n;if(aw.info("Not found in standard locations"),n=`${aj}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,m.existsSync(n))return aw.info(`Found VS 2015: ${n}`),n;throw aw.info(`Not found in VS 2015 location: ${n}`),Error("Microsoft Visual Studio not found");}p=function(e,t,r,n,i,o){if("win32"!=C.platform){aw.info("This is not a Windows virtual environment, bye!");return;}C.env.PATH+=h.delimiter+aV;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 l=`"${aX(o)}" ${a.join(" ")}`;aw.debug(`vcvars command-line: ${l}`);let c=I.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString(),u=c.split("\f"),p=u[0].split("\r\n"),d=u[1].split("\r\n"),f=u[2].split("\r\n"),m=d.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(m.length>0)throw Error("invalid parameters\r\n"+m.join("\r\n"));let g={};for(let e of p){let[t,r]=e.split("=");g[t]=r;}for(let e of(aw.startGroup("Environment variables"),f)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==g[t]&&(aw.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(";")),aw.exportVariable(t,r));}aw.endGroup(),aw.info("Configured Developer Command Prompt");};var q=V("ER74K"),nF=V("dOmbL");async function aq(e,t,r,n,i,o,s){void 0!==t&&(await(0,nF.pathExists)(t))&&((0,q.info)(`Adding ${t} to PATH`),await nB("VCTargetsPath",t)),p(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);}class aK extends Error{constructor(e){super(e),this.name="TimeoutError";}}class az extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const aW=e=>void 0===globalThis.DOMException?new az(e):new DOMException(e),aY=e=>{let t=void 0===e.reason?aW("This operation was aborted."):e.reason;return t instanceof Error?t:aW(t);};async function aJ(e,t,r,n,i,o,s,a=12e5){(0,rv.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:s={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,a=new Promise((a,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(aY(e)),e.addEventListener("abort",()=>{l(aY(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new aK();r=s.setTimeout.call(void 0,()=>{if(i){try{a(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?a():o instanceof Error?l(o):(c.message=o??`Promise timed out after ${n} milliseconds`,l(c));},n),(async()=>{try{a(await e);}catch(e){l(e);}})();}),l=a.finally(()=>{l.clear();});return l.clear=()=>{s.clearTimeout.call(void 0,r),r=void 0;},l;}(aQ(e,t,r,n,l,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,q.error)(t),s.push(`${e} failed to install`);}return(0,rv.endGroup)(),l;}async function aQ(e,t,r,n,i,o,s){let a;if("vcvarsall"===e)await aq(sq(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let s=lC[e];i=["llvm","clangformat","clangtidy"].includes(e);let l=(0,oo.join)(o,i?"llvm":e);a=await s(sq(e,t,r),l,n);}return s.push(lP(e,a)),i;}const{readFile:aZ,writeFile:a0,chmod:a1}=m.promises;async function a2(e){let t=`/usr/lib/llvm-${e}`;await i4([{name:"curl"}]),await iU("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let r=await a3("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh");return await i4(r),await a1("/tmp/llvm-setup-cpp.sh","755"),await t6("bash",["/tmp/llvm-setup-cpp.sh",`${e}`,"all"],{stdio:"inherit",shell:!0,timeout:12e5}),await nH(`${t}/bin`),{installDir:`${t}`,binDir:`${t}/bin`,bin:`${t}/bin/clang++`};}async function a3(e,t){var r,n;let i=await aZ(e,"utf-8");return i=(r=i,i=process.env.NODE_DEBUG?r:r.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),n=i=await a4(i),i=i8()?n.replace(/apt-get/g,"nala"):n,await a0(t,i),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function a4(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -y --fix-broken');return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await oi(r))&&((0,j.info)(`Removing conflicting package ${r}`),t=t.replace(e,""));})),t;}var o9=V("1ndHP"),q=V("ER74K"),oo=V("ceI0e");const a6=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","16.0.5","16.0.6"]),a5=new Set(["10.0.1","15.0.5","15.0.6"]),a8=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","16.0.5","16.0.6"]),a9=new Map(),a7={"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"},le="16.0.4";function lt(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function lr(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function ln(e){let t;if(a5.has(e))return null;let r="LLVM-",n=F(o9)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=F(o9)(e,"9.0.1"),o=!1;return i&&(t=lr(e,r,n),(await sb(t))||(o=!0)),(o||!i)&&(t=lt(e,r,n)),t;}function li(e,t){switch(e){case"darwin":return function(e){if(a8.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return F(o9)(e,"9.0.1")?lr(e,r,n):lt(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=a9.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!a6.has(e))throw Error(`Unsupported Ubuntu version: ${e}`);t=n.replace(e,""),n=sR(a6,e)[0];}else""!==n&&n in a7?t=a7[n]:(t=a7[le],(0,q.warning)(`Falling back to LLVM version ${le} ${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`,F(o9)(n,"9.0.1"))?lr(n,o,r):lt(n,o,r);}(t);case"win32":return ln(t);default:return null;}}async function lo(e,t,r){let[n,i]=await sO(a6,t,e,li);return(0,q.info)(`specific llvm version: ${n}`),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,oo.addExeExt)("clang"),extractFunction:"win32"===t?sl:(e,t)=>su(e,t,["--strip-components=1"])};}var ls=h.resolve(__dirname,"../../src/llvm");async function la(e,t,r){let n=await lc(e,t,r);return await lg(n.installDir??t),n;}async function ll(e,t,r){let[n,i,o]=await Promise.all([lp(e,t,r),lm(r),lv()]);return n;}const lc=sy(ll,{isPromise:!0});function lu(e,t,r){return lp(e,t,r);}async function lp(e,t,r){let n=function(e){if(null===F(sI)(e))try{let t=F(o7)(e);if(null!==t)return(0,q.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e),i=parseInt(n.split(".")[0],10);try{if(oE())return await a2(i);}catch(e){(0,q.info)(`Failed to install llvm via system package manager ${e}`);}let o=await si("llvm",e,lo,t,r);return await lf(i),o;}async function ld(e){oE()&&(e<=10?await i4([{name:"libtinfo5"}]):await i4([{name:"libtinfo-dev"}]));}const lf=sy(ld,{isPromise:!0});async function lh(e){"linux"===process.platform&&(await aa(sq("gcc",void 0,await sJ()),"",e));}const lm=sy(lh,{isPromise:!0});async function lg(e){let t=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",n=[nB("LLVM_PATH",e),nB("LD_LIBRARY_PATH",`${e}/lib${h.delimiter}${t}`),nB("DYLD_LIBRARY_PATH",`${e}/lib${h.delimiter}${r}`),nB("LDFLAGS",`-L"${e}/lib"`),nB("CPPFLAGS",`-I"${e}/include"`),nB("CC",(0,oo.addExeExt)(`${e}/bin/clang`)),nB("CXX",(0,oo.addExeExt)(`${e}/bin/clang++`)),nB("LIBRARY_PATH",`${e}/lib`),an()];oE()&&n.push(on("cc",`${e}/bin/clang`),on("cxx",`${e}/bin/clang++`),on("clang",`${e}/bin/clang`),on("clang++",`${e}/bin/clang++`),on("lld",`${e}/bin/lld`),on("ld.lld",`${e}/bin/ld.lld`),on("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(n);}async function lv(){if(X.GITHUB_ACTIONS){let e=(0,oo.join)(ls,"llvm_matcher.json");if(!(await(0,nF.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 lE(e,t,r){switch(process.platform){case"win32":return of("make",e);case"darwin":return await ou("make",e),await nH("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(oh())return ob("make",e);if(om())return og([{name:"make",version:e}]);if(oE())return i4([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}var X=V("dTX7a"),oo=V("ceI0e"),q=V("ER74K"),nF=V("dOmbL"),ly=h.resolve(__dirname,"../../src/msvc");async function lw(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=aH(e);(0,q.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=aX(l);c=!0,(0,q.info)(`Found the pre-installed version of MSVC at ${e}`);}catch{}if(!c)try{"14.0"===l?(s="14.0",await of("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(s="14.16",await of("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(s="14.29",await of("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(s=void 0,await of("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 aq(l,a,r,s,n,i,o),X.GITHUB_ACTIONS&&(await lx());}async function lx(){let e=(0,oo.join)(ly,"msvc_matcher.json");if(!(await(0,nF.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 lb(e,t,r){if(!oE())return;if("string"==typeof i)return{binDir:i};let n=F(iB).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,oo.dirname)(n)};let o=await or("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");t4("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await i4([{name:"nala"}],!0):await i4([{name:"nala-legacy"}],!0);}catch(e){await i4([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function lS(e,t,r){if("win32"!==process.platform)return;await of("opencppcoverage",e);let n=await lI();return{binDir:n};}async function lI(){let e="C:/Program Files/OpenCppCoverage";return await nH(e),e;}async function lR(e,t,r){switch(process.platform){case"win32":{await of("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await nH(t),{binDir:t};}case"darwin":return ou("powershell",e,["--cask"]);case"linux":if(oh())return ob("powershell-bin",e,"yay");if(om())return og([{name:"curl"}]),t4("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),og([{name:"powershell",version:e}]);if(oE()){await i4([{name:"curl"}]);let t=await sJ(),r=`${t[0]}.0${t[1]}`;return t4("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),t4("dpkg",["-i","packages-microsoft-prod.deb"]),i4([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}var oo=(V("ceI0e"),V("ceI0e"));function lO(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,oo.addExeExt)("task"),extractedFolderName:"",extractFunction:i?sc:su,url:`https://github.com/go-task/task/releases/download/v${e}/task_${"win32"===t?"windows":t}_${n}.${i?"zip":"tar.gz"}`};}var q=V("ER74K"),nF=V("dOmbL"),oo=V("ceI0e");let l$=!1;async function lT(e,t,r){return l$&&null!==F(iB).sync("vcpkg",{nothrow:!0})?{binDir:(0,oo.dirname)(F(iB).sync("vcpkg"))}:("linux"===process.platform&&(oh()?await Promise.all([ob("curl"),ob("zip"),ob("unzip"),ob("tar"),ob("git"),ob("pkg-config")]):om()?await og([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):oE()&&(await i4([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,nF.pathExists)((0,oo.join)(t,(0,oo.addShExt)("bootstrap-vcpkg",".bat"))))?(0,q.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):ij("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,oo.dirname)(t),stdio:"inherit"}),ij((0,oo.addShExt)((0,oo.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),nj(t),await nH(t),l$=!0,{binDir:t});}const lC={nala:lb,cmake:sd,ninja:af,python:sL,vcpkg:lT,bazel:oy,conan:s4,meson:function(e,t,r){return sZ("meson",e);},gcovr:function(e,t,r){return sZ("gcovr",e);},opencppcoverage:lS,llvm:la,gcc:aa,choco:op,brew:oa,powershell:lR,ccache:function(e,t,r){switch(process.platform){case"win32":return of("ccache",e);case"darwin":return ou("ccache",e);case"linux":if(oh())return ob("ccache",e);if(om())return og([{name:"ccache",version:e}]);if(oE())return i4([{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 of("sccache",e);case"linux":case"darwin":return ou("sccache",e);default:throw Error("Unsupported platform");}},doxygen:ae,graphviz:s8,cppcheck:s6,clangtidy:lu,clangformat:lu,msvc:lw,vcvarsall:aq,kcov:ay,make:lE,task:function(e,t,r){return si("task",e,lO,t,r);},sevenzip:so},lA=Object.keys(lC),l_=["compiler","architecture","timeout",...lA];function lP(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 rv=V("lcRzN"),q=V("ER74K"),sI=V("eJTZB");async function lN(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==F(sI)(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,rv.startGroup)(`Installing ${a} ${l??""}`),a){case"llvm":case"clang":case"clang++":{let e=await la(sq("llvm",l,t),(0,h.join)(r,"llvm"),n);await nB("GCOV","llvm-cov gcov"),i.push(lP("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?sq("mingw",l,t):sq("gcc",l,t),s="mingw"===a?await al(e,(0,h.join)(r,"gcc"),n):await aa(e,(0,h.join)(r,"gcc"),n);o&&(await nB("CPPFLAGS","")),await function(e){let t=F(sI)(e),r=null!==t?F(ar)(t):e,n=""!==r?`gcov-${r}`:"gcov";return nB("GCOV",n);}(e),i.push(lP("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await lw(sq("msvc",l,t),(0,h.join)(r,"msvc"),n);o&&(await nB("CPPFLAGS","")),i.push(lP("msvc",e));break;}case"appleclang":case"applellvm":(0,rv.notice)("Assuming apple-clang is already installed"),await Promise.all([nB("CC","clang"),nB("CXX","clang++")]),i.push(lP("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,rv.endGroup)();}(async function(e){let t,r,n=Promise.resolve();X.GITHUB_ACTIONS||(n=rg(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let i=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=rE(t.string),t.boolean=rE(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=rE(t.alias[r]);l<n.length;l++)(t.alias[n[l]]=n.concat(r)).splice(l,1);for(l=t.boolean.length;l-->0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-->0;)t.boolean.push(n[c]);for(l=t.string.length;l-->0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-->0;)t.string.push(n[c]);if(h){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),l=0;l<n.length;l++)t[o].push(n[l]);}let m=f?Object.keys(t.alias):[];for(l=0;l<p;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break;}for(c=0;c<i.length&&45===i.charCodeAt(c);c++);if(0===c)a._.push(i);else if("no-"===i.substring(c,c+3)){if(o=i.substring(c+3),f&&!~m.indexOf(o))return t.unknown(i);a[o]=!1;}else{for(u=c+1;u<i.length&&61!==i.charCodeAt(u);u++);for(o=i.substring(c,u),s=i.substring(++u)||l+1===p||45===(""+e[l+1]).charCodeAt(0)||e[++l],n=2===c?[o]:o,u=0;u<n.length;u++){if(o=n[u],f&&!~m.indexOf(o))return t.unknown("-".repeat(c)+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(h)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(d)for(r in a)for(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a;}(e,{string:[...l_,"timeout"],default:Object.fromEntries(l_.map(e=>[e,function(e){let t=(0,rv.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});i.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.
--timeout the timeout for the installation of each tool in minutes. By default it is 10 minutes.
--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 o=i.architecture??process.arch,s=process.env.SETUP_CPP_DIR??t5(""),a=[],l=[],c=W.create({autoloadLocales:!0});W.addLocale(F(Y)),K.addLocale(F(z));let u=await sJ();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!sK(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(i,["llvm","clangtidy","clangformat"]))return(0,q.error)("The same version must be used for llvm, clangformat and clangtidy"),1;oh()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&((0,q.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await ob("python-pygments"));let p=!1,d=!1;for(let e of lA){if(X.isCI&&0!==l.length){d=!0;break;}let n=i[e];void 0!==n&&(t=Date.now(),p=await aJ(e,n,u,o,s,a,l,6e4*parseFloat(i.timeout??"20")),r=Date.now(),(0,q.info)(`took ${c.format(t,r)||"0 seconds"}`));}if(!d){let e=i.compiler;if(void 0!==e){let t=Date.now();await lN(e,u,s,o,a,p,l);let r=Date.now();(0,q.info)(`took ${c.format(t,r)||"0 seconds"}`);}}if(await nW(),0===a.length&&0===l.length)return(0,q.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(a.forEach(e=>(0,q.success)(e)),l.forEach(e=>(0,q.error)(e)),(0,q.info)("setup-cpp finished"),!X.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 n,0===l.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