diff --git a/README.md b/README.md
index c241bd8d..7c253a6c 100644
--- a/README.md
+++ b/README.md
@@ -55,16 +55,16 @@ jobs:
-- service: _(Optional)_ ID of the service or fully-qualified identifier of the service. This is
+- service: _(Optional)_ ID of the service or fully-qualified identifier of the service. This is
required unless providing `metadata` or `job`.
-- job: _(Optional)_ ID of the job or fully-qualified identifier of the job. This is required
+- job: _(Optional)_ ID of the job or fully-qualified identifier of the job. This is required
unless providing `metadata` or `service`.
-- metadata: _(Optional)_ YAML service description for the Cloud Run service. This is required
+- metadata: _(Optional)_ YAML service description for the Cloud Run service. This is required
unless providing `service` or `job`.
-- image: _(Optional)_ (Required, unless providing `metadata` or `source`) Fully-qualified name
+- image: _(Optional)_ (Required, unless providing `metadata` or `source`) Fully-qualified name
of the container image to deploy. For example:
us-docker.pkg.dev/cloudrun/container/hello:latest
@@ -73,19 +73,19 @@ jobs:
us-docker.pkg.dev/my-project/my-container/image:1.2.3
-- source: _(Optional)_ (Required, unless providing `metadata`, `image`, or `job`) Path to source
+- source: _(Optional)_ (Required, unless providing `metadata`, `image`, or `job`) Path to source
to deploy. If specified, this will deploy the Cloud Run service from the
code specified at the given source directory.
Learn more about the required permissions in [Deploying from source
code](https://cloud.google.com/run/docs/deploying-source-code).
-- suffix: _(Optional)_ String suffix to append to the revision name. Revision names always start
+- suffix: _(Optional)_ String suffix to append to the revision name. Revision names always start
with the service name automatically. For example, specifying `v1` for a
service named `helloworld`, would lead to a revision named
`helloworld-v1`. This option only applies to services.
-- env_vars: _(Optional)_ List of environment variables that should be set in the environment.
+- env_vars: _(Optional)_ List of environment variables that should be set in the environment.
These are comma-separated or newline-separated `KEY=VALUE`. Keys or values
that contain separators must be escaped with a backslash (e.g. `\,` or
`\\n`) unless quoted. Any leading or trailing whitespace is trimmed unless
@@ -102,7 +102,7 @@ jobs:
If both `env_vars` and `env_vars_file` are specified, the keys in
`env_vars` will take precedence over the keys in `env_vars_file`.
-- env_vars_file: _(Optional)_ Path to a file on disk, relative to the workspace, that defines
+- env_vars_file: _(Optional)_ Path to a file on disk, relative to the workspace, that defines
environment variables. The file can be newline-separated KEY=VALUE pairs,
JSON, or YAML format. If both `env_vars` and `env_vars_file` are
specified, the keys in env_vars will take precedence over the keys in
@@ -120,13 +120,13 @@ jobs:
**⚠️ DEPRECATION NOTICE:** This input is deprecated and will be removed in
the next major version release.
-- env_vars_update_strategy: _(Required, default: `merge`)_ Controls how the environment variables are set on the Cloud Run service.
+- env_vars_update_strategy: _(Required, default: `merge`)_ Controls how the environment variables are set on the Cloud Run service.
If set to "merge", then the environment variables are _merged_ with any
upstream values. If set to "overwrite", then all environment variables on
the Cloud Run service will be replaced with exactly the values given by
the GitHub Action (making it authoritative).
-- secrets: _(Optional)_ List of KEY=VALUE pairs to use as secrets. These are comma-separated or
+- secrets: _(Optional)_ List of KEY=VALUE pairs to use as secrets. These are comma-separated or
newline-separated `KEY=VALUE`. Keys or values that contain separators must
be escaped with a backslash (e.g. `\,` or `\\n`) unless quoted. Any
leading or trailing whitespace is trimmed unless values are quoted.
@@ -147,13 +147,13 @@ jobs:
non-empty value is given, the field values will be overwritten (not
merged). To remove all values, set the value to the literal string `{}`.
-- secrets_update_strategy: _(Required, default: `merge`)_ Controls how the secrets are set on the Cloud Run service. If set to
+- secrets_update_strategy: _(Required, default: `merge`)_ Controls how the secrets are set on the Cloud Run service. If set to
`merge`, then the secrets are merged with any upstream values. If set to
`overwrite`, then all secrets on the Cloud Run service will be replaced
with exactly the values given by the GitHub Action (making it
authoritative).
-- labels: _(Optional)_ List of labels that should be set on the function. These are
+- labels: _(Optional)_ List of labels that should be set on the function. These are
comma-separated or newline-separated `KEY=VALUE`. Keys or values that
contain separators must be escaped with a backslash (e.g. `\,` or `\\n`)
unless quoted. Any leading or trailing whitespace is trimmed unless values
@@ -170,7 +170,7 @@ jobs:
Google Cloud restricts the allowed values and length for labels. Please
see the Google Cloud documentation for labels for more information.
-- skip_default_labels: _(Optional, default: `false`)_ Skip applying the special annotation labels that indicate the deployment
+- skip_default_labels: _(Optional, default: `false`)_ Skip applying the special annotation labels that indicate the deployment
came from GitHub Actions. The GitHub Action will automatically apply the
following labels which Cloud Run uses to enhance the user experience:
@@ -179,13 +179,13 @@ jobs:
Setting this to `true` will skip adding these special labels.
-- tag: _(Optional)_ Traffic tag to assign to the newly-created revision. This option only
+- tag: _(Optional)_ Traffic tag to assign to the newly-created revision. This option only
applies to services.
-- timeout: _(Optional)_ Maximum request execution time, specified as a duration like "10m5s" for
+- timeout: _(Optional)_ Maximum request execution time, specified as a duration like "10m5s" for
ten minutes and 5 seconds.
-- flags: _(Optional)_ Space separate list of additional Cloud Run flags to pass to the deploy
+- flags: _(Optional)_ Space separate list of additional Cloud Run flags to pass to the deploy
command. This can be used to apply advanced features that are not exposed
via this GitHub Action. For Cloud Run services, this command will be
`gcloud run deploy`. For Cloud Run jobs, this command will be `gcloud jobs
@@ -208,10 +208,13 @@ jobs:
are responsible for making sure the flags are available on the gcloud
version and subcommand.
-- no_traffic: _(Optional, default: `false`)_ If true, the newly deployed revision will not receive traffic. This option
+- no_traffic: _(Optional, default: `false`)_ If true, the newly deployed revision will not receive traffic. This option
only applies to services.
-- revision_traffic: _(Optional)_ Comma-separated list of revision traffic assignments.
+- wait: _(Optional, default: `true`)_ If true, the action will wait for the job to complete before exiting. This
+ option only applies to jobs.
+
+- revision_traffic: _(Optional)_ Comma-separated list of revision traffic assignments.
with:
revision_traffic: 'my-revision=10' # percentage
@@ -224,7 +227,7 @@ jobs:
This is mutually-exclusive with `tag_traffic`. This option only applies
to services.
-- tag_traffic: _(Optional)_ Comma-separated list of tag traffic assignments.
+- tag_traffic: _(Optional)_ Comma-separated list of tag traffic assignments.
with:
tag_traffic: 'my-tag=10' # percentage
@@ -232,7 +235,7 @@ jobs:
This is mutually-exclusive with `revision_traffic`. This option only
applies to services.
-- update_traffic_flags: _(Optional)_ Space separate list of additional Cloud Run flags to pass to the `gcloud
+- update_traffic_flags: _(Optional)_ Space separate list of additional Cloud Run flags to pass to the `gcloud
run services update-traffic` command. This can be used to apply advanced
features that are not exposed via this GitHub Action. This flag only
applies when `revision_traffic` or `tag_traffic` is set.
@@ -254,15 +257,15 @@ jobs:
are responsible for making sure the flags are available on the gcloud
version and subcommand.
-- project_id: _(Optional)_ ID of the Google Cloud project in which to deploy the service.
+- project_id: _(Optional)_ ID of the Google Cloud project in which to deploy the service.
-- region: _(Optional, default: `us-central1`)_ Region in which the Cloud Run services are deployed.
+- region: _(Optional, default: `us-central1`)_ Region in which the Cloud Run services are deployed.
-- gcloud_version: _(Optional)_ Version of the Cloud SDK to install. If unspecified or set to "latest",
+- gcloud_version: _(Optional)_ Version of the Cloud SDK to install. If unspecified or set to "latest",
the latest available gcloud SDK version for the target platform will be
installed. Example: "290.0.1".
-- gcloud_component: _(Optional)_ Version of the Cloud SDK components to install and use.
+- gcloud_component: _(Optional)_ Version of the Cloud SDK components to install and use.
@@ -314,7 +317,7 @@ automatically private services, while deploying a revision of a public
-- `url`: The URL of the Cloud Run service.
+- url: The URL of the Cloud Run service.
diff --git a/dist/main/index.js b/dist/main/index.js
index e7e69e8f..b67d4a55 100644
--- a/dist/main/index.js
+++ b/dist/main/index.js
@@ -1,5 +1,5 @@
-(()=>{var __webpack_modules__={4914:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=n(A(857));const o=A(302);function issueCommand(e,t,A){const s=new Command(e,t,A);process.stdout.write(s.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,A){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=A}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const A in this.properties){if(this.properties.hasOwnProperty(A)){const s=this.properties[A];if(s){if(t){t=false}else{e+=","}e+=`${A}=${escapeProperty(s)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,o.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,o.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},7484:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.platform=t.toPlatformPath=t.toWin32Path=t.toPosixPath=t.markdownSummary=t.summary=t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=A(4914);const a=A(4753);const c=A(302);const l=n(A(857));const u=n(A(6928));const g=A(5306);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h||(t.ExitCode=h={}));function exportVariable(e,t){const A=(0,c.toCommandValue)(t);process.env[e]=A;const s=process.env["GITHUB_ENV"]||"";if(s){return(0,a.issueFileCommand)("ENV",(0,a.prepareKeyValueMessage)(e,t))}(0,o.issueCommand)("set-env",{name:e},A)}t.exportVariable=exportVariable;function setSecret(e){(0,o.issueCommand)("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){(0,a.issueFileCommand)("PATH",e)}else{(0,o.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const A=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!A){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return A}return A.trim()}t.getInput=getInput;function getMultilineInput(e,t){const A=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return A}return A.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const A=["true","True","TRUE"];const s=["false","False","FALSE"];const r=getInput(e,t);if(A.includes(r))return true;if(s.includes(r))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const A=process.env["GITHUB_OUTPUT"]||"";if(A){return(0,a.issueFileCommand)("OUTPUT",(0,a.prepareKeyValueMessage)(e,t))}process.stdout.write(l.EOL);(0,o.issueCommand)("set-output",{name:e},(0,c.toCommandValue)(t))}t.setOutput=setOutput;function setCommandEcho(e){(0,o.issue)("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){(0,o.issueCommand)("debug",{},e)}t.debug=debug;function error(e,t={}){(0,o.issueCommand)("error",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){(0,o.issueCommand)("warning",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){(0,o.issueCommand)("notice",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){(0,o.issue)("group",e)}t.startGroup=startGroup;function endGroup(){(0,o.issue)("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,(function*(){startGroup(e);let A;try{A=yield t()}finally{endGroup()}return A}))}t.group=group;function saveState(e,t){const A=process.env["GITHUB_STATE"]||"";if(A){return(0,a.issueFileCommand)("STATE",(0,a.prepareKeyValueMessage)(e,t))}(0,o.issueCommand)("save-state",{name:e},(0,c.toCommandValue)(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var E=A(1847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return E.summary}});var f=A(1847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return f.markdownSummary}});var d=A(1976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return d.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return d.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return d.toPlatformPath}});t.platform=n(A(8968))},4753:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=n(A(6982));const o=n(A(9896));const a=n(A(857));const c=A(302);function issueFileCommand(e,t){const A=process.env[`GITHUB_${e}`];if(!A){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(A)){throw new Error(`Missing file at path: ${A}`)}o.appendFileSync(A,`${(0,c.toCommandValue)(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const A=`ghadelimiter_${i.randomUUID()}`;const s=(0,c.toCommandValue)(t);if(e.includes(A)){throw new Error(`Unexpected input: name should not contain the delimiter "${A}"`)}if(s.includes(A)){throw new Error(`Unexpected input: value should not contain the delimiter "${A}"`)}return`${e}<<${A}${a.EOL}${s}${a.EOL}${A}`}t.prepareKeyValueMessage=prepareKeyValueMessage},5306:function(e,t,A){"use strict";var s=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const r=A(4844);const n=A(4552);const i=A(7484);class OidcClient{static createHttpClient(e=true,t=10){const A={allowRetries:e,maxRetries:t};return new r.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(OidcClient.getRequestToken())],A)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return s(this,void 0,void 0,(function*(){const A=OidcClient.createHttpClient();const s=yield A.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const r=(t=s.result)===null||t===void 0?void 0:t.value;if(!r){throw new Error("Response json body do not have ID Token field")}return r}))}static getIDToken(e){return s(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const A=encodeURIComponent(e);t=`${t}&audience=${A}`}(0,i.debug)(`ID token url is ${t}`);const A=yield OidcClient.getCall(t);(0,i.setSecret)(A);return A}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},1976:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=n(A(6928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},8968:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getDetails=t.isLinux=t.isMacOS=t.isWindows=t.arch=t.platform=void 0;const a=o(A(857));const c=n(A(5236));const getWindowsInfo=()=>i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>i(void 0,void 0,void 0,(function*(){var e,t,A,s;const{stdout:r}=yield c.getExecOutput("sw_vers",undefined,{silent:true});const n=(t=(e=r.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const i=(s=(A=r.match(/ProductName:\s*(.+)/))===null||A===void 0?void 0:A[1])!==null&&s!==void 0?s:"";return{name:i,version:n}}));const getLinuxInfo=()=>i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,A]=e.trim().split("\n");return{name:t,version:A}}));t.platform=a.default.platform();t.arch=a.default.arch();t.isWindows=t.platform==="win32";t.isMacOS=t.platform==="darwin";t.isLinux=t.platform==="linux";function getDetails(){return i(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield t.isWindows?getWindowsInfo():t.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:t.platform,arch:t.arch,isWindows:t.isWindows,isMacOS:t.isMacOS,isLinux:t.isLinux})}))}t.getDetails=getDetails},1847:function(e,t,A){"use strict";var s=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const r=A(857);const n=A(9896);const{access:i,appendFile:o,writeFile:a}=n.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return s(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,n.constants.R_OK|n.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,A={}){const s=Object.entries(A).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${s}>`}return`<${e}${s}>${t}${e}>`}write(e){return s(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const A=yield this.filePath();const s=t?a:o;yield s(A,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return s(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(r.EOL)}addCodeBlock(e,t){const A=Object.assign({},t&&{lang:t});const s=this.wrap("pre",this.wrap("code",e),A);return this.addRaw(s).addEOL()}addList(e,t=false){const A=t?"ol":"ul";const s=e.map((e=>this.wrap("li",e))).join("");const r=this.wrap(A,s);return this.addRaw(r).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:A,colspan:s,rowspan:r}=e;const n=t?"th":"td";const i=Object.assign(Object.assign({},s&&{colspan:s}),r&&{rowspan:r});return this.wrap(n,A,i)})).join("");return this.wrap("tr",t)})).join("");const A=this.wrap("table",t);return this.addRaw(A).addEOL()}addDetails(e,t){const A=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(A).addEOL()}addImage(e,t,A){const{width:s,height:r}=A||{};const n=Object.assign(Object.assign({},s&&{width:s}),r&&{height:r});const i=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(i).addEOL()}addHeading(e,t){const A=`h${t}`;const s=["h1","h2","h3","h4","h5","h6"].includes(A)?A:"h1";const r=this.wrap(s,e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const A=Object.assign({},t&&{cite:t});const s=this.wrap("blockquote",e,A);return this.addRaw(s).addEOL()}addLink(e,t){const A=this.wrap("a",e,{href:t});return this.addRaw(A).addEOL()}}const c=new Summary;t.markdownSummary=c;t.summary=c},302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},5236:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const o=A(3193);const a=n(A(6665));function exec(e,t,A){return i(this,void 0,void 0,(function*(){const s=a.argStringToArray(e);if(s.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const r=s[0];t=s.slice(1).concat(t||[]);const n=new a.ToolRunner(r,t,A);return n.exec()}))}t.exec=exec;function getExecOutput(e,t,A){var s,r;return i(this,void 0,void 0,(function*(){let n="";let i="";const a=new o.StringDecoder("utf8");const c=new o.StringDecoder("utf8");const l=(s=A===null||A===void 0?void 0:A.listeners)===null||s===void 0?void 0:s.stdout;const u=(r=A===null||A===void 0?void 0:A.listeners)===null||r===void 0?void 0:r.stderr;const stdErrListener=e=>{i+=c.write(e);if(u){u(e)}};const stdOutListener=e=>{n+=a.write(e);if(l){l(e)}};const g=Object.assign(Object.assign({},A===null||A===void 0?void 0:A.listeners),{stdout:stdOutListener,stderr:stdErrListener});const h=yield exec(e,t,Object.assign(Object.assign({},A),{listeners:g}));n+=a.end();i+=c.end();return{exitCode:h,stdout:n,stderr:i}}))}t.getExecOutput=getExecOutput},6665:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const o=n(A(857));const a=n(A(4434));const c=n(A(5317));const l=n(A(6928));const u=n(A(4994));const g=n(A(5207));const h=A(3557);const E=process.platform==="win32";class ToolRunner extends a.EventEmitter{constructor(e,t,A){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=A||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const A=this._getSpawnFileName();const s=this._getSpawnArgs(e);let r=t?"":"[command]";if(E){if(this._isCmdFile()){r+=A;for(const e of s){r+=` ${e}`}}else if(e.windowsVerbatimArguments){r+=`"${A}"`;for(const e of s){r+=` ${e}`}}else{r+=this._windowsQuoteCmdArg(A);for(const e of s){r+=` ${this._windowsQuoteCmdArg(e)}`}}}else{r+=A;for(const e of s){r+=` ${e}`}}return r}_processLineBuffer(e,t,A){try{let s=t+e.toString();let r=s.indexOf(o.EOL);while(r>-1){const e=s.substring(0,r);A(e);s=s.substring(r+o.EOL.length);r=s.indexOf(o.EOL)}return s}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(E){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(E){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const A of this.args){t+=" ";t+=e.windowsVerbatimArguments?A:this._windowsQuoteCmdArg(A)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const 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'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let A=false;for(const s of e){if(t.some((e=>e===s))){A=true;break}}if(!A){return e}let s='"';let r=true;for(let t=e.length;t>0;t--){s+=e[t-1];if(r&&e[t-1]==="\\"){s+="\\"}else if(e[t-1]==='"'){r=true;s+='"'}else{r=false}}s+='"';return s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let A=true;for(let s=e.length;s>0;s--){t+=e[s-1];if(A&&e[s-1]==="\\"){t+="\\"}else if(e[s-1]==='"'){A=true;t+="\\"}else{A=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const A={};A.cwd=e.cwd;A.env=e.env;A["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){A.argv0=`"${t}"`}return A}exec(){return i(this,void 0,void 0,(function*(){if(!g.isRooted(this.toolPath)&&(this.toolPath.includes("/")||E&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise(((e,t)=>i(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const A=this._cloneExecOptions(this.options);if(!A.silent&&A.outStream){A.outStream.write(this._getCommandString(A)+o.EOL)}const s=new ExecState(A,this.toolPath);s.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield g.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const r=this._getSpawnFileName();const n=c.spawn(r,this._getSpawnArgs(A),this._getSpawnOptions(this.options,r));let i="";if(n.stdout){n.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!A.silent&&A.outStream){A.outStream.write(e)}i=this._processLineBuffer(e,i,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let a="";if(n.stderr){n.stderr.on("data",(e=>{s.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!A.silent&&A.errStream&&A.outStream){const t=A.failOnStdErr?A.errStream:A.outStream;t.write(e)}a=this._processLineBuffer(e,a,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}n.on("error",(e=>{s.processError=e.message;s.processExited=true;s.processClosed=true;s.CheckComplete()}));n.on("exit",(e=>{s.processExitCode=e;s.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);s.CheckComplete()}));n.on("close",(e=>{s.processExitCode=e;s.processExited=true;s.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);s.CheckComplete()}));s.on("done",((A,s)=>{if(i.length>0){this.emit("stdline",i)}if(a.length>0){this.emit("errline",a)}n.removeAllListeners();if(A){t(A)}else{e(s)}}));if(this.options.input){if(!n.stdin){throw new Error("child process missing stdin")}n.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let A=false;let s=false;let r="";function append(e){if(s&&e!=='"'){r+="\\"}r+=e;s=false}for(let n=0;n0){t.push(r);r=""}continue}append(i)}if(r.length>0){t.push(r.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=h.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const 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()}}},4552:function(e,t){"use strict";var A=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},4844:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const o=n(A(8611));const a=n(A(5692));const c=n(A(4988));const l=n(A(770));const u=A(6752);var g;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(g||(t.HttpCodes=g={}));var h;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(h||(t.Headers=h={}));var E;(function(e){e["ApplicationJson"]="application/json"})(E||(t.MediaTypes=E={}));function getProxyUrl(e){const t=c.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[g.MovedPermanently,g.ResourceMoved,g.SeeOther,g.TemporaryRedirect,g.PermanentRedirect];const d=[g.BadGateway,g.ServiceUnavailable,g.GatewayTimeout];const C=["OPTIONS","GET","DELETE","HEAD"];const Q=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(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())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,A){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=A;if(A){if(A.ignoreSslError!=null){this._ignoreSslError=A.ignoreSslError}this._socketTimeout=A.socketTimeout;if(A.allowRedirects!=null){this._allowRedirects=A.allowRedirects}if(A.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=A.allowRedirectDowngrade}if(A.maxRedirects!=null){this._maxRedirects=Math.max(A.maxRedirects,0)}if(A.keepAlive!=null){this._keepAlive=A.keepAlive}if(A.allowRetries!=null){this._allowRetries=A.allowRetries}if(A.maxRetries!=null){this._maxRetries=A.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,A||{})}))}patch(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,A||{})}))}put(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,A||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,A,s){return i(this,void 0,void 0,(function*(){return this.request(e,t,A,s)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[h.Accept]=this._getExistingOrDefaultHeader(t,h.Accept,E.ApplicationJson);const A=yield this.get(e,t);return this._processResponse(A,this.requestOptions)}))}postJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.post(e,s,A);return this._processResponse(r,this.requestOptions)}))}putJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.put(e,s,A);return this._processResponse(r,this.requestOptions)}))}patchJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.patch(e,s,A);return this._processResponse(r,this.requestOptions)}))}request(e,t,A,s){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const r=new URL(t);let n=this._prepareRequest(e,r,s);const i=this._allowRetries&&C.includes(e)?this._maxRetries+1:1;let o=0;let a;do{a=yield this.requestRaw(n,A);if(a&&a.message&&a.message.statusCode===g.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(a)){e=t;break}}if(e){return e.handleAuthentication(this,n,A)}else{return a}}let t=this._maxRedirects;while(a.message.statusCode&&f.includes(a.message.statusCode)&&this._allowRedirects&&t>0){const i=a.message.headers["location"];if(!i){break}const o=new URL(i);if(r.protocol==="https:"&&r.protocol!==o.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield a.readBody();if(o.hostname!==r.hostname){for(const e in s){if(e.toLowerCase()==="authorization"){delete s[e]}}}n=this._prepareRequest(e,o,s);a=yield this.requestRaw(n,A);t--}if(!a.message.statusCode||!d.includes(a.message.statusCode)){return a}o+=1;if(o{function callbackForResult(e,t){if(e){s(e)}else if(!t){s(new Error("Unknown error"))}else{A(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,A){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let s=false;function handleResult(e,t){if(!s){s=true;A(e,t)}}const r=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let n;r.on("socket",(e=>{n=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));r.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){r.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){r.end()}));t.pipe(r)}else{r.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const A=c.getProxyUrl(t);const s=A&&A.hostname;if(!s){return}return this._getProxyAgentDispatcher(t,A)}_prepareRequest(e,t,A){const s={};s.parsedUrl=t;const r=s.parsedUrl.protocol==="https:";s.httpModule=r?a:o;const n=r?443:80;s.options={};s.options.host=s.parsedUrl.hostname;s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):n;s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||"");s.options.method=e;s.options.headers=this._mergeHeaders(A);if(this.userAgent!=null){s.options.headers["user-agent"]=this.userAgent}s.options.agent=this._getAgent(s.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(s.options)}}return s}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,A){let s;if(this.requestOptions&&this.requestOptions.headers){s=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||s||A}_getAgent(e){let t;const A=c.getProxyUrl(e);const s=A&&A.hostname;if(this._keepAlive&&s){t=this._proxyAgent}if(!s){t=this._agent}if(t){return t}const r=e.protocol==="https:";let n=100;if(this.requestOptions){n=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(A&&A.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(A.username||A.password)&&{proxyAuth:`${A.username}:${A.password}`}),{host:A.hostname,port:A.port})};let s;const i=A.protocol==="https:";if(r){s=i?l.httpsOverHttps:l.httpsOverHttp}else{s=i?l.httpOverHttps:l.httpOverHttp}t=s(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:n};t=r?new a.Agent(e):new o.Agent(e);this._agent=t}if(r&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let A;if(this._keepAlive){A=this._proxyAgentDispatcher}if(A){return A}const s=e.protocol==="https:";A=new u.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=A;if(s&&this._ignoreSslError){A.options=Object.assign(A.options.requestTls||{},{rejectUnauthorized:false})}return A}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(Q,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((A,s)=>i(this,void 0,void 0,(function*(){const r=e.message.statusCode||0;const n={statusCode:r,result:null,headers:{}};if(r===g.NotFound){A(n)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){i=JSON.parse(o,dateTimeDeserializer)}else{i=JSON.parse(o)}n.result=i}n.headers=e.message.headers}catch(e){}if(r>299){let e;if(i&&i.message){e=i.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${r})`}const t=new HttpClientError(e,r);t.result=n.result;s(t)}else{A(n)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,A)=>(t[A.toLowerCase()]=e[A],t)),{})},4988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const A=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(A){try{return new DecodedURL(A)}catch(e){if(!A.startsWith("http://")&&!A.startsWith("https://"))return new DecodedURL(`http://${A}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const A=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!A){return false}let s;if(e.port){s=Number(e.port)}else if(e.protocol==="http:"){s=80}else if(e.protocol==="https:"){s=443}const r=[e.hostname.toUpperCase()];if(typeof s==="number"){r.push(`${r[0]}:${s}`)}for(const e of A.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||r.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},5207:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var o;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const a=n(A(9896));const c=n(A(6928));o=a.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.open=o.open,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rm=o.rm,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=a.constants.O_RDONLY;function exists(e){return i(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,A=false){return i(this,void 0,void 0,(function*(){const s=A?yield t.stat(e):yield t.lstat(e);return s.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,A){return i(this,void 0,void 0,(function*(){let s=undefined;try{s=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(s&&s.isFile()){if(t.IS_WINDOWS){const t=c.extname(e).toUpperCase();if(A.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(s)){return e}}}const r=e;for(const n of A){e=r+n;s=undefined;try{s=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(s&&s.isFile()){if(t.IS_WINDOWS){try{const A=c.dirname(e);const s=c.basename(e).toUpperCase();for(const r of yield t.readdir(A)){if(s===r.toUpperCase()){e=c.join(A,r);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(s)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},4994:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const o=A(2613);const a=n(A(6928));const c=n(A(5207));function cp(e,t,A={}){return i(this,void 0,void 0,(function*(){const{force:s,recursive:r,copySourceDirectory:n}=readCopyOptions(A);const i=(yield c.exists(t))?yield c.stat(t):null;if(i&&i.isFile()&&!s){return}const o=i&&i.isDirectory()&&n?a.join(t,a.basename(e)):t;if(!(yield c.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield c.stat(e);if(l.isDirectory()){if(!r){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,o,0,s)}}else{if(a.relative(e,o)===""){throw new Error(`'${o}' and '${e}' are the same file`)}yield copyFile(e,o,s)}}))}t.cp=cp;function mv(e,t,A={}){return i(this,void 0,void 0,(function*(){if(yield c.exists(t)){let s=true;if(yield c.isDirectory(t)){t=a.join(t,a.basename(e));s=yield c.exists(t)}if(s){if(A.force==null||A.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(t));yield c.rename(e,t)}))}t.mv=mv;function rmRF(e){return i(this,void 0,void 0,(function*(){if(c.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield c.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return i(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");yield c.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(c.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. 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 t}const A=yield findInPath(e);if(A&&A.length>0){return A[0]}return""}))}t.which=which;function findInPath(e){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(c.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(a.delimiter)){if(e){t.push(e)}}}if(c.isRooted(e)){const A=yield c.tryGetExecutablePath(e,t);if(A){return[A]}return[]}if(e.includes(a.sep)){return[]}const A=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){A.push(e)}}}const s=[];for(const r of A){const A=yield c.tryGetExecutablePath(a.join(r,e),t);if(A){s.push(A)}}return s}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const A=Boolean(e.recursive);const s=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:A,copySourceDirectory:s}}function cpDirRecursive(e,t,A,s){return i(this,void 0,void 0,(function*(){if(A>=255)return;A++;yield mkdirP(t);const r=yield c.readdir(e);for(const n of r){const r=`${e}/${n}`;const i=`${t}/${n}`;const o=yield c.lstat(r);if(o.isDirectory()){yield cpDirRecursive(r,i,A,s)}else{yield copyFile(r,i,s)}}yield c.chmod(t,(yield c.stat(e)).mode)}))}function copyFile(e,t,A){return i(this,void 0,void 0,(function*(){if((yield c.lstat(e)).isSymbolicLink()){try{yield c.lstat(t);yield c.unlink(t)}catch(e){if(e.code==="EPERM"){yield c.chmod(t,"0666");yield c.unlink(t)}}const A=yield c.readlink(e);yield c.symlink(A,t,c.IS_WINDOWS?"junction":null)}else if(!(yield c.exists(t))||A){yield c.copyFile(e,t)}}))}},8036:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const o=n(A(9318));const a=A(7484);const c=A(857);const l=A(5317);const u=A(9896);function _findMatch(t,A,s,r){return i(this,void 0,void 0,(function*(){const n=c.platform();let i;let l;let u;for(const i of s){const s=i.version;(0,a.debug)(`check ${s} satisfies ${t}`);if(o.satisfies(s,t)&&(!A||i.stable===A)){u=i.files.find((t=>{(0,a.debug)(`${t.arch}===${r} && ${t.platform}===${n}`);let A=t.arch===r&&t.platform===n;if(A&&t.platform_version){const s=e.exports._getOsVersion();if(s===t.platform_version){A=true}else{A=o.satisfies(s,t.platform_version)}}return A}));if(u){(0,a.debug)(`matched ${i.version}`);l=i;break}}}if(l&&u){i=Object.assign({},l);i.files=[u]}return i}))}t._findMatch=_findMatch;function _getOsVersion(){const t=c.platform();let A="";if(t==="darwin"){A=l.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){A=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return A}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let A="";if(u.existsSync(e)){A=u.readFileSync(e).toString()}else if(u.existsSync(t)){A=u.readFileSync(t).toString()}return A}t._readLinuxVersionFile=_readLinuxVersionFile},7380:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const o=n(A(7484));class RetryHelper{constructor(e,t,A){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(A);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return i(this,void 0,void 0,(function*(){let A=1;while(AsetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},3472:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const o=n(A(7484));const a=n(A(4994));const c=n(A(6982));const l=n(A(9896));const u=n(A(8036));const g=n(A(857));const h=n(A(6928));const E=n(A(4844));const f=n(A(9318));const d=n(A(2203));const C=n(A(9023));const Q=A(2613);const I=A(5236);const B=A(7380);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const p=process.platform==="win32";const y=process.platform==="darwin";const m="actions/tool-cache";function downloadTool(e,t,A,s){return i(this,void 0,void 0,(function*(){t=t||h.join(_getTempDirectory(),c.randomUUID());yield a.mkdirP(h.dirname(t));o.debug(`Downloading ${e}`);o.debug(`Destination ${t}`);const r=3;const n=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const u=new B.RetryHelper(r,n,l);return yield u.execute((()=>i(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",A,s)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,A,s){return i(this,void 0,void 0,(function*(){if(l.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const r=new E.HttpClient(m,[],{allowRetries:false});if(A){o.debug("set auth");if(s===undefined){s={}}s.authorization=A}const n=yield r.get(e,s);if(n.message.statusCode!==200){const t=new HTTPError(n.message.statusCode);o.debug(`Failed to download from "${e}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`);throw t}const i=C.promisify(d.pipeline);const c=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>n.message));const u=c();let g=false;try{yield i(u,l.createWriteStream(t));o.debug("download complete");g=true;return t}finally{if(!g){o.debug("download failed");try{yield a.rmRF(t)}catch(e){o.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,A){return i(this,void 0,void 0,(function*(){(0,Q.ok)(p,"extract7z() not supported on current OS");(0,Q.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);const s=process.cwd();process.chdir(t);if(A){try{const t=o.isDebug()?"-bb1":"-bb0";const s=["x",t,"-bd","-sccUTF-8",e];const r={silent:true};yield(0,I.exec)(`"${A}"`,s,r)}finally{process.chdir(s)}}else{const A=h.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`& '${A}' -Source '${r}' -Target '${n}'`;const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];const c={silent:true};try{const e=yield a.which("powershell",true);yield(0,I.exec)(`"${e}"`,o,c)}finally{process.chdir(s)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,A="xz"){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);o.debug("Checking tar --version");let s="";yield(0,I.exec)("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>s+=e.toString(),stderr:e=>s+=e.toString()}});o.debug(s.trim());const r=s.toUpperCase().includes("GNU TAR");let n;if(A instanceof Array){n=A}else{n=[A]}if(o.isDebug()&&!A.includes("v")){n.push("-v")}let i=t;let a=e;if(p&&r){n.push("--force-local");i=t.replace(/\\/g,"/");a=e.replace(/\\/g,"/")}if(r){n.push("--warning=no-unknown-keyword");n.push("--overwrite")}n.push("-C",i,"-f",a);yield(0,I.exec)(`tar`,n);return t}))}t.extractTar=extractTar;function extractXar(e,t,A=[]){return i(this,void 0,void 0,(function*(){(0,Q.ok)(y,"extractXar() not supported on current OS");(0,Q.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);let s;if(A instanceof Array){s=A}else{s=[A]}s.push("-x","-C",t,"-f",e);if(o.isDebug()){s.push("-v")}const r=yield a.which("xar",true);yield(0,I.exec)(`"${r}"`,_unique(s));return t}))}t.extractXar=extractXar;function extractZip(e,t){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(p){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return i(this,void 0,void 0,(function*(){const A=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=yield a.which("pwsh",false);if(r){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${A}', '${s}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${A}' -DestinationPath '${s}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];o.debug(`Using pwsh at path: ${r}`);yield(0,I.exec)(`"${r}"`,t)}else{const 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 '${A}' -DestinationPath '${s}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${A}', '${s}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const r=yield a.which("powershell",true);o.debug(`Using powershell at path: ${r}`);yield(0,I.exec)(`"${r}"`,t)}}))}function extractZipNix(e,t){return i(this,void 0,void 0,(function*(){const A=yield a.which("unzip",true);const s=[e];if(!o.isDebug()){s.unshift("-q")}s.unshift("-o");yield(0,I.exec)(`"${A}"`,s,{cwd:t})}))}function cacheDir(e,t,A,s){return i(this,void 0,void 0,(function*(){A=f.clean(A)||A;s=s||g.arch();o.debug(`Caching tool ${t} ${A} ${s}`);o.debug(`source dir: ${e}`);if(!l.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const r=yield _createToolPath(t,A,s);for(const t of l.readdirSync(e)){const A=h.join(e,t);yield a.cp(A,r,{recursive:true})}_completeToolPath(t,A,s);return r}))}t.cacheDir=cacheDir;function cacheFile(e,t,A,s,r){return i(this,void 0,void 0,(function*(){s=f.clean(s)||s;r=r||g.arch();o.debug(`Caching tool ${A} ${s} ${r}`);o.debug(`source file: ${e}`);if(!l.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(A,s,r);const i=h.join(n,t);o.debug(`destination file ${i}`);yield a.cp(e,i);_completeToolPath(A,s,r);return n}))}t.cacheFile=cacheFile;function find(e,t,A){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}A=A||g.arch();if(!isExplicitVersion(t)){const s=findAllVersions(e,A);const r=evaluateVersions(s,t);t=r}let s="";if(t){t=f.clean(t)||"";const r=h.join(_getCacheDirectory(),e,t,A);o.debug(`checking cache: ${r}`);if(l.existsSync(r)&&l.existsSync(`${r}.complete`)){o.debug(`Found tool in cache ${e} ${t} ${A}`);s=r}else{o.debug("not found")}}return s}t.find=find;function findAllVersions(e,t){const A=[];t=t||g.arch();const s=h.join(_getCacheDirectory(),e);if(l.existsSync(s)){const e=l.readdirSync(s);for(const r of e){if(isExplicitVersion(r)){const e=h.join(s,r,t||"");if(l.existsSync(e)&&l.existsSync(`${e}.complete`)){A.push(r)}}}}return A}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,A,s="master"){return i(this,void 0,void 0,(function*(){let r=[];const n=`https://api.github.com/repos/${e}/${t}/git/trees/${s}`;const i=new E.HttpClient("tool-cache");const a={};if(A){o.debug("set auth");a.authorization=A}const c=yield i.getJson(n,a);if(!c.result){return r}let l="";for(const e of c.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}a["accept"]="application/vnd.github.VERSION.raw";let u=yield(yield i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{r=JSON.parse(u)}catch(e){o.debug("Invalid json")}}return r}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,A,s=g.arch()){return i(this,void 0,void 0,(function*(){const r=yield u._findMatch(e,t,A,s);return r}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return i(this,void 0,void 0,(function*(){if(!e){e=h.join(_getTempDirectory(),c.randomUUID())}yield a.mkdirP(e);return e}))}function _createToolPath(e,t,A){return i(this,void 0,void 0,(function*(){const s=h.join(_getCacheDirectory(),e,f.clean(t)||t,A||"");o.debug(`destination ${s}`);const r=`${s}.complete`;yield a.rmRF(s);yield a.rmRF(r);yield a.mkdirP(s);return s}))}function _completeToolPath(e,t,A){const s=h.join(_getCacheDirectory(),e,f.clean(t)||t,A||"");const r=`${s}.complete`;l.writeFileSync(r,"");o.debug("finished caching tool")}function isExplicitVersion(e){const t=f.clean(e)||"";o.debug(`isExplicit: ${t}`);const A=f.valid(t)!=null;o.debug(`explicit? ${A}`);return A}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let A="";o.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(f.gt(e,t)){return 1}return-1}));for(let s=e.length-1;s>=0;s--){const r=e[s];const n=f.satisfies(r,t);if(n){A=r;break}}if(A){o.debug(`matched: ${A}`)}else{o.debug("match not found")}return A}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";(0,Q.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";(0,Q.ok)(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const A=global[e];return A!==undefined?A:t}function _unique(e){return Array.from(new Set(e))}},6160:(e,t,A)=>{(()=>{"use strict";var t={9081:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseCredential=parseCredential;t.isServiceAccountKey=isServiceAccountKey;t.isExternalAccount=isExternalAccount;const s=A(3916);const r=A(6266);function parseCredential(e){e=(e||"").trim();if(!e){throw new Error(`Missing service account key JSON (got empty value)`)}if(!e.startsWith("{")){e=(0,r.fromBase64)(e)}try{const t=JSON.parse(e);return t}catch(e){const t=(0,s.errorMessage)(e);throw new SyntaxError(`Failed to parse service account key JSON credentials: ${t}`)}}function isServiceAccountKey(e){return e.type==="service_account"}function isExternalAccount(e){return e.type!=="external_account"}t["default"]={parseCredential:parseCredential,isServiceAccountKey:isServiceAccountKey,isExternalAccount:isExternalAccount}},3214:function(e,t,A){var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var A in e)if(Object.prototype.hasOwnProperty.call(e,A))t[t.length]=A;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A=ownKeys(e),n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.parseCSV=parseCSV;t.parseMultilineCSV=parseMultilineCSV;function parseCSV(e){e=(e||"").trim();if(!e){return[]}const t=e.split(/(?{Object.defineProperty(t,"__esModule",{value:true});t.toBase64=toBase64;t.fromBase64=fromBase64;function toBase64(e){return Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function fromBase64(e,t){if(!t){t="utf8"}let A=e.replace(/-/g,"+").replace(/_/g,"/");while(A.length%4)A+="=";return Buffer.from(A,"base64").toString(t)}},3466:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toEnum=toEnum;function toEnum(e,t){const A=(t||"").toUpperCase();const s=A.replace(/[\s-]+/g,"_");if(A in e){return e[A]}else if(s in e){return e[s]}else{const A=Object.keys(e);throw new Error(`Invalid value ${t}, valid values are ${JSON.stringify(A)}`)}}},8204:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.stubEnv=stubEnv;function stubEnv(e,t=process.env){const A={};for(const s in e){A[s]=t[s];if(e[s]!==undefined){t[s]=e[s]}else{delete t[s]}}return()=>{for(const e in A){if(A[e]!==undefined){t[e]=A[e]}else{delete t[e]}}}}},3916:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.errorMessage=errorMessage;t.isNotFoundError=isNotFoundError;function errorMessage(e){let t;if(e===null){t="null"}else if(e===undefined||typeof e==="undefined"){t="undefined"}else if(typeof e==="bigint"||e instanceof BigInt){t=e.toString()}else if(typeof e==="boolean"||e instanceof Boolean){t=e.toString()}else if(e instanceof Error){t=e.message}else if(typeof e==="function"||e instanceof Function){t=errorMessage(e())}else if(typeof e==="number"||e instanceof Number){t=e.toString()}else if(typeof e==="string"||e instanceof String){t=e.toString()}else if(typeof e==="symbol"||e instanceof Symbol){t=e.toString()}else if(typeof e==="object"||e instanceof Object){t=JSON.stringify(e)}else{t=String(`[${typeof e}] ${e}`)}const A=t.trim().replace("Error: ","").trim();if(!A)return"";if(A.length>1&&isUpper(A[0])&&!isUpper(A[1])){return A[0].toLowerCase()+A.slice(1)}return A}function isNotFoundError(e){const t=errorMessage(e);return t.toUpperCase().includes("ENOENT")}function isUpper(e){return e===e.toUpperCase()}},6148:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseFlags=parseFlags;t.readUntil=readUntil;function parseFlags(e){const t=[];let A="";let s=false;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t.forceRemove=forceRemove;t.isEmptyDir=isEmptyDir;t.writeSecureFile=writeSecureFile;t.removeFile=removeFile;const s=A(9896);const r=A(3916);async function forceRemove(e){try{await s.promises.rm(e,{force:true,recursive:true})}catch(t){if(!(0,r.isNotFoundError)(t)){const A=(0,r.errorMessage)(t);throw new Error(`Failed to remove "${e}": ${A}`)}}}async function isEmptyDir(e){try{const t=await s.promises.readdir(e);return t.length<=0}catch{return true}}async function writeSecureFile(e,t,A){const r=Object.assign({},{mode:416,flag:"wx",flush:true},A);await s.promises.writeFile(e,t,r);return e}async function removeFile(e){try{await s.promises.unlink(e);return true}catch(t){if((0,r.isNotFoundError)(t)){return false}const A=(0,r.errorMessage)(t);throw new Error(`Failed to remove "${e}": ${A}`)}}},7237:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseGcloudIgnore=parseGcloudIgnore;const s=A(9896);const r=A(6928);const n=A(3916);async function parseGcloudIgnore(e){const t=(0,r.dirname)(e);let A=[];try{A=(await s.promises.readFile(e,{encoding:"utf8"})).toString().split(/\r?\n/).filter(shouldKeepIgnoreLine).map((e=>e.trim()))}catch(e){if(!(0,n.isNotFoundError)(e)){throw e}}for(let e=0;ee.trim()));A.splice(e,1,...a);e+=a.length}}return A}function shouldKeepIgnoreLine(e){const t=(e||"").trim();if(t===""){return false}if(t.startsWith("#")&&!t.startsWith("#!")){return false}return true}},9407:function(e,t,A){var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__exportStar||function(e,t){for(var A in e)if(A!=="default"&&!Object.prototype.hasOwnProperty.call(t,A))s(t,e,A)};Object.defineProperty(t,"__esModule",{value:true});r(A(9081),t);r(A(3214),t);r(A(731),t);r(A(6266),t);r(A(3466),t);r(A(8204),t);r(A(3916),t);r(A(6148),t);r(A(4772),t);r(A(7237),t);r(A(3599),t);r(A(4958),t);r(A(3716),t);r(A(7384),t);r(A(436),t);r(A(9809),t);r(A(8935),t);r(A(9834),t);r(A(6244),t);r(A(5215),t);r(A(286),t)},3599:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseBoolean=parseBoolean;const A={1:true,t:true,T:true,true:true,True:true,TRUE:true,0:false,f:false,F:false,false:false,False:false,FALSE:false};function parseBoolean(e,t=false){const s=(e||"").trim();if(s===""){return t}if(!(s in A)){throw new Error(`invalid boolean value "${s}"`)}return A[s]}},4958:function(e,t,A){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.joinKVString=joinKVString;t.joinKVStringForGCloud=joinKVStringForGCloud;t.parseKVString=parseKVString;t.parseKVFile=parseKVFile;t.parseKVJSON=parseKVJSON;t.parseKVYAML=parseKVYAML;t.parseKVStringAndFile=parseKVStringAndFile;const r=s(A(8815));const n=A(9896);const i=A(3916);const o=A(5215);function joinKVString(e,t=","){return Object.entries(e).map((([e,t])=>`${e}=${t}`)).join(t)}function joinKVStringForGCloud(e,t=",.!@#$%&*()_=+~`[]{}|:;<>?🚀🍪🐼"){const A=joinKVString(e,"");if(A===""){return""}const s={};for(let e=0;eA+=e;const setValue=e=>s+=e;let n=setKey;for(let i=0;i=0){n(o);r=-1}else if(o==="\\"){r=i}else if(o==="="){if(A===""){throw new Error(`Invalid start sequence for value (no preceeding key before "=") at ${i}`)}if(n===setValue){n(o)}n=setValue}else if(o==="\n"||o==="\r"||o==="\u2028"||o==="\u2029"||o===","){if(A!==""){t[A.trim()]=s.trim()}A="";s="";n=setKey}else{n(o)}}if(r>=0){throw new Error(`Unterminated escape character at ${r}`)}if(A!==""){t[A.trim()]=s.trim()}return t}function parseKVFile(e){try{const t=(0,o.presence)((0,n.readFileSync)(e,"utf8"));if(!t||t.length<1){return undefined}if(t[0]==="{"||t[0]==="["){return parseKVJSON(t)}if(t.match(/^.+=.+/gi)){return parseKVString(t)}return parseKVYAML(t)}catch(t){const A=(0,i.errorMessage)(t);throw new Error(`Failed to read file '${e}': ${A}`)}}function parseKVJSON(e){e=(e||"").trim();if(!e){return undefined}if(e==="{}"){return{}}try{const t=JSON.parse(e);const A={};for(const[e,s]of Object.entries(t)){if(typeof e!=="string"){throw new SyntaxError(`Failed to parse key "${e}", expected string, got ${typeof e}`)}if(e.trim()===""){throw new SyntaxError(`Failed to parse key "${e}", expected at least one character`)}if(typeof s!=="string"){const t=JSON.stringify(s);throw new SyntaxError(`Failed to parse value "${t}" for "${e}", expected string, got ${typeof s}`)}if(s.trim()===""){throw new SyntaxError(`Value for key "${e}" cannot be empty (got "${s}")`)}A[e]=s}return A}catch(e){const t=(0,i.errorMessage)(e);throw new Error(`Failed to parse KV pairs as JSON: ${t}`)}}function parseKVYAML(e){const t=(e||"").trim();if(!t){return undefined}if(t==="{}"){return{}}const A=r.default.parse(e);const s={};for(const[e,t]of Object.entries(A)){if(typeof e!=="string"||typeof t!=="string"){throw new SyntaxError(`env_vars_file must contain only KEY: VALUE strings. Error parsing key ${e} of type ${typeof e} with value ${t} of type ${typeof t}`)}s[e.trim()]=t.trim()}return s}function parseKVStringAndFile(e,t){e=(e||"").trim();t=(t||"").trim();const A=t?parseKVFile(t):undefined;const s=e?parseKVString(e):undefined;if(A===undefined&&s===undefined){return undefined}return Object.assign({},A,s)}},3716:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.inParallel=inParallel;const s=A(857);const r=A(3916);async function inParallel(e,t){t=Math.min(t||(0,s.cpus)().length-1);if(t<1){throw new Error(`concurrency must be at least 1`)}const A=[];const n=[];const runTasks=async e=>{for await(const[t,s]of e){try{A[t]=await s()}catch(e){n.push((0,r.errorMessage)(e))}}};const i=new Array(t).fill(e.entries()).map(runTasks);await Promise.allSettled(i);if(n.length>0){throw new Error(n.join("\n"))}return A}},7384:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.toPosixPath=toPosixPath;t.toWin32Path=toWin32Path;t.toPlatformPath=toPlatformPath;const s=A(6928);function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}},436:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.randomFilename=randomFilename;t.randomFilepath=randomFilepath;const s=A(6928);const r=A(6982);const n=A(857);function randomFilename(e=12){return(0,r.randomBytes)(e).toString("hex")}function randomFilepath(e=(0,n.tmpdir)(),t=12){return(0,s.join)(e,randomFilename(t))}t["default"]={randomFilename:randomFilename,randomFilepath:randomFilepath}},9809:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.withRetries=withRetries;const s=A(3916);const r=A(9834);const n=100;function withRetries(e,t){const A=t.retries;const i=typeof t?.backoffLimit!=="undefined"?Math.max(t.backoffLimit,0):undefined;let o=t.backoff??n;if(typeof i!=="undefined"){o=Math.min(o,i)}return async function(){let n=A+1;let a=o;const c=i;let l=0;let u="unknown";do{try{return await e()}catch(e){u=(0,s.errorMessage)(e);--n;if(n>0){await(0,r.sleep)(a);let e=l+a;if(typeof c!=="undefined"){e=Math.min(e,Number(c))}l=a;a=e}}}while(n>0);const g=t.retries+1;const h=g===1?`1 attempt`:`${g} attempts`;throw new Error(`retry function failed after ${h}: ${u}`)}}},8935:function(e,t,A){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.setInput=setInput;t.setInputs=setInputs;t.clearInputs=clearInputs;t.clearEnv=clearEnv;t.skipIfMissingEnv=skipIfMissingEnv;t.assertMembers=assertMembers;const r=s(A(4589));function setInput(e,t){const A=`INPUT_${e.replace(/ /g,"_").toUpperCase()}`;process.env[A]=t}function setInputs(e){Object.entries(e).forEach((([e,t])=>setInput(e,t)))}function clearInputs(){clearEnv((e=>e.startsWith(`INPUT_`)))}function clearEnv(e){Object.keys(process.env).forEach((t=>{if(e(t,process.env[t])){delete process.env[t]}}))}function skipIfMissingEnv(...e){for(const t of e){if(!(t in process.env)){return`missing $${t}`}}return false}function assertMembers(e,t){for(let A=0;A<=e.length-t.length;A++){let s=true;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t.parseDuration=parseDuration;t.sleep=sleep;function parseDuration(e){e=(e||"").trim();if(!e){return 0}let t=0;let A="";for(let s=0;ssetTimeout(t,e)))}},6244:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.expandUniverseEndpoints=expandUniverseEndpoints;function expandUniverseEndpoints(e,t="googleapis.com"){const A=Object.assign({});for(const s in e){const r=`GHA_ENDPOINT_OVERRIDE_${s}`;const n=process.env[r];if(n&&n!==""){A[s]=n.replace(/\/+$/,"")}else{A[s]=e[s].replace(/{universe}/g,t).replace(/\/+$/,"")}}return A}},5215:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.presence=presence;t.exactlyOneOf=exactlyOneOf;t.allOf=allOf;function presence(e){return(e||"").trim()||undefined}function exactlyOneOf(...e){e=e||[];let t=false;for(let A=0;A{Object.defineProperty(t,"__esModule",{value:true});t.isPinnedToHead=isPinnedToHead;t.pinnedToHeadWarning=pinnedToHeadWarning;function isPinnedToHead(){const e=process.env.GITHUB_ACTION_REF;return e==="master"||e==="main"}function pinnedToHeadWarning(e){const t=process.env.GITHUB_ACTION_REF;const A=process.env.GITHUB_ACTION_REPOSITORY;return`${A} is pinned at "${t}". We strongly advise against `+`pinning to "@${t}" as it may be unstable. Please update your `+`GitHub Action YAML from:\n`+`\n`+` uses: '${A}@${t}'\n`+`\n`+`to:\n`+`\n`+` uses: '${A}@${e}'\n`+`\n`+`Alternatively, you can pin to any git tag or git SHA in the repository.`}},181:e=>{e.exports=A(181)},6982:e=>{e.exports=A(6982)},9896:e=>{e.exports=A(9896)},4589:e=>{e.exports=A(4589)},857:e=>{e.exports=A(857)},6928:e=>{e.exports=A(6928)},932:e=>{e.exports=A(932)},1493:e=>{e.exports=A(1493)},7349:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(4454);var i=A(2223);var o=A(7103);var a=A(334);var c=A(3142);function resolveCollection(e,t,A,s,r,n){const i=A.type==="block-map"?o.resolveBlockMap(e,t,A,s,n):A.type==="block-seq"?a.resolveBlockSeq(e,t,A,s,n):c.resolveFlowCollection(e,t,A,s,n);const l=i.constructor;if(r==="!"||r===l.tagName){i.tag=l.tagName;return i}if(r)i.tag=r;return i}function composeCollection(e,t,A,o,a){const c=o.tag;const l=!c?null:t.directives.tagName(c.source,(e=>a(c,"TAG_RESOLVE_FAILED",e)));if(A.type==="block-seq"){const{anchor:e,newlineAfterProp:t}=o;const A=e&&c?e.offset>c.offset?e:c:e??c;if(A&&(!t||t.offsete.tag===l&&e.collection===u));if(!g){const s=t.schema.knownTags[l];if(s&&s.collection===u){t.schema.tags.push(Object.assign({},s,{default:false}));g=s}else{if(s){a(c,"BAD_COLLECTION_TYPE",`${s.tag} used for ${u} collection, but expects ${s.collection??"scalar"}`,true)}else{a(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,true)}return resolveCollection(e,t,A,a,l)}}const h=resolveCollection(e,t,A,a,l,g);const E=g.resolve?.(h,(e=>a(c,"TAG_RESOLVE_FAILED",e)),t.options)??h;const f=s.isNode(E)?E:new r.Scalar(E);f.range=h.range;f.tag=l;if(g?.format)f.format=g.format;return f}t.composeCollection=composeCollection},3683:(e,t,A)=>{var s=A(3021);var r=A(5937);var n=A(7788);var i=A(4631);function composeDoc(e,t,{offset:A,start:o,value:a,end:c},l){const u=Object.assign({_directives:t},e);const g=new s.Document(undefined,u);const h={atKey:false,atRoot:true,directives:g.directives,options:g.options,schema:g.schema};const E=i.resolveProps(o,{indicator:"doc-start",next:a??c?.[0],offset:A,onError:l,parentIndent:0,startOnNewline:true});if(E.found){g.directives.docStart=true;if(a&&(a.type==="block-map"||a.type==="block-seq")&&!E.hasNewline)l(E.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}g.contents=a?r.composeNode(h,a,E,l):r.composeEmptyNode(h,E.end,o,null,E,l);const f=g.contents.range[2];const d=n.resolveEnd(c,f,false,l);if(d.comment)g.comment=d.comment;g.range=[A,f,d.offset];return g}t.composeDoc=composeDoc},5937:(e,t,A)=>{var s=A(4065);var r=A(1127);var n=A(7349);var i=A(5413);var o=A(7788);var a=A(2599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,A,s){const o=e.atKey;const{spaceBefore:a,comment:l,anchor:u,tag:g}=A;let h;let E=true;switch(t.type){case"alias":h=composeAlias(e,t,s);if(u||g)s(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":h=i.composeScalar(e,t,g,s);if(u)h.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":h=n.composeCollection(c,e,t,A,s);if(u)h.anchor=u.source.substring(1);break;default:{const r=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;s(t,"UNEXPECTED_TOKEN",r);h=composeEmptyNode(e,t.offset,undefined,null,A,s);E=false}}if(u&&h.anchor==="")s(u,"BAD_ALIAS","Anchor cannot be an empty string");if(o&&e.options.stringKeys&&(!r.isScalar(h)||typeof h.value!=="string"||h.tag&&h.tag!=="tag:yaml.org,2002:str")){const e="With stringKeys, all keys must be strings";s(g??t,"NON_STRING_KEY",e)}if(a)h.spaceBefore=true;if(l){if(t.type==="scalar"&&t.source==="")h.comment=l;else h.commentBefore=l}if(e.options.keepSourceTokens&&E)h.srcToken=t;return h}function composeEmptyNode(e,t,A,s,{spaceBefore:r,comment:n,anchor:o,tag:c,end:l},u){const g={type:"scalar",offset:a.emptyScalarPosition(t,A,s),indent:-1,source:""};const h=i.composeScalar(e,g,c,u);if(o){h.anchor=o.source.substring(1);if(h.anchor==="")u(o,"BAD_ALIAS","Anchor cannot be an empty string")}if(r)h.spaceBefore=true;if(n){h.comment=n;h.range[2]=l}return h}function composeAlias({options:e},{offset:t,source:A,end:r},n){const i=new s.Alias(A.substring(1));if(i.source==="")n(t,"BAD_ALIAS","Alias cannot be an empty string");if(i.source.endsWith(":"))n(t+A.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const a=t+A.length;const c=o.resolveEnd(r,a,e.strict,n);i.range=[t,a,c.offset];if(c.comment)i.comment=c.comment;return i}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(8913);var i=A(6842);function composeScalar(e,t,A,o){const{value:a,type:c,comment:l,range:u}=t.type==="block-scalar"?n.resolveBlockScalar(e,t,o):i.resolveFlowScalar(t,e.options.strict,o);const g=A?e.directives.tagName(A.source,(e=>o(A,"TAG_RESOLVE_FAILED",e))):null;let h;if(e.options.stringKeys&&e.atKey){h=e.schema[s.SCALAR]}else if(g)h=findScalarTagByName(e.schema,a,g,A,o);else if(t.type==="scalar")h=findScalarTagByTest(e,a,t,o);else h=e.schema[s.SCALAR];let E;try{const n=h.resolve(a,(e=>o(A??t,"TAG_RESOLVE_FAILED",e)),e.options);E=s.isScalar(n)?n:new r.Scalar(n)}catch(e){const s=e instanceof Error?e.message:String(e);o(A??t,"TAG_RESOLVE_FAILED",s);E=new r.Scalar(a)}E.range=u;E.source=a;if(c)E.type=c;if(g)E.tag=g;if(h.format)E.format=h.format;if(l)E.comment=l;return E}function findScalarTagByName(e,t,A,r,n){if(A==="!")return e[s.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===A){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const o=e.knownTags[A];if(o&&!o.collection){e.tags.push(Object.assign({},o,{default:false,test:undefined}));return o}n(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${A}`,A!=="tag:yaml.org,2002:str");return e[s.SCALAR]}function findScalarTagByTest({atKey:e,directives:t,schema:A},r,n,i){const o=A.tags.find((t=>(t.default===true||e&&t.default==="key")&&t.test?.test(r)))||A[s.SCALAR];if(A.compat){const e=A.compat.find((e=>e.default&&e.test?.test(r)))??A[s.SCALAR];if(o.tag!==e.tag){const A=t.tagString(o.tag);const s=t.tagString(e.tag);const r=`Value may be parsed as either ${A} or ${s}`;i(n,"TAG_RESOLVE_FAILED",r,true)}}return o}t.composeScalar=composeScalar},9984:(e,t,A)=>{var s=A(932);var r=A(1342);var n=A(3021);var i=A(1464);var o=A(1127);var a=A(3683);var c=A(7788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:A}=e;return[t,t+(typeof A==="string"?A.length:1)]}function parsePrelude(e){let t="";let A=false;let s=false;for(let r=0;r{const r=getErrorPos(e);if(s)this.warnings.push(new i.YAMLWarning(r,t,A));else this.errors.push(new i.YAMLParseError(r,t,A))};this.directives=new r.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:A,afterEmptyLine:s}=parsePrelude(this.prelude);if(A){const r=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${A}`:A}else if(s||e.directives.docStart||!r){e.commentBefore=A}else if(o.isCollection(r)&&!r.flow&&r.items.length>0){let e=r.items[0];if(o.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${A}\n${t}`:A}else{const e=r.commentBefore;r.commentBefore=e?`${A}\n${e}`:A}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,A=-1){for(const t of e)yield*this.next(t);yield*this.end(t,A)}*next(e){if(s.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,A,s)=>{const r=getErrorPos(e);r[0]+=t;this.onError(r,"BAD_DIRECTIVE",A,s)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const A=new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(A);else this.doc.errors.push(A);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const A=new n.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");A.range=[0,t,t];this.decorate(A,false);yield A}}}t.Composer=Composer},7103:(e,t,A)=>{var s=A(7165);var r=A(4454);var n=A(4631);var i=A(9499);var o=A(4051);var a=A(1187);const c="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},A,l,u,g){const h=g?.nodeClass??r.YAMLMap;const E=new h(A.schema);if(A.atRoot)A.atRoot=false;let f=l.offset;let d=null;for(const r of l.items){const{start:g,key:h,sep:C,value:Q}=r;const I=n.resolveProps(g,{indicator:"explicit-key-ind",next:h??C?.[0],offset:f,onError:u,parentIndent:l.indent,startOnNewline:true});const B=!I.found;if(B){if(h){if(h.type==="block-seq")u(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in h&&h.indent!==l.indent)u(f,"BAD_INDENT",c)}if(!I.anchor&&!I.tag&&!C){d=I.end;if(I.comment){if(E.comment)E.comment+="\n"+I.comment;else E.comment=I.comment}continue}if(I.newlineAfterProp||i.containsNewline(h)){u(h??g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==l.indent){u(f,"BAD_INDENT",c)}A.atKey=true;const p=I.end;const y=h?e(A,h,I,u):t(A,p,g,null,I,u);if(A.schema.compat)o.flowIndentCheck(l.indent,h,u);A.atKey=false;if(a.mapIncludes(A,E.items,y))u(p,"DUPLICATE_KEY","Map keys must be unique");const m=n.resolveProps(C??[],{indicator:"map-value-ind",next:Q,offset:y.range[2],onError:u,parentIndent:l.indent,startOnNewline:!h||h.type==="block-scalar"});f=m.end;if(m.found){if(B){if(Q?.type==="block-map"&&!m.hasNewline)u(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(A.options.strict&&I.start{var s=A(3301);function resolveBlockScalar(e,t,A){const r=t.offset;const n=parseBlockScalarHeader(t,e.options.strict,A);if(!n)return{value:"",type:null,comment:"",range:[r,r,r]};const i=n.mode===">"?s.Scalar.BLOCK_FOLDED:s.Scalar.BLOCK_LITERAL;const o=t.source?splitLines(t.source):[];let a=o.length;for(let e=o.length-1;e>=0;--e){const t=o[e][1];if(t===""||t==="\r")a=e;else break}if(a===0){const e=n.chomp==="+"&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"";let A=r+n.length;if(t.source)A+=t.source.length;return{value:e,type:i,comment:n.comment,range:[r,A,A]}}let c=t.indent+n.indent;let l=t.offset+n.length;let u=0;for(let t=0;tc)c=s.length}else{if(s.length=a;--e){if(o[e][0].length>c)a=e+1}let g="";let h="";let E=false;for(let e=0;ec||r[0]==="\t"){if(h===" ")h="\n";else if(!E&&h==="\n")h="\n\n";g+=h+t.slice(c)+r;h="\n";E=true}else if(r===""){if(h==="\n")g+="\n";else h="\n"}else{g+=h+r;h=" ";E=false}}switch(n.chomp){case"-":break;case"+":for(let e=a;e{var s=A(2223);var r=A(4631);var n=A(4051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},A,i,o,a){const c=a?.nodeClass??s.YAMLSeq;const l=new c(A.schema);if(A.atRoot)A.atRoot=false;if(A.atKey)A.atKey=false;let u=i.offset;let g=null;for(const{start:s,value:a}of i.items){const c=r.resolveProps(s,{indicator:"seq-item-ind",next:a,offset:u,onError:o,parentIndent:i.indent,startOnNewline:true});if(!c.found){if(c.anchor||c.tag||a){if(a&&a.type==="block-seq")o(c.end,"BAD_INDENT","All sequence items must start at the same column");else o(u,"MISSING_CHAR","Sequence item without - indicator")}else{g=c.end;if(c.comment)l.comment=c.comment;continue}}const h=a?e(A,a,c,o):t(A,c.end,s,null,c,o);if(A.schema.compat)n.flowIndentCheck(i.indent,a,o);u=h.range[2];l.items.push(h)}l.range=[i.offset,u,g??u];return l}t.resolveBlockSeq=resolveBlockSeq},7788:(e,t)=>{function resolveEnd(e,t,A,s){let r="";if(e){let n=false;let i="";for(const o of e){const{source:e,type:a}=o;switch(a){case"space":n=true;break;case"comment":{if(A&&!n)s(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!r)r=t;else r+=i+t;i="";break}case"newline":if(r)i+=e;n=true;break;default:s(o,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}t+=e.length}}return{comment:r,offset:t}}t.resolveEnd=resolveEnd},3142:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(4454);var i=A(2223);var o=A(7788);var a=A(4631);var c=A(9499);var l=A(1187);const u="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},A,g,h,E){const f=g.start.source==="{";const d=f?"flow map":"flow sequence";const C=E?.nodeClass??(f?n.YAMLMap:i.YAMLSeq);const Q=new C(A.schema);Q.flow=true;const I=A.atRoot;if(I)A.atRoot=false;if(A.atKey)A.atKey=false;let B=g.offset+g.start.source.length;for(let i=0;i0){const e=o.resolveEnd(m,w,A.options.strict,h);if(e.comment){if(Q.comment)Q.comment+="\n"+e.comment;else Q.comment=e.comment}Q.range=[g.offset,w,e.offset]}else{Q.range=[g.offset,w,w]}return Q}t.resolveFlowCollection=resolveFlowCollection},6842:(e,t,A)=>{var s=A(3301);var r=A(7788);function resolveFlowScalar(e,t,A){const{offset:n,type:i,source:o,end:a}=e;let c;let l;const _onError=(e,t,s)=>A(n+e,t,s);switch(i){case"scalar":c=s.Scalar.PLAIN;l=plainValue(o,_onError);break;case"single-quoted-scalar":c=s.Scalar.QUOTE_SINGLE;l=singleQuotedValue(o,_onError);break;case"double-quoted-scalar":c=s.Scalar.QUOTE_DOUBLE;l=doubleQuotedValue(o,_onError);break;default:A(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[n,n+o.length,n+o.length]}}const u=n+o.length;const g=r.resolveEnd(a,u,t,A);return{value:l,type:c,comment:g.comment,range:[n,u,g.offset]}}function plainValue(e,t){let A="";switch(e[0]){case"\t":A="a tab character";break;case",":A="flow indicator character ,";break;case"%":A="directive indicator character %";break;case"|":case">":{A=`block scalar indicator ${e[0]}`;break}case"@":case"`":{A=`reserved character ${e[0]}`;break}}if(A)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${A}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,A;try{t=new RegExp("(.*?)(?t?e.slice(t,s+1):r}else{A+=r}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return A}function foldNewline(e,t){let A="";let s=e[t+1];while(s===" "||s==="\t"||s==="\n"||s==="\r"){if(s==="\r"&&e[t+2]!=="\n")break;if(s==="\n")A+="\n";t+=1;s=e[t+1]}if(!A)A=" ";return{fold:A,offset:t}}const n={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,A,s){const r=e.substr(t,A);const n=r.length===A&&/^[0-9a-fA-F]+$/.test(r);const i=n?parseInt(r,16):NaN;if(isNaN(i)){const r=e.substr(t-2,A+2);s(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`);return r}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},4631:(e,t)=>{function resolveProps(e,{flow:t,indicator:A,next:s,offset:r,onError:n,parentIndent:i,startOnNewline:o}){let a=false;let c=o;let l=o;let u="";let g="";let h=false;let E=false;let f=null;let d=null;let C=null;let Q=null;let I=null;let B=null;let p=null;for(const r of e){if(E){if(r.type!=="space"&&r.type!=="newline"&&r.type!=="comma")n(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");E=false}if(f){if(c&&r.type!=="comment"&&r.type!=="newline"){n(f,"TAB_AS_INDENT","Tabs are not allowed as indentation")}f=null}switch(r.type){case"space":if(!t&&(A!=="doc-start"||s?.type!=="flow-collection")&&r.source.includes("\t")){f=r}l=true;break;case"comment":{if(!l)n(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";if(!u)u=e;else u+=g+e;g="";c=false;break}case"newline":if(c){if(u)u+=r.source;else if(!B||A!=="seq-item-ind")a=true}else g+=r.source;c=true;h=true;if(d||C)Q=r;l=true;break;case"anchor":if(d)n(r,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(r.source.endsWith(":"))n(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);d=r;p??(p=r.offset);c=false;l=false;E=true;break;case"tag":{if(C)n(r,"MULTIPLE_TAGS","A node can have at most one tag");C=r;p??(p=r.offset);c=false;l=false;E=true;break}case A:if(d||C)n(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`);if(B)n(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`);B=r;c=A==="seq-item-ind"||A==="explicit-key-ind";l=false;break;case"comma":if(t){if(I)n(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=r;c=false;l=false;break}default:n(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`);c=false;l=false}}const y=e[e.length-1];const m=y?y.offset+y.source.length:r;if(E&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")){n(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(f&&(c&&f.indent<=i||s?.type==="block-map"||s?.type==="block-seq"))n(f,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:B,spaceBefore:a,comment:u,hasNewline:h,anchor:d,tag:C,newlineAfterProp:Q,end:m,start:p??m}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},2599:(e,t)=>{function emptyScalarPosition(e,t,A){if(t){A??(A=t.length);for(let s=A-1;s>=0;--s){let A=t[s];switch(A.type){case"space":case"comment":case"newline":e-=A.source.length;continue}A=t[++s];while(A?.type==="space"){e+=A.source.length;A=t[++s]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},4051:(e,t,A)=>{var s=A(9499);function flowIndentCheck(e,t,A){if(t?.type==="flow-collection"){const r=t.end[0];if(r.indent===e&&(r.source==="]"||r.source==="}")&&s.containsNewline(t)){const e="Flow end indicator should be more indented than parent";A(r,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},1187:(e,t,A)=>{var s=A(1127);function mapIncludes(e,t,A){const{uniqueKeys:r}=e.options;if(r===false)return false;const n=typeof r==="function"?r:(e,t)=>e===t||s.isScalar(e)&&s.isScalar(t)&&e.value===t.value;return t.some((e=>n(e.key,A)))}t.mapIncludes=mapIncludes},3021:(e,t,A)=>{var s=A(4065);var r=A(101);var n=A(1127);var i=A(7165);var o=A(4043);var a=A(5840);var c=A(6829);var l=A(1596);var u=A(3661);var g=A(2404);var h=A(1342);class Document{constructor(e,t,A){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,n.NODE_TYPE,{value:n.DOC});let s=null;if(typeof t==="function"||Array.isArray(t)){s=t}else if(A===undefined&&t){A=t;t=undefined}const r=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,stringKeys:false,uniqueKeys:true,version:"1.2"},A);this.options=r;let{version:i}=r;if(A?._directives){this.directives=A._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new h.Directives({version:i});this.setSchema(i,A);this.contents=e===undefined?null:this.createNode(e,s,A)}clone(){const e=Object.create(Document.prototype,{[n.NODE_TYPE]:{value:n.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=n.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const A=l.anchorNames(this);e.anchor=!t||A.has(t)?l.findNewAnchor(t||"a",A):t}return new s.Alias(e.anchor)}createNode(e,t,A){let s=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);s=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);s=t}else if(A===undefined&&t){A=t;t=undefined}const{aliasDuplicateObjects:r,anchorPrefix:i,flow:o,keepUndefined:a,onTagObj:c,tag:u}=A??{};const{onAnchor:h,setAnchors:E,sourceObjects:f}=l.createNodeAnchors(this,i||"a");const d={aliasDuplicateObjects:r??true,keepUndefined:a??false,onAnchor:h,onTagObj:c,replacer:s,schema:this.schema,sourceObjects:f};const C=g.createNode(e,u,d);if(o&&n.isCollection(C))C.flow=true;E();return C}createPair(e,t,A={}){const s=this.createNode(e,null,A);const r=this.createNode(t,null,A);return new i.Pair(s,r)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(r.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return n.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(r.isEmptyPath(e))return!t&&n.isScalar(this.contents)?this.contents.value:this.contents;return n.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return n.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(r.isEmptyPath(e))return this.contents!==undefined;return n.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=r.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(r.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=r.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let A;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new h.Directives({version:"1.1"});A={resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new h.Directives({version:e});A={resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;A=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(A)this.schema=new a.Schema(Object.assign(A,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:A,maxAliasCount:s,onAnchor:r,reviver:n}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:A===true,mapKeyWarned:false,maxAliasCount:typeof s==="number"?s:100};const a=o.toJS(this.contents,t??"",i);if(typeof r==="function")for(const{count:e,res:t}of i.anchors.values())r(t,e);return typeof n==="function"?u.applyReviver(n,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return c.stringifyDocument(this,e)}}function assertCollection(e){if(n.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},1596:(e,t,A)=>{var s=A(1127);var r=A(204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const A=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(A)}return true}function anchorNames(e){const t=new Set;r.visit(e,{Value(e,A){if(A.anchor)t.add(A.anchor)}});return t}function findNewAnchor(e,t){for(let A=1;true;++A){const s=`${e}${A}`;if(!t.has(s))return s}}function createNodeAnchors(e,t){const A=[];const r=new Map;let n=null;return{onAnchor:s=>{A.push(s);n??(n=anchorNames(e));const r=findNewAnchor(t,n);n.add(r);return r},setAnchors:()=>{for(const e of A){const t=r.get(e);if(typeof t==="object"&&t.anchor&&(s.isScalar(t.node)||s.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:r}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},3661:(e,t)=>{function applyReviver(e,t,A,s){if(s&&typeof s==="object"){if(Array.isArray(s)){for(let t=0,A=s.length;t{var s=A(4065);var r=A(1127);var n=A(3301);const i="tag:yaml.org,2002:";function findTagObject(e,t,A){if(t){const e=A.filter((e=>e.tag===t));const s=e.find((e=>!e.format))??e[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return A.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,A){if(r.isDocument(e))e=e.contents;if(r.isNode(e))return e;if(r.isPair(e)){const t=A.schema[r.MAP].createNode?.(A.schema,null,A);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:o,onAnchor:a,onTagObj:c,schema:l,sourceObjects:u}=A;let g=undefined;if(o&&e&&typeof e==="object"){g=u.get(e);if(g){g.anchor??(g.anchor=a(e));return new s.Alias(g.anchor)}else{g={anchor:null,node:null};u.set(e,g)}}if(t?.startsWith("!!"))t=i+t.slice(2);let h=findTagObject(e,t,l.tags);if(!h){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new n.Scalar(e);if(g)g.node=t;return t}h=e instanceof Map?l[r.MAP]:Symbol.iterator in Object(e)?l[r.SEQ]:l[r.MAP]}if(c){c(h);delete A.onTagObj}const E=h?.createNode?h.createNode(A.schema,e,A):typeof h?.nodeClass?.from==="function"?h.nodeClass.from(A.schema,e,A):new n.Scalar(e);if(t)E.tag=t;else if(!h.default)E.tag=h.tag;if(g)g.node=E;return E}t.createNode=createNode},1342:(e,t,A)=>{var s=A(1127);var r=A(204);const n={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>n[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const A=e.trim().split(/[ \t]+/);const s=A.shift();switch(s){case"%TAG":{if(A.length!==2){t(0,"%TAG directive should contain exactly two parts");if(A.length<2)return false}const[e,s]=A;this.tags[e]=s;return true}case"%YAML":{this.yaml.explicit=true;if(A.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=A;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const A=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,A);return false}}default:t(0,`Unknown directive ${s}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const A=e.slice(2,-1);if(A==="!"||A==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return A}const[,A,s]=e.match(/^(.*!)([^!]*)$/s);if(!s)t(`The ${e} tag has no suffix`);const r=this.tags[A];if(r){try{return r+decodeURIComponent(s)}catch(e){t(String(e));return null}}if(A==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,A]of Object.entries(this.tags)){if(e.startsWith(A))return t+escapeTagName(e.substring(A.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const A=Object.entries(this.tags);let n;if(e&&A.length>0&&s.isNode(e.contents)){const t={};r.visit(e.contents,((e,A)=>{if(s.isNode(A)&&A.tag)t[A.tag]=true}));n=Object.keys(t)}else n=[];for(const[s,r]of A){if(s==="!!"&&r==="tag:yaml.org,2002:")continue;if(!e||n.some((e=>e.startsWith(r))))t.push(`%TAG ${s} ${r}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},1464:(e,t)=>{class YAMLError extends Error{constructor(e,t,A,s){super();this.name=e;this.code=A;this.message=s;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,A){super("YAMLParseError",e,t,A)}}class YAMLWarning extends YAMLError{constructor(e,t,A){super("YAMLWarning",e,t,A)}}const prettifyError=(e,t)=>A=>{if(A.pos[0]===-1)return;A.linePos=A.pos.map((e=>t.linePos(e)));const{line:s,col:r}=A.linePos[0];A.message+=` at line ${s}, column ${r}`;let n=r-1;let i=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(n>=60&&i.length>80){const e=Math.min(n-39,i.length-79);i="…"+i.substring(e);n-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(s>1&&/^ *$/.test(i.substring(0,n))){let A=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);if(A.length>80)A=A.substring(0,79)+"…\n";i=A+i}if(/[^ ]/.test(i)){let e=1;const t=A.linePos[1];if(t&&t.line===s&&t.col>r){e=Math.max(1,Math.min(t.col-r,80-n))}const o=" ".repeat(n)+"^".repeat(e);A.message+=`:\n\n${i}\n${o}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},8815:(e,t,A)=>{var s=A(9984);var r=A(3021);var n=A(5840);var i=A(1464);var o=A(4065);var a=A(1127);var c=A(7165);var l=A(3301);var u=A(4454);var g=A(2223);var h=A(3461);var E=A(361);var f=A(6628);var d=A(3456);var C=A(4047);var Q=A(204);t.Composer=s.Composer;t.Document=r.Document;t.Schema=n.Schema;t.YAMLError=i.YAMLError;t.YAMLParseError=i.YAMLParseError;t.YAMLWarning=i.YAMLWarning;t.Alias=o.Alias;t.isAlias=a.isAlias;t.isCollection=a.isCollection;t.isDocument=a.isDocument;t.isMap=a.isMap;t.isNode=a.isNode;t.isPair=a.isPair;t.isScalar=a.isScalar;t.isSeq=a.isSeq;t.Pair=c.Pair;t.Scalar=l.Scalar;t.YAMLMap=u.YAMLMap;t.YAMLSeq=g.YAMLSeq;t.CST=h;t.Lexer=E.Lexer;t.LineCounter=f.LineCounter;t.Parser=d.Parser;t.parse=C.parse;t.parseAllDocuments=C.parseAllDocuments;t.parseDocument=C.parseDocument;t.stringify=C.stringify;t.visit=Q.visit;t.visitAsync=Q.visitAsync},7249:(e,t,A)=>{var s=A(932);function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof s.emitWarning==="function")s.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,A)=>{var s=A(1596);var r=A(204);var n=A(1127);var i=A(6673);var o=A(4043);class Alias extends i.NodeBase{constructor(e){super(n.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let A;if(t?.aliasResolveCache){A=t.aliasResolveCache}else{A=[];r.visit(e,{Node:(e,t)=>{if(n.isAlias(t)||n.hasAnchor(t))A.push(t)}});if(t)t.aliasResolveCache=A}let s=undefined;for(const e of A){if(e===this)break;if(e.anchor===this.source)s=e}return s}toJSON(e,t){if(!t)return{source:this.source};const{anchors:A,doc:s,maxAliasCount:r}=t;const n=this.resolve(s,t);if(!n){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=A.get(n);if(!i){o.toJS(n,null,t);i=A.get(n)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(r>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(s,n,A);if(i.count*i.aliasCount>r){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,A){const r=`*${this.source}`;if(e){s.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function getAliasCount(e,t,A){if(n.isAlias(t)){const s=t.resolve(e);const r=A&&s&&A.get(s);return r?r.count*r.aliasCount:0}else if(n.isCollection(t)){let s=0;for(const r of t.items){const t=getAliasCount(e,r,A);if(t>s)s=t}return s}else if(n.isPair(t)){const s=getAliasCount(e,t.key,A);const r=getAliasCount(e,t.value,A);return Math.max(s,r)}return 1}t.Alias=Alias},101:(e,t,A)=>{var s=A(2404);var r=A(1127);var n=A(6673);function collectionFromPath(e,t,A){let r=A;for(let e=t.length-1;e>=0;--e){const A=t[e];if(typeof A==="number"&&Number.isInteger(A)&&A>=0){const e=[];e[A]=r;r=e}else{r=new Map([[A,r]])}}return s.createNode(r,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends n.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>r.isNode(t)||r.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[A,...s]=e;const n=this.get(A,true);if(r.isCollection(n))n.addIn(s,t);else if(n===undefined&&this.schema)this.set(A,collectionFromPath(this.schema,s,t));else throw new Error(`Expected YAML collection at ${A}. Remaining path: ${s}`)}}deleteIn(e){const[t,...A]=e;if(A.length===0)return this.delete(t);const s=this.get(t,true);if(r.isCollection(s))return s.deleteIn(A);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${A}`)}getIn(e,t){const[A,...s]=e;const n=this.get(A,true);if(s.length===0)return!t&&r.isScalar(n)?n.value:n;else return r.isCollection(n)?n.getIn(s,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!r.isPair(t))return false;const A=t.value;return A==null||e&&r.isScalar(A)&&A.value==null&&!A.commentBefore&&!A.comment&&!A.tag}))}hasIn(e){const[t,...A]=e;if(A.length===0)return this.has(t);const s=this.get(t,true);return r.isCollection(s)?s.hasIn(A):false}setIn(e,t){const[A,...s]=e;if(s.length===0){this.set(A,t)}else{const e=this.get(A,true);if(r.isCollection(e))e.setIn(s,t);else if(e===undefined&&this.schema)this.set(A,collectionFromPath(this.schema,s,t));else throw new Error(`Expected YAML collection at ${A}. Remaining path: ${s}`)}}}t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},6673:(e,t,A)=>{var s=A(3661);var r=A(1127);var n=A(4043);class NodeBase{constructor(e){Object.defineProperty(this,r.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:A,onAnchor:i,reviver:o}={}){if(!r.isDocument(e))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof A==="number"?A:100};const c=n.toJS(this,"",a);if(typeof i==="function")for(const{count:e,res:t}of a.anchors.values())i(t,e);return typeof o==="function"?s.applyReviver(o,{"":c},"",c):c}}t.NodeBase=NodeBase},7165:(e,t,A)=>{var s=A(2404);var r=A(9748);var n=A(7104);var i=A(1127);function createPair(e,t,A){const r=s.createNode(e,undefined,A);const n=s.createNode(t,undefined,A);return new Pair(r,n)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:A}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(A))A=A.clone(e);return new Pair(t,A)}toJSON(e,t){const A=t?.mapAsMap?new Map:{};return n.addPairToJSMap(t,A,this)}toString(e,t,A){return e?.doc?r.stringifyPair(this,e,t,A):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},3301:(e,t,A)=>{var s=A(1127);var r=A(6673);var n=A(4043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends r.NodeBase{constructor(e){super(s.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:n.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},4454:(e,t,A)=>{var s=A(1212);var r=A(7104);var n=A(101);var i=A(1127);var o=A(7165);var a=A(3301);function findPair(e,t){const A=i.isScalar(t)?t.value:t;for(const s of e){if(i.isPair(s)){if(s.key===t||s.key===A)return s;if(i.isScalar(s.key)&&s.key.value===A)return s}}return undefined}class YAMLMap extends n.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,A){const{keepUndefined:s,replacer:r}=A;const n=new this(e);const add=(e,i)=>{if(typeof r==="function")i=r.call(t,e,i);else if(Array.isArray(r)&&!r.includes(e))return;if(i!==undefined||s)n.items.push(o.createPair(e,i,A))};if(t instanceof Map){for(const[e,A]of t)add(e,A)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){n.items.sort(e.sortMapEntries)}return n}add(e,t){let A;if(i.isPair(e))A=e;else if(!e||typeof e!=="object"||!("key"in e)){A=new o.Pair(e,e?.value)}else A=new o.Pair(e.key,e.value);const s=findPair(this.items,A.key);const r=this.schema?.sortMapEntries;if(s){if(!t)throw new Error(`Key ${A.key} already set`);if(i.isScalar(s.value)&&a.isScalarValue(A.value))s.value.value=A.value;else s.value=A.value}else if(r){const e=this.items.findIndex((e=>r(A,e)<0));if(e===-1)this.items.push(A);else this.items.splice(e,0,A)}else{this.items.push(A)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const A=this.items.splice(this.items.indexOf(t),1);return A.length>0}get(e,t){const A=findPair(this.items,e);const s=A?.value;return(!t&&i.isScalar(s)?s.value:s)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new o.Pair(e,t),true)}toJSON(e,t,A){const s=A?new A:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(s);for(const e of this.items)r.addPairToJSMap(t,s,e);return s}toString(e,t,A){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return s.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:A,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},2223:(e,t,A)=>{var s=A(2404);var r=A(1212);var n=A(101);var i=A(1127);var o=A(3301);var a=A(4043);class YAMLSeq extends n.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const A=this.items.splice(t,1);return A.length>0}get(e,t){const A=asItemIndex(e);if(typeof A!=="number")return undefined;const s=this.items[A];return!t&&i.isScalar(s)?s.value:s}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},7104:(e,t,A)=>{var s=A(7249);var r=A(452);var n=A(2148);var i=A(1127);var o=A(4043);function addPairToJSMap(e,t,{key:A,value:s}){if(i.isNode(A)&&A.addToJSMap)A.addToJSMap(e,t,s);else if(r.isMergeKey(e,A))r.addMergeToJSMap(e,t,s);else{const r=o.toJS(A,"",e);if(t instanceof Map){t.set(r,o.toJS(s,r,e))}else if(t instanceof Set){t.add(r)}else{const n=stringifyKey(A,r,e);const i=o.toJS(s,n,e);if(n in t)Object.defineProperty(t,n,{value:i,writable:true,enumerable:true,configurable:true});else t[n]=i}}return t}function stringifyKey(e,t,A){if(t===null)return"";if(typeof t!=="object")return String(t);if(i.isNode(e)&&A?.doc){const t=n.createStringifyContext(A.doc,{});t.anchors=new Set;for(const e of A.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const r=e.toString(t);if(!A.mapKeyWarned){let e=JSON.stringify(r);if(e.length>40)e=e.substring(0,36)+'..."';s.warn(A.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);A.mapKeyWarned=true}return r}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},1127:(e,t)=>{const A=Symbol.for("yaml.alias");const s=Symbol.for("yaml.document");const r=Symbol.for("yaml.map");const n=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const o=Symbol.for("yaml.seq");const a=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[a]===A;const isDocument=e=>!!e&&typeof e==="object"&&e[a]===s;const isMap=e=>!!e&&typeof e==="object"&&e[a]===r;const isPair=e=>!!e&&typeof e==="object"&&e[a]===n;const isScalar=e=>!!e&&typeof e==="object"&&e[a]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[a]===o;function isCollection(e){if(e&&typeof e==="object")switch(e[a]){case r:case o:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[a]){case A:case r:case i:case o:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=A;t.DOC=s;t.MAP=r;t.NODE_TYPE=a;t.PAIR=n;t.SCALAR=i;t.SEQ=o;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},4043:(e,t,A)=>{var s=A(1127);function toJS(e,t,A){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),A)));if(e&&typeof e.toJSON==="function"){if(!A||!s.hasAnchor(e))return e.toJSON(t,A);const r={aliasCount:0,count:1,res:undefined};A.anchors.set(e,r);A.onCreate=e=>{r.res=e;delete A.onCreate};const n=e.toJSON(t,A);if(A.onCreate)A.onCreate(n);return n}if(typeof e==="bigint"&&!A?.keep)return Number(e);return e}t.toJS=toJS},110:(e,t,A)=>{var s=A(8913);var r=A(6842);var n=A(1464);var i=A(3069);function resolveAsScalar(e,t=true,A){if(e){const _onError=(e,t,s)=>{const r=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(A)A(r,t,s);else throw new n.YAMLParseError([r,r+1],t,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return r.resolveFlowScalar(e,t,_onError);case"block-scalar":return s.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:A=false,indent:s,inFlow:r=false,offset:n=-1,type:o="PLAIN"}=t;const a=i.stringifyString({type:o,value:e},{implicitKey:A,indent:s>0?" ".repeat(s):"",inFlow:r,options:{blockQuote:true,lineWidth:-1}});const c=t.end??[{type:"newline",offset:-1,indent:s,source:"\n"}];switch(a[0]){case"|":case">":{const e=a.indexOf("\n");const t=a.substring(0,e);const A=a.substring(e+1)+"\n";const r=[{type:"block-scalar-header",offset:n,indent:s,source:t}];if(!addEndtoBlockProps(r,c))r.push({type:"newline",offset:-1,indent:s,source:"\n"});return{type:"block-scalar",offset:n,indent:s,props:r,source:A}}case'"':return{type:"double-quoted-scalar",offset:n,indent:s,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:n,indent:s,source:a,end:c};default:return{type:"scalar",offset:n,indent:s,source:a,end:c}}}function setScalarValue(e,t,A={}){let{afterKey:s=false,implicitKey:r=false,inFlow:n=false,type:o}=A;let a="indent"in e?e.indent:null;if(s&&typeof a==="number")a+=2;if(!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const c=i.stringifyString({type:o,value:t},{implicitKey:r||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:n,options:{blockQuote:true,lineWidth:-1}});switch(c[0]){case"|":case">":setBlockScalarValue(e,c);break;case'"':setFlowScalarValue(e,c,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,c,"single-quoted-scalar");break;default:setFlowScalarValue(e,c,"scalar")}}function setBlockScalarValue(e,t){const A=t.indexOf("\n");const s=t.substring(0,A);const r=t.substring(A+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=s;e.source=r}else{const{offset:t}=e;const A="indent"in e?e.indent:-1;const n=[{type:"block-scalar-header",offset:t,indent:A,source:s}];if(!addEndtoBlockProps(n,"end"in e?e.end:undefined))n.push({type:"newline",offset:-1,indent:A,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:A,props:n,source:r})}}function addEndtoBlockProps(e,t){if(t)for(const A of t)switch(A.type){case"space":case"comment":e.push(A);break;case"newline":e.push(A);return true}return false}function setFlowScalarValue(e,t,A){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=A;e.source=t;break;case"block-scalar":{const s=e.props.slice(1);let r=t.length;if(e.props[0].type==="block-scalar-header")r-=e.props[0].source.length;for(const e of s)e.offset+=r;delete e.props;Object.assign(e,{type:A,source:t,end:s});break}case"block-map":case"block-seq":{const s=e.offset+t.length;const r={type:"newline",offset:s,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:A,source:t,end:[r]});break}default:{const s="indent"in e?e.indent:-1;const r="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:A,indent:s,source:t,end:r})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},1733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const A of e.props)t+=stringifyToken(A);return t+e.source}case"block-map":case"block-seq":{let t="";for(const A of e.items)t+=stringifyItem(A);return t}case"flow-collection":{let t=e.start.source;for(const A of e.items)t+=stringifyItem(A);for(const A of e.end)t+=A.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const A of e.end)t+=A.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const A of e.end)t+=A.source;return t}}}function stringifyItem({start:e,key:t,sep:A,value:s}){let r="";for(const t of e)r+=t.source;if(t)r+=stringifyToken(t);if(A)for(const e of A)r+=e.source;if(s)r+=stringifyToken(s);return r}t.stringify=stringify},7715:(e,t)=>{const A=Symbol("break visit");const s=Symbol("skip children");const r=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=A;visit.SKIP=s;visit.REMOVE=r;visit.itemAtPath=(e,t)=>{let A=e;for(const[e,s]of t){const t=A?.[e];if(t&&"items"in t){A=t.items[s]}else return undefined}return A};visit.parentCollection=(e,t)=>{const A=visit.itemAtPath(e,t.slice(0,-1));const s=t[t.length-1][0];const r=A?.[s];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function _visit(e,t,s){let n=s(t,e);if(typeof n==="symbol")return n;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t{var s=A(110);var r=A(1733);var n=A(7715);const i="\ufeff";const o="";const a="";const c="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case o:return"";case a:return"";case c:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case o:return"doc-mode";case a:return"flow-error-end";case c:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=s.createScalarToken;t.resolveAsScalar=s.resolveAsScalar;t.setScalarValue=s.setScalarValue;t.stringify=r.stringify;t.visit=n.visit;t.BOM=i;t.DOCUMENT=o;t.FLOW_END=a;t.SCALAR=c;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},361:(e,t,A)=>{var s=A(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const r=new Set("0123456789ABCDEFabcdef");const n=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const o=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||o.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let A=this.next??"stream";while(A&&(t||this.hasChars(1)))A=yield*this.parseNext(A)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let A=0;while(t===" ")t=this.buffer[++A+e];if(t==="\r"){const t=this.buffer[A+e+1];if(t==="\n"||!t&&!this.atEnd)return e+A+1}return t==="\n"||A>=this.indentNext||!t&&!this.atEnd?e+A:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&ðis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let A=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=A=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const r=this.getLine();if(r===null)return this.setNext("flow");if(A!==-1&&A"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let A;e:for(let s=this.pos;A=this.buffer[s];++s){switch(A){case" ":t+=1;break;case"\n":e=s;t=0;break;case"\r":{const e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!A&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let r=e+1;A=this.buffer[r];while(A===" ")A=this.buffer[++r];if(A==="\t"){while(A==="\t"||A===" "||A==="\r"||A==="\n")A=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep){do{let A=e-1;let s=this.buffer[A];if(s==="\r")s=this.buffer[--A];const r=A;while(s===" ")s=this.buffer[--A];if(s==="\n"&&A>=this.pos&&A+1+t>r)e=A;else break}while(true)}yield s.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let A=this.pos-1;let r;while(r=this.buffer[++A]){if(r===":"){const s=this.buffer[A+1];if(isEmpty(s)||e&&i.has(s))break;t=A}else if(isEmpty(r)){let s=this.buffer[A+1];if(r==="\r"){if(s==="\n"){A+=1;r="\n";s=this.buffer[A+1]}else t=A}if(s==="#"||e&&i.has(s))break;if(r==="\n"){const e=this.continueScalar(A+1);if(e===-1)break;A=Math.max(A,e-2)}}else{if(e&&i.has(r))break;t=A}}if(!r&&!this.atEnd)return this.setNext("plain-scalar");yield s.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const A=this.buffer.slice(this.pos,e);if(A){yield A;this.pos+=A.length;return A.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(n.has(t))t=this.buffer[++e];else if(t==="%"&&r.has(this.buffer[e+1])&&r.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let A;do{A=this.buffer[++t]}while(A===" "||e&&A==="\t");const s=t-this.pos;if(s>0){yield this.buffer.substr(this.pos,s);this.pos=t}return s}*pushUntil(e){let t=this.pos;let A=this.buffer[t];while(!e(A))A=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},6628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let A=this.lineStarts.length;while(t>1;if(this.lineStarts[s]{var s=A(932);var r=A(3461);var n=A(361);function includesToken(e,t){for(let A=0;A=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new n.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const A of this.lexer.lex(e,t))yield*this.next(A);if(!t)yield*this.end()}*next(e){this.source=e;if(s.env.LOG_TOKENS)console.log("|",r.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=r.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const A=e.items[e.items.length-1];if(A.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(A.sep){A.value=t}else{Object.assign(A,{key:t,sep:[]});this.onKeyLine=!A.explicitKey;return}break}case"block-seq":{const A=e.items[e.items.length-1];if(A.value)e.items.push({start:[],value:t});else A.value=t;break}case"flow-collection":{const A=e.items[e.items.length-1];if(!A||A.value)e.items.push({start:[],key:t,sep:[]});else if(A.sep)A.value=t;else Object.assign(A,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const A=t.items[t.items.length-1];if(A&&!A.sep&&!A.value&&A.start.length>0&&findNonEmptyIndex(A.start)===-1&&(t.indent===0||A.start.every((e=>e.type!=="comment"||e.indent=e.indent){const A=!this.onKeyLine&&this.indent===e.indent;const s=A&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let r=[];if(s&&t.sep&&!t.value){const A=[];for(let s=0;se.indent)A.length=0;break;default:A.length=0}}if(A.length>=2)r=t.sep.splice(A[1])}switch(this.type){case"anchor":case"tag":if(s||t.value){r.push(this.sourceToken);e.items.push({start:r});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(s||t.value){r.push(this.sourceToken);e.items.push({start:r,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const A=t.key;const s=t.sep;s.push(this.sourceToken);delete t.key;delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:A,sep:s}]})}else if(r.length>0){t.sep=t.sep.concat(r,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||s){e.items.push({start:r,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const A=this.flowScalar(this.type);if(s||t.value){e.items.push({start:r,key:A,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(A)}else{Object.assign(t,{key:A,sep:[]});this.onKeyLine=true}return}default:{const s=this.startBlockValue(e);if(s){if(s.type==="block-seq"){if(!t.explicitKey&&t.sep&&!includesToken(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(A){e.items.push({start:r})}this.stack.push(s);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const A="end"in t.value?t.value.end:undefined;const s=Array.isArray(A)?A[A.length-1]:undefined;if(s?.type==="comment")A?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const A=e.items[e.items.length-2];const s=A?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start);s.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const A=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:A,sep:[]});else if(t.sep)this.stack.push(A);else Object.assign(t,{key:A,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const A=this.startBlockValue(e);if(A)this.stack.push(A);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const A=getPrevProps(t);const s=getFirstKeyStartProps(A);fixFlowSeqItems(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:r}]};this.onKeyLine=true;this.stack[this.stack.length-1]=n}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const A=getFirstKeyStartProps(t);A.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const A=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},4047:(e,t,A)=>{var s=A(9984);var r=A(3021);var n=A(1464);var i=A(7249);var o=A(1127);var a=A(6628);var c=A(3456);function parseOptions(e){const t=e.prettyErrors!==false;const A=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:A,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:A,prettyErrors:r}=parseOptions(t);const i=new c.Parser(A?.addNewLine);const o=new s.Composer(t);const a=Array.from(o.compose(i.parse(e)));if(r&&A)for(const t of a){t.errors.forEach(n.prettifyError(e,A));t.warnings.forEach(n.prettifyError(e,A))}if(a.length>0)return a;return Object.assign([],{empty:true},o.streamInfo())}function parseDocument(e,t={}){const{lineCounter:A,prettyErrors:r}=parseOptions(t);const i=new c.Parser(A?.addNewLine);const o=new s.Composer(t);let a=null;for(const t of o.compose(i.parse(e),true,e.length)){if(!a)a=t;else if(a.options.logLevel!=="silent"){a.errors.push(new n.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(r&&A){a.errors.forEach(n.prettifyError(e,A));a.warnings.forEach(n.prettifyError(e,A))}return a}function parse(e,t,A){let s=undefined;if(typeof t==="function"){s=t}else if(A===undefined&&t&&typeof t==="object"){A=t}const r=parseDocument(e,A);if(!r)return null;r.warnings.forEach((e=>i.warn(r.options.logLevel,e)));if(r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];else r.errors=[]}return r.toJS(Object.assign({reviver:s},A))}function stringify(e,t,A){let s=null;if(typeof t==="function"||Array.isArray(t)){s=t}else if(A===undefined&&t){A=t}if(typeof A==="string")A=A.length;if(typeof A==="number"){const e=Math.round(A);A=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=A??t??{};if(!e)return undefined}if(o.isDocument(e)&&!s)return e.toString(A);return new r.Document(e,s,A).toString(A)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},5840:(e,t,A)=>{var s=A(1127);var r=A(7451);var n=A(1706);var i=A(6464);var o=A(18);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:A,resolveKnownTags:a,schema:c,sortMapEntries:l,toStringDefaults:u}){this.compat=Array.isArray(e)?o.getTags(e,"compat"):e?o.getTags(null,e):null;this.name=typeof c==="string"&&c||"core";this.knownTags=a?o.coreKnownTags:{};this.tags=o.getTags(t,this.name,A);this.toStringOptions=u??null;Object.defineProperty(this,s.MAP,{value:r.map});Object.defineProperty(this,s.SCALAR,{value:i.string});Object.defineProperty(this,s.SEQ,{value:n.seq});this.sortMapEntries=typeof l==="function"?l:l===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},7451:(e,t,A)=>{var s=A(1127);var r=A(4454);const n={collection:"map",default:true,nodeClass:r.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!s.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,A)=>r.YAMLMap.from(e,t,A)};t.map=n},3632:(e,t,A)=>{var s=A(3301);const r={identify:e=>e==null,createNode:()=>new s.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new s.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&r.test.test(e)?e:t.options.nullStr};t.nullTag=r},1706:(e,t,A)=>{var s=A(1127);var r=A(2223);const n={collection:"seq",default:true,nodeClass:r.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!s.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,A)=>r.YAMLSeq.from(e,t,A)};t.seq=n},6464:(e,t,A)=>{var s=A(3069);const r={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,A,r){t=Object.assign({actualString:true},t);return s.stringifyString(e,t,A,r)}};t.string=r},3959:(e,t,A)=>{var s=A(3301);const r={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new s.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},A){if(e&&r.test.test(e)){const A=e[0]==="t"||e[0]==="T";if(t===A)return e}return t?A.options.trueStr:A.options.falseStr}};t.boolTag=r},8405:(e,t,A)=>{var s=A(3301);var r=A(8689);const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():r.stringifyNumber(e)}};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new s.Scalar(parseFloat(e));const A=e.indexOf(".");if(A!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-A-1;return t},stringify:r.stringifyNumber};t.float=o;t.floatExp=i;t.floatNaN=n},9874:(e,t,A)=>{var s=A(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,A,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),A);function intStringify(e,t,A){const{value:r}=e;if(intIdentify(r)&&r>=0)return A+r.toString(t);return s.stringifyNumber(e)}const r={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,A)=>intResolve(e,2,8,A),stringify:e=>intStringify(e,8,"0o")};const n={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,A)=>intResolve(e,0,10,A),stringify:s.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,A)=>intResolve(e,2,16,A),stringify:e=>intStringify(e,16,"0x")};t.int=n;t.intHex=i;t.intOct=r},896:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(3959);var a=A(8405);var c=A(9874);const l=[s.map,n.seq,i.string,r.nullTag,o.boolTag,c.intOct,c.int,c.intHex,a.floatNaN,a.floatExp,a.float];t.schema=l},3559:(e,t,A)=>{var s=A(3301);var r=A(7451);var n=A(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new s.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:A})=>A?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const o={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const a=[r.map,n.seq].concat(i,o);t.schema=a},18:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(3959);var a=A(8405);var c=A(9874);var l=A(896);var u=A(3559);var g=A(6083);var h=A(452);var E=A(303);var f=A(8385);var d=A(5913);var C=A(1528);var Q=A(6752);const I=new Map([["core",l.schema],["failsafe",[s.map,n.seq,i.string]],["json",u.schema],["yaml11",d.schema],["yaml-1.1",d.schema]]);const B={binary:g.binary,bool:o.boolTag,float:a.float,floatExp:a.floatExp,floatNaN:a.floatNaN,floatTime:Q.floatTime,int:c.int,intHex:c.intHex,intOct:c.intOct,intTime:Q.intTime,map:s.map,merge:h.merge,null:r.nullTag,omap:E.omap,pairs:f.pairs,seq:n.seq,set:C.set,timestamp:Q.timestamp};const p={"tag:yaml.org,2002:binary":g.binary,"tag:yaml.org,2002:merge":h.merge,"tag:yaml.org,2002:omap":E.omap,"tag:yaml.org,2002:pairs":f.pairs,"tag:yaml.org,2002:set":C.set,"tag:yaml.org,2002:timestamp":Q.timestamp};function getTags(e,t,A){const s=I.get(t);if(s&&!e){return A&&!s.includes(h.merge)?s.concat(h.merge):s.slice()}let r=s;if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(I.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}if(A)r=r.concat(h.merge);return r.reduce(((e,t)=>{const A=typeof t==="string"?B[t]:t;if(!A){const e=JSON.stringify(t);const A=Object.keys(B).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${A}`)}if(!e.includes(A))e.push(A);return e}),[])}t.coreKnownTags=p;t.getTags=getTags},6083:(e,t,A)=>{var s=A(181);var r=A(3301);var n=A(3069);const i={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof s.Buffer==="function"){return s.Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const A=new Uint8Array(t.length);for(let e=0;e{var s=A(3301);function boolStringify({value:e,source:t},A){const s=e?r:n;if(t&&s.test.test(t))return t;return e?A.options.trueStr:A.options.falseStr}const r={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new s.Scalar(true),stringify:boolStringify};const n={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new s.Scalar(false),stringify:boolStringify};t.falseTag=n;t.trueTag=r},5782:(e,t,A)=>{var s=A(3301);var r=A(8689);const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():r.stringifyNumber(e)}};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new s.Scalar(parseFloat(e.replace(/_/g,"")));const A=e.indexOf(".");if(A!==-1){const s=e.substring(A+1).replace(/_/g,"");if(s[s.length-1]==="0")t.minFractionDigits=s.length}return t},stringify:r.stringifyNumber};t.float=o;t.floatExp=i;t.floatNaN=n},873:(e,t,A)=>{var s=A(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,A,{intAsBigInt:s}){const r=e[0];if(r==="-"||r==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(s){switch(A){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return r==="-"?BigInt(-1)*t:t}const n=parseInt(e,A);return r==="-"?-1*n:n}function intStringify(e,t,A){const{value:r}=e;if(intIdentify(r)){const e=r.toString(t);return r<0?"-"+A+e.substr(1):A+e}return s.stringifyNumber(e)}const r={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,A)=>intResolve(e,2,2,A),stringify:e=>intStringify(e,2,"0b")};const n={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,A)=>intResolve(e,1,8,A),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,A)=>intResolve(e,0,10,A),stringify:s.stringifyNumber};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,A)=>intResolve(e,2,16,A),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=r;t.intHex=o;t.intOct=n},452:(e,t,A)=>{var s=A(1127);var r=A(3301);const n="<<";const i={identify:e=>e===n||typeof e==="symbol"&&e.description===n,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new r.Scalar(Symbol(n)),{addToJSMap:addMergeToJSMap}),stringify:()=>n};const isMergeKey=(e,t)=>(i.identify(t)||s.isScalar(t)&&(!t.type||t.type===r.Scalar.PLAIN)&&i.identify(t.value))&&e?.doc.schema.tags.some((e=>e.tag===i.tag&&e.default));function addMergeToJSMap(e,t,A){A=e&&s.isAlias(A)?A.resolve(e.doc):A;if(s.isSeq(A))for(const s of A.items)mergeValue(e,t,s);else if(Array.isArray(A))for(const s of A)mergeValue(e,t,s);else mergeValue(e,t,A)}function mergeValue(e,t,A){const r=e&&s.isAlias(A)?A.resolve(e.doc):A;if(!s.isMap(r))throw new Error("Merge sources must be maps or map aliases");const n=r.toJSON(null,e,Map);for(const[e,A]of n){if(t instanceof Map){if(!t.has(e))t.set(e,A)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:A,writable:true,enumerable:true,configurable:true})}}return t}t.addMergeToJSMap=addMergeToJSMap;t.isMergeKey=isMergeKey;t.merge=i},303:(e,t,A)=>{var s=A(1127);var r=A(4043);var n=A(4454);var i=A(2223);var o=A(8385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=n.YAMLMap.prototype.add.bind(this);this.delete=n.YAMLMap.prototype.delete.bind(this);this.get=n.YAMLMap.prototype.get.bind(this);this.has=n.YAMLMap.prototype.has.bind(this);this.set=n.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const A=new Map;if(t?.onCreate)t.onCreate(A);for(const e of this.items){let n,i;if(s.isPair(e)){n=r.toJS(e.key,"",t);i=r.toJS(e.value,n,t)}else{n=r.toJS(e,"",t)}if(A.has(n))throw new Error("Ordered maps must not include duplicate keys");A.set(n,i)}return A}static from(e,t,A){const s=o.createPairs(e,t,A);const r=new this;r.items=s.items;return r}}YAMLOMap.tag="tag:yaml.org,2002:omap";const a={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const A=o.resolvePairs(e,t);const r=[];for(const{key:e}of A.items){if(s.isScalar(e)){if(r.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{r.push(e.value)}}}return Object.assign(new YAMLOMap,A)},createNode:(e,t,A)=>YAMLOMap.from(e,t,A)};t.YAMLOMap=YAMLOMap;t.omap=a},8385:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(3301);var i=A(2223);function resolvePairs(e,t){if(s.isSeq(e)){for(let A=0;A1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new r.Pair(new n.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[A]=s.isPair(i)?i:new r.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,A){const{replacer:s}=A;const n=new i.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof s==="function")e=s.call(t,String(o++),e);let i,a;if(Array.isArray(e)){if(e.length===2){i=e[0];a=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];a=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}n.items.push(r.createPair(i,a,A))}return n}const o={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=o;t.resolvePairs=resolvePairs},5913:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(6083);var a=A(8398);var c=A(5782);var l=A(873);var u=A(452);var g=A(303);var h=A(8385);var E=A(1528);var f=A(6752);const d=[s.map,n.seq,i.string,r.nullTag,a.trueTag,a.falseTag,l.intBin,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float,o.binary,u.merge,g.omap,h.pairs,E.set,f.intTime,f.floatTime,f.timestamp];t.schema=d},1528:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(4454);class YAMLSet extends n.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(s.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new r.Pair(e.key,null);else t=new r.Pair(e,null);const A=n.findPair(this.items,t.key);if(!A)this.items.push(t)}get(e,t){const A=n.findPair(this.items,e);return!t&&s.isPair(A)?s.isScalar(A.key)?A.key.value:A.key:A}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const A=n.findPair(this.items,e);if(A&&!t){this.items.splice(this.items.indexOf(A),1)}else if(!A&&t){this.items.push(new r.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,A){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,A);else throw new Error("Set items must all have null values")}static from(e,t,A){const{replacer:s}=A;const n=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof s==="function")e=s.call(t,e,e);n.items.push(r.createPair(e,null,A))}return n}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,A)=>YAMLSet.from(e,t,A),resolve(e,t){if(s.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},6752:(e,t,A)=>{var s=A(8689);function parseSexagesimal(e,t){const A=e[0];const s=A==="-"||A==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const r=s.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return A==="-"?num(-1)*r:r}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return s.stringifyNumber(e);let A="";if(t<0){A="-";t*=num(-1)}const r=num(60);const n=[t%r];if(t<60){n.unshift(0)}else{t=(t-n[0])/r;n.unshift(t%r);if(t>=60){t=(t-n[0])/r;n.unshift(t)}}return A+n.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const r={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:A})=>parseSexagesimal(e,A),stringify:stringifySexagesimal};const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,A,s,r,n,o,a]=t.map(Number);const c=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(A,s-1,r,n||0,o||0,a||0,c);const u=t[8];if(u&&u!=="Z"){let e=parseSexagesimal(u,false);if(Math.abs(e)<30)e*=60;l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};t.floatTime=n;t.intTime=r;t.timestamp=i},4475:(e,t)=>{const A="flow";const s="block";const r="quoted";function foldFlowLines(e,t,A="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:o=20,onFold:a,onOverflow:c}={}){if(!i||i<0)return e;if(ii-Math.max(2,o))u.push(0);else h=i-n}let E=undefined;let f=undefined;let d=false;let C=-1;let Q=-1;let I=-1;if(A===s){C=consumeMoreIndentedLines(e,C,t.length);if(C!==-1)h=C+l}for(let n;n=e[C+=1];){if(A===r&&n==="\\"){Q=C;switch(e[C+1]){case"x":C+=3;break;case"u":C+=5;break;case"U":C+=9;break;default:C+=1}I=C}if(n==="\n"){if(A===s)C=consumeMoreIndentedLines(e,C,t.length);h=C+t.length+l;E=undefined}else{if(n===" "&&f&&f!==" "&&f!=="\n"&&f!=="\t"){const t=e[C+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")E=C}if(C>=h){if(E){u.push(E);h=E+l;E=undefined}else if(A===r){while(f===" "||f==="\t"){f=n;n=e[C+=1];d=true}const t=C>I+1?C-2:Q-1;if(g[t])return e;u.push(t);g[t]=true;h=t+l;E=undefined}else{d=true}}}f=n}if(d&&c)c();if(u.length===0)return e;if(a)a();let B=e.slice(0,u[0]);for(let s=0;s{var s=A(1596);var r=A(1127);var n=A(9799);var i=A(3069);function createStringifyContext(e,t){const A=Object.assign({blockQuote:true,commentString:n.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let s;switch(A.collectionStyle){case"block":s=false;break;case"flow":s=true;break;default:s=null}return{anchors:new Set,doc:e,flowCollectionPadding:A.flowCollectionPadding?" ":"",indent:"",indentStep:typeof A.indent==="number"?" ".repeat(A.indent):" ",inFlow:s,options:A}}function getTagObject(e,t){if(t.tag){const A=e.filter((e=>e.tag===t.tag));if(A.length>0)return A.find((e=>e.format===t.format))??A[0]}let A=undefined;let s;if(r.isScalar(t)){s=t.value;let r=e.filter((e=>e.identify?.(s)));if(r.length>1){const e=r.filter((e=>e.test));if(e.length>0)r=e}A=r.find((e=>e.format===t.format))??r.find((e=>!e.format))}else{s=t;A=e.find((e=>e.nodeClass&&s instanceof e.nodeClass))}if(!A){const e=s?.constructor?.name??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${e} value`)}return A}function stringifyProps(e,t,{anchors:A,doc:n}){if(!n.directives)return"";const i=[];const o=(r.isScalar(e)||r.isCollection(e))&&e.anchor;if(o&&s.anchorIsValid(o)){A.add(o);i.push(`&${o}`)}const a=e.tag??(t.default?null:t.tag);if(a)i.push(n.directives.tagString(a));return i.join(" ")}function stringify(e,t,A,s){if(r.isPair(e))return e.toString(t,A,s);if(r.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let n=undefined;const o=r.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>n=e});n??(n=getTagObject(t.doc.schema.tags,o));const a=stringifyProps(o,n,t);if(a.length>0)t.indentAtStart=(t.indentAtStart??0)+a.length+1;const c=typeof n.stringify==="function"?n.stringify(o,t,A,s):r.isScalar(o)?i.stringifyString(o,t,A,s):o.toString(t,A,s);if(!a)return c;return r.isScalar(o)||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}\n${t.indent}${c}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},1212:(e,t,A)=>{var s=A(1127);var r=A(2148);var n=A(9799);function stringifyCollection(e,t,A){const s=t.inFlow??e.flow;const r=s?stringifyFlowCollection:stringifyBlockCollection;return r(e,t,A)}function stringifyBlockCollection({comment:e,items:t},A,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:c,onComment:l}){const{indent:u,options:{commentString:g}}=A;const h=Object.assign({},A,{indent:a,type:null});let E=false;const f=[];for(let e=0;ec=null),(()=>E=true));if(c)l+=n.lineComment(l,a,g(c));if(E&&c)E=false;f.push(i+l)}let d;if(f.length===0){d=o.start+o.end}else{d=f[0];for(let e=1;ea=null));if(Ah||c.includes("\n")))g=true;E.push(c);h=E.length}const{start:f,end:d}=A;if(E.length===0){return f+d}else{if(!g){const e=E.reduce(((e,t)=>e+t.length+2),2);g=t.options.lineWidth>0&&e>t.options.lineWidth}if(g){let e=f;for(const t of E)e+=t?`\n${a}${o}${t}`:"\n";return`${e}\n${o}${d}`}else{return`${f}${c}${E.join(" ")}${c}${d}`}}}function addCommentBefore({indent:e,options:{commentString:t}},A,s,r){if(s&&r)s=s.replace(/^\n+/,"");if(s){const r=n.indentComment(t(s),e);A.push(r.trimStart())}}t.stringifyCollection=stringifyCollection},9799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,A)=>e.endsWith("\n")?indentComment(A,t):A.includes("\n")?"\n"+indentComment(A,t):(e.endsWith(" ")?"":" ")+A;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,A)=>{var s=A(1127);var r=A(2148);var n=A(9799);function stringifyDocument(e,t){const A=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){A.push(t);i=true}else if(e.directives.docStart)i=true}if(i)A.push("---");const o=r.createStringifyContext(e,t);const{commentString:a}=o.options;if(e.commentBefore){if(A.length!==1)A.unshift("");const t=a(e.commentBefore);A.unshift(n.indentComment(t,""))}let c=false;let l=null;if(e.contents){if(s.isNode(e.contents)){if(e.contents.spaceBefore&&i)A.push("");if(e.contents.commentBefore){const t=a(e.contents.commentBefore);A.push(n.indentComment(t,""))}o.forceBlockIndent=!!e.comment;l=e.contents.comment}const t=l?undefined:()=>c=true;let u=r.stringify(e.contents,o,(()=>l=null),t);if(l)u+=n.lineComment(u,"",a(l));if((u[0]==="|"||u[0]===">")&&A[A.length-1]==="---"){A[A.length-1]=`--- ${u}`}else A.push(u)}else{A.push(r.stringify(e.contents,o))}if(e.directives?.docEnd){if(e.comment){const t=a(e.comment);if(t.includes("\n")){A.push("...");A.push(n.indentComment(t,""))}else{A.push(`... ${t}`)}}else{A.push("...")}}else{let t=e.comment;if(t&&c)t=t.replace(/^\n+/,"");if(t){if((!c||l)&&A[A.length-1]!=="")A.push("");A.push(n.indentComment(a(t),""))}}return A.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},8689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:A,value:s}){if(typeof s==="bigint")return String(s);const r=typeof s==="number"?s:Number(s);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let n=JSON.stringify(s);if(!e&&t&&(!A||A==="tag:yaml.org,2002:float")&&/^\d/.test(n)){let e=n.indexOf(".");if(e<0){e=n.length;n+="."}let A=t-(n.length-e-1);while(A-- >0)n+="0"}return n}t.stringifyNumber=stringifyNumber},9748:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(2148);var i=A(9799);function stringifyPair({key:e,value:t},A,o,a){const{allNullValues:c,doc:l,indent:u,indentStep:g,options:{commentString:h,indentSeq:E,simpleKeys:f}}=A;let d=s.isNode(e)&&e.comment||null;if(f){if(d){throw new Error("With simple keys, key nodes cannot have comments")}if(s.isCollection(e)||!s.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let C=!f&&(!e||d&&t==null&&!A.inFlow||s.isCollection(e)||(s.isScalar(e)?e.type===r.Scalar.BLOCK_FOLDED||e.type===r.Scalar.BLOCK_LITERAL:typeof e==="object"));A=Object.assign({},A,{allNullValues:false,implicitKey:!C&&(f||!c),indent:u+g});let Q=false;let I=false;let B=n.stringify(e,A,(()=>Q=true),(()=>I=true));if(!C&&!A.inFlow&&B.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");C=true}if(A.inFlow){if(c||t==null){if(Q&&o)o();return B===""?"?":C?`? ${B}`:B}}else if(c&&!f||t==null&&C){B=`? ${B}`;if(d&&!Q){B+=i.lineComment(B,A.indent,h(d))}else if(I&&a)a();return B}if(Q)d=null;if(C){if(d)B+=i.lineComment(B,A.indent,h(d));B=`? ${B}\n${u}:`}else{B=`${B}:`;if(d)B+=i.lineComment(B,A.indent,h(d))}let p,y,m;if(s.isNode(t)){p=!!t.spaceBefore;y=t.commentBefore;m=t.comment}else{p=false;y=null;m=null;if(t&&typeof t==="object")t=l.createNode(t)}A.implicitKey=false;if(!C&&!d&&s.isScalar(t))A.indentAtStart=B.length+1;I=false;if(!E&&g.length>=2&&!A.inFlow&&!C&&s.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){A.indent=A.indent.substring(2)}let w=false;const b=n.stringify(t,A,(()=>w=true),(()=>I=true));let R=" ";if(d||p||y){R=p?"\n":"";if(y){const e=h(y);R+=`\n${i.indentComment(e,A.indent)}`}if(b===""&&!A.inFlow){if(R==="\n")R="\n\n"}else{R+=`\n${A.indent}`}}else if(!C&&s.isCollection(t)){const e=b[0];const s=b.indexOf("\n");const r=s!==-1;const n=A.inFlow??t.flow??t.items.length===0;if(r||!n){let t=false;if(r&&(e==="&"||e==="!")){let A=b.indexOf(" ");if(e==="&"&&A!==-1&&A{var s=A(3301);var r=A(4475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,A){if(!t||t<0)return false;const s=t-A;const r=e.length;if(r<=s)return false;for(let t=0,A=0;ts)return true;A=t+1;if(r-A<=s)return false}}return true}function doubleQuotedString(e,t){const A=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return A;const{implicitKey:s}=t;const n=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let o="";let a=0;for(let e=0,t=A[e];t;t=A[++e]){if(t===" "&&A[e+1]==="\\"&&A[e+2]==="n"){o+=A.slice(a,e)+"\\ ";e+=1;a=e;t="\\"}if(t==="\\")switch(A[e+1]){case"u":{o+=A.slice(a,e);const t=A.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:if(t.substr(0,2)==="00")o+="\\x"+t.substr(2);else o+=A.substr(e,6)}e+=5;a=e+1}break;case"n":if(s||A[e+2]==='"'||A.length\n";let E;let f;for(f=A.length;f>0;--f){const e=A[f-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let d=A.substring(f);const C=d.indexOf("\n");if(C===-1){E="-"}else if(A===d||C!==d.length-1){E="+";if(a)a()}else{E=""}if(d){A=A.slice(0,-d.length);if(d[d.length-1]==="\n")d=d.slice(0,-1);d=d.replace(n,`$&${g}`)}let Q=false;let I;let B=-1;for(I=0;I{n=true}}const a=r.foldFlowLines(`${p}${e}${d}`,g,r.FOLD_BLOCK,o);if(!n)return`>${m}\n${g}${a}`}A=A.replace(/\n+/g,`$&${g}`);return`|${m}\n${g}${p}${A}${d}`}function plainString(e,t,A,n){const{type:i,value:o}=e;const{actualString:a,implicitKey:c,indent:l,indentStep:u,inFlow:g}=t;if(c&&o.includes("\n")||g&&/[[\]{},]/.test(o)){return quotedString(o,t)}if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)){return c||g||!o.includes("\n")?quotedString(o,t):blockString(e,t,A,n)}if(!c&&!g&&i!==s.Scalar.PLAIN&&o.includes("\n")){return blockString(e,t,A,n)}if(containsDocumentMarker(o)){if(l===""){t.forceBlockIndent=true;return blockString(e,t,A,n)}else if(c&&l===u){return quotedString(o,t)}}const h=o.replace(/\n+/g,`$&\n${l}`);if(a){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(h);const{compat:e,tags:A}=t.doc.schema;if(A.some(test)||e?.some(test))return quotedString(o,t)}return c?h:r.foldFlowLines(h,l,r.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,A,r){const{implicitKey:n,inFlow:i}=t;const o=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;if(a!==s.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value))a=s.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case s.Scalar.BLOCK_FOLDED:case s.Scalar.BLOCK_LITERAL:return n||i?quotedString(o.value,t):blockString(o,t,A,r);case s.Scalar.QUOTE_DOUBLE:return doubleQuotedString(o.value,t);case s.Scalar.QUOTE_SINGLE:return singleQuotedString(o.value,t);case s.Scalar.PLAIN:return plainString(o,t,A,r);default:return null}};let c=_stringify(a);if(c===null){const{defaultKeyType:e,defaultStringType:A}=t.options;const s=n&&e||A;c=_stringify(s);if(c===null)throw new Error(`Unsupported default string type ${s}`)}return c}t.stringifyString=stringifyString},204:(e,t,A)=>{var s=A(1127);const r=Symbol("break visit");const n=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const A=initVisitor(t);if(s.isDocument(e)){const t=visit_(null,e.contents,A,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,A,Object.freeze([]))}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=i;function visit_(e,t,A,n){const o=callVisitor(e,t,A,n);if(s.isNode(o)||s.isPair(o)){replaceNode(e,n,o);return visit_(e,o,A,n)}if(typeof o!=="symbol"){if(s.isCollection(t)){n=Object.freeze(n.concat(t));for(let e=0;e{(()=>{var t={4914:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=n(A(857));const o=A(302);function issueCommand(e,t,A){const s=new Command(e,t,A);process.stdout.write(s.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,A){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=A}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const A in this.properties){if(this.properties.hasOwnProperty(A)){const s=this.properties[A];if(s){if(t){t=false}else{e+=","}e+=`${A}=${escapeProperty(s)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,o.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,o.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},7484:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.platform=t.toPlatformPath=t.toWin32Path=t.toPosixPath=t.markdownSummary=t.summary=t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=A(4914);const a=A(4753);const c=A(302);const l=n(A(857));const u=n(A(6928));const g=A(5306);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h||(t.ExitCode=h={}));function exportVariable(e,t){const A=(0,c.toCommandValue)(t);process.env[e]=A;const s=process.env["GITHUB_ENV"]||"";if(s){return(0,a.issueFileCommand)("ENV",(0,a.prepareKeyValueMessage)(e,t))}(0,o.issueCommand)("set-env",{name:e},A)}t.exportVariable=exportVariable;function setSecret(e){(0,o.issueCommand)("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){(0,a.issueFileCommand)("PATH",e)}else{(0,o.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const A=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!A){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return A}return A.trim()}t.getInput=getInput;function getMultilineInput(e,t){const A=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return A}return A.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const A=["true","True","TRUE"];const s=["false","False","FALSE"];const r=getInput(e,t);if(A.includes(r))return true;if(s.includes(r))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const A=process.env["GITHUB_OUTPUT"]||"";if(A){return(0,a.issueFileCommand)("OUTPUT",(0,a.prepareKeyValueMessage)(e,t))}process.stdout.write(l.EOL);(0,o.issueCommand)("set-output",{name:e},(0,c.toCommandValue)(t))}t.setOutput=setOutput;function setCommandEcho(e){(0,o.issue)("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){(0,o.issueCommand)("debug",{},e)}t.debug=debug;function error(e,t={}){(0,o.issueCommand)("error",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){(0,o.issueCommand)("warning",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){(0,o.issueCommand)("notice",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){(0,o.issue)("group",e)}t.startGroup=startGroup;function endGroup(){(0,o.issue)("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,(function*(){startGroup(e);let A;try{A=yield t()}finally{endGroup()}return A}))}t.group=group;function saveState(e,t){const A=process.env["GITHUB_STATE"]||"";if(A){return(0,a.issueFileCommand)("STATE",(0,a.prepareKeyValueMessage)(e,t))}(0,o.issueCommand)("save-state",{name:e},(0,c.toCommandValue)(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var E=A(1847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return E.summary}});var f=A(1847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return f.markdownSummary}});var d=A(1976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return d.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return d.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return d.toPlatformPath}});t.platform=n(A(8968))},4753:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=n(A(6982));const o=n(A(9896));const a=n(A(857));const c=A(302);function issueFileCommand(e,t){const A=process.env[`GITHUB_${e}`];if(!A){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(A)){throw new Error(`Missing file at path: ${A}`)}o.appendFileSync(A,`${(0,c.toCommandValue)(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const A=`ghadelimiter_${i.randomUUID()}`;const s=(0,c.toCommandValue)(t);if(e.includes(A)){throw new Error(`Unexpected input: name should not contain the delimiter "${A}"`)}if(s.includes(A)){throw new Error(`Unexpected input: value should not contain the delimiter "${A}"`)}return`${e}<<${A}${a.EOL}${s}${a.EOL}${A}`}t.prepareKeyValueMessage=prepareKeyValueMessage},5306:function(e,t,A){"use strict";var s=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const r=A(4844);const n=A(4552);const i=A(7484);class OidcClient{static createHttpClient(e=true,t=10){const A={allowRetries:e,maxRetries:t};return new r.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(OidcClient.getRequestToken())],A)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return s(this,void 0,void 0,(function*(){const A=OidcClient.createHttpClient();const s=yield A.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const r=(t=s.result)===null||t===void 0?void 0:t.value;if(!r){throw new Error("Response json body do not have ID Token field")}return r}))}static getIDToken(e){return s(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const A=encodeURIComponent(e);t=`${t}&audience=${A}`}(0,i.debug)(`ID token url is ${t}`);const A=yield OidcClient.getCall(t);(0,i.setSecret)(A);return A}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},1976:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=n(A(6928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},8968:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getDetails=t.isLinux=t.isMacOS=t.isWindows=t.arch=t.platform=void 0;const a=o(A(857));const c=n(A(5236));const getWindowsInfo=()=>i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>i(void 0,void 0,void 0,(function*(){var e,t,A,s;const{stdout:r}=yield c.getExecOutput("sw_vers",undefined,{silent:true});const n=(t=(e=r.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const i=(s=(A=r.match(/ProductName:\s*(.+)/))===null||A===void 0?void 0:A[1])!==null&&s!==void 0?s:"";return{name:i,version:n}}));const getLinuxInfo=()=>i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,A]=e.trim().split("\n");return{name:t,version:A}}));t.platform=a.default.platform();t.arch=a.default.arch();t.isWindows=t.platform==="win32";t.isMacOS=t.platform==="darwin";t.isLinux=t.platform==="linux";function getDetails(){return i(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield t.isWindows?getWindowsInfo():t.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:t.platform,arch:t.arch,isWindows:t.isWindows,isMacOS:t.isMacOS,isLinux:t.isLinux})}))}t.getDetails=getDetails},1847:function(e,t,A){"use strict";var s=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const r=A(857);const n=A(9896);const{access:i,appendFile:o,writeFile:a}=n.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return s(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,n.constants.R_OK|n.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,A={}){const s=Object.entries(A).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${s}>`}return`<${e}${s}>${t}${e}>`}write(e){return s(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const A=yield this.filePath();const s=t?a:o;yield s(A,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return s(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(r.EOL)}addCodeBlock(e,t){const A=Object.assign({},t&&{lang:t});const s=this.wrap("pre",this.wrap("code",e),A);return this.addRaw(s).addEOL()}addList(e,t=false){const A=t?"ol":"ul";const s=e.map((e=>this.wrap("li",e))).join("");const r=this.wrap(A,s);return this.addRaw(r).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:A,colspan:s,rowspan:r}=e;const n=t?"th":"td";const i=Object.assign(Object.assign({},s&&{colspan:s}),r&&{rowspan:r});return this.wrap(n,A,i)})).join("");return this.wrap("tr",t)})).join("");const A=this.wrap("table",t);return this.addRaw(A).addEOL()}addDetails(e,t){const A=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(A).addEOL()}addImage(e,t,A){const{width:s,height:r}=A||{};const n=Object.assign(Object.assign({},s&&{width:s}),r&&{height:r});const i=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(i).addEOL()}addHeading(e,t){const A=`h${t}`;const s=["h1","h2","h3","h4","h5","h6"].includes(A)?A:"h1";const r=this.wrap(s,e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const A=Object.assign({},t&&{cite:t});const s=this.wrap("blockquote",e,A);return this.addRaw(s).addEOL()}addLink(e,t){const A=this.wrap("a",e,{href:t});return this.addRaw(A).addEOL()}}const c=new Summary;t.markdownSummary=c;t.summary=c},302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},5236:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const o=A(3193);const a=n(A(6665));function exec(e,t,A){return i(this,void 0,void 0,(function*(){const s=a.argStringToArray(e);if(s.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const r=s[0];t=s.slice(1).concat(t||[]);const n=new a.ToolRunner(r,t,A);return n.exec()}))}t.exec=exec;function getExecOutput(e,t,A){var s,r;return i(this,void 0,void 0,(function*(){let n="";let i="";const a=new o.StringDecoder("utf8");const c=new o.StringDecoder("utf8");const l=(s=A===null||A===void 0?void 0:A.listeners)===null||s===void 0?void 0:s.stdout;const u=(r=A===null||A===void 0?void 0:A.listeners)===null||r===void 0?void 0:r.stderr;const stdErrListener=e=>{i+=c.write(e);if(u){u(e)}};const stdOutListener=e=>{n+=a.write(e);if(l){l(e)}};const g=Object.assign(Object.assign({},A===null||A===void 0?void 0:A.listeners),{stdout:stdOutListener,stderr:stdErrListener});const h=yield exec(e,t,Object.assign(Object.assign({},A),{listeners:g}));n+=a.end();i+=c.end();return{exitCode:h,stdout:n,stderr:i}}))}t.getExecOutput=getExecOutput},6665:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const o=n(A(857));const a=n(A(4434));const c=n(A(5317));const l=n(A(6928));const u=n(A(4994));const g=n(A(5207));const h=A(3557);const E=process.platform==="win32";class ToolRunner extends a.EventEmitter{constructor(e,t,A){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=A||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const A=this._getSpawnFileName();const s=this._getSpawnArgs(e);let r=t?"":"[command]";if(E){if(this._isCmdFile()){r+=A;for(const e of s){r+=` ${e}`}}else if(e.windowsVerbatimArguments){r+=`"${A}"`;for(const e of s){r+=` ${e}`}}else{r+=this._windowsQuoteCmdArg(A);for(const e of s){r+=` ${this._windowsQuoteCmdArg(e)}`}}}else{r+=A;for(const e of s){r+=` ${e}`}}return r}_processLineBuffer(e,t,A){try{let s=t+e.toString();let r=s.indexOf(o.EOL);while(r>-1){const e=s.substring(0,r);A(e);s=s.substring(r+o.EOL.length);r=s.indexOf(o.EOL)}return s}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(E){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(E){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const A of this.args){t+=" ";t+=e.windowsVerbatimArguments?A:this._windowsQuoteCmdArg(A)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const 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'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let A=false;for(const s of e){if(t.some((e=>e===s))){A=true;break}}if(!A){return e}let s='"';let r=true;for(let t=e.length;t>0;t--){s+=e[t-1];if(r&&e[t-1]==="\\"){s+="\\"}else if(e[t-1]==='"'){r=true;s+='"'}else{r=false}}s+='"';return s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let A=true;for(let s=e.length;s>0;s--){t+=e[s-1];if(A&&e[s-1]==="\\"){t+="\\"}else if(e[s-1]==='"'){A=true;t+="\\"}else{A=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const A={};A.cwd=e.cwd;A.env=e.env;A["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){A.argv0=`"${t}"`}return A}exec(){return i(this,void 0,void 0,(function*(){if(!g.isRooted(this.toolPath)&&(this.toolPath.includes("/")||E&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise(((e,t)=>i(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const A=this._cloneExecOptions(this.options);if(!A.silent&&A.outStream){A.outStream.write(this._getCommandString(A)+o.EOL)}const s=new ExecState(A,this.toolPath);s.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield g.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const r=this._getSpawnFileName();const n=c.spawn(r,this._getSpawnArgs(A),this._getSpawnOptions(this.options,r));let i="";if(n.stdout){n.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!A.silent&&A.outStream){A.outStream.write(e)}i=this._processLineBuffer(e,i,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let a="";if(n.stderr){n.stderr.on("data",(e=>{s.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!A.silent&&A.errStream&&A.outStream){const t=A.failOnStdErr?A.errStream:A.outStream;t.write(e)}a=this._processLineBuffer(e,a,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}n.on("error",(e=>{s.processError=e.message;s.processExited=true;s.processClosed=true;s.CheckComplete()}));n.on("exit",(e=>{s.processExitCode=e;s.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);s.CheckComplete()}));n.on("close",(e=>{s.processExitCode=e;s.processExited=true;s.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);s.CheckComplete()}));s.on("done",((A,s)=>{if(i.length>0){this.emit("stdline",i)}if(a.length>0){this.emit("errline",a)}n.removeAllListeners();if(A){t(A)}else{e(s)}}));if(this.options.input){if(!n.stdin){throw new Error("child process missing stdin")}n.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let A=false;let s=false;let r="";function append(e){if(s&&e!=='"'){r+="\\"}r+=e;s=false}for(let n=0;n0){t.push(r);r=""}continue}append(i)}if(r.length>0){t.push(r.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=h.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const 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()}}},4552:function(e,t){"use strict";var A=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},4844:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const o=n(A(8611));const a=n(A(5692));const c=n(A(4988));const l=n(A(770));const u=A(6752);var g;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(g||(t.HttpCodes=g={}));var h;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(h||(t.Headers=h={}));var E;(function(e){e["ApplicationJson"]="application/json"})(E||(t.MediaTypes=E={}));function getProxyUrl(e){const t=c.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[g.MovedPermanently,g.ResourceMoved,g.SeeOther,g.TemporaryRedirect,g.PermanentRedirect];const d=[g.BadGateway,g.ServiceUnavailable,g.GatewayTimeout];const C=["OPTIONS","GET","DELETE","HEAD"];const Q=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(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())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,A){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=A;if(A){if(A.ignoreSslError!=null){this._ignoreSslError=A.ignoreSslError}this._socketTimeout=A.socketTimeout;if(A.allowRedirects!=null){this._allowRedirects=A.allowRedirects}if(A.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=A.allowRedirectDowngrade}if(A.maxRedirects!=null){this._maxRedirects=Math.max(A.maxRedirects,0)}if(A.keepAlive!=null){this._keepAlive=A.keepAlive}if(A.allowRetries!=null){this._allowRetries=A.allowRetries}if(A.maxRetries!=null){this._maxRetries=A.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,A||{})}))}patch(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,A||{})}))}put(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,A||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,A,s){return i(this,void 0,void 0,(function*(){return this.request(e,t,A,s)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[h.Accept]=this._getExistingOrDefaultHeader(t,h.Accept,E.ApplicationJson);const A=yield this.get(e,t);return this._processResponse(A,this.requestOptions)}))}postJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.post(e,s,A);return this._processResponse(r,this.requestOptions)}))}putJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.put(e,s,A);return this._processResponse(r,this.requestOptions)}))}patchJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.patch(e,s,A);return this._processResponse(r,this.requestOptions)}))}request(e,t,A,s){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const r=new URL(t);let n=this._prepareRequest(e,r,s);const i=this._allowRetries&&C.includes(e)?this._maxRetries+1:1;let o=0;let a;do{a=yield this.requestRaw(n,A);if(a&&a.message&&a.message.statusCode===g.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(a)){e=t;break}}if(e){return e.handleAuthentication(this,n,A)}else{return a}}let t=this._maxRedirects;while(a.message.statusCode&&f.includes(a.message.statusCode)&&this._allowRedirects&&t>0){const i=a.message.headers["location"];if(!i){break}const o=new URL(i);if(r.protocol==="https:"&&r.protocol!==o.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield a.readBody();if(o.hostname!==r.hostname){for(const e in s){if(e.toLowerCase()==="authorization"){delete s[e]}}}n=this._prepareRequest(e,o,s);a=yield this.requestRaw(n,A);t--}if(!a.message.statusCode||!d.includes(a.message.statusCode)){return a}o+=1;if(o{function callbackForResult(e,t){if(e){s(e)}else if(!t){s(new Error("Unknown error"))}else{A(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,A){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let s=false;function handleResult(e,t){if(!s){s=true;A(e,t)}}const r=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let n;r.on("socket",(e=>{n=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));r.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){r.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){r.end()}));t.pipe(r)}else{r.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const A=c.getProxyUrl(t);const s=A&&A.hostname;if(!s){return}return this._getProxyAgentDispatcher(t,A)}_prepareRequest(e,t,A){const s={};s.parsedUrl=t;const r=s.parsedUrl.protocol==="https:";s.httpModule=r?a:o;const n=r?443:80;s.options={};s.options.host=s.parsedUrl.hostname;s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):n;s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||"");s.options.method=e;s.options.headers=this._mergeHeaders(A);if(this.userAgent!=null){s.options.headers["user-agent"]=this.userAgent}s.options.agent=this._getAgent(s.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(s.options)}}return s}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,A){let s;if(this.requestOptions&&this.requestOptions.headers){s=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||s||A}_getAgent(e){let t;const A=c.getProxyUrl(e);const s=A&&A.hostname;if(this._keepAlive&&s){t=this._proxyAgent}if(!s){t=this._agent}if(t){return t}const r=e.protocol==="https:";let n=100;if(this.requestOptions){n=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(A&&A.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(A.username||A.password)&&{proxyAuth:`${A.username}:${A.password}`}),{host:A.hostname,port:A.port})};let s;const i=A.protocol==="https:";if(r){s=i?l.httpsOverHttps:l.httpsOverHttp}else{s=i?l.httpOverHttps:l.httpOverHttp}t=s(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:n};t=r?new a.Agent(e):new o.Agent(e);this._agent=t}if(r&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let A;if(this._keepAlive){A=this._proxyAgentDispatcher}if(A){return A}const s=e.protocol==="https:";A=new u.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=A;if(s&&this._ignoreSslError){A.options=Object.assign(A.options.requestTls||{},{rejectUnauthorized:false})}return A}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(Q,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((A,s)=>i(this,void 0,void 0,(function*(){const r=e.message.statusCode||0;const n={statusCode:r,result:null,headers:{}};if(r===g.NotFound){A(n)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){i=JSON.parse(o,dateTimeDeserializer)}else{i=JSON.parse(o)}n.result=i}n.headers=e.message.headers}catch(e){}if(r>299){let e;if(i&&i.message){e=i.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${r})`}const t=new HttpClientError(e,r);t.result=n.result;s(t)}else{A(n)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,A)=>(t[A.toLowerCase()]=e[A],t)),{})},4988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const A=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(A){try{return new DecodedURL(A)}catch(e){if(!A.startsWith("http://")&&!A.startsWith("https://"))return new DecodedURL(`http://${A}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const A=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!A){return false}let s;if(e.port){s=Number(e.port)}else if(e.protocol==="http:"){s=80}else if(e.protocol==="https:"){s=443}const r=[e.hostname.toUpperCase()];if(typeof s==="number"){r.push(`${r[0]}:${s}`)}for(const e of A.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||r.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},5207:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var o;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const a=n(A(9896));const c=n(A(6928));o=a.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.open=o.open,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rm=o.rm,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=a.constants.O_RDONLY;function exists(e){return i(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,A=false){return i(this,void 0,void 0,(function*(){const s=A?yield t.stat(e):yield t.lstat(e);return s.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,A){return i(this,void 0,void 0,(function*(){let s=undefined;try{s=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(s&&s.isFile()){if(t.IS_WINDOWS){const t=c.extname(e).toUpperCase();if(A.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(s)){return e}}}const r=e;for(const n of A){e=r+n;s=undefined;try{s=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(s&&s.isFile()){if(t.IS_WINDOWS){try{const A=c.dirname(e);const s=c.basename(e).toUpperCase();for(const r of yield t.readdir(A)){if(s===r.toUpperCase()){e=c.join(A,r);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(s)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},4994:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const o=A(2613);const a=n(A(6928));const c=n(A(5207));function cp(e,t,A={}){return i(this,void 0,void 0,(function*(){const{force:s,recursive:r,copySourceDirectory:n}=readCopyOptions(A);const i=(yield c.exists(t))?yield c.stat(t):null;if(i&&i.isFile()&&!s){return}const o=i&&i.isDirectory()&&n?a.join(t,a.basename(e)):t;if(!(yield c.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield c.stat(e);if(l.isDirectory()){if(!r){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,o,0,s)}}else{if(a.relative(e,o)===""){throw new Error(`'${o}' and '${e}' are the same file`)}yield copyFile(e,o,s)}}))}t.cp=cp;function mv(e,t,A={}){return i(this,void 0,void 0,(function*(){if(yield c.exists(t)){let s=true;if(yield c.isDirectory(t)){t=a.join(t,a.basename(e));s=yield c.exists(t)}if(s){if(A.force==null||A.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(t));yield c.rename(e,t)}))}t.mv=mv;function rmRF(e){return i(this,void 0,void 0,(function*(){if(c.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield c.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return i(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");yield c.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(c.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. 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 t}const A=yield findInPath(e);if(A&&A.length>0){return A[0]}return""}))}t.which=which;function findInPath(e){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(c.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(a.delimiter)){if(e){t.push(e)}}}if(c.isRooted(e)){const A=yield c.tryGetExecutablePath(e,t);if(A){return[A]}return[]}if(e.includes(a.sep)){return[]}const A=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){A.push(e)}}}const s=[];for(const r of A){const A=yield c.tryGetExecutablePath(a.join(r,e),t);if(A){s.push(A)}}return s}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const A=Boolean(e.recursive);const s=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:A,copySourceDirectory:s}}function cpDirRecursive(e,t,A,s){return i(this,void 0,void 0,(function*(){if(A>=255)return;A++;yield mkdirP(t);const r=yield c.readdir(e);for(const n of r){const r=`${e}/${n}`;const i=`${t}/${n}`;const o=yield c.lstat(r);if(o.isDirectory()){yield cpDirRecursive(r,i,A,s)}else{yield copyFile(r,i,s)}}yield c.chmod(t,(yield c.stat(e)).mode)}))}function copyFile(e,t,A){return i(this,void 0,void 0,(function*(){if((yield c.lstat(e)).isSymbolicLink()){try{yield c.lstat(t);yield c.unlink(t)}catch(e){if(e.code==="EPERM"){yield c.chmod(t,"0666");yield c.unlink(t)}}const A=yield c.readlink(e);yield c.symlink(A,t,c.IS_WINDOWS?"junction":null)}else if(!(yield c.exists(t))||A){yield c.copyFile(e,t)}}))}},8036:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const o=n(A(6193));const a=A(7484);const c=A(857);const l=A(5317);const u=A(9896);function _findMatch(t,A,s,r){return i(this,void 0,void 0,(function*(){const n=c.platform();let i;let l;let u;for(const i of s){const s=i.version;(0,a.debug)(`check ${s} satisfies ${t}`);if(o.satisfies(s,t)&&(!A||i.stable===A)){u=i.files.find((t=>{(0,a.debug)(`${t.arch}===${r} && ${t.platform}===${n}`);let A=t.arch===r&&t.platform===n;if(A&&t.platform_version){const s=e.exports._getOsVersion();if(s===t.platform_version){A=true}else{A=o.satisfies(s,t.platform_version)}}return A}));if(u){(0,a.debug)(`matched ${i.version}`);l=i;break}}}if(l&&u){i=Object.assign({},l);i.files=[u]}return i}))}t._findMatch=_findMatch;function _getOsVersion(){const t=c.platform();let A="";if(t==="darwin"){A=l.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){A=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return A}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let A="";if(u.existsSync(e)){A=u.readFileSync(e).toString()}else if(u.existsSync(t)){A=u.readFileSync(t).toString()}return A}t._readLinuxVersionFile=_readLinuxVersionFile},7380:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const o=n(A(7484));class RetryHelper{constructor(e,t,A){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(A);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return i(this,void 0,void 0,(function*(){let A=1;while(AsetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},3472:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const o=n(A(7484));const a=n(A(4994));const c=n(A(6982));const l=n(A(9896));const u=n(A(8036));const g=n(A(857));const h=n(A(6928));const E=n(A(4844));const f=n(A(6193));const d=n(A(2203));const C=n(A(9023));const Q=A(2613);const I=A(5236);const B=A(7380);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const p=process.platform==="win32";const y=process.platform==="darwin";const m="actions/tool-cache";function downloadTool(e,t,A,s){return i(this,void 0,void 0,(function*(){t=t||h.join(_getTempDirectory(),c.randomUUID());yield a.mkdirP(h.dirname(t));o.debug(`Downloading ${e}`);o.debug(`Destination ${t}`);const r=3;const n=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const u=new B.RetryHelper(r,n,l);return yield u.execute((()=>i(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",A,s)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,A,s){return i(this,void 0,void 0,(function*(){if(l.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const r=new E.HttpClient(m,[],{allowRetries:false});if(A){o.debug("set auth");if(s===undefined){s={}}s.authorization=A}const n=yield r.get(e,s);if(n.message.statusCode!==200){const t=new HTTPError(n.message.statusCode);o.debug(`Failed to download from "${e}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`);throw t}const i=C.promisify(d.pipeline);const c=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>n.message));const u=c();let g=false;try{yield i(u,l.createWriteStream(t));o.debug("download complete");g=true;return t}finally{if(!g){o.debug("download failed");try{yield a.rmRF(t)}catch(e){o.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,A){return i(this,void 0,void 0,(function*(){(0,Q.ok)(p,"extract7z() not supported on current OS");(0,Q.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);const s=process.cwd();process.chdir(t);if(A){try{const t=o.isDebug()?"-bb1":"-bb0";const s=["x",t,"-bd","-sccUTF-8",e];const r={silent:true};yield(0,I.exec)(`"${A}"`,s,r)}finally{process.chdir(s)}}else{const A=h.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`& '${A}' -Source '${r}' -Target '${n}'`;const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];const c={silent:true};try{const e=yield a.which("powershell",true);yield(0,I.exec)(`"${e}"`,o,c)}finally{process.chdir(s)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,A="xz"){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);o.debug("Checking tar --version");let s="";yield(0,I.exec)("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>s+=e.toString(),stderr:e=>s+=e.toString()}});o.debug(s.trim());const r=s.toUpperCase().includes("GNU TAR");let n;if(A instanceof Array){n=A}else{n=[A]}if(o.isDebug()&&!A.includes("v")){n.push("-v")}let i=t;let a=e;if(p&&r){n.push("--force-local");i=t.replace(/\\/g,"/");a=e.replace(/\\/g,"/")}if(r){n.push("--warning=no-unknown-keyword");n.push("--overwrite")}n.push("-C",i,"-f",a);yield(0,I.exec)(`tar`,n);return t}))}t.extractTar=extractTar;function extractXar(e,t,A=[]){return i(this,void 0,void 0,(function*(){(0,Q.ok)(y,"extractXar() not supported on current OS");(0,Q.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);let s;if(A instanceof Array){s=A}else{s=[A]}s.push("-x","-C",t,"-f",e);if(o.isDebug()){s.push("-v")}const r=yield a.which("xar",true);yield(0,I.exec)(`"${r}"`,_unique(s));return t}))}t.extractXar=extractXar;function extractZip(e,t){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(p){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return i(this,void 0,void 0,(function*(){const A=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=yield a.which("pwsh",false);if(r){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${A}', '${s}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${A}' -DestinationPath '${s}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];o.debug(`Using pwsh at path: ${r}`);yield(0,I.exec)(`"${r}"`,t)}else{const 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 '${A}' -DestinationPath '${s}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${A}', '${s}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const r=yield a.which("powershell",true);o.debug(`Using powershell at path: ${r}`);yield(0,I.exec)(`"${r}"`,t)}}))}function extractZipNix(e,t){return i(this,void 0,void 0,(function*(){const A=yield a.which("unzip",true);const s=[e];if(!o.isDebug()){s.unshift("-q")}s.unshift("-o");yield(0,I.exec)(`"${A}"`,s,{cwd:t})}))}function cacheDir(e,t,A,s){return i(this,void 0,void 0,(function*(){A=f.clean(A)||A;s=s||g.arch();o.debug(`Caching tool ${t} ${A} ${s}`);o.debug(`source dir: ${e}`);if(!l.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const r=yield _createToolPath(t,A,s);for(const t of l.readdirSync(e)){const A=h.join(e,t);yield a.cp(A,r,{recursive:true})}_completeToolPath(t,A,s);return r}))}t.cacheDir=cacheDir;function cacheFile(e,t,A,s,r){return i(this,void 0,void 0,(function*(){s=f.clean(s)||s;r=r||g.arch();o.debug(`Caching tool ${A} ${s} ${r}`);o.debug(`source file: ${e}`);if(!l.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(A,s,r);const i=h.join(n,t);o.debug(`destination file ${i}`);yield a.cp(e,i);_completeToolPath(A,s,r);return n}))}t.cacheFile=cacheFile;function find(e,t,A){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}A=A||g.arch();if(!isExplicitVersion(t)){const s=findAllVersions(e,A);const r=evaluateVersions(s,t);t=r}let s="";if(t){t=f.clean(t)||"";const r=h.join(_getCacheDirectory(),e,t,A);o.debug(`checking cache: ${r}`);if(l.existsSync(r)&&l.existsSync(`${r}.complete`)){o.debug(`Found tool in cache ${e} ${t} ${A}`);s=r}else{o.debug("not found")}}return s}t.find=find;function findAllVersions(e,t){const A=[];t=t||g.arch();const s=h.join(_getCacheDirectory(),e);if(l.existsSync(s)){const e=l.readdirSync(s);for(const r of e){if(isExplicitVersion(r)){const e=h.join(s,r,t||"");if(l.existsSync(e)&&l.existsSync(`${e}.complete`)){A.push(r)}}}}return A}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,A,s="master"){return i(this,void 0,void 0,(function*(){let r=[];const n=`https://api.github.com/repos/${e}/${t}/git/trees/${s}`;const i=new E.HttpClient("tool-cache");const a={};if(A){o.debug("set auth");a.authorization=A}const c=yield i.getJson(n,a);if(!c.result){return r}let l="";for(const e of c.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}a["accept"]="application/vnd.github.VERSION.raw";let u=yield(yield i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{r=JSON.parse(u)}catch(e){o.debug("Invalid json")}}return r}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,A,s=g.arch()){return i(this,void 0,void 0,(function*(){const r=yield u._findMatch(e,t,A,s);return r}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return i(this,void 0,void 0,(function*(){if(!e){e=h.join(_getTempDirectory(),c.randomUUID())}yield a.mkdirP(e);return e}))}function _createToolPath(e,t,A){return i(this,void 0,void 0,(function*(){const s=h.join(_getCacheDirectory(),e,f.clean(t)||t,A||"");o.debug(`destination ${s}`);const r=`${s}.complete`;yield a.rmRF(s);yield a.rmRF(r);yield a.mkdirP(s);return s}))}function _completeToolPath(e,t,A){const s=h.join(_getCacheDirectory(),e,f.clean(t)||t,A||"");const r=`${s}.complete`;l.writeFileSync(r,"");o.debug("finished caching tool")}function isExplicitVersion(e){const t=f.clean(e)||"";o.debug(`isExplicit: ${t}`);const A=f.valid(t)!=null;o.debug(`explicit? ${A}`);return A}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let A="";o.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(f.gt(e,t)){return 1}return-1}));for(let s=e.length-1;s>=0;s--){const r=e[s];const n=f.satisfies(r,t);if(n){A=r;break}}if(A){o.debug(`matched: ${A}`)}else{o.debug("match not found")}return A}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";(0,Q.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";(0,Q.ok)(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const A=global[e];return A!==undefined?A:t}function _unique(e){return Array.from(new Set(e))}},6193:(e,t)=>{t=e.exports=SemVer;var A;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){A=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{A=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var s=256;var r=Number.MAX_SAFE_INTEGER||9007199254740991;var n=16;var i=s-6;var o=t.re=[];var a=t.safeRe=[];var c=t.src=[];var l=t.tokens={};var u=0;function tok(e){l[e]=u++}var g="[a-zA-Z0-9-]";var h=[["\\s",1],["\\d",s],[g,i]];function makeSafeRe(e){for(var t=0;t)?=?)";tok("XRANGEIDENTIFIERLOOSE");c[l.XRANGEIDENTIFIERLOOSE]=c[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");c[l.XRANGEIDENTIFIER]=c[l.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");c[l.XRANGEPLAIN]="[v=\\s]*("+c[l.XRANGEIDENTIFIER]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIER]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIER]+")"+"(?:"+c[l.PRERELEASE]+")?"+c[l.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");c[l.XRANGEPLAINLOOSE]="[v=\\s]*("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+c[l.PRERELEASELOOSE]+")?"+c[l.BUILD]+"?"+")?)?";tok("XRANGE");c[l.XRANGE]="^"+c[l.GTLT]+"\\s*"+c[l.XRANGEPLAIN]+"$";tok("XRANGELOOSE");c[l.XRANGELOOSE]="^"+c[l.GTLT]+"\\s*"+c[l.XRANGEPLAINLOOSE]+"$";tok("COERCE");c[l.COERCE]="(^|[^\\d])"+"(\\d{1,"+n+"})"+"(?:\\.(\\d{1,"+n+"}))?"+"(?:\\.(\\d{1,"+n+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");o[l.COERCERTL]=new RegExp(c[l.COERCE],"g");a[l.COERCERTL]=new RegExp(makeSafeRe(c[l.COERCE]),"g");tok("LONETILDE");c[l.LONETILDE]="(?:~>?)";tok("TILDETRIM");c[l.TILDETRIM]="(\\s*)"+c[l.LONETILDE]+"\\s+";o[l.TILDETRIM]=new RegExp(c[l.TILDETRIM],"g");a[l.TILDETRIM]=new RegExp(makeSafeRe(c[l.TILDETRIM]),"g");var E="$1~";tok("TILDE");c[l.TILDE]="^"+c[l.LONETILDE]+c[l.XRANGEPLAIN]+"$";tok("TILDELOOSE");c[l.TILDELOOSE]="^"+c[l.LONETILDE]+c[l.XRANGEPLAINLOOSE]+"$";tok("LONECARET");c[l.LONECARET]="(?:\\^)";tok("CARETTRIM");c[l.CARETTRIM]="(\\s*)"+c[l.LONECARET]+"\\s+";o[l.CARETTRIM]=new RegExp(c[l.CARETTRIM],"g");a[l.CARETTRIM]=new RegExp(makeSafeRe(c[l.CARETTRIM]),"g");var f="$1^";tok("CARET");c[l.CARET]="^"+c[l.LONECARET]+c[l.XRANGEPLAIN]+"$";tok("CARETLOOSE");c[l.CARETLOOSE]="^"+c[l.LONECARET]+c[l.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");c[l.COMPARATORLOOSE]="^"+c[l.GTLT]+"\\s*("+c[l.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");c[l.COMPARATOR]="^"+c[l.GTLT]+"\\s*("+c[l.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");c[l.COMPARATORTRIM]="(\\s*)"+c[l.GTLT]+"\\s*("+c[l.LOOSEPLAIN]+"|"+c[l.XRANGEPLAIN]+")";o[l.COMPARATORTRIM]=new RegExp(c[l.COMPARATORTRIM],"g");a[l.COMPARATORTRIM]=new RegExp(makeSafeRe(c[l.COMPARATORTRIM]),"g");var d="$1$2$3";tok("HYPHENRANGE");c[l.HYPHENRANGE]="^\\s*("+c[l.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+c[l.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");c[l.HYPHENRANGELOOSE]="^\\s*("+c[l.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+c[l.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");c[l.STAR]="(<|>)?=?\\s*\\*";for(var C=0;Cs){return null}var A=t.loose?a[l.LOOSE]:a[l.FULL];if(!A.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var A=parse(e,t);return A?A.version:null}t.clean=clean;function clean(e,t){var A=parse(e.trim().replace(/^[=v]+/,""),t);return A?A.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>s){throw new TypeError("version is longer than "+s+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}A("SemVer",e,t);this.options=t;this.loose=!!t.loose;var n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>r||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>r||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>r||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[A]==="number"){this.prerelease[A]++;A=-2}}if(A===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,A,s){if(typeof A==="string"){s=A;A=undefined}try{return new SemVer(e,A).inc(t,s).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var A=parse(e);var s=parse(t);var r="";if(A.prerelease.length||s.prerelease.length){r="pre";var n="prerelease"}for(var i in A){if(i==="major"||i==="minor"||i==="patch"){if(A[i]!==s[i]){return r+i}}}return n}}t.compareIdentifiers=compareIdentifiers;var Q=/^[0-9]+$/;function compareIdentifiers(e,t){var A=Q.test(e);var s=Q.test(t);if(A&&s){e=+e;t=+t}return e===t?0:A&&!s?-1:s&&!A?1:e0}t.lt=lt;function lt(e,t,A){return compare(e,t,A)<0}t.eq=eq;function eq(e,t,A){return compare(e,t,A)===0}t.neq=neq;function neq(e,t,A){return compare(e,t,A)!==0}t.gte=gte;function gte(e,t,A){return compare(e,t,A)>=0}t.lte=lte;function lte(e,t,A){return compare(e,t,A)<=0}t.cmp=cmp;function cmp(e,t,A,s){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof A==="object")A=A.version;return e===A;case"!==":if(typeof e==="object")e=e.version;if(typeof A==="object")A=A.version;return e!==A;case"":case"=":case"==":return eq(e,A,s);case"!=":return neq(e,A,s);case">":return gt(e,A,s);case">=":return gte(e,A,s);case"<":return lt(e,A,s);case"<=":return lte(e,A,s);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");A("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===I){this.value=""}else{this.value=this.operator+this.semver.version}A("comp",this)}var I={};Comparator.prototype.parse=function(e){var t=this.options.loose?a[l.COMPARATORLOOSE]:a[l.COMPARATOR];var A=e.match(t);if(!A){throw new TypeError("Invalid comparator: "+e)}this.operator=A[1]!==undefined?A[1]:"";if(this.operator==="="){this.operator=""}if(!A[2]){this.semver=I}else{this.semver=new SemVer(A[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){A("Comparator.test",e,this.options.loose);if(this.semver===I||e===I){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var A;if(this.operator===""){if(this.value===""){return true}A=new Range(e.value,t);return satisfies(this.value,A,t)}else if(e.operator===""){if(e.value===""){return true}A=new Range(this.value,t);return satisfies(e.semver,A,t)}var s=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var r=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var n=this.semver.version===e.semver.version;var i=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var o=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var a=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return s||r||n&&i||o||a};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}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}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var s=t?a[l.HYPHENRANGELOOSE]:a[l.HYPHENRANGE];e=e.replace(s,hyphenReplace);A("hyphen replace",e);e=e.replace(a[l.COMPARATORTRIM],d);A("comparator trim",e,a[l.COMPARATORTRIM]);e=e.replace(a[l.TILDETRIM],E);e=e.replace(a[l.CARETTRIM],f);e=e.split(/\s+/).join(" ");var r=t?a[l.COMPARATORLOOSE]:a[l.COMPARATOR];var n=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){n=n.filter((function(e){return!!e.match(r)}))}n=n.map((function(e){return new Comparator(e,this.options)}),this);return n};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(A){return isSatisfiable(A,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&A.every((function(A){return e.every((function(e){return A.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var A=true;var s=e.slice();var r=s.pop();while(A&&s.length){A=s.every((function(e){return r.intersects(e,t)}));r=s.pop()}return A}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){A("comp",e,t);e=replaceCarets(e,t);A("caret",e);e=replaceTildes(e,t);A("tildes",e);e=replaceXRanges(e,t);A("xrange",e);e=replaceStars(e,t);A("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var s=t.loose?a[l.TILDELOOSE]:a[l.TILDE];return e.replace(s,(function(t,s,r,n,i){A("tilde",e,t,s,r,n,i);var o;if(isX(s)){o=""}else if(isX(r)){o=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(n)){o=">="+s+"."+r+".0 <"+s+"."+(+r+1)+".0"}else if(i){A("replaceTilde pr",i);o=">="+s+"."+r+"."+n+"-"+i+" <"+s+"."+(+r+1)+".0"}else{o=">="+s+"."+r+"."+n+" <"+s+"."+(+r+1)+".0"}A("tilde return",o);return o}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){A("caret",e,t);var s=t.loose?a[l.CARETLOOSE]:a[l.CARET];return e.replace(s,(function(t,s,r,n,i){A("caret",e,t,s,r,n,i);var o;if(isX(s)){o=""}else if(isX(r)){o=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(n)){if(s==="0"){o=">="+s+"."+r+".0 <"+s+"."+(+r+1)+".0"}else{o=">="+s+"."+r+".0 <"+(+s+1)+".0.0"}}else if(i){A("replaceCaret pr",i);if(s==="0"){if(r==="0"){o=">="+s+"."+r+"."+n+"-"+i+" <"+s+"."+r+"."+(+n+1)}else{o=">="+s+"."+r+"."+n+"-"+i+" <"+s+"."+(+r+1)+".0"}}else{o=">="+s+"."+r+"."+n+"-"+i+" <"+(+s+1)+".0.0"}}else{A("no pr");if(s==="0"){if(r==="0"){o=">="+s+"."+r+"."+n+" <"+s+"."+r+"."+(+n+1)}else{o=">="+s+"."+r+"."+n+" <"+s+"."+(+r+1)+".0"}}else{o=">="+s+"."+r+"."+n+" <"+(+s+1)+".0.0"}}A("caret return",o);return o}))}function replaceXRanges(e,t){A("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var s=t.loose?a[l.XRANGELOOSE]:a[l.XRANGE];return e.replace(s,(function(s,r,n,i,o,a){A("xRange",e,s,r,n,i,o,a);var c=isX(n);var l=c||isX(i);var u=l||isX(o);var g=u;if(r==="="&&g){r=""}a=t.includePrerelease?"-0":"";if(c){if(r===">"||r==="<"){s="<0.0.0-0"}else{s="*"}}else if(r&&g){if(l){i=0}o=0;if(r===">"){r=">=";if(l){n=+n+1;i=0;o=0}else{i=+i+1;o=0}}else if(r==="<="){r="<";if(l){n=+n+1}else{i=+i+1}}s=r+n+"."+i+"."+o+a}else if(l){s=">="+n+".0.0"+a+" <"+(+n+1)+".0.0"+a}else if(u){s=">="+n+"."+i+".0"+a+" <"+n+"."+(+i+1)+".0"+a}A("xRange return",s);return s}))}function replaceStars(e,t){A("replaceStars",e,t);return e.trim().replace(a[l.STAR],"")}function hyphenReplace(e,t,A,s,r,n,i,o,a,c,l,u,g){if(isX(A)){t=""}else if(isX(s)){t=">="+A+".0.0"}else if(isX(r)){t=">="+A+"."+s+".0"}else{t=">="+t}if(isX(a)){o=""}else if(isX(c)){o="<"+(+a+1)+".0.0"}else if(isX(l)){o="<"+a+"."+(+c+1)+".0"}else if(u){o="<="+a+"."+c+"."+l+"-"+u}else{o="<="+o}return(t+" "+o).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,A){try{t=new Range(t,A)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,A){var s=null;var r=null;try{var n=new Range(t,A)}catch(e){return null}e.forEach((function(e){if(n.test(e)){if(!s||r.compare(e)===-1){s=e;r=new SemVer(s,A)}}}));return s}t.minSatisfying=minSatisfying;function minSatisfying(e,t,A){var s=null;var r=null;try{var n=new Range(t,A)}catch(e){return null}e.forEach((function(e){if(n.test(e)){if(!s||r.compare(e)===1){s=e;r=new SemVer(s,A)}}}));return s}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var A=new SemVer("0.0.0");if(e.test(A)){return A}A=new SemVer("0.0.0-0");if(e.test(A)){return A}A=null;for(var s=0;s":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!A||gt(A,t)){A=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(A&&e.test(A)){return A}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,A){return outside(e,t,"<",A)}t.gtr=gtr;function gtr(e,t,A){return outside(e,t,">",A)}t.outside=outside;function outside(e,t,A,s){e=new SemVer(e,s);t=new Range(t,s);var r,n,i,o,a;switch(A){case">":r=gt;n=lte;i=lt;o=">";a=">=";break;case"<":r=lt;n=gte;i=gt;o="<";a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,s)){return false}for(var c=0;c=0.0.0")}u=u||e;g=g||e;if(r(e.semver,u.semver,s)){u=e}else if(i(e.semver,g.semver,s)){g=e}}));if(u.operator===o||u.operator===a){return false}if((!g.operator||g.operator===o)&&n(e,g.semver)){return false}else if(g.operator===a&&i(e,g.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var A=parse(e,t);return A&&A.prerelease.length?A.prerelease:null}t.intersects=intersects;function intersects(e,t,A){e=new Range(e,A);t=new Range(t,A);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var A=null;if(!t.rtl){A=e.match(a[l.COERCE])}else{var s;while((s=a[l.COERCERTL].exec(e))&&(!A||A.index+A[0].length!==e.length)){if(!A||s.index+s[0].length!==A.index+A[0].length){A=s}a[l.COERCERTL].lastIndex=s.index+s[1].length+s[2].length}a[l.COERCERTL].lastIndex=-1}if(A===null){return null}return parse(A[2]+"."+(A[3]||"0")+"."+(A[4]||"0"),t)}},6160:(e,t,A)=>{(()=>{"use strict";var t={9081:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseCredential=parseCredential;t.isServiceAccountKey=isServiceAccountKey;t.isExternalAccount=isExternalAccount;const s=A(3916);const r=A(6266);function parseCredential(e){e=(e||"").trim();if(!e){throw new Error(`Missing service account key JSON (got empty value)`)}if(!e.startsWith("{")){e=(0,r.fromBase64)(e)}try{const t=JSON.parse(e);return t}catch(e){const t=(0,s.errorMessage)(e);throw new SyntaxError(`Failed to parse service account key JSON credentials: ${t}`)}}function isServiceAccountKey(e){return e.type==="service_account"}function isExternalAccount(e){return e.type!=="external_account"}t["default"]={parseCredential:parseCredential,isServiceAccountKey:isServiceAccountKey,isExternalAccount:isExternalAccount}},3214:function(e,t,A){var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var A in e)if(Object.prototype.hasOwnProperty.call(e,A))t[t.length]=A;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A=ownKeys(e),n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.parseCSV=parseCSV;t.parseMultilineCSV=parseMultilineCSV;function parseCSV(e){e=(e||"").trim();if(!e){return[]}const t=e.split(/(?{Object.defineProperty(t,"__esModule",{value:true});t.toBase64=toBase64;t.fromBase64=fromBase64;function toBase64(e){return Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function fromBase64(e,t){if(!t){t="utf8"}let A=e.replace(/-/g,"+").replace(/_/g,"/");while(A.length%4)A+="=";return Buffer.from(A,"base64").toString(t)}},3466:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toEnum=toEnum;function toEnum(e,t){const A=(t||"").toUpperCase();const s=A.replace(/[\s-]+/g,"_");if(A in e){return e[A]}else if(s in e){return e[s]}else{const A=Object.keys(e);throw new Error(`Invalid value ${t}, valid values are ${JSON.stringify(A)}`)}}},8204:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.stubEnv=stubEnv;function stubEnv(e,t=process.env){const A={};for(const s in e){A[s]=t[s];if(e[s]!==undefined){t[s]=e[s]}else{delete t[s]}}return()=>{for(const e in A){if(A[e]!==undefined){t[e]=A[e]}else{delete t[e]}}}}},3916:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.errorMessage=errorMessage;t.isNotFoundError=isNotFoundError;function errorMessage(e){let t;if(e===null){t="null"}else if(e===undefined||typeof e==="undefined"){t="undefined"}else if(typeof e==="bigint"||e instanceof BigInt){t=e.toString()}else if(typeof e==="boolean"||e instanceof Boolean){t=e.toString()}else if(e instanceof Error){t=e.message}else if(typeof e==="function"||e instanceof Function){t=errorMessage(e())}else if(typeof e==="number"||e instanceof Number){t=e.toString()}else if(typeof e==="string"||e instanceof String){t=e.toString()}else if(typeof e==="symbol"||e instanceof Symbol){t=e.toString()}else if(typeof e==="object"||e instanceof Object){t=JSON.stringify(e)}else{t=String(`[${typeof e}] ${e}`)}const A=t.trim().replace("Error: ","").trim();if(!A)return"";if(A.length>1&&isUpper(A[0])&&!isUpper(A[1])){return A[0].toLowerCase()+A.slice(1)}return A}function isNotFoundError(e){const t=errorMessage(e);return t.toUpperCase().includes("ENOENT")}function isUpper(e){return e===e.toUpperCase()}},6148:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseFlags=parseFlags;t.readUntil=readUntil;function parseFlags(e){const t=[];let A="";let s=false;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t.forceRemove=forceRemove;t.isEmptyDir=isEmptyDir;t.writeSecureFile=writeSecureFile;t.removeFile=removeFile;const s=A(9896);const r=A(3916);async function forceRemove(e){try{await s.promises.rm(e,{force:true,recursive:true})}catch(t){if(!(0,r.isNotFoundError)(t)){const A=(0,r.errorMessage)(t);throw new Error(`Failed to remove "${e}": ${A}`)}}}async function isEmptyDir(e){try{const t=await s.promises.readdir(e);return t.length<=0}catch{return true}}async function writeSecureFile(e,t,A){const r=Object.assign({},{mode:416,flag:"wx",flush:true},A);await s.promises.writeFile(e,t,r);return e}async function removeFile(e){try{await s.promises.unlink(e);return true}catch(t){if((0,r.isNotFoundError)(t)){return false}const A=(0,r.errorMessage)(t);throw new Error(`Failed to remove "${e}": ${A}`)}}},7237:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseGcloudIgnore=parseGcloudIgnore;const s=A(9896);const r=A(6928);const n=A(3916);async function parseGcloudIgnore(e){const t=(0,r.dirname)(e);let A=[];try{A=(await s.promises.readFile(e,{encoding:"utf8"})).toString().split(/\r?\n/).filter(shouldKeepIgnoreLine).map((e=>e.trim()))}catch(e){if(!(0,n.isNotFoundError)(e)){throw e}}for(let e=0;ee.trim()));A.splice(e,1,...a);e+=a.length}}return A}function shouldKeepIgnoreLine(e){const t=(e||"").trim();if(t===""){return false}if(t.startsWith("#")&&!t.startsWith("#!")){return false}return true}},9407:function(e,t,A){var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__exportStar||function(e,t){for(var A in e)if(A!=="default"&&!Object.prototype.hasOwnProperty.call(t,A))s(t,e,A)};Object.defineProperty(t,"__esModule",{value:true});r(A(9081),t);r(A(3214),t);r(A(731),t);r(A(6266),t);r(A(3466),t);r(A(8204),t);r(A(3916),t);r(A(6148),t);r(A(4772),t);r(A(7237),t);r(A(3599),t);r(A(4958),t);r(A(3716),t);r(A(7384),t);r(A(436),t);r(A(9809),t);r(A(8935),t);r(A(9834),t);r(A(6244),t);r(A(5215),t);r(A(286),t)},3599:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseBoolean=parseBoolean;const A={1:true,t:true,T:true,true:true,True:true,TRUE:true,0:false,f:false,F:false,false:false,False:false,FALSE:false};function parseBoolean(e,t=false){const s=(e||"").trim();if(s===""){return t}if(!(s in A)){throw new Error(`invalid boolean value "${s}"`)}return A[s]}},4958:function(e,t,A){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.joinKVString=joinKVString;t.joinKVStringForGCloud=joinKVStringForGCloud;t.parseKVString=parseKVString;t.parseKVFile=parseKVFile;t.parseKVJSON=parseKVJSON;t.parseKVYAML=parseKVYAML;t.parseKVStringAndFile=parseKVStringAndFile;const r=s(A(8815));const n=A(9896);const i=A(3916);const o=A(5215);function joinKVString(e,t=","){return Object.entries(e).map((([e,t])=>`${e}=${t}`)).join(t)}function joinKVStringForGCloud(e,t=",.!@#$%&*()_=+~`[]{}|:;<>?🚀🍪🐼"){const A=joinKVString(e,"");if(A===""){return""}const s={};for(let e=0;eA+=e;const setValue=e=>s+=e;let n=setKey;for(let i=0;i=0){n(o);r=-1}else if(o==="\\"){r=i}else if(o==="="){if(A===""){throw new Error(`Invalid start sequence for value (no preceeding key before "=") at ${i}`)}if(n===setValue){n(o)}n=setValue}else if(o==="\n"||o==="\r"||o==="\u2028"||o==="\u2029"||o===","){if(A!==""){t[A.trim()]=s.trim()}A="";s="";n=setKey}else{n(o)}}if(r>=0){throw new Error(`Unterminated escape character at ${r}`)}if(A!==""){t[A.trim()]=s.trim()}return t}function parseKVFile(e){try{const t=(0,o.presence)((0,n.readFileSync)(e,"utf8"));if(!t||t.length<1){return undefined}if(t[0]==="{"||t[0]==="["){return parseKVJSON(t)}if(t.match(/^.+=.+/gi)){return parseKVString(t)}return parseKVYAML(t)}catch(t){const A=(0,i.errorMessage)(t);throw new Error(`Failed to read file '${e}': ${A}`)}}function parseKVJSON(e){e=(e||"").trim();if(!e){return undefined}if(e==="{}"){return{}}try{const t=JSON.parse(e);const A={};for(const[e,s]of Object.entries(t)){if(typeof e!=="string"){throw new SyntaxError(`Failed to parse key "${e}", expected string, got ${typeof e}`)}if(e.trim()===""){throw new SyntaxError(`Failed to parse key "${e}", expected at least one character`)}if(typeof s!=="string"){const t=JSON.stringify(s);throw new SyntaxError(`Failed to parse value "${t}" for "${e}", expected string, got ${typeof s}`)}if(s.trim()===""){throw new SyntaxError(`Value for key "${e}" cannot be empty (got "${s}")`)}A[e]=s}return A}catch(e){const t=(0,i.errorMessage)(e);throw new Error(`Failed to parse KV pairs as JSON: ${t}`)}}function parseKVYAML(e){const t=(e||"").trim();if(!t){return undefined}if(t==="{}"){return{}}const A=r.default.parse(e);const s={};for(const[e,t]of Object.entries(A)){if(typeof e!=="string"||typeof t!=="string"){throw new SyntaxError(`env_vars_file must contain only KEY: VALUE strings. Error parsing key ${e} of type ${typeof e} with value ${t} of type ${typeof t}`)}s[e.trim()]=t.trim()}return s}function parseKVStringAndFile(e,t){e=(e||"").trim();t=(t||"").trim();const A=t?parseKVFile(t):undefined;const s=e?parseKVString(e):undefined;if(A===undefined&&s===undefined){return undefined}return Object.assign({},A,s)}},3716:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.inParallel=inParallel;const s=A(857);const r=A(3916);async function inParallel(e,t){t=Math.min(t||(0,s.cpus)().length-1);if(t<1){throw new Error(`concurrency must be at least 1`)}const A=[];const n=[];const runTasks=async e=>{for await(const[t,s]of e){try{A[t]=await s()}catch(e){n.push((0,r.errorMessage)(e))}}};const i=new Array(t).fill(e.entries()).map(runTasks);await Promise.allSettled(i);if(n.length>0){throw new Error(n.join("\n"))}return A}},7384:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.toPosixPath=toPosixPath;t.toWin32Path=toWin32Path;t.toPlatformPath=toPlatformPath;const s=A(6928);function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}},436:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.randomFilename=randomFilename;t.randomFilepath=randomFilepath;const s=A(6928);const r=A(6982);const n=A(857);function randomFilename(e=12){return(0,r.randomBytes)(e).toString("hex")}function randomFilepath(e=(0,n.tmpdir)(),t=12){return(0,s.join)(e,randomFilename(t))}t["default"]={randomFilename:randomFilename,randomFilepath:randomFilepath}},9809:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.withRetries=withRetries;const s=A(3916);const r=A(9834);const n=100;function withRetries(e,t){const A=t.retries;const i=typeof t?.backoffLimit!=="undefined"?Math.max(t.backoffLimit,0):undefined;let o=t.backoff??n;if(typeof i!=="undefined"){o=Math.min(o,i)}return async function(){let n=A+1;let a=o;const c=i;let l=0;let u="unknown";do{try{return await e()}catch(e){u=(0,s.errorMessage)(e);--n;if(n>0){await(0,r.sleep)(a);let e=l+a;if(typeof c!=="undefined"){e=Math.min(e,Number(c))}l=a;a=e}}}while(n>0);const g=t.retries+1;const h=g===1?`1 attempt`:`${g} attempts`;throw new Error(`retry function failed after ${h}: ${u}`)}}},8935:function(e,t,A){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.setInput=setInput;t.setInputs=setInputs;t.clearInputs=clearInputs;t.clearEnv=clearEnv;t.skipIfMissingEnv=skipIfMissingEnv;t.assertMembers=assertMembers;const r=s(A(4589));function setInput(e,t){const A=`INPUT_${e.replace(/ /g,"_").toUpperCase()}`;process.env[A]=t}function setInputs(e){Object.entries(e).forEach((([e,t])=>setInput(e,t)))}function clearInputs(){clearEnv((e=>e.startsWith(`INPUT_`)))}function clearEnv(e){Object.keys(process.env).forEach((t=>{if(e(t,process.env[t])){delete process.env[t]}}))}function skipIfMissingEnv(...e){for(const t of e){if(!(t in process.env)){return`missing $${t}`}}return false}function assertMembers(e,t){for(let A=0;A<=e.length-t.length;A++){let s=true;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t.parseDuration=parseDuration;t.sleep=sleep;function parseDuration(e){e=(e||"").trim();if(!e){return 0}let t=0;let A="";for(let s=0;ssetTimeout(t,e)))}},6244:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.expandUniverseEndpoints=expandUniverseEndpoints;function expandUniverseEndpoints(e,t="googleapis.com"){const A=Object.assign({});for(const s in e){const r=`GHA_ENDPOINT_OVERRIDE_${s}`;const n=process.env[r];if(n&&n!==""){A[s]=n.replace(/\/+$/,"")}else{A[s]=e[s].replace(/{universe}/g,t).replace(/\/+$/,"")}}return A}},5215:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.presence=presence;t.exactlyOneOf=exactlyOneOf;t.allOf=allOf;function presence(e){return(e||"").trim()||undefined}function exactlyOneOf(...e){e=e||[];let t=false;for(let A=0;A{Object.defineProperty(t,"__esModule",{value:true});t.isPinnedToHead=isPinnedToHead;t.pinnedToHeadWarning=pinnedToHeadWarning;function isPinnedToHead(){const e=process.env.GITHUB_ACTION_REF;return e==="master"||e==="main"}function pinnedToHeadWarning(e){const t=process.env.GITHUB_ACTION_REF;const A=process.env.GITHUB_ACTION_REPOSITORY;return`${A} is pinned at "${t}". We strongly advise against `+`pinning to "@${t}" as it may be unstable. Please update your `+`GitHub Action YAML from:\n`+`\n`+` uses: '${A}@${t}'\n`+`\n`+`to:\n`+`\n`+` uses: '${A}@${e}'\n`+`\n`+`Alternatively, you can pin to any git tag or git SHA in the repository.`}},181:e=>{e.exports=A(181)},6982:e=>{e.exports=A(6982)},9896:e=>{e.exports=A(9896)},4589:e=>{e.exports=A(4589)},857:e=>{e.exports=A(857)},6928:e=>{e.exports=A(6928)},932:e=>{e.exports=A(932)},1493:e=>{e.exports=A(1493)},7349:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(4454);var i=A(2223);var o=A(7103);var a=A(334);var c=A(3142);function resolveCollection(e,t,A,s,r,n){const i=A.type==="block-map"?o.resolveBlockMap(e,t,A,s,n):A.type==="block-seq"?a.resolveBlockSeq(e,t,A,s,n):c.resolveFlowCollection(e,t,A,s,n);const l=i.constructor;if(r==="!"||r===l.tagName){i.tag=l.tagName;return i}if(r)i.tag=r;return i}function composeCollection(e,t,A,o,a){const c=o.tag;const l=!c?null:t.directives.tagName(c.source,(e=>a(c,"TAG_RESOLVE_FAILED",e)));if(A.type==="block-seq"){const{anchor:e,newlineAfterProp:t}=o;const A=e&&c?e.offset>c.offset?e:c:e??c;if(A&&(!t||t.offsete.tag===l&&e.collection===u));if(!g){const s=t.schema.knownTags[l];if(s&&s.collection===u){t.schema.tags.push(Object.assign({},s,{default:false}));g=s}else{if(s){a(c,"BAD_COLLECTION_TYPE",`${s.tag} used for ${u} collection, but expects ${s.collection??"scalar"}`,true)}else{a(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,true)}return resolveCollection(e,t,A,a,l)}}const h=resolveCollection(e,t,A,a,l,g);const E=g.resolve?.(h,(e=>a(c,"TAG_RESOLVE_FAILED",e)),t.options)??h;const f=s.isNode(E)?E:new r.Scalar(E);f.range=h.range;f.tag=l;if(g?.format)f.format=g.format;return f}t.composeCollection=composeCollection},3683:(e,t,A)=>{var s=A(3021);var r=A(5937);var n=A(7788);var i=A(4631);function composeDoc(e,t,{offset:A,start:o,value:a,end:c},l){const u=Object.assign({_directives:t},e);const g=new s.Document(undefined,u);const h={atKey:false,atRoot:true,directives:g.directives,options:g.options,schema:g.schema};const E=i.resolveProps(o,{indicator:"doc-start",next:a??c?.[0],offset:A,onError:l,parentIndent:0,startOnNewline:true});if(E.found){g.directives.docStart=true;if(a&&(a.type==="block-map"||a.type==="block-seq")&&!E.hasNewline)l(E.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}g.contents=a?r.composeNode(h,a,E,l):r.composeEmptyNode(h,E.end,o,null,E,l);const f=g.contents.range[2];const d=n.resolveEnd(c,f,false,l);if(d.comment)g.comment=d.comment;g.range=[A,f,d.offset];return g}t.composeDoc=composeDoc},5937:(e,t,A)=>{var s=A(4065);var r=A(1127);var n=A(7349);var i=A(5413);var o=A(7788);var a=A(2599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,A,s){const o=e.atKey;const{spaceBefore:a,comment:l,anchor:u,tag:g}=A;let h;let E=true;switch(t.type){case"alias":h=composeAlias(e,t,s);if(u||g)s(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":h=i.composeScalar(e,t,g,s);if(u)h.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":h=n.composeCollection(c,e,t,A,s);if(u)h.anchor=u.source.substring(1);break;default:{const r=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;s(t,"UNEXPECTED_TOKEN",r);h=composeEmptyNode(e,t.offset,undefined,null,A,s);E=false}}if(u&&h.anchor==="")s(u,"BAD_ALIAS","Anchor cannot be an empty string");if(o&&e.options.stringKeys&&(!r.isScalar(h)||typeof h.value!=="string"||h.tag&&h.tag!=="tag:yaml.org,2002:str")){const e="With stringKeys, all keys must be strings";s(g??t,"NON_STRING_KEY",e)}if(a)h.spaceBefore=true;if(l){if(t.type==="scalar"&&t.source==="")h.comment=l;else h.commentBefore=l}if(e.options.keepSourceTokens&&E)h.srcToken=t;return h}function composeEmptyNode(e,t,A,s,{spaceBefore:r,comment:n,anchor:o,tag:c,end:l},u){const g={type:"scalar",offset:a.emptyScalarPosition(t,A,s),indent:-1,source:""};const h=i.composeScalar(e,g,c,u);if(o){h.anchor=o.source.substring(1);if(h.anchor==="")u(o,"BAD_ALIAS","Anchor cannot be an empty string")}if(r)h.spaceBefore=true;if(n){h.comment=n;h.range[2]=l}return h}function composeAlias({options:e},{offset:t,source:A,end:r},n){const i=new s.Alias(A.substring(1));if(i.source==="")n(t,"BAD_ALIAS","Alias cannot be an empty string");if(i.source.endsWith(":"))n(t+A.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const a=t+A.length;const c=o.resolveEnd(r,a,e.strict,n);i.range=[t,a,c.offset];if(c.comment)i.comment=c.comment;return i}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(8913);var i=A(6842);function composeScalar(e,t,A,o){const{value:a,type:c,comment:l,range:u}=t.type==="block-scalar"?n.resolveBlockScalar(e,t,o):i.resolveFlowScalar(t,e.options.strict,o);const g=A?e.directives.tagName(A.source,(e=>o(A,"TAG_RESOLVE_FAILED",e))):null;let h;if(e.options.stringKeys&&e.atKey){h=e.schema[s.SCALAR]}else if(g)h=findScalarTagByName(e.schema,a,g,A,o);else if(t.type==="scalar")h=findScalarTagByTest(e,a,t,o);else h=e.schema[s.SCALAR];let E;try{const n=h.resolve(a,(e=>o(A??t,"TAG_RESOLVE_FAILED",e)),e.options);E=s.isScalar(n)?n:new r.Scalar(n)}catch(e){const s=e instanceof Error?e.message:String(e);o(A??t,"TAG_RESOLVE_FAILED",s);E=new r.Scalar(a)}E.range=u;E.source=a;if(c)E.type=c;if(g)E.tag=g;if(h.format)E.format=h.format;if(l)E.comment=l;return E}function findScalarTagByName(e,t,A,r,n){if(A==="!")return e[s.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===A){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const o=e.knownTags[A];if(o&&!o.collection){e.tags.push(Object.assign({},o,{default:false,test:undefined}));return o}n(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${A}`,A!=="tag:yaml.org,2002:str");return e[s.SCALAR]}function findScalarTagByTest({atKey:e,directives:t,schema:A},r,n,i){const o=A.tags.find((t=>(t.default===true||e&&t.default==="key")&&t.test?.test(r)))||A[s.SCALAR];if(A.compat){const e=A.compat.find((e=>e.default&&e.test?.test(r)))??A[s.SCALAR];if(o.tag!==e.tag){const A=t.tagString(o.tag);const s=t.tagString(e.tag);const r=`Value may be parsed as either ${A} or ${s}`;i(n,"TAG_RESOLVE_FAILED",r,true)}}return o}t.composeScalar=composeScalar},9984:(e,t,A)=>{var s=A(932);var r=A(1342);var n=A(3021);var i=A(1464);var o=A(1127);var a=A(3683);var c=A(7788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:A}=e;return[t,t+(typeof A==="string"?A.length:1)]}function parsePrelude(e){let t="";let A=false;let s=false;for(let r=0;r{const r=getErrorPos(e);if(s)this.warnings.push(new i.YAMLWarning(r,t,A));else this.errors.push(new i.YAMLParseError(r,t,A))};this.directives=new r.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:A,afterEmptyLine:s}=parsePrelude(this.prelude);if(A){const r=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${A}`:A}else if(s||e.directives.docStart||!r){e.commentBefore=A}else if(o.isCollection(r)&&!r.flow&&r.items.length>0){let e=r.items[0];if(o.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${A}\n${t}`:A}else{const e=r.commentBefore;r.commentBefore=e?`${A}\n${e}`:A}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,A=-1){for(const t of e)yield*this.next(t);yield*this.end(t,A)}*next(e){if(s.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,A,s)=>{const r=getErrorPos(e);r[0]+=t;this.onError(r,"BAD_DIRECTIVE",A,s)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const A=new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(A);else this.doc.errors.push(A);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const A=new n.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");A.range=[0,t,t];this.decorate(A,false);yield A}}}t.Composer=Composer},7103:(e,t,A)=>{var s=A(7165);var r=A(4454);var n=A(4631);var i=A(9499);var o=A(4051);var a=A(1187);const c="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},A,l,u,g){const h=g?.nodeClass??r.YAMLMap;const E=new h(A.schema);if(A.atRoot)A.atRoot=false;let f=l.offset;let d=null;for(const r of l.items){const{start:g,key:h,sep:C,value:Q}=r;const I=n.resolveProps(g,{indicator:"explicit-key-ind",next:h??C?.[0],offset:f,onError:u,parentIndent:l.indent,startOnNewline:true});const B=!I.found;if(B){if(h){if(h.type==="block-seq")u(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in h&&h.indent!==l.indent)u(f,"BAD_INDENT",c)}if(!I.anchor&&!I.tag&&!C){d=I.end;if(I.comment){if(E.comment)E.comment+="\n"+I.comment;else E.comment=I.comment}continue}if(I.newlineAfterProp||i.containsNewline(h)){u(h??g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==l.indent){u(f,"BAD_INDENT",c)}A.atKey=true;const p=I.end;const y=h?e(A,h,I,u):t(A,p,g,null,I,u);if(A.schema.compat)o.flowIndentCheck(l.indent,h,u);A.atKey=false;if(a.mapIncludes(A,E.items,y))u(p,"DUPLICATE_KEY","Map keys must be unique");const m=n.resolveProps(C??[],{indicator:"map-value-ind",next:Q,offset:y.range[2],onError:u,parentIndent:l.indent,startOnNewline:!h||h.type==="block-scalar"});f=m.end;if(m.found){if(B){if(Q?.type==="block-map"&&!m.hasNewline)u(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(A.options.strict&&I.start{var s=A(3301);function resolveBlockScalar(e,t,A){const r=t.offset;const n=parseBlockScalarHeader(t,e.options.strict,A);if(!n)return{value:"",type:null,comment:"",range:[r,r,r]};const i=n.mode===">"?s.Scalar.BLOCK_FOLDED:s.Scalar.BLOCK_LITERAL;const o=t.source?splitLines(t.source):[];let a=o.length;for(let e=o.length-1;e>=0;--e){const t=o[e][1];if(t===""||t==="\r")a=e;else break}if(a===0){const e=n.chomp==="+"&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"";let A=r+n.length;if(t.source)A+=t.source.length;return{value:e,type:i,comment:n.comment,range:[r,A,A]}}let c=t.indent+n.indent;let l=t.offset+n.length;let u=0;for(let t=0;tc)c=s.length}else{if(s.length=a;--e){if(o[e][0].length>c)a=e+1}let g="";let h="";let E=false;for(let e=0;ec||r[0]==="\t"){if(h===" ")h="\n";else if(!E&&h==="\n")h="\n\n";g+=h+t.slice(c)+r;h="\n";E=true}else if(r===""){if(h==="\n")g+="\n";else h="\n"}else{g+=h+r;h=" ";E=false}}switch(n.chomp){case"-":break;case"+":for(let e=a;e{var s=A(2223);var r=A(4631);var n=A(4051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},A,i,o,a){const c=a?.nodeClass??s.YAMLSeq;const l=new c(A.schema);if(A.atRoot)A.atRoot=false;if(A.atKey)A.atKey=false;let u=i.offset;let g=null;for(const{start:s,value:a}of i.items){const c=r.resolveProps(s,{indicator:"seq-item-ind",next:a,offset:u,onError:o,parentIndent:i.indent,startOnNewline:true});if(!c.found){if(c.anchor||c.tag||a){if(a&&a.type==="block-seq")o(c.end,"BAD_INDENT","All sequence items must start at the same column");else o(u,"MISSING_CHAR","Sequence item without - indicator")}else{g=c.end;if(c.comment)l.comment=c.comment;continue}}const h=a?e(A,a,c,o):t(A,c.end,s,null,c,o);if(A.schema.compat)n.flowIndentCheck(i.indent,a,o);u=h.range[2];l.items.push(h)}l.range=[i.offset,u,g??u];return l}t.resolveBlockSeq=resolveBlockSeq},7788:(e,t)=>{function resolveEnd(e,t,A,s){let r="";if(e){let n=false;let i="";for(const o of e){const{source:e,type:a}=o;switch(a){case"space":n=true;break;case"comment":{if(A&&!n)s(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!r)r=t;else r+=i+t;i="";break}case"newline":if(r)i+=e;n=true;break;default:s(o,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}t+=e.length}}return{comment:r,offset:t}}t.resolveEnd=resolveEnd},3142:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(4454);var i=A(2223);var o=A(7788);var a=A(4631);var c=A(9499);var l=A(1187);const u="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},A,g,h,E){const f=g.start.source==="{";const d=f?"flow map":"flow sequence";const C=E?.nodeClass??(f?n.YAMLMap:i.YAMLSeq);const Q=new C(A.schema);Q.flow=true;const I=A.atRoot;if(I)A.atRoot=false;if(A.atKey)A.atKey=false;let B=g.offset+g.start.source.length;for(let i=0;i0){const e=o.resolveEnd(m,w,A.options.strict,h);if(e.comment){if(Q.comment)Q.comment+="\n"+e.comment;else Q.comment=e.comment}Q.range=[g.offset,w,e.offset]}else{Q.range=[g.offset,w,w]}return Q}t.resolveFlowCollection=resolveFlowCollection},6842:(e,t,A)=>{var s=A(3301);var r=A(7788);function resolveFlowScalar(e,t,A){const{offset:n,type:i,source:o,end:a}=e;let c;let l;const _onError=(e,t,s)=>A(n+e,t,s);switch(i){case"scalar":c=s.Scalar.PLAIN;l=plainValue(o,_onError);break;case"single-quoted-scalar":c=s.Scalar.QUOTE_SINGLE;l=singleQuotedValue(o,_onError);break;case"double-quoted-scalar":c=s.Scalar.QUOTE_DOUBLE;l=doubleQuotedValue(o,_onError);break;default:A(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[n,n+o.length,n+o.length]}}const u=n+o.length;const g=r.resolveEnd(a,u,t,A);return{value:l,type:c,comment:g.comment,range:[n,u,g.offset]}}function plainValue(e,t){let A="";switch(e[0]){case"\t":A="a tab character";break;case",":A="flow indicator character ,";break;case"%":A="directive indicator character %";break;case"|":case">":{A=`block scalar indicator ${e[0]}`;break}case"@":case"`":{A=`reserved character ${e[0]}`;break}}if(A)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${A}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,A;try{t=new RegExp("(.*?)(?t?e.slice(t,s+1):r}else{A+=r}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return A}function foldNewline(e,t){let A="";let s=e[t+1];while(s===" "||s==="\t"||s==="\n"||s==="\r"){if(s==="\r"&&e[t+2]!=="\n")break;if(s==="\n")A+="\n";t+=1;s=e[t+1]}if(!A)A=" ";return{fold:A,offset:t}}const n={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,A,s){const r=e.substr(t,A);const n=r.length===A&&/^[0-9a-fA-F]+$/.test(r);const i=n?parseInt(r,16):NaN;if(isNaN(i)){const r=e.substr(t-2,A+2);s(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`);return r}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},4631:(e,t)=>{function resolveProps(e,{flow:t,indicator:A,next:s,offset:r,onError:n,parentIndent:i,startOnNewline:o}){let a=false;let c=o;let l=o;let u="";let g="";let h=false;let E=false;let f=null;let d=null;let C=null;let Q=null;let I=null;let B=null;let p=null;for(const r of e){if(E){if(r.type!=="space"&&r.type!=="newline"&&r.type!=="comma")n(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");E=false}if(f){if(c&&r.type!=="comment"&&r.type!=="newline"){n(f,"TAB_AS_INDENT","Tabs are not allowed as indentation")}f=null}switch(r.type){case"space":if(!t&&(A!=="doc-start"||s?.type!=="flow-collection")&&r.source.includes("\t")){f=r}l=true;break;case"comment":{if(!l)n(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";if(!u)u=e;else u+=g+e;g="";c=false;break}case"newline":if(c){if(u)u+=r.source;else if(!B||A!=="seq-item-ind")a=true}else g+=r.source;c=true;h=true;if(d||C)Q=r;l=true;break;case"anchor":if(d)n(r,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(r.source.endsWith(":"))n(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);d=r;p??(p=r.offset);c=false;l=false;E=true;break;case"tag":{if(C)n(r,"MULTIPLE_TAGS","A node can have at most one tag");C=r;p??(p=r.offset);c=false;l=false;E=true;break}case A:if(d||C)n(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`);if(B)n(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`);B=r;c=A==="seq-item-ind"||A==="explicit-key-ind";l=false;break;case"comma":if(t){if(I)n(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=r;c=false;l=false;break}default:n(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`);c=false;l=false}}const y=e[e.length-1];const m=y?y.offset+y.source.length:r;if(E&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")){n(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(f&&(c&&f.indent<=i||s?.type==="block-map"||s?.type==="block-seq"))n(f,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:B,spaceBefore:a,comment:u,hasNewline:h,anchor:d,tag:C,newlineAfterProp:Q,end:m,start:p??m}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},2599:(e,t)=>{function emptyScalarPosition(e,t,A){if(t){A??(A=t.length);for(let s=A-1;s>=0;--s){let A=t[s];switch(A.type){case"space":case"comment":case"newline":e-=A.source.length;continue}A=t[++s];while(A?.type==="space"){e+=A.source.length;A=t[++s]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},4051:(e,t,A)=>{var s=A(9499);function flowIndentCheck(e,t,A){if(t?.type==="flow-collection"){const r=t.end[0];if(r.indent===e&&(r.source==="]"||r.source==="}")&&s.containsNewline(t)){const e="Flow end indicator should be more indented than parent";A(r,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},1187:(e,t,A)=>{var s=A(1127);function mapIncludes(e,t,A){const{uniqueKeys:r}=e.options;if(r===false)return false;const n=typeof r==="function"?r:(e,t)=>e===t||s.isScalar(e)&&s.isScalar(t)&&e.value===t.value;return t.some((e=>n(e.key,A)))}t.mapIncludes=mapIncludes},3021:(e,t,A)=>{var s=A(4065);var r=A(101);var n=A(1127);var i=A(7165);var o=A(4043);var a=A(5840);var c=A(6829);var l=A(1596);var u=A(3661);var g=A(2404);var h=A(1342);class Document{constructor(e,t,A){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,n.NODE_TYPE,{value:n.DOC});let s=null;if(typeof t==="function"||Array.isArray(t)){s=t}else if(A===undefined&&t){A=t;t=undefined}const r=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,stringKeys:false,uniqueKeys:true,version:"1.2"},A);this.options=r;let{version:i}=r;if(A?._directives){this.directives=A._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new h.Directives({version:i});this.setSchema(i,A);this.contents=e===undefined?null:this.createNode(e,s,A)}clone(){const e=Object.create(Document.prototype,{[n.NODE_TYPE]:{value:n.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=n.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const A=l.anchorNames(this);e.anchor=!t||A.has(t)?l.findNewAnchor(t||"a",A):t}return new s.Alias(e.anchor)}createNode(e,t,A){let s=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);s=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);s=t}else if(A===undefined&&t){A=t;t=undefined}const{aliasDuplicateObjects:r,anchorPrefix:i,flow:o,keepUndefined:a,onTagObj:c,tag:u}=A??{};const{onAnchor:h,setAnchors:E,sourceObjects:f}=l.createNodeAnchors(this,i||"a");const d={aliasDuplicateObjects:r??true,keepUndefined:a??false,onAnchor:h,onTagObj:c,replacer:s,schema:this.schema,sourceObjects:f};const C=g.createNode(e,u,d);if(o&&n.isCollection(C))C.flow=true;E();return C}createPair(e,t,A={}){const s=this.createNode(e,null,A);const r=this.createNode(t,null,A);return new i.Pair(s,r)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(r.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return n.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(r.isEmptyPath(e))return!t&&n.isScalar(this.contents)?this.contents.value:this.contents;return n.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return n.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(r.isEmptyPath(e))return this.contents!==undefined;return n.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=r.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(r.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=r.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let A;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new h.Directives({version:"1.1"});A={resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new h.Directives({version:e});A={resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;A=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(A)this.schema=new a.Schema(Object.assign(A,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:A,maxAliasCount:s,onAnchor:r,reviver:n}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:A===true,mapKeyWarned:false,maxAliasCount:typeof s==="number"?s:100};const a=o.toJS(this.contents,t??"",i);if(typeof r==="function")for(const{count:e,res:t}of i.anchors.values())r(t,e);return typeof n==="function"?u.applyReviver(n,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return c.stringifyDocument(this,e)}}function assertCollection(e){if(n.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},1596:(e,t,A)=>{var s=A(1127);var r=A(204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const A=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(A)}return true}function anchorNames(e){const t=new Set;r.visit(e,{Value(e,A){if(A.anchor)t.add(A.anchor)}});return t}function findNewAnchor(e,t){for(let A=1;true;++A){const s=`${e}${A}`;if(!t.has(s))return s}}function createNodeAnchors(e,t){const A=[];const r=new Map;let n=null;return{onAnchor:s=>{A.push(s);n??(n=anchorNames(e));const r=findNewAnchor(t,n);n.add(r);return r},setAnchors:()=>{for(const e of A){const t=r.get(e);if(typeof t==="object"&&t.anchor&&(s.isScalar(t.node)||s.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:r}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},3661:(e,t)=>{function applyReviver(e,t,A,s){if(s&&typeof s==="object"){if(Array.isArray(s)){for(let t=0,A=s.length;t{var s=A(4065);var r=A(1127);var n=A(3301);const i="tag:yaml.org,2002:";function findTagObject(e,t,A){if(t){const e=A.filter((e=>e.tag===t));const s=e.find((e=>!e.format))??e[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return A.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,A){if(r.isDocument(e))e=e.contents;if(r.isNode(e))return e;if(r.isPair(e)){const t=A.schema[r.MAP].createNode?.(A.schema,null,A);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:o,onAnchor:a,onTagObj:c,schema:l,sourceObjects:u}=A;let g=undefined;if(o&&e&&typeof e==="object"){g=u.get(e);if(g){g.anchor??(g.anchor=a(e));return new s.Alias(g.anchor)}else{g={anchor:null,node:null};u.set(e,g)}}if(t?.startsWith("!!"))t=i+t.slice(2);let h=findTagObject(e,t,l.tags);if(!h){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new n.Scalar(e);if(g)g.node=t;return t}h=e instanceof Map?l[r.MAP]:Symbol.iterator in Object(e)?l[r.SEQ]:l[r.MAP]}if(c){c(h);delete A.onTagObj}const E=h?.createNode?h.createNode(A.schema,e,A):typeof h?.nodeClass?.from==="function"?h.nodeClass.from(A.schema,e,A):new n.Scalar(e);if(t)E.tag=t;else if(!h.default)E.tag=h.tag;if(g)g.node=E;return E}t.createNode=createNode},1342:(e,t,A)=>{var s=A(1127);var r=A(204);const n={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>n[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const A=e.trim().split(/[ \t]+/);const s=A.shift();switch(s){case"%TAG":{if(A.length!==2){t(0,"%TAG directive should contain exactly two parts");if(A.length<2)return false}const[e,s]=A;this.tags[e]=s;return true}case"%YAML":{this.yaml.explicit=true;if(A.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=A;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const A=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,A);return false}}default:t(0,`Unknown directive ${s}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const A=e.slice(2,-1);if(A==="!"||A==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return A}const[,A,s]=e.match(/^(.*!)([^!]*)$/s);if(!s)t(`The ${e} tag has no suffix`);const r=this.tags[A];if(r){try{return r+decodeURIComponent(s)}catch(e){t(String(e));return null}}if(A==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,A]of Object.entries(this.tags)){if(e.startsWith(A))return t+escapeTagName(e.substring(A.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const A=Object.entries(this.tags);let n;if(e&&A.length>0&&s.isNode(e.contents)){const t={};r.visit(e.contents,((e,A)=>{if(s.isNode(A)&&A.tag)t[A.tag]=true}));n=Object.keys(t)}else n=[];for(const[s,r]of A){if(s==="!!"&&r==="tag:yaml.org,2002:")continue;if(!e||n.some((e=>e.startsWith(r))))t.push(`%TAG ${s} ${r}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},1464:(e,t)=>{class YAMLError extends Error{constructor(e,t,A,s){super();this.name=e;this.code=A;this.message=s;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,A){super("YAMLParseError",e,t,A)}}class YAMLWarning extends YAMLError{constructor(e,t,A){super("YAMLWarning",e,t,A)}}const prettifyError=(e,t)=>A=>{if(A.pos[0]===-1)return;A.linePos=A.pos.map((e=>t.linePos(e)));const{line:s,col:r}=A.linePos[0];A.message+=` at line ${s}, column ${r}`;let n=r-1;let i=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(n>=60&&i.length>80){const e=Math.min(n-39,i.length-79);i="…"+i.substring(e);n-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(s>1&&/^ *$/.test(i.substring(0,n))){let A=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);if(A.length>80)A=A.substring(0,79)+"…\n";i=A+i}if(/[^ ]/.test(i)){let e=1;const t=A.linePos[1];if(t&&t.line===s&&t.col>r){e=Math.max(1,Math.min(t.col-r,80-n))}const o=" ".repeat(n)+"^".repeat(e);A.message+=`:\n\n${i}\n${o}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},8815:(e,t,A)=>{var s=A(9984);var r=A(3021);var n=A(5840);var i=A(1464);var o=A(4065);var a=A(1127);var c=A(7165);var l=A(3301);var u=A(4454);var g=A(2223);var h=A(3461);var E=A(361);var f=A(6628);var d=A(3456);var C=A(4047);var Q=A(204);t.Composer=s.Composer;t.Document=r.Document;t.Schema=n.Schema;t.YAMLError=i.YAMLError;t.YAMLParseError=i.YAMLParseError;t.YAMLWarning=i.YAMLWarning;t.Alias=o.Alias;t.isAlias=a.isAlias;t.isCollection=a.isCollection;t.isDocument=a.isDocument;t.isMap=a.isMap;t.isNode=a.isNode;t.isPair=a.isPair;t.isScalar=a.isScalar;t.isSeq=a.isSeq;t.Pair=c.Pair;t.Scalar=l.Scalar;t.YAMLMap=u.YAMLMap;t.YAMLSeq=g.YAMLSeq;t.CST=h;t.Lexer=E.Lexer;t.LineCounter=f.LineCounter;t.Parser=d.Parser;t.parse=C.parse;t.parseAllDocuments=C.parseAllDocuments;t.parseDocument=C.parseDocument;t.stringify=C.stringify;t.visit=Q.visit;t.visitAsync=Q.visitAsync},7249:(e,t,A)=>{var s=A(932);function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof s.emitWarning==="function")s.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,A)=>{var s=A(1596);var r=A(204);var n=A(1127);var i=A(6673);var o=A(4043);class Alias extends i.NodeBase{constructor(e){super(n.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let A;if(t?.aliasResolveCache){A=t.aliasResolveCache}else{A=[];r.visit(e,{Node:(e,t)=>{if(n.isAlias(t)||n.hasAnchor(t))A.push(t)}});if(t)t.aliasResolveCache=A}let s=undefined;for(const e of A){if(e===this)break;if(e.anchor===this.source)s=e}return s}toJSON(e,t){if(!t)return{source:this.source};const{anchors:A,doc:s,maxAliasCount:r}=t;const n=this.resolve(s,t);if(!n){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=A.get(n);if(!i){o.toJS(n,null,t);i=A.get(n)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(r>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(s,n,A);if(i.count*i.aliasCount>r){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,A){const r=`*${this.source}`;if(e){s.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function getAliasCount(e,t,A){if(n.isAlias(t)){const s=t.resolve(e);const r=A&&s&&A.get(s);return r?r.count*r.aliasCount:0}else if(n.isCollection(t)){let s=0;for(const r of t.items){const t=getAliasCount(e,r,A);if(t>s)s=t}return s}else if(n.isPair(t)){const s=getAliasCount(e,t.key,A);const r=getAliasCount(e,t.value,A);return Math.max(s,r)}return 1}t.Alias=Alias},101:(e,t,A)=>{var s=A(2404);var r=A(1127);var n=A(6673);function collectionFromPath(e,t,A){let r=A;for(let e=t.length-1;e>=0;--e){const A=t[e];if(typeof A==="number"&&Number.isInteger(A)&&A>=0){const e=[];e[A]=r;r=e}else{r=new Map([[A,r]])}}return s.createNode(r,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends n.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>r.isNode(t)||r.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[A,...s]=e;const n=this.get(A,true);if(r.isCollection(n))n.addIn(s,t);else if(n===undefined&&this.schema)this.set(A,collectionFromPath(this.schema,s,t));else throw new Error(`Expected YAML collection at ${A}. Remaining path: ${s}`)}}deleteIn(e){const[t,...A]=e;if(A.length===0)return this.delete(t);const s=this.get(t,true);if(r.isCollection(s))return s.deleteIn(A);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${A}`)}getIn(e,t){const[A,...s]=e;const n=this.get(A,true);if(s.length===0)return!t&&r.isScalar(n)?n.value:n;else return r.isCollection(n)?n.getIn(s,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!r.isPair(t))return false;const A=t.value;return A==null||e&&r.isScalar(A)&&A.value==null&&!A.commentBefore&&!A.comment&&!A.tag}))}hasIn(e){const[t,...A]=e;if(A.length===0)return this.has(t);const s=this.get(t,true);return r.isCollection(s)?s.hasIn(A):false}setIn(e,t){const[A,...s]=e;if(s.length===0){this.set(A,t)}else{const e=this.get(A,true);if(r.isCollection(e))e.setIn(s,t);else if(e===undefined&&this.schema)this.set(A,collectionFromPath(this.schema,s,t));else throw new Error(`Expected YAML collection at ${A}. Remaining path: ${s}`)}}}t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},6673:(e,t,A)=>{var s=A(3661);var r=A(1127);var n=A(4043);class NodeBase{constructor(e){Object.defineProperty(this,r.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:A,onAnchor:i,reviver:o}={}){if(!r.isDocument(e))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof A==="number"?A:100};const c=n.toJS(this,"",a);if(typeof i==="function")for(const{count:e,res:t}of a.anchors.values())i(t,e);return typeof o==="function"?s.applyReviver(o,{"":c},"",c):c}}t.NodeBase=NodeBase},7165:(e,t,A)=>{var s=A(2404);var r=A(9748);var n=A(7104);var i=A(1127);function createPair(e,t,A){const r=s.createNode(e,undefined,A);const n=s.createNode(t,undefined,A);return new Pair(r,n)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:A}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(A))A=A.clone(e);return new Pair(t,A)}toJSON(e,t){const A=t?.mapAsMap?new Map:{};return n.addPairToJSMap(t,A,this)}toString(e,t,A){return e?.doc?r.stringifyPair(this,e,t,A):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},3301:(e,t,A)=>{var s=A(1127);var r=A(6673);var n=A(4043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends r.NodeBase{constructor(e){super(s.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:n.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},4454:(e,t,A)=>{var s=A(1212);var r=A(7104);var n=A(101);var i=A(1127);var o=A(7165);var a=A(3301);function findPair(e,t){const A=i.isScalar(t)?t.value:t;for(const s of e){if(i.isPair(s)){if(s.key===t||s.key===A)return s;if(i.isScalar(s.key)&&s.key.value===A)return s}}return undefined}class YAMLMap extends n.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,A){const{keepUndefined:s,replacer:r}=A;const n=new this(e);const add=(e,i)=>{if(typeof r==="function")i=r.call(t,e,i);else if(Array.isArray(r)&&!r.includes(e))return;if(i!==undefined||s)n.items.push(o.createPair(e,i,A))};if(t instanceof Map){for(const[e,A]of t)add(e,A)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){n.items.sort(e.sortMapEntries)}return n}add(e,t){let A;if(i.isPair(e))A=e;else if(!e||typeof e!=="object"||!("key"in e)){A=new o.Pair(e,e?.value)}else A=new o.Pair(e.key,e.value);const s=findPair(this.items,A.key);const r=this.schema?.sortMapEntries;if(s){if(!t)throw new Error(`Key ${A.key} already set`);if(i.isScalar(s.value)&&a.isScalarValue(A.value))s.value.value=A.value;else s.value=A.value}else if(r){const e=this.items.findIndex((e=>r(A,e)<0));if(e===-1)this.items.push(A);else this.items.splice(e,0,A)}else{this.items.push(A)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const A=this.items.splice(this.items.indexOf(t),1);return A.length>0}get(e,t){const A=findPair(this.items,e);const s=A?.value;return(!t&&i.isScalar(s)?s.value:s)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new o.Pair(e,t),true)}toJSON(e,t,A){const s=A?new A:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(s);for(const e of this.items)r.addPairToJSMap(t,s,e);return s}toString(e,t,A){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return s.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:A,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},2223:(e,t,A)=>{var s=A(2404);var r=A(1212);var n=A(101);var i=A(1127);var o=A(3301);var a=A(4043);class YAMLSeq extends n.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const A=this.items.splice(t,1);return A.length>0}get(e,t){const A=asItemIndex(e);if(typeof A!=="number")return undefined;const s=this.items[A];return!t&&i.isScalar(s)?s.value:s}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},7104:(e,t,A)=>{var s=A(7249);var r=A(452);var n=A(2148);var i=A(1127);var o=A(4043);function addPairToJSMap(e,t,{key:A,value:s}){if(i.isNode(A)&&A.addToJSMap)A.addToJSMap(e,t,s);else if(r.isMergeKey(e,A))r.addMergeToJSMap(e,t,s);else{const r=o.toJS(A,"",e);if(t instanceof Map){t.set(r,o.toJS(s,r,e))}else if(t instanceof Set){t.add(r)}else{const n=stringifyKey(A,r,e);const i=o.toJS(s,n,e);if(n in t)Object.defineProperty(t,n,{value:i,writable:true,enumerable:true,configurable:true});else t[n]=i}}return t}function stringifyKey(e,t,A){if(t===null)return"";if(typeof t!=="object")return String(t);if(i.isNode(e)&&A?.doc){const t=n.createStringifyContext(A.doc,{});t.anchors=new Set;for(const e of A.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const r=e.toString(t);if(!A.mapKeyWarned){let e=JSON.stringify(r);if(e.length>40)e=e.substring(0,36)+'..."';s.warn(A.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);A.mapKeyWarned=true}return r}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},1127:(e,t)=>{const A=Symbol.for("yaml.alias");const s=Symbol.for("yaml.document");const r=Symbol.for("yaml.map");const n=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const o=Symbol.for("yaml.seq");const a=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[a]===A;const isDocument=e=>!!e&&typeof e==="object"&&e[a]===s;const isMap=e=>!!e&&typeof e==="object"&&e[a]===r;const isPair=e=>!!e&&typeof e==="object"&&e[a]===n;const isScalar=e=>!!e&&typeof e==="object"&&e[a]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[a]===o;function isCollection(e){if(e&&typeof e==="object")switch(e[a]){case r:case o:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[a]){case A:case r:case i:case o:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=A;t.DOC=s;t.MAP=r;t.NODE_TYPE=a;t.PAIR=n;t.SCALAR=i;t.SEQ=o;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},4043:(e,t,A)=>{var s=A(1127);function toJS(e,t,A){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),A)));if(e&&typeof e.toJSON==="function"){if(!A||!s.hasAnchor(e))return e.toJSON(t,A);const r={aliasCount:0,count:1,res:undefined};A.anchors.set(e,r);A.onCreate=e=>{r.res=e;delete A.onCreate};const n=e.toJSON(t,A);if(A.onCreate)A.onCreate(n);return n}if(typeof e==="bigint"&&!A?.keep)return Number(e);return e}t.toJS=toJS},110:(e,t,A)=>{var s=A(8913);var r=A(6842);var n=A(1464);var i=A(3069);function resolveAsScalar(e,t=true,A){if(e){const _onError=(e,t,s)=>{const r=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(A)A(r,t,s);else throw new n.YAMLParseError([r,r+1],t,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return r.resolveFlowScalar(e,t,_onError);case"block-scalar":return s.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:A=false,indent:s,inFlow:r=false,offset:n=-1,type:o="PLAIN"}=t;const a=i.stringifyString({type:o,value:e},{implicitKey:A,indent:s>0?" ".repeat(s):"",inFlow:r,options:{blockQuote:true,lineWidth:-1}});const c=t.end??[{type:"newline",offset:-1,indent:s,source:"\n"}];switch(a[0]){case"|":case">":{const e=a.indexOf("\n");const t=a.substring(0,e);const A=a.substring(e+1)+"\n";const r=[{type:"block-scalar-header",offset:n,indent:s,source:t}];if(!addEndtoBlockProps(r,c))r.push({type:"newline",offset:-1,indent:s,source:"\n"});return{type:"block-scalar",offset:n,indent:s,props:r,source:A}}case'"':return{type:"double-quoted-scalar",offset:n,indent:s,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:n,indent:s,source:a,end:c};default:return{type:"scalar",offset:n,indent:s,source:a,end:c}}}function setScalarValue(e,t,A={}){let{afterKey:s=false,implicitKey:r=false,inFlow:n=false,type:o}=A;let a="indent"in e?e.indent:null;if(s&&typeof a==="number")a+=2;if(!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const c=i.stringifyString({type:o,value:t},{implicitKey:r||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:n,options:{blockQuote:true,lineWidth:-1}});switch(c[0]){case"|":case">":setBlockScalarValue(e,c);break;case'"':setFlowScalarValue(e,c,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,c,"single-quoted-scalar");break;default:setFlowScalarValue(e,c,"scalar")}}function setBlockScalarValue(e,t){const A=t.indexOf("\n");const s=t.substring(0,A);const r=t.substring(A+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=s;e.source=r}else{const{offset:t}=e;const A="indent"in e?e.indent:-1;const n=[{type:"block-scalar-header",offset:t,indent:A,source:s}];if(!addEndtoBlockProps(n,"end"in e?e.end:undefined))n.push({type:"newline",offset:-1,indent:A,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:A,props:n,source:r})}}function addEndtoBlockProps(e,t){if(t)for(const A of t)switch(A.type){case"space":case"comment":e.push(A);break;case"newline":e.push(A);return true}return false}function setFlowScalarValue(e,t,A){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=A;e.source=t;break;case"block-scalar":{const s=e.props.slice(1);let r=t.length;if(e.props[0].type==="block-scalar-header")r-=e.props[0].source.length;for(const e of s)e.offset+=r;delete e.props;Object.assign(e,{type:A,source:t,end:s});break}case"block-map":case"block-seq":{const s=e.offset+t.length;const r={type:"newline",offset:s,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:A,source:t,end:[r]});break}default:{const s="indent"in e?e.indent:-1;const r="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:A,indent:s,source:t,end:r})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},1733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const A of e.props)t+=stringifyToken(A);return t+e.source}case"block-map":case"block-seq":{let t="";for(const A of e.items)t+=stringifyItem(A);return t}case"flow-collection":{let t=e.start.source;for(const A of e.items)t+=stringifyItem(A);for(const A of e.end)t+=A.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const A of e.end)t+=A.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const A of e.end)t+=A.source;return t}}}function stringifyItem({start:e,key:t,sep:A,value:s}){let r="";for(const t of e)r+=t.source;if(t)r+=stringifyToken(t);if(A)for(const e of A)r+=e.source;if(s)r+=stringifyToken(s);return r}t.stringify=stringify},7715:(e,t)=>{const A=Symbol("break visit");const s=Symbol("skip children");const r=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=A;visit.SKIP=s;visit.REMOVE=r;visit.itemAtPath=(e,t)=>{let A=e;for(const[e,s]of t){const t=A?.[e];if(t&&"items"in t){A=t.items[s]}else return undefined}return A};visit.parentCollection=(e,t)=>{const A=visit.itemAtPath(e,t.slice(0,-1));const s=t[t.length-1][0];const r=A?.[s];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function _visit(e,t,s){let n=s(t,e);if(typeof n==="symbol")return n;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t{var s=A(110);var r=A(1733);var n=A(7715);const i="\ufeff";const o="";const a="";const c="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case o:return"";case a:return"";case c:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case o:return"doc-mode";case a:return"flow-error-end";case c:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=s.createScalarToken;t.resolveAsScalar=s.resolveAsScalar;t.setScalarValue=s.setScalarValue;t.stringify=r.stringify;t.visit=n.visit;t.BOM=i;t.DOCUMENT=o;t.FLOW_END=a;t.SCALAR=c;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},361:(e,t,A)=>{var s=A(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const r=new Set("0123456789ABCDEFabcdef");const n=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const o=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||o.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let A=this.next??"stream";while(A&&(t||this.hasChars(1)))A=yield*this.parseNext(A)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let A=0;while(t===" ")t=this.buffer[++A+e];if(t==="\r"){const t=this.buffer[A+e+1];if(t==="\n"||!t&&!this.atEnd)return e+A+1}return t==="\n"||A>=this.indentNext||!t&&!this.atEnd?e+A:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&ðis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let A=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=A=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const r=this.getLine();if(r===null)return this.setNext("flow");if(A!==-1&&A"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let A;e:for(let s=this.pos;A=this.buffer[s];++s){switch(A){case" ":t+=1;break;case"\n":e=s;t=0;break;case"\r":{const e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!A&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let r=e+1;A=this.buffer[r];while(A===" ")A=this.buffer[++r];if(A==="\t"){while(A==="\t"||A===" "||A==="\r"||A==="\n")A=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep){do{let A=e-1;let s=this.buffer[A];if(s==="\r")s=this.buffer[--A];const r=A;while(s===" ")s=this.buffer[--A];if(s==="\n"&&A>=this.pos&&A+1+t>r)e=A;else break}while(true)}yield s.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let A=this.pos-1;let r;while(r=this.buffer[++A]){if(r===":"){const s=this.buffer[A+1];if(isEmpty(s)||e&&i.has(s))break;t=A}else if(isEmpty(r)){let s=this.buffer[A+1];if(r==="\r"){if(s==="\n"){A+=1;r="\n";s=this.buffer[A+1]}else t=A}if(s==="#"||e&&i.has(s))break;if(r==="\n"){const e=this.continueScalar(A+1);if(e===-1)break;A=Math.max(A,e-2)}}else{if(e&&i.has(r))break;t=A}}if(!r&&!this.atEnd)return this.setNext("plain-scalar");yield s.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const A=this.buffer.slice(this.pos,e);if(A){yield A;this.pos+=A.length;return A.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(n.has(t))t=this.buffer[++e];else if(t==="%"&&r.has(this.buffer[e+1])&&r.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let A;do{A=this.buffer[++t]}while(A===" "||e&&A==="\t");const s=t-this.pos;if(s>0){yield this.buffer.substr(this.pos,s);this.pos=t}return s}*pushUntil(e){let t=this.pos;let A=this.buffer[t];while(!e(A))A=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},6628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let A=this.lineStarts.length;while(t>1;if(this.lineStarts[s]{var s=A(932);var r=A(3461);var n=A(361);function includesToken(e,t){for(let A=0;A=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new n.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const A of this.lexer.lex(e,t))yield*this.next(A);if(!t)yield*this.end()}*next(e){this.source=e;if(s.env.LOG_TOKENS)console.log("|",r.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=r.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const A=e.items[e.items.length-1];if(A.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(A.sep){A.value=t}else{Object.assign(A,{key:t,sep:[]});this.onKeyLine=!A.explicitKey;return}break}case"block-seq":{const A=e.items[e.items.length-1];if(A.value)e.items.push({start:[],value:t});else A.value=t;break}case"flow-collection":{const A=e.items[e.items.length-1];if(!A||A.value)e.items.push({start:[],key:t,sep:[]});else if(A.sep)A.value=t;else Object.assign(A,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const A=t.items[t.items.length-1];if(A&&!A.sep&&!A.value&&A.start.length>0&&findNonEmptyIndex(A.start)===-1&&(t.indent===0||A.start.every((e=>e.type!=="comment"||e.indent=e.indent){const A=!this.onKeyLine&&this.indent===e.indent;const s=A&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let r=[];if(s&&t.sep&&!t.value){const A=[];for(let s=0;se.indent)A.length=0;break;default:A.length=0}}if(A.length>=2)r=t.sep.splice(A[1])}switch(this.type){case"anchor":case"tag":if(s||t.value){r.push(this.sourceToken);e.items.push({start:r});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(s||t.value){r.push(this.sourceToken);e.items.push({start:r,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const A=t.key;const s=t.sep;s.push(this.sourceToken);delete t.key;delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:A,sep:s}]})}else if(r.length>0){t.sep=t.sep.concat(r,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||s){e.items.push({start:r,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const A=this.flowScalar(this.type);if(s||t.value){e.items.push({start:r,key:A,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(A)}else{Object.assign(t,{key:A,sep:[]});this.onKeyLine=true}return}default:{const s=this.startBlockValue(e);if(s){if(s.type==="block-seq"){if(!t.explicitKey&&t.sep&&!includesToken(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(A){e.items.push({start:r})}this.stack.push(s);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const A="end"in t.value?t.value.end:undefined;const s=Array.isArray(A)?A[A.length-1]:undefined;if(s?.type==="comment")A?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const A=e.items[e.items.length-2];const s=A?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start);s.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const A=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:A,sep:[]});else if(t.sep)this.stack.push(A);else Object.assign(t,{key:A,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const A=this.startBlockValue(e);if(A)this.stack.push(A);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const A=getPrevProps(t);const s=getFirstKeyStartProps(A);fixFlowSeqItems(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:r}]};this.onKeyLine=true;this.stack[this.stack.length-1]=n}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const A=getFirstKeyStartProps(t);A.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const A=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},4047:(e,t,A)=>{var s=A(9984);var r=A(3021);var n=A(1464);var i=A(7249);var o=A(1127);var a=A(6628);var c=A(3456);function parseOptions(e){const t=e.prettyErrors!==false;const A=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:A,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:A,prettyErrors:r}=parseOptions(t);const i=new c.Parser(A?.addNewLine);const o=new s.Composer(t);const a=Array.from(o.compose(i.parse(e)));if(r&&A)for(const t of a){t.errors.forEach(n.prettifyError(e,A));t.warnings.forEach(n.prettifyError(e,A))}if(a.length>0)return a;return Object.assign([],{empty:true},o.streamInfo())}function parseDocument(e,t={}){const{lineCounter:A,prettyErrors:r}=parseOptions(t);const i=new c.Parser(A?.addNewLine);const o=new s.Composer(t);let a=null;for(const t of o.compose(i.parse(e),true,e.length)){if(!a)a=t;else if(a.options.logLevel!=="silent"){a.errors.push(new n.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(r&&A){a.errors.forEach(n.prettifyError(e,A));a.warnings.forEach(n.prettifyError(e,A))}return a}function parse(e,t,A){let s=undefined;if(typeof t==="function"){s=t}else if(A===undefined&&t&&typeof t==="object"){A=t}const r=parseDocument(e,A);if(!r)return null;r.warnings.forEach((e=>i.warn(r.options.logLevel,e)));if(r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];else r.errors=[]}return r.toJS(Object.assign({reviver:s},A))}function stringify(e,t,A){let s=null;if(typeof t==="function"||Array.isArray(t)){s=t}else if(A===undefined&&t){A=t}if(typeof A==="string")A=A.length;if(typeof A==="number"){const e=Math.round(A);A=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=A??t??{};if(!e)return undefined}if(o.isDocument(e)&&!s)return e.toString(A);return new r.Document(e,s,A).toString(A)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},5840:(e,t,A)=>{var s=A(1127);var r=A(7451);var n=A(1706);var i=A(6464);var o=A(18);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:A,resolveKnownTags:a,schema:c,sortMapEntries:l,toStringDefaults:u}){this.compat=Array.isArray(e)?o.getTags(e,"compat"):e?o.getTags(null,e):null;this.name=typeof c==="string"&&c||"core";this.knownTags=a?o.coreKnownTags:{};this.tags=o.getTags(t,this.name,A);this.toStringOptions=u??null;Object.defineProperty(this,s.MAP,{value:r.map});Object.defineProperty(this,s.SCALAR,{value:i.string});Object.defineProperty(this,s.SEQ,{value:n.seq});this.sortMapEntries=typeof l==="function"?l:l===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},7451:(e,t,A)=>{var s=A(1127);var r=A(4454);const n={collection:"map",default:true,nodeClass:r.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!s.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,A)=>r.YAMLMap.from(e,t,A)};t.map=n},3632:(e,t,A)=>{var s=A(3301);const r={identify:e=>e==null,createNode:()=>new s.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new s.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&r.test.test(e)?e:t.options.nullStr};t.nullTag=r},1706:(e,t,A)=>{var s=A(1127);var r=A(2223);const n={collection:"seq",default:true,nodeClass:r.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!s.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,A)=>r.YAMLSeq.from(e,t,A)};t.seq=n},6464:(e,t,A)=>{var s=A(3069);const r={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,A,r){t=Object.assign({actualString:true},t);return s.stringifyString(e,t,A,r)}};t.string=r},3959:(e,t,A)=>{var s=A(3301);const r={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new s.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},A){if(e&&r.test.test(e)){const A=e[0]==="t"||e[0]==="T";if(t===A)return e}return t?A.options.trueStr:A.options.falseStr}};t.boolTag=r},8405:(e,t,A)=>{var s=A(3301);var r=A(8689);const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():r.stringifyNumber(e)}};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new s.Scalar(parseFloat(e));const A=e.indexOf(".");if(A!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-A-1;return t},stringify:r.stringifyNumber};t.float=o;t.floatExp=i;t.floatNaN=n},9874:(e,t,A)=>{var s=A(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,A,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),A);function intStringify(e,t,A){const{value:r}=e;if(intIdentify(r)&&r>=0)return A+r.toString(t);return s.stringifyNumber(e)}const r={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,A)=>intResolve(e,2,8,A),stringify:e=>intStringify(e,8,"0o")};const n={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,A)=>intResolve(e,0,10,A),stringify:s.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,A)=>intResolve(e,2,16,A),stringify:e=>intStringify(e,16,"0x")};t.int=n;t.intHex=i;t.intOct=r},896:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(3959);var a=A(8405);var c=A(9874);const l=[s.map,n.seq,i.string,r.nullTag,o.boolTag,c.intOct,c.int,c.intHex,a.floatNaN,a.floatExp,a.float];t.schema=l},3559:(e,t,A)=>{var s=A(3301);var r=A(7451);var n=A(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new s.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:A})=>A?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const o={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const a=[r.map,n.seq].concat(i,o);t.schema=a},18:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(3959);var a=A(8405);var c=A(9874);var l=A(896);var u=A(3559);var g=A(6083);var h=A(452);var E=A(303);var f=A(8385);var d=A(5913);var C=A(1528);var Q=A(6752);const I=new Map([["core",l.schema],["failsafe",[s.map,n.seq,i.string]],["json",u.schema],["yaml11",d.schema],["yaml-1.1",d.schema]]);const B={binary:g.binary,bool:o.boolTag,float:a.float,floatExp:a.floatExp,floatNaN:a.floatNaN,floatTime:Q.floatTime,int:c.int,intHex:c.intHex,intOct:c.intOct,intTime:Q.intTime,map:s.map,merge:h.merge,null:r.nullTag,omap:E.omap,pairs:f.pairs,seq:n.seq,set:C.set,timestamp:Q.timestamp};const p={"tag:yaml.org,2002:binary":g.binary,"tag:yaml.org,2002:merge":h.merge,"tag:yaml.org,2002:omap":E.omap,"tag:yaml.org,2002:pairs":f.pairs,"tag:yaml.org,2002:set":C.set,"tag:yaml.org,2002:timestamp":Q.timestamp};function getTags(e,t,A){const s=I.get(t);if(s&&!e){return A&&!s.includes(h.merge)?s.concat(h.merge):s.slice()}let r=s;if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(I.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}if(A)r=r.concat(h.merge);return r.reduce(((e,t)=>{const A=typeof t==="string"?B[t]:t;if(!A){const e=JSON.stringify(t);const A=Object.keys(B).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${A}`)}if(!e.includes(A))e.push(A);return e}),[])}t.coreKnownTags=p;t.getTags=getTags},6083:(e,t,A)=>{var s=A(181);var r=A(3301);var n=A(3069);const i={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof s.Buffer==="function"){return s.Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const A=new Uint8Array(t.length);for(let e=0;e{var s=A(3301);function boolStringify({value:e,source:t},A){const s=e?r:n;if(t&&s.test.test(t))return t;return e?A.options.trueStr:A.options.falseStr}const r={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new s.Scalar(true),stringify:boolStringify};const n={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new s.Scalar(false),stringify:boolStringify};t.falseTag=n;t.trueTag=r},5782:(e,t,A)=>{var s=A(3301);var r=A(8689);const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():r.stringifyNumber(e)}};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new s.Scalar(parseFloat(e.replace(/_/g,"")));const A=e.indexOf(".");if(A!==-1){const s=e.substring(A+1).replace(/_/g,"");if(s[s.length-1]==="0")t.minFractionDigits=s.length}return t},stringify:r.stringifyNumber};t.float=o;t.floatExp=i;t.floatNaN=n},873:(e,t,A)=>{var s=A(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,A,{intAsBigInt:s}){const r=e[0];if(r==="-"||r==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(s){switch(A){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return r==="-"?BigInt(-1)*t:t}const n=parseInt(e,A);return r==="-"?-1*n:n}function intStringify(e,t,A){const{value:r}=e;if(intIdentify(r)){const e=r.toString(t);return r<0?"-"+A+e.substr(1):A+e}return s.stringifyNumber(e)}const r={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,A)=>intResolve(e,2,2,A),stringify:e=>intStringify(e,2,"0b")};const n={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,A)=>intResolve(e,1,8,A),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,A)=>intResolve(e,0,10,A),stringify:s.stringifyNumber};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,A)=>intResolve(e,2,16,A),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=r;t.intHex=o;t.intOct=n},452:(e,t,A)=>{var s=A(1127);var r=A(3301);const n="<<";const i={identify:e=>e===n||typeof e==="symbol"&&e.description===n,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new r.Scalar(Symbol(n)),{addToJSMap:addMergeToJSMap}),stringify:()=>n};const isMergeKey=(e,t)=>(i.identify(t)||s.isScalar(t)&&(!t.type||t.type===r.Scalar.PLAIN)&&i.identify(t.value))&&e?.doc.schema.tags.some((e=>e.tag===i.tag&&e.default));function addMergeToJSMap(e,t,A){A=e&&s.isAlias(A)?A.resolve(e.doc):A;if(s.isSeq(A))for(const s of A.items)mergeValue(e,t,s);else if(Array.isArray(A))for(const s of A)mergeValue(e,t,s);else mergeValue(e,t,A)}function mergeValue(e,t,A){const r=e&&s.isAlias(A)?A.resolve(e.doc):A;if(!s.isMap(r))throw new Error("Merge sources must be maps or map aliases");const n=r.toJSON(null,e,Map);for(const[e,A]of n){if(t instanceof Map){if(!t.has(e))t.set(e,A)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:A,writable:true,enumerable:true,configurable:true})}}return t}t.addMergeToJSMap=addMergeToJSMap;t.isMergeKey=isMergeKey;t.merge=i},303:(e,t,A)=>{var s=A(1127);var r=A(4043);var n=A(4454);var i=A(2223);var o=A(8385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=n.YAMLMap.prototype.add.bind(this);this.delete=n.YAMLMap.prototype.delete.bind(this);this.get=n.YAMLMap.prototype.get.bind(this);this.has=n.YAMLMap.prototype.has.bind(this);this.set=n.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const A=new Map;if(t?.onCreate)t.onCreate(A);for(const e of this.items){let n,i;if(s.isPair(e)){n=r.toJS(e.key,"",t);i=r.toJS(e.value,n,t)}else{n=r.toJS(e,"",t)}if(A.has(n))throw new Error("Ordered maps must not include duplicate keys");A.set(n,i)}return A}static from(e,t,A){const s=o.createPairs(e,t,A);const r=new this;r.items=s.items;return r}}YAMLOMap.tag="tag:yaml.org,2002:omap";const a={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const A=o.resolvePairs(e,t);const r=[];for(const{key:e}of A.items){if(s.isScalar(e)){if(r.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{r.push(e.value)}}}return Object.assign(new YAMLOMap,A)},createNode:(e,t,A)=>YAMLOMap.from(e,t,A)};t.YAMLOMap=YAMLOMap;t.omap=a},8385:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(3301);var i=A(2223);function resolvePairs(e,t){if(s.isSeq(e)){for(let A=0;A1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new r.Pair(new n.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[A]=s.isPair(i)?i:new r.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,A){const{replacer:s}=A;const n=new i.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof s==="function")e=s.call(t,String(o++),e);let i,a;if(Array.isArray(e)){if(e.length===2){i=e[0];a=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];a=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}n.items.push(r.createPair(i,a,A))}return n}const o={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=o;t.resolvePairs=resolvePairs},5913:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(6083);var a=A(8398);var c=A(5782);var l=A(873);var u=A(452);var g=A(303);var h=A(8385);var E=A(1528);var f=A(6752);const d=[s.map,n.seq,i.string,r.nullTag,a.trueTag,a.falseTag,l.intBin,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float,o.binary,u.merge,g.omap,h.pairs,E.set,f.intTime,f.floatTime,f.timestamp];t.schema=d},1528:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(4454);class YAMLSet extends n.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(s.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new r.Pair(e.key,null);else t=new r.Pair(e,null);const A=n.findPair(this.items,t.key);if(!A)this.items.push(t)}get(e,t){const A=n.findPair(this.items,e);return!t&&s.isPair(A)?s.isScalar(A.key)?A.key.value:A.key:A}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const A=n.findPair(this.items,e);if(A&&!t){this.items.splice(this.items.indexOf(A),1)}else if(!A&&t){this.items.push(new r.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,A){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,A);else throw new Error("Set items must all have null values")}static from(e,t,A){const{replacer:s}=A;const n=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof s==="function")e=s.call(t,e,e);n.items.push(r.createPair(e,null,A))}return n}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,A)=>YAMLSet.from(e,t,A),resolve(e,t){if(s.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},6752:(e,t,A)=>{var s=A(8689);function parseSexagesimal(e,t){const A=e[0];const s=A==="-"||A==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const r=s.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return A==="-"?num(-1)*r:r}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return s.stringifyNumber(e);let A="";if(t<0){A="-";t*=num(-1)}const r=num(60);const n=[t%r];if(t<60){n.unshift(0)}else{t=(t-n[0])/r;n.unshift(t%r);if(t>=60){t=(t-n[0])/r;n.unshift(t)}}return A+n.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const r={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:A})=>parseSexagesimal(e,A),stringify:stringifySexagesimal};const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,A,s,r,n,o,a]=t.map(Number);const c=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(A,s-1,r,n||0,o||0,a||0,c);const u=t[8];if(u&&u!=="Z"){let e=parseSexagesimal(u,false);if(Math.abs(e)<30)e*=60;l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};t.floatTime=n;t.intTime=r;t.timestamp=i},4475:(e,t)=>{const A="flow";const s="block";const r="quoted";function foldFlowLines(e,t,A="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:o=20,onFold:a,onOverflow:c}={}){if(!i||i<0)return e;if(ii-Math.max(2,o))u.push(0);else h=i-n}let E=undefined;let f=undefined;let d=false;let C=-1;let Q=-1;let I=-1;if(A===s){C=consumeMoreIndentedLines(e,C,t.length);if(C!==-1)h=C+l}for(let n;n=e[C+=1];){if(A===r&&n==="\\"){Q=C;switch(e[C+1]){case"x":C+=3;break;case"u":C+=5;break;case"U":C+=9;break;default:C+=1}I=C}if(n==="\n"){if(A===s)C=consumeMoreIndentedLines(e,C,t.length);h=C+t.length+l;E=undefined}else{if(n===" "&&f&&f!==" "&&f!=="\n"&&f!=="\t"){const t=e[C+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")E=C}if(C>=h){if(E){u.push(E);h=E+l;E=undefined}else if(A===r){while(f===" "||f==="\t"){f=n;n=e[C+=1];d=true}const t=C>I+1?C-2:Q-1;if(g[t])return e;u.push(t);g[t]=true;h=t+l;E=undefined}else{d=true}}}f=n}if(d&&c)c();if(u.length===0)return e;if(a)a();let B=e.slice(0,u[0]);for(let s=0;s{var s=A(1596);var r=A(1127);var n=A(9799);var i=A(3069);function createStringifyContext(e,t){const A=Object.assign({blockQuote:true,commentString:n.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let s;switch(A.collectionStyle){case"block":s=false;break;case"flow":s=true;break;default:s=null}return{anchors:new Set,doc:e,flowCollectionPadding:A.flowCollectionPadding?" ":"",indent:"",indentStep:typeof A.indent==="number"?" ".repeat(A.indent):" ",inFlow:s,options:A}}function getTagObject(e,t){if(t.tag){const A=e.filter((e=>e.tag===t.tag));if(A.length>0)return A.find((e=>e.format===t.format))??A[0]}let A=undefined;let s;if(r.isScalar(t)){s=t.value;let r=e.filter((e=>e.identify?.(s)));if(r.length>1){const e=r.filter((e=>e.test));if(e.length>0)r=e}A=r.find((e=>e.format===t.format))??r.find((e=>!e.format))}else{s=t;A=e.find((e=>e.nodeClass&&s instanceof e.nodeClass))}if(!A){const e=s?.constructor?.name??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${e} value`)}return A}function stringifyProps(e,t,{anchors:A,doc:n}){if(!n.directives)return"";const i=[];const o=(r.isScalar(e)||r.isCollection(e))&&e.anchor;if(o&&s.anchorIsValid(o)){A.add(o);i.push(`&${o}`)}const a=e.tag??(t.default?null:t.tag);if(a)i.push(n.directives.tagString(a));return i.join(" ")}function stringify(e,t,A,s){if(r.isPair(e))return e.toString(t,A,s);if(r.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let n=undefined;const o=r.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>n=e});n??(n=getTagObject(t.doc.schema.tags,o));const a=stringifyProps(o,n,t);if(a.length>0)t.indentAtStart=(t.indentAtStart??0)+a.length+1;const c=typeof n.stringify==="function"?n.stringify(o,t,A,s):r.isScalar(o)?i.stringifyString(o,t,A,s):o.toString(t,A,s);if(!a)return c;return r.isScalar(o)||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}\n${t.indent}${c}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},1212:(e,t,A)=>{var s=A(1127);var r=A(2148);var n=A(9799);function stringifyCollection(e,t,A){const s=t.inFlow??e.flow;const r=s?stringifyFlowCollection:stringifyBlockCollection;return r(e,t,A)}function stringifyBlockCollection({comment:e,items:t},A,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:c,onComment:l}){const{indent:u,options:{commentString:g}}=A;const h=Object.assign({},A,{indent:a,type:null});let E=false;const f=[];for(let e=0;ec=null),(()=>E=true));if(c)l+=n.lineComment(l,a,g(c));if(E&&c)E=false;f.push(i+l)}let d;if(f.length===0){d=o.start+o.end}else{d=f[0];for(let e=1;ea=null));if(Ah||c.includes("\n")))g=true;E.push(c);h=E.length}const{start:f,end:d}=A;if(E.length===0){return f+d}else{if(!g){const e=E.reduce(((e,t)=>e+t.length+2),2);g=t.options.lineWidth>0&&e>t.options.lineWidth}if(g){let e=f;for(const t of E)e+=t?`\n${a}${o}${t}`:"\n";return`${e}\n${o}${d}`}else{return`${f}${c}${E.join(" ")}${c}${d}`}}}function addCommentBefore({indent:e,options:{commentString:t}},A,s,r){if(s&&r)s=s.replace(/^\n+/,"");if(s){const r=n.indentComment(t(s),e);A.push(r.trimStart())}}t.stringifyCollection=stringifyCollection},9799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,A)=>e.endsWith("\n")?indentComment(A,t):A.includes("\n")?"\n"+indentComment(A,t):(e.endsWith(" ")?"":" ")+A;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,A)=>{var s=A(1127);var r=A(2148);var n=A(9799);function stringifyDocument(e,t){const A=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){A.push(t);i=true}else if(e.directives.docStart)i=true}if(i)A.push("---");const o=r.createStringifyContext(e,t);const{commentString:a}=o.options;if(e.commentBefore){if(A.length!==1)A.unshift("");const t=a(e.commentBefore);A.unshift(n.indentComment(t,""))}let c=false;let l=null;if(e.contents){if(s.isNode(e.contents)){if(e.contents.spaceBefore&&i)A.push("");if(e.contents.commentBefore){const t=a(e.contents.commentBefore);A.push(n.indentComment(t,""))}o.forceBlockIndent=!!e.comment;l=e.contents.comment}const t=l?undefined:()=>c=true;let u=r.stringify(e.contents,o,(()=>l=null),t);if(l)u+=n.lineComment(u,"",a(l));if((u[0]==="|"||u[0]===">")&&A[A.length-1]==="---"){A[A.length-1]=`--- ${u}`}else A.push(u)}else{A.push(r.stringify(e.contents,o))}if(e.directives?.docEnd){if(e.comment){const t=a(e.comment);if(t.includes("\n")){A.push("...");A.push(n.indentComment(t,""))}else{A.push(`... ${t}`)}}else{A.push("...")}}else{let t=e.comment;if(t&&c)t=t.replace(/^\n+/,"");if(t){if((!c||l)&&A[A.length-1]!=="")A.push("");A.push(n.indentComment(a(t),""))}}return A.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},8689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:A,value:s}){if(typeof s==="bigint")return String(s);const r=typeof s==="number"?s:Number(s);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let n=JSON.stringify(s);if(!e&&t&&(!A||A==="tag:yaml.org,2002:float")&&/^\d/.test(n)){let e=n.indexOf(".");if(e<0){e=n.length;n+="."}let A=t-(n.length-e-1);while(A-- >0)n+="0"}return n}t.stringifyNumber=stringifyNumber},9748:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(2148);var i=A(9799);function stringifyPair({key:e,value:t},A,o,a){const{allNullValues:c,doc:l,indent:u,indentStep:g,options:{commentString:h,indentSeq:E,simpleKeys:f}}=A;let d=s.isNode(e)&&e.comment||null;if(f){if(d){throw new Error("With simple keys, key nodes cannot have comments")}if(s.isCollection(e)||!s.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let C=!f&&(!e||d&&t==null&&!A.inFlow||s.isCollection(e)||(s.isScalar(e)?e.type===r.Scalar.BLOCK_FOLDED||e.type===r.Scalar.BLOCK_LITERAL:typeof e==="object"));A=Object.assign({},A,{allNullValues:false,implicitKey:!C&&(f||!c),indent:u+g});let Q=false;let I=false;let B=n.stringify(e,A,(()=>Q=true),(()=>I=true));if(!C&&!A.inFlow&&B.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");C=true}if(A.inFlow){if(c||t==null){if(Q&&o)o();return B===""?"?":C?`? ${B}`:B}}else if(c&&!f||t==null&&C){B=`? ${B}`;if(d&&!Q){B+=i.lineComment(B,A.indent,h(d))}else if(I&&a)a();return B}if(Q)d=null;if(C){if(d)B+=i.lineComment(B,A.indent,h(d));B=`? ${B}\n${u}:`}else{B=`${B}:`;if(d)B+=i.lineComment(B,A.indent,h(d))}let p,y,m;if(s.isNode(t)){p=!!t.spaceBefore;y=t.commentBefore;m=t.comment}else{p=false;y=null;m=null;if(t&&typeof t==="object")t=l.createNode(t)}A.implicitKey=false;if(!C&&!d&&s.isScalar(t))A.indentAtStart=B.length+1;I=false;if(!E&&g.length>=2&&!A.inFlow&&!C&&s.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){A.indent=A.indent.substring(2)}let w=false;const b=n.stringify(t,A,(()=>w=true),(()=>I=true));let R=" ";if(d||p||y){R=p?"\n":"";if(y){const e=h(y);R+=`\n${i.indentComment(e,A.indent)}`}if(b===""&&!A.inFlow){if(R==="\n")R="\n\n"}else{R+=`\n${A.indent}`}}else if(!C&&s.isCollection(t)){const e=b[0];const s=b.indexOf("\n");const r=s!==-1;const n=A.inFlow??t.flow??t.items.length===0;if(r||!n){let t=false;if(r&&(e==="&"||e==="!")){let A=b.indexOf(" ");if(e==="&"&&A!==-1&&A{var s=A(3301);var r=A(4475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,A){if(!t||t<0)return false;const s=t-A;const r=e.length;if(r<=s)return false;for(let t=0,A=0;ts)return true;A=t+1;if(r-A<=s)return false}}return true}function doubleQuotedString(e,t){const A=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return A;const{implicitKey:s}=t;const n=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let o="";let a=0;for(let e=0,t=A[e];t;t=A[++e]){if(t===" "&&A[e+1]==="\\"&&A[e+2]==="n"){o+=A.slice(a,e)+"\\ ";e+=1;a=e;t="\\"}if(t==="\\")switch(A[e+1]){case"u":{o+=A.slice(a,e);const t=A.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:if(t.substr(0,2)==="00")o+="\\x"+t.substr(2);else o+=A.substr(e,6)}e+=5;a=e+1}break;case"n":if(s||A[e+2]==='"'||A.length\n";let E;let f;for(f=A.length;f>0;--f){const e=A[f-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let d=A.substring(f);const C=d.indexOf("\n");if(C===-1){E="-"}else if(A===d||C!==d.length-1){E="+";if(a)a()}else{E=""}if(d){A=A.slice(0,-d.length);if(d[d.length-1]==="\n")d=d.slice(0,-1);d=d.replace(n,`$&${g}`)}let Q=false;let I;let B=-1;for(I=0;I{n=true}}const a=r.foldFlowLines(`${p}${e}${d}`,g,r.FOLD_BLOCK,o);if(!n)return`>${m}\n${g}${a}`}A=A.replace(/\n+/g,`$&${g}`);return`|${m}\n${g}${p}${A}${d}`}function plainString(e,t,A,n){const{type:i,value:o}=e;const{actualString:a,implicitKey:c,indent:l,indentStep:u,inFlow:g}=t;if(c&&o.includes("\n")||g&&/[[\]{},]/.test(o)){return quotedString(o,t)}if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)){return c||g||!o.includes("\n")?quotedString(o,t):blockString(e,t,A,n)}if(!c&&!g&&i!==s.Scalar.PLAIN&&o.includes("\n")){return blockString(e,t,A,n)}if(containsDocumentMarker(o)){if(l===""){t.forceBlockIndent=true;return blockString(e,t,A,n)}else if(c&&l===u){return quotedString(o,t)}}const h=o.replace(/\n+/g,`$&\n${l}`);if(a){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(h);const{compat:e,tags:A}=t.doc.schema;if(A.some(test)||e?.some(test))return quotedString(o,t)}return c?h:r.foldFlowLines(h,l,r.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,A,r){const{implicitKey:n,inFlow:i}=t;const o=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;if(a!==s.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value))a=s.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case s.Scalar.BLOCK_FOLDED:case s.Scalar.BLOCK_LITERAL:return n||i?quotedString(o.value,t):blockString(o,t,A,r);case s.Scalar.QUOTE_DOUBLE:return doubleQuotedString(o.value,t);case s.Scalar.QUOTE_SINGLE:return singleQuotedString(o.value,t);case s.Scalar.PLAIN:return plainString(o,t,A,r);default:return null}};let c=_stringify(a);if(c===null){const{defaultKeyType:e,defaultStringType:A}=t.options;const s=n&&e||A;c=_stringify(s);if(c===null)throw new Error(`Unsupported default string type ${s}`)}return c}t.stringifyString=stringifyString},204:(e,t,A)=>{var s=A(1127);const r=Symbol("break visit");const n=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const A=initVisitor(t);if(s.isDocument(e)){const t=visit_(null,e.contents,A,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,A,Object.freeze([]))}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=i;function visit_(e,t,A,n){const o=callVisitor(e,t,A,n);if(s.isNode(o)||s.isPair(o)){replaceNode(e,n,o);return visit_(e,o,A,n)}if(typeof o!=="symbol"){if(s.isCollection(t)){n=Object.freeze(n.concat(t));for(let e=0;e{"use strict";const s=Symbol("SemVer ANY");class Comparator{static get ANY(){return s}constructor(e,t){t=r(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");a("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===s){this.value=""}else{this.value=this.operator+this.semver.version}a("comp",this)}parse(e){const t=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR];const A=e.match(t);if(!A){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=A[1]!==undefined?A[1]:"";if(this.operator==="="){this.operator=""}if(!A[2]){this.semver=s}else{this.semver=new c(A[2],this.options.loose)}}toString(){return this.value}test(e){a("Comparator.test",e,this.options.loose);if(this.semver===s||e===s){return true}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}return o(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,t).test(e.semver)}t=r(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(o(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(o(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const r=A(356);const{safeRe:n,t:i}=A(5471);const o=A(8646);const a=A(1159);const c=A(7163);const l=A(6782)},6782:(e,t,A)=>{"use strict";const s=/\s+/g;class Range{constructor(e,t){t=i(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof o){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(s," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&f)|(this.options.loose&&d);const A=t+":"+e;const s=n.get(A);if(s){return s}const r=this.options.loose;const i=r?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(i,hyphenReplace(this.options.includePrerelease));a("hyphen replace",e);e=e.replace(l[u.COMPARATORTRIM],g);a("comparator trim",e);e=e.replace(l[u.TILDETRIM],h);a("tilde trim",e);e=e.replace(l[u.CARETTRIM],E);a("caret trim",e);let c=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(r){c=c.filter((e=>{a("loose invalid filter",e,this.options);return!!e.match(l[u.COMPARATORLOOSE])}))}a("range list",c);const C=new Map;const Q=c.map((e=>new o(e,this.options)));for(const e of Q){if(isNullSet(e)){return[e]}C.set(e.value,e)}if(C.size>1&&C.has("")){C.delete("")}const I=[...C.values()];n.set(A,I);return I}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((A=>isSatisfiable(A,t)&&e.set.some((e=>isSatisfiable(e,t)&&A.every((A=>e.every((e=>A.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let A=true;const s=e.slice();let r=s.pop();while(A&&s.length){A=s.every((e=>r.intersects(e,t)));r=s.pop()}return A};const parseComparator=(e,t)=>{a("comp",e,t);e=replaceCarets(e,t);a("caret",e);e=replaceTildes(e,t);a("tildes",e);e=replaceXRanges(e,t);a("xrange",e);e=replaceStars(e,t);a("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const A=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(A,((t,A,s,r,n)=>{a("tilde",e,t,A,s,r,n);let i;if(isX(A)){i=""}else if(isX(s)){i=`>=${A}.0.0 <${+A+1}.0.0-0`}else if(isX(r)){i=`>=${A}.${s}.0 <${A}.${+s+1}.0-0`}else if(n){a("replaceTilde pr",n);i=`>=${A}.${s}.${r}-${n} <${A}.${+s+1}.0-0`}else{i=`>=${A}.${s}.${r} <${A}.${+s+1}.0-0`}a("tilde return",i);return i}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{a("caret",e,t);const A=t.loose?l[u.CARETLOOSE]:l[u.CARET];const s=t.includePrerelease?"-0":"";return e.replace(A,((t,A,r,n,i)=>{a("caret",e,t,A,r,n,i);let o;if(isX(A)){o=""}else if(isX(r)){o=`>=${A}.0.0${s} <${+A+1}.0.0-0`}else if(isX(n)){if(A==="0"){o=`>=${A}.${r}.0${s} <${A}.${+r+1}.0-0`}else{o=`>=${A}.${r}.0${s} <${+A+1}.0.0-0`}}else if(i){a("replaceCaret pr",i);if(A==="0"){if(r==="0"){o=`>=${A}.${r}.${n}-${i} <${A}.${r}.${+n+1}-0`}else{o=`>=${A}.${r}.${n}-${i} <${A}.${+r+1}.0-0`}}else{o=`>=${A}.${r}.${n}-${i} <${+A+1}.0.0-0`}}else{a("no pr");if(A==="0"){if(r==="0"){o=`>=${A}.${r}.${n}${s} <${A}.${r}.${+n+1}-0`}else{o=`>=${A}.${r}.${n}${s} <${A}.${+r+1}.0-0`}}else{o=`>=${A}.${r}.${n} <${+A+1}.0.0-0`}}a("caret return",o);return o}))};const replaceXRanges=(e,t)=>{a("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const A=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(A,((A,s,r,n,i,o)=>{a("xRange",e,A,s,r,n,i,o);const c=isX(r);const l=c||isX(n);const u=l||isX(i);const g=u;if(s==="="&&g){s=""}o=t.includePrerelease?"-0":"";if(c){if(s===">"||s==="<"){A="<0.0.0-0"}else{A="*"}}else if(s&&g){if(l){n=0}i=0;if(s===">"){s=">=";if(l){r=+r+1;n=0;i=0}else{n=+n+1;i=0}}else if(s==="<="){s="<";if(l){r=+r+1}else{n=+n+1}}if(s==="<"){o="-0"}A=`${s+r}.${n}.${i}${o}`}else if(l){A=`>=${r}.0.0${o} <${+r+1}.0.0-0`}else if(u){A=`>=${r}.${n}.0${o} <${r}.${+n+1}.0-0`}a("xRange return",A);return A}))};const replaceStars=(e,t)=>{a("replaceStars",e,t);return e.trim().replace(l[u.STAR],"")};const replaceGTE0=(e,t)=>{a("replaceGTE0",e,t);return e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")};const hyphenReplace=e=>(t,A,s,r,n,i,o,a,c,l,u,g)=>{if(isX(s)){A=""}else if(isX(r)){A=`>=${s}.0.0${e?"-0":""}`}else if(isX(n)){A=`>=${s}.${r}.0${e?"-0":""}`}else if(i){A=`>=${A}`}else{A=`>=${A}${e?"-0":""}`}if(isX(c)){a=""}else if(isX(l)){a=`<${+c+1}.0.0-0`}else if(isX(u)){a=`<${c}.${+l+1}.0-0`}else if(g){a=`<=${c}.${l}.${u}-${g}`}else if(e){a=`<${c}.${l}.${+u+1}-0`}else{a=`<=${a}`}return`${A} ${a}`.trim()};const testSet=(e,t,A)=>{for(let A=0;A0){const s=e[A].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}},7163:(e,t,A)=>{"use strict";const s=A(1159);const{MAX_LENGTH:r,MAX_SAFE_INTEGER:n}=A(5101);const{safeRe:i,t:o}=A(5471);const a=A(356);const{compareIdentifiers:c}=A(3348);class SemVer{constructor(e,t){t=a(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>r){throw new TypeError(`version is longer than ${r} characters`)}s("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const A=e.trim().match(t.loose?i[o.LOOSE]:i[o.FULL]);if(!A){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+A[1];this.minor=+A[2];this.patch=+A[3];if(this.major>n||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>n||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>n||this.patch<0){throw new TypeError("Invalid patch version")}if(!A[4]){this.prerelease=[]}else{this.prerelease=A[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[s]==="number"){this.prerelease[s]++;s=-2}}if(s===-1){if(t===this.prerelease.join(".")&&A===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let s=[t,e];if(A===false){s=[t]}if(c(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=s}}else{this.prerelease=s}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},1799:(e,t,A)=>{"use strict";const s=A(6353);const clean=(e,t)=>{const A=s(e.trim().replace(/^[=v]+/,""),t);return A?A.version:null};e.exports=clean},8646:(e,t,A)=>{"use strict";const s=A(5082);const r=A(4974);const n=A(6599);const i=A(1236);const o=A(3872);const a=A(6717);const cmp=(e,t,A,c)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof A==="object"){A=A.version}return e===A;case"!==":if(typeof e==="object"){e=e.version}if(typeof A==="object"){A=A.version}return e!==A;case"":case"=":case"==":return s(e,A,c);case"!=":return r(e,A,c);case">":return n(e,A,c);case">=":return i(e,A,c);case"<":return o(e,A,c);case"<=":return a(e,A,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},5385:(e,t,A)=>{"use strict";const s=A(7163);const r=A(6353);const{safeRe:n,t:i}=A(5471);const coerce=(e,t)=>{if(e instanceof s){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let A=null;if(!t.rtl){A=e.match(t.includePrerelease?n[i.COERCEFULL]:n[i.COERCE])}else{const s=t.includePrerelease?n[i.COERCERTLFULL]:n[i.COERCERTL];let r;while((r=s.exec(e))&&(!A||A.index+A[0].length!==e.length)){if(!A||r.index+r[0].length!==A.index+A[0].length){A=r}s.lastIndex=r.index+r[1].length+r[2].length}s.lastIndex=-1}if(A===null){return null}const o=A[2];const a=A[3]||"0";const c=A[4]||"0";const l=t.includePrerelease&&A[5]?`-${A[5]}`:"";const u=t.includePrerelease&&A[6]?`+${A[6]}`:"";return r(`${o}.${a}.${c}${l}${u}`,t)};e.exports=coerce},7648:(e,t,A)=>{"use strict";const s=A(7163);const compareBuild=(e,t,A)=>{const r=new s(e,A);const n=new s(t,A);return r.compare(n)||r.compareBuild(n)};e.exports=compareBuild},6874:(e,t,A)=>{"use strict";const s=A(8469);const compareLoose=(e,t)=>s(e,t,true);e.exports=compareLoose},8469:(e,t,A)=>{"use strict";const s=A(7163);const compare=(e,t,A)=>new s(e,A).compare(new s(t,A));e.exports=compare},711:(e,t,A)=>{"use strict";const s=A(6353);const diff=(e,t)=>{const A=s(e,null,true);const r=s(t,null,true);const n=A.compare(r);if(n===0){return null}const i=n>0;const o=i?A:r;const a=i?r:A;const c=!!o.prerelease.length;const l=!!a.prerelease.length;if(l&&!c){if(!a.patch&&!a.minor){return"major"}if(a.compareMain(o)===0){if(a.minor&&!a.patch){return"minor"}return"patch"}}const u=c?"pre":"";if(A.major!==r.major){return u+"major"}if(A.minor!==r.minor){return u+"minor"}if(A.patch!==r.patch){return u+"patch"}return"prerelease"};e.exports=diff},5082:(e,t,A)=>{"use strict";const s=A(8469);const eq=(e,t,A)=>s(e,t,A)===0;e.exports=eq},6599:(e,t,A)=>{"use strict";const s=A(8469);const gt=(e,t,A)=>s(e,t,A)>0;e.exports=gt},1236:(e,t,A)=>{"use strict";const s=A(8469);const gte=(e,t,A)=>s(e,t,A)>=0;e.exports=gte},2338:(e,t,A)=>{"use strict";const s=A(7163);const inc=(e,t,A,r,n)=>{if(typeof A==="string"){n=r;r=A;A=undefined}try{return new s(e instanceof s?e.version:e,A).inc(t,r,n).version}catch(e){return null}};e.exports=inc},3872:(e,t,A)=>{"use strict";const s=A(8469);const lt=(e,t,A)=>s(e,t,A)<0;e.exports=lt},6717:(e,t,A)=>{"use strict";const s=A(8469);const lte=(e,t,A)=>s(e,t,A)<=0;e.exports=lte},8511:(e,t,A)=>{"use strict";const s=A(7163);const major=(e,t)=>new s(e,t).major;e.exports=major},2603:(e,t,A)=>{"use strict";const s=A(7163);const minor=(e,t)=>new s(e,t).minor;e.exports=minor},4974:(e,t,A)=>{"use strict";const s=A(8469);const neq=(e,t,A)=>s(e,t,A)!==0;e.exports=neq},6353:(e,t,A)=>{"use strict";const s=A(7163);const parse=(e,t,A=false)=>{if(e instanceof s){return e}try{return new s(e,t)}catch(e){if(!A){return null}throw e}};e.exports=parse},8756:(e,t,A)=>{"use strict";const s=A(7163);const patch=(e,t)=>new s(e,t).patch;e.exports=patch},5714:(e,t,A)=>{"use strict";const s=A(6353);const prerelease=(e,t)=>{const A=s(e,t);return A&&A.prerelease.length?A.prerelease:null};e.exports=prerelease},2173:(e,t,A)=>{"use strict";const s=A(8469);const rcompare=(e,t,A)=>s(t,e,A);e.exports=rcompare},7192:(e,t,A)=>{"use strict";const s=A(7648);const rsort=(e,t)=>e.sort(((e,A)=>s(A,e,t)));e.exports=rsort},8011:(e,t,A)=>{"use strict";const s=A(6782);const satisfies=(e,t,A)=>{try{t=new s(t,A)}catch(e){return false}return t.test(e)};e.exports=satisfies},9872:(e,t,A)=>{"use strict";const s=A(7648);const sort=(e,t)=>e.sort(((e,A)=>s(e,A,t)));e.exports=sort},8780:(e,t,A)=>{"use strict";const s=A(6353);const valid=(e,t)=>{const A=s(e,t);return A?A.version:null};e.exports=valid},2088:(e,t,A)=>{"use strict";const s=A(5471);const r=A(5101);const n=A(7163);const i=A(3348);const o=A(6353);const a=A(8780);const c=A(1799);const l=A(2338);const u=A(711);const g=A(8511);const h=A(2603);const E=A(8756);const f=A(5714);const d=A(8469);const C=A(2173);const Q=A(6874);const I=A(7648);const B=A(9872);const p=A(7192);const y=A(6599);const m=A(3872);const w=A(5082);const b=A(4974);const R=A(1236);const k=A(6717);const S=A(8646);const D=A(5385);const N=A(9379);const F=A(6782);const v=A(8011);const L=A(4750);const M=A(5574);const U=A(8595);const T=A(1866);const O=A(4737);const Y=A(280);const x=A(2276);const G=A(5213);const J=A(3465);const H=A(2028);const P=A(1489);e.exports={parse:o,valid:a,clean:c,inc:l,diff:u,major:g,minor:h,patch:E,prerelease:f,compare:d,rcompare:C,compareLoose:Q,compareBuild:I,sort:B,rsort:p,gt:y,lt:m,eq:w,neq:b,gte:R,lte:k,cmp:S,coerce:D,Comparator:N,Range:F,satisfies:v,toComparators:L,maxSatisfying:M,minSatisfying:U,minVersion:T,validRange:O,outside:Y,gtr:x,ltr:G,intersects:J,simplifyRange:H,subset:P,SemVer:n,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},5101:e=>{"use strict";const t="2.0.0";const A=256;const s=Number.MAX_SAFE_INTEGER||9007199254740991;const r=16;const n=A-6;const i=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:A,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_SAFE_INTEGER:s,RELEASE_TYPES:i,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:e=>{"use strict";const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},3348:e=>{"use strict";const t=/^[0-9]+$/;const compareIdentifiers=(e,A)=>{const s=t.test(e);const r=t.test(A);if(s&&r){e=+e;A=+A}return e===A?0:s&&!r?-1:r&&!s?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1383:e=>{"use strict";class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const A=this.delete(e);if(!A&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},356:e=>{"use strict";const t=Object.freeze({loose:true});const A=Object.freeze({});const parseOptions=e=>{if(!e){return A}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},5471:(e,t,A)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:n}=A(5101);const i=A(1159);t=e.exports={};const o=t.re=[];const a=t.safeRe=[];const c=t.src=[];const l=t.safeSrc=[];const u=t.t={};let g=0;const h="[a-zA-Z0-9-]";const E=[["\\s",1],["\\d",n],[h,r]];const makeSafeRegex=e=>{for(const[t,A]of E){e=e.split(`${t}*`).join(`${t}{0,${A}}`).split(`${t}+`).join(`${t}{1,${A}}`)}return e};const createToken=(e,t,A)=>{const s=makeSafeRegex(t);const r=g++;i(e,r,t);u[e]=r;c[r]=t;l[r]=s;o[r]=new RegExp(t,A?"g":undefined);a[r]=new RegExp(s,A?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`);createToken("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.`+`(${c[u.NUMERICIDENTIFIER]})\\.`+`(${c[u.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${c[u.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${h}+`);createToken("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`);createToken("FULL",`^${c[u.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`);createToken("LOOSE",`^${c[u.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})`+`(?:\\.(${c[u.XRANGEIDENTIFIER]})`+`(?:\\.(${c[u.XRANGEIDENTIFIER]})`+`(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${s}})`+`(?:\\.(\\d{1,${s}}))?`+`(?:\\.(\\d{1,${s}}))?`);createToken("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",c[u.COERCE],true);createToken("COERCERTLFULL",c[u.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${c[u.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${c[u.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2276:(e,t,A)=>{"use strict";const s=A(280);const gtr=(e,t,A)=>s(e,t,">",A);e.exports=gtr},3465:(e,t,A)=>{"use strict";const s=A(6782);const intersects=(e,t,A)=>{e=new s(e,A);t=new s(t,A);return e.intersects(t,A)};e.exports=intersects},5213:(e,t,A)=>{"use strict";const s=A(280);const ltr=(e,t,A)=>s(e,t,"<",A);e.exports=ltr},5574:(e,t,A)=>{"use strict";const s=A(7163);const r=A(6782);const maxSatisfying=(e,t,A)=>{let n=null;let i=null;let o=null;try{o=new r(t,A)}catch(e){return null}e.forEach((e=>{if(o.test(e)){if(!n||i.compare(e)===-1){n=e;i=new s(n,A)}}}));return n};e.exports=maxSatisfying},8595:(e,t,A)=>{"use strict";const s=A(7163);const r=A(6782);const minSatisfying=(e,t,A)=>{let n=null;let i=null;let o=null;try{o=new r(t,A)}catch(e){return null}e.forEach((e=>{if(o.test(e)){if(!n||i.compare(e)===1){n=e;i=new s(n,A)}}}));return n};e.exports=minSatisfying},1866:(e,t,A)=>{"use strict";const s=A(7163);const r=A(6782);const n=A(6599);const minVersion=(e,t)=>{e=new r(e,t);let A=new s("0.0.0");if(e.test(A)){return A}A=new s("0.0.0-0");if(e.test(A)){return A}A=null;for(let t=0;t{const t=new s(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!i||n(t,i)){i=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(i&&(!A||n(A,i))){A=i}}if(A&&e.test(A)){return A}return null};e.exports=minVersion},280:(e,t,A)=>{"use strict";const s=A(7163);const r=A(9379);const{ANY:n}=r;const i=A(6782);const o=A(8011);const a=A(6599);const c=A(3872);const l=A(6717);const u=A(1236);const outside=(e,t,A,g)=>{e=new s(e,g);t=new i(t,g);let h,E,f,d,C;switch(A){case">":h=a;E=l;f=c;d=">";C=">=";break;case"<":h=c;E=u;f=a;d="<";C="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,g)){return false}for(let A=0;A{if(e.semver===n){e=new r(">=0.0.0")}i=i||e;o=o||e;if(h(e.semver,i.semver,g)){i=e}else if(f(e.semver,o.semver,g)){o=e}}));if(i.operator===d||i.operator===C){return false}if((!o.operator||o.operator===d)&&E(e,o.semver)){return false}else if(o.operator===C&&f(e,o.semver)){return false}}return true};e.exports=outside},2028:(e,t,A)=>{"use strict";const s=A(8011);const r=A(8469);e.exports=(e,t,A)=>{const n=[];let i=null;let o=null;const a=e.sort(((e,t)=>r(e,t,A)));for(const e of a){const r=s(e,t,A);if(r){o=e;if(!i){i=e}}else{if(o){n.push([i,o])}o=null;i=null}}if(i){n.push([i,null])}const c=[];for(const[e,t]of n){if(e===t){c.push(e)}else if(!t&&e===a[0]){c.push("*")}else if(!t){c.push(`>=${e}`)}else if(e===a[0]){c.push(`<=${t}`)}else{c.push(`${e} - ${t}`)}}const l=c.join(" || ");const u=typeof t.raw==="string"?t.raw:String(t);return l.length{"use strict";const s=A(6782);const r=A(9379);const{ANY:n}=r;const i=A(8011);const o=A(8469);const subset=(e,t,A={})=>{if(e===t){return true}e=new s(e,A);t=new s(t,A);let r=false;e:for(const s of e.set){for(const e of t.set){const t=simpleSubset(s,e,A);r=r||t!==null;if(t){continue e}}if(r){return false}}return true};const a=[new r(">=0.0.0-0")];const c=[new r(">=0.0.0")];const simpleSubset=(e,t,A)=>{if(e===t){return true}if(e.length===1&&e[0].semver===n){if(t.length===1&&t[0].semver===n){return true}else if(A.includePrerelease){e=a}else{e=c}}if(t.length===1&&t[0].semver===n){if(A.includePrerelease){return true}else{t=c}}const s=new Set;let r,l;for(const t of e){if(t.operator===">"||t.operator===">="){r=higherGT(r,t,A)}else if(t.operator==="<"||t.operator==="<="){l=lowerLT(l,t,A)}else{s.add(t.semver)}}if(s.size>1){return null}let u;if(r&&l){u=o(r.semver,l.semver,A);if(u>0){return null}else if(u===0&&(r.operator!==">="||l.operator!=="<=")){return null}}for(const e of s){if(r&&!i(e,String(r),A)){return null}if(l&&!i(e,String(l),A)){return null}for(const s of t){if(!i(e,String(s),A)){return false}}return true}let g,h;let E,f;let d=l&&!A.includePrerelease&&l.semver.prerelease.length?l.semver:false;let C=r&&!A.includePrerelease&&r.semver.prerelease.length?r.semver:false;if(d&&d.prerelease.length===1&&l.operator==="<"&&d.prerelease[0]===0){d=false}for(const e of t){f=f||e.operator===">"||e.operator===">=";E=E||e.operator==="<"||e.operator==="<=";if(r){if(C){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===C.major&&e.semver.minor===C.minor&&e.semver.patch===C.patch){C=false}}if(e.operator===">"||e.operator===">="){g=higherGT(r,e,A);if(g===e&&g!==r){return false}}else if(r.operator===">="&&!i(r.semver,String(e),A)){return false}}if(l){if(d){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch){d=false}}if(e.operator==="<"||e.operator==="<="){h=lowerLT(l,e,A);if(h===e&&h!==l){return false}}else if(l.operator==="<="&&!i(l.semver,String(e),A)){return false}}if(!e.operator&&(l||r)&&u!==0){return false}}if(r&&E&&!l&&u!==0){return false}if(l&&f&&!r&&u!==0){return false}if(C||d){return false}return true};const higherGT=(e,t,A)=>{if(!e){return t}const s=o(e.semver,t.semver,A);return s>0?e:s<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,A)=>{if(!e){return t}const s=o(e.semver,t.semver,A);return s<0?e:s>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},4750:(e,t,A)=>{"use strict";const s=A(6782);const toComparators=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},4737:(e,t,A)=>{"use strict";const s=A(6782);const validRange=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}};e.exports=validRange},770:(e,t,A)=>{e.exports=A(218)},218:(e,t,A)=>{"use strict";var s=A(9278);var r=A(4756);var n=A(8611);var i=A(5692);var o=A(4434);var a=A(2613);var c=A(9023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=n.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=n.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,A,s,r){var n=toOptions(A,s,r);for(var i=0,o=t.requests.length;i=this.maxSockets){r.requests.push(n);return}r.createSocket(n,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){r.emit("free",t,n)}function onCloseOrRemove(e){r.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var A=this;var s={};A.sockets.push(s);var r=mergeOptions({},A.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){r.localAddress=e.localAddress}if(r.proxyAuth){r.headers=r.headers||{};r.headers["Proxy-Authorization"]="Basic "+new Buffer(r.proxyAuth).toString("base64")}l("making CONNECT request");var n=A.request(r);n.useChunkedEncodingByDefault=false;n.once("response",onResponse);n.once("upgrade",onUpgrade);n.once("connect",onConnect);n.once("error",onError);n.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,A){process.nextTick((function(){onConnect(e,t,A)}))}function onConnect(r,i,o){n.removeAllListeners();i.removeAllListeners();if(r.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",r.statusCode);i.destroy();var a=new Error("tunneling socket could not be established, "+"statusCode="+r.statusCode);a.code="ECONNRESET";e.request.emit("error",a);A.removeSocket(s);return}if(o.length>0){l("got illegal response body from proxy");i.destroy();var a=new Error("got illegal response body from proxy");a.code="ECONNRESET";e.request.emit("error",a);A.removeSocket(s);return}l("tunneling connection has established");A.sockets[A.sockets.indexOf(s)]=i;return t(i)}function onError(t){n.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=new Error("tunneling socket could not be established, "+"cause="+t.message);r.code="ECONNRESET";e.request.emit("error",r);A.removeSocket(s)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var A=this.requests.shift();if(A){this.createSocket(A,(function(e){A.request.onSocket(e)}))}};function createSecureSocket(e,t){var A=this;TunnelingAgent.prototype.createSocket.call(A,e,(function(s){var n=e.request.getHeader("host");var i=mergeOptions({},A.options,{socket:s,servername:n?n.replace(/:.*$/,""):e.host});var o=r.connect(0,i);A.sockets[A.sockets.indexOf(s)]=o;t(o)}))}function toOptions(e,t,A){if(typeof e==="string"){return{host:e,port:t,localAddress:A}}return e}function mergeOptions(e){for(var t=1,A=arguments.length;t{"use strict";const s=A(6197);const r=A(992);const n=A(8707);const i=A(5076);const o=A(1093);const a=A(9965);const c=A(3440);const{InvalidArgumentError:l}=n;const u=A(6615);const g=A(9136);const h=A(7365);const E=A(7501);const f=A(4004);const d=A(2429);const C=A(2720);const Q=A(3573);const{getGlobalDispatcher:I,setGlobalDispatcher:B}=A(2581);const p=A(8840);const y=A(8299);const m=A(4415);let w;try{A(6982);w=true}catch{w=false}Object.assign(r.prototype,u);e.exports.Dispatcher=r;e.exports.Client=s;e.exports.Pool=i;e.exports.BalancedPool=o;e.exports.Agent=a;e.exports.ProxyAgent=C;e.exports.RetryHandler=Q;e.exports.DecoratorHandler=p;e.exports.RedirectHandler=y;e.exports.createRedirectInterceptor=m;e.exports.buildConnector=g;e.exports.errors=n;function makeDispatcher(e){return(t,A,s)=>{if(typeof A==="function"){s=A;A=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new l("invalid url")}if(A!=null&&typeof A!=="object"){throw new l("invalid opts")}if(A&&A.path!=null){if(typeof A.path!=="string"){throw new l("invalid opts.path")}let e=A.path;if(!A.path.startsWith("/")){e=`/${e}`}t=new URL(c.parseOrigin(t).origin+e)}else{if(!A){A=typeof t==="object"?t:{}}t=c.parseURL(t)}const{agent:r,dispatcher:n=I()}=A;if(r){throw new l("unsupported opts.agent. Did you mean opts.client?")}return e.call(n,{...A,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:A.method||(A.body?"PUT":"GET")},s)}}e.exports.setGlobalDispatcher=B;e.exports.getGlobalDispatcher=I;if(c.nodeMajor>16||c.nodeMajor===16&&c.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=A(2315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=A(6349).Headers;e.exports.Response=A(8676).Response;e.exports.Request=A(5194).Request;e.exports.FormData=A(3073).FormData;e.exports.File=A(3041).File;e.exports.FileReader=A(2160).FileReader;const{setGlobalOrigin:s,getGlobalOrigin:r}=A(5628);e.exports.setGlobalOrigin=s;e.exports.getGlobalOrigin=r;const{CacheStorage:n}=A(4738);const{kConstruct:i}=A(296);e.exports.caches=new n(i)}if(c.nodeMajor>=16){const{deleteCookie:t,getCookies:s,getSetCookies:r,setCookie:n}=A(3168);e.exports.deleteCookie=t;e.exports.getCookies=s;e.exports.getSetCookies=r;e.exports.setCookie=n;const{parseMIMEType:i,serializeAMimeType:o}=A(4322);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=o}if(c.nodeMajor>=18&&w){const{WebSocket:t}=A(5171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(u.request);e.exports.stream=makeDispatcher(u.stream);e.exports.pipeline=makeDispatcher(u.pipeline);e.exports.connect=makeDispatcher(u.connect);e.exports.upgrade=makeDispatcher(u.upgrade);e.exports.MockClient=h;e.exports.MockPool=f;e.exports.MockAgent=E;e.exports.mockErrors=d},9965:(e,t,A)=>{"use strict";const{InvalidArgumentError:s}=A(8707);const{kClients:r,kRunning:n,kClose:i,kDestroy:o,kDispatch:a,kInterceptors:c}=A(6443);const l=A(1);const u=A(5076);const g=A(6197);const h=A(3440);const E=A(4415);const{WeakRef:f,FinalizationRegistry:d}=A(3194)();const C=Symbol("onConnect");const Q=Symbol("onDisconnect");const I=Symbol("onConnectionError");const B=Symbol("maxRedirections");const p=Symbol("onDrain");const y=Symbol("factory");const m=Symbol("finalizer");const w=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new g(e,t):new u(e,t)}class Agent extends l{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:A,...n}={}){super();if(typeof e!=="function"){throw new s("factory must be a function.")}if(A!=null&&typeof A!=="function"&&typeof A!=="object"){throw new s("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new s("maxRedirections must be a positive number")}if(A&&typeof A!=="function"){A={...A}}this[c]=n.interceptors&&n.interceptors.Agent&&Array.isArray(n.interceptors.Agent)?n.interceptors.Agent:[E({maxRedirections:t})];this[w]={...h.deepClone(n),connect:A};this[w].interceptors=n.interceptors?{...n.interceptors}:undefined;this[B]=t;this[y]=e;this[r]=new Map;this[m]=new d((e=>{const t=this[r].get(e);if(t!==undefined&&t.deref()===undefined){this[r].delete(e)}}));const i=this;this[p]=(e,t)=>{i.emit("drain",e,[i,...t])};this[C]=(e,t)=>{i.emit("connect",e,[i,...t])};this[Q]=(e,t,A)=>{i.emit("disconnect",e,[i,...t],A)};this[I]=(e,t,A)=>{i.emit("connectionError",e,[i,...t],A)}}get[n](){let e=0;for(const t of this[r].values()){const A=t.deref();if(A){e+=A[n]}}return e}[a](e,t){let A;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){A=String(e.origin)}else{throw new s("opts.origin must be a non-empty string or URL.")}const n=this[r].get(A);let i=n?n.deref():null;if(!i){i=this[y](e.origin,this[w]).on("drain",this[p]).on("connect",this[C]).on("disconnect",this[Q]).on("connectionError",this[I]);this[r].set(A,new f(i));this[m].register(i,A)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[r].values()){const A=t.deref();if(A){e.push(A.close())}}await Promise.all(e)}async[o](e){const t=[];for(const A of this[r].values()){const s=A.deref();if(s){t.push(s.destroy(e))}}await Promise.all(t)}}e.exports=Agent},158:(e,t,A)=>{const{addAbortListener:s}=A(3440);const{RequestAbortedError:r}=A(8707);const n=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new r)}}function addSignal(e,t){e[i]=null;e[n]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[n]=()=>{abort(e)};s(e[i],e[n])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[n])}else{e[i].removeListener("abort",e[n])}e[i]=null;e[n]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},4660:(e,t,A)=>{"use strict";const{AsyncResource:s}=A(290);const{InvalidArgumentError:r,RequestAbortedError:n,SocketError:i}=A(8707);const o=A(3440);const{addSignal:a,removeSignal:c}=A(158);class ConnectHandler extends s{constructor(e,t){if(!e||typeof e!=="object"){throw new r("invalid opts")}if(typeof t!=="function"){throw new r("invalid callback")}const{signal:A,opaque:s,responseHeaders:n}=e;if(A&&typeof A.on!=="function"&&typeof A.addEventListener!=="function"){throw new r("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=s||null;this.responseHeaders=n||null;this.callback=t;this.abort=null;a(this,A)}onConnect(e,t){if(!this.callback){throw new n}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,A){const{callback:s,opaque:r,context:n}=this;c(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?o.parseRawHeaders(t):o.parseHeaders(t)}this.runInAsyncScope(s,null,null,{statusCode:e,headers:i,socket:A,opaque:r,context:n})}onError(e){const{callback:t,opaque:A}=this;c(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:A})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,A)=>{connect.call(this,e,((e,s)=>e?A(e):t(s)))}))}try{const A=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},A)}catch(A){if(typeof t!=="function"){throw A}const s=e&&e.opaque;queueMicrotask((()=>t(A,{opaque:s})))}}e.exports=connect},6862:(e,t,A)=>{"use strict";const{Readable:s,Duplex:r,PassThrough:n}=A(2203);const{InvalidArgumentError:i,InvalidReturnValueError:o,RequestAbortedError:a}=A(8707);const c=A(3440);const{AsyncResource:l}=A(290);const{addSignal:u,removeSignal:g}=A(158);const h=A(2613);const E=Symbol("resume");class PipelineRequest extends s{constructor(){super({autoDestroy:true});this[E]=null}_read(){const{[E]:e}=this;if(e){this[E]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends s{constructor(e){super({autoDestroy:true});this[E]=e}_read(){this[E]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new a}t(e)}}class PipelineHandler extends l{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:A,method:s,opaque:n,onInfo:o,responseHeaders:l}=e;if(A&&typeof A.on!=="function"&&typeof A.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new i("invalid method")}if(o&&typeof o!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=n||null;this.responseHeaders=l||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=o||null;this.req=(new PipelineRequest).on("error",c.nop);this.ret=new r({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,A)=>{const{req:s}=this;if(s.push(e,t)||s._readableState.destroyed){A()}else{s[E]=A}},destroy:(e,t)=>{const{body:A,req:s,res:r,ret:n,abort:i}=this;if(!e&&!n._readableState.endEmitted){e=new a}if(i&&e){i()}c.destroy(A,e);c.destroy(s,e);c.destroy(r,e);g(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;u(this,A)}onConnect(e,t){const{ret:A,res:s}=this;h(!s,"pipeline cannot be retried");if(A.destroyed){throw new a}this.abort=e;this.context=t}onHeaders(e,t,A){const{opaque:s,handler:r,context:n}=this;if(e<200){if(this.onInfo){const A=this.responseHeaders==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);this.onInfo({statusCode:e,headers:A})}return}this.res=new PipelineResponse(A);let i;try{this.handler=null;const A=this.responseHeaders==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);i=this.runInAsyncScope(r,null,{statusCode:e,headers:A,opaque:s,body:this.res,context:n})}catch(e){this.res.on("error",c.nop);throw e}if(!i||typeof i.on!=="function"){throw new o("expected Readable")}i.on("data",(e=>{const{ret:t,body:A}=this;if(!t.push(e)&&A.pause){A.pause()}})).on("error",(e=>{const{ret:t}=this;c.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){c.destroy(e,new a)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;c.destroy(t,e)}}function pipeline(e,t){try{const A=new PipelineHandler(e,t);this.dispatch({...e,body:A.req},A);return A.ret}catch(e){return(new n).destroy(e)}}e.exports=pipeline},4043:(e,t,A)=>{"use strict";const s=A(9927);const{InvalidArgumentError:r,RequestAbortedError:n}=A(8707);const i=A(3440);const{getResolveErrorBodyCallback:o}=A(7655);const{AsyncResource:a}=A(290);const{addSignal:c,removeSignal:l}=A(158);class RequestHandler extends a{constructor(e,t){if(!e||typeof e!=="object"){throw new r("invalid opts")}const{signal:A,method:s,opaque:n,body:o,onInfo:a,responseHeaders:l,throwOnError:u,highWaterMark:g}=e;try{if(typeof t!=="function"){throw new r("invalid callback")}if(g&&(typeof g!=="number"||g<0)){throw new r("invalid highWaterMark")}if(A&&typeof A.on!=="function"&&typeof A.addEventListener!=="function"){throw new r("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new r("invalid method")}if(a&&typeof a!=="function"){throw new r("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(o)){i.destroy(o.on("error",i.nop),e)}throw e}this.responseHeaders=l||null;this.opaque=n||null;this.callback=t;this.res=null;this.abort=null;this.body=o;this.trailers={};this.context=null;this.onInfo=a||null;this.throwOnError=u;this.highWaterMark=g;if(i.isStream(o)){o.on("error",(e=>{this.onError(e)}))}c(this,A)}onConnect(e,t){if(!this.callback){throw new n}this.abort=e;this.context=t}onHeaders(e,t,A,r){const{callback:n,opaque:a,abort:c,context:l,responseHeaders:u,highWaterMark:g}=this;const h=u==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:h})}return}const E=u==="raw"?i.parseHeaders(t):h;const f=E["content-type"];const d=new s({resume:A,abort:c,contentType:f,highWaterMark:g});this.callback=null;this.res=d;if(n!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(o,null,{callback:n,body:d,contentType:f,statusCode:e,statusMessage:r,headers:h})}else{this.runInAsyncScope(n,null,null,{statusCode:e,headers:h,trailers:this.trailers,opaque:a,body:d,context:l})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;l(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:A,body:s,opaque:r}=this;l(this);if(A){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(A,null,e,{opaque:r})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(s){this.body=null;i.destroy(s,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,A)=>{request.call(this,e,((e,s)=>e?A(e):t(s)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(A){if(typeof t!=="function"){throw A}const s=e&&e.opaque;queueMicrotask((()=>t(A,{opaque:s})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,A)=>{"use strict";const{finished:s,PassThrough:r}=A(2203);const{InvalidArgumentError:n,InvalidReturnValueError:i,RequestAbortedError:o}=A(8707);const a=A(3440);const{getResolveErrorBodyCallback:c}=A(7655);const{AsyncResource:l}=A(290);const{addSignal:u,removeSignal:g}=A(158);class StreamHandler extends l{constructor(e,t,A){if(!e||typeof e!=="object"){throw new n("invalid opts")}const{signal:s,method:r,opaque:i,body:o,onInfo:c,responseHeaders:l,throwOnError:g}=e;try{if(typeof A!=="function"){throw new n("invalid callback")}if(typeof t!=="function"){throw new n("invalid factory")}if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}if(r==="CONNECT"){throw new n("invalid method")}if(c&&typeof c!=="function"){throw new n("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(a.isStream(o)){a.destroy(o.on("error",a.nop),e)}throw e}this.responseHeaders=l||null;this.opaque=i||null;this.factory=t;this.callback=A;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=o;this.onInfo=c||null;this.throwOnError=g||false;if(a.isStream(o)){o.on("error",(e=>{this.onError(e)}))}u(this,s)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(e,t,A,n){const{factory:o,opaque:l,context:u,callback:g,responseHeaders:h}=this;const E=h==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:E})}return}this.factory=null;let f;if(this.throwOnError&&e>=400){const A=h==="raw"?a.parseHeaders(t):E;const s=A["content-type"];f=new r;this.callback=null;this.runInAsyncScope(c,null,{callback:g,body:f,contentType:s,statusCode:e,statusMessage:n,headers:E})}else{if(o===null){return}f=this.runInAsyncScope(o,null,{statusCode:e,headers:E,opaque:l,context:u});if(!f||typeof f.write!=="function"||typeof f.end!=="function"||typeof f.on!=="function"){throw new i("expected Writable")}s(f,{readable:false},(e=>{const{callback:t,res:A,opaque:s,trailers:r,abort:n}=this;this.res=null;if(e||!A.readable){a.destroy(A,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:s,trailers:r});if(e){n()}}))}f.on("drain",A);this.res=f;const d=f.writableNeedDrain!==undefined?f.writableNeedDrain:f._writableState&&f._writableState.needDrain;return d!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;g(this);if(!t){return}this.trailers=a.parseHeaders(e);t.end()}onError(e){const{res:t,callback:A,opaque:s,body:r}=this;g(this);this.factory=null;if(t){this.res=null;a.destroy(t,e)}else if(A){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(A,null,e,{opaque:s})}))}if(r){this.body=null;a.destroy(r,e)}}}function stream(e,t,A){if(A===undefined){return new Promise(((A,s)=>{stream.call(this,e,t,((e,t)=>e?s(e):A(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,A))}catch(t){if(typeof A!=="function"){throw t}const s=e&&e.opaque;queueMicrotask((()=>A(t,{opaque:s})))}}e.exports=stream},1882:(e,t,A)=>{"use strict";const{InvalidArgumentError:s,RequestAbortedError:r,SocketError:n}=A(8707);const{AsyncResource:i}=A(290);const o=A(3440);const{addSignal:a,removeSignal:c}=A(158);const l=A(2613);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}if(typeof t!=="function"){throw new s("invalid callback")}const{signal:A,opaque:r,responseHeaders:n}=e;if(A&&typeof A.on!=="function"&&typeof A.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=n||null;this.opaque=r||null;this.callback=t;this.abort=null;this.context=null;a(this,A)}onConnect(e,t){if(!this.callback){throw new r}this.abort=e;this.context=null}onHeaders(){throw new n("bad upgrade",null)}onUpgrade(e,t,A){const{callback:s,opaque:r,context:n}=this;l.strictEqual(e,101);c(this);this.callback=null;const i=this.responseHeaders==="raw"?o.parseRawHeaders(t):o.parseHeaders(t);this.runInAsyncScope(s,null,null,{headers:i,socket:A,opaque:r,context:n})}onError(e){const{callback:t,opaque:A}=this;c(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:A})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,A)=>{upgrade.call(this,e,((e,s)=>e?A(e):t(s)))}))}try{const A=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},A)}catch(A){if(typeof t!=="function"){throw A}const s=e&&e.opaque;queueMicrotask((()=>t(A,{opaque:s})))}}e.exports=upgrade},6615:(e,t,A)=>{"use strict";e.exports.request=A(4043);e.exports.stream=A(3560);e.exports.pipeline=A(6862);e.exports.upgrade=A(1882);e.exports.connect=A(4660)},9927:(e,t,A)=>{"use strict";const s=A(2613);const{Readable:r}=A(2203);const{RequestAbortedError:n,NotSupportedError:i,InvalidArgumentError:o}=A(8707);const a=A(3440);const{ReadableStreamFrom:c,toUSVString:l}=A(3440);let u;const g=Symbol("kConsume");const h=Symbol("kReading");const E=Symbol("kBody");const f=Symbol("abort");const d=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends r{constructor({resume:e,abort:t,contentType:A="",highWaterMark:s=64*1024}){super({autoDestroy:true,read:e,highWaterMark:s});this._readableState.dataEmitted=false;this[f]=t;this[g]=null;this[E]=null;this[d]=A;this[h]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new n}if(e){this[f]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[h]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const A=super.off(e,...t);if(e==="data"||e==="readable"){this[h]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return A}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[g]&&e!==null&&this.readableLength===0){consumePush(this[g],e);return this[h]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return a.isDisturbed(this)}get body(){if(!this[E]){this[E]=c(this);if(this[g]){this[E].getReader();s(this[E].locked)}}return this[E]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const A=e&&e.signal;if(A){try{if(typeof A!=="object"||!("aborted"in A)){throw new o("signal must be an AbortSignal")}a.throwIfAborted(A)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,s)=>{const r=A?a.addAbortListener(A,(()=>{this.destroy()})):noop;this.on("close",(function(){r();if(A&&A.aborted){s(A.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[E]&&e[E].locked===true||e[g]}function isUnusable(e){return a.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}s(!e[g]);return new Promise(((A,s)=>{e[g]={type:t,stream:e,resolve:A,reject:s,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[g],e)})).on("close",(function(){if(this[g].body!==null){consumeFinish(this[g],new n)}}));process.nextTick(consumeStart,e[g])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const A of t.buffer){consumePush(e,A)}if(t.endEmitted){consumeEnd(this[g])}else{e.stream.on("end",(function(){consumeEnd(this[g])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:s,resolve:r,stream:n,length:i}=e;try{if(t==="text"){r(l(Buffer.concat(s)))}else if(t==="json"){r(JSON.parse(Buffer.concat(s)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const A of s){e.set(A,t);t+=A.byteLength}r(e.buffer)}else if(t==="blob"){if(!u){u=A(181).Blob}r(new u(s,{type:n[d]}))}consumeFinish(e)}catch(e){n.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},7655:(e,t,A)=>{const s=A(2613);const{ResponseStatusCodeError:r}=A(8707);const{toUSVString:n}=A(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:A,statusCode:i,statusMessage:o,headers:a}){s(t);let c=[];let l=0;for await(const e of t){c.push(e);l+=e.length;if(l>128*1024){c=null;break}}if(i===204||!A||!c){process.nextTick(e,new r(`Response status code ${i}${o?`: ${o}`:""}`,i,a));return}try{if(A.startsWith("application/json")){const t=JSON.parse(n(Buffer.concat(c)));process.nextTick(e,new r(`Response status code ${i}${o?`: ${o}`:""}`,i,a,t));return}if(A.startsWith("text/")){const t=n(Buffer.concat(c));process.nextTick(e,new r(`Response status code ${i}${o?`: ${o}`:""}`,i,a,t));return}}catch(e){}process.nextTick(e,new r(`Response status code ${i}${o?`: ${o}`:""}`,i,a))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},1093:(e,t,A)=>{"use strict";const{BalancedPoolMissingUpstreamError:s,InvalidArgumentError:r}=A(8707);const{PoolBase:n,kClients:i,kNeedDrain:o,kAddClient:a,kRemoveClient:c,kGetDispatcher:l}=A(8640);const u=A(5076);const{kUrl:g,kInterceptors:h}=A(6443);const{parseOrigin:E}=A(3440);const f=Symbol("factory");const d=Symbol("options");const C=Symbol("kGreatestCommonDivisor");const Q=Symbol("kCurrentWeight");const I=Symbol("kIndex");const B=Symbol("kWeight");const p=Symbol("kMaxWeightPerServer");const y=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new u(e,t)}class BalancedPool extends n{constructor(e=[],{factory:t=defaultFactory,...A}={}){super();this[d]=A;this[I]=-1;this[Q]=0;this[p]=this[d].maxWeightPerServer||100;this[y]=this[d].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new r("factory must be a function.")}this[h]=A.interceptors&&A.interceptors.BalancedPool&&Array.isArray(A.interceptors.BalancedPool)?A.interceptors.BalancedPool:[];this[f]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=E(e).origin;if(this[i].find((e=>e[g].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const A=this[f](t,Object.assign({},this[d]));this[a](A);A.on("connect",(()=>{A[B]=Math.min(this[p],A[B]+this[y])}));A.on("connectionError",(()=>{A[B]=Math.max(1,A[B]-this[y]);this._updateBalancedPoolStats()}));A.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){A[B]=Math.max(1,A[B]-this[y]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[B]=this[p]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[C]=this[i].map((e=>e[B])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=E(e).origin;const A=this[i].find((e=>e[g].origin===t&&e.closed!==true&&e.destroyed!==true));if(A){this[c](A)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[g].origin))}[l](){if(this[i].length===0){throw new s}const e=this[i].find((e=>!e[o]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[o])).reduce(((e,t)=>e&&t),true);if(t){return}let A=0;let r=this[i].findIndex((e=>!e[o]));while(A++this[i][r][B]&&!e[o]){r=this[I]}if(this[I]===0){this[Q]=this[Q]-this[C];if(this[Q]<=0){this[Q]=this[p]}}if(e[B]>=this[Q]&&!e[o]){return e}}this[Q]=this[i][r][B];this[I]=r;return this[i][r]}}e.exports=BalancedPool},479:(e,t,A)=>{"use strict";const{kConstruct:s}=A(296);const{urlEquals:r,fieldValues:n}=A(3993);const{kEnumerableProperty:i,isDisturbed:o}=A(3440);const{kHeadersList:a}=A(6443);const{webidl:c}=A(4222);const{Response:l,cloneResponse:u}=A(8676);const{Request:g}=A(5194);const{kState:h,kHeaders:E,kGuard:f,kRealm:d}=A(9710);const{fetching:C}=A(2315);const{urlIsHttpHttpsScheme:Q,createDeferredPromise:I,readAllBytes:B}=A(5523);const p=A(2613);const{getGlobalDispatcher:y}=A(2581);class Cache{#e;constructor(){if(arguments[0]!==s){c.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);const A=await this.matchAll(e,t);if(A.length===0){return}return A[0]}async matchAll(e=undefined,t={}){c.brandCheck(this,Cache);if(e!==undefined)e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);let A=null;if(e!==undefined){if(e instanceof g){A=e[h];if(A.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){A=new g(e)[h]}}const s=[];if(e===undefined){for(const e of this.#e){s.push(e[1])}}else{const e=this.#t(A,t);for(const t of e){s.push(t[1])}}const r=[];for(const e of s){const t=new l(e.body?.source??null);const A=t[h].body;t[h]=e;t[h].body=A;t[E][a]=e.headersList;t[E][f]="immutable";r.push(t)}return Object.freeze(r)}async add(e){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=c.converters.RequestInfo(e);const t=[e];const A=this.addAll(t);return await A}async addAll(e){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=c.converters["sequence"](e);const t=[];const A=[];for(const t of e){if(typeof t==="string"){continue}const e=t[h];if(!Q(e.url)||e.method!=="GET"){throw c.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const s=[];for(const r of e){const e=new g(r)[h];if(!Q(e.url)){throw c.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";A.push(e);const i=I();s.push(C({request:e,dispatcher:y(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(c.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=n(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(c.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of s){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const r=Promise.all(t);const i=await r;const o=[];let a=0;for(const e of i){const t={type:"put",request:A[a],response:e};o.push(t);a++}const l=I();let u=null;try{this.#A(o)}catch(e){u=e}queueMicrotask((()=>{if(u===null){l.resolve(undefined)}else{l.reject(u)}}));return l.promise}async put(e,t){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=c.converters.RequestInfo(e);t=c.converters.Response(t);let A=null;if(e instanceof g){A=e[h]}else{A=new g(e)[h]}if(!Q(A.url)||A.method!=="GET"){throw c.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const s=t[h];if(s.status===206){throw c.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(s.headersList.contains("vary")){const e=n(s.headersList.get("vary"));for(const t of e){if(t==="*"){throw c.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(s.body&&(o(s.body.stream)||s.body.stream.locked)){throw c.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const r=u(s);const i=I();if(s.body!=null){const e=s.body.stream;const t=e.getReader();B(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const a=[];const l={type:"put",request:A,response:r};a.push(l);const E=await i.promise;if(r.body!=null){r.body.source=E}const f=I();let d=null;try{this.#A(a)}catch(e){d=e}queueMicrotask((()=>{if(d===null){f.resolve()}else{f.reject(d)}}));return f.promise}async delete(e,t={}){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);let A=null;if(e instanceof g){A=e[h];if(A.method!=="GET"&&!t.ignoreMethod){return false}}else{p(typeof e==="string");A=new g(e)[h]}const s=[];const r={type:"delete",request:A,options:t};s.push(r);const n=I();let i=null;let o;try{o=this.#A(s)}catch(e){i=e}queueMicrotask((()=>{if(i===null){n.resolve(!!o?.length)}else{n.reject(i)}}));return n.promise}async keys(e=undefined,t={}){c.brandCheck(this,Cache);if(e!==undefined)e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);let A=null;if(e!==undefined){if(e instanceof g){A=e[h];if(A.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){A=new g(e)[h]}}const s=I();const r=[];if(e===undefined){for(const e of this.#e){r.push(e[0])}}else{const e=this.#t(A,t);for(const t of e){r.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of r){const A=new g("https://a");A[h]=t;A[E][a]=t.headersList;A[E][f]="immutable";A[d]=t.client;e.push(A)}s.resolve(Object.freeze(e))}));return s.promise}#A(e){const t=this.#e;const A=[...t];const s=[];const r=[];try{for(const A of e){if(A.type!=="delete"&&A.type!=="put"){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(A.type==="delete"&&A.response!=null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(A.request,A.options,s).length){throw new DOMException("???","InvalidStateError")}let e;if(A.type==="delete"){e=this.#t(A.request,A.options);if(e.length===0){return[]}for(const A of e){const e=t.indexOf(A);p(e!==-1);t.splice(e,1)}}else if(A.type==="put"){if(A.response==null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const r=A.request;if(!Q(r.url)){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(r.method!=="GET"){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(A.options!=null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(A.request);for(const A of e){const e=t.indexOf(A);p(e!==-1);t.splice(e,1)}t.push([A.request,A.response]);s.push([A.request,A.response])}r.push([A.request,A.response])}return r}catch(e){this.#e.length=0;this.#e=A;throw e}}#t(e,t,A){const s=[];const r=A??this.#e;for(const A of r){const[r,n]=A;if(this.#s(e,r,n,t)){s.push(A)}}return s}#s(e,t,A=null,s){const i=new URL(e.url);const o=new URL(t.url);if(s?.ignoreSearch){o.search="";i.search=""}if(!r(i,o,true)){return false}if(A==null||s?.ignoreVary||!A.headersList.contains("vary")){return true}const a=n(A.headersList.get("vary"));for(const A of a){if(A==="*"){return false}const s=t.headersList.get(A);const r=e.headersList.get(A);if(s!==r){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const m=[{key:"ignoreSearch",converter:c.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:c.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:c.converters.boolean,defaultValue:false}];c.converters.CacheQueryOptions=c.dictionaryConverter(m);c.converters.MultiCacheQueryOptions=c.dictionaryConverter([...m,{key:"cacheName",converter:c.converters.DOMString}]);c.converters.Response=c.interfaceConverter(l);c.converters["sequence"]=c.sequenceConverter(c.converters.RequestInfo);e.exports={Cache:Cache}},4738:(e,t,A)=>{"use strict";const{kConstruct:s}=A(296);const{Cache:r}=A(479);const{webidl:n}=A(4222);const{kEnumerableProperty:i}=A(3440);class CacheStorage{#r=new Map;constructor(){if(arguments[0]!==s){n.illegalConstructor()}}async match(e,t={}){n.brandCheck(this,CacheStorage);n.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=n.converters.RequestInfo(e);t=n.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#r.has(t.cacheName)){const A=this.#r.get(t.cacheName);const n=new r(s,A);return await n.match(e,t)}}else{for(const A of this.#r.values()){const n=new r(s,A);const i=await n.match(e,t);if(i!==undefined){return i}}}}async has(e){n.brandCheck(this,CacheStorage);n.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=n.converters.DOMString(e);return this.#r.has(e)}async open(e){n.brandCheck(this,CacheStorage);n.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=n.converters.DOMString(e);if(this.#r.has(e)){const t=this.#r.get(e);return new r(s,t)}const t=[];this.#r.set(e,t);return new r(s,t)}async delete(e){n.brandCheck(this,CacheStorage);n.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=n.converters.DOMString(e);return this.#r.delete(e)}async keys(){n.brandCheck(this,CacheStorage);const e=this.#r.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},296:(e,t,A)=>{"use strict";e.exports={kConstruct:A(6443).kConstruct}},3993:(e,t,A)=>{"use strict";const s=A(2613);const{URLSerializer:r}=A(4322);const{isValidHeaderName:n}=A(5523);function urlEquals(e,t,A=false){const s=r(e,A);const n=r(t,A);return s===n}function fieldValues(e){s(e!==null);const t=[];for(let A of e.split(",")){A=A.trim();if(!A.length){continue}else if(!n(A)){continue}t.push(A)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},6197:(e,t,A)=>{"use strict";const s=A(2613);const r=A(9278);const n=A(8611);const{pipeline:i}=A(2203);const o=A(3440);const a=A(8804);const c=A(4655);const l=A(1);const{RequestContentLengthMismatchError:u,ResponseContentLengthMismatchError:g,InvalidArgumentError:h,RequestAbortedError:E,HeadersTimeoutError:f,HeadersOverflowError:d,SocketError:C,InformationalError:Q,BodyTimeoutError:I,HTTPParserError:B,ResponseExceededMaxSizeError:p,ClientDestroyedError:y}=A(8707);const m=A(9136);const{kUrl:w,kReset:b,kServerName:R,kClient:k,kBusy:S,kParser:D,kConnect:N,kBlocking:F,kResuming:v,kRunning:L,kPending:M,kSize:U,kWriting:T,kQueue:O,kConnected:Y,kConnecting:x,kNeedDrain:G,kNoRef:J,kKeepAliveDefaultTimeout:H,kHostHeader:P,kPendingIdx:V,kRunningIdx:_,kError:q,kPipelining:W,kSocket:j,kKeepAliveTimeoutValue:K,kMaxHeadersSize:X,kKeepAliveMaxTimeout:$,kKeepAliveTimeoutThreshold:Z,kHeadersTimeout:z,kBodyTimeout:ee,kStrictContentLength:te,kConnector:Ae,kMaxRedirections:se,kMaxRequests:re,kCounter:ne,kClose:ie,kDestroy:oe,kDispatch:ae,kInterceptors:ce,kLocalAddress:le,kMaxResponseSize:ue,kHTTPConnVersion:ge,kHost:he,kHTTP2Session:Ee,kHTTP2SessionState:fe,kHTTP2BuildRequest:de,kHTTP2CopyHeaders:Ce,kHTTP1BuildRequest:Qe}=A(6443);let Ie;try{Ie=A(5675)}catch{Ie={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Be,HTTP2_HEADER_METHOD:pe,HTTP2_HEADER_PATH:ye,HTTP2_HEADER_SCHEME:me,HTTP2_HEADER_CONTENT_LENGTH:we,HTTP2_HEADER_EXPECT:be,HTTP2_HEADER_STATUS:Re}}=Ie;let ke=false;const Se=Buffer[Symbol.species];const De=Symbol("kClosedResolve");const Ne={};try{const e=A(1637);Ne.sendHeaders=e.channel("undici:client:sendHeaders");Ne.beforeConnect=e.channel("undici:client:beforeConnect");Ne.connectError=e.channel("undici:client:connectError");Ne.connected=e.channel("undici:client:connected")}catch{Ne.sendHeaders={hasSubscribers:false};Ne.beforeConnect={hasSubscribers:false};Ne.connectError={hasSubscribers:false};Ne.connected={hasSubscribers:false}}class Client extends l{constructor(e,{interceptors:t,maxHeaderSize:A,headersTimeout:s,socketTimeout:i,requestTimeout:a,connectTimeout:c,bodyTimeout:l,idleTimeout:u,keepAlive:g,keepAliveTimeout:E,maxKeepAliveTimeout:f,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:C,socketPath:Q,pipelining:I,tls:B,strictContentLength:p,maxCachedSessions:y,maxRedirections:b,connect:k,maxRequestsPerClient:S,localAddress:D,maxResponseSize:N,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:L,allowH2:M,maxConcurrentStreams:U}={}){super();if(g!==undefined){throw new h("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new h("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(a!==undefined){throw new h("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(u!==undefined){throw new h("unsupported idleTimeout, use keepAliveTimeout instead")}if(f!==undefined){throw new h("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(A!=null&&!Number.isFinite(A)){throw new h("invalid maxHeaderSize")}if(Q!=null&&typeof Q!=="string"){throw new h("invalid socketPath")}if(c!=null&&(!Number.isFinite(c)||c<0)){throw new h("invalid connectTimeout")}if(E!=null&&(!Number.isFinite(E)||E<=0)){throw new h("invalid keepAliveTimeout")}if(d!=null&&(!Number.isFinite(d)||d<=0)){throw new h("invalid keepAliveMaxTimeout")}if(C!=null&&!Number.isFinite(C)){throw new h("invalid keepAliveTimeoutThreshold")}if(s!=null&&(!Number.isInteger(s)||s<0)){throw new h("headersTimeout must be a positive integer or zero")}if(l!=null&&(!Number.isInteger(l)||l<0)){throw new h("bodyTimeout must be a positive integer or zero")}if(k!=null&&typeof k!=="function"&&typeof k!=="object"){throw new h("connect must be a function or an object")}if(b!=null&&(!Number.isInteger(b)||b<0)){throw new h("maxRedirections must be a positive number")}if(S!=null&&(!Number.isInteger(S)||S<0)){throw new h("maxRequestsPerClient must be a positive number")}if(D!=null&&(typeof D!=="string"||r.isIP(D)===0)){throw new h("localAddress must be valid string IP address")}if(N!=null&&(!Number.isInteger(N)||N<-1)){throw new h("maxResponseSize must be a positive number")}if(L!=null&&(!Number.isInteger(L)||L<-1)){throw new h("autoSelectFamilyAttemptTimeout must be a positive number")}if(M!=null&&typeof M!=="boolean"){throw new h("allowH2 must be a valid boolean value")}if(U!=null&&(typeof U!=="number"||U<1)){throw new h("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof k!=="function"){k=m({...B,maxCachedSessions:y,allowH2:M,socketPath:Q,timeout:c,...o.nodeHasAutoSelectFamily&&F?{autoSelectFamily:F,autoSelectFamilyAttemptTimeout:L}:undefined,...k})}this[ce]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[ve({maxRedirections:b})];this[w]=o.parseOrigin(e);this[Ae]=k;this[j]=null;this[W]=I!=null?I:1;this[X]=A||n.maxHeaderSize;this[H]=E==null?4e3:E;this[$]=d==null?6e5:d;this[Z]=C==null?1e3:C;this[K]=this[H];this[R]=null;this[le]=D!=null?D:null;this[v]=0;this[G]=0;this[P]=`host: ${this[w].hostname}${this[w].port?`:${this[w].port}`:""}\r\n`;this[ee]=l!=null?l:3e5;this[z]=s!=null?s:3e5;this[te]=p==null?true:p;this[se]=b;this[re]=S;this[De]=null;this[ue]=N>-1?N:-1;this[ge]="h1";this[Ee]=null;this[fe]=!M?null:{openStreams:0,maxConcurrentStreams:U!=null?U:100};this[he]=`${this[w].hostname}${this[w].port?`:${this[w].port}`:""}`;this[O]=[];this[_]=0;this[V]=0}get pipelining(){return this[W]}set pipelining(e){this[W]=e;resume(this,true)}get[M](){return this[O].length-this[V]}get[L](){return this[V]-this[_]}get[U](){return this[O].length-this[_]}get[Y](){return!!this[j]&&!this[x]&&!this[j].destroyed}get[S](){const e=this[j];return e&&(e[b]||e[T]||e[F])||this[U]>=(this[W]||1)||this[M]>0}[N](e){connect(this);this.once("connect",e)}[ae](e,t){const A=e.origin||this[w].origin;const s=this[ge]==="h2"?c[de](A,e,t):c[Qe](A,e,t);this[O].push(s);if(this[v]){}else if(o.bodyLength(s.body)==null&&o.isIterable(s.body)){this[v]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[v]&&this[G]!==2&&this[S]){this[G]=2}return this[G]<2}async[ie](){return new Promise((e=>{if(!this[U]){e(null)}else{this[De]=e}}))}async[oe](e){return new Promise((t=>{const A=this[O].splice(this[V]);for(let t=0;t{if(this[De]){this[De]();this[De]=null}t()};if(this[Ee]!=null){o.destroy(this[Ee],e);this[Ee]=null;this[fe]=null}if(!this[j]){queueMicrotask(callback)}else{o.destroy(this[j].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){s(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[j][q]=e;onError(this[k],e)}function onHttp2FrameError(e,t,A){const s=new Q(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(A===0){this[j][q]=s;onError(this[k],s)}}function onHttp2SessionEnd(){o.destroy(this,new C("other side closed"));o.destroy(this[j],new C("other side closed"))}function onHTTP2GoAway(e){const t=this[k];const A=new Q(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[j]=null;t[Ee]=null;if(t.destroyed){s(this[M]===0);const e=t[O].splice(t[_]);for(let t=0;t0){const e=t[O][t[_]];t[O][t[_]++]=null;errorRequest(t,e,A)}t[V]=t[_];s(t[L]===0);t.emit("disconnect",t[w],[t],A);resume(t)}const Fe=A(2824);const ve=A(4415);const Le=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?A(3870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(A(3434),"base64"))}catch(s){t=await WebAssembly.compile(Buffer.from(e||A(3870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,A)=>0,wasm_on_status:(e,t,A)=>{s.strictEqual(Te.ptr,e);const r=t-xe+Oe.byteOffset;return Te.onStatus(new Se(Oe.buffer,r,A))||0},wasm_on_message_begin:e=>{s.strictEqual(Te.ptr,e);return Te.onMessageBegin()||0},wasm_on_header_field:(e,t,A)=>{s.strictEqual(Te.ptr,e);const r=t-xe+Oe.byteOffset;return Te.onHeaderField(new Se(Oe.buffer,r,A))||0},wasm_on_header_value:(e,t,A)=>{s.strictEqual(Te.ptr,e);const r=t-xe+Oe.byteOffset;return Te.onHeaderValue(new Se(Oe.buffer,r,A))||0},wasm_on_headers_complete:(e,t,A,r)=>{s.strictEqual(Te.ptr,e);return Te.onHeadersComplete(t,Boolean(A),Boolean(r))||0},wasm_on_body:(e,t,A)=>{s.strictEqual(Te.ptr,e);const r=t-xe+Oe.byteOffset;return Te.onBody(new Se(Oe.buffer,r,A))||0},wasm_on_message_complete:e=>{s.strictEqual(Te.ptr,e);return Te.onMessageComplete()||0}}})}let Me=null;let Ue=lazyllhttp();Ue.catch();let Te=null;let Oe=null;let Ye=0;let xe=null;const Ge=1;const Je=2;const He=3;class Parser{constructor(e,t,{exports:A}){s(Number.isFinite(e[X])&&e[X]>0);this.llhttp=A;this.ptr=this.llhttp.llhttp_alloc(Fe.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[X];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[ue]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){a.clearTimeout(this.timeout);if(e){this.timeout=a.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}s(this.ptr!=null);s(Te==null);this.llhttp.llhttp_resume(this.ptr);s(this.timeoutType===Je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||Le);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){s(this.ptr!=null);s(Te==null);s(!this.paused);const{socket:t,llhttp:A}=this;if(e.length>Ye){if(xe){A.free(xe)}Ye=Math.ceil(e.length/4096)*4096;xe=A.malloc(Ye)}new Uint8Array(A.memory.buffer,xe,Ye).set(e);try{let s;try{Oe=e;Te=this;s=A.llhttp_execute(this.ptr,xe,e.length)}catch(e){throw e}finally{Te=null;Oe=null}const r=A.llhttp_get_error_pos(this.ptr)-xe;if(s===Fe.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(r))}else if(s===Fe.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(r))}else if(s!==Fe.ERROR.OK){const t=A.llhttp_get_error_reason(this.ptr);let n="";if(t){const e=new Uint8Array(A.memory.buffer,t).indexOf(0);n="Response does not match the HTTP/1.1 protocol ("+Buffer.from(A.memory.buffer,t,e).toString()+")"}throw new B(n,Fe.ERROR[s],e.slice(r))}}catch(e){o.destroy(t,e)}}destroy(){s(this.ptr!=null);s(Te==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;a.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const A=t[O][t[_]];if(!A){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const A=this.headers[t-2];if(A.length===10&&A.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(A.length===10&&A.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(A.length===14&&A.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){o.destroy(this.socket,new d)}}onUpgrade(e){const{upgrade:t,client:A,socket:r,headers:n,statusCode:i}=this;s(t);const a=A[O][A[_]];s(a);s(!r.destroyed);s(r===A[j]);s(!this.paused);s(a.upgrade||a.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;s(this.headers.length%2===0);this.headers=[];this.headersSize=0;r.unshift(e);r[D].destroy();r[D]=null;r[k]=null;r[q]=null;r.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);A[j]=null;A[O][A[_]++]=null;A.emit("disconnect",A[w],[A],new Q("upgrade"));try{a.onUpgrade(i,n,r)}catch(e){o.destroy(r,e)}resume(A)}onHeadersComplete(e,t,A){const{client:r,socket:n,headers:i,statusText:a}=this;if(n.destroyed){return-1}const c=r[O][r[_]];if(!c){return-1}s(!this.upgrade);s(this.statusCode<200);if(e===100){o.destroy(n,new C("bad response",o.getSocketInfo(n)));return-1}if(t&&!c.upgrade){o.destroy(n,new C("bad upgrade",o.getSocketInfo(n)));return-1}s.strictEqual(this.timeoutType,Ge);this.statusCode=e;this.shouldKeepAlive=A||c.method==="HEAD"&&!n[b]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=c.bodyTimeout!=null?c.bodyTimeout:r[ee];this.setTimeout(e,Je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(c.method==="CONNECT"){s(r[L]===1);this.upgrade=true;return 2}if(t){s(r[L]===1);this.upgrade=true;return 2}s(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&r[W]){const e=this.keepAlive?o.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-r[Z],r[$]);if(t<=0){n[b]=true}else{r[K]=t}}else{r[K]=r[H]}}else{n[b]=true}const l=c.onHeaders(e,i,this.resume,a)===false;if(c.aborted){return-1}if(c.method==="HEAD"){return 1}if(e<200){return 1}if(n[F]){n[F]=false;resume(r)}return l?Fe.ERROR.PAUSED:0}onBody(e){const{client:t,socket:A,statusCode:r,maxResponseSize:n}=this;if(A.destroyed){return-1}const i=t[O][t[_]];s(i);s.strictEqual(this.timeoutType,Je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}s(r>=200);if(n>-1&&this.bytesRead+e.length>n){o.destroy(A,new p);return-1}this.bytesRead+=e.length;if(i.onData(e)===false){return Fe.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:A,upgrade:r,headers:n,contentLength:i,bytesRead:a,shouldKeepAlive:c}=this;if(t.destroyed&&(!A||c)){return-1}if(r){return}const l=e[O][e[_]];s(l);s(A>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";s(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(A<200){return}if(l.method!=="HEAD"&&i&&a!==parseInt(i,10)){o.destroy(t,new g);return-1}l.onComplete(n);e[O][e[_]++]=null;if(t[T]){s.strictEqual(e[L],0);o.destroy(t,new Q("reset"));return Fe.ERROR.PAUSED}else if(!c){o.destroy(t,new Q("reset"));return Fe.ERROR.PAUSED}else if(t[b]&&e[L]===0){o.destroy(t,new Q("reset"));return Fe.ERROR.PAUSED}else if(e[W]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:A,client:r}=e;if(A===Ge){if(!t[T]||t.writableNeedDrain||r[L]>1){s(!e.paused,"cannot be paused while waiting for headers");o.destroy(t,new f)}}else if(A===Je){if(!e.paused){o.destroy(t,new I)}}else if(A===He){s(r[L]===0&&r[K]);o.destroy(t,new Q("socket idle timeout"))}}function onSocketReadable(){const{[D]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[k]:t,[D]:A}=this;s(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[ge]!=="h2"){if(e.code==="ECONNRESET"&&A.statusCode&&!A.shouldKeepAlive){A.onMessageComplete();return}}this[q]=e;onError(this[k],e)}function onError(e,t){if(e[L]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){s(e[V]===e[_]);const A=e[O].splice(e[_]);for(let s=0;s0&&A.code!=="UND_ERR_INFO"){const t=e[O][e[_]];e[O][e[_]++]=null;errorRequest(e,t,A)}e[V]=e[_];s(e[L]===0);e.emit("disconnect",e[w],[e],A);resume(e)}async function connect(e){s(!e[x]);s(!e[j]);let{host:t,hostname:A,protocol:n,port:i}=e[w];if(A[0]==="["){const e=A.indexOf("]");s(e!==-1);const t=A.substring(1,e);s(r.isIP(t));A=t}e[x]=true;if(Ne.beforeConnect.hasSubscribers){Ne.beforeConnect.publish({connectParams:{host:t,hostname:A,protocol:n,port:i,servername:e[R],localAddress:e[le]},connector:e[Ae]})}try{const r=await new Promise(((s,r)=>{e[Ae]({host:t,hostname:A,protocol:n,port:i,servername:e[R],localAddress:e[le]},((e,t)=>{if(e){r(e)}else{s(t)}}))}));if(e.destroyed){o.destroy(r.on("error",(()=>{})),new y);return}e[x]=false;s(r);const a=r.alpnProtocol==="h2";if(a){if(!ke){ke=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Ie.connect(e[w],{createConnection:()=>r,peerMaxConcurrentStreams:e[fe].maxConcurrentStreams});e[ge]="h2";t[k]=e;t[j]=r;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[Ee]=t;r[Ee]=t}else{if(!Me){Me=await Ue;Ue=null}r[J]=false;r[T]=false;r[b]=false;r[F]=false;r[D]=new Parser(e,r,Me)}r[ne]=0;r[re]=e[re];r[k]=e;r[q]=null;r.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[j]=r;if(Ne.connected.hasSubscribers){Ne.connected.publish({connectParams:{host:t,hostname:A,protocol:n,port:i,servername:e[R],localAddress:e[le]},connector:e[Ae],socket:r})}e.emit("connect",e[w],[e])}catch(r){if(e.destroyed){return}e[x]=false;if(Ne.connectError.hasSubscribers){Ne.connectError.publish({connectParams:{host:t,hostname:A,protocol:n,port:i,servername:e[R],localAddress:e[le]},connector:e[Ae],error:r})}if(r.code==="ERR_TLS_CERT_ALTNAME_INVALID"){s(e[L]===0);while(e[M]>0&&e[O][e[V]].servername===e[R]){const t=e[O][e[V]++];errorRequest(e,t,r)}}else{onError(e,r)}e.emit("connectionError",e[w],[e],r)}resume(e)}function emitDrain(e){e[G]=0;e.emit("drain",e[w],[e])}function resume(e,t){if(e[v]===2){return}e[v]=2;_resume(e,t);e[v]=0;if(e[_]>256){e[O].splice(0,e[_]);e[V]-=e[_];e[_]=0}}function _resume(e,t){while(true){if(e.destroyed){s(e[M]===0);return}if(e[De]&&!e[U]){e[De]();e[De]=null;return}const A=e[j];if(A&&!A.destroyed&&A.alpnProtocol!=="h2"){if(e[U]===0){if(!A[J]&&A.unref){A.unref();A[J]=true}}else if(A[J]&&A.ref){A.ref();A[J]=false}if(e[U]===0){if(A[D].timeoutType!==He){A[D].setTimeout(e[K],He)}}else if(e[L]>0&&A[D].statusCode<200){if(A[D].timeoutType!==Ge){const t=e[O][e[_]];const s=t.headersTimeout!=null?t.headersTimeout:e[z];A[D].setTimeout(s,Ge)}}}if(e[S]){e[G]=2}else if(e[G]===2){if(t){e[G]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[M]===0){return}if(e[L]>=(e[W]||1)){return}const r=e[O][e[V]];if(e[w].protocol==="https:"&&e[R]!==r.servername){if(e[L]>0){return}e[R]=r.servername;if(A&&A.servername!==r.servername){o.destroy(A,new Q("servername changed"));return}}if(e[x]){return}if(!A&&!e[Ee]){connect(e);return}if(A.destroyed||A[T]||A[b]||A[F]){return}if(e[L]>0&&!r.idempotent){return}if(e[L]>0&&(r.upgrade||r.method==="CONNECT")){return}if(e[L]>0&&o.bodyLength(r.body)!==0&&(o.isStream(r.body)||o.isAsyncIterable(r.body))){return}if(!r.aborted&&write(e,r)){e[V]++}else{e[O].splice(e[V],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[ge]==="h2"){writeH2(e,e[Ee],t);return}const{body:A,method:r,path:n,host:i,upgrade:a,headers:c,blocking:l,reset:g}=t;const h=r==="PUT"||r==="POST"||r==="PATCH";if(A&&typeof A.read==="function"){A.read(0)}const f=o.bodyLength(A);let d=f;if(d===null){d=t.contentLength}if(d===0&&!h){d=null}if(shouldSendContentLength(r)&&d>0&&t.contentLength!==null&&t.contentLength!==d){if(e[te]){errorRequest(e,t,new u);return false}process.emitWarning(new u)}const C=e[j];try{t.onConnect((A=>{if(t.aborted||t.completed){return}errorRequest(e,t,A||new E);o.destroy(C,new Q("aborted"))}))}catch(A){errorRequest(e,t,A)}if(t.aborted){return false}if(r==="HEAD"){C[b]=true}if(a||r==="CONNECT"){C[b]=true}if(g!=null){C[b]=g}if(e[re]&&C[ne]++>=e[re]){C[b]=true}if(l){C[F]=true}let I=`${r} ${n} HTTP/1.1\r\n`;if(typeof i==="string"){I+=`host: ${i}\r\n`}else{I+=e[P]}if(a){I+=`connection: upgrade\r\nupgrade: ${a}\r\n`}else if(e[W]&&!C[b]){I+="connection: keep-alive\r\n"}else{I+="connection: close\r\n"}if(c){I+=c}if(Ne.sendHeaders.hasSubscribers){Ne.sendHeaders.publish({request:t,headers:I,socket:C})}if(!A||f===0){if(d===0){C.write(`${I}content-length: 0\r\n\r\n`,"latin1")}else{s(d===null,"no body must not have content length");C.write(`${I}\r\n`,"latin1")}t.onRequestSent()}else if(o.isBuffer(A)){s(d===A.byteLength,"buffer body must have content length");C.cork();C.write(`${I}content-length: ${d}\r\n\r\n`,"latin1");C.write(A);C.uncork();t.onBodySent(A);t.onRequestSent();if(!h){C[b]=true}}else if(o.isBlobLike(A)){if(typeof A.stream==="function"){writeIterable({body:A.stream(),client:e,request:t,socket:C,contentLength:d,header:I,expectsPayload:h})}else{writeBlob({body:A,client:e,request:t,socket:C,contentLength:d,header:I,expectsPayload:h})}}else if(o.isStream(A)){writeStream({body:A,client:e,request:t,socket:C,contentLength:d,header:I,expectsPayload:h})}else if(o.isIterable(A)){writeIterable({body:A,client:e,request:t,socket:C,contentLength:d,header:I,expectsPayload:h})}else{s(false)}return true}function writeH2(e,t,A){const{body:r,method:n,path:i,host:a,upgrade:l,expectContinue:g,signal:h,headers:f}=A;let d;if(typeof f==="string")d=c[Ce](f.trim());else d=f;if(l){errorRequest(e,A,new Error("Upgrade not supported for H2"));return false}try{A.onConnect((t=>{if(A.aborted||A.completed){return}errorRequest(e,A,t||new E)}))}catch(t){errorRequest(e,A,t)}if(A.aborted){return false}let C;const I=e[fe];d[Be]=a||e[he];d[pe]=n;if(n==="CONNECT"){t.ref();C=t.request(d,{endStream:false,signal:h});if(C.id&&!C.pending){A.onUpgrade(null,null,C);++I.openStreams}else{C.once("ready",(()=>{A.onUpgrade(null,null,C);++I.openStreams}))}C.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0)t.unref()}));return true}d[ye]=i;d[me]="https";const B=n==="PUT"||n==="POST"||n==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}let p=o.bodyLength(r);if(p==null){p=A.contentLength}if(p===0||!B){p=null}if(shouldSendContentLength(n)&&p>0&&A.contentLength!=null&&A.contentLength!==p){if(e[te]){errorRequest(e,A,new u);return false}process.emitWarning(new u)}if(p!=null){s(r,"no body must not have content length");d[we]=`${p}`}t.ref();const y=n==="GET"||n==="HEAD";if(g){d[be]="100-continue";C=t.request(d,{endStream:y,signal:h});C.once("continue",writeBodyH2)}else{C=t.request(d,{endStream:y,signal:h});writeBodyH2()}++I.openStreams;C.once("response",(e=>{const{[Re]:t,...s}=e;if(A.onHeaders(Number(t),s,C.resume.bind(C),"")===false){C.pause()}}));C.once("end",(()=>{A.onComplete([])}));C.on("data",(e=>{if(A.onData(e)===false){C.pause()}}));C.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0){t.unref()}}));C.once("error",(function(t){if(e[Ee]&&!e[Ee].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;o.destroy(C,t)}}));C.once("frameError",((t,s)=>{const r=new Q(`HTTP/2: "frameError" received - type ${t}, code ${s}`);errorRequest(e,A,r);if(e[Ee]&&!e[Ee].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;o.destroy(C,r)}}));return true;function writeBodyH2(){if(!r){A.onRequestSent()}else if(o.isBuffer(r)){s(p===r.byteLength,"buffer body must have content length");C.cork();C.write(r);C.uncork();C.end();A.onBodySent(r);A.onRequestSent()}else if(o.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({client:e,request:A,contentLength:p,h2stream:C,expectsPayload:B,body:r.stream(),socket:e[j],header:""})}else{writeBlob({body:r,client:e,request:A,contentLength:p,expectsPayload:B,h2stream:C,header:"",socket:e[j]})}}else if(o.isStream(r)){writeStream({body:r,client:e,request:A,contentLength:p,expectsPayload:B,socket:e[j],h2stream:C,header:""})}else if(o.isIterable(r)){writeIterable({body:r,client:e,request:A,contentLength:p,expectsPayload:B,header:"",h2stream:C,socket:e[j]})}else{s(false)}}}function writeStream({h2stream:e,body:t,client:A,request:r,socket:n,contentLength:a,header:c,expectsPayload:l}){s(a!==0||A[L]===0,"stream body cannot be pipelined");if(A[ge]==="h2"){const h=i(t,e,(A=>{if(A){o.destroy(t,A);o.destroy(e,A)}else{r.onRequestSent()}}));h.on("data",onPipeData);h.once("end",(()=>{h.removeListener("data",onPipeData);o.destroy(h)}));function onPipeData(e){r.onBodySent(e)}return}let u=false;const g=new AsyncWriter({socket:n,request:r,contentLength:a,client:A,expectsPayload:l,header:c});const onData=function(e){if(u){return}try{if(!g.write(e)&&this.pause){this.pause()}}catch(e){o.destroy(this,e)}};const onDrain=function(){if(u){return}if(t.resume){t.resume()}};const onAbort=function(){if(u){return}const e=new E;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(u){return}u=true;s(n.destroyed||n[T]&&A[L]<=1);n.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{g.end()}catch(t){e=t}}g.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){o.destroy(t,e)}else{o.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}n.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:A,request:r,socket:n,contentLength:i,header:a,expectsPayload:c}){s(i===t.size,"blob body must have content length");const l=A[ge]==="h2";try{if(i!=null&&i!==t.size){throw new u}const s=Buffer.from(await t.arrayBuffer());if(l){e.cork();e.write(s);e.uncork()}else{n.cork();n.write(`${a}content-length: ${i}\r\n\r\n`,"latin1");n.write(s);n.uncork()}r.onBodySent(s);r.onRequestSent();if(!c){n[b]=true}resume(A)}catch(t){o.destroy(l?e:n,t)}}async function writeIterable({h2stream:e,body:t,client:A,request:r,socket:n,contentLength:i,header:o,expectsPayload:a}){s(i!==0||A[L]===0,"iterator body cannot be pipelined");let c=null;function onDrain(){if(c){const e=c;c=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{s(c===null);if(n[q]){t(n[q])}else{c=e}}));if(A[ge]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const A of t){if(n[q]){throw n[q]}const t=e.write(A);r.onBodySent(A);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{r.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}n.on("close",onDrain).on("drain",onDrain);const l=new AsyncWriter({socket:n,request:r,contentLength:i,client:A,expectsPayload:a,header:o});try{for await(const e of t){if(n[q]){throw n[q]}if(!l.write(e)){await waitForDrain()}}l.end()}catch(e){l.destroy(e)}finally{n.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:A,client:s,expectsPayload:r,header:n}){this.socket=e;this.request=t;this.contentLength=A;this.client=s;this.bytesWritten=0;this.expectsPayload=r;this.header=n;e[T]=true}write(e){const{socket:t,request:A,contentLength:s,client:r,bytesWritten:n,expectsPayload:i,header:o}=this;if(t[q]){throw t[q]}if(t.destroyed){return false}const a=Buffer.byteLength(e);if(!a){return true}if(s!==null&&n+a>s){if(r[te]){throw new u}process.emitWarning(new u)}t.cork();if(n===0){if(!i){t[b]=true}if(s===null){t.write(`${o}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${o}content-length: ${s}\r\n\r\n`,"latin1")}}if(s===null){t.write(`\r\n${a.toString(16)}\r\n`,"latin1")}this.bytesWritten+=a;const c=t.write(e);t.uncork();A.onBodySent(e);if(!c){if(t[D].timeout&&t[D].timeoutType===Ge){if(t[D].timeout.refresh){t[D].timeout.refresh()}}}return c}end(){const{socket:e,contentLength:t,client:A,bytesWritten:s,expectsPayload:r,header:n,request:i}=this;i.onRequestSent();e[T]=false;if(e[q]){throw e[q]}if(e.destroyed){return}if(s===0){if(r){e.write(`${n}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${n}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&s!==t){if(A[te]){throw new u}else{process.emitWarning(new u)}}if(e[D].timeout&&e[D].timeoutType===Ge){if(e[D].timeout.refresh){e[D].timeout.refresh()}}resume(A)}destroy(e){const{socket:t,client:A}=this;t[T]=false;if(e){s(A[L]<=1,"pipeline should only contain this request");o.destroy(t,e)}}}function errorRequest(e,t,A){try{t.onError(A);s(t.aborted)}catch(A){e.emit("error",A)}}e.exports=Client},3194:(e,t,A)=>{"use strict";const{kConnected:s,kSize:r}=A(6443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[s]===0&&this.value[r]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[s]===0&&e[r]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},9237:e=>{"use strict";const t=1024;const A=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:A}},3168:(e,t,A)=>{"use strict";const{parseSetCookie:s}=A(8915);const{stringify:r}=A(3834);const{webidl:n}=A(4222);const{Headers:i}=A(6349);function getCookies(e){n.argumentLengthCheck(arguments,1,{header:"getCookies"});n.brandCheck(e,i,{strict:false});const t=e.get("cookie");const A={};if(!t){return A}for(const e of t.split(";")){const[t,...s]=e.split("=");A[t.trim()]=s.join("=")}return A}function deleteCookie(e,t,A){n.argumentLengthCheck(arguments,2,{header:"deleteCookie"});n.brandCheck(e,i,{strict:false});t=n.converters.DOMString(t);A=n.converters.DeleteCookieAttributes(A);setCookie(e,{name:t,value:"",expires:new Date(0),...A})}function getSetCookies(e){n.argumentLengthCheck(arguments,1,{header:"getSetCookies"});n.brandCheck(e,i,{strict:false});const t=e.getSetCookie();if(!t){return[]}return t.map((e=>s(e)))}function setCookie(e,t){n.argumentLengthCheck(arguments,2,{header:"setCookie"});n.brandCheck(e,i,{strict:false});t=n.converters.Cookie(t);const A=r(t);if(A){e.append("Set-Cookie",r(t))}}n.converters.DeleteCookieAttributes=n.dictionaryConverter([{converter:n.nullableConverter(n.converters.DOMString),key:"path",defaultValue:null},{converter:n.nullableConverter(n.converters.DOMString),key:"domain",defaultValue:null}]);n.converters.Cookie=n.dictionaryConverter([{converter:n.converters.DOMString,key:"name"},{converter:n.converters.DOMString,key:"value"},{converter:n.nullableConverter((e=>{if(typeof e==="number"){return n.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:n.nullableConverter(n.converters["long long"]),key:"maxAge",defaultValue:null},{converter:n.nullableConverter(n.converters.DOMString),key:"domain",defaultValue:null},{converter:n.nullableConverter(n.converters.DOMString),key:"path",defaultValue:null},{converter:n.nullableConverter(n.converters.boolean),key:"secure",defaultValue:null},{converter:n.nullableConverter(n.converters.boolean),key:"httpOnly",defaultValue:null},{converter:n.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:n.sequenceConverter(n.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,A)=>{"use strict";const{maxNameValuePairSize:s,maxAttributeValueSize:r}=A(9237);const{isCTLExcludingHtab:n}=A(3834);const{collectASequenceOfCodePointsFast:i}=A(4322);const o=A(2613);function parseSetCookie(e){if(n(e)){return null}let t="";let A="";let r="";let o="";if(e.includes(";")){const s={position:0};t=i(";",e,s);A=e.slice(s.position)}else{t=e}if(!t.includes("=")){o=t}else{const e={position:0};r=i("=",t,e);o=t.slice(e.position+1)}r=r.trim();o=o.trim();if(r.length+o.length>s){return null}return{name:r,value:o,...parseUnparsedAttributes(A)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}o(e[0]===";");e=e.slice(1);let A="";if(e.includes(";")){A=i(";",e,{position:0});e=e.slice(A.length)}else{A=e;e=""}let s="";let n="";if(A.includes("=")){const e={position:0};s=i("=",A,e);n=A.slice(e.position+1)}else{s=A}s=s.trim();n=n.trim();if(n.length>r){return parseUnparsedAttributes(e,t)}const a=s.toLowerCase();if(a==="expires"){const e=new Date(n);t.expires=e}else if(a==="max-age"){const A=n.charCodeAt(0);if((A<48||A>57)&&n[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(n)){return parseUnparsedAttributes(e,t)}const s=Number(n);t.maxAge=s}else if(a==="domain"){let e=n;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(a==="path"){let e="";if(n.length===0||n[0]!=="/"){e="/"}else{e=n}t.path=e}else if(a==="secure"){t.secure=true}else if(a==="httponly"){t.httpOnly=true}else if(a==="samesite"){let e="Default";const A=n.toLowerCase();if(A.includes("none")){e="None"}if(A.includes("strict")){e="Strict"}if(A.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${s}=${n}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:e=>{"use strict";function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const s=t[e.getUTCDay()];const r=e.getUTCDate().toString().padStart(2,"0");const n=A[e.getUTCMonth()];const i=e.getUTCFullYear();const o=e.getUTCHours().toString().padStart(2,"0");const a=e.getUTCMinutes().toString().padStart(2,"0");const c=e.getUTCSeconds().toString().padStart(2,"0");return`${s}, ${r} ${n} ${i} ${o}:${a}:${c} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const A of e.unparsed){if(!A.includes("=")){throw new Error("Invalid unparsed")}const[e,...s]=A.split("=");t.push(`${e.trim()}=${s.join("=")}`)}return t.join("; ")}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},9136:(e,t,A)=>{"use strict";const s=A(9278);const r=A(2613);const n=A(3440);const{InvalidArgumentError:i,ConnectTimeoutError:o}=A(8707);let a;let c;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){c=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:o,timeout:l,...u}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const g={path:o,...u};const h=new c(t==null?100:t);l=l==null?1e4:l;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:o,port:c,servername:u,localAddress:E,httpSocket:f},d){let C;if(o==="https:"){if(!a){a=A(4756)}u=u||g.servername||n.getServerName(i)||null;const s=u||t;const o=h.get(s)||null;r(s);C=a.connect({highWaterMark:16384,...g,servername:u,session:o,localAddress:E,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:f,port:c||443,host:t});C.on("session",(function(e){h.set(s,e)}))}else{r(!f,"httpSocket can only be sent on TLS update");C=s.connect({highWaterMark:64*1024,...g,localAddress:E,port:c||80,host:t})}if(g.keepAlive==null||g.keepAlive){const e=g.keepAliveInitialDelay===undefined?6e4:g.keepAliveInitialDelay;C.setKeepAlive(true,e)}const Q=setupTimeout((()=>onConnectTimeout(C)),l);C.setNoDelay(true).once(o==="https:"?"secureConnect":"connect",(function(){Q();if(d){const e=d;d=null;e(null,this)}})).on("error",(function(e){Q();if(d){const t=d;d=null;t(e)}}));return C}}function setupTimeout(e,t){if(!t){return()=>{}}let A=null;let s=null;const r=setTimeout((()=>{A=setImmediate((()=>{if(process.platform==="win32"){s=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(r);clearImmediate(A);clearImmediate(s)}}function onConnectTimeout(e){n.destroy(e,new o)}e.exports=buildConnector},735:e=>{"use strict";const t={};const A=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{"use strict";class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,A,s){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=s;this.status=t;this.statusCode=t;this.headers=A}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,A){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=A?A.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:A,data:s}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=s;this.headers=A}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},4655:(e,t,A)=>{"use strict";const{InvalidArgumentError:s,NotSupportedError:r}=A(8707);const n=A(2613);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:o,kHTTP1BuildRequest:a}=A(6443);const c=A(3440);const l=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const u=/[^\t\x20-\x7e\x80-\xff]/;const g=/[^\u0021-\u00ff]/;const h=Symbol("handler");const E={};let f;try{const e=A(1637);E.create=e.channel("undici:request:create");E.bodySent=e.channel("undici:request:bodySent");E.headers=e.channel("undici:request:headers");E.trailers=e.channel("undici:request:trailers");E.error=e.channel("undici:request:error")}catch{E.create={hasSubscribers:false};E.bodySent={hasSubscribers:false};E.headers={hasSubscribers:false};E.trailers={hasSubscribers:false};E.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:r,body:n,headers:i,query:o,idempotent:a,blocking:u,upgrade:d,headersTimeout:C,bodyTimeout:Q,reset:I,throwOnError:B,expectContinue:p},y){if(typeof t!=="string"){throw new s("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&r!=="CONNECT"){throw new s("path must be an absolute URL or start with a slash")}else if(g.exec(t)!==null){throw new s("invalid request path")}if(typeof r!=="string"){throw new s("method must be a string")}else if(l.exec(r)===null){throw new s("invalid request method")}if(d&&typeof d!=="string"){throw new s("upgrade must be a string")}if(C!=null&&(!Number.isFinite(C)||C<0)){throw new s("invalid headersTimeout")}if(Q!=null&&(!Number.isFinite(Q)||Q<0)){throw new s("invalid bodyTimeout")}if(I!=null&&typeof I!=="boolean"){throw new s("invalid reset")}if(p!=null&&typeof p!=="boolean"){throw new s("invalid expectContinue")}this.headersTimeout=C;this.bodyTimeout=Q;this.throwOnError=B===true;this.method=r;this.abort=null;if(n==null){this.body=null}else if(c.isStream(n)){this.body=n;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){c.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(c.isBuffer(n)){this.body=n.byteLength?n:null}else if(ArrayBuffer.isView(n)){this.body=n.buffer.byteLength?Buffer.from(n.buffer,n.byteOffset,n.byteLength):null}else if(n instanceof ArrayBuffer){this.body=n.byteLength?Buffer.from(n):null}else if(typeof n==="string"){this.body=n.length?Buffer.from(n):null}else if(c.isFormDataLike(n)||c.isIterable(n)||c.isBlobLike(n)){this.body=n}else{throw new s("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=d||null;this.path=o?c.buildURL(t,o):t;this.origin=e;this.idempotent=a==null?r==="HEAD"||r==="GET":a;this.blocking=u==null?false:u;this.reset=I==null?null:I;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=p!=null?p:false;if(Array.isArray(i)){if(i.length%2!==0){throw new s("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,A)=>{"use strict";const s=A(2613);const{kDestroyed:r,kBodyUsed:n}=A(6443);const{IncomingMessage:i}=A(8611);const o=A(2203);const a=A(9278);const{InvalidArgumentError:c}=A(8707);const{Blob:l}=A(181);const u=A(9023);const{stringify:g}=A(3480);const{headerNameLowerCasedRecord:h}=A(735);const[E,f]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return l&&e instanceof l||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const A=g(t);if(A){e+="?"+A}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new c("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new c("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new c("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new c("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new c("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new c("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new c("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new c("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let A=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let s=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(A.endsWith("/")){A=A.substring(0,A.length-1)}if(s&&!s.startsWith("/")){s=`/${s}`}e=new URL(A+s)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new c("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");s(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}s.strictEqual(typeof e,"string");const t=getHostname(e);if(a.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[r])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[r]=true}}const d=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(d);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return h[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let A=0;Ae.toString("utf8")))}else{t[s]=e[A+1].toString("utf8")}}else{if(!Array.isArray(r)){r=[r];t[s]=r}r.push(e[A+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let A=false;let s=-1;for(let r=0;r{e.close()}))}else{const t=Buffer.isBuffer(s)?s:Buffer.from(s);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const Q=!!String.prototype.toWellFormed;function toUSVString(e){if(Q){return`${e}`.toWellFormed()}else if(u.toUSVString){return u.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const I=Object.create(null);I.enumerable=true;e.exports={kEnumerableProperty:I,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:E,nodeMinor:f,nodeHasAutoSelectFamily:E>18||E===18&&f>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},1:(e,t,A)=>{"use strict";const s=A(992);const{ClientDestroyedError:r,ClientClosedError:n,InvalidArgumentError:i}=A(8707);const{kDestroy:o,kClose:a,kDispatch:c,kInterceptors:l}=A(6443);const u=Symbol("destroyed");const g=Symbol("closed");const h=Symbol("onDestroyed");const E=Symbol("onClosed");const f=Symbol("Intercepted Dispatch");class DispatcherBase extends s{constructor(){super();this[u]=false;this[h]=null;this[g]=false;this[E]=[]}get destroyed(){return this[u]}get closed(){return this[g]}get interceptors(){return this[l]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[l][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[l]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((A,s)=>A?t(A):e(s)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[u]){queueMicrotask((()=>e(new r,null)));return}if(this[g]){if(this[E]){this[E].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[g]=true;this[E].push(e);const onClosed=()=>{const e=this[E];this[E]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,A)=>{this.destroy(e,((e,s)=>e?A(e):t(s)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[u]){if(this[h]){this[h].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new r}this[u]=true;this[h]=this[h]||[];this[h].push(t);const onDestroyed=()=>{const e=this[h];this[h]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[f](e,t){if(!this[l]||this[l].length===0){this[f]=this[c];return this[c](e,t)}let A=this[c].bind(this);for(let e=this[l].length-1;e>=0;e--){A=this[l][e](A)}this[f]=A;return A(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[u]||this[h]){throw new r}if(this[g]){throw new n}return this[f](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},992:(e,t,A)=>{"use strict";const s=A(4434);class Dispatcher extends s{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,A)=>{"use strict";const s=A(9581);const r=A(3440);const{ReadableStreamFrom:n,isBlobLike:i,isReadableStreamLike:o,readableStreamClose:a,createDeferredPromise:c,fullyReadBody:l}=A(5523);const{FormData:u}=A(3073);const{kState:g}=A(9710);const{webidl:h}=A(4222);const{DOMException:E,structuredClone:f}=A(7326);const{Blob:d,File:C}=A(181);const{kBodyUsed:Q}=A(6443);const I=A(2613);const{isErrored:B}=A(3440);const{isUint8Array:p,isArrayBuffer:y}=A(8253);const{File:m}=A(3041);const{parseMIMEType:w,serializeAMimeType:b}=A(4322);let R;try{const e=A(7598);R=t=>e.randomInt(0,t)}catch{R=e=>Math.floor(Math.random(e))}let k=globalThis.ReadableStream;const S=C??m;const D=new TextEncoder;const N=new TextDecoder;function extractBody(e,t=false){if(!k){k=A(3774).ReadableStream}let s=null;if(e instanceof k){s=e}else if(i(e)){s=e.stream()}else{s=new k({async pull(e){e.enqueue(typeof l==="string"?D.encode(l):l);queueMicrotask((()=>a(e)))},start(){},type:undefined})}I(o(s));let c=null;let l=null;let u=null;let g=null;if(typeof e==="string"){l=e;g="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){l=e.toString();g="application/x-www-form-urlencoded;charset=UTF-8"}else if(y(e)){l=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(r.isFormDataLike(e)){const t=`----formdata-undici-0${`${R(1e11)}`.padStart(11,"0")}`;const A=`--${t}\r\nContent-Disposition: form-data`
+(()=>{var __webpack_modules__={4914:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=n(A(857));const o=A(302);function issueCommand(e,t,A){const s=new Command(e,t,A);process.stdout.write(s.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,A){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=A}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const A in this.properties){if(this.properties.hasOwnProperty(A)){const s=this.properties[A];if(s){if(t){t=false}else{e+=","}e+=`${A}=${escapeProperty(s)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,o.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,o.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},7484:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.platform=t.toPlatformPath=t.toWin32Path=t.toPosixPath=t.markdownSummary=t.summary=t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=A(4914);const a=A(4753);const c=A(302);const l=n(A(857));const u=n(A(6928));const g=A(5306);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h||(t.ExitCode=h={}));function exportVariable(e,t){const A=(0,c.toCommandValue)(t);process.env[e]=A;const s=process.env["GITHUB_ENV"]||"";if(s){return(0,a.issueFileCommand)("ENV",(0,a.prepareKeyValueMessage)(e,t))}(0,o.issueCommand)("set-env",{name:e},A)}t.exportVariable=exportVariable;function setSecret(e){(0,o.issueCommand)("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){(0,a.issueFileCommand)("PATH",e)}else{(0,o.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const A=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!A){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return A}return A.trim()}t.getInput=getInput;function getMultilineInput(e,t){const A=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return A}return A.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const A=["true","True","TRUE"];const s=["false","False","FALSE"];const r=getInput(e,t);if(A.includes(r))return true;if(s.includes(r))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const A=process.env["GITHUB_OUTPUT"]||"";if(A){return(0,a.issueFileCommand)("OUTPUT",(0,a.prepareKeyValueMessage)(e,t))}process.stdout.write(l.EOL);(0,o.issueCommand)("set-output",{name:e},(0,c.toCommandValue)(t))}t.setOutput=setOutput;function setCommandEcho(e){(0,o.issue)("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){(0,o.issueCommand)("debug",{},e)}t.debug=debug;function error(e,t={}){(0,o.issueCommand)("error",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){(0,o.issueCommand)("warning",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){(0,o.issueCommand)("notice",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){(0,o.issue)("group",e)}t.startGroup=startGroup;function endGroup(){(0,o.issue)("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,(function*(){startGroup(e);let A;try{A=yield t()}finally{endGroup()}return A}))}t.group=group;function saveState(e,t){const A=process.env["GITHUB_STATE"]||"";if(A){return(0,a.issueFileCommand)("STATE",(0,a.prepareKeyValueMessage)(e,t))}(0,o.issueCommand)("save-state",{name:e},(0,c.toCommandValue)(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var E=A(1847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return E.summary}});var f=A(1847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return f.markdownSummary}});var d=A(1976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return d.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return d.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return d.toPlatformPath}});t.platform=n(A(8968))},4753:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=n(A(6982));const o=n(A(9896));const a=n(A(857));const c=A(302);function issueFileCommand(e,t){const A=process.env[`GITHUB_${e}`];if(!A){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(A)){throw new Error(`Missing file at path: ${A}`)}o.appendFileSync(A,`${(0,c.toCommandValue)(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const A=`ghadelimiter_${i.randomUUID()}`;const s=(0,c.toCommandValue)(t);if(e.includes(A)){throw new Error(`Unexpected input: name should not contain the delimiter "${A}"`)}if(s.includes(A)){throw new Error(`Unexpected input: value should not contain the delimiter "${A}"`)}return`${e}<<${A}${a.EOL}${s}${a.EOL}${A}`}t.prepareKeyValueMessage=prepareKeyValueMessage},5306:function(e,t,A){"use strict";var s=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const r=A(4844);const n=A(4552);const i=A(7484);class OidcClient{static createHttpClient(e=true,t=10){const A={allowRetries:e,maxRetries:t};return new r.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(OidcClient.getRequestToken())],A)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return s(this,void 0,void 0,(function*(){const A=OidcClient.createHttpClient();const s=yield A.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const r=(t=s.result)===null||t===void 0?void 0:t.value;if(!r){throw new Error("Response json body do not have ID Token field")}return r}))}static getIDToken(e){return s(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const A=encodeURIComponent(e);t=`${t}&audience=${A}`}(0,i.debug)(`ID token url is ${t}`);const A=yield OidcClient.getCall(t);(0,i.setSecret)(A);return A}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},1976:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=n(A(6928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},8968:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getDetails=t.isLinux=t.isMacOS=t.isWindows=t.arch=t.platform=void 0;const a=o(A(857));const c=n(A(5236));const getWindowsInfo=()=>i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>i(void 0,void 0,void 0,(function*(){var e,t,A,s;const{stdout:r}=yield c.getExecOutput("sw_vers",undefined,{silent:true});const n=(t=(e=r.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const i=(s=(A=r.match(/ProductName:\s*(.+)/))===null||A===void 0?void 0:A[1])!==null&&s!==void 0?s:"";return{name:i,version:n}}));const getLinuxInfo=()=>i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,A]=e.trim().split("\n");return{name:t,version:A}}));t.platform=a.default.platform();t.arch=a.default.arch();t.isWindows=t.platform==="win32";t.isMacOS=t.platform==="darwin";t.isLinux=t.platform==="linux";function getDetails(){return i(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield t.isWindows?getWindowsInfo():t.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:t.platform,arch:t.arch,isWindows:t.isWindows,isMacOS:t.isMacOS,isLinux:t.isLinux})}))}t.getDetails=getDetails},1847:function(e,t,A){"use strict";var s=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const r=A(857);const n=A(9896);const{access:i,appendFile:o,writeFile:a}=n.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return s(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,n.constants.R_OK|n.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,A={}){const s=Object.entries(A).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${s}>`}return`<${e}${s}>${t}${e}>`}write(e){return s(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const A=yield this.filePath();const s=t?a:o;yield s(A,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return s(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(r.EOL)}addCodeBlock(e,t){const A=Object.assign({},t&&{lang:t});const s=this.wrap("pre",this.wrap("code",e),A);return this.addRaw(s).addEOL()}addList(e,t=false){const A=t?"ol":"ul";const s=e.map((e=>this.wrap("li",e))).join("");const r=this.wrap(A,s);return this.addRaw(r).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:A,colspan:s,rowspan:r}=e;const n=t?"th":"td";const i=Object.assign(Object.assign({},s&&{colspan:s}),r&&{rowspan:r});return this.wrap(n,A,i)})).join("");return this.wrap("tr",t)})).join("");const A=this.wrap("table",t);return this.addRaw(A).addEOL()}addDetails(e,t){const A=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(A).addEOL()}addImage(e,t,A){const{width:s,height:r}=A||{};const n=Object.assign(Object.assign({},s&&{width:s}),r&&{height:r});const i=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(i).addEOL()}addHeading(e,t){const A=`h${t}`;const s=["h1","h2","h3","h4","h5","h6"].includes(A)?A:"h1";const r=this.wrap(s,e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const A=Object.assign({},t&&{cite:t});const s=this.wrap("blockquote",e,A);return this.addRaw(s).addEOL()}addLink(e,t){const A=this.wrap("a",e,{href:t});return this.addRaw(A).addEOL()}}const c=new Summary;t.markdownSummary=c;t.summary=c},302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},5236:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const o=A(3193);const a=n(A(6665));function exec(e,t,A){return i(this,void 0,void 0,(function*(){const s=a.argStringToArray(e);if(s.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const r=s[0];t=s.slice(1).concat(t||[]);const n=new a.ToolRunner(r,t,A);return n.exec()}))}t.exec=exec;function getExecOutput(e,t,A){var s,r;return i(this,void 0,void 0,(function*(){let n="";let i="";const a=new o.StringDecoder("utf8");const c=new o.StringDecoder("utf8");const l=(s=A===null||A===void 0?void 0:A.listeners)===null||s===void 0?void 0:s.stdout;const u=(r=A===null||A===void 0?void 0:A.listeners)===null||r===void 0?void 0:r.stderr;const stdErrListener=e=>{i+=c.write(e);if(u){u(e)}};const stdOutListener=e=>{n+=a.write(e);if(l){l(e)}};const g=Object.assign(Object.assign({},A===null||A===void 0?void 0:A.listeners),{stdout:stdOutListener,stderr:stdErrListener});const h=yield exec(e,t,Object.assign(Object.assign({},A),{listeners:g}));n+=a.end();i+=c.end();return{exitCode:h,stdout:n,stderr:i}}))}t.getExecOutput=getExecOutput},6665:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const o=n(A(857));const a=n(A(4434));const c=n(A(5317));const l=n(A(6928));const u=n(A(4994));const g=n(A(5207));const h=A(3557);const E=process.platform==="win32";class ToolRunner extends a.EventEmitter{constructor(e,t,A){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=A||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const A=this._getSpawnFileName();const s=this._getSpawnArgs(e);let r=t?"":"[command]";if(E){if(this._isCmdFile()){r+=A;for(const e of s){r+=` ${e}`}}else if(e.windowsVerbatimArguments){r+=`"${A}"`;for(const e of s){r+=` ${e}`}}else{r+=this._windowsQuoteCmdArg(A);for(const e of s){r+=` ${this._windowsQuoteCmdArg(e)}`}}}else{r+=A;for(const e of s){r+=` ${e}`}}return r}_processLineBuffer(e,t,A){try{let s=t+e.toString();let r=s.indexOf(o.EOL);while(r>-1){const e=s.substring(0,r);A(e);s=s.substring(r+o.EOL.length);r=s.indexOf(o.EOL)}return s}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(E){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(E){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const A of this.args){t+=" ";t+=e.windowsVerbatimArguments?A:this._windowsQuoteCmdArg(A)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const 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'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let A=false;for(const s of e){if(t.some((e=>e===s))){A=true;break}}if(!A){return e}let s='"';let r=true;for(let t=e.length;t>0;t--){s+=e[t-1];if(r&&e[t-1]==="\\"){s+="\\"}else if(e[t-1]==='"'){r=true;s+='"'}else{r=false}}s+='"';return s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let A=true;for(let s=e.length;s>0;s--){t+=e[s-1];if(A&&e[s-1]==="\\"){t+="\\"}else if(e[s-1]==='"'){A=true;t+="\\"}else{A=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const A={};A.cwd=e.cwd;A.env=e.env;A["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){A.argv0=`"${t}"`}return A}exec(){return i(this,void 0,void 0,(function*(){if(!g.isRooted(this.toolPath)&&(this.toolPath.includes("/")||E&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise(((e,t)=>i(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const A=this._cloneExecOptions(this.options);if(!A.silent&&A.outStream){A.outStream.write(this._getCommandString(A)+o.EOL)}const s=new ExecState(A,this.toolPath);s.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield g.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const r=this._getSpawnFileName();const n=c.spawn(r,this._getSpawnArgs(A),this._getSpawnOptions(this.options,r));let i="";if(n.stdout){n.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!A.silent&&A.outStream){A.outStream.write(e)}i=this._processLineBuffer(e,i,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let a="";if(n.stderr){n.stderr.on("data",(e=>{s.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!A.silent&&A.errStream&&A.outStream){const t=A.failOnStdErr?A.errStream:A.outStream;t.write(e)}a=this._processLineBuffer(e,a,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}n.on("error",(e=>{s.processError=e.message;s.processExited=true;s.processClosed=true;s.CheckComplete()}));n.on("exit",(e=>{s.processExitCode=e;s.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);s.CheckComplete()}));n.on("close",(e=>{s.processExitCode=e;s.processExited=true;s.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);s.CheckComplete()}));s.on("done",((A,s)=>{if(i.length>0){this.emit("stdline",i)}if(a.length>0){this.emit("errline",a)}n.removeAllListeners();if(A){t(A)}else{e(s)}}));if(this.options.input){if(!n.stdin){throw new Error("child process missing stdin")}n.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let A=false;let s=false;let r="";function append(e){if(s&&e!=='"'){r+="\\"}r+=e;s=false}for(let n=0;n0){t.push(r);r=""}continue}append(i)}if(r.length>0){t.push(r.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=h.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const 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()}}},4552:function(e,t){"use strict";var A=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},4844:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const o=n(A(8611));const a=n(A(5692));const c=n(A(4988));const l=n(A(770));const u=A(6752);var g;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(g||(t.HttpCodes=g={}));var h;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(h||(t.Headers=h={}));var E;(function(e){e["ApplicationJson"]="application/json"})(E||(t.MediaTypes=E={}));function getProxyUrl(e){const t=c.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[g.MovedPermanently,g.ResourceMoved,g.SeeOther,g.TemporaryRedirect,g.PermanentRedirect];const d=[g.BadGateway,g.ServiceUnavailable,g.GatewayTimeout];const C=["OPTIONS","GET","DELETE","HEAD"];const Q=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(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())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,A){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=A;if(A){if(A.ignoreSslError!=null){this._ignoreSslError=A.ignoreSslError}this._socketTimeout=A.socketTimeout;if(A.allowRedirects!=null){this._allowRedirects=A.allowRedirects}if(A.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=A.allowRedirectDowngrade}if(A.maxRedirects!=null){this._maxRedirects=Math.max(A.maxRedirects,0)}if(A.keepAlive!=null){this._keepAlive=A.keepAlive}if(A.allowRetries!=null){this._allowRetries=A.allowRetries}if(A.maxRetries!=null){this._maxRetries=A.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,A||{})}))}patch(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,A||{})}))}put(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,A||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,A,s){return i(this,void 0,void 0,(function*(){return this.request(e,t,A,s)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[h.Accept]=this._getExistingOrDefaultHeader(t,h.Accept,E.ApplicationJson);const A=yield this.get(e,t);return this._processResponse(A,this.requestOptions)}))}postJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.post(e,s,A);return this._processResponse(r,this.requestOptions)}))}putJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.put(e,s,A);return this._processResponse(r,this.requestOptions)}))}patchJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.patch(e,s,A);return this._processResponse(r,this.requestOptions)}))}request(e,t,A,s){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const r=new URL(t);let n=this._prepareRequest(e,r,s);const i=this._allowRetries&&C.includes(e)?this._maxRetries+1:1;let o=0;let a;do{a=yield this.requestRaw(n,A);if(a&&a.message&&a.message.statusCode===g.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(a)){e=t;break}}if(e){return e.handleAuthentication(this,n,A)}else{return a}}let t=this._maxRedirects;while(a.message.statusCode&&f.includes(a.message.statusCode)&&this._allowRedirects&&t>0){const i=a.message.headers["location"];if(!i){break}const o=new URL(i);if(r.protocol==="https:"&&r.protocol!==o.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield a.readBody();if(o.hostname!==r.hostname){for(const e in s){if(e.toLowerCase()==="authorization"){delete s[e]}}}n=this._prepareRequest(e,o,s);a=yield this.requestRaw(n,A);t--}if(!a.message.statusCode||!d.includes(a.message.statusCode)){return a}o+=1;if(o{function callbackForResult(e,t){if(e){s(e)}else if(!t){s(new Error("Unknown error"))}else{A(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,A){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let s=false;function handleResult(e,t){if(!s){s=true;A(e,t)}}const r=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let n;r.on("socket",(e=>{n=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));r.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){r.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){r.end()}));t.pipe(r)}else{r.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const A=c.getProxyUrl(t);const s=A&&A.hostname;if(!s){return}return this._getProxyAgentDispatcher(t,A)}_prepareRequest(e,t,A){const s={};s.parsedUrl=t;const r=s.parsedUrl.protocol==="https:";s.httpModule=r?a:o;const n=r?443:80;s.options={};s.options.host=s.parsedUrl.hostname;s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):n;s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||"");s.options.method=e;s.options.headers=this._mergeHeaders(A);if(this.userAgent!=null){s.options.headers["user-agent"]=this.userAgent}s.options.agent=this._getAgent(s.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(s.options)}}return s}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,A){let s;if(this.requestOptions&&this.requestOptions.headers){s=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||s||A}_getAgent(e){let t;const A=c.getProxyUrl(e);const s=A&&A.hostname;if(this._keepAlive&&s){t=this._proxyAgent}if(!s){t=this._agent}if(t){return t}const r=e.protocol==="https:";let n=100;if(this.requestOptions){n=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(A&&A.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(A.username||A.password)&&{proxyAuth:`${A.username}:${A.password}`}),{host:A.hostname,port:A.port})};let s;const i=A.protocol==="https:";if(r){s=i?l.httpsOverHttps:l.httpsOverHttp}else{s=i?l.httpOverHttps:l.httpOverHttp}t=s(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:n};t=r?new a.Agent(e):new o.Agent(e);this._agent=t}if(r&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let A;if(this._keepAlive){A=this._proxyAgentDispatcher}if(A){return A}const s=e.protocol==="https:";A=new u.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=A;if(s&&this._ignoreSslError){A.options=Object.assign(A.options.requestTls||{},{rejectUnauthorized:false})}return A}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(Q,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((A,s)=>i(this,void 0,void 0,(function*(){const r=e.message.statusCode||0;const n={statusCode:r,result:null,headers:{}};if(r===g.NotFound){A(n)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){i=JSON.parse(o,dateTimeDeserializer)}else{i=JSON.parse(o)}n.result=i}n.headers=e.message.headers}catch(e){}if(r>299){let e;if(i&&i.message){e=i.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${r})`}const t=new HttpClientError(e,r);t.result=n.result;s(t)}else{A(n)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,A)=>(t[A.toLowerCase()]=e[A],t)),{})},4988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const A=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(A){try{return new DecodedURL(A)}catch(e){if(!A.startsWith("http://")&&!A.startsWith("https://"))return new DecodedURL(`http://${A}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const A=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!A){return false}let s;if(e.port){s=Number(e.port)}else if(e.protocol==="http:"){s=80}else if(e.protocol==="https:"){s=443}const r=[e.hostname.toUpperCase()];if(typeof s==="number"){r.push(`${r[0]}:${s}`)}for(const e of A.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||r.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},5207:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var o;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const a=n(A(9896));const c=n(A(6928));o=a.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.open=o.open,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rm=o.rm,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=a.constants.O_RDONLY;function exists(e){return i(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,A=false){return i(this,void 0,void 0,(function*(){const s=A?yield t.stat(e):yield t.lstat(e);return s.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,A){return i(this,void 0,void 0,(function*(){let s=undefined;try{s=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(s&&s.isFile()){if(t.IS_WINDOWS){const t=c.extname(e).toUpperCase();if(A.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(s)){return e}}}const r=e;for(const n of A){e=r+n;s=undefined;try{s=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(s&&s.isFile()){if(t.IS_WINDOWS){try{const A=c.dirname(e);const s=c.basename(e).toUpperCase();for(const r of yield t.readdir(A)){if(s===r.toUpperCase()){e=c.join(A,r);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(s)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},4994:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const o=A(2613);const a=n(A(6928));const c=n(A(5207));function cp(e,t,A={}){return i(this,void 0,void 0,(function*(){const{force:s,recursive:r,copySourceDirectory:n}=readCopyOptions(A);const i=(yield c.exists(t))?yield c.stat(t):null;if(i&&i.isFile()&&!s){return}const o=i&&i.isDirectory()&&n?a.join(t,a.basename(e)):t;if(!(yield c.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield c.stat(e);if(l.isDirectory()){if(!r){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,o,0,s)}}else{if(a.relative(e,o)===""){throw new Error(`'${o}' and '${e}' are the same file`)}yield copyFile(e,o,s)}}))}t.cp=cp;function mv(e,t,A={}){return i(this,void 0,void 0,(function*(){if(yield c.exists(t)){let s=true;if(yield c.isDirectory(t)){t=a.join(t,a.basename(e));s=yield c.exists(t)}if(s){if(A.force==null||A.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(t));yield c.rename(e,t)}))}t.mv=mv;function rmRF(e){return i(this,void 0,void 0,(function*(){if(c.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield c.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return i(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");yield c.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(c.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. 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 t}const A=yield findInPath(e);if(A&&A.length>0){return A[0]}return""}))}t.which=which;function findInPath(e){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(c.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(a.delimiter)){if(e){t.push(e)}}}if(c.isRooted(e)){const A=yield c.tryGetExecutablePath(e,t);if(A){return[A]}return[]}if(e.includes(a.sep)){return[]}const A=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){A.push(e)}}}const s=[];for(const r of A){const A=yield c.tryGetExecutablePath(a.join(r,e),t);if(A){s.push(A)}}return s}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const A=Boolean(e.recursive);const s=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:A,copySourceDirectory:s}}function cpDirRecursive(e,t,A,s){return i(this,void 0,void 0,(function*(){if(A>=255)return;A++;yield mkdirP(t);const r=yield c.readdir(e);for(const n of r){const r=`${e}/${n}`;const i=`${t}/${n}`;const o=yield c.lstat(r);if(o.isDirectory()){yield cpDirRecursive(r,i,A,s)}else{yield copyFile(r,i,s)}}yield c.chmod(t,(yield c.stat(e)).mode)}))}function copyFile(e,t,A){return i(this,void 0,void 0,(function*(){if((yield c.lstat(e)).isSymbolicLink()){try{yield c.lstat(t);yield c.unlink(t)}catch(e){if(e.code==="EPERM"){yield c.chmod(t,"0666");yield c.unlink(t)}}const A=yield c.readlink(e);yield c.symlink(A,t,c.IS_WINDOWS?"junction":null)}else if(!(yield c.exists(t))||A){yield c.copyFile(e,t)}}))}},8036:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const o=n(A(9318));const a=A(7484);const c=A(857);const l=A(5317);const u=A(9896);function _findMatch(t,A,s,r){return i(this,void 0,void 0,(function*(){const n=c.platform();let i;let l;let u;for(const i of s){const s=i.version;(0,a.debug)(`check ${s} satisfies ${t}`);if(o.satisfies(s,t)&&(!A||i.stable===A)){u=i.files.find((t=>{(0,a.debug)(`${t.arch}===${r} && ${t.platform}===${n}`);let A=t.arch===r&&t.platform===n;if(A&&t.platform_version){const s=e.exports._getOsVersion();if(s===t.platform_version){A=true}else{A=o.satisfies(s,t.platform_version)}}return A}));if(u){(0,a.debug)(`matched ${i.version}`);l=i;break}}}if(l&&u){i=Object.assign({},l);i.files=[u]}return i}))}t._findMatch=_findMatch;function _getOsVersion(){const t=c.platform();let A="";if(t==="darwin"){A=l.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){A=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return A}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let A="";if(u.existsSync(e)){A=u.readFileSync(e).toString()}else if(u.existsSync(t)){A=u.readFileSync(t).toString()}return A}t._readLinuxVersionFile=_readLinuxVersionFile},7380:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const o=n(A(7484));class RetryHelper{constructor(e,t,A){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(A);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return i(this,void 0,void 0,(function*(){let A=1;while(AsetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},3472:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const o=n(A(7484));const a=n(A(4994));const c=n(A(6982));const l=n(A(9896));const u=n(A(8036));const g=n(A(857));const h=n(A(6928));const E=n(A(4844));const f=n(A(9318));const d=n(A(2203));const C=n(A(9023));const Q=A(2613);const I=A(5236);const B=A(7380);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const p=process.platform==="win32";const y=process.platform==="darwin";const m="actions/tool-cache";function downloadTool(e,t,A,s){return i(this,void 0,void 0,(function*(){t=t||h.join(_getTempDirectory(),c.randomUUID());yield a.mkdirP(h.dirname(t));o.debug(`Downloading ${e}`);o.debug(`Destination ${t}`);const r=3;const n=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const u=new B.RetryHelper(r,n,l);return yield u.execute((()=>i(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",A,s)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,A,s){return i(this,void 0,void 0,(function*(){if(l.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const r=new E.HttpClient(m,[],{allowRetries:false});if(A){o.debug("set auth");if(s===undefined){s={}}s.authorization=A}const n=yield r.get(e,s);if(n.message.statusCode!==200){const t=new HTTPError(n.message.statusCode);o.debug(`Failed to download from "${e}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`);throw t}const i=C.promisify(d.pipeline);const c=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>n.message));const u=c();let g=false;try{yield i(u,l.createWriteStream(t));o.debug("download complete");g=true;return t}finally{if(!g){o.debug("download failed");try{yield a.rmRF(t)}catch(e){o.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,A){return i(this,void 0,void 0,(function*(){(0,Q.ok)(p,"extract7z() not supported on current OS");(0,Q.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);const s=process.cwd();process.chdir(t);if(A){try{const t=o.isDebug()?"-bb1":"-bb0";const s=["x",t,"-bd","-sccUTF-8",e];const r={silent:true};yield(0,I.exec)(`"${A}"`,s,r)}finally{process.chdir(s)}}else{const A=h.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`& '${A}' -Source '${r}' -Target '${n}'`;const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];const c={silent:true};try{const e=yield a.which("powershell",true);yield(0,I.exec)(`"${e}"`,o,c)}finally{process.chdir(s)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,A="xz"){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);o.debug("Checking tar --version");let s="";yield(0,I.exec)("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>s+=e.toString(),stderr:e=>s+=e.toString()}});o.debug(s.trim());const r=s.toUpperCase().includes("GNU TAR");let n;if(A instanceof Array){n=A}else{n=[A]}if(o.isDebug()&&!A.includes("v")){n.push("-v")}let i=t;let a=e;if(p&&r){n.push("--force-local");i=t.replace(/\\/g,"/");a=e.replace(/\\/g,"/")}if(r){n.push("--warning=no-unknown-keyword");n.push("--overwrite")}n.push("-C",i,"-f",a);yield(0,I.exec)(`tar`,n);return t}))}t.extractTar=extractTar;function extractXar(e,t,A=[]){return i(this,void 0,void 0,(function*(){(0,Q.ok)(y,"extractXar() not supported on current OS");(0,Q.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);let s;if(A instanceof Array){s=A}else{s=[A]}s.push("-x","-C",t,"-f",e);if(o.isDebug()){s.push("-v")}const r=yield a.which("xar",true);yield(0,I.exec)(`"${r}"`,_unique(s));return t}))}t.extractXar=extractXar;function extractZip(e,t){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(p){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return i(this,void 0,void 0,(function*(){const A=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=yield a.which("pwsh",false);if(r){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${A}', '${s}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${A}' -DestinationPath '${s}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];o.debug(`Using pwsh at path: ${r}`);yield(0,I.exec)(`"${r}"`,t)}else{const 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 '${A}' -DestinationPath '${s}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${A}', '${s}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const r=yield a.which("powershell",true);o.debug(`Using powershell at path: ${r}`);yield(0,I.exec)(`"${r}"`,t)}}))}function extractZipNix(e,t){return i(this,void 0,void 0,(function*(){const A=yield a.which("unzip",true);const s=[e];if(!o.isDebug()){s.unshift("-q")}s.unshift("-o");yield(0,I.exec)(`"${A}"`,s,{cwd:t})}))}function cacheDir(e,t,A,s){return i(this,void 0,void 0,(function*(){A=f.clean(A)||A;s=s||g.arch();o.debug(`Caching tool ${t} ${A} ${s}`);o.debug(`source dir: ${e}`);if(!l.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const r=yield _createToolPath(t,A,s);for(const t of l.readdirSync(e)){const A=h.join(e,t);yield a.cp(A,r,{recursive:true})}_completeToolPath(t,A,s);return r}))}t.cacheDir=cacheDir;function cacheFile(e,t,A,s,r){return i(this,void 0,void 0,(function*(){s=f.clean(s)||s;r=r||g.arch();o.debug(`Caching tool ${A} ${s} ${r}`);o.debug(`source file: ${e}`);if(!l.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(A,s,r);const i=h.join(n,t);o.debug(`destination file ${i}`);yield a.cp(e,i);_completeToolPath(A,s,r);return n}))}t.cacheFile=cacheFile;function find(e,t,A){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}A=A||g.arch();if(!isExplicitVersion(t)){const s=findAllVersions(e,A);const r=evaluateVersions(s,t);t=r}let s="";if(t){t=f.clean(t)||"";const r=h.join(_getCacheDirectory(),e,t,A);o.debug(`checking cache: ${r}`);if(l.existsSync(r)&&l.existsSync(`${r}.complete`)){o.debug(`Found tool in cache ${e} ${t} ${A}`);s=r}else{o.debug("not found")}}return s}t.find=find;function findAllVersions(e,t){const A=[];t=t||g.arch();const s=h.join(_getCacheDirectory(),e);if(l.existsSync(s)){const e=l.readdirSync(s);for(const r of e){if(isExplicitVersion(r)){const e=h.join(s,r,t||"");if(l.existsSync(e)&&l.existsSync(`${e}.complete`)){A.push(r)}}}}return A}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,A,s="master"){return i(this,void 0,void 0,(function*(){let r=[];const n=`https://api.github.com/repos/${e}/${t}/git/trees/${s}`;const i=new E.HttpClient("tool-cache");const a={};if(A){o.debug("set auth");a.authorization=A}const c=yield i.getJson(n,a);if(!c.result){return r}let l="";for(const e of c.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}a["accept"]="application/vnd.github.VERSION.raw";let u=yield(yield i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{r=JSON.parse(u)}catch(e){o.debug("Invalid json")}}return r}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,A,s=g.arch()){return i(this,void 0,void 0,(function*(){const r=yield u._findMatch(e,t,A,s);return r}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return i(this,void 0,void 0,(function*(){if(!e){e=h.join(_getTempDirectory(),c.randomUUID())}yield a.mkdirP(e);return e}))}function _createToolPath(e,t,A){return i(this,void 0,void 0,(function*(){const s=h.join(_getCacheDirectory(),e,f.clean(t)||t,A||"");o.debug(`destination ${s}`);const r=`${s}.complete`;yield a.rmRF(s);yield a.rmRF(r);yield a.mkdirP(s);return s}))}function _completeToolPath(e,t,A){const s=h.join(_getCacheDirectory(),e,f.clean(t)||t,A||"");const r=`${s}.complete`;l.writeFileSync(r,"");o.debug("finished caching tool")}function isExplicitVersion(e){const t=f.clean(e)||"";o.debug(`isExplicit: ${t}`);const A=f.valid(t)!=null;o.debug(`explicit? ${A}`);return A}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let A="";o.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(f.gt(e,t)){return 1}return-1}));for(let s=e.length-1;s>=0;s--){const r=e[s];const n=f.satisfies(r,t);if(n){A=r;break}}if(A){o.debug(`matched: ${A}`)}else{o.debug("match not found")}return A}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";(0,Q.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";(0,Q.ok)(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const A=global[e];return A!==undefined?A:t}function _unique(e){return Array.from(new Set(e))}},6160:(e,t,A)=>{(()=>{"use strict";var t={7258:function(e,t,A){var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var A in e)if(Object.prototype.hasOwnProperty.call(e,A))t[t.length]=A;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A=ownKeys(e),n=0;ne.trim()===""?"":` ${e}`)).join("\n").trim();if(s===""){throw new Error(`Input "${e}" is missing a description`)}const r=t.default?`, default: \`${t.default}\``:"";n.push(`- ${e}: _(${A}${r})_ ${s}\n`)}const a=t.indexOf("\x3c!-- BEGIN_AUTOGEN_INPUTS --\x3e");const c=t.indexOf("\x3c!-- END_AUTOGEN_INPUTS --\x3e");t.splice(a+1,c-a-1,"",...n,"");const l=Object.entries(s.outputs||{});if(l.length===0)console.warn(`action.yml outputs are empty`);const u=[];for(const[e,t]of l){const A=(t?.description||"").split("\n").map((e=>e.trim()===""?"":` ${e}`)).join("\n").trim();if(A===""){throw new Error(`Output "${e}" is missing a description`)}u.push(`- ${e}: ${A}\n`)}const g=t.indexOf("\x3c!-- BEGIN_AUTOGEN_OUTPUTS --\x3e");const h=t.indexOf("\x3c!-- END_AUTOGEN_OUTPUTS --\x3e");t.splice(g+1,h-g-1,"",...u,"");await(0,i.writeFile)("README.md",t.join("\n"),"utf8")}},9081:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseCredential=parseCredential;t.isServiceAccountKey=isServiceAccountKey;t.isExternalAccount=isExternalAccount;const s=A(3916);const r=A(6266);function parseCredential(e){e=(e||"").trim();if(!e){throw new Error(`Missing service account key JSON (got empty value)`)}if(!e.startsWith("{")){e=(0,r.fromBase64)(e)}try{const t=JSON.parse(e);return t}catch(e){const t=(0,s.errorMessage)(e);throw new SyntaxError(`Failed to parse service account key JSON credentials: ${t}`)}}function isServiceAccountKey(e){return e.type==="service_account"}function isExternalAccount(e){return e.type!=="external_account"}t["default"]={parseCredential:parseCredential,isServiceAccountKey:isServiceAccountKey,isExternalAccount:isExternalAccount}},3214:function(e,t,A){var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var A in e)if(Object.prototype.hasOwnProperty.call(e,A))t[t.length]=A;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A=ownKeys(e),n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.parseCSV=parseCSV;t.parseMultilineCSV=parseMultilineCSV;function parseCSV(e){e=(e||"").trim();if(!e){return[]}const t=e.split(/(?{Object.defineProperty(t,"__esModule",{value:true});t.toBase64=toBase64;t.fromBase64=fromBase64;function toBase64(e){return Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function fromBase64(e,t){if(!t){t="utf8"}let A=e.replace(/-/g,"+").replace(/_/g,"/");while(A.length%4)A+="=";return Buffer.from(A,"base64").toString(t)}},3466:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toEnum=toEnum;function toEnum(e,t){const A=(t||"").toUpperCase();const s=A.replace(/[\s-]+/g,"_");if(A in e){return e[A]}else if(s in e){return e[s]}else{const A=Object.keys(e);throw new Error(`Invalid value ${t}, valid values are ${JSON.stringify(A)}`)}}},8204:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.stubEnv=stubEnv;function stubEnv(e,t=process.env){const A={};for(const s in e){A[s]=t[s];if(e[s]!==undefined){t[s]=e[s]}else{delete t[s]}}return()=>{for(const e in A){if(A[e]!==undefined){t[e]=A[e]}else{delete t[e]}}}}},3916:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.errorMessage=errorMessage;t.isNotFoundError=isNotFoundError;function errorMessage(e){let t;if(e===null){t="null"}else if(e===undefined||typeof e==="undefined"){t="undefined"}else if(typeof e==="bigint"||e instanceof BigInt){t=e.toString()}else if(typeof e==="boolean"||e instanceof Boolean){t=e.toString()}else if(e instanceof Error){t=e.message}else if(typeof e==="function"||e instanceof Function){t=errorMessage(e())}else if(typeof e==="number"||e instanceof Number){t=e.toString()}else if(typeof e==="string"||e instanceof String){t=e.toString()}else if(typeof e==="symbol"||e instanceof Symbol){t=e.toString()}else if(typeof e==="object"||e instanceof Object){t=JSON.stringify(e)}else{t=String(`[${typeof e}] ${e}`)}const A=t.trim().replace("Error: ","").trim();if(!A)return"";if(A.length>1&&isUpper(A[0])&&!isUpper(A[1])){return A[0].toLowerCase()+A.slice(1)}return A}function isNotFoundError(e){const t=errorMessage(e);return t.toUpperCase().includes("ENOENT")}function isUpper(e){return e===e.toUpperCase()}},6148:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseFlags=parseFlags;t.readUntil=readUntil;function parseFlags(e){const t=[];let A="";let s=false;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t.forceRemove=forceRemove;t.isEmptyDir=isEmptyDir;t.writeSecureFile=writeSecureFile;t.removeFile=removeFile;const s=A(9896);const r=A(3916);async function forceRemove(e){try{await s.promises.rm(e,{force:true,recursive:true})}catch(t){if(!(0,r.isNotFoundError)(t)){const A=(0,r.errorMessage)(t);throw new Error(`Failed to remove "${e}": ${A}`)}}}async function isEmptyDir(e){try{const t=await s.promises.readdir(e);return t.length<=0}catch{return true}}async function writeSecureFile(e,t,A){const r=Object.assign({},{mode:416,flag:"wx",flush:true},A);await s.promises.writeFile(e,t,r);return e}async function removeFile(e){try{await s.promises.unlink(e);return true}catch(t){if((0,r.isNotFoundError)(t)){return false}const A=(0,r.errorMessage)(t);throw new Error(`Failed to remove "${e}": ${A}`)}}},7237:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseGcloudIgnore=parseGcloudIgnore;const s=A(9896);const r=A(6928);const n=A(3916);async function parseGcloudIgnore(e){const t=(0,r.dirname)(e);let A=[];try{A=(await s.promises.readFile(e,{encoding:"utf8"})).toString().split(/\r?\n/).filter(shouldKeepIgnoreLine).map((e=>e.trim()))}catch(e){if(!(0,n.isNotFoundError)(e)){throw e}}for(let e=0;ee.trim()));A.splice(e,1,...a);e+=a.length}}return A}function shouldKeepIgnoreLine(e){const t=(e||"").trim();if(t===""){return false}if(t.startsWith("#")&&!t.startsWith("#!")){return false}return true}},9407:function(e,t,A){var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__exportStar||function(e,t){for(var A in e)if(A!=="default"&&!Object.prototype.hasOwnProperty.call(t,A))s(t,e,A)};Object.defineProperty(t,"__esModule",{value:true});r(A(7258),t);r(A(9081),t);r(A(3214),t);r(A(731),t);r(A(6266),t);r(A(3466),t);r(A(8204),t);r(A(3916),t);r(A(6148),t);r(A(4772),t);r(A(7237),t);r(A(3599),t);r(A(4958),t);r(A(3716),t);r(A(7384),t);r(A(436),t);r(A(9809),t);r(A(8935),t);r(A(9834),t);r(A(6244),t);r(A(5215),t);r(A(286),t)},3599:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseBoolean=parseBoolean;const A={1:true,t:true,T:true,true:true,True:true,TRUE:true,0:false,f:false,F:false,false:false,False:false,FALSE:false};function parseBoolean(e,t=false){const s=(e||"").trim();if(s===""){return t}if(!(s in A)){throw new Error(`invalid boolean value "${s}"`)}return A[s]}},4958:function(e,t,A){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.joinKVString=joinKVString;t.joinKVStringForGCloud=joinKVStringForGCloud;t.parseKVString=parseKVString;t.parseKVFile=parseKVFile;t.parseKVJSON=parseKVJSON;t.parseKVYAML=parseKVYAML;t.parseKVStringAndFile=parseKVStringAndFile;const r=s(A(8815));const n=A(9896);const i=A(3916);const o=A(5215);function joinKVString(e,t=","){return Object.entries(e).map((([e,t])=>`${e}=${t}`)).join(t)}function joinKVStringForGCloud(e,t=",.!@#$%&*()_=+~`[]{}|:;<>?🚀🍪🐼"){const A=joinKVString(e,"");if(A===""){return""}const s={};for(let e=0;eA+=e;const setValue=e=>s+=e;let n=setKey;for(let i=0;i=0){n(o);r=-1}else if(o==="\\"){r=i}else if(o==="="){if(A===""){throw new Error(`Invalid start sequence for value (no preceeding key before "=") at ${i}`)}if(n===setValue){n(o)}n=setValue}else if(o==="\n"||o==="\r"||o==="\u2028"||o==="\u2029"||o===","){if(A!==""){t[A.trim()]=s.trim()}A="";s="";n=setKey}else{n(o)}}if(r>=0){throw new Error(`Unterminated escape character at ${r}`)}if(A!==""){t[A.trim()]=s.trim()}return t}function parseKVFile(e){try{const t=(0,o.presence)((0,n.readFileSync)(e,"utf8"));if(!t||t.length<1){return undefined}if(t[0]==="{"||t[0]==="["){return parseKVJSON(t)}if(t.match(/^.+=.+/gi)){return parseKVString(t)}return parseKVYAML(t)}catch(t){const A=(0,i.errorMessage)(t);throw new Error(`Failed to read file '${e}': ${A}`)}}function parseKVJSON(e){e=(e||"").trim();if(!e){return undefined}if(e==="{}"){return{}}try{const t=JSON.parse(e);const A={};for(const[e,s]of Object.entries(t)){if(typeof e!=="string"){throw new SyntaxError(`Failed to parse key "${e}", expected string, got ${typeof e}`)}if(e.trim()===""){throw new SyntaxError(`Failed to parse key "${e}", expected at least one character`)}if(typeof s!=="string"){const t=JSON.stringify(s);throw new SyntaxError(`Failed to parse value "${t}" for "${e}", expected string, got ${typeof s}`)}if(s.trim()===""){throw new SyntaxError(`Value for key "${e}" cannot be empty (got "${s}")`)}A[e]=s}return A}catch(e){const t=(0,i.errorMessage)(e);throw new Error(`Failed to parse KV pairs as JSON: ${t}`)}}function parseKVYAML(e){const t=(e||"").trim();if(!t){return undefined}if(t==="{}"){return{}}const A=r.default.parse(e);const s={};for(const[e,t]of Object.entries(A)){if(typeof e!=="string"||typeof t!=="string"){throw new SyntaxError(`env_vars_file must contain only KEY: VALUE strings. Error parsing key ${e} of type ${typeof e} with value ${t} of type ${typeof t}`)}s[e.trim()]=t.trim()}return s}function parseKVStringAndFile(e,t){e=(e||"").trim();t=(t||"").trim();const A=t?parseKVFile(t):undefined;const s=e?parseKVString(e):undefined;if(A===undefined&&s===undefined){return undefined}return Object.assign({},A,s)}},3716:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.inParallel=inParallel;const s=A(857);const r=A(3916);async function inParallel(e,t){t=Math.min(t||(0,s.cpus)().length-1);if(t<1){throw new Error(`concurrency must be at least 1`)}const A=[];const n=[];const runTasks=async e=>{for await(const[t,s]of e){try{A[t]=await s()}catch(e){n.push((0,r.errorMessage)(e))}}};const i=new Array(t).fill(e.entries()).map(runTasks);await Promise.allSettled(i);if(n.length>0){throw new Error(n.join("\n"))}return A}},7384:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.toPosixPath=toPosixPath;t.toWin32Path=toWin32Path;t.toPlatformPath=toPlatformPath;const s=A(6928);function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}},436:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.randomFilename=randomFilename;t.randomFilepath=randomFilepath;const s=A(6928);const r=A(6982);const n=A(857);function randomFilename(e=12){return(0,r.randomBytes)(e).toString("hex")}function randomFilepath(e=(0,n.tmpdir)(),t=12){return(0,s.join)(e,randomFilename(t))}t["default"]={randomFilename:randomFilename,randomFilepath:randomFilepath}},9809:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.withRetries=withRetries;const s=A(3916);const r=A(9834);const n=100;function withRetries(e,t){const A=t.retries;const i=typeof t?.backoffLimit!=="undefined"?Math.max(t.backoffLimit,0):undefined;let o=t.backoff??n;if(typeof i!=="undefined"){o=Math.min(o,i)}return async function(){let n=A+1;let a=o;const c=i;let l=0;let u="unknown";do{try{return await e()}catch(e){u=(0,s.errorMessage)(e);--n;if(n>0){await(0,r.sleep)(a);let e=l+a;if(typeof c!=="undefined"){e=Math.min(e,Number(c))}l=a;a=e}}}while(n>0);const g=t.retries+1;const h=g===1?`1 attempt`:`${g} attempts`;throw new Error(`retry function failed after ${h}: ${u}`)}}},8935:function(e,t,A){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.setInput=setInput;t.setInputs=setInputs;t.clearInputs=clearInputs;t.clearEnv=clearEnv;t.skipIfMissingEnv=skipIfMissingEnv;t.assertMembers=assertMembers;const r=s(A(4589));function setInput(e,t){const A=`INPUT_${e.replace(/ /g,"_").toUpperCase()}`;process.env[A]=t}function setInputs(e){Object.entries(e).forEach((([e,t])=>setInput(e,t)))}function clearInputs(){clearEnv((e=>e.startsWith(`INPUT_`)))}function clearEnv(e){Object.keys(process.env).forEach((t=>{if(e(t,process.env[t])){delete process.env[t]}}))}function skipIfMissingEnv(...e){for(const t of e){if(!(t in process.env)){return`missing $${t}`}}return false}function assertMembers(e,t){for(let A=0;A<=e.length-t.length;A++){let s=true;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t.parseDuration=parseDuration;t.sleep=sleep;function parseDuration(e){e=(e||"").trim();if(!e){return 0}let t=0;let A="";for(let s=0;ssetTimeout(t,e)))}},6244:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.expandUniverseEndpoints=expandUniverseEndpoints;function expandUniverseEndpoints(e,t="googleapis.com"){const A=Object.assign({});for(const s in e){const r=`GHA_ENDPOINT_OVERRIDE_${s}`;const n=process.env[r];if(n&&n!==""){A[s]=n.replace(/\/+$/,"")}else{A[s]=e[s].replace(/{universe}/g,t).replace(/\/+$/,"")}}return A}},5215:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.presence=presence;t.exactlyOneOf=exactlyOneOf;t.allOf=allOf;function presence(e){return(e||"").trim()||undefined}function exactlyOneOf(...e){e=e||[];let t=false;for(let A=0;A{Object.defineProperty(t,"__esModule",{value:true});t.isPinnedToHead=isPinnedToHead;t.pinnedToHeadWarning=pinnedToHeadWarning;function isPinnedToHead(){const e=process.env.GITHUB_ACTION_REF;return e==="master"||e==="main"}function pinnedToHeadWarning(e){const t=process.env.GITHUB_ACTION_REF;const A=process.env.GITHUB_ACTION_REPOSITORY;return`${A} is pinned at "${t}". We strongly advise against `+`pinning to "@${t}" as it may be unstable. Please update your `+`GitHub Action YAML from:\n`+`\n`+` uses: '${A}@${t}'\n`+`\n`+`to:\n`+`\n`+` uses: '${A}@${e}'\n`+`\n`+`Alternatively, you can pin to any git tag or git SHA in the repository.`}},181:e=>{e.exports=A(181)},6982:e=>{e.exports=A(6982)},9896:e=>{e.exports=A(9896)},1943:e=>{e.exports=A(1943)},4589:e=>{e.exports=A(4589)},857:e=>{e.exports=A(857)},6928:e=>{e.exports=A(6928)},932:e=>{e.exports=A(932)},1493:e=>{e.exports=A(1493)},7349:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(4454);var i=A(2223);var o=A(7103);var a=A(334);var c=A(3142);function resolveCollection(e,t,A,s,r,n){const i=A.type==="block-map"?o.resolveBlockMap(e,t,A,s,n):A.type==="block-seq"?a.resolveBlockSeq(e,t,A,s,n):c.resolveFlowCollection(e,t,A,s,n);const l=i.constructor;if(r==="!"||r===l.tagName){i.tag=l.tagName;return i}if(r)i.tag=r;return i}function composeCollection(e,t,A,o,a){const c=o.tag;const l=!c?null:t.directives.tagName(c.source,(e=>a(c,"TAG_RESOLVE_FAILED",e)));if(A.type==="block-seq"){const{anchor:e,newlineAfterProp:t}=o;const A=e&&c?e.offset>c.offset?e:c:e??c;if(A&&(!t||t.offsete.tag===l&&e.collection===u));if(!g){const s=t.schema.knownTags[l];if(s&&s.collection===u){t.schema.tags.push(Object.assign({},s,{default:false}));g=s}else{if(s){a(c,"BAD_COLLECTION_TYPE",`${s.tag} used for ${u} collection, but expects ${s.collection??"scalar"}`,true)}else{a(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,true)}return resolveCollection(e,t,A,a,l)}}const h=resolveCollection(e,t,A,a,l,g);const E=g.resolve?.(h,(e=>a(c,"TAG_RESOLVE_FAILED",e)),t.options)??h;const f=s.isNode(E)?E:new r.Scalar(E);f.range=h.range;f.tag=l;if(g?.format)f.format=g.format;return f}t.composeCollection=composeCollection},3683:(e,t,A)=>{var s=A(3021);var r=A(5937);var n=A(7788);var i=A(4631);function composeDoc(e,t,{offset:A,start:o,value:a,end:c},l){const u=Object.assign({_directives:t},e);const g=new s.Document(undefined,u);const h={atKey:false,atRoot:true,directives:g.directives,options:g.options,schema:g.schema};const E=i.resolveProps(o,{indicator:"doc-start",next:a??c?.[0],offset:A,onError:l,parentIndent:0,startOnNewline:true});if(E.found){g.directives.docStart=true;if(a&&(a.type==="block-map"||a.type==="block-seq")&&!E.hasNewline)l(E.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}g.contents=a?r.composeNode(h,a,E,l):r.composeEmptyNode(h,E.end,o,null,E,l);const f=g.contents.range[2];const d=n.resolveEnd(c,f,false,l);if(d.comment)g.comment=d.comment;g.range=[A,f,d.offset];return g}t.composeDoc=composeDoc},5937:(e,t,A)=>{var s=A(4065);var r=A(1127);var n=A(7349);var i=A(5413);var o=A(7788);var a=A(2599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,A,s){const o=e.atKey;const{spaceBefore:a,comment:l,anchor:u,tag:g}=A;let h;let E=true;switch(t.type){case"alias":h=composeAlias(e,t,s);if(u||g)s(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":h=i.composeScalar(e,t,g,s);if(u)h.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":h=n.composeCollection(c,e,t,A,s);if(u)h.anchor=u.source.substring(1);break;default:{const r=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;s(t,"UNEXPECTED_TOKEN",r);h=composeEmptyNode(e,t.offset,undefined,null,A,s);E=false}}if(u&&h.anchor==="")s(u,"BAD_ALIAS","Anchor cannot be an empty string");if(o&&e.options.stringKeys&&(!r.isScalar(h)||typeof h.value!=="string"||h.tag&&h.tag!=="tag:yaml.org,2002:str")){const e="With stringKeys, all keys must be strings";s(g??t,"NON_STRING_KEY",e)}if(a)h.spaceBefore=true;if(l){if(t.type==="scalar"&&t.source==="")h.comment=l;else h.commentBefore=l}if(e.options.keepSourceTokens&&E)h.srcToken=t;return h}function composeEmptyNode(e,t,A,s,{spaceBefore:r,comment:n,anchor:o,tag:c,end:l},u){const g={type:"scalar",offset:a.emptyScalarPosition(t,A,s),indent:-1,source:""};const h=i.composeScalar(e,g,c,u);if(o){h.anchor=o.source.substring(1);if(h.anchor==="")u(o,"BAD_ALIAS","Anchor cannot be an empty string")}if(r)h.spaceBefore=true;if(n){h.comment=n;h.range[2]=l}return h}function composeAlias({options:e},{offset:t,source:A,end:r},n){const i=new s.Alias(A.substring(1));if(i.source==="")n(t,"BAD_ALIAS","Alias cannot be an empty string");if(i.source.endsWith(":"))n(t+A.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const a=t+A.length;const c=o.resolveEnd(r,a,e.strict,n);i.range=[t,a,c.offset];if(c.comment)i.comment=c.comment;return i}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(8913);var i=A(6842);function composeScalar(e,t,A,o){const{value:a,type:c,comment:l,range:u}=t.type==="block-scalar"?n.resolveBlockScalar(e,t,o):i.resolveFlowScalar(t,e.options.strict,o);const g=A?e.directives.tagName(A.source,(e=>o(A,"TAG_RESOLVE_FAILED",e))):null;let h;if(e.options.stringKeys&&e.atKey){h=e.schema[s.SCALAR]}else if(g)h=findScalarTagByName(e.schema,a,g,A,o);else if(t.type==="scalar")h=findScalarTagByTest(e,a,t,o);else h=e.schema[s.SCALAR];let E;try{const n=h.resolve(a,(e=>o(A??t,"TAG_RESOLVE_FAILED",e)),e.options);E=s.isScalar(n)?n:new r.Scalar(n)}catch(e){const s=e instanceof Error?e.message:String(e);o(A??t,"TAG_RESOLVE_FAILED",s);E=new r.Scalar(a)}E.range=u;E.source=a;if(c)E.type=c;if(g)E.tag=g;if(h.format)E.format=h.format;if(l)E.comment=l;return E}function findScalarTagByName(e,t,A,r,n){if(A==="!")return e[s.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===A){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const o=e.knownTags[A];if(o&&!o.collection){e.tags.push(Object.assign({},o,{default:false,test:undefined}));return o}n(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${A}`,A!=="tag:yaml.org,2002:str");return e[s.SCALAR]}function findScalarTagByTest({atKey:e,directives:t,schema:A},r,n,i){const o=A.tags.find((t=>(t.default===true||e&&t.default==="key")&&t.test?.test(r)))||A[s.SCALAR];if(A.compat){const e=A.compat.find((e=>e.default&&e.test?.test(r)))??A[s.SCALAR];if(o.tag!==e.tag){const A=t.tagString(o.tag);const s=t.tagString(e.tag);const r=`Value may be parsed as either ${A} or ${s}`;i(n,"TAG_RESOLVE_FAILED",r,true)}}return o}t.composeScalar=composeScalar},9984:(e,t,A)=>{var s=A(932);var r=A(1342);var n=A(3021);var i=A(1464);var o=A(1127);var a=A(3683);var c=A(7788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:A}=e;return[t,t+(typeof A==="string"?A.length:1)]}function parsePrelude(e){let t="";let A=false;let s=false;for(let r=0;r{const r=getErrorPos(e);if(s)this.warnings.push(new i.YAMLWarning(r,t,A));else this.errors.push(new i.YAMLParseError(r,t,A))};this.directives=new r.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:A,afterEmptyLine:s}=parsePrelude(this.prelude);if(A){const r=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${A}`:A}else if(s||e.directives.docStart||!r){e.commentBefore=A}else if(o.isCollection(r)&&!r.flow&&r.items.length>0){let e=r.items[0];if(o.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${A}\n${t}`:A}else{const e=r.commentBefore;r.commentBefore=e?`${A}\n${e}`:A}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,A=-1){for(const t of e)yield*this.next(t);yield*this.end(t,A)}*next(e){if(s.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,A,s)=>{const r=getErrorPos(e);r[0]+=t;this.onError(r,"BAD_DIRECTIVE",A,s)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const A=new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(A);else this.doc.errors.push(A);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const A=new n.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");A.range=[0,t,t];this.decorate(A,false);yield A}}}t.Composer=Composer},7103:(e,t,A)=>{var s=A(7165);var r=A(4454);var n=A(4631);var i=A(9499);var o=A(4051);var a=A(1187);const c="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},A,l,u,g){const h=g?.nodeClass??r.YAMLMap;const E=new h(A.schema);if(A.atRoot)A.atRoot=false;let f=l.offset;let d=null;for(const r of l.items){const{start:g,key:h,sep:C,value:Q}=r;const I=n.resolveProps(g,{indicator:"explicit-key-ind",next:h??C?.[0],offset:f,onError:u,parentIndent:l.indent,startOnNewline:true});const B=!I.found;if(B){if(h){if(h.type==="block-seq")u(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in h&&h.indent!==l.indent)u(f,"BAD_INDENT",c)}if(!I.anchor&&!I.tag&&!C){d=I.end;if(I.comment){if(E.comment)E.comment+="\n"+I.comment;else E.comment=I.comment}continue}if(I.newlineAfterProp||i.containsNewline(h)){u(h??g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==l.indent){u(f,"BAD_INDENT",c)}A.atKey=true;const p=I.end;const y=h?e(A,h,I,u):t(A,p,g,null,I,u);if(A.schema.compat)o.flowIndentCheck(l.indent,h,u);A.atKey=false;if(a.mapIncludes(A,E.items,y))u(p,"DUPLICATE_KEY","Map keys must be unique");const m=n.resolveProps(C??[],{indicator:"map-value-ind",next:Q,offset:y.range[2],onError:u,parentIndent:l.indent,startOnNewline:!h||h.type==="block-scalar"});f=m.end;if(m.found){if(B){if(Q?.type==="block-map"&&!m.hasNewline)u(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(A.options.strict&&I.start{var s=A(3301);function resolveBlockScalar(e,t,A){const r=t.offset;const n=parseBlockScalarHeader(t,e.options.strict,A);if(!n)return{value:"",type:null,comment:"",range:[r,r,r]};const i=n.mode===">"?s.Scalar.BLOCK_FOLDED:s.Scalar.BLOCK_LITERAL;const o=t.source?splitLines(t.source):[];let a=o.length;for(let e=o.length-1;e>=0;--e){const t=o[e][1];if(t===""||t==="\r")a=e;else break}if(a===0){const e=n.chomp==="+"&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"";let A=r+n.length;if(t.source)A+=t.source.length;return{value:e,type:i,comment:n.comment,range:[r,A,A]}}let c=t.indent+n.indent;let l=t.offset+n.length;let u=0;for(let t=0;tc)c=s.length}else{if(s.length=a;--e){if(o[e][0].length>c)a=e+1}let g="";let h="";let E=false;for(let e=0;ec||r[0]==="\t"){if(h===" ")h="\n";else if(!E&&h==="\n")h="\n\n";g+=h+t.slice(c)+r;h="\n";E=true}else if(r===""){if(h==="\n")g+="\n";else h="\n"}else{g+=h+r;h=" ";E=false}}switch(n.chomp){case"-":break;case"+":for(let e=a;e{var s=A(2223);var r=A(4631);var n=A(4051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},A,i,o,a){const c=a?.nodeClass??s.YAMLSeq;const l=new c(A.schema);if(A.atRoot)A.atRoot=false;if(A.atKey)A.atKey=false;let u=i.offset;let g=null;for(const{start:s,value:a}of i.items){const c=r.resolveProps(s,{indicator:"seq-item-ind",next:a,offset:u,onError:o,parentIndent:i.indent,startOnNewline:true});if(!c.found){if(c.anchor||c.tag||a){if(a&&a.type==="block-seq")o(c.end,"BAD_INDENT","All sequence items must start at the same column");else o(u,"MISSING_CHAR","Sequence item without - indicator")}else{g=c.end;if(c.comment)l.comment=c.comment;continue}}const h=a?e(A,a,c,o):t(A,c.end,s,null,c,o);if(A.schema.compat)n.flowIndentCheck(i.indent,a,o);u=h.range[2];l.items.push(h)}l.range=[i.offset,u,g??u];return l}t.resolveBlockSeq=resolveBlockSeq},7788:(e,t)=>{function resolveEnd(e,t,A,s){let r="";if(e){let n=false;let i="";for(const o of e){const{source:e,type:a}=o;switch(a){case"space":n=true;break;case"comment":{if(A&&!n)s(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!r)r=t;else r+=i+t;i="";break}case"newline":if(r)i+=e;n=true;break;default:s(o,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}t+=e.length}}return{comment:r,offset:t}}t.resolveEnd=resolveEnd},3142:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(4454);var i=A(2223);var o=A(7788);var a=A(4631);var c=A(9499);var l=A(1187);const u="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},A,g,h,E){const f=g.start.source==="{";const d=f?"flow map":"flow sequence";const C=E?.nodeClass??(f?n.YAMLMap:i.YAMLSeq);const Q=new C(A.schema);Q.flow=true;const I=A.atRoot;if(I)A.atRoot=false;if(A.atKey)A.atKey=false;let B=g.offset+g.start.source.length;for(let i=0;i0){const e=o.resolveEnd(m,w,A.options.strict,h);if(e.comment){if(Q.comment)Q.comment+="\n"+e.comment;else Q.comment=e.comment}Q.range=[g.offset,w,e.offset]}else{Q.range=[g.offset,w,w]}return Q}t.resolveFlowCollection=resolveFlowCollection},6842:(e,t,A)=>{var s=A(3301);var r=A(7788);function resolveFlowScalar(e,t,A){const{offset:n,type:i,source:o,end:a}=e;let c;let l;const _onError=(e,t,s)=>A(n+e,t,s);switch(i){case"scalar":c=s.Scalar.PLAIN;l=plainValue(o,_onError);break;case"single-quoted-scalar":c=s.Scalar.QUOTE_SINGLE;l=singleQuotedValue(o,_onError);break;case"double-quoted-scalar":c=s.Scalar.QUOTE_DOUBLE;l=doubleQuotedValue(o,_onError);break;default:A(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[n,n+o.length,n+o.length]}}const u=n+o.length;const g=r.resolveEnd(a,u,t,A);return{value:l,type:c,comment:g.comment,range:[n,u,g.offset]}}function plainValue(e,t){let A="";switch(e[0]){case"\t":A="a tab character";break;case",":A="flow indicator character ,";break;case"%":A="directive indicator character %";break;case"|":case">":{A=`block scalar indicator ${e[0]}`;break}case"@":case"`":{A=`reserved character ${e[0]}`;break}}if(A)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${A}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,A;try{t=new RegExp("(.*?)(?t?e.slice(t,s+1):r}else{A+=r}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return A}function foldNewline(e,t){let A="";let s=e[t+1];while(s===" "||s==="\t"||s==="\n"||s==="\r"){if(s==="\r"&&e[t+2]!=="\n")break;if(s==="\n")A+="\n";t+=1;s=e[t+1]}if(!A)A=" ";return{fold:A,offset:t}}const n={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,A,s){const r=e.substr(t,A);const n=r.length===A&&/^[0-9a-fA-F]+$/.test(r);const i=n?parseInt(r,16):NaN;if(isNaN(i)){const r=e.substr(t-2,A+2);s(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`);return r}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},4631:(e,t)=>{function resolveProps(e,{flow:t,indicator:A,next:s,offset:r,onError:n,parentIndent:i,startOnNewline:o}){let a=false;let c=o;let l=o;let u="";let g="";let h=false;let E=false;let f=null;let d=null;let C=null;let Q=null;let I=null;let B=null;let p=null;for(const r of e){if(E){if(r.type!=="space"&&r.type!=="newline"&&r.type!=="comma")n(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");E=false}if(f){if(c&&r.type!=="comment"&&r.type!=="newline"){n(f,"TAB_AS_INDENT","Tabs are not allowed as indentation")}f=null}switch(r.type){case"space":if(!t&&(A!=="doc-start"||s?.type!=="flow-collection")&&r.source.includes("\t")){f=r}l=true;break;case"comment":{if(!l)n(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";if(!u)u=e;else u+=g+e;g="";c=false;break}case"newline":if(c){if(u)u+=r.source;else if(!B||A!=="seq-item-ind")a=true}else g+=r.source;c=true;h=true;if(d||C)Q=r;l=true;break;case"anchor":if(d)n(r,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(r.source.endsWith(":"))n(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);d=r;p??(p=r.offset);c=false;l=false;E=true;break;case"tag":{if(C)n(r,"MULTIPLE_TAGS","A node can have at most one tag");C=r;p??(p=r.offset);c=false;l=false;E=true;break}case A:if(d||C)n(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`);if(B)n(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`);B=r;c=A==="seq-item-ind"||A==="explicit-key-ind";l=false;break;case"comma":if(t){if(I)n(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=r;c=false;l=false;break}default:n(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`);c=false;l=false}}const y=e[e.length-1];const m=y?y.offset+y.source.length:r;if(E&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")){n(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(f&&(c&&f.indent<=i||s?.type==="block-map"||s?.type==="block-seq"))n(f,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:B,spaceBefore:a,comment:u,hasNewline:h,anchor:d,tag:C,newlineAfterProp:Q,end:m,start:p??m}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},2599:(e,t)=>{function emptyScalarPosition(e,t,A){if(t){A??(A=t.length);for(let s=A-1;s>=0;--s){let A=t[s];switch(A.type){case"space":case"comment":case"newline":e-=A.source.length;continue}A=t[++s];while(A?.type==="space"){e+=A.source.length;A=t[++s]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},4051:(e,t,A)=>{var s=A(9499);function flowIndentCheck(e,t,A){if(t?.type==="flow-collection"){const r=t.end[0];if(r.indent===e&&(r.source==="]"||r.source==="}")&&s.containsNewline(t)){const e="Flow end indicator should be more indented than parent";A(r,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},1187:(e,t,A)=>{var s=A(1127);function mapIncludes(e,t,A){const{uniqueKeys:r}=e.options;if(r===false)return false;const n=typeof r==="function"?r:(e,t)=>e===t||s.isScalar(e)&&s.isScalar(t)&&e.value===t.value;return t.some((e=>n(e.key,A)))}t.mapIncludes=mapIncludes},3021:(e,t,A)=>{var s=A(4065);var r=A(101);var n=A(1127);var i=A(7165);var o=A(4043);var a=A(5840);var c=A(6829);var l=A(1596);var u=A(3661);var g=A(2404);var h=A(1342);class Document{constructor(e,t,A){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,n.NODE_TYPE,{value:n.DOC});let s=null;if(typeof t==="function"||Array.isArray(t)){s=t}else if(A===undefined&&t){A=t;t=undefined}const r=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,stringKeys:false,uniqueKeys:true,version:"1.2"},A);this.options=r;let{version:i}=r;if(A?._directives){this.directives=A._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new h.Directives({version:i});this.setSchema(i,A);this.contents=e===undefined?null:this.createNode(e,s,A)}clone(){const e=Object.create(Document.prototype,{[n.NODE_TYPE]:{value:n.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=n.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const A=l.anchorNames(this);e.anchor=!t||A.has(t)?l.findNewAnchor(t||"a",A):t}return new s.Alias(e.anchor)}createNode(e,t,A){let s=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);s=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);s=t}else if(A===undefined&&t){A=t;t=undefined}const{aliasDuplicateObjects:r,anchorPrefix:i,flow:o,keepUndefined:a,onTagObj:c,tag:u}=A??{};const{onAnchor:h,setAnchors:E,sourceObjects:f}=l.createNodeAnchors(this,i||"a");const d={aliasDuplicateObjects:r??true,keepUndefined:a??false,onAnchor:h,onTagObj:c,replacer:s,schema:this.schema,sourceObjects:f};const C=g.createNode(e,u,d);if(o&&n.isCollection(C))C.flow=true;E();return C}createPair(e,t,A={}){const s=this.createNode(e,null,A);const r=this.createNode(t,null,A);return new i.Pair(s,r)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(r.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return n.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(r.isEmptyPath(e))return!t&&n.isScalar(this.contents)?this.contents.value:this.contents;return n.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return n.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(r.isEmptyPath(e))return this.contents!==undefined;return n.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=r.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(r.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=r.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let A;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new h.Directives({version:"1.1"});A={resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new h.Directives({version:e});A={resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;A=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(A)this.schema=new a.Schema(Object.assign(A,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:A,maxAliasCount:s,onAnchor:r,reviver:n}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:A===true,mapKeyWarned:false,maxAliasCount:typeof s==="number"?s:100};const a=o.toJS(this.contents,t??"",i);if(typeof r==="function")for(const{count:e,res:t}of i.anchors.values())r(t,e);return typeof n==="function"?u.applyReviver(n,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return c.stringifyDocument(this,e)}}function assertCollection(e){if(n.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},1596:(e,t,A)=>{var s=A(1127);var r=A(204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const A=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(A)}return true}function anchorNames(e){const t=new Set;r.visit(e,{Value(e,A){if(A.anchor)t.add(A.anchor)}});return t}function findNewAnchor(e,t){for(let A=1;true;++A){const s=`${e}${A}`;if(!t.has(s))return s}}function createNodeAnchors(e,t){const A=[];const r=new Map;let n=null;return{onAnchor:s=>{A.push(s);n??(n=anchorNames(e));const r=findNewAnchor(t,n);n.add(r);return r},setAnchors:()=>{for(const e of A){const t=r.get(e);if(typeof t==="object"&&t.anchor&&(s.isScalar(t.node)||s.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:r}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},3661:(e,t)=>{function applyReviver(e,t,A,s){if(s&&typeof s==="object"){if(Array.isArray(s)){for(let t=0,A=s.length;t{var s=A(4065);var r=A(1127);var n=A(3301);const i="tag:yaml.org,2002:";function findTagObject(e,t,A){if(t){const e=A.filter((e=>e.tag===t));const s=e.find((e=>!e.format))??e[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return A.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,A){if(r.isDocument(e))e=e.contents;if(r.isNode(e))return e;if(r.isPair(e)){const t=A.schema[r.MAP].createNode?.(A.schema,null,A);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:o,onAnchor:a,onTagObj:c,schema:l,sourceObjects:u}=A;let g=undefined;if(o&&e&&typeof e==="object"){g=u.get(e);if(g){g.anchor??(g.anchor=a(e));return new s.Alias(g.anchor)}else{g={anchor:null,node:null};u.set(e,g)}}if(t?.startsWith("!!"))t=i+t.slice(2);let h=findTagObject(e,t,l.tags);if(!h){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new n.Scalar(e);if(g)g.node=t;return t}h=e instanceof Map?l[r.MAP]:Symbol.iterator in Object(e)?l[r.SEQ]:l[r.MAP]}if(c){c(h);delete A.onTagObj}const E=h?.createNode?h.createNode(A.schema,e,A):typeof h?.nodeClass?.from==="function"?h.nodeClass.from(A.schema,e,A):new n.Scalar(e);if(t)E.tag=t;else if(!h.default)E.tag=h.tag;if(g)g.node=E;return E}t.createNode=createNode},1342:(e,t,A)=>{var s=A(1127);var r=A(204);const n={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>n[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const A=e.trim().split(/[ \t]+/);const s=A.shift();switch(s){case"%TAG":{if(A.length!==2){t(0,"%TAG directive should contain exactly two parts");if(A.length<2)return false}const[e,s]=A;this.tags[e]=s;return true}case"%YAML":{this.yaml.explicit=true;if(A.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=A;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const A=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,A);return false}}default:t(0,`Unknown directive ${s}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const A=e.slice(2,-1);if(A==="!"||A==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return A}const[,A,s]=e.match(/^(.*!)([^!]*)$/s);if(!s)t(`The ${e} tag has no suffix`);const r=this.tags[A];if(r){try{return r+decodeURIComponent(s)}catch(e){t(String(e));return null}}if(A==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,A]of Object.entries(this.tags)){if(e.startsWith(A))return t+escapeTagName(e.substring(A.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const A=Object.entries(this.tags);let n;if(e&&A.length>0&&s.isNode(e.contents)){const t={};r.visit(e.contents,((e,A)=>{if(s.isNode(A)&&A.tag)t[A.tag]=true}));n=Object.keys(t)}else n=[];for(const[s,r]of A){if(s==="!!"&&r==="tag:yaml.org,2002:")continue;if(!e||n.some((e=>e.startsWith(r))))t.push(`%TAG ${s} ${r}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},1464:(e,t)=>{class YAMLError extends Error{constructor(e,t,A,s){super();this.name=e;this.code=A;this.message=s;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,A){super("YAMLParseError",e,t,A)}}class YAMLWarning extends YAMLError{constructor(e,t,A){super("YAMLWarning",e,t,A)}}const prettifyError=(e,t)=>A=>{if(A.pos[0]===-1)return;A.linePos=A.pos.map((e=>t.linePos(e)));const{line:s,col:r}=A.linePos[0];A.message+=` at line ${s}, column ${r}`;let n=r-1;let i=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(n>=60&&i.length>80){const e=Math.min(n-39,i.length-79);i="…"+i.substring(e);n-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(s>1&&/^ *$/.test(i.substring(0,n))){let A=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);if(A.length>80)A=A.substring(0,79)+"…\n";i=A+i}if(/[^ ]/.test(i)){let e=1;const t=A.linePos[1];if(t&&t.line===s&&t.col>r){e=Math.max(1,Math.min(t.col-r,80-n))}const o=" ".repeat(n)+"^".repeat(e);A.message+=`:\n\n${i}\n${o}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},8815:(e,t,A)=>{var s=A(9984);var r=A(3021);var n=A(5840);var i=A(1464);var o=A(4065);var a=A(1127);var c=A(7165);var l=A(3301);var u=A(4454);var g=A(2223);var h=A(3461);var E=A(361);var f=A(6628);var d=A(3456);var C=A(4047);var Q=A(204);t.Composer=s.Composer;t.Document=r.Document;t.Schema=n.Schema;t.YAMLError=i.YAMLError;t.YAMLParseError=i.YAMLParseError;t.YAMLWarning=i.YAMLWarning;t.Alias=o.Alias;t.isAlias=a.isAlias;t.isCollection=a.isCollection;t.isDocument=a.isDocument;t.isMap=a.isMap;t.isNode=a.isNode;t.isPair=a.isPair;t.isScalar=a.isScalar;t.isSeq=a.isSeq;t.Pair=c.Pair;t.Scalar=l.Scalar;t.YAMLMap=u.YAMLMap;t.YAMLSeq=g.YAMLSeq;t.CST=h;t.Lexer=E.Lexer;t.LineCounter=f.LineCounter;t.Parser=d.Parser;t.parse=C.parse;t.parseAllDocuments=C.parseAllDocuments;t.parseDocument=C.parseDocument;t.stringify=C.stringify;t.visit=Q.visit;t.visitAsync=Q.visitAsync},7249:(e,t,A)=>{var s=A(932);function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof s.emitWarning==="function")s.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,A)=>{var s=A(1596);var r=A(204);var n=A(1127);var i=A(6673);var o=A(4043);class Alias extends i.NodeBase{constructor(e){super(n.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let A;if(t?.aliasResolveCache){A=t.aliasResolveCache}else{A=[];r.visit(e,{Node:(e,t)=>{if(n.isAlias(t)||n.hasAnchor(t))A.push(t)}});if(t)t.aliasResolveCache=A}let s=undefined;for(const e of A){if(e===this)break;if(e.anchor===this.source)s=e}return s}toJSON(e,t){if(!t)return{source:this.source};const{anchors:A,doc:s,maxAliasCount:r}=t;const n=this.resolve(s,t);if(!n){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=A.get(n);if(!i){o.toJS(n,null,t);i=A.get(n)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(r>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(s,n,A);if(i.count*i.aliasCount>r){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,A){const r=`*${this.source}`;if(e){s.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function getAliasCount(e,t,A){if(n.isAlias(t)){const s=t.resolve(e);const r=A&&s&&A.get(s);return r?r.count*r.aliasCount:0}else if(n.isCollection(t)){let s=0;for(const r of t.items){const t=getAliasCount(e,r,A);if(t>s)s=t}return s}else if(n.isPair(t)){const s=getAliasCount(e,t.key,A);const r=getAliasCount(e,t.value,A);return Math.max(s,r)}return 1}t.Alias=Alias},101:(e,t,A)=>{var s=A(2404);var r=A(1127);var n=A(6673);function collectionFromPath(e,t,A){let r=A;for(let e=t.length-1;e>=0;--e){const A=t[e];if(typeof A==="number"&&Number.isInteger(A)&&A>=0){const e=[];e[A]=r;r=e}else{r=new Map([[A,r]])}}return s.createNode(r,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends n.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>r.isNode(t)||r.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[A,...s]=e;const n=this.get(A,true);if(r.isCollection(n))n.addIn(s,t);else if(n===undefined&&this.schema)this.set(A,collectionFromPath(this.schema,s,t));else throw new Error(`Expected YAML collection at ${A}. Remaining path: ${s}`)}}deleteIn(e){const[t,...A]=e;if(A.length===0)return this.delete(t);const s=this.get(t,true);if(r.isCollection(s))return s.deleteIn(A);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${A}`)}getIn(e,t){const[A,...s]=e;const n=this.get(A,true);if(s.length===0)return!t&&r.isScalar(n)?n.value:n;else return r.isCollection(n)?n.getIn(s,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!r.isPair(t))return false;const A=t.value;return A==null||e&&r.isScalar(A)&&A.value==null&&!A.commentBefore&&!A.comment&&!A.tag}))}hasIn(e){const[t,...A]=e;if(A.length===0)return this.has(t);const s=this.get(t,true);return r.isCollection(s)?s.hasIn(A):false}setIn(e,t){const[A,...s]=e;if(s.length===0){this.set(A,t)}else{const e=this.get(A,true);if(r.isCollection(e))e.setIn(s,t);else if(e===undefined&&this.schema)this.set(A,collectionFromPath(this.schema,s,t));else throw new Error(`Expected YAML collection at ${A}. Remaining path: ${s}`)}}}t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},6673:(e,t,A)=>{var s=A(3661);var r=A(1127);var n=A(4043);class NodeBase{constructor(e){Object.defineProperty(this,r.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:A,onAnchor:i,reviver:o}={}){if(!r.isDocument(e))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof A==="number"?A:100};const c=n.toJS(this,"",a);if(typeof i==="function")for(const{count:e,res:t}of a.anchors.values())i(t,e);return typeof o==="function"?s.applyReviver(o,{"":c},"",c):c}}t.NodeBase=NodeBase},7165:(e,t,A)=>{var s=A(2404);var r=A(9748);var n=A(7104);var i=A(1127);function createPair(e,t,A){const r=s.createNode(e,undefined,A);const n=s.createNode(t,undefined,A);return new Pair(r,n)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:A}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(A))A=A.clone(e);return new Pair(t,A)}toJSON(e,t){const A=t?.mapAsMap?new Map:{};return n.addPairToJSMap(t,A,this)}toString(e,t,A){return e?.doc?r.stringifyPair(this,e,t,A):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},3301:(e,t,A)=>{var s=A(1127);var r=A(6673);var n=A(4043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends r.NodeBase{constructor(e){super(s.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:n.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},4454:(e,t,A)=>{var s=A(1212);var r=A(7104);var n=A(101);var i=A(1127);var o=A(7165);var a=A(3301);function findPair(e,t){const A=i.isScalar(t)?t.value:t;for(const s of e){if(i.isPair(s)){if(s.key===t||s.key===A)return s;if(i.isScalar(s.key)&&s.key.value===A)return s}}return undefined}class YAMLMap extends n.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,A){const{keepUndefined:s,replacer:r}=A;const n=new this(e);const add=(e,i)=>{if(typeof r==="function")i=r.call(t,e,i);else if(Array.isArray(r)&&!r.includes(e))return;if(i!==undefined||s)n.items.push(o.createPair(e,i,A))};if(t instanceof Map){for(const[e,A]of t)add(e,A)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){n.items.sort(e.sortMapEntries)}return n}add(e,t){let A;if(i.isPair(e))A=e;else if(!e||typeof e!=="object"||!("key"in e)){A=new o.Pair(e,e?.value)}else A=new o.Pair(e.key,e.value);const s=findPair(this.items,A.key);const r=this.schema?.sortMapEntries;if(s){if(!t)throw new Error(`Key ${A.key} already set`);if(i.isScalar(s.value)&&a.isScalarValue(A.value))s.value.value=A.value;else s.value=A.value}else if(r){const e=this.items.findIndex((e=>r(A,e)<0));if(e===-1)this.items.push(A);else this.items.splice(e,0,A)}else{this.items.push(A)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const A=this.items.splice(this.items.indexOf(t),1);return A.length>0}get(e,t){const A=findPair(this.items,e);const s=A?.value;return(!t&&i.isScalar(s)?s.value:s)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new o.Pair(e,t),true)}toJSON(e,t,A){const s=A?new A:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(s);for(const e of this.items)r.addPairToJSMap(t,s,e);return s}toString(e,t,A){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return s.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:A,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},2223:(e,t,A)=>{var s=A(2404);var r=A(1212);var n=A(101);var i=A(1127);var o=A(3301);var a=A(4043);class YAMLSeq extends n.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const A=this.items.splice(t,1);return A.length>0}get(e,t){const A=asItemIndex(e);if(typeof A!=="number")return undefined;const s=this.items[A];return!t&&i.isScalar(s)?s.value:s}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},7104:(e,t,A)=>{var s=A(7249);var r=A(452);var n=A(2148);var i=A(1127);var o=A(4043);function addPairToJSMap(e,t,{key:A,value:s}){if(i.isNode(A)&&A.addToJSMap)A.addToJSMap(e,t,s);else if(r.isMergeKey(e,A))r.addMergeToJSMap(e,t,s);else{const r=o.toJS(A,"",e);if(t instanceof Map){t.set(r,o.toJS(s,r,e))}else if(t instanceof Set){t.add(r)}else{const n=stringifyKey(A,r,e);const i=o.toJS(s,n,e);if(n in t)Object.defineProperty(t,n,{value:i,writable:true,enumerable:true,configurable:true});else t[n]=i}}return t}function stringifyKey(e,t,A){if(t===null)return"";if(typeof t!=="object")return String(t);if(i.isNode(e)&&A?.doc){const t=n.createStringifyContext(A.doc,{});t.anchors=new Set;for(const e of A.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const r=e.toString(t);if(!A.mapKeyWarned){let e=JSON.stringify(r);if(e.length>40)e=e.substring(0,36)+'..."';s.warn(A.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);A.mapKeyWarned=true}return r}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},1127:(e,t)=>{const A=Symbol.for("yaml.alias");const s=Symbol.for("yaml.document");const r=Symbol.for("yaml.map");const n=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const o=Symbol.for("yaml.seq");const a=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[a]===A;const isDocument=e=>!!e&&typeof e==="object"&&e[a]===s;const isMap=e=>!!e&&typeof e==="object"&&e[a]===r;const isPair=e=>!!e&&typeof e==="object"&&e[a]===n;const isScalar=e=>!!e&&typeof e==="object"&&e[a]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[a]===o;function isCollection(e){if(e&&typeof e==="object")switch(e[a]){case r:case o:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[a]){case A:case r:case i:case o:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=A;t.DOC=s;t.MAP=r;t.NODE_TYPE=a;t.PAIR=n;t.SCALAR=i;t.SEQ=o;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},4043:(e,t,A)=>{var s=A(1127);function toJS(e,t,A){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),A)));if(e&&typeof e.toJSON==="function"){if(!A||!s.hasAnchor(e))return e.toJSON(t,A);const r={aliasCount:0,count:1,res:undefined};A.anchors.set(e,r);A.onCreate=e=>{r.res=e;delete A.onCreate};const n=e.toJSON(t,A);if(A.onCreate)A.onCreate(n);return n}if(typeof e==="bigint"&&!A?.keep)return Number(e);return e}t.toJS=toJS},110:(e,t,A)=>{var s=A(8913);var r=A(6842);var n=A(1464);var i=A(3069);function resolveAsScalar(e,t=true,A){if(e){const _onError=(e,t,s)=>{const r=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(A)A(r,t,s);else throw new n.YAMLParseError([r,r+1],t,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return r.resolveFlowScalar(e,t,_onError);case"block-scalar":return s.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:A=false,indent:s,inFlow:r=false,offset:n=-1,type:o="PLAIN"}=t;const a=i.stringifyString({type:o,value:e},{implicitKey:A,indent:s>0?" ".repeat(s):"",inFlow:r,options:{blockQuote:true,lineWidth:-1}});const c=t.end??[{type:"newline",offset:-1,indent:s,source:"\n"}];switch(a[0]){case"|":case">":{const e=a.indexOf("\n");const t=a.substring(0,e);const A=a.substring(e+1)+"\n";const r=[{type:"block-scalar-header",offset:n,indent:s,source:t}];if(!addEndtoBlockProps(r,c))r.push({type:"newline",offset:-1,indent:s,source:"\n"});return{type:"block-scalar",offset:n,indent:s,props:r,source:A}}case'"':return{type:"double-quoted-scalar",offset:n,indent:s,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:n,indent:s,source:a,end:c};default:return{type:"scalar",offset:n,indent:s,source:a,end:c}}}function setScalarValue(e,t,A={}){let{afterKey:s=false,implicitKey:r=false,inFlow:n=false,type:o}=A;let a="indent"in e?e.indent:null;if(s&&typeof a==="number")a+=2;if(!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const c=i.stringifyString({type:o,value:t},{implicitKey:r||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:n,options:{blockQuote:true,lineWidth:-1}});switch(c[0]){case"|":case">":setBlockScalarValue(e,c);break;case'"':setFlowScalarValue(e,c,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,c,"single-quoted-scalar");break;default:setFlowScalarValue(e,c,"scalar")}}function setBlockScalarValue(e,t){const A=t.indexOf("\n");const s=t.substring(0,A);const r=t.substring(A+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=s;e.source=r}else{const{offset:t}=e;const A="indent"in e?e.indent:-1;const n=[{type:"block-scalar-header",offset:t,indent:A,source:s}];if(!addEndtoBlockProps(n,"end"in e?e.end:undefined))n.push({type:"newline",offset:-1,indent:A,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:A,props:n,source:r})}}function addEndtoBlockProps(e,t){if(t)for(const A of t)switch(A.type){case"space":case"comment":e.push(A);break;case"newline":e.push(A);return true}return false}function setFlowScalarValue(e,t,A){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=A;e.source=t;break;case"block-scalar":{const s=e.props.slice(1);let r=t.length;if(e.props[0].type==="block-scalar-header")r-=e.props[0].source.length;for(const e of s)e.offset+=r;delete e.props;Object.assign(e,{type:A,source:t,end:s});break}case"block-map":case"block-seq":{const s=e.offset+t.length;const r={type:"newline",offset:s,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:A,source:t,end:[r]});break}default:{const s="indent"in e?e.indent:-1;const r="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:A,indent:s,source:t,end:r})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},1733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const A of e.props)t+=stringifyToken(A);return t+e.source}case"block-map":case"block-seq":{let t="";for(const A of e.items)t+=stringifyItem(A);return t}case"flow-collection":{let t=e.start.source;for(const A of e.items)t+=stringifyItem(A);for(const A of e.end)t+=A.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const A of e.end)t+=A.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const A of e.end)t+=A.source;return t}}}function stringifyItem({start:e,key:t,sep:A,value:s}){let r="";for(const t of e)r+=t.source;if(t)r+=stringifyToken(t);if(A)for(const e of A)r+=e.source;if(s)r+=stringifyToken(s);return r}t.stringify=stringify},7715:(e,t)=>{const A=Symbol("break visit");const s=Symbol("skip children");const r=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=A;visit.SKIP=s;visit.REMOVE=r;visit.itemAtPath=(e,t)=>{let A=e;for(const[e,s]of t){const t=A?.[e];if(t&&"items"in t){A=t.items[s]}else return undefined}return A};visit.parentCollection=(e,t)=>{const A=visit.itemAtPath(e,t.slice(0,-1));const s=t[t.length-1][0];const r=A?.[s];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function _visit(e,t,s){let n=s(t,e);if(typeof n==="symbol")return n;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t{var s=A(110);var r=A(1733);var n=A(7715);const i="\ufeff";const o="";const a="";const c="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case o:return"";case a:return"";case c:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case o:return"doc-mode";case a:return"flow-error-end";case c:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=s.createScalarToken;t.resolveAsScalar=s.resolveAsScalar;t.setScalarValue=s.setScalarValue;t.stringify=r.stringify;t.visit=n.visit;t.BOM=i;t.DOCUMENT=o;t.FLOW_END=a;t.SCALAR=c;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},361:(e,t,A)=>{var s=A(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const r=new Set("0123456789ABCDEFabcdef");const n=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const o=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||o.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let A=this.next??"stream";while(A&&(t||this.hasChars(1)))A=yield*this.parseNext(A)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let A=0;while(t===" ")t=this.buffer[++A+e];if(t==="\r"){const t=this.buffer[A+e+1];if(t==="\n"||!t&&!this.atEnd)return e+A+1}return t==="\n"||A>=this.indentNext||!t&&!this.atEnd?e+A:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&ðis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let A=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=A=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const r=this.getLine();if(r===null)return this.setNext("flow");if(A!==-1&&A"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let A;e:for(let s=this.pos;A=this.buffer[s];++s){switch(A){case" ":t+=1;break;case"\n":e=s;t=0;break;case"\r":{const e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!A&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let r=e+1;A=this.buffer[r];while(A===" ")A=this.buffer[++r];if(A==="\t"){while(A==="\t"||A===" "||A==="\r"||A==="\n")A=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep){do{let A=e-1;let s=this.buffer[A];if(s==="\r")s=this.buffer[--A];const r=A;while(s===" ")s=this.buffer[--A];if(s==="\n"&&A>=this.pos&&A+1+t>r)e=A;else break}while(true)}yield s.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let A=this.pos-1;let r;while(r=this.buffer[++A]){if(r===":"){const s=this.buffer[A+1];if(isEmpty(s)||e&&i.has(s))break;t=A}else if(isEmpty(r)){let s=this.buffer[A+1];if(r==="\r"){if(s==="\n"){A+=1;r="\n";s=this.buffer[A+1]}else t=A}if(s==="#"||e&&i.has(s))break;if(r==="\n"){const e=this.continueScalar(A+1);if(e===-1)break;A=Math.max(A,e-2)}}else{if(e&&i.has(r))break;t=A}}if(!r&&!this.atEnd)return this.setNext("plain-scalar");yield s.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const A=this.buffer.slice(this.pos,e);if(A){yield A;this.pos+=A.length;return A.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(n.has(t))t=this.buffer[++e];else if(t==="%"&&r.has(this.buffer[e+1])&&r.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let A;do{A=this.buffer[++t]}while(A===" "||e&&A==="\t");const s=t-this.pos;if(s>0){yield this.buffer.substr(this.pos,s);this.pos=t}return s}*pushUntil(e){let t=this.pos;let A=this.buffer[t];while(!e(A))A=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},6628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let A=this.lineStarts.length;while(t>1;if(this.lineStarts[s]{var s=A(932);var r=A(3461);var n=A(361);function includesToken(e,t){for(let A=0;A=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new n.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const A of this.lexer.lex(e,t))yield*this.next(A);if(!t)yield*this.end()}*next(e){this.source=e;if(s.env.LOG_TOKENS)console.log("|",r.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=r.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const A=e.items[e.items.length-1];if(A.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(A.sep){A.value=t}else{Object.assign(A,{key:t,sep:[]});this.onKeyLine=!A.explicitKey;return}break}case"block-seq":{const A=e.items[e.items.length-1];if(A.value)e.items.push({start:[],value:t});else A.value=t;break}case"flow-collection":{const A=e.items[e.items.length-1];if(!A||A.value)e.items.push({start:[],key:t,sep:[]});else if(A.sep)A.value=t;else Object.assign(A,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const A=t.items[t.items.length-1];if(A&&!A.sep&&!A.value&&A.start.length>0&&findNonEmptyIndex(A.start)===-1&&(t.indent===0||A.start.every((e=>e.type!=="comment"||e.indent=e.indent){const A=!this.onKeyLine&&this.indent===e.indent;const s=A&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let r=[];if(s&&t.sep&&!t.value){const A=[];for(let s=0;se.indent)A.length=0;break;default:A.length=0}}if(A.length>=2)r=t.sep.splice(A[1])}switch(this.type){case"anchor":case"tag":if(s||t.value){r.push(this.sourceToken);e.items.push({start:r});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(s||t.value){r.push(this.sourceToken);e.items.push({start:r,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const A=t.key;const s=t.sep;s.push(this.sourceToken);delete t.key;delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:A,sep:s}]})}else if(r.length>0){t.sep=t.sep.concat(r,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||s){e.items.push({start:r,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const A=this.flowScalar(this.type);if(s||t.value){e.items.push({start:r,key:A,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(A)}else{Object.assign(t,{key:A,sep:[]});this.onKeyLine=true}return}default:{const s=this.startBlockValue(e);if(s){if(s.type==="block-seq"){if(!t.explicitKey&&t.sep&&!includesToken(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(A){e.items.push({start:r})}this.stack.push(s);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const A="end"in t.value?t.value.end:undefined;const s=Array.isArray(A)?A[A.length-1]:undefined;if(s?.type==="comment")A?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const A=e.items[e.items.length-2];const s=A?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start);s.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const A=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:A,sep:[]});else if(t.sep)this.stack.push(A);else Object.assign(t,{key:A,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const A=this.startBlockValue(e);if(A)this.stack.push(A);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const A=getPrevProps(t);const s=getFirstKeyStartProps(A);fixFlowSeqItems(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:r}]};this.onKeyLine=true;this.stack[this.stack.length-1]=n}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const A=getFirstKeyStartProps(t);A.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const A=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},4047:(e,t,A)=>{var s=A(9984);var r=A(3021);var n=A(1464);var i=A(7249);var o=A(1127);var a=A(6628);var c=A(3456);function parseOptions(e){const t=e.prettyErrors!==false;const A=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:A,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:A,prettyErrors:r}=parseOptions(t);const i=new c.Parser(A?.addNewLine);const o=new s.Composer(t);const a=Array.from(o.compose(i.parse(e)));if(r&&A)for(const t of a){t.errors.forEach(n.prettifyError(e,A));t.warnings.forEach(n.prettifyError(e,A))}if(a.length>0)return a;return Object.assign([],{empty:true},o.streamInfo())}function parseDocument(e,t={}){const{lineCounter:A,prettyErrors:r}=parseOptions(t);const i=new c.Parser(A?.addNewLine);const o=new s.Composer(t);let a=null;for(const t of o.compose(i.parse(e),true,e.length)){if(!a)a=t;else if(a.options.logLevel!=="silent"){a.errors.push(new n.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(r&&A){a.errors.forEach(n.prettifyError(e,A));a.warnings.forEach(n.prettifyError(e,A))}return a}function parse(e,t,A){let s=undefined;if(typeof t==="function"){s=t}else if(A===undefined&&t&&typeof t==="object"){A=t}const r=parseDocument(e,A);if(!r)return null;r.warnings.forEach((e=>i.warn(r.options.logLevel,e)));if(r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];else r.errors=[]}return r.toJS(Object.assign({reviver:s},A))}function stringify(e,t,A){let s=null;if(typeof t==="function"||Array.isArray(t)){s=t}else if(A===undefined&&t){A=t}if(typeof A==="string")A=A.length;if(typeof A==="number"){const e=Math.round(A);A=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=A??t??{};if(!e)return undefined}if(o.isDocument(e)&&!s)return e.toString(A);return new r.Document(e,s,A).toString(A)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},5840:(e,t,A)=>{var s=A(1127);var r=A(7451);var n=A(1706);var i=A(6464);var o=A(18);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:A,resolveKnownTags:a,schema:c,sortMapEntries:l,toStringDefaults:u}){this.compat=Array.isArray(e)?o.getTags(e,"compat"):e?o.getTags(null,e):null;this.name=typeof c==="string"&&c||"core";this.knownTags=a?o.coreKnownTags:{};this.tags=o.getTags(t,this.name,A);this.toStringOptions=u??null;Object.defineProperty(this,s.MAP,{value:r.map});Object.defineProperty(this,s.SCALAR,{value:i.string});Object.defineProperty(this,s.SEQ,{value:n.seq});this.sortMapEntries=typeof l==="function"?l:l===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},7451:(e,t,A)=>{var s=A(1127);var r=A(4454);const n={collection:"map",default:true,nodeClass:r.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!s.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,A)=>r.YAMLMap.from(e,t,A)};t.map=n},3632:(e,t,A)=>{var s=A(3301);const r={identify:e=>e==null,createNode:()=>new s.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new s.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&r.test.test(e)?e:t.options.nullStr};t.nullTag=r},1706:(e,t,A)=>{var s=A(1127);var r=A(2223);const n={collection:"seq",default:true,nodeClass:r.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!s.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,A)=>r.YAMLSeq.from(e,t,A)};t.seq=n},6464:(e,t,A)=>{var s=A(3069);const r={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,A,r){t=Object.assign({actualString:true},t);return s.stringifyString(e,t,A,r)}};t.string=r},3959:(e,t,A)=>{var s=A(3301);const r={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new s.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},A){if(e&&r.test.test(e)){const A=e[0]==="t"||e[0]==="T";if(t===A)return e}return t?A.options.trueStr:A.options.falseStr}};t.boolTag=r},8405:(e,t,A)=>{var s=A(3301);var r=A(8689);const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():r.stringifyNumber(e)}};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new s.Scalar(parseFloat(e));const A=e.indexOf(".");if(A!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-A-1;return t},stringify:r.stringifyNumber};t.float=o;t.floatExp=i;t.floatNaN=n},9874:(e,t,A)=>{var s=A(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,A,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),A);function intStringify(e,t,A){const{value:r}=e;if(intIdentify(r)&&r>=0)return A+r.toString(t);return s.stringifyNumber(e)}const r={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,A)=>intResolve(e,2,8,A),stringify:e=>intStringify(e,8,"0o")};const n={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,A)=>intResolve(e,0,10,A),stringify:s.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,A)=>intResolve(e,2,16,A),stringify:e=>intStringify(e,16,"0x")};t.int=n;t.intHex=i;t.intOct=r},896:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(3959);var a=A(8405);var c=A(9874);const l=[s.map,n.seq,i.string,r.nullTag,o.boolTag,c.intOct,c.int,c.intHex,a.floatNaN,a.floatExp,a.float];t.schema=l},3559:(e,t,A)=>{var s=A(3301);var r=A(7451);var n=A(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new s.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:A})=>A?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const o={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const a=[r.map,n.seq].concat(i,o);t.schema=a},18:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(3959);var a=A(8405);var c=A(9874);var l=A(896);var u=A(3559);var g=A(6083);var h=A(452);var E=A(303);var f=A(8385);var d=A(5913);var C=A(1528);var Q=A(6752);const I=new Map([["core",l.schema],["failsafe",[s.map,n.seq,i.string]],["json",u.schema],["yaml11",d.schema],["yaml-1.1",d.schema]]);const B={binary:g.binary,bool:o.boolTag,float:a.float,floatExp:a.floatExp,floatNaN:a.floatNaN,floatTime:Q.floatTime,int:c.int,intHex:c.intHex,intOct:c.intOct,intTime:Q.intTime,map:s.map,merge:h.merge,null:r.nullTag,omap:E.omap,pairs:f.pairs,seq:n.seq,set:C.set,timestamp:Q.timestamp};const p={"tag:yaml.org,2002:binary":g.binary,"tag:yaml.org,2002:merge":h.merge,"tag:yaml.org,2002:omap":E.omap,"tag:yaml.org,2002:pairs":f.pairs,"tag:yaml.org,2002:set":C.set,"tag:yaml.org,2002:timestamp":Q.timestamp};function getTags(e,t,A){const s=I.get(t);if(s&&!e){return A&&!s.includes(h.merge)?s.concat(h.merge):s.slice()}let r=s;if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(I.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}if(A)r=r.concat(h.merge);return r.reduce(((e,t)=>{const A=typeof t==="string"?B[t]:t;if(!A){const e=JSON.stringify(t);const A=Object.keys(B).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${A}`)}if(!e.includes(A))e.push(A);return e}),[])}t.coreKnownTags=p;t.getTags=getTags},6083:(e,t,A)=>{var s=A(181);var r=A(3301);var n=A(3069);const i={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof s.Buffer==="function"){return s.Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const A=new Uint8Array(t.length);for(let e=0;e{var s=A(3301);function boolStringify({value:e,source:t},A){const s=e?r:n;if(t&&s.test.test(t))return t;return e?A.options.trueStr:A.options.falseStr}const r={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new s.Scalar(true),stringify:boolStringify};const n={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new s.Scalar(false),stringify:boolStringify};t.falseTag=n;t.trueTag=r},5782:(e,t,A)=>{var s=A(3301);var r=A(8689);const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():r.stringifyNumber(e)}};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new s.Scalar(parseFloat(e.replace(/_/g,"")));const A=e.indexOf(".");if(A!==-1){const s=e.substring(A+1).replace(/_/g,"");if(s[s.length-1]==="0")t.minFractionDigits=s.length}return t},stringify:r.stringifyNumber};t.float=o;t.floatExp=i;t.floatNaN=n},873:(e,t,A)=>{var s=A(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,A,{intAsBigInt:s}){const r=e[0];if(r==="-"||r==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(s){switch(A){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return r==="-"?BigInt(-1)*t:t}const n=parseInt(e,A);return r==="-"?-1*n:n}function intStringify(e,t,A){const{value:r}=e;if(intIdentify(r)){const e=r.toString(t);return r<0?"-"+A+e.substr(1):A+e}return s.stringifyNumber(e)}const r={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,A)=>intResolve(e,2,2,A),stringify:e=>intStringify(e,2,"0b")};const n={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,A)=>intResolve(e,1,8,A),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,A)=>intResolve(e,0,10,A),stringify:s.stringifyNumber};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,A)=>intResolve(e,2,16,A),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=r;t.intHex=o;t.intOct=n},452:(e,t,A)=>{var s=A(1127);var r=A(3301);const n="<<";const i={identify:e=>e===n||typeof e==="symbol"&&e.description===n,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new r.Scalar(Symbol(n)),{addToJSMap:addMergeToJSMap}),stringify:()=>n};const isMergeKey=(e,t)=>(i.identify(t)||s.isScalar(t)&&(!t.type||t.type===r.Scalar.PLAIN)&&i.identify(t.value))&&e?.doc.schema.tags.some((e=>e.tag===i.tag&&e.default));function addMergeToJSMap(e,t,A){A=e&&s.isAlias(A)?A.resolve(e.doc):A;if(s.isSeq(A))for(const s of A.items)mergeValue(e,t,s);else if(Array.isArray(A))for(const s of A)mergeValue(e,t,s);else mergeValue(e,t,A)}function mergeValue(e,t,A){const r=e&&s.isAlias(A)?A.resolve(e.doc):A;if(!s.isMap(r))throw new Error("Merge sources must be maps or map aliases");const n=r.toJSON(null,e,Map);for(const[e,A]of n){if(t instanceof Map){if(!t.has(e))t.set(e,A)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:A,writable:true,enumerable:true,configurable:true})}}return t}t.addMergeToJSMap=addMergeToJSMap;t.isMergeKey=isMergeKey;t.merge=i},303:(e,t,A)=>{var s=A(1127);var r=A(4043);var n=A(4454);var i=A(2223);var o=A(8385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=n.YAMLMap.prototype.add.bind(this);this.delete=n.YAMLMap.prototype.delete.bind(this);this.get=n.YAMLMap.prototype.get.bind(this);this.has=n.YAMLMap.prototype.has.bind(this);this.set=n.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const A=new Map;if(t?.onCreate)t.onCreate(A);for(const e of this.items){let n,i;if(s.isPair(e)){n=r.toJS(e.key,"",t);i=r.toJS(e.value,n,t)}else{n=r.toJS(e,"",t)}if(A.has(n))throw new Error("Ordered maps must not include duplicate keys");A.set(n,i)}return A}static from(e,t,A){const s=o.createPairs(e,t,A);const r=new this;r.items=s.items;return r}}YAMLOMap.tag="tag:yaml.org,2002:omap";const a={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const A=o.resolvePairs(e,t);const r=[];for(const{key:e}of A.items){if(s.isScalar(e)){if(r.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{r.push(e.value)}}}return Object.assign(new YAMLOMap,A)},createNode:(e,t,A)=>YAMLOMap.from(e,t,A)};t.YAMLOMap=YAMLOMap;t.omap=a},8385:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(3301);var i=A(2223);function resolvePairs(e,t){if(s.isSeq(e)){for(let A=0;A1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new r.Pair(new n.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[A]=s.isPair(i)?i:new r.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,A){const{replacer:s}=A;const n=new i.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof s==="function")e=s.call(t,String(o++),e);let i,a;if(Array.isArray(e)){if(e.length===2){i=e[0];a=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];a=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}n.items.push(r.createPair(i,a,A))}return n}const o={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=o;t.resolvePairs=resolvePairs},5913:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(6083);var a=A(8398);var c=A(5782);var l=A(873);var u=A(452);var g=A(303);var h=A(8385);var E=A(1528);var f=A(6752);const d=[s.map,n.seq,i.string,r.nullTag,a.trueTag,a.falseTag,l.intBin,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float,o.binary,u.merge,g.omap,h.pairs,E.set,f.intTime,f.floatTime,f.timestamp];t.schema=d},1528:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(4454);class YAMLSet extends n.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(s.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new r.Pair(e.key,null);else t=new r.Pair(e,null);const A=n.findPair(this.items,t.key);if(!A)this.items.push(t)}get(e,t){const A=n.findPair(this.items,e);return!t&&s.isPair(A)?s.isScalar(A.key)?A.key.value:A.key:A}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const A=n.findPair(this.items,e);if(A&&!t){this.items.splice(this.items.indexOf(A),1)}else if(!A&&t){this.items.push(new r.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,A){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,A);else throw new Error("Set items must all have null values")}static from(e,t,A){const{replacer:s}=A;const n=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof s==="function")e=s.call(t,e,e);n.items.push(r.createPair(e,null,A))}return n}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,A)=>YAMLSet.from(e,t,A),resolve(e,t){if(s.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},6752:(e,t,A)=>{var s=A(8689);function parseSexagesimal(e,t){const A=e[0];const s=A==="-"||A==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const r=s.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return A==="-"?num(-1)*r:r}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return s.stringifyNumber(e);let A="";if(t<0){A="-";t*=num(-1)}const r=num(60);const n=[t%r];if(t<60){n.unshift(0)}else{t=(t-n[0])/r;n.unshift(t%r);if(t>=60){t=(t-n[0])/r;n.unshift(t)}}return A+n.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const r={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:A})=>parseSexagesimal(e,A),stringify:stringifySexagesimal};const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,A,s,r,n,o,a]=t.map(Number);const c=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(A,s-1,r,n||0,o||0,a||0,c);const u=t[8];if(u&&u!=="Z"){let e=parseSexagesimal(u,false);if(Math.abs(e)<30)e*=60;l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};t.floatTime=n;t.intTime=r;t.timestamp=i},4475:(e,t)=>{const A="flow";const s="block";const r="quoted";function foldFlowLines(e,t,A="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:o=20,onFold:a,onOverflow:c}={}){if(!i||i<0)return e;if(ii-Math.max(2,o))u.push(0);else h=i-n}let E=undefined;let f=undefined;let d=false;let C=-1;let Q=-1;let I=-1;if(A===s){C=consumeMoreIndentedLines(e,C,t.length);if(C!==-1)h=C+l}for(let n;n=e[C+=1];){if(A===r&&n==="\\"){Q=C;switch(e[C+1]){case"x":C+=3;break;case"u":C+=5;break;case"U":C+=9;break;default:C+=1}I=C}if(n==="\n"){if(A===s)C=consumeMoreIndentedLines(e,C,t.length);h=C+t.length+l;E=undefined}else{if(n===" "&&f&&f!==" "&&f!=="\n"&&f!=="\t"){const t=e[C+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")E=C}if(C>=h){if(E){u.push(E);h=E+l;E=undefined}else if(A===r){while(f===" "||f==="\t"){f=n;n=e[C+=1];d=true}const t=C>I+1?C-2:Q-1;if(g[t])return e;u.push(t);g[t]=true;h=t+l;E=undefined}else{d=true}}}f=n}if(d&&c)c();if(u.length===0)return e;if(a)a();let B=e.slice(0,u[0]);for(let s=0;s{var s=A(1596);var r=A(1127);var n=A(9799);var i=A(3069);function createStringifyContext(e,t){const A=Object.assign({blockQuote:true,commentString:n.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let s;switch(A.collectionStyle){case"block":s=false;break;case"flow":s=true;break;default:s=null}return{anchors:new Set,doc:e,flowCollectionPadding:A.flowCollectionPadding?" ":"",indent:"",indentStep:typeof A.indent==="number"?" ".repeat(A.indent):" ",inFlow:s,options:A}}function getTagObject(e,t){if(t.tag){const A=e.filter((e=>e.tag===t.tag));if(A.length>0)return A.find((e=>e.format===t.format))??A[0]}let A=undefined;let s;if(r.isScalar(t)){s=t.value;let r=e.filter((e=>e.identify?.(s)));if(r.length>1){const e=r.filter((e=>e.test));if(e.length>0)r=e}A=r.find((e=>e.format===t.format))??r.find((e=>!e.format))}else{s=t;A=e.find((e=>e.nodeClass&&s instanceof e.nodeClass))}if(!A){const e=s?.constructor?.name??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${e} value`)}return A}function stringifyProps(e,t,{anchors:A,doc:n}){if(!n.directives)return"";const i=[];const o=(r.isScalar(e)||r.isCollection(e))&&e.anchor;if(o&&s.anchorIsValid(o)){A.add(o);i.push(`&${o}`)}const a=e.tag??(t.default?null:t.tag);if(a)i.push(n.directives.tagString(a));return i.join(" ")}function stringify(e,t,A,s){if(r.isPair(e))return e.toString(t,A,s);if(r.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let n=undefined;const o=r.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>n=e});n??(n=getTagObject(t.doc.schema.tags,o));const a=stringifyProps(o,n,t);if(a.length>0)t.indentAtStart=(t.indentAtStart??0)+a.length+1;const c=typeof n.stringify==="function"?n.stringify(o,t,A,s):r.isScalar(o)?i.stringifyString(o,t,A,s):o.toString(t,A,s);if(!a)return c;return r.isScalar(o)||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}\n${t.indent}${c}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},1212:(e,t,A)=>{var s=A(1127);var r=A(2148);var n=A(9799);function stringifyCollection(e,t,A){const s=t.inFlow??e.flow;const r=s?stringifyFlowCollection:stringifyBlockCollection;return r(e,t,A)}function stringifyBlockCollection({comment:e,items:t},A,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:c,onComment:l}){const{indent:u,options:{commentString:g}}=A;const h=Object.assign({},A,{indent:a,type:null});let E=false;const f=[];for(let e=0;ec=null),(()=>E=true));if(c)l+=n.lineComment(l,a,g(c));if(E&&c)E=false;f.push(i+l)}let d;if(f.length===0){d=o.start+o.end}else{d=f[0];for(let e=1;ea=null));if(Ah||c.includes("\n")))g=true;E.push(c);h=E.length}const{start:f,end:d}=A;if(E.length===0){return f+d}else{if(!g){const e=E.reduce(((e,t)=>e+t.length+2),2);g=t.options.lineWidth>0&&e>t.options.lineWidth}if(g){let e=f;for(const t of E)e+=t?`\n${a}${o}${t}`:"\n";return`${e}\n${o}${d}`}else{return`${f}${c}${E.join(" ")}${c}${d}`}}}function addCommentBefore({indent:e,options:{commentString:t}},A,s,r){if(s&&r)s=s.replace(/^\n+/,"");if(s){const r=n.indentComment(t(s),e);A.push(r.trimStart())}}t.stringifyCollection=stringifyCollection},9799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,A)=>e.endsWith("\n")?indentComment(A,t):A.includes("\n")?"\n"+indentComment(A,t):(e.endsWith(" ")?"":" ")+A;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,A)=>{var s=A(1127);var r=A(2148);var n=A(9799);function stringifyDocument(e,t){const A=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){A.push(t);i=true}else if(e.directives.docStart)i=true}if(i)A.push("---");const o=r.createStringifyContext(e,t);const{commentString:a}=o.options;if(e.commentBefore){if(A.length!==1)A.unshift("");const t=a(e.commentBefore);A.unshift(n.indentComment(t,""))}let c=false;let l=null;if(e.contents){if(s.isNode(e.contents)){if(e.contents.spaceBefore&&i)A.push("");if(e.contents.commentBefore){const t=a(e.contents.commentBefore);A.push(n.indentComment(t,""))}o.forceBlockIndent=!!e.comment;l=e.contents.comment}const t=l?undefined:()=>c=true;let u=r.stringify(e.contents,o,(()=>l=null),t);if(l)u+=n.lineComment(u,"",a(l));if((u[0]==="|"||u[0]===">")&&A[A.length-1]==="---"){A[A.length-1]=`--- ${u}`}else A.push(u)}else{A.push(r.stringify(e.contents,o))}if(e.directives?.docEnd){if(e.comment){const t=a(e.comment);if(t.includes("\n")){A.push("...");A.push(n.indentComment(t,""))}else{A.push(`... ${t}`)}}else{A.push("...")}}else{let t=e.comment;if(t&&c)t=t.replace(/^\n+/,"");if(t){if((!c||l)&&A[A.length-1]!=="")A.push("");A.push(n.indentComment(a(t),""))}}return A.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},8689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:A,value:s}){if(typeof s==="bigint")return String(s);const r=typeof s==="number"?s:Number(s);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let n=JSON.stringify(s);if(!e&&t&&(!A||A==="tag:yaml.org,2002:float")&&/^\d/.test(n)){let e=n.indexOf(".");if(e<0){e=n.length;n+="."}let A=t-(n.length-e-1);while(A-- >0)n+="0"}return n}t.stringifyNumber=stringifyNumber},9748:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(2148);var i=A(9799);function stringifyPair({key:e,value:t},A,o,a){const{allNullValues:c,doc:l,indent:u,indentStep:g,options:{commentString:h,indentSeq:E,simpleKeys:f}}=A;let d=s.isNode(e)&&e.comment||null;if(f){if(d){throw new Error("With simple keys, key nodes cannot have comments")}if(s.isCollection(e)||!s.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let C=!f&&(!e||d&&t==null&&!A.inFlow||s.isCollection(e)||(s.isScalar(e)?e.type===r.Scalar.BLOCK_FOLDED||e.type===r.Scalar.BLOCK_LITERAL:typeof e==="object"));A=Object.assign({},A,{allNullValues:false,implicitKey:!C&&(f||!c),indent:u+g});let Q=false;let I=false;let B=n.stringify(e,A,(()=>Q=true),(()=>I=true));if(!C&&!A.inFlow&&B.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");C=true}if(A.inFlow){if(c||t==null){if(Q&&o)o();return B===""?"?":C?`? ${B}`:B}}else if(c&&!f||t==null&&C){B=`? ${B}`;if(d&&!Q){B+=i.lineComment(B,A.indent,h(d))}else if(I&&a)a();return B}if(Q)d=null;if(C){if(d)B+=i.lineComment(B,A.indent,h(d));B=`? ${B}\n${u}:`}else{B=`${B}:`;if(d)B+=i.lineComment(B,A.indent,h(d))}let p,y,m;if(s.isNode(t)){p=!!t.spaceBefore;y=t.commentBefore;m=t.comment}else{p=false;y=null;m=null;if(t&&typeof t==="object")t=l.createNode(t)}A.implicitKey=false;if(!C&&!d&&s.isScalar(t))A.indentAtStart=B.length+1;I=false;if(!E&&g.length>=2&&!A.inFlow&&!C&&s.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){A.indent=A.indent.substring(2)}let w=false;const b=n.stringify(t,A,(()=>w=true),(()=>I=true));let R=" ";if(d||p||y){R=p?"\n":"";if(y){const e=h(y);R+=`\n${i.indentComment(e,A.indent)}`}if(b===""&&!A.inFlow){if(R==="\n")R="\n\n"}else{R+=`\n${A.indent}`}}else if(!C&&s.isCollection(t)){const e=b[0];const s=b.indexOf("\n");const r=s!==-1;const n=A.inFlow??t.flow??t.items.length===0;if(r||!n){let t=false;if(r&&(e==="&"||e==="!")){let A=b.indexOf(" ");if(e==="&"&&A!==-1&&A{var s=A(3301);var r=A(4475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,A){if(!t||t<0)return false;const s=t-A;const r=e.length;if(r<=s)return false;for(let t=0,A=0;ts)return true;A=t+1;if(r-A<=s)return false}}return true}function doubleQuotedString(e,t){const A=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return A;const{implicitKey:s}=t;const n=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let o="";let a=0;for(let e=0,t=A[e];t;t=A[++e]){if(t===" "&&A[e+1]==="\\"&&A[e+2]==="n"){o+=A.slice(a,e)+"\\ ";e+=1;a=e;t="\\"}if(t==="\\")switch(A[e+1]){case"u":{o+=A.slice(a,e);const t=A.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:if(t.substr(0,2)==="00")o+="\\x"+t.substr(2);else o+=A.substr(e,6)}e+=5;a=e+1}break;case"n":if(s||A[e+2]==='"'||A.length\n";let E;let f;for(f=A.length;f>0;--f){const e=A[f-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let d=A.substring(f);const C=d.indexOf("\n");if(C===-1){E="-"}else if(A===d||C!==d.length-1){E="+";if(a)a()}else{E=""}if(d){A=A.slice(0,-d.length);if(d[d.length-1]==="\n")d=d.slice(0,-1);d=d.replace(n,`$&${g}`)}let Q=false;let I;let B=-1;for(I=0;I{n=true}}const a=r.foldFlowLines(`${p}${e}${d}`,g,r.FOLD_BLOCK,o);if(!n)return`>${m}\n${g}${a}`}A=A.replace(/\n+/g,`$&${g}`);return`|${m}\n${g}${p}${A}${d}`}function plainString(e,t,A,n){const{type:i,value:o}=e;const{actualString:a,implicitKey:c,indent:l,indentStep:u,inFlow:g}=t;if(c&&o.includes("\n")||g&&/[[\]{},]/.test(o)){return quotedString(o,t)}if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)){return c||g||!o.includes("\n")?quotedString(o,t):blockString(e,t,A,n)}if(!c&&!g&&i!==s.Scalar.PLAIN&&o.includes("\n")){return blockString(e,t,A,n)}if(containsDocumentMarker(o)){if(l===""){t.forceBlockIndent=true;return blockString(e,t,A,n)}else if(c&&l===u){return quotedString(o,t)}}const h=o.replace(/\n+/g,`$&\n${l}`);if(a){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(h);const{compat:e,tags:A}=t.doc.schema;if(A.some(test)||e?.some(test))return quotedString(o,t)}return c?h:r.foldFlowLines(h,l,r.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,A,r){const{implicitKey:n,inFlow:i}=t;const o=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;if(a!==s.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value))a=s.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case s.Scalar.BLOCK_FOLDED:case s.Scalar.BLOCK_LITERAL:return n||i?quotedString(o.value,t):blockString(o,t,A,r);case s.Scalar.QUOTE_DOUBLE:return doubleQuotedString(o.value,t);case s.Scalar.QUOTE_SINGLE:return singleQuotedString(o.value,t);case s.Scalar.PLAIN:return plainString(o,t,A,r);default:return null}};let c=_stringify(a);if(c===null){const{defaultKeyType:e,defaultStringType:A}=t.options;const s=n&&e||A;c=_stringify(s);if(c===null)throw new Error(`Unsupported default string type ${s}`)}return c}t.stringifyString=stringifyString},204:(e,t,A)=>{var s=A(1127);const r=Symbol("break visit");const n=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const A=initVisitor(t);if(s.isDocument(e)){const t=visit_(null,e.contents,A,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,A,Object.freeze([]))}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=i;function visit_(e,t,A,n){const o=callVisitor(e,t,A,n);if(s.isNode(o)||s.isPair(o)){replaceNode(e,n,o);return visit_(e,o,A,n)}if(typeof o!=="symbol"){if(s.isCollection(t)){n=Object.freeze(n.concat(t));for(let e=0;e{(()=>{var t={4914:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const i=n(A(857));const o=A(302);function issueCommand(e,t,A){const s=new Command(e,t,A);process.stdout.write(s.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,A){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=A}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const A in this.properties){if(this.properties.hasOwnProperty(A)){const s=this.properties[A];if(s){if(t){t=false}else{e+=","}e+=`${A}=${escapeProperty(s)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,o.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,o.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},7484:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.platform=t.toPlatformPath=t.toWin32Path=t.toPosixPath=t.markdownSummary=t.summary=t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const o=A(4914);const a=A(4753);const c=A(302);const l=n(A(857));const u=n(A(6928));const g=A(5306);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h||(t.ExitCode=h={}));function exportVariable(e,t){const A=(0,c.toCommandValue)(t);process.env[e]=A;const s=process.env["GITHUB_ENV"]||"";if(s){return(0,a.issueFileCommand)("ENV",(0,a.prepareKeyValueMessage)(e,t))}(0,o.issueCommand)("set-env",{name:e},A)}t.exportVariable=exportVariable;function setSecret(e){(0,o.issueCommand)("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){(0,a.issueFileCommand)("PATH",e)}else{(0,o.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const A=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!A){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return A}return A.trim()}t.getInput=getInput;function getMultilineInput(e,t){const A=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return A}return A.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const A=["true","True","TRUE"];const s=["false","False","FALSE"];const r=getInput(e,t);if(A.includes(r))return true;if(s.includes(r))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const A=process.env["GITHUB_OUTPUT"]||"";if(A){return(0,a.issueFileCommand)("OUTPUT",(0,a.prepareKeyValueMessage)(e,t))}process.stdout.write(l.EOL);(0,o.issueCommand)("set-output",{name:e},(0,c.toCommandValue)(t))}t.setOutput=setOutput;function setCommandEcho(e){(0,o.issue)("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){(0,o.issueCommand)("debug",{},e)}t.debug=debug;function error(e,t={}){(0,o.issueCommand)("error",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){(0,o.issueCommand)("warning",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){(0,o.issueCommand)("notice",(0,c.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){(0,o.issue)("group",e)}t.startGroup=startGroup;function endGroup(){(0,o.issue)("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,(function*(){startGroup(e);let A;try{A=yield t()}finally{endGroup()}return A}))}t.group=group;function saveState(e,t){const A=process.env["GITHUB_STATE"]||"";if(A){return(0,a.issueFileCommand)("STATE",(0,a.prepareKeyValueMessage)(e,t))}(0,o.issueCommand)("save-state",{name:e},(0,c.toCommandValue)(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield g.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var E=A(1847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return E.summary}});var f=A(1847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return f.markdownSummary}});var d=A(1976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return d.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return d.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return d.toPlatformPath}});t.platform=n(A(8968))},4753:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const i=n(A(6982));const o=n(A(9896));const a=n(A(857));const c=A(302);function issueFileCommand(e,t){const A=process.env[`GITHUB_${e}`];if(!A){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(A)){throw new Error(`Missing file at path: ${A}`)}o.appendFileSync(A,`${(0,c.toCommandValue)(t)}${a.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const A=`ghadelimiter_${i.randomUUID()}`;const s=(0,c.toCommandValue)(t);if(e.includes(A)){throw new Error(`Unexpected input: name should not contain the delimiter "${A}"`)}if(s.includes(A)){throw new Error(`Unexpected input: value should not contain the delimiter "${A}"`)}return`${e}<<${A}${a.EOL}${s}${a.EOL}${A}`}t.prepareKeyValueMessage=prepareKeyValueMessage},5306:function(e,t,A){"use strict";var s=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const r=A(4844);const n=A(4552);const i=A(7484);class OidcClient{static createHttpClient(e=true,t=10){const A={allowRetries:e,maxRetries:t};return new r.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(OidcClient.getRequestToken())],A)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return s(this,void 0,void 0,(function*(){const A=OidcClient.createHttpClient();const s=yield A.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const r=(t=s.result)===null||t===void 0?void 0:t.value;if(!r){throw new Error("Response json body do not have ID Token field")}return r}))}static getIDToken(e){return s(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const A=encodeURIComponent(e);t=`${t}&audience=${A}`}(0,i.debug)(`ID token url is ${t}`);const A=yield OidcClient.getCall(t);(0,i.setSecret)(A);return A}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},1976:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const i=n(A(6928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}t.toPlatformPath=toPlatformPath},8968:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getDetails=t.isLinux=t.isMacOS=t.isWindows=t.arch=t.platform=void 0;const a=o(A(857));const c=n(A(5236));const getWindowsInfo=()=>i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>i(void 0,void 0,void 0,(function*(){var e,t,A,s;const{stdout:r}=yield c.getExecOutput("sw_vers",undefined,{silent:true});const n=(t=(e=r.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const i=(s=(A=r.match(/ProductName:\s*(.+)/))===null||A===void 0?void 0:A[1])!==null&&s!==void 0?s:"";return{name:i,version:n}}));const getLinuxInfo=()=>i(void 0,void 0,void 0,(function*(){const{stdout:e}=yield c.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,A]=e.trim().split("\n");return{name:t,version:A}}));t.platform=a.default.platform();t.arch=a.default.arch();t.isWindows=t.platform==="win32";t.isMacOS=t.platform==="darwin";t.isLinux=t.platform==="linux";function getDetails(){return i(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield t.isWindows?getWindowsInfo():t.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:t.platform,arch:t.arch,isWindows:t.isWindows,isMacOS:t.isMacOS,isLinux:t.isLinux})}))}t.getDetails=getDetails},1847:function(e,t,A){"use strict";var s=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const r=A(857);const n=A(9896);const{access:i,appendFile:o,writeFile:a}=n.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return s(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,n.constants.R_OK|n.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,A={}){const s=Object.entries(A).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${s}>`}return`<${e}${s}>${t}${e}>`}write(e){return s(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const A=yield this.filePath();const s=t?a:o;yield s(A,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return s(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(r.EOL)}addCodeBlock(e,t){const A=Object.assign({},t&&{lang:t});const s=this.wrap("pre",this.wrap("code",e),A);return this.addRaw(s).addEOL()}addList(e,t=false){const A=t?"ol":"ul";const s=e.map((e=>this.wrap("li",e))).join("");const r=this.wrap(A,s);return this.addRaw(r).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:A,colspan:s,rowspan:r}=e;const n=t?"th":"td";const i=Object.assign(Object.assign({},s&&{colspan:s}),r&&{rowspan:r});return this.wrap(n,A,i)})).join("");return this.wrap("tr",t)})).join("");const A=this.wrap("table",t);return this.addRaw(A).addEOL()}addDetails(e,t){const A=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(A).addEOL()}addImage(e,t,A){const{width:s,height:r}=A||{};const n=Object.assign(Object.assign({},s&&{width:s}),r&&{height:r});const i=this.wrap("img",null,Object.assign({src:e,alt:t},n));return this.addRaw(i).addEOL()}addHeading(e,t){const A=`h${t}`;const s=["h1","h2","h3","h4","h5","h6"].includes(A)?A:"h1";const r=this.wrap(s,e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const A=Object.assign({},t&&{cite:t});const s=this.wrap("blockquote",e,A);return this.addRaw(s).addEOL()}addLink(e,t){const A=this.wrap("a",e,{href:t});return this.addRaw(A).addEOL()}}const c=new Summary;t.markdownSummary=c;t.summary=c},302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},5236:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const o=A(3193);const a=n(A(6665));function exec(e,t,A){return i(this,void 0,void 0,(function*(){const s=a.argStringToArray(e);if(s.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const r=s[0];t=s.slice(1).concat(t||[]);const n=new a.ToolRunner(r,t,A);return n.exec()}))}t.exec=exec;function getExecOutput(e,t,A){var s,r;return i(this,void 0,void 0,(function*(){let n="";let i="";const a=new o.StringDecoder("utf8");const c=new o.StringDecoder("utf8");const l=(s=A===null||A===void 0?void 0:A.listeners)===null||s===void 0?void 0:s.stdout;const u=(r=A===null||A===void 0?void 0:A.listeners)===null||r===void 0?void 0:r.stderr;const stdErrListener=e=>{i+=c.write(e);if(u){u(e)}};const stdOutListener=e=>{n+=a.write(e);if(l){l(e)}};const g=Object.assign(Object.assign({},A===null||A===void 0?void 0:A.listeners),{stdout:stdOutListener,stderr:stdErrListener});const h=yield exec(e,t,Object.assign(Object.assign({},A),{listeners:g}));n+=a.end();i+=c.end();return{exitCode:h,stdout:n,stderr:i}}))}t.getExecOutput=getExecOutput},6665:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const o=n(A(857));const a=n(A(4434));const c=n(A(5317));const l=n(A(6928));const u=n(A(4994));const g=n(A(5207));const h=A(3557);const E=process.platform==="win32";class ToolRunner extends a.EventEmitter{constructor(e,t,A){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=A||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const A=this._getSpawnFileName();const s=this._getSpawnArgs(e);let r=t?"":"[command]";if(E){if(this._isCmdFile()){r+=A;for(const e of s){r+=` ${e}`}}else if(e.windowsVerbatimArguments){r+=`"${A}"`;for(const e of s){r+=` ${e}`}}else{r+=this._windowsQuoteCmdArg(A);for(const e of s){r+=` ${this._windowsQuoteCmdArg(e)}`}}}else{r+=A;for(const e of s){r+=` ${e}`}}return r}_processLineBuffer(e,t,A){try{let s=t+e.toString();let r=s.indexOf(o.EOL);while(r>-1){const e=s.substring(0,r);A(e);s=s.substring(r+o.EOL.length);r=s.indexOf(o.EOL)}return s}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(E){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(E){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const A of this.args){t+=" ";t+=e.windowsVerbatimArguments?A:this._windowsQuoteCmdArg(A)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const 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'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let A=false;for(const s of e){if(t.some((e=>e===s))){A=true;break}}if(!A){return e}let s='"';let r=true;for(let t=e.length;t>0;t--){s+=e[t-1];if(r&&e[t-1]==="\\"){s+="\\"}else if(e[t-1]==='"'){r=true;s+='"'}else{r=false}}s+='"';return s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let A=true;for(let s=e.length;s>0;s--){t+=e[s-1];if(A&&e[s-1]==="\\"){t+="\\"}else if(e[s-1]==='"'){A=true;t+="\\"}else{A=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const A={};A.cwd=e.cwd;A.env=e.env;A["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){A.argv0=`"${t}"`}return A}exec(){return i(this,void 0,void 0,(function*(){if(!g.isRooted(this.toolPath)&&(this.toolPath.includes("/")||E&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise(((e,t)=>i(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const A=this._cloneExecOptions(this.options);if(!A.silent&&A.outStream){A.outStream.write(this._getCommandString(A)+o.EOL)}const s=new ExecState(A,this.toolPath);s.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield g.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const r=this._getSpawnFileName();const n=c.spawn(r,this._getSpawnArgs(A),this._getSpawnOptions(this.options,r));let i="";if(n.stdout){n.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!A.silent&&A.outStream){A.outStream.write(e)}i=this._processLineBuffer(e,i,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let a="";if(n.stderr){n.stderr.on("data",(e=>{s.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!A.silent&&A.errStream&&A.outStream){const t=A.failOnStdErr?A.errStream:A.outStream;t.write(e)}a=this._processLineBuffer(e,a,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}n.on("error",(e=>{s.processError=e.message;s.processExited=true;s.processClosed=true;s.CheckComplete()}));n.on("exit",(e=>{s.processExitCode=e;s.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);s.CheckComplete()}));n.on("close",(e=>{s.processExitCode=e;s.processExited=true;s.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);s.CheckComplete()}));s.on("done",((A,s)=>{if(i.length>0){this.emit("stdline",i)}if(a.length>0){this.emit("errline",a)}n.removeAllListeners();if(A){t(A)}else{e(s)}}));if(this.options.input){if(!n.stdin){throw new Error("child process missing stdin")}n.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let A=false;let s=false;let r="";function append(e){if(s&&e!=='"'){r+="\\"}r+=e;s=false}for(let n=0;n0){t.push(r);r=""}continue}append(i)}if(r.length>0){t.push(r.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends a.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=h.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const 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()}}},4552:function(e,t){"use strict";var A=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{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 false}handleAuthentication(){return A(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},4844:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const o=n(A(8611));const a=n(A(5692));const c=n(A(4988));const l=n(A(770));const u=A(6752);var g;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(g||(t.HttpCodes=g={}));var h;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(h||(t.Headers=h={}));var E;(function(e){e["ApplicationJson"]="application/json"})(E||(t.MediaTypes=E={}));function getProxyUrl(e){const t=c.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[g.MovedPermanently,g.ResourceMoved,g.SeeOther,g.TemporaryRedirect,g.PermanentRedirect];const d=[g.BadGateway,g.ServiceUnavailable,g.GatewayTimeout];const C=["OPTIONS","GET","DELETE","HEAD"];const Q=10;const I=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(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())}))}))))}))}readBodyBuffer(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,A){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=A;if(A){if(A.ignoreSslError!=null){this._ignoreSslError=A.ignoreSslError}this._socketTimeout=A.socketTimeout;if(A.allowRedirects!=null){this._allowRedirects=A.allowRedirects}if(A.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=A.allowRedirectDowngrade}if(A.maxRedirects!=null){this._maxRedirects=Math.max(A.maxRedirects,0)}if(A.keepAlive!=null){this._keepAlive=A.keepAlive}if(A.allowRetries!=null){this._allowRetries=A.allowRetries}if(A.maxRetries!=null){this._maxRetries=A.maxRetries}}}options(e,t){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("POST",e,t,A||{})}))}patch(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,A||{})}))}put(e,t,A){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,t,A||{})}))}head(e,t){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,A,s){return i(this,void 0,void 0,(function*(){return this.request(e,t,A,s)}))}getJson(e,t={}){return i(this,void 0,void 0,(function*(){t[h.Accept]=this._getExistingOrDefaultHeader(t,h.Accept,E.ApplicationJson);const A=yield this.get(e,t);return this._processResponse(A,this.requestOptions)}))}postJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.post(e,s,A);return this._processResponse(r,this.requestOptions)}))}putJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.put(e,s,A);return this._processResponse(r,this.requestOptions)}))}patchJson(e,t,A={}){return i(this,void 0,void 0,(function*(){const s=JSON.stringify(t,null,2);A[h.Accept]=this._getExistingOrDefaultHeader(A,h.Accept,E.ApplicationJson);A[h.ContentType]=this._getExistingOrDefaultHeader(A,h.ContentType,E.ApplicationJson);const r=yield this.patch(e,s,A);return this._processResponse(r,this.requestOptions)}))}request(e,t,A,s){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const r=new URL(t);let n=this._prepareRequest(e,r,s);const i=this._allowRetries&&C.includes(e)?this._maxRetries+1:1;let o=0;let a;do{a=yield this.requestRaw(n,A);if(a&&a.message&&a.message.statusCode===g.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(a)){e=t;break}}if(e){return e.handleAuthentication(this,n,A)}else{return a}}let t=this._maxRedirects;while(a.message.statusCode&&f.includes(a.message.statusCode)&&this._allowRedirects&&t>0){const i=a.message.headers["location"];if(!i){break}const o=new URL(i);if(r.protocol==="https:"&&r.protocol!==o.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield a.readBody();if(o.hostname!==r.hostname){for(const e in s){if(e.toLowerCase()==="authorization"){delete s[e]}}}n=this._prepareRequest(e,o,s);a=yield this.requestRaw(n,A);t--}if(!a.message.statusCode||!d.includes(a.message.statusCode)){return a}o+=1;if(o{function callbackForResult(e,t){if(e){s(e)}else if(!t){s(new Error("Unknown error"))}else{A(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,A){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let s=false;function handleResult(e,t){if(!s){s=true;A(e,t)}}const r=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let n;r.on("socket",(e=>{n=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));r.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){r.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){r.end()}));t.pipe(r)}else{r.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const A=c.getProxyUrl(t);const s=A&&A.hostname;if(!s){return}return this._getProxyAgentDispatcher(t,A)}_prepareRequest(e,t,A){const s={};s.parsedUrl=t;const r=s.parsedUrl.protocol==="https:";s.httpModule=r?a:o;const n=r?443:80;s.options={};s.options.host=s.parsedUrl.hostname;s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):n;s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||"");s.options.method=e;s.options.headers=this._mergeHeaders(A);if(this.userAgent!=null){s.options.headers["user-agent"]=this.userAgent}s.options.agent=this._getAgent(s.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(s.options)}}return s}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,A){let s;if(this.requestOptions&&this.requestOptions.headers){s=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||s||A}_getAgent(e){let t;const A=c.getProxyUrl(e);const s=A&&A.hostname;if(this._keepAlive&&s){t=this._proxyAgent}if(!s){t=this._agent}if(t){return t}const r=e.protocol==="https:";let n=100;if(this.requestOptions){n=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(A&&A.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(A.username||A.password)&&{proxyAuth:`${A.username}:${A.password}`}),{host:A.hostname,port:A.port})};let s;const i=A.protocol==="https:";if(r){s=i?l.httpsOverHttps:l.httpsOverHttp}else{s=i?l.httpOverHttps:l.httpOverHttp}t=s(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:n};t=r?new a.Agent(e):new o.Agent(e);this._agent=t}if(r&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let A;if(this._keepAlive){A=this._proxyAgentDispatcher}if(A){return A}const s=e.protocol==="https:";A=new u.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=A;if(s&&this._ignoreSslError){A.options=Object.assign(A.options.requestTls||{},{rejectUnauthorized:false})}return A}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(Q,e);const t=I*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((A,s)=>i(this,void 0,void 0,(function*(){const r=e.message.statusCode||0;const n={statusCode:r,result:null,headers:{}};if(r===g.NotFound){A(n)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let i;let o;try{o=yield e.readBody();if(o&&o.length>0){if(t&&t.deserializeDates){i=JSON.parse(o,dateTimeDeserializer)}else{i=JSON.parse(o)}n.result=i}n.headers=e.message.headers}catch(e){}if(r>299){let e;if(i&&i.message){e=i.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${r})`}const t=new HttpClientError(e,r);t.result=n.result;s(t)}else{A(n)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,A)=>(t[A.toLowerCase()]=e[A],t)),{})},4988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const A=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(A){try{return new DecodedURL(A)}catch(e){if(!A.startsWith("http://")&&!A.startsWith("https://"))return new DecodedURL(`http://${A}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const A=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!A){return false}let s;if(e.port){s=Number(e.port)}else if(e.protocol==="http:"){s=80}else if(e.protocol==="https:"){s=443}const r=[e.hostname.toUpperCase()];if(typeof s==="number"){r.push(`${r[0]}:${s}`)}for(const e of A.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||r.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},5207:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var o;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const a=n(A(9896));const c=n(A(6928));o=a.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.open=o.open,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rm=o.rm,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=a.constants.O_RDONLY;function exists(e){return i(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,A=false){return i(this,void 0,void 0,(function*(){const s=A?yield t.stat(e):yield t.lstat(e);return s.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,A){return i(this,void 0,void 0,(function*(){let s=undefined;try{s=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(s&&s.isFile()){if(t.IS_WINDOWS){const t=c.extname(e).toUpperCase();if(A.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(s)){return e}}}const r=e;for(const n of A){e=r+n;s=undefined;try{s=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(s&&s.isFile()){if(t.IS_WINDOWS){try{const A=c.dirname(e);const s=c.basename(e).toUpperCase();for(const r of yield t.readdir(A)){if(s===r.toUpperCase()){e=c.join(A,r);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(s)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},4994:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;Object.defineProperty(e,s,{enumerable:true,get:function(){return t[A]}})}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const o=A(2613);const a=n(A(6928));const c=n(A(5207));function cp(e,t,A={}){return i(this,void 0,void 0,(function*(){const{force:s,recursive:r,copySourceDirectory:n}=readCopyOptions(A);const i=(yield c.exists(t))?yield c.stat(t):null;if(i&&i.isFile()&&!s){return}const o=i&&i.isDirectory()&&n?a.join(t,a.basename(e)):t;if(!(yield c.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield c.stat(e);if(l.isDirectory()){if(!r){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,o,0,s)}}else{if(a.relative(e,o)===""){throw new Error(`'${o}' and '${e}' are the same file`)}yield copyFile(e,o,s)}}))}t.cp=cp;function mv(e,t,A={}){return i(this,void 0,void 0,(function*(){if(yield c.exists(t)){let s=true;if(yield c.isDirectory(t)){t=a.join(t,a.basename(e));s=yield c.exists(t)}if(s){if(A.force==null||A.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(a.dirname(t));yield c.rename(e,t)}))}t.mv=mv;function rmRF(e){return i(this,void 0,void 0,(function*(){if(c.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield c.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return i(this,void 0,void 0,(function*(){o.ok(e,"a path argument must be provided");yield c.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(c.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. 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 t}const A=yield findInPath(e);if(A&&A.length>0){return A[0]}return""}))}t.which=which;function findInPath(e){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(c.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(a.delimiter)){if(e){t.push(e)}}}if(c.isRooted(e)){const A=yield c.tryGetExecutablePath(e,t);if(A){return[A]}return[]}if(e.includes(a.sep)){return[]}const A=[];if(process.env.PATH){for(const e of process.env.PATH.split(a.delimiter)){if(e){A.push(e)}}}const s=[];for(const r of A){const A=yield c.tryGetExecutablePath(a.join(r,e),t);if(A){s.push(A)}}return s}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const A=Boolean(e.recursive);const s=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:A,copySourceDirectory:s}}function cpDirRecursive(e,t,A,s){return i(this,void 0,void 0,(function*(){if(A>=255)return;A++;yield mkdirP(t);const r=yield c.readdir(e);for(const n of r){const r=`${e}/${n}`;const i=`${t}/${n}`;const o=yield c.lstat(r);if(o.isDirectory()){yield cpDirRecursive(r,i,A,s)}else{yield copyFile(r,i,s)}}yield c.chmod(t,(yield c.stat(e)).mode)}))}function copyFile(e,t,A){return i(this,void 0,void 0,(function*(){if((yield c.lstat(e)).isSymbolicLink()){try{yield c.lstat(t);yield c.unlink(t)}catch(e){if(e.code==="EPERM"){yield c.chmod(t,"0666");yield c.unlink(t)}}const A=yield c.readlink(e);yield c.symlink(A,t,c.IS_WINDOWS?"junction":null)}else if(!(yield c.exists(t))||A){yield c.copyFile(e,t)}}))}},8036:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const o=n(A(6193));const a=A(7484);const c=A(857);const l=A(5317);const u=A(9896);function _findMatch(t,A,s,r){return i(this,void 0,void 0,(function*(){const n=c.platform();let i;let l;let u;for(const i of s){const s=i.version;(0,a.debug)(`check ${s} satisfies ${t}`);if(o.satisfies(s,t)&&(!A||i.stable===A)){u=i.files.find((t=>{(0,a.debug)(`${t.arch}===${r} && ${t.platform}===${n}`);let A=t.arch===r&&t.platform===n;if(A&&t.platform_version){const s=e.exports._getOsVersion();if(s===t.platform_version){A=true}else{A=o.satisfies(s,t.platform_version)}}return A}));if(u){(0,a.debug)(`matched ${i.version}`);l=i;break}}}if(l&&u){i=Object.assign({},l);i.files=[u]}return i}))}t._findMatch=_findMatch;function _getOsVersion(){const t=c.platform();let A="";if(t==="darwin"){A=l.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){A=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return A}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let A="";if(u.existsSync(e)){A=u.readFileSync(e).toString()}else if(u.existsSync(t)){A=u.readFileSync(t).toString()}return A}t._readLinuxVersionFile=_readLinuxVersionFile},7380:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const o=n(A(7484));class RetryHelper{constructor(e,t,A){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(A);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return i(this,void 0,void 0,(function*(){let A=1;while(AsetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},3472:function(e,t,A){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A in e)if(A!=="default"&&Object.prototype.hasOwnProperty.call(e,A))s(t,e,A);r(t,e);return t};var i=this&&this.__awaiter||function(e,t,A,s){function adopt(e){return e instanceof A?e:new A((function(t){t(e)}))}return new(A||(A=Promise))((function(A,r){function fulfilled(e){try{step(s.next(e))}catch(e){r(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){r(e)}}function step(e){e.done?A(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const o=n(A(7484));const a=n(A(4994));const c=n(A(6982));const l=n(A(9896));const u=n(A(8036));const g=n(A(857));const h=n(A(6928));const E=n(A(4844));const f=n(A(6193));const d=n(A(2203));const C=n(A(9023));const Q=A(2613);const I=A(5236);const B=A(7380);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const p=process.platform==="win32";const y=process.platform==="darwin";const m="actions/tool-cache";function downloadTool(e,t,A,s){return i(this,void 0,void 0,(function*(){t=t||h.join(_getTempDirectory(),c.randomUUID());yield a.mkdirP(h.dirname(t));o.debug(`Downloading ${e}`);o.debug(`Destination ${t}`);const r=3;const n=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const u=new B.RetryHelper(r,n,l);return yield u.execute((()=>i(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",A,s)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,A,s){return i(this,void 0,void 0,(function*(){if(l.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const r=new E.HttpClient(m,[],{allowRetries:false});if(A){o.debug("set auth");if(s===undefined){s={}}s.authorization=A}const n=yield r.get(e,s);if(n.message.statusCode!==200){const t=new HTTPError(n.message.statusCode);o.debug(`Failed to download from "${e}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`);throw t}const i=C.promisify(d.pipeline);const c=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>n.message));const u=c();let g=false;try{yield i(u,l.createWriteStream(t));o.debug("download complete");g=true;return t}finally{if(!g){o.debug("download failed");try{yield a.rmRF(t)}catch(e){o.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,A){return i(this,void 0,void 0,(function*(){(0,Q.ok)(p,"extract7z() not supported on current OS");(0,Q.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);const s=process.cwd();process.chdir(t);if(A){try{const t=o.isDebug()?"-bb1":"-bb0";const s=["x",t,"-bd","-sccUTF-8",e];const r={silent:true};yield(0,I.exec)(`"${A}"`,s,r)}finally{process.chdir(s)}}else{const A=h.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`& '${A}' -Source '${r}' -Target '${n}'`;const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];const c={silent:true};try{const e=yield a.which("powershell",true);yield(0,I.exec)(`"${e}"`,o,c)}finally{process.chdir(s)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,A="xz"){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);o.debug("Checking tar --version");let s="";yield(0,I.exec)("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>s+=e.toString(),stderr:e=>s+=e.toString()}});o.debug(s.trim());const r=s.toUpperCase().includes("GNU TAR");let n;if(A instanceof Array){n=A}else{n=[A]}if(o.isDebug()&&!A.includes("v")){n.push("-v")}let i=t;let a=e;if(p&&r){n.push("--force-local");i=t.replace(/\\/g,"/");a=e.replace(/\\/g,"/")}if(r){n.push("--warning=no-unknown-keyword");n.push("--overwrite")}n.push("-C",i,"-f",a);yield(0,I.exec)(`tar`,n);return t}))}t.extractTar=extractTar;function extractXar(e,t,A=[]){return i(this,void 0,void 0,(function*(){(0,Q.ok)(y,"extractXar() not supported on current OS");(0,Q.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);let s;if(A instanceof Array){s=A}else{s=[A]}s.push("-x","-C",t,"-f",e);if(o.isDebug()){s.push("-v")}const r=yield a.which("xar",true);yield(0,I.exec)(`"${r}"`,_unique(s));return t}))}t.extractXar=extractXar;function extractZip(e,t){return i(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(p){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return i(this,void 0,void 0,(function*(){const A=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const r=yield a.which("pwsh",false);if(r){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${A}', '${s}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${A}' -DestinationPath '${s}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];o.debug(`Using pwsh at path: ${r}`);yield(0,I.exec)(`"${r}"`,t)}else{const 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 '${A}' -DestinationPath '${s}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${A}', '${s}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const r=yield a.which("powershell",true);o.debug(`Using powershell at path: ${r}`);yield(0,I.exec)(`"${r}"`,t)}}))}function extractZipNix(e,t){return i(this,void 0,void 0,(function*(){const A=yield a.which("unzip",true);const s=[e];if(!o.isDebug()){s.unshift("-q")}s.unshift("-o");yield(0,I.exec)(`"${A}"`,s,{cwd:t})}))}function cacheDir(e,t,A,s){return i(this,void 0,void 0,(function*(){A=f.clean(A)||A;s=s||g.arch();o.debug(`Caching tool ${t} ${A} ${s}`);o.debug(`source dir: ${e}`);if(!l.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const r=yield _createToolPath(t,A,s);for(const t of l.readdirSync(e)){const A=h.join(e,t);yield a.cp(A,r,{recursive:true})}_completeToolPath(t,A,s);return r}))}t.cacheDir=cacheDir;function cacheFile(e,t,A,s,r){return i(this,void 0,void 0,(function*(){s=f.clean(s)||s;r=r||g.arch();o.debug(`Caching tool ${A} ${s} ${r}`);o.debug(`source file: ${e}`);if(!l.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(A,s,r);const i=h.join(n,t);o.debug(`destination file ${i}`);yield a.cp(e,i);_completeToolPath(A,s,r);return n}))}t.cacheFile=cacheFile;function find(e,t,A){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}A=A||g.arch();if(!isExplicitVersion(t)){const s=findAllVersions(e,A);const r=evaluateVersions(s,t);t=r}let s="";if(t){t=f.clean(t)||"";const r=h.join(_getCacheDirectory(),e,t,A);o.debug(`checking cache: ${r}`);if(l.existsSync(r)&&l.existsSync(`${r}.complete`)){o.debug(`Found tool in cache ${e} ${t} ${A}`);s=r}else{o.debug("not found")}}return s}t.find=find;function findAllVersions(e,t){const A=[];t=t||g.arch();const s=h.join(_getCacheDirectory(),e);if(l.existsSync(s)){const e=l.readdirSync(s);for(const r of e){if(isExplicitVersion(r)){const e=h.join(s,r,t||"");if(l.existsSync(e)&&l.existsSync(`${e}.complete`)){A.push(r)}}}}return A}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,A,s="master"){return i(this,void 0,void 0,(function*(){let r=[];const n=`https://api.github.com/repos/${e}/${t}/git/trees/${s}`;const i=new E.HttpClient("tool-cache");const a={};if(A){o.debug("set auth");a.authorization=A}const c=yield i.getJson(n,a);if(!c.result){return r}let l="";for(const e of c.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}a["accept"]="application/vnd.github.VERSION.raw";let u=yield(yield i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{r=JSON.parse(u)}catch(e){o.debug("Invalid json")}}return r}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,A,s=g.arch()){return i(this,void 0,void 0,(function*(){const r=yield u._findMatch(e,t,A,s);return r}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return i(this,void 0,void 0,(function*(){if(!e){e=h.join(_getTempDirectory(),c.randomUUID())}yield a.mkdirP(e);return e}))}function _createToolPath(e,t,A){return i(this,void 0,void 0,(function*(){const s=h.join(_getCacheDirectory(),e,f.clean(t)||t,A||"");o.debug(`destination ${s}`);const r=`${s}.complete`;yield a.rmRF(s);yield a.rmRF(r);yield a.mkdirP(s);return s}))}function _completeToolPath(e,t,A){const s=h.join(_getCacheDirectory(),e,f.clean(t)||t,A||"");const r=`${s}.complete`;l.writeFileSync(r,"");o.debug("finished caching tool")}function isExplicitVersion(e){const t=f.clean(e)||"";o.debug(`isExplicit: ${t}`);const A=f.valid(t)!=null;o.debug(`explicit? ${A}`);return A}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let A="";o.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(f.gt(e,t)){return 1}return-1}));for(let s=e.length-1;s>=0;s--){const r=e[s];const n=f.satisfies(r,t);if(n){A=r;break}}if(A){o.debug(`matched: ${A}`)}else{o.debug("match not found")}return A}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";(0,Q.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";(0,Q.ok)(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const A=global[e];return A!==undefined?A:t}function _unique(e){return Array.from(new Set(e))}},6193:(e,t)=>{t=e.exports=SemVer;var A;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){A=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{A=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var s=256;var r=Number.MAX_SAFE_INTEGER||9007199254740991;var n=16;var i=s-6;var o=t.re=[];var a=t.safeRe=[];var c=t.src=[];var l=t.tokens={};var u=0;function tok(e){l[e]=u++}var g="[a-zA-Z0-9-]";var h=[["\\s",1],["\\d",s],[g,i]];function makeSafeRe(e){for(var t=0;t)?=?)";tok("XRANGEIDENTIFIERLOOSE");c[l.XRANGEIDENTIFIERLOOSE]=c[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");c[l.XRANGEIDENTIFIER]=c[l.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");c[l.XRANGEPLAIN]="[v=\\s]*("+c[l.XRANGEIDENTIFIER]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIER]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIER]+")"+"(?:"+c[l.PRERELEASE]+")?"+c[l.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");c[l.XRANGEPLAINLOOSE]="[v=\\s]*("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+c[l.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+c[l.PRERELEASELOOSE]+")?"+c[l.BUILD]+"?"+")?)?";tok("XRANGE");c[l.XRANGE]="^"+c[l.GTLT]+"\\s*"+c[l.XRANGEPLAIN]+"$";tok("XRANGELOOSE");c[l.XRANGELOOSE]="^"+c[l.GTLT]+"\\s*"+c[l.XRANGEPLAINLOOSE]+"$";tok("COERCE");c[l.COERCE]="(^|[^\\d])"+"(\\d{1,"+n+"})"+"(?:\\.(\\d{1,"+n+"}))?"+"(?:\\.(\\d{1,"+n+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");o[l.COERCERTL]=new RegExp(c[l.COERCE],"g");a[l.COERCERTL]=new RegExp(makeSafeRe(c[l.COERCE]),"g");tok("LONETILDE");c[l.LONETILDE]="(?:~>?)";tok("TILDETRIM");c[l.TILDETRIM]="(\\s*)"+c[l.LONETILDE]+"\\s+";o[l.TILDETRIM]=new RegExp(c[l.TILDETRIM],"g");a[l.TILDETRIM]=new RegExp(makeSafeRe(c[l.TILDETRIM]),"g");var E="$1~";tok("TILDE");c[l.TILDE]="^"+c[l.LONETILDE]+c[l.XRANGEPLAIN]+"$";tok("TILDELOOSE");c[l.TILDELOOSE]="^"+c[l.LONETILDE]+c[l.XRANGEPLAINLOOSE]+"$";tok("LONECARET");c[l.LONECARET]="(?:\\^)";tok("CARETTRIM");c[l.CARETTRIM]="(\\s*)"+c[l.LONECARET]+"\\s+";o[l.CARETTRIM]=new RegExp(c[l.CARETTRIM],"g");a[l.CARETTRIM]=new RegExp(makeSafeRe(c[l.CARETTRIM]),"g");var f="$1^";tok("CARET");c[l.CARET]="^"+c[l.LONECARET]+c[l.XRANGEPLAIN]+"$";tok("CARETLOOSE");c[l.CARETLOOSE]="^"+c[l.LONECARET]+c[l.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");c[l.COMPARATORLOOSE]="^"+c[l.GTLT]+"\\s*("+c[l.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");c[l.COMPARATOR]="^"+c[l.GTLT]+"\\s*("+c[l.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");c[l.COMPARATORTRIM]="(\\s*)"+c[l.GTLT]+"\\s*("+c[l.LOOSEPLAIN]+"|"+c[l.XRANGEPLAIN]+")";o[l.COMPARATORTRIM]=new RegExp(c[l.COMPARATORTRIM],"g");a[l.COMPARATORTRIM]=new RegExp(makeSafeRe(c[l.COMPARATORTRIM]),"g");var d="$1$2$3";tok("HYPHENRANGE");c[l.HYPHENRANGE]="^\\s*("+c[l.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+c[l.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");c[l.HYPHENRANGELOOSE]="^\\s*("+c[l.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+c[l.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");c[l.STAR]="(<|>)?=?\\s*\\*";for(var C=0;Cs){return null}var A=t.loose?a[l.LOOSE]:a[l.FULL];if(!A.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var A=parse(e,t);return A?A.version:null}t.clean=clean;function clean(e,t){var A=parse(e.trim().replace(/^[=v]+/,""),t);return A?A.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>s){throw new TypeError("version is longer than "+s+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}A("SemVer",e,t);this.options=t;this.loose=!!t.loose;var n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>r||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>r||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>r||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[A]==="number"){this.prerelease[A]++;A=-2}}if(A===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,A,s){if(typeof A==="string"){s=A;A=undefined}try{return new SemVer(e,A).inc(t,s).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var A=parse(e);var s=parse(t);var r="";if(A.prerelease.length||s.prerelease.length){r="pre";var n="prerelease"}for(var i in A){if(i==="major"||i==="minor"||i==="patch"){if(A[i]!==s[i]){return r+i}}}return n}}t.compareIdentifiers=compareIdentifiers;var Q=/^[0-9]+$/;function compareIdentifiers(e,t){var A=Q.test(e);var s=Q.test(t);if(A&&s){e=+e;t=+t}return e===t?0:A&&!s?-1:s&&!A?1:e0}t.lt=lt;function lt(e,t,A){return compare(e,t,A)<0}t.eq=eq;function eq(e,t,A){return compare(e,t,A)===0}t.neq=neq;function neq(e,t,A){return compare(e,t,A)!==0}t.gte=gte;function gte(e,t,A){return compare(e,t,A)>=0}t.lte=lte;function lte(e,t,A){return compare(e,t,A)<=0}t.cmp=cmp;function cmp(e,t,A,s){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof A==="object")A=A.version;return e===A;case"!==":if(typeof e==="object")e=e.version;if(typeof A==="object")A=A.version;return e!==A;case"":case"=":case"==":return eq(e,A,s);case"!=":return neq(e,A,s);case">":return gt(e,A,s);case">=":return gte(e,A,s);case"<":return lt(e,A,s);case"<=":return lte(e,A,s);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");A("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===I){this.value=""}else{this.value=this.operator+this.semver.version}A("comp",this)}var I={};Comparator.prototype.parse=function(e){var t=this.options.loose?a[l.COMPARATORLOOSE]:a[l.COMPARATOR];var A=e.match(t);if(!A){throw new TypeError("Invalid comparator: "+e)}this.operator=A[1]!==undefined?A[1]:"";if(this.operator==="="){this.operator=""}if(!A[2]){this.semver=I}else{this.semver=new SemVer(A[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){A("Comparator.test",e,this.options.loose);if(this.semver===I||e===I){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var A;if(this.operator===""){if(this.value===""){return true}A=new Range(e.value,t);return satisfies(this.value,A,t)}else if(e.operator===""){if(e.value===""){return true}A=new Range(this.value,t);return satisfies(e.semver,A,t)}var s=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var r=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var n=this.semver.version===e.semver.version;var i=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var o=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var a=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return s||r||n&&i||o||a};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}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}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var s=t?a[l.HYPHENRANGELOOSE]:a[l.HYPHENRANGE];e=e.replace(s,hyphenReplace);A("hyphen replace",e);e=e.replace(a[l.COMPARATORTRIM],d);A("comparator trim",e,a[l.COMPARATORTRIM]);e=e.replace(a[l.TILDETRIM],E);e=e.replace(a[l.CARETTRIM],f);e=e.split(/\s+/).join(" ");var r=t?a[l.COMPARATORLOOSE]:a[l.COMPARATOR];var n=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){n=n.filter((function(e){return!!e.match(r)}))}n=n.map((function(e){return new Comparator(e,this.options)}),this);return n};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(A){return isSatisfiable(A,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&A.every((function(A){return e.every((function(e){return A.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var A=true;var s=e.slice();var r=s.pop();while(A&&s.length){A=s.every((function(e){return r.intersects(e,t)}));r=s.pop()}return A}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){A("comp",e,t);e=replaceCarets(e,t);A("caret",e);e=replaceTildes(e,t);A("tildes",e);e=replaceXRanges(e,t);A("xrange",e);e=replaceStars(e,t);A("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var s=t.loose?a[l.TILDELOOSE]:a[l.TILDE];return e.replace(s,(function(t,s,r,n,i){A("tilde",e,t,s,r,n,i);var o;if(isX(s)){o=""}else if(isX(r)){o=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(n)){o=">="+s+"."+r+".0 <"+s+"."+(+r+1)+".0"}else if(i){A("replaceTilde pr",i);o=">="+s+"."+r+"."+n+"-"+i+" <"+s+"."+(+r+1)+".0"}else{o=">="+s+"."+r+"."+n+" <"+s+"."+(+r+1)+".0"}A("tilde return",o);return o}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){A("caret",e,t);var s=t.loose?a[l.CARETLOOSE]:a[l.CARET];return e.replace(s,(function(t,s,r,n,i){A("caret",e,t,s,r,n,i);var o;if(isX(s)){o=""}else if(isX(r)){o=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(n)){if(s==="0"){o=">="+s+"."+r+".0 <"+s+"."+(+r+1)+".0"}else{o=">="+s+"."+r+".0 <"+(+s+1)+".0.0"}}else if(i){A("replaceCaret pr",i);if(s==="0"){if(r==="0"){o=">="+s+"."+r+"."+n+"-"+i+" <"+s+"."+r+"."+(+n+1)}else{o=">="+s+"."+r+"."+n+"-"+i+" <"+s+"."+(+r+1)+".0"}}else{o=">="+s+"."+r+"."+n+"-"+i+" <"+(+s+1)+".0.0"}}else{A("no pr");if(s==="0"){if(r==="0"){o=">="+s+"."+r+"."+n+" <"+s+"."+r+"."+(+n+1)}else{o=">="+s+"."+r+"."+n+" <"+s+"."+(+r+1)+".0"}}else{o=">="+s+"."+r+"."+n+" <"+(+s+1)+".0.0"}}A("caret return",o);return o}))}function replaceXRanges(e,t){A("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var s=t.loose?a[l.XRANGELOOSE]:a[l.XRANGE];return e.replace(s,(function(s,r,n,i,o,a){A("xRange",e,s,r,n,i,o,a);var c=isX(n);var l=c||isX(i);var u=l||isX(o);var g=u;if(r==="="&&g){r=""}a=t.includePrerelease?"-0":"";if(c){if(r===">"||r==="<"){s="<0.0.0-0"}else{s="*"}}else if(r&&g){if(l){i=0}o=0;if(r===">"){r=">=";if(l){n=+n+1;i=0;o=0}else{i=+i+1;o=0}}else if(r==="<="){r="<";if(l){n=+n+1}else{i=+i+1}}s=r+n+"."+i+"."+o+a}else if(l){s=">="+n+".0.0"+a+" <"+(+n+1)+".0.0"+a}else if(u){s=">="+n+"."+i+".0"+a+" <"+n+"."+(+i+1)+".0"+a}A("xRange return",s);return s}))}function replaceStars(e,t){A("replaceStars",e,t);return e.trim().replace(a[l.STAR],"")}function hyphenReplace(e,t,A,s,r,n,i,o,a,c,l,u,g){if(isX(A)){t=""}else if(isX(s)){t=">="+A+".0.0"}else if(isX(r)){t=">="+A+"."+s+".0"}else{t=">="+t}if(isX(a)){o=""}else if(isX(c)){o="<"+(+a+1)+".0.0"}else if(isX(l)){o="<"+a+"."+(+c+1)+".0"}else if(u){o="<="+a+"."+c+"."+l+"-"+u}else{o="<="+o}return(t+" "+o).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,A){try{t=new Range(t,A)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,A){var s=null;var r=null;try{var n=new Range(t,A)}catch(e){return null}e.forEach((function(e){if(n.test(e)){if(!s||r.compare(e)===-1){s=e;r=new SemVer(s,A)}}}));return s}t.minSatisfying=minSatisfying;function minSatisfying(e,t,A){var s=null;var r=null;try{var n=new Range(t,A)}catch(e){return null}e.forEach((function(e){if(n.test(e)){if(!s||r.compare(e)===1){s=e;r=new SemVer(s,A)}}}));return s}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var A=new SemVer("0.0.0");if(e.test(A)){return A}A=new SemVer("0.0.0-0");if(e.test(A)){return A}A=null;for(var s=0;s":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!A||gt(A,t)){A=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(A&&e.test(A)){return A}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,A){return outside(e,t,"<",A)}t.gtr=gtr;function gtr(e,t,A){return outside(e,t,">",A)}t.outside=outside;function outside(e,t,A,s){e=new SemVer(e,s);t=new Range(t,s);var r,n,i,o,a;switch(A){case">":r=gt;n=lte;i=lt;o=">";a=">=";break;case"<":r=lt;n=gte;i=gt;o="<";a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,s)){return false}for(var c=0;c=0.0.0")}u=u||e;g=g||e;if(r(e.semver,u.semver,s)){u=e}else if(i(e.semver,g.semver,s)){g=e}}));if(u.operator===o||u.operator===a){return false}if((!g.operator||g.operator===o)&&n(e,g.semver)){return false}else if(g.operator===a&&i(e,g.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var A=parse(e,t);return A&&A.prerelease.length?A.prerelease:null}t.intersects=intersects;function intersects(e,t,A){e=new Range(e,A);t=new Range(t,A);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var A=null;if(!t.rtl){A=e.match(a[l.COERCE])}else{var s;while((s=a[l.COERCERTL].exec(e))&&(!A||A.index+A[0].length!==e.length)){if(!A||s.index+s[0].length!==A.index+A[0].length){A=s}a[l.COERCERTL].lastIndex=s.index+s[1].length+s[2].length}a[l.COERCERTL].lastIndex=-1}if(A===null){return null}return parse(A[2]+"."+(A[3]||"0")+"."+(A[4]||"0"),t)}},6160:(e,t,A)=>{(()=>{"use strict";var t={7258:function(e,t,A){var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var A in e)if(Object.prototype.hasOwnProperty.call(e,A))t[t.length]=A;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A=ownKeys(e),n=0;ne.trim()===""?"":` ${e}`)).join("\n").trim();if(s===""){throw new Error(`Input "${e}" is missing a description`)}const r=t.default?`, default: \`${t.default}\``:"";n.push(`- ${e}: _(${A}${r})_ ${s}\n`)}const a=t.indexOf("\x3c!-- BEGIN_AUTOGEN_INPUTS --\x3e");const c=t.indexOf("\x3c!-- END_AUTOGEN_INPUTS --\x3e");t.splice(a+1,c-a-1,"",...n,"");const l=Object.entries(s.outputs||{});if(l.length===0)console.warn(`action.yml outputs are empty`);const u=[];for(const[e,t]of l){const A=(t?.description||"").split("\n").map((e=>e.trim()===""?"":` ${e}`)).join("\n").trim();if(A===""){throw new Error(`Output "${e}" is missing a description`)}u.push(`- ${e}: ${A}\n`)}const g=t.indexOf("\x3c!-- BEGIN_AUTOGEN_OUTPUTS --\x3e");const h=t.indexOf("\x3c!-- END_AUTOGEN_OUTPUTS --\x3e");t.splice(g+1,h-g-1,"",...u,"");await(0,i.writeFile)("README.md",t.join("\n"),"utf8")}},9081:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseCredential=parseCredential;t.isServiceAccountKey=isServiceAccountKey;t.isExternalAccount=isExternalAccount;const s=A(3916);const r=A(6266);function parseCredential(e){e=(e||"").trim();if(!e){throw new Error(`Missing service account key JSON (got empty value)`)}if(!e.startsWith("{")){e=(0,r.fromBase64)(e)}try{const t=JSON.parse(e);return t}catch(e){const t=(0,s.errorMessage)(e);throw new SyntaxError(`Failed to parse service account key JSON credentials: ${t}`)}}function isServiceAccountKey(e){return e.type==="service_account"}function isExternalAccount(e){return e.type!=="external_account"}t["default"]={parseCredential:parseCredential,isServiceAccountKey:isServiceAccountKey,isExternalAccount:isExternalAccount}},3214:function(e,t,A){var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var A in e)if(Object.prototype.hasOwnProperty.call(e,A))t[t.length]=A;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var A=ownKeys(e),n=0;n{Object.defineProperty(t,"__esModule",{value:true});t.parseCSV=parseCSV;t.parseMultilineCSV=parseMultilineCSV;function parseCSV(e){e=(e||"").trim();if(!e){return[]}const t=e.split(/(?{Object.defineProperty(t,"__esModule",{value:true});t.toBase64=toBase64;t.fromBase64=fromBase64;function toBase64(e){return Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function fromBase64(e,t){if(!t){t="utf8"}let A=e.replace(/-/g,"+").replace(/_/g,"/");while(A.length%4)A+="=";return Buffer.from(A,"base64").toString(t)}},3466:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.toEnum=toEnum;function toEnum(e,t){const A=(t||"").toUpperCase();const s=A.replace(/[\s-]+/g,"_");if(A in e){return e[A]}else if(s in e){return e[s]}else{const A=Object.keys(e);throw new Error(`Invalid value ${t}, valid values are ${JSON.stringify(A)}`)}}},8204:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.stubEnv=stubEnv;function stubEnv(e,t=process.env){const A={};for(const s in e){A[s]=t[s];if(e[s]!==undefined){t[s]=e[s]}else{delete t[s]}}return()=>{for(const e in A){if(A[e]!==undefined){t[e]=A[e]}else{delete t[e]}}}}},3916:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.errorMessage=errorMessage;t.isNotFoundError=isNotFoundError;function errorMessage(e){let t;if(e===null){t="null"}else if(e===undefined||typeof e==="undefined"){t="undefined"}else if(typeof e==="bigint"||e instanceof BigInt){t=e.toString()}else if(typeof e==="boolean"||e instanceof Boolean){t=e.toString()}else if(e instanceof Error){t=e.message}else if(typeof e==="function"||e instanceof Function){t=errorMessage(e())}else if(typeof e==="number"||e instanceof Number){t=e.toString()}else if(typeof e==="string"||e instanceof String){t=e.toString()}else if(typeof e==="symbol"||e instanceof Symbol){t=e.toString()}else if(typeof e==="object"||e instanceof Object){t=JSON.stringify(e)}else{t=String(`[${typeof e}] ${e}`)}const A=t.trim().replace("Error: ","").trim();if(!A)return"";if(A.length>1&&isUpper(A[0])&&!isUpper(A[1])){return A[0].toLowerCase()+A.slice(1)}return A}function isNotFoundError(e){const t=errorMessage(e);return t.toUpperCase().includes("ENOENT")}function isUpper(e){return e===e.toUpperCase()}},6148:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseFlags=parseFlags;t.readUntil=readUntil;function parseFlags(e){const t=[];let A="";let s=false;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t.forceRemove=forceRemove;t.isEmptyDir=isEmptyDir;t.writeSecureFile=writeSecureFile;t.removeFile=removeFile;const s=A(9896);const r=A(3916);async function forceRemove(e){try{await s.promises.rm(e,{force:true,recursive:true})}catch(t){if(!(0,r.isNotFoundError)(t)){const A=(0,r.errorMessage)(t);throw new Error(`Failed to remove "${e}": ${A}`)}}}async function isEmptyDir(e){try{const t=await s.promises.readdir(e);return t.length<=0}catch{return true}}async function writeSecureFile(e,t,A){const r=Object.assign({},{mode:416,flag:"wx",flush:true},A);await s.promises.writeFile(e,t,r);return e}async function removeFile(e){try{await s.promises.unlink(e);return true}catch(t){if((0,r.isNotFoundError)(t)){return false}const A=(0,r.errorMessage)(t);throw new Error(`Failed to remove "${e}": ${A}`)}}},7237:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseGcloudIgnore=parseGcloudIgnore;const s=A(9896);const r=A(6928);const n=A(3916);async function parseGcloudIgnore(e){const t=(0,r.dirname)(e);let A=[];try{A=(await s.promises.readFile(e,{encoding:"utf8"})).toString().split(/\r?\n/).filter(shouldKeepIgnoreLine).map((e=>e.trim()))}catch(e){if(!(0,n.isNotFoundError)(e)){throw e}}for(let e=0;ee.trim()));A.splice(e,1,...a);e+=a.length}}return A}function shouldKeepIgnoreLine(e){const t=(e||"").trim();if(t===""){return false}if(t.startsWith("#")&&!t.startsWith("#!")){return false}return true}},9407:function(e,t,A){var s=this&&this.__createBinding||(Object.create?function(e,t,A,s){if(s===undefined)s=A;var r=Object.getOwnPropertyDescriptor(t,A);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[A]}}}Object.defineProperty(e,s,r)}:function(e,t,A,s){if(s===undefined)s=A;e[s]=t[A]});var r=this&&this.__exportStar||function(e,t){for(var A in e)if(A!=="default"&&!Object.prototype.hasOwnProperty.call(t,A))s(t,e,A)};Object.defineProperty(t,"__esModule",{value:true});r(A(7258),t);r(A(9081),t);r(A(3214),t);r(A(731),t);r(A(6266),t);r(A(3466),t);r(A(8204),t);r(A(3916),t);r(A(6148),t);r(A(4772),t);r(A(7237),t);r(A(3599),t);r(A(4958),t);r(A(3716),t);r(A(7384),t);r(A(436),t);r(A(9809),t);r(A(8935),t);r(A(9834),t);r(A(6244),t);r(A(5215),t);r(A(286),t)},3599:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseBoolean=parseBoolean;const A={1:true,t:true,T:true,true:true,True:true,TRUE:true,0:false,f:false,F:false,false:false,False:false,FALSE:false};function parseBoolean(e,t=false){const s=(e||"").trim();if(s===""){return t}if(!(s in A)){throw new Error(`invalid boolean value "${s}"`)}return A[s]}},4958:function(e,t,A){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.joinKVString=joinKVString;t.joinKVStringForGCloud=joinKVStringForGCloud;t.parseKVString=parseKVString;t.parseKVFile=parseKVFile;t.parseKVJSON=parseKVJSON;t.parseKVYAML=parseKVYAML;t.parseKVStringAndFile=parseKVStringAndFile;const r=s(A(8815));const n=A(9896);const i=A(3916);const o=A(5215);function joinKVString(e,t=","){return Object.entries(e).map((([e,t])=>`${e}=${t}`)).join(t)}function joinKVStringForGCloud(e,t=",.!@#$%&*()_=+~`[]{}|:;<>?🚀🍪🐼"){const A=joinKVString(e,"");if(A===""){return""}const s={};for(let e=0;eA+=e;const setValue=e=>s+=e;let n=setKey;for(let i=0;i=0){n(o);r=-1}else if(o==="\\"){r=i}else if(o==="="){if(A===""){throw new Error(`Invalid start sequence for value (no preceeding key before "=") at ${i}`)}if(n===setValue){n(o)}n=setValue}else if(o==="\n"||o==="\r"||o==="\u2028"||o==="\u2029"||o===","){if(A!==""){t[A.trim()]=s.trim()}A="";s="";n=setKey}else{n(o)}}if(r>=0){throw new Error(`Unterminated escape character at ${r}`)}if(A!==""){t[A.trim()]=s.trim()}return t}function parseKVFile(e){try{const t=(0,o.presence)((0,n.readFileSync)(e,"utf8"));if(!t||t.length<1){return undefined}if(t[0]==="{"||t[0]==="["){return parseKVJSON(t)}if(t.match(/^.+=.+/gi)){return parseKVString(t)}return parseKVYAML(t)}catch(t){const A=(0,i.errorMessage)(t);throw new Error(`Failed to read file '${e}': ${A}`)}}function parseKVJSON(e){e=(e||"").trim();if(!e){return undefined}if(e==="{}"){return{}}try{const t=JSON.parse(e);const A={};for(const[e,s]of Object.entries(t)){if(typeof e!=="string"){throw new SyntaxError(`Failed to parse key "${e}", expected string, got ${typeof e}`)}if(e.trim()===""){throw new SyntaxError(`Failed to parse key "${e}", expected at least one character`)}if(typeof s!=="string"){const t=JSON.stringify(s);throw new SyntaxError(`Failed to parse value "${t}" for "${e}", expected string, got ${typeof s}`)}if(s.trim()===""){throw new SyntaxError(`Value for key "${e}" cannot be empty (got "${s}")`)}A[e]=s}return A}catch(e){const t=(0,i.errorMessage)(e);throw new Error(`Failed to parse KV pairs as JSON: ${t}`)}}function parseKVYAML(e){const t=(e||"").trim();if(!t){return undefined}if(t==="{}"){return{}}const A=r.default.parse(e);const s={};for(const[e,t]of Object.entries(A)){if(typeof e!=="string"||typeof t!=="string"){throw new SyntaxError(`env_vars_file must contain only KEY: VALUE strings. Error parsing key ${e} of type ${typeof e} with value ${t} of type ${typeof t}`)}s[e.trim()]=t.trim()}return s}function parseKVStringAndFile(e,t){e=(e||"").trim();t=(t||"").trim();const A=t?parseKVFile(t):undefined;const s=e?parseKVString(e):undefined;if(A===undefined&&s===undefined){return undefined}return Object.assign({},A,s)}},3716:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.inParallel=inParallel;const s=A(857);const r=A(3916);async function inParallel(e,t){t=Math.min(t||(0,s.cpus)().length-1);if(t<1){throw new Error(`concurrency must be at least 1`)}const A=[];const n=[];const runTasks=async e=>{for await(const[t,s]of e){try{A[t]=await s()}catch(e){n.push((0,r.errorMessage)(e))}}};const i=new Array(t).fill(e.entries()).map(runTasks);await Promise.allSettled(i);if(n.length>0){throw new Error(n.join("\n"))}return A}},7384:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.toPosixPath=toPosixPath;t.toWin32Path=toWin32Path;t.toPlatformPath=toPlatformPath;const s=A(6928);function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}},436:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.randomFilename=randomFilename;t.randomFilepath=randomFilepath;const s=A(6928);const r=A(6982);const n=A(857);function randomFilename(e=12){return(0,r.randomBytes)(e).toString("hex")}function randomFilepath(e=(0,n.tmpdir)(),t=12){return(0,s.join)(e,randomFilename(t))}t["default"]={randomFilename:randomFilename,randomFilepath:randomFilepath}},9809:(e,t,A)=>{Object.defineProperty(t,"__esModule",{value:true});t.withRetries=withRetries;const s=A(3916);const r=A(9834);const n=100;function withRetries(e,t){const A=t.retries;const i=typeof t?.backoffLimit!=="undefined"?Math.max(t.backoffLimit,0):undefined;let o=t.backoff??n;if(typeof i!=="undefined"){o=Math.min(o,i)}return async function(){let n=A+1;let a=o;const c=i;let l=0;let u="unknown";do{try{return await e()}catch(e){u=(0,s.errorMessage)(e);--n;if(n>0){await(0,r.sleep)(a);let e=l+a;if(typeof c!=="undefined"){e=Math.min(e,Number(c))}l=a;a=e}}}while(n>0);const g=t.retries+1;const h=g===1?`1 attempt`:`${g} attempts`;throw new Error(`retry function failed after ${h}: ${u}`)}}},8935:function(e,t,A){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.setInput=setInput;t.setInputs=setInputs;t.clearInputs=clearInputs;t.clearEnv=clearEnv;t.skipIfMissingEnv=skipIfMissingEnv;t.assertMembers=assertMembers;const r=s(A(4589));function setInput(e,t){const A=`INPUT_${e.replace(/ /g,"_").toUpperCase()}`;process.env[A]=t}function setInputs(e){Object.entries(e).forEach((([e,t])=>setInput(e,t)))}function clearInputs(){clearEnv((e=>e.startsWith(`INPUT_`)))}function clearEnv(e){Object.keys(process.env).forEach((t=>{if(e(t,process.env[t])){delete process.env[t]}}))}function skipIfMissingEnv(...e){for(const t of e){if(!(t in process.env)){return`missing $${t}`}}return false}function assertMembers(e,t){for(let A=0;A<=e.length-t.length;A++){let s=true;for(let r=0;r{Object.defineProperty(t,"__esModule",{value:true});t.parseDuration=parseDuration;t.sleep=sleep;function parseDuration(e){e=(e||"").trim();if(!e){return 0}let t=0;let A="";for(let s=0;ssetTimeout(t,e)))}},6244:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.expandUniverseEndpoints=expandUniverseEndpoints;function expandUniverseEndpoints(e,t="googleapis.com"){const A=Object.assign({});for(const s in e){const r=`GHA_ENDPOINT_OVERRIDE_${s}`;const n=process.env[r];if(n&&n!==""){A[s]=n.replace(/\/+$/,"")}else{A[s]=e[s].replace(/{universe}/g,t).replace(/\/+$/,"")}}return A}},5215:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.presence=presence;t.exactlyOneOf=exactlyOneOf;t.allOf=allOf;function presence(e){return(e||"").trim()||undefined}function exactlyOneOf(...e){e=e||[];let t=false;for(let A=0;A{Object.defineProperty(t,"__esModule",{value:true});t.isPinnedToHead=isPinnedToHead;t.pinnedToHeadWarning=pinnedToHeadWarning;function isPinnedToHead(){const e=process.env.GITHUB_ACTION_REF;return e==="master"||e==="main"}function pinnedToHeadWarning(e){const t=process.env.GITHUB_ACTION_REF;const A=process.env.GITHUB_ACTION_REPOSITORY;return`${A} is pinned at "${t}". We strongly advise against `+`pinning to "@${t}" as it may be unstable. Please update your `+`GitHub Action YAML from:\n`+`\n`+` uses: '${A}@${t}'\n`+`\n`+`to:\n`+`\n`+` uses: '${A}@${e}'\n`+`\n`+`Alternatively, you can pin to any git tag or git SHA in the repository.`}},181:e=>{e.exports=A(181)},6982:e=>{e.exports=A(6982)},9896:e=>{e.exports=A(9896)},1943:e=>{e.exports=A(1943)},4589:e=>{e.exports=A(4589)},857:e=>{e.exports=A(857)},6928:e=>{e.exports=A(6928)},932:e=>{e.exports=A(932)},1493:e=>{e.exports=A(1493)},7349:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(4454);var i=A(2223);var o=A(7103);var a=A(334);var c=A(3142);function resolveCollection(e,t,A,s,r,n){const i=A.type==="block-map"?o.resolveBlockMap(e,t,A,s,n):A.type==="block-seq"?a.resolveBlockSeq(e,t,A,s,n):c.resolveFlowCollection(e,t,A,s,n);const l=i.constructor;if(r==="!"||r===l.tagName){i.tag=l.tagName;return i}if(r)i.tag=r;return i}function composeCollection(e,t,A,o,a){const c=o.tag;const l=!c?null:t.directives.tagName(c.source,(e=>a(c,"TAG_RESOLVE_FAILED",e)));if(A.type==="block-seq"){const{anchor:e,newlineAfterProp:t}=o;const A=e&&c?e.offset>c.offset?e:c:e??c;if(A&&(!t||t.offsete.tag===l&&e.collection===u));if(!g){const s=t.schema.knownTags[l];if(s&&s.collection===u){t.schema.tags.push(Object.assign({},s,{default:false}));g=s}else{if(s){a(c,"BAD_COLLECTION_TYPE",`${s.tag} used for ${u} collection, but expects ${s.collection??"scalar"}`,true)}else{a(c,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,true)}return resolveCollection(e,t,A,a,l)}}const h=resolveCollection(e,t,A,a,l,g);const E=g.resolve?.(h,(e=>a(c,"TAG_RESOLVE_FAILED",e)),t.options)??h;const f=s.isNode(E)?E:new r.Scalar(E);f.range=h.range;f.tag=l;if(g?.format)f.format=g.format;return f}t.composeCollection=composeCollection},3683:(e,t,A)=>{var s=A(3021);var r=A(5937);var n=A(7788);var i=A(4631);function composeDoc(e,t,{offset:A,start:o,value:a,end:c},l){const u=Object.assign({_directives:t},e);const g=new s.Document(undefined,u);const h={atKey:false,atRoot:true,directives:g.directives,options:g.options,schema:g.schema};const E=i.resolveProps(o,{indicator:"doc-start",next:a??c?.[0],offset:A,onError:l,parentIndent:0,startOnNewline:true});if(E.found){g.directives.docStart=true;if(a&&(a.type==="block-map"||a.type==="block-seq")&&!E.hasNewline)l(E.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}g.contents=a?r.composeNode(h,a,E,l):r.composeEmptyNode(h,E.end,o,null,E,l);const f=g.contents.range[2];const d=n.resolveEnd(c,f,false,l);if(d.comment)g.comment=d.comment;g.range=[A,f,d.offset];return g}t.composeDoc=composeDoc},5937:(e,t,A)=>{var s=A(4065);var r=A(1127);var n=A(7349);var i=A(5413);var o=A(7788);var a=A(2599);const c={composeNode:composeNode,composeEmptyNode:composeEmptyNode};function composeNode(e,t,A,s){const o=e.atKey;const{spaceBefore:a,comment:l,anchor:u,tag:g}=A;let h;let E=true;switch(t.type){case"alias":h=composeAlias(e,t,s);if(u||g)s(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":h=i.composeScalar(e,t,g,s);if(u)h.anchor=u.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":h=n.composeCollection(c,e,t,A,s);if(u)h.anchor=u.source.substring(1);break;default:{const r=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;s(t,"UNEXPECTED_TOKEN",r);h=composeEmptyNode(e,t.offset,undefined,null,A,s);E=false}}if(u&&h.anchor==="")s(u,"BAD_ALIAS","Anchor cannot be an empty string");if(o&&e.options.stringKeys&&(!r.isScalar(h)||typeof h.value!=="string"||h.tag&&h.tag!=="tag:yaml.org,2002:str")){const e="With stringKeys, all keys must be strings";s(g??t,"NON_STRING_KEY",e)}if(a)h.spaceBefore=true;if(l){if(t.type==="scalar"&&t.source==="")h.comment=l;else h.commentBefore=l}if(e.options.keepSourceTokens&&E)h.srcToken=t;return h}function composeEmptyNode(e,t,A,s,{spaceBefore:r,comment:n,anchor:o,tag:c,end:l},u){const g={type:"scalar",offset:a.emptyScalarPosition(t,A,s),indent:-1,source:""};const h=i.composeScalar(e,g,c,u);if(o){h.anchor=o.source.substring(1);if(h.anchor==="")u(o,"BAD_ALIAS","Anchor cannot be an empty string")}if(r)h.spaceBefore=true;if(n){h.comment=n;h.range[2]=l}return h}function composeAlias({options:e},{offset:t,source:A,end:r},n){const i=new s.Alias(A.substring(1));if(i.source==="")n(t,"BAD_ALIAS","Alias cannot be an empty string");if(i.source.endsWith(":"))n(t+A.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",true);const a=t+A.length;const c=o.resolveEnd(r,a,e.strict,n);i.range=[t,a,c.offset];if(c.comment)i.comment=c.comment;return i}t.composeEmptyNode=composeEmptyNode;t.composeNode=composeNode},5413:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(8913);var i=A(6842);function composeScalar(e,t,A,o){const{value:a,type:c,comment:l,range:u}=t.type==="block-scalar"?n.resolveBlockScalar(e,t,o):i.resolveFlowScalar(t,e.options.strict,o);const g=A?e.directives.tagName(A.source,(e=>o(A,"TAG_RESOLVE_FAILED",e))):null;let h;if(e.options.stringKeys&&e.atKey){h=e.schema[s.SCALAR]}else if(g)h=findScalarTagByName(e.schema,a,g,A,o);else if(t.type==="scalar")h=findScalarTagByTest(e,a,t,o);else h=e.schema[s.SCALAR];let E;try{const n=h.resolve(a,(e=>o(A??t,"TAG_RESOLVE_FAILED",e)),e.options);E=s.isScalar(n)?n:new r.Scalar(n)}catch(e){const s=e instanceof Error?e.message:String(e);o(A??t,"TAG_RESOLVE_FAILED",s);E=new r.Scalar(a)}E.range=u;E.source=a;if(c)E.type=c;if(g)E.tag=g;if(h.format)E.format=h.format;if(l)E.comment=l;return E}function findScalarTagByName(e,t,A,r,n){if(A==="!")return e[s.SCALAR];const i=[];for(const t of e.tags){if(!t.collection&&t.tag===A){if(t.default&&t.test)i.push(t);else return t}}for(const e of i)if(e.test?.test(t))return e;const o=e.knownTags[A];if(o&&!o.collection){e.tags.push(Object.assign({},o,{default:false,test:undefined}));return o}n(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${A}`,A!=="tag:yaml.org,2002:str");return e[s.SCALAR]}function findScalarTagByTest({atKey:e,directives:t,schema:A},r,n,i){const o=A.tags.find((t=>(t.default===true||e&&t.default==="key")&&t.test?.test(r)))||A[s.SCALAR];if(A.compat){const e=A.compat.find((e=>e.default&&e.test?.test(r)))??A[s.SCALAR];if(o.tag!==e.tag){const A=t.tagString(o.tag);const s=t.tagString(e.tag);const r=`Value may be parsed as either ${A} or ${s}`;i(n,"TAG_RESOLVE_FAILED",r,true)}}return o}t.composeScalar=composeScalar},9984:(e,t,A)=>{var s=A(932);var r=A(1342);var n=A(3021);var i=A(1464);var o=A(1127);var a=A(3683);var c=A(7788);function getErrorPos(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:A}=e;return[t,t+(typeof A==="string"?A.length:1)]}function parsePrelude(e){let t="";let A=false;let s=false;for(let r=0;r{const r=getErrorPos(e);if(s)this.warnings.push(new i.YAMLWarning(r,t,A));else this.errors.push(new i.YAMLParseError(r,t,A))};this.directives=new r.Directives({version:e.version||"1.2"});this.options=e}decorate(e,t){const{comment:A,afterEmptyLine:s}=parsePrelude(this.prelude);if(A){const r=e.contents;if(t){e.comment=e.comment?`${e.comment}\n${A}`:A}else if(s||e.directives.docStart||!r){e.commentBefore=A}else if(o.isCollection(r)&&!r.flow&&r.items.length>0){let e=r.items[0];if(o.isPair(e))e=e.key;const t=e.commentBefore;e.commentBefore=t?`${A}\n${t}`:A}else{const e=r.commentBefore;r.commentBefore=e?`${A}\n${e}`:A}}if(t){Array.prototype.push.apply(e.errors,this.errors);Array.prototype.push.apply(e.warnings,this.warnings)}else{e.errors=this.errors;e.warnings=this.warnings}this.prelude=[];this.errors=[];this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=false,A=-1){for(const t of e)yield*this.next(t);yield*this.end(t,A)}*next(e){if(s.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,((t,A,s)=>{const r=getErrorPos(e);r[0]+=t;this.onError(r,"BAD_DIRECTIVE",A,s)}));this.prelude.push(e.source);this.atDirectives=true;break;case"document":{const t=a.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");this.decorate(t,false);if(this.doc)yield this.doc;this.doc=t;this.atDirectives=false;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message;const A=new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(A);else this.doc.errors.push(A);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=true;const t=c.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);this.decorate(this.doc,true);if(t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(getErrorPos(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=false,t=-1){if(this.doc){this.decorate(this.doc,true);yield this.doc;this.doc=null}else if(e){const e=Object.assign({_directives:this.directives},this.options);const A=new n.Document(undefined,e);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");A.range=[0,t,t];this.decorate(A,false);yield A}}}t.Composer=Composer},7103:(e,t,A)=>{var s=A(7165);var r=A(4454);var n=A(4631);var i=A(9499);var o=A(4051);var a=A(1187);const c="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},A,l,u,g){const h=g?.nodeClass??r.YAMLMap;const E=new h(A.schema);if(A.atRoot)A.atRoot=false;let f=l.offset;let d=null;for(const r of l.items){const{start:g,key:h,sep:C,value:Q}=r;const I=n.resolveProps(g,{indicator:"explicit-key-ind",next:h??C?.[0],offset:f,onError:u,parentIndent:l.indent,startOnNewline:true});const B=!I.found;if(B){if(h){if(h.type==="block-seq")u(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in h&&h.indent!==l.indent)u(f,"BAD_INDENT",c)}if(!I.anchor&&!I.tag&&!C){d=I.end;if(I.comment){if(E.comment)E.comment+="\n"+I.comment;else E.comment=I.comment}continue}if(I.newlineAfterProp||i.containsNewline(h)){u(h??g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}}else if(I.found?.indent!==l.indent){u(f,"BAD_INDENT",c)}A.atKey=true;const p=I.end;const y=h?e(A,h,I,u):t(A,p,g,null,I,u);if(A.schema.compat)o.flowIndentCheck(l.indent,h,u);A.atKey=false;if(a.mapIncludes(A,E.items,y))u(p,"DUPLICATE_KEY","Map keys must be unique");const m=n.resolveProps(C??[],{indicator:"map-value-ind",next:Q,offset:y.range[2],onError:u,parentIndent:l.indent,startOnNewline:!h||h.type==="block-scalar"});f=m.end;if(m.found){if(B){if(Q?.type==="block-map"&&!m.hasNewline)u(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(A.options.strict&&I.start{var s=A(3301);function resolveBlockScalar(e,t,A){const r=t.offset;const n=parseBlockScalarHeader(t,e.options.strict,A);if(!n)return{value:"",type:null,comment:"",range:[r,r,r]};const i=n.mode===">"?s.Scalar.BLOCK_FOLDED:s.Scalar.BLOCK_LITERAL;const o=t.source?splitLines(t.source):[];let a=o.length;for(let e=o.length-1;e>=0;--e){const t=o[e][1];if(t===""||t==="\r")a=e;else break}if(a===0){const e=n.chomp==="+"&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"";let A=r+n.length;if(t.source)A+=t.source.length;return{value:e,type:i,comment:n.comment,range:[r,A,A]}}let c=t.indent+n.indent;let l=t.offset+n.length;let u=0;for(let t=0;tc)c=s.length}else{if(s.length=a;--e){if(o[e][0].length>c)a=e+1}let g="";let h="";let E=false;for(let e=0;ec||r[0]==="\t"){if(h===" ")h="\n";else if(!E&&h==="\n")h="\n\n";g+=h+t.slice(c)+r;h="\n";E=true}else if(r===""){if(h==="\n")g+="\n";else h="\n"}else{g+=h+r;h=" ";E=false}}switch(n.chomp){case"-":break;case"+":for(let e=a;e{var s=A(2223);var r=A(4631);var n=A(4051);function resolveBlockSeq({composeNode:e,composeEmptyNode:t},A,i,o,a){const c=a?.nodeClass??s.YAMLSeq;const l=new c(A.schema);if(A.atRoot)A.atRoot=false;if(A.atKey)A.atKey=false;let u=i.offset;let g=null;for(const{start:s,value:a}of i.items){const c=r.resolveProps(s,{indicator:"seq-item-ind",next:a,offset:u,onError:o,parentIndent:i.indent,startOnNewline:true});if(!c.found){if(c.anchor||c.tag||a){if(a&&a.type==="block-seq")o(c.end,"BAD_INDENT","All sequence items must start at the same column");else o(u,"MISSING_CHAR","Sequence item without - indicator")}else{g=c.end;if(c.comment)l.comment=c.comment;continue}}const h=a?e(A,a,c,o):t(A,c.end,s,null,c,o);if(A.schema.compat)n.flowIndentCheck(i.indent,a,o);u=h.range[2];l.items.push(h)}l.range=[i.offset,u,g??u];return l}t.resolveBlockSeq=resolveBlockSeq},7788:(e,t)=>{function resolveEnd(e,t,A,s){let r="";if(e){let n=false;let i="";for(const o of e){const{source:e,type:a}=o;switch(a){case"space":n=true;break;case"comment":{if(A&&!n)s(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";if(!r)r=t;else r+=i+t;i="";break}case"newline":if(r)i+=e;n=true;break;default:s(o,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}t+=e.length}}return{comment:r,offset:t}}t.resolveEnd=resolveEnd},3142:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(4454);var i=A(2223);var o=A(7788);var a=A(4631);var c=A(9499);var l=A(1187);const u="Block collections are not allowed within flow collections";const isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},A,g,h,E){const f=g.start.source==="{";const d=f?"flow map":"flow sequence";const C=E?.nodeClass??(f?n.YAMLMap:i.YAMLSeq);const Q=new C(A.schema);Q.flow=true;const I=A.atRoot;if(I)A.atRoot=false;if(A.atKey)A.atKey=false;let B=g.offset+g.start.source.length;for(let i=0;i0){const e=o.resolveEnd(m,w,A.options.strict,h);if(e.comment){if(Q.comment)Q.comment+="\n"+e.comment;else Q.comment=e.comment}Q.range=[g.offset,w,e.offset]}else{Q.range=[g.offset,w,w]}return Q}t.resolveFlowCollection=resolveFlowCollection},6842:(e,t,A)=>{var s=A(3301);var r=A(7788);function resolveFlowScalar(e,t,A){const{offset:n,type:i,source:o,end:a}=e;let c;let l;const _onError=(e,t,s)=>A(n+e,t,s);switch(i){case"scalar":c=s.Scalar.PLAIN;l=plainValue(o,_onError);break;case"single-quoted-scalar":c=s.Scalar.QUOTE_SINGLE;l=singleQuotedValue(o,_onError);break;case"double-quoted-scalar":c=s.Scalar.QUOTE_DOUBLE;l=doubleQuotedValue(o,_onError);break;default:A(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`);return{value:"",type:null,comment:"",range:[n,n+o.length,n+o.length]}}const u=n+o.length;const g=r.resolveEnd(a,u,t,A);return{value:l,type:c,comment:g.comment,range:[n,u,g.offset]}}function plainValue(e,t){let A="";switch(e[0]){case"\t":A="a tab character";break;case",":A="flow indicator character ,";break;case"%":A="directive indicator character %";break;case"|":case">":{A=`block scalar indicator ${e[0]}`;break}case"@":case"`":{A=`reserved character ${e[0]}`;break}}if(A)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${A}`);return foldLines(e)}function singleQuotedValue(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,A;try{t=new RegExp("(.*?)(?t?e.slice(t,s+1):r}else{A+=r}}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return A}function foldNewline(e,t){let A="";let s=e[t+1];while(s===" "||s==="\t"||s==="\n"||s==="\r"){if(s==="\r"&&e[t+2]!=="\n")break;if(s==="\n")A+="\n";t+=1;s=e[t+1]}if(!A)A=" ";return{fold:A,offset:t}}const n={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function parseCharCode(e,t,A,s){const r=e.substr(t,A);const n=r.length===A&&/^[0-9a-fA-F]+$/.test(r);const i=n?parseInt(r,16):NaN;if(isNaN(i)){const r=e.substr(t-2,A+2);s(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${r}`);return r}return String.fromCodePoint(i)}t.resolveFlowScalar=resolveFlowScalar},4631:(e,t)=>{function resolveProps(e,{flow:t,indicator:A,next:s,offset:r,onError:n,parentIndent:i,startOnNewline:o}){let a=false;let c=o;let l=o;let u="";let g="";let h=false;let E=false;let f=null;let d=null;let C=null;let Q=null;let I=null;let B=null;let p=null;for(const r of e){if(E){if(r.type!=="space"&&r.type!=="newline"&&r.type!=="comma")n(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");E=false}if(f){if(c&&r.type!=="comment"&&r.type!=="newline"){n(f,"TAB_AS_INDENT","Tabs are not allowed as indentation")}f=null}switch(r.type){case"space":if(!t&&(A!=="doc-start"||s?.type!=="flow-collection")&&r.source.includes("\t")){f=r}l=true;break;case"comment":{if(!l)n(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";if(!u)u=e;else u+=g+e;g="";c=false;break}case"newline":if(c){if(u)u+=r.source;else if(!B||A!=="seq-item-ind")a=true}else g+=r.source;c=true;h=true;if(d||C)Q=r;l=true;break;case"anchor":if(d)n(r,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(r.source.endsWith(":"))n(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",true);d=r;p??(p=r.offset);c=false;l=false;E=true;break;case"tag":{if(C)n(r,"MULTIPLE_TAGS","A node can have at most one tag");C=r;p??(p=r.offset);c=false;l=false;E=true;break}case A:if(d||C)n(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`);if(B)n(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`);B=r;c=A==="seq-item-ind"||A==="explicit-key-ind";l=false;break;case"comma":if(t){if(I)n(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);I=r;c=false;l=false;break}default:n(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`);c=false;l=false}}const y=e[e.length-1];const m=y?y.offset+y.source.length:r;if(E&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")){n(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space")}if(f&&(c&&f.indent<=i||s?.type==="block-map"||s?.type==="block-seq"))n(f,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:I,found:B,spaceBefore:a,comment:u,hasNewline:h,anchor:d,tag:C,newlineAfterProp:Q,end:m,start:p??m}}t.resolveProps=resolveProps},9499:(e,t)=>{function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return true;if(e.end)for(const t of e.end)if(t.type==="newline")return true;return false;case"flow-collection":for(const t of e.items){for(const e of t.start)if(e.type==="newline")return true;if(t.sep)for(const e of t.sep)if(e.type==="newline")return true;if(containsNewline(t.key)||containsNewline(t.value))return true}return false;default:return true}}t.containsNewline=containsNewline},2599:(e,t)=>{function emptyScalarPosition(e,t,A){if(t){A??(A=t.length);for(let s=A-1;s>=0;--s){let A=t[s];switch(A.type){case"space":case"comment":case"newline":e-=A.source.length;continue}A=t[++s];while(A?.type==="space"){e+=A.source.length;A=t[++s]}break}}return e}t.emptyScalarPosition=emptyScalarPosition},4051:(e,t,A)=>{var s=A(9499);function flowIndentCheck(e,t,A){if(t?.type==="flow-collection"){const r=t.end[0];if(r.indent===e&&(r.source==="]"||r.source==="}")&&s.containsNewline(t)){const e="Flow end indicator should be more indented than parent";A(r,"BAD_INDENT",e,true)}}}t.flowIndentCheck=flowIndentCheck},1187:(e,t,A)=>{var s=A(1127);function mapIncludes(e,t,A){const{uniqueKeys:r}=e.options;if(r===false)return false;const n=typeof r==="function"?r:(e,t)=>e===t||s.isScalar(e)&&s.isScalar(t)&&e.value===t.value;return t.some((e=>n(e.key,A)))}t.mapIncludes=mapIncludes},3021:(e,t,A)=>{var s=A(4065);var r=A(101);var n=A(1127);var i=A(7165);var o=A(4043);var a=A(5840);var c=A(6829);var l=A(1596);var u=A(3661);var g=A(2404);var h=A(1342);class Document{constructor(e,t,A){this.commentBefore=null;this.comment=null;this.errors=[];this.warnings=[];Object.defineProperty(this,n.NODE_TYPE,{value:n.DOC});let s=null;if(typeof t==="function"||Array.isArray(t)){s=t}else if(A===undefined&&t){A=t;t=undefined}const r=Object.assign({intAsBigInt:false,keepSourceTokens:false,logLevel:"warn",prettyErrors:true,strict:true,stringKeys:false,uniqueKeys:true,version:"1.2"},A);this.options=r;let{version:i}=r;if(A?._directives){this.directives=A._directives.atDocument();if(this.directives.yaml.explicit)i=this.directives.yaml.version}else this.directives=new h.Directives({version:i});this.setSchema(i,A);this.contents=e===undefined?null:this.createNode(e,s,A)}clone(){const e=Object.create(Document.prototype,{[n.NODE_TYPE]:{value:n.DOC}});e.commentBefore=this.commentBefore;e.comment=this.comment;e.errors=this.errors.slice();e.warnings=this.warnings.slice();e.options=Object.assign({},this.options);if(this.directives)e.directives=this.directives.clone();e.schema=this.schema.clone();e.contents=n.isNode(this.contents)?this.contents.clone(e.schema):this.contents;if(this.range)e.range=this.range.slice();return e}add(e){if(assertCollection(this.contents))this.contents.add(e)}addIn(e,t){if(assertCollection(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const A=l.anchorNames(this);e.anchor=!t||A.has(t)?l.findNewAnchor(t||"a",A):t}return new s.Alias(e.anchor)}createNode(e,t,A){let s=undefined;if(typeof t==="function"){e=t.call({"":e},"",e);s=t}else if(Array.isArray(t)){const keyToStr=e=>typeof e==="number"||e instanceof String||e instanceof Number;const e=t.filter(keyToStr).map(String);if(e.length>0)t=t.concat(e);s=t}else if(A===undefined&&t){A=t;t=undefined}const{aliasDuplicateObjects:r,anchorPrefix:i,flow:o,keepUndefined:a,onTagObj:c,tag:u}=A??{};const{onAnchor:h,setAnchors:E,sourceObjects:f}=l.createNodeAnchors(this,i||"a");const d={aliasDuplicateObjects:r??true,keepUndefined:a??false,onAnchor:h,onTagObj:c,replacer:s,schema:this.schema,sourceObjects:f};const C=g.createNode(e,u,d);if(o&&n.isCollection(C))C.flow=true;E();return C}createPair(e,t,A={}){const s=this.createNode(e,null,A);const r=this.createNode(t,null,A);return new i.Pair(s,r)}delete(e){return assertCollection(this.contents)?this.contents.delete(e):false}deleteIn(e){if(r.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}return assertCollection(this.contents)?this.contents.deleteIn(e):false}get(e,t){return n.isCollection(this.contents)?this.contents.get(e,t):undefined}getIn(e,t){if(r.isEmptyPath(e))return!t&&n.isScalar(this.contents)?this.contents.value:this.contents;return n.isCollection(this.contents)?this.contents.getIn(e,t):undefined}has(e){return n.isCollection(this.contents)?this.contents.has(e):false}hasIn(e){if(r.isEmptyPath(e))return this.contents!==undefined;return n.isCollection(this.contents)?this.contents.hasIn(e):false}set(e,t){if(this.contents==null){this.contents=r.collectionFromPath(this.schema,[e],t)}else if(assertCollection(this.contents)){this.contents.set(e,t)}}setIn(e,t){if(r.isEmptyPath(e)){this.contents=t}else if(this.contents==null){this.contents=r.collectionFromPath(this.schema,Array.from(e),t)}else if(assertCollection(this.contents)){this.contents.setIn(e,t)}}setSchema(e,t={}){if(typeof e==="number")e=String(e);let A;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new h.Directives({version:"1.1"});A={resolveKnownTags:false,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new h.Directives({version:e});A={resolveKnownTags:true,schema:"core"};break;case null:if(this.directives)delete this.directives;A=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(A)this.schema=new a.Schema(Object.assign(A,t));else throw new Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:A,maxAliasCount:s,onAnchor:r,reviver:n}={}){const i={anchors:new Map,doc:this,keep:!e,mapAsMap:A===true,mapKeyWarned:false,maxAliasCount:typeof s==="number"?s:100};const a=o.toJS(this.contents,t??"",i);if(typeof r==="function")for(const{count:e,res:t}of i.anchors.values())r(t,e);return typeof n==="function"?u.applyReviver(n,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:true,jsonArg:e,mapAsMap:false,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return c.stringifyDocument(this,e)}}function assertCollection(e){if(n.isCollection(e))return true;throw new Error("Expected a YAML collection as document contents")}t.Document=Document},1596:(e,t,A)=>{var s=A(1127);var r=A(204);function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);const A=`Anchor must not contain whitespace or control characters: ${t}`;throw new Error(A)}return true}function anchorNames(e){const t=new Set;r.visit(e,{Value(e,A){if(A.anchor)t.add(A.anchor)}});return t}function findNewAnchor(e,t){for(let A=1;true;++A){const s=`${e}${A}`;if(!t.has(s))return s}}function createNodeAnchors(e,t){const A=[];const r=new Map;let n=null;return{onAnchor:s=>{A.push(s);n??(n=anchorNames(e));const r=findNewAnchor(t,n);n.add(r);return r},setAnchors:()=>{for(const e of A){const t=r.get(e);if(typeof t==="object"&&t.anchor&&(s.isScalar(t.node)||s.isCollection(t.node))){t.node.anchor=t.anchor}else{const t=new Error("Failed to resolve repeated object (this should not happen)");t.source=e;throw t}}},sourceObjects:r}}t.anchorIsValid=anchorIsValid;t.anchorNames=anchorNames;t.createNodeAnchors=createNodeAnchors;t.findNewAnchor=findNewAnchor},3661:(e,t)=>{function applyReviver(e,t,A,s){if(s&&typeof s==="object"){if(Array.isArray(s)){for(let t=0,A=s.length;t{var s=A(4065);var r=A(1127);var n=A(3301);const i="tag:yaml.org,2002:";function findTagObject(e,t,A){if(t){const e=A.filter((e=>e.tag===t));const s=e.find((e=>!e.format))??e[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return A.find((t=>t.identify?.(e)&&!t.format))}function createNode(e,t,A){if(r.isDocument(e))e=e.contents;if(r.isNode(e))return e;if(r.isPair(e)){const t=A.schema[r.MAP].createNode?.(A.schema,null,A);t.items.push(e);return t}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!=="undefined"&&e instanceof BigInt){e=e.valueOf()}const{aliasDuplicateObjects:o,onAnchor:a,onTagObj:c,schema:l,sourceObjects:u}=A;let g=undefined;if(o&&e&&typeof e==="object"){g=u.get(e);if(g){g.anchor??(g.anchor=a(e));return new s.Alias(g.anchor)}else{g={anchor:null,node:null};u.set(e,g)}}if(t?.startsWith("!!"))t=i+t.slice(2);let h=findTagObject(e,t,l.tags);if(!h){if(e&&typeof e.toJSON==="function"){e=e.toJSON()}if(!e||typeof e!=="object"){const t=new n.Scalar(e);if(g)g.node=t;return t}h=e instanceof Map?l[r.MAP]:Symbol.iterator in Object(e)?l[r.SEQ]:l[r.MAP]}if(c){c(h);delete A.onTagObj}const E=h?.createNode?h.createNode(A.schema,e,A):typeof h?.nodeClass?.from==="function"?h.nodeClass.from(A.schema,e,A):new n.Scalar(e);if(t)E.tag=t;else if(!h.default)E.tag=h.tag;if(g)g.node=E;return E}t.createNode=createNode},1342:(e,t,A)=>{var s=A(1127);var r=A(204);const n={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};const escapeTagName=e=>e.replace(/[!,[\]{}]/g,(e=>n[e]));class Directives{constructor(e,t){this.docStart=null;this.docEnd=false;this.yaml=Object.assign({},Directives.defaultYaml,e);this.tags=Object.assign({},Directives.defaultTags,t)}clone(){const e=new Directives(this.yaml,this.tags);e.docStart=this.docStart;return e}atDocument(){const e=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false;this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"};this.tags=Object.assign({},Directives.defaultTags);break}return e}add(e,t){if(this.atNextDocument){this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"};this.tags=Object.assign({},Directives.defaultTags);this.atNextDocument=false}const A=e.trim().split(/[ \t]+/);const s=A.shift();switch(s){case"%TAG":{if(A.length!==2){t(0,"%TAG directive should contain exactly two parts");if(A.length<2)return false}const[e,s]=A;this.tags[e]=s;return true}case"%YAML":{this.yaml.explicit=true;if(A.length!==1){t(0,"%YAML directive should contain exactly one part");return false}const[e]=A;if(e==="1.1"||e==="1.2"){this.yaml.version=e;return true}else{const A=/^\d+\.\d+$/.test(e);t(6,`Unsupported YAML version ${e}`,A);return false}}default:t(0,`Unknown directive ${s}`,true);return false}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!"){t(`Not a valid tag: ${e}`);return null}if(e[1]==="<"){const A=e.slice(2,-1);if(A==="!"||A==="!!"){t(`Verbatim tags aren't resolved, so ${e} is invalid.`);return null}if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return A}const[,A,s]=e.match(/^(.*!)([^!]*)$/s);if(!s)t(`The ${e} tag has no suffix`);const r=this.tags[A];if(r){try{return r+decodeURIComponent(s)}catch(e){t(String(e));return null}}if(A==="!")return e;t(`Could not resolve tag: ${e}`);return null}tagString(e){for(const[t,A]of Object.entries(this.tags)){if(e.startsWith(A))return t+escapeTagName(e.substring(A.length))}return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[];const A=Object.entries(this.tags);let n;if(e&&A.length>0&&s.isNode(e.contents)){const t={};r.visit(e.contents,((e,A)=>{if(s.isNode(A)&&A.tag)t[A.tag]=true}));n=Object.keys(t)}else n=[];for(const[s,r]of A){if(s==="!!"&&r==="tag:yaml.org,2002:")continue;if(!e||n.some((e=>e.startsWith(r))))t.push(`%TAG ${s} ${r}`)}return t.join("\n")}}Directives.defaultYaml={explicit:false,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};t.Directives=Directives},1464:(e,t)=>{class YAMLError extends Error{constructor(e,t,A,s){super();this.name=e;this.code=A;this.message=s;this.pos=t}}class YAMLParseError extends YAMLError{constructor(e,t,A){super("YAMLParseError",e,t,A)}}class YAMLWarning extends YAMLError{constructor(e,t,A){super("YAMLWarning",e,t,A)}}const prettifyError=(e,t)=>A=>{if(A.pos[0]===-1)return;A.linePos=A.pos.map((e=>t.linePos(e)));const{line:s,col:r}=A.linePos[0];A.message+=` at line ${s}, column ${r}`;let n=r-1;let i=e.substring(t.lineStarts[s-1],t.lineStarts[s]).replace(/[\n\r]+$/,"");if(n>=60&&i.length>80){const e=Math.min(n-39,i.length-79);i="…"+i.substring(e);n-=e-1}if(i.length>80)i=i.substring(0,79)+"…";if(s>1&&/^ *$/.test(i.substring(0,n))){let A=e.substring(t.lineStarts[s-2],t.lineStarts[s-1]);if(A.length>80)A=A.substring(0,79)+"…\n";i=A+i}if(/[^ ]/.test(i)){let e=1;const t=A.linePos[1];if(t&&t.line===s&&t.col>r){e=Math.max(1,Math.min(t.col-r,80-n))}const o=" ".repeat(n)+"^".repeat(e);A.message+=`:\n\n${i}\n${o}\n`}};t.YAMLError=YAMLError;t.YAMLParseError=YAMLParseError;t.YAMLWarning=YAMLWarning;t.prettifyError=prettifyError},8815:(e,t,A)=>{var s=A(9984);var r=A(3021);var n=A(5840);var i=A(1464);var o=A(4065);var a=A(1127);var c=A(7165);var l=A(3301);var u=A(4454);var g=A(2223);var h=A(3461);var E=A(361);var f=A(6628);var d=A(3456);var C=A(4047);var Q=A(204);t.Composer=s.Composer;t.Document=r.Document;t.Schema=n.Schema;t.YAMLError=i.YAMLError;t.YAMLParseError=i.YAMLParseError;t.YAMLWarning=i.YAMLWarning;t.Alias=o.Alias;t.isAlias=a.isAlias;t.isCollection=a.isCollection;t.isDocument=a.isDocument;t.isMap=a.isMap;t.isNode=a.isNode;t.isPair=a.isPair;t.isScalar=a.isScalar;t.isSeq=a.isSeq;t.Pair=c.Pair;t.Scalar=l.Scalar;t.YAMLMap=u.YAMLMap;t.YAMLSeq=g.YAMLSeq;t.CST=h;t.Lexer=E.Lexer;t.LineCounter=f.LineCounter;t.Parser=d.Parser;t.parse=C.parse;t.parseAllDocuments=C.parseAllDocuments;t.parseDocument=C.parseDocument;t.stringify=C.stringify;t.visit=Q.visit;t.visitAsync=Q.visitAsync},7249:(e,t,A)=>{var s=A(932);function debug(e,...t){if(e==="debug")console.log(...t)}function warn(e,t){if(e==="debug"||e==="warn"){if(typeof s.emitWarning==="function")s.emitWarning(t);else console.warn(t)}}t.debug=debug;t.warn=warn},4065:(e,t,A)=>{var s=A(1596);var r=A(204);var n=A(1127);var i=A(6673);var o=A(4043);class Alias extends i.NodeBase{constructor(e){super(n.ALIAS);this.source=e;Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let A;if(t?.aliasResolveCache){A=t.aliasResolveCache}else{A=[];r.visit(e,{Node:(e,t)=>{if(n.isAlias(t)||n.hasAnchor(t))A.push(t)}});if(t)t.aliasResolveCache=A}let s=undefined;for(const e of A){if(e===this)break;if(e.anchor===this.source)s=e}return s}toJSON(e,t){if(!t)return{source:this.source};const{anchors:A,doc:s,maxAliasCount:r}=t;const n=this.resolve(s,t);if(!n){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let i=A.get(n);if(!i){o.toJS(n,null,t);i=A.get(n)}if(!i||i.res===undefined){const e="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(e)}if(r>=0){i.count+=1;if(i.aliasCount===0)i.aliasCount=getAliasCount(s,n,A);if(i.count*i.aliasCount>r){const e="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(e)}}return i.res}toString(e,t,A){const r=`*${this.source}`;if(e){s.anchorIsValid(this.source);if(e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function getAliasCount(e,t,A){if(n.isAlias(t)){const s=t.resolve(e);const r=A&&s&&A.get(s);return r?r.count*r.aliasCount:0}else if(n.isCollection(t)){let s=0;for(const r of t.items){const t=getAliasCount(e,r,A);if(t>s)s=t}return s}else if(n.isPair(t)){const s=getAliasCount(e,t.key,A);const r=getAliasCount(e,t.value,A);return Math.max(s,r)}return 1}t.Alias=Alias},101:(e,t,A)=>{var s=A(2404);var r=A(1127);var n=A(6673);function collectionFromPath(e,t,A){let r=A;for(let e=t.length-1;e>=0;--e){const A=t[e];if(typeof A==="number"&&Number.isInteger(A)&&A>=0){const e=[];e[A]=r;r=e}else{r=new Map([[A,r]])}}return s.createNode(r,undefined,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class Collection extends n.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:true,enumerable:false,writable:true})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;t.items=t.items.map((t=>r.isNode(t)||r.isPair(t)?t.clone(e):t));if(this.range)t.range=this.range.slice();return t}addIn(e,t){if(isEmptyPath(e))this.add(t);else{const[A,...s]=e;const n=this.get(A,true);if(r.isCollection(n))n.addIn(s,t);else if(n===undefined&&this.schema)this.set(A,collectionFromPath(this.schema,s,t));else throw new Error(`Expected YAML collection at ${A}. Remaining path: ${s}`)}}deleteIn(e){const[t,...A]=e;if(A.length===0)return this.delete(t);const s=this.get(t,true);if(r.isCollection(s))return s.deleteIn(A);else throw new Error(`Expected YAML collection at ${t}. Remaining path: ${A}`)}getIn(e,t){const[A,...s]=e;const n=this.get(A,true);if(s.length===0)return!t&&r.isScalar(n)?n.value:n;else return r.isCollection(n)?n.getIn(s,t):undefined}hasAllNullValues(e){return this.items.every((t=>{if(!r.isPair(t))return false;const A=t.value;return A==null||e&&r.isScalar(A)&&A.value==null&&!A.commentBefore&&!A.comment&&!A.tag}))}hasIn(e){const[t,...A]=e;if(A.length===0)return this.has(t);const s=this.get(t,true);return r.isCollection(s)?s.hasIn(A):false}setIn(e,t){const[A,...s]=e;if(s.length===0){this.set(A,t)}else{const e=this.get(A,true);if(r.isCollection(e))e.setIn(s,t);else if(e===undefined&&this.schema)this.set(A,collectionFromPath(this.schema,s,t));else throw new Error(`Expected YAML collection at ${A}. Remaining path: ${s}`)}}}t.Collection=Collection;t.collectionFromPath=collectionFromPath;t.isEmptyPath=isEmptyPath},6673:(e,t,A)=>{var s=A(3661);var r=A(1127);var n=A(4043);class NodeBase{constructor(e){Object.defineProperty(this,r.NODE_TYPE,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:A,onAnchor:i,reviver:o}={}){if(!r.isDocument(e))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:e,keep:true,mapAsMap:t===true,mapKeyWarned:false,maxAliasCount:typeof A==="number"?A:100};const c=n.toJS(this,"",a);if(typeof i==="function")for(const{count:e,res:t}of a.anchors.values())i(t,e);return typeof o==="function"?s.applyReviver(o,{"":c},"",c):c}}t.NodeBase=NodeBase},7165:(e,t,A)=>{var s=A(2404);var r=A(9748);var n=A(7104);var i=A(1127);function createPair(e,t,A){const r=s.createNode(e,undefined,A);const n=s.createNode(t,undefined,A);return new Pair(r,n)}class Pair{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR});this.key=e;this.value=t}clone(e){let{key:t,value:A}=this;if(i.isNode(t))t=t.clone(e);if(i.isNode(A))A=A.clone(e);return new Pair(t,A)}toJSON(e,t){const A=t?.mapAsMap?new Map:{};return n.addPairToJSMap(t,A,this)}toString(e,t,A){return e?.doc?r.stringifyPair(this,e,t,A):JSON.stringify(this)}}t.Pair=Pair;t.createPair=createPair},3301:(e,t,A)=>{var s=A(1127);var r=A(6673);var n=A(4043);const isScalarValue=e=>!e||typeof e!=="function"&&typeof e!=="object";class Scalar extends r.NodeBase{constructor(e){super(s.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:n.toJS(this.value,e,t)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";t.Scalar=Scalar;t.isScalarValue=isScalarValue},4454:(e,t,A)=>{var s=A(1212);var r=A(7104);var n=A(101);var i=A(1127);var o=A(7165);var a=A(3301);function findPair(e,t){const A=i.isScalar(t)?t.value:t;for(const s of e){if(i.isPair(s)){if(s.key===t||s.key===A)return s;if(i.isScalar(s.key)&&s.key.value===A)return s}}return undefined}class YAMLMap extends n.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(i.MAP,e);this.items=[]}static from(e,t,A){const{keepUndefined:s,replacer:r}=A;const n=new this(e);const add=(e,i)=>{if(typeof r==="function")i=r.call(t,e,i);else if(Array.isArray(r)&&!r.includes(e))return;if(i!==undefined||s)n.items.push(o.createPair(e,i,A))};if(t instanceof Map){for(const[e,A]of t)add(e,A)}else if(t&&typeof t==="object"){for(const e of Object.keys(t))add(e,t[e])}if(typeof e.sortMapEntries==="function"){n.items.sort(e.sortMapEntries)}return n}add(e,t){let A;if(i.isPair(e))A=e;else if(!e||typeof e!=="object"||!("key"in e)){A=new o.Pair(e,e?.value)}else A=new o.Pair(e.key,e.value);const s=findPair(this.items,A.key);const r=this.schema?.sortMapEntries;if(s){if(!t)throw new Error(`Key ${A.key} already set`);if(i.isScalar(s.value)&&a.isScalarValue(A.value))s.value.value=A.value;else s.value=A.value}else if(r){const e=this.items.findIndex((e=>r(A,e)<0));if(e===-1)this.items.push(A);else this.items.splice(e,0,A)}else{this.items.push(A)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const A=this.items.splice(this.items.indexOf(t),1);return A.length>0}get(e,t){const A=findPair(this.items,e);const s=A?.value;return(!t&&i.isScalar(s)?s.value:s)??undefined}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new o.Pair(e,t),true)}toJSON(e,t,A){const s=A?new A:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(s);for(const e of this.items)r.addPairToJSMap(t,s,e);return s}toString(e,t,A){if(!e)return JSON.stringify(this);for(const e of this.items){if(!i.isPair(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}if(!e.allNullValues&&this.hasAllNullValues(false))e=Object.assign({},e,{allNullValues:true});return s.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:A,onComment:t})}}t.YAMLMap=YAMLMap;t.findPair=findPair},2223:(e,t,A)=>{var s=A(2404);var r=A(1212);var n=A(101);var i=A(1127);var o=A(3301);var a=A(4043);class YAMLSeq extends n.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(i.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const A=this.items.splice(t,1);return A.length>0}get(e,t){const A=asItemIndex(e);if(typeof A!=="number")return undefined;const s=this.items[A];return!t&&i.isScalar(s)?s.value:s}has(e){const t=asItemIndex(e);return typeof t==="number"&&t=0?t:null}t.YAMLSeq=YAMLSeq},7104:(e,t,A)=>{var s=A(7249);var r=A(452);var n=A(2148);var i=A(1127);var o=A(4043);function addPairToJSMap(e,t,{key:A,value:s}){if(i.isNode(A)&&A.addToJSMap)A.addToJSMap(e,t,s);else if(r.isMergeKey(e,A))r.addMergeToJSMap(e,t,s);else{const r=o.toJS(A,"",e);if(t instanceof Map){t.set(r,o.toJS(s,r,e))}else if(t instanceof Set){t.add(r)}else{const n=stringifyKey(A,r,e);const i=o.toJS(s,n,e);if(n in t)Object.defineProperty(t,n,{value:i,writable:true,enumerable:true,configurable:true});else t[n]=i}}return t}function stringifyKey(e,t,A){if(t===null)return"";if(typeof t!=="object")return String(t);if(i.isNode(e)&&A?.doc){const t=n.createStringifyContext(A.doc,{});t.anchors=new Set;for(const e of A.anchors.keys())t.anchors.add(e.anchor);t.inFlow=true;t.inStringifyKey=true;const r=e.toString(t);if(!A.mapKeyWarned){let e=JSON.stringify(r);if(e.length>40)e=e.substring(0,36)+'..."';s.warn(A.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`);A.mapKeyWarned=true}return r}return JSON.stringify(t)}t.addPairToJSMap=addPairToJSMap},1127:(e,t)=>{const A=Symbol.for("yaml.alias");const s=Symbol.for("yaml.document");const r=Symbol.for("yaml.map");const n=Symbol.for("yaml.pair");const i=Symbol.for("yaml.scalar");const o=Symbol.for("yaml.seq");const a=Symbol.for("yaml.node.type");const isAlias=e=>!!e&&typeof e==="object"&&e[a]===A;const isDocument=e=>!!e&&typeof e==="object"&&e[a]===s;const isMap=e=>!!e&&typeof e==="object"&&e[a]===r;const isPair=e=>!!e&&typeof e==="object"&&e[a]===n;const isScalar=e=>!!e&&typeof e==="object"&&e[a]===i;const isSeq=e=>!!e&&typeof e==="object"&&e[a]===o;function isCollection(e){if(e&&typeof e==="object")switch(e[a]){case r:case o:return true}return false}function isNode(e){if(e&&typeof e==="object")switch(e[a]){case A:case r:case i:case o:return true}return false}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor;t.ALIAS=A;t.DOC=s;t.MAP=r;t.NODE_TYPE=a;t.PAIR=n;t.SCALAR=i;t.SEQ=o;t.hasAnchor=hasAnchor;t.isAlias=isAlias;t.isCollection=isCollection;t.isDocument=isDocument;t.isMap=isMap;t.isNode=isNode;t.isPair=isPair;t.isScalar=isScalar;t.isSeq=isSeq},4043:(e,t,A)=>{var s=A(1127);function toJS(e,t,A){if(Array.isArray(e))return e.map(((e,t)=>toJS(e,String(t),A)));if(e&&typeof e.toJSON==="function"){if(!A||!s.hasAnchor(e))return e.toJSON(t,A);const r={aliasCount:0,count:1,res:undefined};A.anchors.set(e,r);A.onCreate=e=>{r.res=e;delete A.onCreate};const n=e.toJSON(t,A);if(A.onCreate)A.onCreate(n);return n}if(typeof e==="bigint"&&!A?.keep)return Number(e);return e}t.toJS=toJS},110:(e,t,A)=>{var s=A(8913);var r=A(6842);var n=A(1464);var i=A(3069);function resolveAsScalar(e,t=true,A){if(e){const _onError=(e,t,s)=>{const r=typeof e==="number"?e:Array.isArray(e)?e[0]:e.offset;if(A)A(r,t,s);else throw new n.YAMLParseError([r,r+1],t,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return r.resolveFlowScalar(e,t,_onError);case"block-scalar":return s.resolveBlockScalar({options:{strict:t}},e,_onError)}}return null}function createScalarToken(e,t){const{implicitKey:A=false,indent:s,inFlow:r=false,offset:n=-1,type:o="PLAIN"}=t;const a=i.stringifyString({type:o,value:e},{implicitKey:A,indent:s>0?" ".repeat(s):"",inFlow:r,options:{blockQuote:true,lineWidth:-1}});const c=t.end??[{type:"newline",offset:-1,indent:s,source:"\n"}];switch(a[0]){case"|":case">":{const e=a.indexOf("\n");const t=a.substring(0,e);const A=a.substring(e+1)+"\n";const r=[{type:"block-scalar-header",offset:n,indent:s,source:t}];if(!addEndtoBlockProps(r,c))r.push({type:"newline",offset:-1,indent:s,source:"\n"});return{type:"block-scalar",offset:n,indent:s,props:r,source:A}}case'"':return{type:"double-quoted-scalar",offset:n,indent:s,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:n,indent:s,source:a,end:c};default:return{type:"scalar",offset:n,indent:s,source:a,end:c}}}function setScalarValue(e,t,A={}){let{afterKey:s=false,implicitKey:r=false,inFlow:n=false,type:o}=A;let a="indent"in e?e.indent:null;if(s&&typeof a==="number")a+=2;if(!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=t.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const c=i.stringifyString({type:o,value:t},{implicitKey:r||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:n,options:{blockQuote:true,lineWidth:-1}});switch(c[0]){case"|":case">":setBlockScalarValue(e,c);break;case'"':setFlowScalarValue(e,c,"double-quoted-scalar");break;case"'":setFlowScalarValue(e,c,"single-quoted-scalar");break;default:setFlowScalarValue(e,c,"scalar")}}function setBlockScalarValue(e,t){const A=t.indexOf("\n");const s=t.substring(0,A);const r=t.substring(A+1)+"\n";if(e.type==="block-scalar"){const t=e.props[0];if(t.type!=="block-scalar-header")throw new Error("Invalid block scalar header");t.source=s;e.source=r}else{const{offset:t}=e;const A="indent"in e?e.indent:-1;const n=[{type:"block-scalar-header",offset:t,indent:A,source:s}];if(!addEndtoBlockProps(n,"end"in e?e.end:undefined))n.push({type:"newline",offset:-1,indent:A,source:"\n"});for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:"block-scalar",indent:A,props:n,source:r})}}function addEndtoBlockProps(e,t){if(t)for(const A of t)switch(A.type){case"space":case"comment":e.push(A);break;case"newline":e.push(A);return true}return false}function setFlowScalarValue(e,t,A){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=A;e.source=t;break;case"block-scalar":{const s=e.props.slice(1);let r=t.length;if(e.props[0].type==="block-scalar-header")r-=e.props[0].source.length;for(const e of s)e.offset+=r;delete e.props;Object.assign(e,{type:A,source:t,end:s});break}case"block-map":case"block-seq":{const s=e.offset+t.length;const r={type:"newline",offset:s,indent:e.indent,source:"\n"};delete e.items;Object.assign(e,{type:A,source:t,end:[r]});break}default:{const s="indent"in e?e.indent:-1;const r="end"in e&&Array.isArray(e.end)?e.end.filter((e=>e.type==="space"||e.type==="comment"||e.type==="newline")):[];for(const t of Object.keys(e))if(t!=="type"&&t!=="offset")delete e[t];Object.assign(e,{type:A,indent:s,source:t,end:r})}}}t.createScalarToken=createScalarToken;t.resolveAsScalar=resolveAsScalar;t.setScalarValue=setScalarValue},1733:(e,t)=>{const stringify=e=>"type"in e?stringifyToken(e):stringifyItem(e);function stringifyToken(e){switch(e.type){case"block-scalar":{let t="";for(const A of e.props)t+=stringifyToken(A);return t+e.source}case"block-map":case"block-seq":{let t="";for(const A of e.items)t+=stringifyItem(A);return t}case"flow-collection":{let t=e.start.source;for(const A of e.items)t+=stringifyItem(A);for(const A of e.end)t+=A.source;return t}case"document":{let t=stringifyItem(e);if(e.end)for(const A of e.end)t+=A.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const A of e.end)t+=A.source;return t}}}function stringifyItem({start:e,key:t,sep:A,value:s}){let r="";for(const t of e)r+=t.source;if(t)r+=stringifyToken(t);if(A)for(const e of A)r+=e.source;if(s)r+=stringifyToken(s);return r}t.stringify=stringify},7715:(e,t)=>{const A=Symbol("break visit");const s=Symbol("skip children");const r=Symbol("remove item");function visit(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};_visit(Object.freeze([]),e,t)}visit.BREAK=A;visit.SKIP=s;visit.REMOVE=r;visit.itemAtPath=(e,t)=>{let A=e;for(const[e,s]of t){const t=A?.[e];if(t&&"items"in t){A=t.items[s]}else return undefined}return A};visit.parentCollection=(e,t)=>{const A=visit.itemAtPath(e,t.slice(0,-1));const s=t[t.length-1][0];const r=A?.[s];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function _visit(e,t,s){let n=s(t,e);if(typeof n==="symbol")return n;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t{var s=A(110);var r=A(1733);var n=A(7715);const i="\ufeff";const o="";const a="";const c="";const isCollection=e=>!!e&&"items"in e;const isScalar=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function prettyToken(e){switch(e){case i:return"";case o:return"";case a:return"";case c:return"";default:return JSON.stringify(e)}}function tokenType(e){switch(e){case i:return"byte-order-mark";case o:return"doc-mode";case a:return"flow-error-end";case c:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}t.createScalarToken=s.createScalarToken;t.resolveAsScalar=s.resolveAsScalar;t.setScalarValue=s.setScalarValue;t.stringify=r.stringify;t.visit=n.visit;t.BOM=i;t.DOCUMENT=o;t.FLOW_END=a;t.SCALAR=c;t.isCollection=isCollection;t.isScalar=isScalar;t.prettyToken=prettyToken;t.tokenType=tokenType},361:(e,t,A)=>{var s=A(3461);function isEmpty(e){switch(e){case undefined:case" ":case"\n":case"\r":case"\t":return true;default:return false}}const r=new Set("0123456789ABCDEFabcdef");const n=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");const i=new Set(",[]{}");const o=new Set(" ,[]{}\n\r\t");const isNotAnchorChar=e=>!e||o.has(e);class Lexer{constructor(){this.atEnd=false;this.blockScalarIndent=-1;this.blockScalarKeep=false;this.buffer="";this.flowKey=false;this.flowLevel=0;this.indentNext=0;this.indentValue=0;this.lineEndPos=null;this.next=null;this.pos=0}*lex(e,t=false){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e;this.lineEndPos=null}this.atEnd=!t;let A=this.next??"stream";while(A&&(t||this.hasChars(1)))A=yield*this.parseNext(A)}atLineEnd(){let e=this.pos;let t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t==="\n")return true;if(t==="\r")return this.buffer[e+1]==="\n";return false}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let A=0;while(t===" ")t=this.buffer[++A+e];if(t==="\r"){const t=this.buffer[A+e+1];if(t==="\n"||!t&&!this.atEnd)return e+A+1}return t==="\n"||A>=this.indentNext||!t&&!this.atEnd?e+A:-1}if(t==="-"||t==="."){const t=this.buffer.substr(e,3);if((t==="---"||t==="...")&&isEmpty(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&ðis.indentValue&&!isEmpty(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&isEmpty(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(true));this.indentNext=this.indentValue+1;this.indentValue+=e;return yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(true);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case undefined:yield*this.pushNewline();return yield*this.parseLineStart();case"{":case"[":yield*this.pushCount(1);this.flowKey=false;this.flowLevel=1;return"flow";case"}":case"]":yield*this.pushCount(1);return"doc";case"*":yield*this.pushUntil(isNotAnchorChar);return"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":t+=(yield*this.parseBlockScalarHeader());t+=(yield*this.pushSpaces(true));yield*this.pushCount(e.length-t);yield*this.pushNewline();return yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let A=-1;do{e=yield*this.pushNewline();if(e>0){t=yield*this.pushSpaces(false);this.indentValue=A=t}else{t=0}t+=(yield*this.pushSpaces(true))}while(e+t>0);const r=this.getLine();if(r===null)return this.setNext("flow");if(A!==-1&&A"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((e=>isEmpty(e)||e==="#"))}*parseBlockScalar(){let e=this.pos-1;let t=0;let A;e:for(let s=this.pos;A=this.buffer[s];++s){switch(A){case" ":t+=1;break;case"\n":e=s;t=0;break;case"\r":{const e=this.buffer[s+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if(e==="\n")break}default:break e}}if(!A&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else{this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext)}do{const t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf("\n",t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let r=e+1;A=this.buffer[r];while(A===" ")A=this.buffer[++r];if(A==="\t"){while(A==="\t"||A===" "||A==="\r"||A==="\n")A=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep){do{let A=e-1;let s=this.buffer[A];if(s==="\r")s=this.buffer[--A];const r=A;while(s===" ")s=this.buffer[--A];if(s==="\n"&&A>=this.pos&&A+1+t>r)e=A;else break}while(true)}yield s.SCALAR;yield*this.pushToIndex(e+1,true);return yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1;let A=this.pos-1;let r;while(r=this.buffer[++A]){if(r===":"){const s=this.buffer[A+1];if(isEmpty(s)||e&&i.has(s))break;t=A}else if(isEmpty(r)){let s=this.buffer[A+1];if(r==="\r"){if(s==="\n"){A+=1;r="\n";s=this.buffer[A+1]}else t=A}if(s==="#"||e&&i.has(s))break;if(r==="\n"){const e=this.continueScalar(A+1);if(e===-1)break;A=Math.max(A,e-2)}}else{if(e&&i.has(r))break;t=A}}if(!r&&!this.atEnd)return this.setNext("plain-scalar");yield s.SCALAR;yield*this.pushToIndex(t+1,true);return e?"flow":"doc"}*pushCount(e){if(e>0){yield this.buffer.substr(this.pos,e);this.pos+=e;return e}return 0}*pushToIndex(e,t){const A=this.buffer.slice(this.pos,e);if(A){yield A;this.pos+=A.length;return A.length}else if(t)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0;const t=this.charAt(1);if(isEmpty(t)||e&&i.has(t)){if(!e)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=false;return(yield*this.pushCount(1))+(yield*this.pushSpaces(true))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2;let t=this.buffer[e];while(!isEmpty(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,false)}else{let e=this.pos+1;let t=this.buffer[e];while(t){if(n.has(t))t=this.buffer[++e];else if(t==="%"&&r.has(this.buffer[e+1])&&r.has(this.buffer[e+2])){t=this.buffer[e+=3]}else break}return yield*this.pushToIndex(e,false)}}*pushNewline(){const e=this.buffer[this.pos];if(e==="\n")return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)==="\n")return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1;let A;do{A=this.buffer[++t]}while(A===" "||e&&A==="\t");const s=t-this.pos;if(s>0){yield this.buffer.substr(this.pos,s);this.pos=t}return s}*pushUntil(e){let t=this.pos;let A=this.buffer[t];while(!e(A))A=this.buffer[++t];return yield*this.pushToIndex(t,false)}}t.Lexer=Lexer},6628:(e,t)=>{class LineCounter{constructor(){this.lineStarts=[];this.addNewLine=e=>this.lineStarts.push(e);this.linePos=e=>{let t=0;let A=this.lineStarts.length;while(t>1;if(this.lineStarts[s]{var s=A(932);var r=A(3461);var n=A(361);function includesToken(e,t){for(let A=0;A=0){switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}}while(e[++t]?.type==="space"){}return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start"){for(const t of e.items){if(t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")){if(t.key)t.value=t.key;delete t.key;if(isFlowToken(t.value)){if(t.value.end)Array.prototype.push.apply(t.value.end,t.sep);else t.value.end=t.sep}else Array.prototype.push.apply(t.start,t.sep);delete t.sep}}}}class Parser{constructor(e){this.atNewLine=true;this.atScalar=false;this.indent=0;this.offset=0;this.onKeyLine=false;this.stack=[];this.source="";this.type="";this.lexer=new n.Lexer;this.onNewLine=e}*parse(e,t=false){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(const A of this.lexer.lex(e,t))yield*this.next(A);if(!t)yield*this.end()}*next(e){this.source=e;if(s.env.LOG_TOKENS)console.log("|",r.prettyToken(e));if(this.atScalar){this.atScalar=false;yield*this.step();this.offset+=e.length;return}const t=r.tokenType(e);if(!t){const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e});this.offset+=e.length}else if(t==="scalar"){this.atNewLine=false;this.atScalar=true;this.type="scalar"}else{this.type=t;yield*this.step();switch(t){case"newline":this.atNewLine=true;this.indent=0;if(this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=false}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){const e={type:this.type,offset:this.offset,indent:this.indent,source:this.source};return e}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t){const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}else if(this.stack.length===0){yield t}else{const e=this.peek(1);if(t.type==="block-scalar"){t.indent="indent"in e?e.indent:0}else if(t.type==="flow-collection"&&e.type==="document"){t.indent=0}if(t.type==="flow-collection")fixFlowSeqItems(t);switch(e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const A=e.items[e.items.length-1];if(A.value){e.items.push({start:[],key:t,sep:[]});this.onKeyLine=true;return}else if(A.sep){A.value=t}else{Object.assign(A,{key:t,sep:[]});this.onKeyLine=!A.explicitKey;return}break}case"block-seq":{const A=e.items[e.items.length-1];if(A.value)e.items.push({start:[],value:t});else A.value=t;break}case"flow-collection":{const A=e.items[e.items.length-1];if(!A||A.value)e.items.push({start:[],key:t,sep:[]});else if(A.sep)A.value=t;else Object.assign(A,{key:t,sep:[]});return}default:yield*this.pop();yield*this.pop(t)}if((e.type==="document"||e.type==="block-map"||e.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const A=t.items[t.items.length-1];if(A&&!A.sep&&!A.value&&A.start.length>0&&findNonEmptyIndex(A.start)===-1&&(t.indent===0||A.start.every((e=>e.type!=="comment"||e.indent=e.indent){const A=!this.onKeyLine&&this.indent===e.indent;const s=A&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let r=[];if(s&&t.sep&&!t.value){const A=[];for(let s=0;se.indent)A.length=0;break;default:A.length=0}}if(A.length>=2)r=t.sep.splice(A[1])}switch(this.type){case"anchor":case"tag":if(s||t.value){r.push(this.sourceToken);e.items.push({start:r});this.onKeyLine=true}else if(t.sep){t.sep.push(this.sourceToken)}else{t.start.push(this.sourceToken)}return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey){t.start.push(this.sourceToken);t.explicitKey=true}else if(s||t.value){r.push(this.sourceToken);e.items.push({start:r,explicitKey:true})}else{this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:true}]})}this.onKeyLine=true;return;case"map-value-ind":if(t.explicitKey){if(!t.sep){if(includesToken(t.start,"newline")){Object.assign(t,{key:null,sep:[this.sourceToken]})}else{const e=getFirstKeyStartProps(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value){e.items.push({start:[],key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]})}else if(isFlowToken(t.key)&&!includesToken(t.sep,"newline")){const e=getFirstKeyStartProps(t.start);const A=t.key;const s=t.sep;s.push(this.sourceToken);delete t.key;delete t.sep;this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:A,sep:s}]})}else if(r.length>0){t.sep=t.sep.concat(r,this.sourceToken)}else{t.sep.push(this.sourceToken)}}else{if(!t.sep){Object.assign(t,{key:null,sep:[this.sourceToken]})}else if(t.value||s){e.items.push({start:r,key:null,sep:[this.sourceToken]})}else if(includesToken(t.sep,"map-value-ind")){this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]})}else{t.sep.push(this.sourceToken)}}this.onKeyLine=true;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const A=this.flowScalar(this.type);if(s||t.value){e.items.push({start:r,key:A,sep:[]});this.onKeyLine=true}else if(t.sep){this.stack.push(A)}else{Object.assign(t,{key:A,sep:[]});this.onKeyLine=true}return}default:{const s=this.startBlockValue(e);if(s){if(s.type==="block-seq"){if(!t.explicitKey&&t.sep&&!includesToken(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(A){e.items.push({start:r})}this.stack.push(s);return}}}}yield*this.pop();yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const A="end"in t.value?t.value.end:undefined;const s=Array.isArray(A)?A[A.length-1]:undefined;if(s?.type==="comment")A?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const A=e.items[e.items.length-2];const s=A?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start);s.push(this.sourceToken);e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||includesToken(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop();yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let e;do{yield*this.pop();e=this.peek(1)}while(e&&e.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const A=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:A,sep:[]});else if(t.sep)this.stack.push(A);else Object.assign(t,{key:A,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const A=this.startBlockValue(e);if(A)this.stack.push(A);else{yield*this.pop();yield*this.step()}}else{const t=this.peek(2);if(t.type==="block-map"&&(this.type==="map-value-ind"&&t.indent===e.indent||this.type==="newline"&&!t.items[t.items.length-1].sep)){yield*this.pop();yield*this.step()}else if(this.type==="map-value-ind"&&t.type!=="flow-collection"){const A=getPrevProps(t);const s=getFirstKeyStartProps(A);fixFlowSeqItems(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:r}]};this.onKeyLine=true;this.stack[this.stack.length-1]=n}else{yield*this.lineEnd(e)}}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;while(e!==0){this.onNewLine(this.offset+e);e=this.source.indexOf("\n",e)+1}}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=true;const t=getPrevProps(e);const A=getFirstKeyStartProps(t);A.push(this.sourceToken);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,explicitKey:true}]}}case"map-value-ind":{this.onKeyLine=true;const t=getPrevProps(e);const A=getFirstKeyStartProps(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:A,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return false;if(this.indent<=t)return false;return e.every((e=>e.type==="newline"||e.type==="space"))}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop();yield*this.step();break;case"newline":this.onKeyLine=false;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}t.Parser=Parser},4047:(e,t,A)=>{var s=A(9984);var r=A(3021);var n=A(1464);var i=A(7249);var o=A(1127);var a=A(6628);var c=A(3456);function parseOptions(e){const t=e.prettyErrors!==false;const A=e.lineCounter||t&&new a.LineCounter||null;return{lineCounter:A,prettyErrors:t}}function parseAllDocuments(e,t={}){const{lineCounter:A,prettyErrors:r}=parseOptions(t);const i=new c.Parser(A?.addNewLine);const o=new s.Composer(t);const a=Array.from(o.compose(i.parse(e)));if(r&&A)for(const t of a){t.errors.forEach(n.prettifyError(e,A));t.warnings.forEach(n.prettifyError(e,A))}if(a.length>0)return a;return Object.assign([],{empty:true},o.streamInfo())}function parseDocument(e,t={}){const{lineCounter:A,prettyErrors:r}=parseOptions(t);const i=new c.Parser(A?.addNewLine);const o=new s.Composer(t);let a=null;for(const t of o.compose(i.parse(e),true,e.length)){if(!a)a=t;else if(a.options.logLevel!=="silent"){a.errors.push(new n.YAMLParseError(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}if(r&&A){a.errors.forEach(n.prettifyError(e,A));a.warnings.forEach(n.prettifyError(e,A))}return a}function parse(e,t,A){let s=undefined;if(typeof t==="function"){s=t}else if(A===undefined&&t&&typeof t==="object"){A=t}const r=parseDocument(e,A);if(!r)return null;r.warnings.forEach((e=>i.warn(r.options.logLevel,e)));if(r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];else r.errors=[]}return r.toJS(Object.assign({reviver:s},A))}function stringify(e,t,A){let s=null;if(typeof t==="function"||Array.isArray(t)){s=t}else if(A===undefined&&t){A=t}if(typeof A==="string")A=A.length;if(typeof A==="number"){const e=Math.round(A);A=e<1?undefined:e>8?{indent:8}:{indent:e}}if(e===undefined){const{keepUndefined:e}=A??t??{};if(!e)return undefined}if(o.isDocument(e)&&!s)return e.toString(A);return new r.Document(e,s,A).toString(A)}t.parse=parse;t.parseAllDocuments=parseAllDocuments;t.parseDocument=parseDocument;t.stringify=stringify},5840:(e,t,A)=>{var s=A(1127);var r=A(7451);var n=A(1706);var i=A(6464);var o=A(18);const sortMapEntriesByKey=(e,t)=>e.keyt.key?1:0;class Schema{constructor({compat:e,customTags:t,merge:A,resolveKnownTags:a,schema:c,sortMapEntries:l,toStringDefaults:u}){this.compat=Array.isArray(e)?o.getTags(e,"compat"):e?o.getTags(null,e):null;this.name=typeof c==="string"&&c||"core";this.knownTags=a?o.coreKnownTags:{};this.tags=o.getTags(t,this.name,A);this.toStringOptions=u??null;Object.defineProperty(this,s.MAP,{value:r.map});Object.defineProperty(this,s.SCALAR,{value:i.string});Object.defineProperty(this,s.SEQ,{value:n.seq});this.sortMapEntries=typeof l==="function"?l:l===true?sortMapEntriesByKey:null}clone(){const e=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));e.tags=this.tags.slice();return e}}t.Schema=Schema},7451:(e,t,A)=>{var s=A(1127);var r=A(4454);const n={collection:"map",default:true,nodeClass:r.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!s.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,A)=>r.YAMLMap.from(e,t,A)};t.map=n},3632:(e,t,A)=>{var s=A(3301);const r={identify:e=>e==null,createNode:()=>new s.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new s.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&r.test.test(e)?e:t.options.nullStr};t.nullTag=r},1706:(e,t,A)=>{var s=A(1127);var r=A(2223);const n={collection:"seq",default:true,nodeClass:r.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!s.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,A)=>r.YAMLSeq.from(e,t,A)};t.seq=n},6464:(e,t,A)=>{var s=A(3069);const r={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,A,r){t=Object.assign({actualString:true},t);return s.stringifyString(e,t,A,r)}};t.string=r},3959:(e,t,A)=>{var s=A(3301);const r={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new s.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},A){if(e&&r.test.test(e)){const A=e[0]==="t"||e[0]==="T";if(t===A)return e}return t?A.options.trueStr:A.options.falseStr}};t.boolTag=r},8405:(e,t,A)=>{var s=A(3301);var r=A(8689);const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():r.stringifyNumber(e)}};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new s.Scalar(parseFloat(e));const A=e.indexOf(".");if(A!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-A-1;return t},stringify:r.stringifyNumber};t.float=o;t.floatExp=i;t.floatNaN=n},9874:(e,t,A)=>{var s=A(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);const intResolve=(e,t,A,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),A);function intStringify(e,t,A){const{value:r}=e;if(intIdentify(r)&&r>=0)return A+r.toString(t);return s.stringifyNumber(e)}const r={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,A)=>intResolve(e,2,8,A),stringify:e=>intStringify(e,8,"0o")};const n={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,A)=>intResolve(e,0,10,A),stringify:s.stringifyNumber};const i={identify:e=>intIdentify(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,A)=>intResolve(e,2,16,A),stringify:e=>intStringify(e,16,"0x")};t.int=n;t.intHex=i;t.intOct=r},896:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(3959);var a=A(8405);var c=A(9874);const l=[s.map,n.seq,i.string,r.nullTag,o.boolTag,c.intOct,c.int,c.intHex,a.floatNaN,a.floatExp,a.float];t.schema=l},3559:(e,t,A)=>{var s=A(3301);var r=A(7451);var n=A(1706);function intIdentify(e){return typeof e==="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e);const i=[{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new s.Scalar(null),default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:A})=>A?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}];const o={default:true,tag:"",test:/^/,resolve(e,t){t(`Unresolved plain scalar ${JSON.stringify(e)}`);return e}};const a=[r.map,n.seq].concat(i,o);t.schema=a},18:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(3959);var a=A(8405);var c=A(9874);var l=A(896);var u=A(3559);var g=A(6083);var h=A(452);var E=A(303);var f=A(8385);var d=A(5913);var C=A(1528);var Q=A(6752);const I=new Map([["core",l.schema],["failsafe",[s.map,n.seq,i.string]],["json",u.schema],["yaml11",d.schema],["yaml-1.1",d.schema]]);const B={binary:g.binary,bool:o.boolTag,float:a.float,floatExp:a.floatExp,floatNaN:a.floatNaN,floatTime:Q.floatTime,int:c.int,intHex:c.intHex,intOct:c.intOct,intTime:Q.intTime,map:s.map,merge:h.merge,null:r.nullTag,omap:E.omap,pairs:f.pairs,seq:n.seq,set:C.set,timestamp:Q.timestamp};const p={"tag:yaml.org,2002:binary":g.binary,"tag:yaml.org,2002:merge":h.merge,"tag:yaml.org,2002:omap":E.omap,"tag:yaml.org,2002:pairs":f.pairs,"tag:yaml.org,2002:set":C.set,"tag:yaml.org,2002:timestamp":Q.timestamp};function getTags(e,t,A){const s=I.get(t);if(s&&!e){return A&&!s.includes(h.merge)?s.concat(h.merge):s.slice()}let r=s;if(!r){if(Array.isArray(e))r=[];else{const e=Array.from(I.keys()).filter((e=>e!=="yaml11")).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e)){for(const t of e)r=r.concat(t)}else if(typeof e==="function"){r=e(r.slice())}if(A)r=r.concat(h.merge);return r.reduce(((e,t)=>{const A=typeof t==="string"?B[t]:t;if(!A){const e=JSON.stringify(t);const A=Object.keys(B).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${A}`)}if(!e.includes(A))e.push(A);return e}),[])}t.coreKnownTags=p;t.getTags=getTags},6083:(e,t,A)=>{var s=A(181);var r=A(3301);var n=A(3069);const i={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof s.Buffer==="function"){return s.Buffer.from(e,"base64")}else if(typeof atob==="function"){const t=atob(e.replace(/[\n\r]/g,""));const A=new Uint8Array(t.length);for(let e=0;e{var s=A(3301);function boolStringify({value:e,source:t},A){const s=e?r:n;if(t&&s.test.test(t))return t;return e?A.options.trueStr:A.options.falseStr}const r={identify:e=>e===true,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new s.Scalar(true),stringify:boolStringify};const n={identify:e=>e===false,default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new s.Scalar(false),stringify:boolStringify};t.falseTag=n;t.trueTag=r},5782:(e,t,A)=>{var s=A(3301);var r=A(8689);const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const i={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():r.stringifyNumber(e)}};const o={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new s.Scalar(parseFloat(e.replace(/_/g,"")));const A=e.indexOf(".");if(A!==-1){const s=e.substring(A+1).replace(/_/g,"");if(s[s.length-1]==="0")t.minFractionDigits=s.length}return t},stringify:r.stringifyNumber};t.float=o;t.floatExp=i;t.floatNaN=n},873:(e,t,A)=>{var s=A(8689);const intIdentify=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve(e,t,A,{intAsBigInt:s}){const r=e[0];if(r==="-"||r==="+")t+=1;e=e.substring(t).replace(/_/g,"");if(s){switch(A){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const t=BigInt(e);return r==="-"?BigInt(-1)*t:t}const n=parseInt(e,A);return r==="-"?-1*n:n}function intStringify(e,t,A){const{value:r}=e;if(intIdentify(r)){const e=r.toString(t);return r<0?"-"+A+e.substr(1):A+e}return s.stringifyNumber(e)}const r={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,A)=>intResolve(e,2,2,A),stringify:e=>intStringify(e,2,"0b")};const n={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,A)=>intResolve(e,1,8,A),stringify:e=>intStringify(e,8,"0")};const i={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,A)=>intResolve(e,0,10,A),stringify:s.stringifyNumber};const o={identify:intIdentify,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,A)=>intResolve(e,2,16,A),stringify:e=>intStringify(e,16,"0x")};t.int=i;t.intBin=r;t.intHex=o;t.intOct=n},452:(e,t,A)=>{var s=A(1127);var r=A(3301);const n="<<";const i={identify:e=>e===n||typeof e==="symbol"&&e.description===n,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new r.Scalar(Symbol(n)),{addToJSMap:addMergeToJSMap}),stringify:()=>n};const isMergeKey=(e,t)=>(i.identify(t)||s.isScalar(t)&&(!t.type||t.type===r.Scalar.PLAIN)&&i.identify(t.value))&&e?.doc.schema.tags.some((e=>e.tag===i.tag&&e.default));function addMergeToJSMap(e,t,A){A=e&&s.isAlias(A)?A.resolve(e.doc):A;if(s.isSeq(A))for(const s of A.items)mergeValue(e,t,s);else if(Array.isArray(A))for(const s of A)mergeValue(e,t,s);else mergeValue(e,t,A)}function mergeValue(e,t,A){const r=e&&s.isAlias(A)?A.resolve(e.doc):A;if(!s.isMap(r))throw new Error("Merge sources must be maps or map aliases");const n=r.toJSON(null,e,Map);for(const[e,A]of n){if(t instanceof Map){if(!t.has(e))t.set(e,A)}else if(t instanceof Set){t.add(e)}else if(!Object.prototype.hasOwnProperty.call(t,e)){Object.defineProperty(t,e,{value:A,writable:true,enumerable:true,configurable:true})}}return t}t.addMergeToJSMap=addMergeToJSMap;t.isMergeKey=isMergeKey;t.merge=i},303:(e,t,A)=>{var s=A(1127);var r=A(4043);var n=A(4454);var i=A(2223);var o=A(8385);class YAMLOMap extends i.YAMLSeq{constructor(){super();this.add=n.YAMLMap.prototype.add.bind(this);this.delete=n.YAMLMap.prototype.delete.bind(this);this.get=n.YAMLMap.prototype.get.bind(this);this.has=n.YAMLMap.prototype.has.bind(this);this.set=n.YAMLMap.prototype.set.bind(this);this.tag=YAMLOMap.tag}toJSON(e,t){if(!t)return super.toJSON(e);const A=new Map;if(t?.onCreate)t.onCreate(A);for(const e of this.items){let n,i;if(s.isPair(e)){n=r.toJS(e.key,"",t);i=r.toJS(e.value,n,t)}else{n=r.toJS(e,"",t)}if(A.has(n))throw new Error("Ordered maps must not include duplicate keys");A.set(n,i)}return A}static from(e,t,A){const s=o.createPairs(e,t,A);const r=new this;r.items=s.items;return r}}YAMLOMap.tag="tag:yaml.org,2002:omap";const a={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve(e,t){const A=o.resolvePairs(e,t);const r=[];for(const{key:e}of A.items){if(s.isScalar(e)){if(r.includes(e.value)){t(`Ordered maps must not include duplicate keys: ${e.value}`)}else{r.push(e.value)}}}return Object.assign(new YAMLOMap,A)},createNode:(e,t,A)=>YAMLOMap.from(e,t,A)};t.YAMLOMap=YAMLOMap;t.omap=a},8385:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(3301);var i=A(2223);function resolvePairs(e,t){if(s.isSeq(e)){for(let A=0;A1)t("Each pair must have its own sequence indicator");const e=i.items[0]||new r.Pair(new n.Scalar(null));if(i.commentBefore)e.key.commentBefore=e.key.commentBefore?`${i.commentBefore}\n${e.key.commentBefore}`:i.commentBefore;if(i.comment){const t=e.value??e.key;t.comment=t.comment?`${i.comment}\n${t.comment}`:i.comment}i=e}e.items[A]=s.isPair(i)?i:new r.Pair(i)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,A){const{replacer:s}=A;const n=new i.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof s==="function")e=s.call(t,String(o++),e);let i,a;if(Array.isArray(e)){if(e.length===2){i=e[0];a=e[1]}else throw new TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){const t=Object.keys(e);if(t.length===1){i=t[0];a=e[i]}else{throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)}}else{i=e}n.items.push(r.createPair(i,a,A))}return n}const o={collection:"seq",default:false,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};t.createPairs=createPairs;t.pairs=o;t.resolvePairs=resolvePairs},5913:(e,t,A)=>{var s=A(7451);var r=A(3632);var n=A(1706);var i=A(6464);var o=A(6083);var a=A(8398);var c=A(5782);var l=A(873);var u=A(452);var g=A(303);var h=A(8385);var E=A(1528);var f=A(6752);const d=[s.map,n.seq,i.string,r.nullTag,a.trueTag,a.falseTag,l.intBin,l.intOct,l.int,l.intHex,c.floatNaN,c.floatExp,c.float,o.binary,u.merge,g.omap,h.pairs,E.set,f.intTime,f.floatTime,f.timestamp];t.schema=d},1528:(e,t,A)=>{var s=A(1127);var r=A(7165);var n=A(4454);class YAMLSet extends n.YAMLMap{constructor(e){super(e);this.tag=YAMLSet.tag}add(e){let t;if(s.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new r.Pair(e.key,null);else t=new r.Pair(e,null);const A=n.findPair(this.items,t.key);if(!A)this.items.push(t)}get(e,t){const A=n.findPair(this.items,e);return!t&&s.isPair(A)?s.isScalar(A.key)?A.key.value:A.key:A}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const A=n.findPair(this.items,e);if(A&&!t){this.items.splice(this.items.indexOf(A),1)}else if(!A&&t){this.items.push(new r.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,A){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(true))return super.toString(Object.assign({},e,{allNullValues:true}),t,A);else throw new Error("Set items must all have null values")}static from(e,t,A){const{replacer:s}=A;const n=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t){if(typeof s==="function")e=s.call(t,e,e);n.items.push(r.createPair(e,null,A))}return n}}YAMLSet.tag="tag:yaml.org,2002:set";const i={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",createNode:(e,t,A)=>YAMLSet.from(e,t,A),resolve(e,t){if(s.isMap(e)){if(e.hasAllNullValues(true))return Object.assign(new YAMLSet,e);else t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};t.YAMLSet=YAMLSet;t.set=i},6752:(e,t,A)=>{var s=A(8689);function parseSexagesimal(e,t){const A=e[0];const s=A==="-"||A==="+"?e.substring(1):e;const num=e=>t?BigInt(e):Number(e);const r=s.replace(/_/g,"").split(":").reduce(((e,t)=>e*num(60)+num(t)),num(0));return A==="-"?num(-1)*r:r}function stringifySexagesimal(e){let{value:t}=e;let num=e=>e;if(typeof t==="bigint")num=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return s.stringifyNumber(e);let A="";if(t<0){A="-";t*=num(-1)}const r=num(60);const n=[t%r];if(t<60){n.unshift(0)}else{t=(t-n[0])/r;n.unshift(t%r);if(t>=60){t=(t-n[0])/r;n.unshift(t)}}return A+n.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const r={identify:e=>typeof e==="bigint"||Number.isInteger(e),default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:A})=>parseSexagesimal(e,A),stringify:stringifySexagesimal};const n={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,false),stringify:stringifySexagesimal};const i={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:"+"(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?$"),resolve(e){const t=e.match(i.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,A,s,r,n,o,a]=t.map(Number);const c=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(A,s-1,r,n||0,o||0,a||0,c);const u=t[8];if(u&&u!=="Z"){let e=parseSexagesimal(u,false);if(Math.abs(e)<30)e*=60;l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};t.floatTime=n;t.intTime=r;t.timestamp=i},4475:(e,t)=>{const A="flow";const s="block";const r="quoted";function foldFlowLines(e,t,A="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:o=20,onFold:a,onOverflow:c}={}){if(!i||i<0)return e;if(ii-Math.max(2,o))u.push(0);else h=i-n}let E=undefined;let f=undefined;let d=false;let C=-1;let Q=-1;let I=-1;if(A===s){C=consumeMoreIndentedLines(e,C,t.length);if(C!==-1)h=C+l}for(let n;n=e[C+=1];){if(A===r&&n==="\\"){Q=C;switch(e[C+1]){case"x":C+=3;break;case"u":C+=5;break;case"U":C+=9;break;default:C+=1}I=C}if(n==="\n"){if(A===s)C=consumeMoreIndentedLines(e,C,t.length);h=C+t.length+l;E=undefined}else{if(n===" "&&f&&f!==" "&&f!=="\n"&&f!=="\t"){const t=e[C+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")E=C}if(C>=h){if(E){u.push(E);h=E+l;E=undefined}else if(A===r){while(f===" "||f==="\t"){f=n;n=e[C+=1];d=true}const t=C>I+1?C-2:Q-1;if(g[t])return e;u.push(t);g[t]=true;h=t+l;E=undefined}else{d=true}}}f=n}if(d&&c)c();if(u.length===0)return e;if(a)a();let B=e.slice(0,u[0]);for(let s=0;s{var s=A(1596);var r=A(1127);var n=A(9799);var i=A(3069);function createStringifyContext(e,t){const A=Object.assign({blockQuote:true,commentString:n.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:false,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:true,indentSeq:true,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:false,singleQuote:null,trueStr:"true",verifyAliasOrder:true},e.schema.toStringOptions,t);let s;switch(A.collectionStyle){case"block":s=false;break;case"flow":s=true;break;default:s=null}return{anchors:new Set,doc:e,flowCollectionPadding:A.flowCollectionPadding?" ":"",indent:"",indentStep:typeof A.indent==="number"?" ".repeat(A.indent):" ",inFlow:s,options:A}}function getTagObject(e,t){if(t.tag){const A=e.filter((e=>e.tag===t.tag));if(A.length>0)return A.find((e=>e.format===t.format))??A[0]}let A=undefined;let s;if(r.isScalar(t)){s=t.value;let r=e.filter((e=>e.identify?.(s)));if(r.length>1){const e=r.filter((e=>e.test));if(e.length>0)r=e}A=r.find((e=>e.format===t.format))??r.find((e=>!e.format))}else{s=t;A=e.find((e=>e.nodeClass&&s instanceof e.nodeClass))}if(!A){const e=s?.constructor?.name??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${e} value`)}return A}function stringifyProps(e,t,{anchors:A,doc:n}){if(!n.directives)return"";const i=[];const o=(r.isScalar(e)||r.isCollection(e))&&e.anchor;if(o&&s.anchorIsValid(o)){A.add(o);i.push(`&${o}`)}const a=e.tag??(t.default?null:t.tag);if(a)i.push(n.directives.tagString(a));return i.join(" ")}function stringify(e,t,A,s){if(r.isPair(e))return e.toString(t,A,s);if(r.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e)){throw new TypeError(`Cannot stringify circular structure without alias nodes`)}else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let n=undefined;const o=r.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>n=e});n??(n=getTagObject(t.doc.schema.tags,o));const a=stringifyProps(o,n,t);if(a.length>0)t.indentAtStart=(t.indentAtStart??0)+a.length+1;const c=typeof n.stringify==="function"?n.stringify(o,t,A,s):r.isScalar(o)?i.stringifyString(o,t,A,s):o.toString(t,A,s);if(!a)return c;return r.isScalar(o)||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}\n${t.indent}${c}`}t.createStringifyContext=createStringifyContext;t.stringify=stringify},1212:(e,t,A)=>{var s=A(1127);var r=A(2148);var n=A(9799);function stringifyCollection(e,t,A){const s=t.inFlow??e.flow;const r=s?stringifyFlowCollection:stringifyBlockCollection;return r(e,t,A)}function stringifyBlockCollection({comment:e,items:t},A,{blockItemPrefix:i,flowChars:o,itemIndent:a,onChompKeep:c,onComment:l}){const{indent:u,options:{commentString:g}}=A;const h=Object.assign({},A,{indent:a,type:null});let E=false;const f=[];for(let e=0;ec=null),(()=>E=true));if(c)l+=n.lineComment(l,a,g(c));if(E&&c)E=false;f.push(i+l)}let d;if(f.length===0){d=o.start+o.end}else{d=f[0];for(let e=1;ea=null));if(Ah||c.includes("\n")))g=true;E.push(c);h=E.length}const{start:f,end:d}=A;if(E.length===0){return f+d}else{if(!g){const e=E.reduce(((e,t)=>e+t.length+2),2);g=t.options.lineWidth>0&&e>t.options.lineWidth}if(g){let e=f;for(const t of E)e+=t?`\n${a}${o}${t}`:"\n";return`${e}\n${o}${d}`}else{return`${f}${c}${E.join(" ")}${c}${d}`}}}function addCommentBefore({indent:e,options:{commentString:t}},A,s,r){if(s&&r)s=s.replace(/^\n+/,"");if(s){const r=n.indentComment(t(s),e);A.push(r.trimStart())}}t.stringifyCollection=stringifyCollection},9799:(e,t)=>{const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,A)=>e.endsWith("\n")?indentComment(A,t):A.includes("\n")?"\n"+indentComment(A,t):(e.endsWith(" ")?"":" ")+A;t.indentComment=indentComment;t.lineComment=lineComment;t.stringifyComment=stringifyComment},6829:(e,t,A)=>{var s=A(1127);var r=A(2148);var n=A(9799);function stringifyDocument(e,t){const A=[];let i=t.directives===true;if(t.directives!==false&&e.directives){const t=e.directives.toString(e);if(t){A.push(t);i=true}else if(e.directives.docStart)i=true}if(i)A.push("---");const o=r.createStringifyContext(e,t);const{commentString:a}=o.options;if(e.commentBefore){if(A.length!==1)A.unshift("");const t=a(e.commentBefore);A.unshift(n.indentComment(t,""))}let c=false;let l=null;if(e.contents){if(s.isNode(e.contents)){if(e.contents.spaceBefore&&i)A.push("");if(e.contents.commentBefore){const t=a(e.contents.commentBefore);A.push(n.indentComment(t,""))}o.forceBlockIndent=!!e.comment;l=e.contents.comment}const t=l?undefined:()=>c=true;let u=r.stringify(e.contents,o,(()=>l=null),t);if(l)u+=n.lineComment(u,"",a(l));if((u[0]==="|"||u[0]===">")&&A[A.length-1]==="---"){A[A.length-1]=`--- ${u}`}else A.push(u)}else{A.push(r.stringify(e.contents,o))}if(e.directives?.docEnd){if(e.comment){const t=a(e.comment);if(t.includes("\n")){A.push("...");A.push(n.indentComment(t,""))}else{A.push(`... ${t}`)}}else{A.push("...")}}else{let t=e.comment;if(t&&c)t=t.replace(/^\n+/,"");if(t){if((!c||l)&&A[A.length-1]!=="")A.push("");A.push(n.indentComment(a(t),""))}}return A.join("\n")+"\n"}t.stringifyDocument=stringifyDocument},8689:(e,t)=>{function stringifyNumber({format:e,minFractionDigits:t,tag:A,value:s}){if(typeof s==="bigint")return String(s);const r=typeof s==="number"?s:Number(s);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let n=JSON.stringify(s);if(!e&&t&&(!A||A==="tag:yaml.org,2002:float")&&/^\d/.test(n)){let e=n.indexOf(".");if(e<0){e=n.length;n+="."}let A=t-(n.length-e-1);while(A-- >0)n+="0"}return n}t.stringifyNumber=stringifyNumber},9748:(e,t,A)=>{var s=A(1127);var r=A(3301);var n=A(2148);var i=A(9799);function stringifyPair({key:e,value:t},A,o,a){const{allNullValues:c,doc:l,indent:u,indentStep:g,options:{commentString:h,indentSeq:E,simpleKeys:f}}=A;let d=s.isNode(e)&&e.comment||null;if(f){if(d){throw new Error("With simple keys, key nodes cannot have comments")}if(s.isCollection(e)||!s.isNode(e)&&typeof e==="object"){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}let C=!f&&(!e||d&&t==null&&!A.inFlow||s.isCollection(e)||(s.isScalar(e)?e.type===r.Scalar.BLOCK_FOLDED||e.type===r.Scalar.BLOCK_LITERAL:typeof e==="object"));A=Object.assign({},A,{allNullValues:false,implicitKey:!C&&(f||!c),indent:u+g});let Q=false;let I=false;let B=n.stringify(e,A,(()=>Q=true),(()=>I=true));if(!C&&!A.inFlow&&B.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");C=true}if(A.inFlow){if(c||t==null){if(Q&&o)o();return B===""?"?":C?`? ${B}`:B}}else if(c&&!f||t==null&&C){B=`? ${B}`;if(d&&!Q){B+=i.lineComment(B,A.indent,h(d))}else if(I&&a)a();return B}if(Q)d=null;if(C){if(d)B+=i.lineComment(B,A.indent,h(d));B=`? ${B}\n${u}:`}else{B=`${B}:`;if(d)B+=i.lineComment(B,A.indent,h(d))}let p,y,m;if(s.isNode(t)){p=!!t.spaceBefore;y=t.commentBefore;m=t.comment}else{p=false;y=null;m=null;if(t&&typeof t==="object")t=l.createNode(t)}A.implicitKey=false;if(!C&&!d&&s.isScalar(t))A.indentAtStart=B.length+1;I=false;if(!E&&g.length>=2&&!A.inFlow&&!C&&s.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor){A.indent=A.indent.substring(2)}let w=false;const b=n.stringify(t,A,(()=>w=true),(()=>I=true));let R=" ";if(d||p||y){R=p?"\n":"";if(y){const e=h(y);R+=`\n${i.indentComment(e,A.indent)}`}if(b===""&&!A.inFlow){if(R==="\n")R="\n\n"}else{R+=`\n${A.indent}`}}else if(!C&&s.isCollection(t)){const e=b[0];const s=b.indexOf("\n");const r=s!==-1;const n=A.inFlow??t.flow??t.items.length===0;if(r||!n){let t=false;if(r&&(e==="&"||e==="!")){let A=b.indexOf(" ");if(e==="&"&&A!==-1&&A{var s=A(3301);var r=A(4475);const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});const containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,A){if(!t||t<0)return false;const s=t-A;const r=e.length;if(r<=s)return false;for(let t=0,A=0;ts)return true;A=t+1;if(r-A<=s)return false}}return true}function doubleQuotedString(e,t){const A=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return A;const{implicitKey:s}=t;const n=t.options.doubleQuotedMinMultiLineLength;const i=t.indent||(containsDocumentMarker(e)?" ":"");let o="";let a=0;for(let e=0,t=A[e];t;t=A[++e]){if(t===" "&&A[e+1]==="\\"&&A[e+2]==="n"){o+=A.slice(a,e)+"\\ ";e+=1;a=e;t="\\"}if(t==="\\")switch(A[e+1]){case"u":{o+=A.slice(a,e);const t=A.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:if(t.substr(0,2)==="00")o+="\\x"+t.substr(2);else o+=A.substr(e,6)}e+=5;a=e+1}break;case"n":if(s||A[e+2]==='"'||A.length\n";let E;let f;for(f=A.length;f>0;--f){const e=A[f-1];if(e!=="\n"&&e!=="\t"&&e!==" ")break}let d=A.substring(f);const C=d.indexOf("\n");if(C===-1){E="-"}else if(A===d||C!==d.length-1){E="+";if(a)a()}else{E=""}if(d){A=A.slice(0,-d.length);if(d[d.length-1]==="\n")d=d.slice(0,-1);d=d.replace(n,`$&${g}`)}let Q=false;let I;let B=-1;for(I=0;I{n=true}}const a=r.foldFlowLines(`${p}${e}${d}`,g,r.FOLD_BLOCK,o);if(!n)return`>${m}\n${g}${a}`}A=A.replace(/\n+/g,`$&${g}`);return`|${m}\n${g}${p}${A}${d}`}function plainString(e,t,A,n){const{type:i,value:o}=e;const{actualString:a,implicitKey:c,indent:l,indentStep:u,inFlow:g}=t;if(c&&o.includes("\n")||g&&/[[\]{},]/.test(o)){return quotedString(o,t)}if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)){return c||g||!o.includes("\n")?quotedString(o,t):blockString(e,t,A,n)}if(!c&&!g&&i!==s.Scalar.PLAIN&&o.includes("\n")){return blockString(e,t,A,n)}if(containsDocumentMarker(o)){if(l===""){t.forceBlockIndent=true;return blockString(e,t,A,n)}else if(c&&l===u){return quotedString(o,t)}}const h=o.replace(/\n+/g,`$&\n${l}`);if(a){const test=e=>e.default&&e.tag!=="tag:yaml.org,2002:str"&&e.test?.test(h);const{compat:e,tags:A}=t.doc.schema;if(A.some(test)||e?.some(test))return quotedString(o,t)}return c?h:r.foldFlowLines(h,l,r.FOLD_FLOW,getFoldOptions(t,false))}function stringifyString(e,t,A,r){const{implicitKey:n,inFlow:i}=t;const o=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;if(a!==s.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value))a=s.Scalar.QUOTE_DOUBLE}const _stringify=e=>{switch(e){case s.Scalar.BLOCK_FOLDED:case s.Scalar.BLOCK_LITERAL:return n||i?quotedString(o.value,t):blockString(o,t,A,r);case s.Scalar.QUOTE_DOUBLE:return doubleQuotedString(o.value,t);case s.Scalar.QUOTE_SINGLE:return singleQuotedString(o.value,t);case s.Scalar.PLAIN:return plainString(o,t,A,r);default:return null}};let c=_stringify(a);if(c===null){const{defaultKeyType:e,defaultStringType:A}=t.options;const s=n&&e||A;c=_stringify(s);if(c===null)throw new Error(`Unsupported default string type ${s}`)}return c}t.stringifyString=stringifyString},204:(e,t,A)=>{var s=A(1127);const r=Symbol("break visit");const n=Symbol("skip children");const i=Symbol("remove node");function visit(e,t){const A=initVisitor(t);if(s.isDocument(e)){const t=visit_(null,e.contents,A,Object.freeze([e]));if(t===i)e.contents=null}else visit_(null,e,A,Object.freeze([]))}visit.BREAK=r;visit.SKIP=n;visit.REMOVE=i;function visit_(e,t,A,n){const o=callVisitor(e,t,A,n);if(s.isNode(o)||s.isPair(o)){replaceNode(e,n,o);return visit_(e,o,A,n)}if(typeof o!=="symbol"){if(s.isCollection(t)){n=Object.freeze(n.concat(t));for(let e=0;e{"use strict";const s=Symbol("SemVer ANY");class Comparator{static get ANY(){return s}constructor(e,t){t=r(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");a("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===s){this.value=""}else{this.value=this.operator+this.semver.version}a("comp",this)}parse(e){const t=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR];const A=e.match(t);if(!A){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=A[1]!==undefined?A[1]:"";if(this.operator==="="){this.operator=""}if(!A[2]){this.semver=s}else{this.semver=new c(A[2],this.options.loose)}}toString(){return this.value}test(e){a("Comparator.test",e,this.options.loose);if(this.semver===s||e===s){return true}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}return o(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,t).test(e.semver)}t=r(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(o(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(o(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const r=A(356);const{safeRe:n,t:i}=A(5471);const o=A(8646);const a=A(1159);const c=A(7163);const l=A(6782)},6782:(e,t,A)=>{"use strict";const s=/\s+/g;class Range{constructor(e,t){t=i(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof o){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(s," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&f)|(this.options.loose&&d);const A=t+":"+e;const s=n.get(A);if(s){return s}const r=this.options.loose;const i=r?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(i,hyphenReplace(this.options.includePrerelease));a("hyphen replace",e);e=e.replace(l[u.COMPARATORTRIM],g);a("comparator trim",e);e=e.replace(l[u.TILDETRIM],h);a("tilde trim",e);e=e.replace(l[u.CARETTRIM],E);a("caret trim",e);let c=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(r){c=c.filter((e=>{a("loose invalid filter",e,this.options);return!!e.match(l[u.COMPARATORLOOSE])}))}a("range list",c);const C=new Map;const Q=c.map((e=>new o(e,this.options)));for(const e of Q){if(isNullSet(e)){return[e]}C.set(e.value,e)}if(C.size>1&&C.has("")){C.delete("")}const I=[...C.values()];n.set(A,I);return I}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((A=>isSatisfiable(A,t)&&e.set.some((e=>isSatisfiable(e,t)&&A.every((A=>e.every((e=>A.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let A=true;const s=e.slice();let r=s.pop();while(A&&s.length){A=s.every((e=>r.intersects(e,t)));r=s.pop()}return A};const parseComparator=(e,t)=>{a("comp",e,t);e=replaceCarets(e,t);a("caret",e);e=replaceTildes(e,t);a("tildes",e);e=replaceXRanges(e,t);a("xrange",e);e=replaceStars(e,t);a("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const A=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(A,((t,A,s,r,n)=>{a("tilde",e,t,A,s,r,n);let i;if(isX(A)){i=""}else if(isX(s)){i=`>=${A}.0.0 <${+A+1}.0.0-0`}else if(isX(r)){i=`>=${A}.${s}.0 <${A}.${+s+1}.0-0`}else if(n){a("replaceTilde pr",n);i=`>=${A}.${s}.${r}-${n} <${A}.${+s+1}.0-0`}else{i=`>=${A}.${s}.${r} <${A}.${+s+1}.0-0`}a("tilde return",i);return i}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{a("caret",e,t);const A=t.loose?l[u.CARETLOOSE]:l[u.CARET];const s=t.includePrerelease?"-0":"";return e.replace(A,((t,A,r,n,i)=>{a("caret",e,t,A,r,n,i);let o;if(isX(A)){o=""}else if(isX(r)){o=`>=${A}.0.0${s} <${+A+1}.0.0-0`}else if(isX(n)){if(A==="0"){o=`>=${A}.${r}.0${s} <${A}.${+r+1}.0-0`}else{o=`>=${A}.${r}.0${s} <${+A+1}.0.0-0`}}else if(i){a("replaceCaret pr",i);if(A==="0"){if(r==="0"){o=`>=${A}.${r}.${n}-${i} <${A}.${r}.${+n+1}-0`}else{o=`>=${A}.${r}.${n}-${i} <${A}.${+r+1}.0-0`}}else{o=`>=${A}.${r}.${n}-${i} <${+A+1}.0.0-0`}}else{a("no pr");if(A==="0"){if(r==="0"){o=`>=${A}.${r}.${n}${s} <${A}.${r}.${+n+1}-0`}else{o=`>=${A}.${r}.${n}${s} <${A}.${+r+1}.0-0`}}else{o=`>=${A}.${r}.${n} <${+A+1}.0.0-0`}}a("caret return",o);return o}))};const replaceXRanges=(e,t)=>{a("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const A=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(A,((A,s,r,n,i,o)=>{a("xRange",e,A,s,r,n,i,o);const c=isX(r);const l=c||isX(n);const u=l||isX(i);const g=u;if(s==="="&&g){s=""}o=t.includePrerelease?"-0":"";if(c){if(s===">"||s==="<"){A="<0.0.0-0"}else{A="*"}}else if(s&&g){if(l){n=0}i=0;if(s===">"){s=">=";if(l){r=+r+1;n=0;i=0}else{n=+n+1;i=0}}else if(s==="<="){s="<";if(l){r=+r+1}else{n=+n+1}}if(s==="<"){o="-0"}A=`${s+r}.${n}.${i}${o}`}else if(l){A=`>=${r}.0.0${o} <${+r+1}.0.0-0`}else if(u){A=`>=${r}.${n}.0${o} <${r}.${+n+1}.0-0`}a("xRange return",A);return A}))};const replaceStars=(e,t)=>{a("replaceStars",e,t);return e.trim().replace(l[u.STAR],"")};const replaceGTE0=(e,t)=>{a("replaceGTE0",e,t);return e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")};const hyphenReplace=e=>(t,A,s,r,n,i,o,a,c,l,u,g)=>{if(isX(s)){A=""}else if(isX(r)){A=`>=${s}.0.0${e?"-0":""}`}else if(isX(n)){A=`>=${s}.${r}.0${e?"-0":""}`}else if(i){A=`>=${A}`}else{A=`>=${A}${e?"-0":""}`}if(isX(c)){a=""}else if(isX(l)){a=`<${+c+1}.0.0-0`}else if(isX(u)){a=`<${c}.${+l+1}.0-0`}else if(g){a=`<=${c}.${l}.${u}-${g}`}else if(e){a=`<${c}.${l}.${+u+1}-0`}else{a=`<=${a}`}return`${A} ${a}`.trim()};const testSet=(e,t,A)=>{for(let A=0;A0){const s=e[A].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}},7163:(e,t,A)=>{"use strict";const s=A(1159);const{MAX_LENGTH:r,MAX_SAFE_INTEGER:n}=A(5101);const{safeRe:i,t:o}=A(5471);const a=A(356);const{compareIdentifiers:c}=A(3348);class SemVer{constructor(e,t){t=a(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>r){throw new TypeError(`version is longer than ${r} characters`)}s("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const A=e.trim().match(t.loose?i[o.LOOSE]:i[o.FULL]);if(!A){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+A[1];this.minor=+A[2];this.patch=+A[3];if(this.major>n||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>n||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>n||this.patch<0){throw new TypeError("Invalid patch version")}if(!A[4]){this.prerelease=[]}else{this.prerelease=A[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[s]==="number"){this.prerelease[s]++;s=-2}}if(s===-1){if(t===this.prerelease.join(".")&&A===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let s=[t,e];if(A===false){s=[t]}if(c(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=s}}else{this.prerelease=s}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},1799:(e,t,A)=>{"use strict";const s=A(6353);const clean=(e,t)=>{const A=s(e.trim().replace(/^[=v]+/,""),t);return A?A.version:null};e.exports=clean},8646:(e,t,A)=>{"use strict";const s=A(5082);const r=A(4974);const n=A(6599);const i=A(1236);const o=A(3872);const a=A(6717);const cmp=(e,t,A,c)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof A==="object"){A=A.version}return e===A;case"!==":if(typeof e==="object"){e=e.version}if(typeof A==="object"){A=A.version}return e!==A;case"":case"=":case"==":return s(e,A,c);case"!=":return r(e,A,c);case">":return n(e,A,c);case">=":return i(e,A,c);case"<":return o(e,A,c);case"<=":return a(e,A,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},5385:(e,t,A)=>{"use strict";const s=A(7163);const r=A(6353);const{safeRe:n,t:i}=A(5471);const coerce=(e,t)=>{if(e instanceof s){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let A=null;if(!t.rtl){A=e.match(t.includePrerelease?n[i.COERCEFULL]:n[i.COERCE])}else{const s=t.includePrerelease?n[i.COERCERTLFULL]:n[i.COERCERTL];let r;while((r=s.exec(e))&&(!A||A.index+A[0].length!==e.length)){if(!A||r.index+r[0].length!==A.index+A[0].length){A=r}s.lastIndex=r.index+r[1].length+r[2].length}s.lastIndex=-1}if(A===null){return null}const o=A[2];const a=A[3]||"0";const c=A[4]||"0";const l=t.includePrerelease&&A[5]?`-${A[5]}`:"";const u=t.includePrerelease&&A[6]?`+${A[6]}`:"";return r(`${o}.${a}.${c}${l}${u}`,t)};e.exports=coerce},7648:(e,t,A)=>{"use strict";const s=A(7163);const compareBuild=(e,t,A)=>{const r=new s(e,A);const n=new s(t,A);return r.compare(n)||r.compareBuild(n)};e.exports=compareBuild},6874:(e,t,A)=>{"use strict";const s=A(8469);const compareLoose=(e,t)=>s(e,t,true);e.exports=compareLoose},8469:(e,t,A)=>{"use strict";const s=A(7163);const compare=(e,t,A)=>new s(e,A).compare(new s(t,A));e.exports=compare},711:(e,t,A)=>{"use strict";const s=A(6353);const diff=(e,t)=>{const A=s(e,null,true);const r=s(t,null,true);const n=A.compare(r);if(n===0){return null}const i=n>0;const o=i?A:r;const a=i?r:A;const c=!!o.prerelease.length;const l=!!a.prerelease.length;if(l&&!c){if(!a.patch&&!a.minor){return"major"}if(a.compareMain(o)===0){if(a.minor&&!a.patch){return"minor"}return"patch"}}const u=c?"pre":"";if(A.major!==r.major){return u+"major"}if(A.minor!==r.minor){return u+"minor"}if(A.patch!==r.patch){return u+"patch"}return"prerelease"};e.exports=diff},5082:(e,t,A)=>{"use strict";const s=A(8469);const eq=(e,t,A)=>s(e,t,A)===0;e.exports=eq},6599:(e,t,A)=>{"use strict";const s=A(8469);const gt=(e,t,A)=>s(e,t,A)>0;e.exports=gt},1236:(e,t,A)=>{"use strict";const s=A(8469);const gte=(e,t,A)=>s(e,t,A)>=0;e.exports=gte},2338:(e,t,A)=>{"use strict";const s=A(7163);const inc=(e,t,A,r,n)=>{if(typeof A==="string"){n=r;r=A;A=undefined}try{return new s(e instanceof s?e.version:e,A).inc(t,r,n).version}catch(e){return null}};e.exports=inc},3872:(e,t,A)=>{"use strict";const s=A(8469);const lt=(e,t,A)=>s(e,t,A)<0;e.exports=lt},6717:(e,t,A)=>{"use strict";const s=A(8469);const lte=(e,t,A)=>s(e,t,A)<=0;e.exports=lte},8511:(e,t,A)=>{"use strict";const s=A(7163);const major=(e,t)=>new s(e,t).major;e.exports=major},2603:(e,t,A)=>{"use strict";const s=A(7163);const minor=(e,t)=>new s(e,t).minor;e.exports=minor},4974:(e,t,A)=>{"use strict";const s=A(8469);const neq=(e,t,A)=>s(e,t,A)!==0;e.exports=neq},6353:(e,t,A)=>{"use strict";const s=A(7163);const parse=(e,t,A=false)=>{if(e instanceof s){return e}try{return new s(e,t)}catch(e){if(!A){return null}throw e}};e.exports=parse},8756:(e,t,A)=>{"use strict";const s=A(7163);const patch=(e,t)=>new s(e,t).patch;e.exports=patch},5714:(e,t,A)=>{"use strict";const s=A(6353);const prerelease=(e,t)=>{const A=s(e,t);return A&&A.prerelease.length?A.prerelease:null};e.exports=prerelease},2173:(e,t,A)=>{"use strict";const s=A(8469);const rcompare=(e,t,A)=>s(t,e,A);e.exports=rcompare},7192:(e,t,A)=>{"use strict";const s=A(7648);const rsort=(e,t)=>e.sort(((e,A)=>s(A,e,t)));e.exports=rsort},8011:(e,t,A)=>{"use strict";const s=A(6782);const satisfies=(e,t,A)=>{try{t=new s(t,A)}catch(e){return false}return t.test(e)};e.exports=satisfies},9872:(e,t,A)=>{"use strict";const s=A(7648);const sort=(e,t)=>e.sort(((e,A)=>s(e,A,t)));e.exports=sort},8780:(e,t,A)=>{"use strict";const s=A(6353);const valid=(e,t)=>{const A=s(e,t);return A?A.version:null};e.exports=valid},2088:(e,t,A)=>{"use strict";const s=A(5471);const r=A(5101);const n=A(7163);const i=A(3348);const o=A(6353);const a=A(8780);const c=A(1799);const l=A(2338);const u=A(711);const g=A(8511);const h=A(2603);const E=A(8756);const f=A(5714);const d=A(8469);const C=A(2173);const Q=A(6874);const I=A(7648);const B=A(9872);const p=A(7192);const y=A(6599);const m=A(3872);const w=A(5082);const b=A(4974);const R=A(1236);const k=A(6717);const S=A(8646);const D=A(5385);const N=A(9379);const F=A(6782);const v=A(8011);const L=A(4750);const M=A(5574);const U=A(8595);const T=A(1866);const O=A(4737);const Y=A(280);const x=A(2276);const G=A(5213);const J=A(3465);const H=A(2028);const P=A(1489);e.exports={parse:o,valid:a,clean:c,inc:l,diff:u,major:g,minor:h,patch:E,prerelease:f,compare:d,rcompare:C,compareLoose:Q,compareBuild:I,sort:B,rsort:p,gt:y,lt:m,eq:w,neq:b,gte:R,lte:k,cmp:S,coerce:D,Comparator:N,Range:F,satisfies:v,toComparators:L,maxSatisfying:M,minSatisfying:U,minVersion:T,validRange:O,outside:Y,gtr:x,ltr:G,intersects:J,simplifyRange:H,subset:P,SemVer:n,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},5101:e=>{"use strict";const t="2.0.0";const A=256;const s=Number.MAX_SAFE_INTEGER||9007199254740991;const r=16;const n=A-6;const i=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:A,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_SAFE_INTEGER:s,RELEASE_TYPES:i,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:e=>{"use strict";const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},3348:e=>{"use strict";const t=/^[0-9]+$/;const compareIdentifiers=(e,A)=>{const s=t.test(e);const r=t.test(A);if(s&&r){e=+e;A=+A}return e===A?0:s&&!r?-1:r&&!s?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1383:e=>{"use strict";class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const A=this.delete(e);if(!A&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},356:e=>{"use strict";const t=Object.freeze({loose:true});const A=Object.freeze({});const parseOptions=e=>{if(!e){return A}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},5471:(e,t,A)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:n}=A(5101);const i=A(1159);t=e.exports={};const o=t.re=[];const a=t.safeRe=[];const c=t.src=[];const l=t.safeSrc=[];const u=t.t={};let g=0;const h="[a-zA-Z0-9-]";const E=[["\\s",1],["\\d",n],[h,r]];const makeSafeRegex=e=>{for(const[t,A]of E){e=e.split(`${t}*`).join(`${t}{0,${A}}`).split(`${t}+`).join(`${t}{1,${A}}`)}return e};const createToken=(e,t,A)=>{const s=makeSafeRegex(t);const r=g++;i(e,r,t);u[e]=r;c[r]=t;l[r]=s;o[r]=new RegExp(t,A?"g":undefined);a[r]=new RegExp(s,A?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`);createToken("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.`+`(${c[u.NUMERICIDENTIFIER]})\\.`+`(${c[u.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${c[u.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${h}+`);createToken("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`);createToken("FULL",`^${c[u.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`);createToken("LOOSE",`^${c[u.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})`+`(?:\\.(${c[u.XRANGEIDENTIFIER]})`+`(?:\\.(${c[u.XRANGEIDENTIFIER]})`+`(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${s}})`+`(?:\\.(\\d{1,${s}}))?`+`(?:\\.(\\d{1,${s}}))?`);createToken("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",c[u.COERCE],true);createToken("COERCERTLFULL",c[u.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${c[u.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${c[u.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2276:(e,t,A)=>{"use strict";const s=A(280);const gtr=(e,t,A)=>s(e,t,">",A);e.exports=gtr},3465:(e,t,A)=>{"use strict";const s=A(6782);const intersects=(e,t,A)=>{e=new s(e,A);t=new s(t,A);return e.intersects(t,A)};e.exports=intersects},5213:(e,t,A)=>{"use strict";const s=A(280);const ltr=(e,t,A)=>s(e,t,"<",A);e.exports=ltr},5574:(e,t,A)=>{"use strict";const s=A(7163);const r=A(6782);const maxSatisfying=(e,t,A)=>{let n=null;let i=null;let o=null;try{o=new r(t,A)}catch(e){return null}e.forEach((e=>{if(o.test(e)){if(!n||i.compare(e)===-1){n=e;i=new s(n,A)}}}));return n};e.exports=maxSatisfying},8595:(e,t,A)=>{"use strict";const s=A(7163);const r=A(6782);const minSatisfying=(e,t,A)=>{let n=null;let i=null;let o=null;try{o=new r(t,A)}catch(e){return null}e.forEach((e=>{if(o.test(e)){if(!n||i.compare(e)===1){n=e;i=new s(n,A)}}}));return n};e.exports=minSatisfying},1866:(e,t,A)=>{"use strict";const s=A(7163);const r=A(6782);const n=A(6599);const minVersion=(e,t)=>{e=new r(e,t);let A=new s("0.0.0");if(e.test(A)){return A}A=new s("0.0.0-0");if(e.test(A)){return A}A=null;for(let t=0;t{const t=new s(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!i||n(t,i)){i=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(i&&(!A||n(A,i))){A=i}}if(A&&e.test(A)){return A}return null};e.exports=minVersion},280:(e,t,A)=>{"use strict";const s=A(7163);const r=A(9379);const{ANY:n}=r;const i=A(6782);const o=A(8011);const a=A(6599);const c=A(3872);const l=A(6717);const u=A(1236);const outside=(e,t,A,g)=>{e=new s(e,g);t=new i(t,g);let h,E,f,d,C;switch(A){case">":h=a;E=l;f=c;d=">";C=">=";break;case"<":h=c;E=u;f=a;d="<";C="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,g)){return false}for(let A=0;A{if(e.semver===n){e=new r(">=0.0.0")}i=i||e;o=o||e;if(h(e.semver,i.semver,g)){i=e}else if(f(e.semver,o.semver,g)){o=e}}));if(i.operator===d||i.operator===C){return false}if((!o.operator||o.operator===d)&&E(e,o.semver)){return false}else if(o.operator===C&&f(e,o.semver)){return false}}return true};e.exports=outside},2028:(e,t,A)=>{"use strict";const s=A(8011);const r=A(8469);e.exports=(e,t,A)=>{const n=[];let i=null;let o=null;const a=e.sort(((e,t)=>r(e,t,A)));for(const e of a){const r=s(e,t,A);if(r){o=e;if(!i){i=e}}else{if(o){n.push([i,o])}o=null;i=null}}if(i){n.push([i,null])}const c=[];for(const[e,t]of n){if(e===t){c.push(e)}else if(!t&&e===a[0]){c.push("*")}else if(!t){c.push(`>=${e}`)}else if(e===a[0]){c.push(`<=${t}`)}else{c.push(`${e} - ${t}`)}}const l=c.join(" || ");const u=typeof t.raw==="string"?t.raw:String(t);return l.length{"use strict";const s=A(6782);const r=A(9379);const{ANY:n}=r;const i=A(8011);const o=A(8469);const subset=(e,t,A={})=>{if(e===t){return true}e=new s(e,A);t=new s(t,A);let r=false;e:for(const s of e.set){for(const e of t.set){const t=simpleSubset(s,e,A);r=r||t!==null;if(t){continue e}}if(r){return false}}return true};const a=[new r(">=0.0.0-0")];const c=[new r(">=0.0.0")];const simpleSubset=(e,t,A)=>{if(e===t){return true}if(e.length===1&&e[0].semver===n){if(t.length===1&&t[0].semver===n){return true}else if(A.includePrerelease){e=a}else{e=c}}if(t.length===1&&t[0].semver===n){if(A.includePrerelease){return true}else{t=c}}const s=new Set;let r,l;for(const t of e){if(t.operator===">"||t.operator===">="){r=higherGT(r,t,A)}else if(t.operator==="<"||t.operator==="<="){l=lowerLT(l,t,A)}else{s.add(t.semver)}}if(s.size>1){return null}let u;if(r&&l){u=o(r.semver,l.semver,A);if(u>0){return null}else if(u===0&&(r.operator!==">="||l.operator!=="<=")){return null}}for(const e of s){if(r&&!i(e,String(r),A)){return null}if(l&&!i(e,String(l),A)){return null}for(const s of t){if(!i(e,String(s),A)){return false}}return true}let g,h;let E,f;let d=l&&!A.includePrerelease&&l.semver.prerelease.length?l.semver:false;let C=r&&!A.includePrerelease&&r.semver.prerelease.length?r.semver:false;if(d&&d.prerelease.length===1&&l.operator==="<"&&d.prerelease[0]===0){d=false}for(const e of t){f=f||e.operator===">"||e.operator===">=";E=E||e.operator==="<"||e.operator==="<=";if(r){if(C){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===C.major&&e.semver.minor===C.minor&&e.semver.patch===C.patch){C=false}}if(e.operator===">"||e.operator===">="){g=higherGT(r,e,A);if(g===e&&g!==r){return false}}else if(r.operator===">="&&!i(r.semver,String(e),A)){return false}}if(l){if(d){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch){d=false}}if(e.operator==="<"||e.operator==="<="){h=lowerLT(l,e,A);if(h===e&&h!==l){return false}}else if(l.operator==="<="&&!i(l.semver,String(e),A)){return false}}if(!e.operator&&(l||r)&&u!==0){return false}}if(r&&E&&!l&&u!==0){return false}if(l&&f&&!r&&u!==0){return false}if(C||d){return false}return true};const higherGT=(e,t,A)=>{if(!e){return t}const s=o(e.semver,t.semver,A);return s>0?e:s<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,A)=>{if(!e){return t}const s=o(e.semver,t.semver,A);return s<0?e:s>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},4750:(e,t,A)=>{"use strict";const s=A(6782);const toComparators=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},4737:(e,t,A)=>{"use strict";const s=A(6782);const validRange=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}};e.exports=validRange},770:(e,t,A)=>{e.exports=A(218)},218:(e,t,A)=>{"use strict";var s=A(9278);var r=A(4756);var n=A(8611);var i=A(5692);var o=A(4434);var a=A(2613);var c=A(9023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=n.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=n.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,A,s,r){var n=toOptions(A,s,r);for(var i=0,o=t.requests.length;i=this.maxSockets){r.requests.push(n);return}r.createSocket(n,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){r.emit("free",t,n)}function onCloseOrRemove(e){r.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var A=this;var s={};A.sockets.push(s);var r=mergeOptions({},A.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){r.localAddress=e.localAddress}if(r.proxyAuth){r.headers=r.headers||{};r.headers["Proxy-Authorization"]="Basic "+new Buffer(r.proxyAuth).toString("base64")}l("making CONNECT request");var n=A.request(r);n.useChunkedEncodingByDefault=false;n.once("response",onResponse);n.once("upgrade",onUpgrade);n.once("connect",onConnect);n.once("error",onError);n.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,A){process.nextTick((function(){onConnect(e,t,A)}))}function onConnect(r,i,o){n.removeAllListeners();i.removeAllListeners();if(r.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",r.statusCode);i.destroy();var a=new Error("tunneling socket could not be established, "+"statusCode="+r.statusCode);a.code="ECONNRESET";e.request.emit("error",a);A.removeSocket(s);return}if(o.length>0){l("got illegal response body from proxy");i.destroy();var a=new Error("got illegal response body from proxy");a.code="ECONNRESET";e.request.emit("error",a);A.removeSocket(s);return}l("tunneling connection has established");A.sockets[A.sockets.indexOf(s)]=i;return t(i)}function onError(t){n.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=new Error("tunneling socket could not be established, "+"cause="+t.message);r.code="ECONNRESET";e.request.emit("error",r);A.removeSocket(s)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var A=this.requests.shift();if(A){this.createSocket(A,(function(e){A.request.onSocket(e)}))}};function createSecureSocket(e,t){var A=this;TunnelingAgent.prototype.createSocket.call(A,e,(function(s){var n=e.request.getHeader("host");var i=mergeOptions({},A.options,{socket:s,servername:n?n.replace(/:.*$/,""):e.host});var o=r.connect(0,i);A.sockets[A.sockets.indexOf(s)]=o;t(o)}))}function toOptions(e,t,A){if(typeof e==="string"){return{host:e,port:t,localAddress:A}}return e}function mergeOptions(e){for(var t=1,A=arguments.length;t{"use strict";const s=A(6197);const r=A(992);const n=A(8707);const i=A(5076);const o=A(1093);const a=A(9965);const c=A(3440);const{InvalidArgumentError:l}=n;const u=A(6615);const g=A(9136);const h=A(7365);const E=A(7501);const f=A(4004);const d=A(2429);const C=A(2720);const Q=A(3573);const{getGlobalDispatcher:I,setGlobalDispatcher:B}=A(2581);const p=A(8840);const y=A(8299);const m=A(4415);let w;try{A(6982);w=true}catch{w=false}Object.assign(r.prototype,u);e.exports.Dispatcher=r;e.exports.Client=s;e.exports.Pool=i;e.exports.BalancedPool=o;e.exports.Agent=a;e.exports.ProxyAgent=C;e.exports.RetryHandler=Q;e.exports.DecoratorHandler=p;e.exports.RedirectHandler=y;e.exports.createRedirectInterceptor=m;e.exports.buildConnector=g;e.exports.errors=n;function makeDispatcher(e){return(t,A,s)=>{if(typeof A==="function"){s=A;A=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new l("invalid url")}if(A!=null&&typeof A!=="object"){throw new l("invalid opts")}if(A&&A.path!=null){if(typeof A.path!=="string"){throw new l("invalid opts.path")}let e=A.path;if(!A.path.startsWith("/")){e=`/${e}`}t=new URL(c.parseOrigin(t).origin+e)}else{if(!A){A=typeof t==="object"?t:{}}t=c.parseURL(t)}const{agent:r,dispatcher:n=I()}=A;if(r){throw new l("unsupported opts.agent. Did you mean opts.client?")}return e.call(n,{...A,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:A.method||(A.body?"PUT":"GET")},s)}}e.exports.setGlobalDispatcher=B;e.exports.getGlobalDispatcher=I;if(c.nodeMajor>16||c.nodeMajor===16&&c.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=A(2315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=A(6349).Headers;e.exports.Response=A(8676).Response;e.exports.Request=A(5194).Request;e.exports.FormData=A(3073).FormData;e.exports.File=A(3041).File;e.exports.FileReader=A(2160).FileReader;const{setGlobalOrigin:s,getGlobalOrigin:r}=A(5628);e.exports.setGlobalOrigin=s;e.exports.getGlobalOrigin=r;const{CacheStorage:n}=A(4738);const{kConstruct:i}=A(296);e.exports.caches=new n(i)}if(c.nodeMajor>=16){const{deleteCookie:t,getCookies:s,getSetCookies:r,setCookie:n}=A(3168);e.exports.deleteCookie=t;e.exports.getCookies=s;e.exports.getSetCookies=r;e.exports.setCookie=n;const{parseMIMEType:i,serializeAMimeType:o}=A(4322);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=o}if(c.nodeMajor>=18&&w){const{WebSocket:t}=A(5171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(u.request);e.exports.stream=makeDispatcher(u.stream);e.exports.pipeline=makeDispatcher(u.pipeline);e.exports.connect=makeDispatcher(u.connect);e.exports.upgrade=makeDispatcher(u.upgrade);e.exports.MockClient=h;e.exports.MockPool=f;e.exports.MockAgent=E;e.exports.mockErrors=d},9965:(e,t,A)=>{"use strict";const{InvalidArgumentError:s}=A(8707);const{kClients:r,kRunning:n,kClose:i,kDestroy:o,kDispatch:a,kInterceptors:c}=A(6443);const l=A(1);const u=A(5076);const g=A(6197);const h=A(3440);const E=A(4415);const{WeakRef:f,FinalizationRegistry:d}=A(3194)();const C=Symbol("onConnect");const Q=Symbol("onDisconnect");const I=Symbol("onConnectionError");const B=Symbol("maxRedirections");const p=Symbol("onDrain");const y=Symbol("factory");const m=Symbol("finalizer");const w=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new g(e,t):new u(e,t)}class Agent extends l{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:A,...n}={}){super();if(typeof e!=="function"){throw new s("factory must be a function.")}if(A!=null&&typeof A!=="function"&&typeof A!=="object"){throw new s("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new s("maxRedirections must be a positive number")}if(A&&typeof A!=="function"){A={...A}}this[c]=n.interceptors&&n.interceptors.Agent&&Array.isArray(n.interceptors.Agent)?n.interceptors.Agent:[E({maxRedirections:t})];this[w]={...h.deepClone(n),connect:A};this[w].interceptors=n.interceptors?{...n.interceptors}:undefined;this[B]=t;this[y]=e;this[r]=new Map;this[m]=new d((e=>{const t=this[r].get(e);if(t!==undefined&&t.deref()===undefined){this[r].delete(e)}}));const i=this;this[p]=(e,t)=>{i.emit("drain",e,[i,...t])};this[C]=(e,t)=>{i.emit("connect",e,[i,...t])};this[Q]=(e,t,A)=>{i.emit("disconnect",e,[i,...t],A)};this[I]=(e,t,A)=>{i.emit("connectionError",e,[i,...t],A)}}get[n](){let e=0;for(const t of this[r].values()){const A=t.deref();if(A){e+=A[n]}}return e}[a](e,t){let A;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){A=String(e.origin)}else{throw new s("opts.origin must be a non-empty string or URL.")}const n=this[r].get(A);let i=n?n.deref():null;if(!i){i=this[y](e.origin,this[w]).on("drain",this[p]).on("connect",this[C]).on("disconnect",this[Q]).on("connectionError",this[I]);this[r].set(A,new f(i));this[m].register(i,A)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[r].values()){const A=t.deref();if(A){e.push(A.close())}}await Promise.all(e)}async[o](e){const t=[];for(const A of this[r].values()){const s=A.deref();if(s){t.push(s.destroy(e))}}await Promise.all(t)}}e.exports=Agent},158:(e,t,A)=>{const{addAbortListener:s}=A(3440);const{RequestAbortedError:r}=A(8707);const n=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new r)}}function addSignal(e,t){e[i]=null;e[n]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[n]=()=>{abort(e)};s(e[i],e[n])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[n])}else{e[i].removeListener("abort",e[n])}e[i]=null;e[n]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},4660:(e,t,A)=>{"use strict";const{AsyncResource:s}=A(290);const{InvalidArgumentError:r,RequestAbortedError:n,SocketError:i}=A(8707);const o=A(3440);const{addSignal:a,removeSignal:c}=A(158);class ConnectHandler extends s{constructor(e,t){if(!e||typeof e!=="object"){throw new r("invalid opts")}if(typeof t!=="function"){throw new r("invalid callback")}const{signal:A,opaque:s,responseHeaders:n}=e;if(A&&typeof A.on!=="function"&&typeof A.addEventListener!=="function"){throw new r("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=s||null;this.responseHeaders=n||null;this.callback=t;this.abort=null;a(this,A)}onConnect(e,t){if(!this.callback){throw new n}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,A){const{callback:s,opaque:r,context:n}=this;c(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?o.parseRawHeaders(t):o.parseHeaders(t)}this.runInAsyncScope(s,null,null,{statusCode:e,headers:i,socket:A,opaque:r,context:n})}onError(e){const{callback:t,opaque:A}=this;c(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:A})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,A)=>{connect.call(this,e,((e,s)=>e?A(e):t(s)))}))}try{const A=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},A)}catch(A){if(typeof t!=="function"){throw A}const s=e&&e.opaque;queueMicrotask((()=>t(A,{opaque:s})))}}e.exports=connect},6862:(e,t,A)=>{"use strict";const{Readable:s,Duplex:r,PassThrough:n}=A(2203);const{InvalidArgumentError:i,InvalidReturnValueError:o,RequestAbortedError:a}=A(8707);const c=A(3440);const{AsyncResource:l}=A(290);const{addSignal:u,removeSignal:g}=A(158);const h=A(2613);const E=Symbol("resume");class PipelineRequest extends s{constructor(){super({autoDestroy:true});this[E]=null}_read(){const{[E]:e}=this;if(e){this[E]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends s{constructor(e){super({autoDestroy:true});this[E]=e}_read(){this[E]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new a}t(e)}}class PipelineHandler extends l{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:A,method:s,opaque:n,onInfo:o,responseHeaders:l}=e;if(A&&typeof A.on!=="function"&&typeof A.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new i("invalid method")}if(o&&typeof o!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=n||null;this.responseHeaders=l||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=o||null;this.req=(new PipelineRequest).on("error",c.nop);this.ret=new r({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,A)=>{const{req:s}=this;if(s.push(e,t)||s._readableState.destroyed){A()}else{s[E]=A}},destroy:(e,t)=>{const{body:A,req:s,res:r,ret:n,abort:i}=this;if(!e&&!n._readableState.endEmitted){e=new a}if(i&&e){i()}c.destroy(A,e);c.destroy(s,e);c.destroy(r,e);g(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;u(this,A)}onConnect(e,t){const{ret:A,res:s}=this;h(!s,"pipeline cannot be retried");if(A.destroyed){throw new a}this.abort=e;this.context=t}onHeaders(e,t,A){const{opaque:s,handler:r,context:n}=this;if(e<200){if(this.onInfo){const A=this.responseHeaders==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);this.onInfo({statusCode:e,headers:A})}return}this.res=new PipelineResponse(A);let i;try{this.handler=null;const A=this.responseHeaders==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);i=this.runInAsyncScope(r,null,{statusCode:e,headers:A,opaque:s,body:this.res,context:n})}catch(e){this.res.on("error",c.nop);throw e}if(!i||typeof i.on!=="function"){throw new o("expected Readable")}i.on("data",(e=>{const{ret:t,body:A}=this;if(!t.push(e)&&A.pause){A.pause()}})).on("error",(e=>{const{ret:t}=this;c.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){c.destroy(e,new a)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;c.destroy(t,e)}}function pipeline(e,t){try{const A=new PipelineHandler(e,t);this.dispatch({...e,body:A.req},A);return A.ret}catch(e){return(new n).destroy(e)}}e.exports=pipeline},4043:(e,t,A)=>{"use strict";const s=A(9927);const{InvalidArgumentError:r,RequestAbortedError:n}=A(8707);const i=A(3440);const{getResolveErrorBodyCallback:o}=A(7655);const{AsyncResource:a}=A(290);const{addSignal:c,removeSignal:l}=A(158);class RequestHandler extends a{constructor(e,t){if(!e||typeof e!=="object"){throw new r("invalid opts")}const{signal:A,method:s,opaque:n,body:o,onInfo:a,responseHeaders:l,throwOnError:u,highWaterMark:g}=e;try{if(typeof t!=="function"){throw new r("invalid callback")}if(g&&(typeof g!=="number"||g<0)){throw new r("invalid highWaterMark")}if(A&&typeof A.on!=="function"&&typeof A.addEventListener!=="function"){throw new r("signal must be an EventEmitter or EventTarget")}if(s==="CONNECT"){throw new r("invalid method")}if(a&&typeof a!=="function"){throw new r("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(o)){i.destroy(o.on("error",i.nop),e)}throw e}this.responseHeaders=l||null;this.opaque=n||null;this.callback=t;this.res=null;this.abort=null;this.body=o;this.trailers={};this.context=null;this.onInfo=a||null;this.throwOnError=u;this.highWaterMark=g;if(i.isStream(o)){o.on("error",(e=>{this.onError(e)}))}c(this,A)}onConnect(e,t){if(!this.callback){throw new n}this.abort=e;this.context=t}onHeaders(e,t,A,r){const{callback:n,opaque:a,abort:c,context:l,responseHeaders:u,highWaterMark:g}=this;const h=u==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:h})}return}const E=u==="raw"?i.parseHeaders(t):h;const f=E["content-type"];const d=new s({resume:A,abort:c,contentType:f,highWaterMark:g});this.callback=null;this.res=d;if(n!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(o,null,{callback:n,body:d,contentType:f,statusCode:e,statusMessage:r,headers:h})}else{this.runInAsyncScope(n,null,null,{statusCode:e,headers:h,trailers:this.trailers,opaque:a,body:d,context:l})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;l(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:A,body:s,opaque:r}=this;l(this);if(A){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(A,null,e,{opaque:r})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(s){this.body=null;i.destroy(s,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,A)=>{request.call(this,e,((e,s)=>e?A(e):t(s)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(A){if(typeof t!=="function"){throw A}const s=e&&e.opaque;queueMicrotask((()=>t(A,{opaque:s})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,A)=>{"use strict";const{finished:s,PassThrough:r}=A(2203);const{InvalidArgumentError:n,InvalidReturnValueError:i,RequestAbortedError:o}=A(8707);const a=A(3440);const{getResolveErrorBodyCallback:c}=A(7655);const{AsyncResource:l}=A(290);const{addSignal:u,removeSignal:g}=A(158);class StreamHandler extends l{constructor(e,t,A){if(!e||typeof e!=="object"){throw new n("invalid opts")}const{signal:s,method:r,opaque:i,body:o,onInfo:c,responseHeaders:l,throwOnError:g}=e;try{if(typeof A!=="function"){throw new n("invalid callback")}if(typeof t!=="function"){throw new n("invalid factory")}if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}if(r==="CONNECT"){throw new n("invalid method")}if(c&&typeof c!=="function"){throw new n("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(a.isStream(o)){a.destroy(o.on("error",a.nop),e)}throw e}this.responseHeaders=l||null;this.opaque=i||null;this.factory=t;this.callback=A;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=o;this.onInfo=c||null;this.throwOnError=g||false;if(a.isStream(o)){o.on("error",(e=>{this.onError(e)}))}u(this,s)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=t}onHeaders(e,t,A,n){const{factory:o,opaque:l,context:u,callback:g,responseHeaders:h}=this;const E=h==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:E})}return}this.factory=null;let f;if(this.throwOnError&&e>=400){const A=h==="raw"?a.parseHeaders(t):E;const s=A["content-type"];f=new r;this.callback=null;this.runInAsyncScope(c,null,{callback:g,body:f,contentType:s,statusCode:e,statusMessage:n,headers:E})}else{if(o===null){return}f=this.runInAsyncScope(o,null,{statusCode:e,headers:E,opaque:l,context:u});if(!f||typeof f.write!=="function"||typeof f.end!=="function"||typeof f.on!=="function"){throw new i("expected Writable")}s(f,{readable:false},(e=>{const{callback:t,res:A,opaque:s,trailers:r,abort:n}=this;this.res=null;if(e||!A.readable){a.destroy(A,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:s,trailers:r});if(e){n()}}))}f.on("drain",A);this.res=f;const d=f.writableNeedDrain!==undefined?f.writableNeedDrain:f._writableState&&f._writableState.needDrain;return d!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;g(this);if(!t){return}this.trailers=a.parseHeaders(e);t.end()}onError(e){const{res:t,callback:A,opaque:s,body:r}=this;g(this);this.factory=null;if(t){this.res=null;a.destroy(t,e)}else if(A){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(A,null,e,{opaque:s})}))}if(r){this.body=null;a.destroy(r,e)}}}function stream(e,t,A){if(A===undefined){return new Promise(((A,s)=>{stream.call(this,e,t,((e,t)=>e?s(e):A(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,A))}catch(t){if(typeof A!=="function"){throw t}const s=e&&e.opaque;queueMicrotask((()=>A(t,{opaque:s})))}}e.exports=stream},1882:(e,t,A)=>{"use strict";const{InvalidArgumentError:s,RequestAbortedError:r,SocketError:n}=A(8707);const{AsyncResource:i}=A(290);const o=A(3440);const{addSignal:a,removeSignal:c}=A(158);const l=A(2613);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new s("invalid opts")}if(typeof t!=="function"){throw new s("invalid callback")}const{signal:A,opaque:r,responseHeaders:n}=e;if(A&&typeof A.on!=="function"&&typeof A.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=n||null;this.opaque=r||null;this.callback=t;this.abort=null;this.context=null;a(this,A)}onConnect(e,t){if(!this.callback){throw new r}this.abort=e;this.context=null}onHeaders(){throw new n("bad upgrade",null)}onUpgrade(e,t,A){const{callback:s,opaque:r,context:n}=this;l.strictEqual(e,101);c(this);this.callback=null;const i=this.responseHeaders==="raw"?o.parseRawHeaders(t):o.parseHeaders(t);this.runInAsyncScope(s,null,null,{headers:i,socket:A,opaque:r,context:n})}onError(e){const{callback:t,opaque:A}=this;c(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:A})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,A)=>{upgrade.call(this,e,((e,s)=>e?A(e):t(s)))}))}try{const A=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},A)}catch(A){if(typeof t!=="function"){throw A}const s=e&&e.opaque;queueMicrotask((()=>t(A,{opaque:s})))}}e.exports=upgrade},6615:(e,t,A)=>{"use strict";e.exports.request=A(4043);e.exports.stream=A(3560);e.exports.pipeline=A(6862);e.exports.upgrade=A(1882);e.exports.connect=A(4660)},9927:(e,t,A)=>{"use strict";const s=A(2613);const{Readable:r}=A(2203);const{RequestAbortedError:n,NotSupportedError:i,InvalidArgumentError:o}=A(8707);const a=A(3440);const{ReadableStreamFrom:c,toUSVString:l}=A(3440);let u;const g=Symbol("kConsume");const h=Symbol("kReading");const E=Symbol("kBody");const f=Symbol("abort");const d=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends r{constructor({resume:e,abort:t,contentType:A="",highWaterMark:s=64*1024}){super({autoDestroy:true,read:e,highWaterMark:s});this._readableState.dataEmitted=false;this[f]=t;this[g]=null;this[E]=null;this[d]=A;this[h]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new n}if(e){this[f]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[h]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const A=super.off(e,...t);if(e==="data"||e==="readable"){this[h]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return A}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[g]&&e!==null&&this.readableLength===0){consumePush(this[g],e);return this[h]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return a.isDisturbed(this)}get body(){if(!this[E]){this[E]=c(this);if(this[g]){this[E].getReader();s(this[E].locked)}}return this[E]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const A=e&&e.signal;if(A){try{if(typeof A!=="object"||!("aborted"in A)){throw new o("signal must be an AbortSignal")}a.throwIfAborted(A)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,s)=>{const r=A?a.addAbortListener(A,(()=>{this.destroy()})):noop;this.on("close",(function(){r();if(A&&A.aborted){s(A.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[E]&&e[E].locked===true||e[g]}function isUnusable(e){return a.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}s(!e[g]);return new Promise(((A,s)=>{e[g]={type:t,stream:e,resolve:A,reject:s,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[g],e)})).on("close",(function(){if(this[g].body!==null){consumeFinish(this[g],new n)}}));process.nextTick(consumeStart,e[g])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const A of t.buffer){consumePush(e,A)}if(t.endEmitted){consumeEnd(this[g])}else{e.stream.on("end",(function(){consumeEnd(this[g])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:s,resolve:r,stream:n,length:i}=e;try{if(t==="text"){r(l(Buffer.concat(s)))}else if(t==="json"){r(JSON.parse(Buffer.concat(s)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const A of s){e.set(A,t);t+=A.byteLength}r(e.buffer)}else if(t==="blob"){if(!u){u=A(181).Blob}r(new u(s,{type:n[d]}))}consumeFinish(e)}catch(e){n.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},7655:(e,t,A)=>{const s=A(2613);const{ResponseStatusCodeError:r}=A(8707);const{toUSVString:n}=A(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:A,statusCode:i,statusMessage:o,headers:a}){s(t);let c=[];let l=0;for await(const e of t){c.push(e);l+=e.length;if(l>128*1024){c=null;break}}if(i===204||!A||!c){process.nextTick(e,new r(`Response status code ${i}${o?`: ${o}`:""}`,i,a));return}try{if(A.startsWith("application/json")){const t=JSON.parse(n(Buffer.concat(c)));process.nextTick(e,new r(`Response status code ${i}${o?`: ${o}`:""}`,i,a,t));return}if(A.startsWith("text/")){const t=n(Buffer.concat(c));process.nextTick(e,new r(`Response status code ${i}${o?`: ${o}`:""}`,i,a,t));return}}catch(e){}process.nextTick(e,new r(`Response status code ${i}${o?`: ${o}`:""}`,i,a))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},1093:(e,t,A)=>{"use strict";const{BalancedPoolMissingUpstreamError:s,InvalidArgumentError:r}=A(8707);const{PoolBase:n,kClients:i,kNeedDrain:o,kAddClient:a,kRemoveClient:c,kGetDispatcher:l}=A(8640);const u=A(5076);const{kUrl:g,kInterceptors:h}=A(6443);const{parseOrigin:E}=A(3440);const f=Symbol("factory");const d=Symbol("options");const C=Symbol("kGreatestCommonDivisor");const Q=Symbol("kCurrentWeight");const I=Symbol("kIndex");const B=Symbol("kWeight");const p=Symbol("kMaxWeightPerServer");const y=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new u(e,t)}class BalancedPool extends n{constructor(e=[],{factory:t=defaultFactory,...A}={}){super();this[d]=A;this[I]=-1;this[Q]=0;this[p]=this[d].maxWeightPerServer||100;this[y]=this[d].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new r("factory must be a function.")}this[h]=A.interceptors&&A.interceptors.BalancedPool&&Array.isArray(A.interceptors.BalancedPool)?A.interceptors.BalancedPool:[];this[f]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=E(e).origin;if(this[i].find((e=>e[g].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const A=this[f](t,Object.assign({},this[d]));this[a](A);A.on("connect",(()=>{A[B]=Math.min(this[p],A[B]+this[y])}));A.on("connectionError",(()=>{A[B]=Math.max(1,A[B]-this[y]);this._updateBalancedPoolStats()}));A.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){A[B]=Math.max(1,A[B]-this[y]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[B]=this[p]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[C]=this[i].map((e=>e[B])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=E(e).origin;const A=this[i].find((e=>e[g].origin===t&&e.closed!==true&&e.destroyed!==true));if(A){this[c](A)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[g].origin))}[l](){if(this[i].length===0){throw new s}const e=this[i].find((e=>!e[o]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[o])).reduce(((e,t)=>e&&t),true);if(t){return}let A=0;let r=this[i].findIndex((e=>!e[o]));while(A++this[i][r][B]&&!e[o]){r=this[I]}if(this[I]===0){this[Q]=this[Q]-this[C];if(this[Q]<=0){this[Q]=this[p]}}if(e[B]>=this[Q]&&!e[o]){return e}}this[Q]=this[i][r][B];this[I]=r;return this[i][r]}}e.exports=BalancedPool},479:(e,t,A)=>{"use strict";const{kConstruct:s}=A(296);const{urlEquals:r,fieldValues:n}=A(3993);const{kEnumerableProperty:i,isDisturbed:o}=A(3440);const{kHeadersList:a}=A(6443);const{webidl:c}=A(4222);const{Response:l,cloneResponse:u}=A(8676);const{Request:g}=A(5194);const{kState:h,kHeaders:E,kGuard:f,kRealm:d}=A(9710);const{fetching:C}=A(2315);const{urlIsHttpHttpsScheme:Q,createDeferredPromise:I,readAllBytes:B}=A(5523);const p=A(2613);const{getGlobalDispatcher:y}=A(2581);class Cache{#e;constructor(){if(arguments[0]!==s){c.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);const A=await this.matchAll(e,t);if(A.length===0){return}return A[0]}async matchAll(e=undefined,t={}){c.brandCheck(this,Cache);if(e!==undefined)e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);let A=null;if(e!==undefined){if(e instanceof g){A=e[h];if(A.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){A=new g(e)[h]}}const s=[];if(e===undefined){for(const e of this.#e){s.push(e[1])}}else{const e=this.#t(A,t);for(const t of e){s.push(t[1])}}const r=[];for(const e of s){const t=new l(e.body?.source??null);const A=t[h].body;t[h]=e;t[h].body=A;t[E][a]=e.headersList;t[E][f]="immutable";r.push(t)}return Object.freeze(r)}async add(e){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=c.converters.RequestInfo(e);const t=[e];const A=this.addAll(t);return await A}async addAll(e){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=c.converters["sequence"](e);const t=[];const A=[];for(const t of e){if(typeof t==="string"){continue}const e=t[h];if(!Q(e.url)||e.method!=="GET"){throw c.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const s=[];for(const r of e){const e=new g(r)[h];if(!Q(e.url)){throw c.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";A.push(e);const i=I();s.push(C({request:e,dispatcher:y(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(c.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=n(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(c.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of s){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const r=Promise.all(t);const i=await r;const o=[];let a=0;for(const e of i){const t={type:"put",request:A[a],response:e};o.push(t);a++}const l=I();let u=null;try{this.#A(o)}catch(e){u=e}queueMicrotask((()=>{if(u===null){l.resolve(undefined)}else{l.reject(u)}}));return l.promise}async put(e,t){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=c.converters.RequestInfo(e);t=c.converters.Response(t);let A=null;if(e instanceof g){A=e[h]}else{A=new g(e)[h]}if(!Q(A.url)||A.method!=="GET"){throw c.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const s=t[h];if(s.status===206){throw c.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(s.headersList.contains("vary")){const e=n(s.headersList.get("vary"));for(const t of e){if(t==="*"){throw c.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(s.body&&(o(s.body.stream)||s.body.stream.locked)){throw c.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const r=u(s);const i=I();if(s.body!=null){const e=s.body.stream;const t=e.getReader();B(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const a=[];const l={type:"put",request:A,response:r};a.push(l);const E=await i.promise;if(r.body!=null){r.body.source=E}const f=I();let d=null;try{this.#A(a)}catch(e){d=e}queueMicrotask((()=>{if(d===null){f.resolve()}else{f.reject(d)}}));return f.promise}async delete(e,t={}){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);let A=null;if(e instanceof g){A=e[h];if(A.method!=="GET"&&!t.ignoreMethod){return false}}else{p(typeof e==="string");A=new g(e)[h]}const s=[];const r={type:"delete",request:A,options:t};s.push(r);const n=I();let i=null;let o;try{o=this.#A(s)}catch(e){i=e}queueMicrotask((()=>{if(i===null){n.resolve(!!o?.length)}else{n.reject(i)}}));return n.promise}async keys(e=undefined,t={}){c.brandCheck(this,Cache);if(e!==undefined)e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);let A=null;if(e!==undefined){if(e instanceof g){A=e[h];if(A.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){A=new g(e)[h]}}const s=I();const r=[];if(e===undefined){for(const e of this.#e){r.push(e[0])}}else{const e=this.#t(A,t);for(const t of e){r.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of r){const A=new g("https://a");A[h]=t;A[E][a]=t.headersList;A[E][f]="immutable";A[d]=t.client;e.push(A)}s.resolve(Object.freeze(e))}));return s.promise}#A(e){const t=this.#e;const A=[...t];const s=[];const r=[];try{for(const A of e){if(A.type!=="delete"&&A.type!=="put"){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(A.type==="delete"&&A.response!=null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(A.request,A.options,s).length){throw new DOMException("???","InvalidStateError")}let e;if(A.type==="delete"){e=this.#t(A.request,A.options);if(e.length===0){return[]}for(const A of e){const e=t.indexOf(A);p(e!==-1);t.splice(e,1)}}else if(A.type==="put"){if(A.response==null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const r=A.request;if(!Q(r.url)){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(r.method!=="GET"){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(A.options!=null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(A.request);for(const A of e){const e=t.indexOf(A);p(e!==-1);t.splice(e,1)}t.push([A.request,A.response]);s.push([A.request,A.response])}r.push([A.request,A.response])}return r}catch(e){this.#e.length=0;this.#e=A;throw e}}#t(e,t,A){const s=[];const r=A??this.#e;for(const A of r){const[r,n]=A;if(this.#s(e,r,n,t)){s.push(A)}}return s}#s(e,t,A=null,s){const i=new URL(e.url);const o=new URL(t.url);if(s?.ignoreSearch){o.search="";i.search=""}if(!r(i,o,true)){return false}if(A==null||s?.ignoreVary||!A.headersList.contains("vary")){return true}const a=n(A.headersList.get("vary"));for(const A of a){if(A==="*"){return false}const s=t.headersList.get(A);const r=e.headersList.get(A);if(s!==r){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const m=[{key:"ignoreSearch",converter:c.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:c.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:c.converters.boolean,defaultValue:false}];c.converters.CacheQueryOptions=c.dictionaryConverter(m);c.converters.MultiCacheQueryOptions=c.dictionaryConverter([...m,{key:"cacheName",converter:c.converters.DOMString}]);c.converters.Response=c.interfaceConverter(l);c.converters["sequence"]=c.sequenceConverter(c.converters.RequestInfo);e.exports={Cache:Cache}},4738:(e,t,A)=>{"use strict";const{kConstruct:s}=A(296);const{Cache:r}=A(479);const{webidl:n}=A(4222);const{kEnumerableProperty:i}=A(3440);class CacheStorage{#r=new Map;constructor(){if(arguments[0]!==s){n.illegalConstructor()}}async match(e,t={}){n.brandCheck(this,CacheStorage);n.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=n.converters.RequestInfo(e);t=n.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#r.has(t.cacheName)){const A=this.#r.get(t.cacheName);const n=new r(s,A);return await n.match(e,t)}}else{for(const A of this.#r.values()){const n=new r(s,A);const i=await n.match(e,t);if(i!==undefined){return i}}}}async has(e){n.brandCheck(this,CacheStorage);n.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=n.converters.DOMString(e);return this.#r.has(e)}async open(e){n.brandCheck(this,CacheStorage);n.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=n.converters.DOMString(e);if(this.#r.has(e)){const t=this.#r.get(e);return new r(s,t)}const t=[];this.#r.set(e,t);return new r(s,t)}async delete(e){n.brandCheck(this,CacheStorage);n.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=n.converters.DOMString(e);return this.#r.delete(e)}async keys(){n.brandCheck(this,CacheStorage);const e=this.#r.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},296:(e,t,A)=>{"use strict";e.exports={kConstruct:A(6443).kConstruct}},3993:(e,t,A)=>{"use strict";const s=A(2613);const{URLSerializer:r}=A(4322);const{isValidHeaderName:n}=A(5523);function urlEquals(e,t,A=false){const s=r(e,A);const n=r(t,A);return s===n}function fieldValues(e){s(e!==null);const t=[];for(let A of e.split(",")){A=A.trim();if(!A.length){continue}else if(!n(A)){continue}t.push(A)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},6197:(e,t,A)=>{"use strict";const s=A(2613);const r=A(9278);const n=A(8611);const{pipeline:i}=A(2203);const o=A(3440);const a=A(8804);const c=A(4655);const l=A(1);const{RequestContentLengthMismatchError:u,ResponseContentLengthMismatchError:g,InvalidArgumentError:h,RequestAbortedError:E,HeadersTimeoutError:f,HeadersOverflowError:d,SocketError:C,InformationalError:Q,BodyTimeoutError:I,HTTPParserError:B,ResponseExceededMaxSizeError:p,ClientDestroyedError:y}=A(8707);const m=A(9136);const{kUrl:w,kReset:b,kServerName:R,kClient:k,kBusy:S,kParser:D,kConnect:N,kBlocking:F,kResuming:v,kRunning:L,kPending:M,kSize:U,kWriting:T,kQueue:O,kConnected:Y,kConnecting:x,kNeedDrain:G,kNoRef:J,kKeepAliveDefaultTimeout:H,kHostHeader:P,kPendingIdx:V,kRunningIdx:_,kError:q,kPipelining:W,kSocket:j,kKeepAliveTimeoutValue:K,kMaxHeadersSize:X,kKeepAliveMaxTimeout:$,kKeepAliveTimeoutThreshold:Z,kHeadersTimeout:z,kBodyTimeout:ee,kStrictContentLength:te,kConnector:Ae,kMaxRedirections:se,kMaxRequests:re,kCounter:ne,kClose:ie,kDestroy:oe,kDispatch:ae,kInterceptors:ce,kLocalAddress:le,kMaxResponseSize:ue,kHTTPConnVersion:ge,kHost:he,kHTTP2Session:Ee,kHTTP2SessionState:fe,kHTTP2BuildRequest:de,kHTTP2CopyHeaders:Ce,kHTTP1BuildRequest:Qe}=A(6443);let Ie;try{Ie=A(5675)}catch{Ie={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Be,HTTP2_HEADER_METHOD:pe,HTTP2_HEADER_PATH:ye,HTTP2_HEADER_SCHEME:me,HTTP2_HEADER_CONTENT_LENGTH:we,HTTP2_HEADER_EXPECT:be,HTTP2_HEADER_STATUS:Re}}=Ie;let ke=false;const Se=Buffer[Symbol.species];const De=Symbol("kClosedResolve");const Ne={};try{const e=A(1637);Ne.sendHeaders=e.channel("undici:client:sendHeaders");Ne.beforeConnect=e.channel("undici:client:beforeConnect");Ne.connectError=e.channel("undici:client:connectError");Ne.connected=e.channel("undici:client:connected")}catch{Ne.sendHeaders={hasSubscribers:false};Ne.beforeConnect={hasSubscribers:false};Ne.connectError={hasSubscribers:false};Ne.connected={hasSubscribers:false}}class Client extends l{constructor(e,{interceptors:t,maxHeaderSize:A,headersTimeout:s,socketTimeout:i,requestTimeout:a,connectTimeout:c,bodyTimeout:l,idleTimeout:u,keepAlive:g,keepAliveTimeout:E,maxKeepAliveTimeout:f,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:C,socketPath:Q,pipelining:I,tls:B,strictContentLength:p,maxCachedSessions:y,maxRedirections:b,connect:k,maxRequestsPerClient:S,localAddress:D,maxResponseSize:N,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:L,allowH2:M,maxConcurrentStreams:U}={}){super();if(g!==undefined){throw new h("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new h("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(a!==undefined){throw new h("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(u!==undefined){throw new h("unsupported idleTimeout, use keepAliveTimeout instead")}if(f!==undefined){throw new h("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(A!=null&&!Number.isFinite(A)){throw new h("invalid maxHeaderSize")}if(Q!=null&&typeof Q!=="string"){throw new h("invalid socketPath")}if(c!=null&&(!Number.isFinite(c)||c<0)){throw new h("invalid connectTimeout")}if(E!=null&&(!Number.isFinite(E)||E<=0)){throw new h("invalid keepAliveTimeout")}if(d!=null&&(!Number.isFinite(d)||d<=0)){throw new h("invalid keepAliveMaxTimeout")}if(C!=null&&!Number.isFinite(C)){throw new h("invalid keepAliveTimeoutThreshold")}if(s!=null&&(!Number.isInteger(s)||s<0)){throw new h("headersTimeout must be a positive integer or zero")}if(l!=null&&(!Number.isInteger(l)||l<0)){throw new h("bodyTimeout must be a positive integer or zero")}if(k!=null&&typeof k!=="function"&&typeof k!=="object"){throw new h("connect must be a function or an object")}if(b!=null&&(!Number.isInteger(b)||b<0)){throw new h("maxRedirections must be a positive number")}if(S!=null&&(!Number.isInteger(S)||S<0)){throw new h("maxRequestsPerClient must be a positive number")}if(D!=null&&(typeof D!=="string"||r.isIP(D)===0)){throw new h("localAddress must be valid string IP address")}if(N!=null&&(!Number.isInteger(N)||N<-1)){throw new h("maxResponseSize must be a positive number")}if(L!=null&&(!Number.isInteger(L)||L<-1)){throw new h("autoSelectFamilyAttemptTimeout must be a positive number")}if(M!=null&&typeof M!=="boolean"){throw new h("allowH2 must be a valid boolean value")}if(U!=null&&(typeof U!=="number"||U<1)){throw new h("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof k!=="function"){k=m({...B,maxCachedSessions:y,allowH2:M,socketPath:Q,timeout:c,...o.nodeHasAutoSelectFamily&&F?{autoSelectFamily:F,autoSelectFamilyAttemptTimeout:L}:undefined,...k})}this[ce]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[ve({maxRedirections:b})];this[w]=o.parseOrigin(e);this[Ae]=k;this[j]=null;this[W]=I!=null?I:1;this[X]=A||n.maxHeaderSize;this[H]=E==null?4e3:E;this[$]=d==null?6e5:d;this[Z]=C==null?1e3:C;this[K]=this[H];this[R]=null;this[le]=D!=null?D:null;this[v]=0;this[G]=0;this[P]=`host: ${this[w].hostname}${this[w].port?`:${this[w].port}`:""}\r\n`;this[ee]=l!=null?l:3e5;this[z]=s!=null?s:3e5;this[te]=p==null?true:p;this[se]=b;this[re]=S;this[De]=null;this[ue]=N>-1?N:-1;this[ge]="h1";this[Ee]=null;this[fe]=!M?null:{openStreams:0,maxConcurrentStreams:U!=null?U:100};this[he]=`${this[w].hostname}${this[w].port?`:${this[w].port}`:""}`;this[O]=[];this[_]=0;this[V]=0}get pipelining(){return this[W]}set pipelining(e){this[W]=e;resume(this,true)}get[M](){return this[O].length-this[V]}get[L](){return this[V]-this[_]}get[U](){return this[O].length-this[_]}get[Y](){return!!this[j]&&!this[x]&&!this[j].destroyed}get[S](){const e=this[j];return e&&(e[b]||e[T]||e[F])||this[U]>=(this[W]||1)||this[M]>0}[N](e){connect(this);this.once("connect",e)}[ae](e,t){const A=e.origin||this[w].origin;const s=this[ge]==="h2"?c[de](A,e,t):c[Qe](A,e,t);this[O].push(s);if(this[v]){}else if(o.bodyLength(s.body)==null&&o.isIterable(s.body)){this[v]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[v]&&this[G]!==2&&this[S]){this[G]=2}return this[G]<2}async[ie](){return new Promise((e=>{if(!this[U]){e(null)}else{this[De]=e}}))}async[oe](e){return new Promise((t=>{const A=this[O].splice(this[V]);for(let t=0;t{if(this[De]){this[De]();this[De]=null}t()};if(this[Ee]!=null){o.destroy(this[Ee],e);this[Ee]=null;this[fe]=null}if(!this[j]){queueMicrotask(callback)}else{o.destroy(this[j].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){s(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[j][q]=e;onError(this[k],e)}function onHttp2FrameError(e,t,A){const s=new Q(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(A===0){this[j][q]=s;onError(this[k],s)}}function onHttp2SessionEnd(){o.destroy(this,new C("other side closed"));o.destroy(this[j],new C("other side closed"))}function onHTTP2GoAway(e){const t=this[k];const A=new Q(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[j]=null;t[Ee]=null;if(t.destroyed){s(this[M]===0);const e=t[O].splice(t[_]);for(let t=0;t0){const e=t[O][t[_]];t[O][t[_]++]=null;errorRequest(t,e,A)}t[V]=t[_];s(t[L]===0);t.emit("disconnect",t[w],[t],A);resume(t)}const Fe=A(2824);const ve=A(4415);const Le=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?A(3870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(A(3434),"base64"))}catch(s){t=await WebAssembly.compile(Buffer.from(e||A(3870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,A)=>0,wasm_on_status:(e,t,A)=>{s.strictEqual(Te.ptr,e);const r=t-xe+Oe.byteOffset;return Te.onStatus(new Se(Oe.buffer,r,A))||0},wasm_on_message_begin:e=>{s.strictEqual(Te.ptr,e);return Te.onMessageBegin()||0},wasm_on_header_field:(e,t,A)=>{s.strictEqual(Te.ptr,e);const r=t-xe+Oe.byteOffset;return Te.onHeaderField(new Se(Oe.buffer,r,A))||0},wasm_on_header_value:(e,t,A)=>{s.strictEqual(Te.ptr,e);const r=t-xe+Oe.byteOffset;return Te.onHeaderValue(new Se(Oe.buffer,r,A))||0},wasm_on_headers_complete:(e,t,A,r)=>{s.strictEqual(Te.ptr,e);return Te.onHeadersComplete(t,Boolean(A),Boolean(r))||0},wasm_on_body:(e,t,A)=>{s.strictEqual(Te.ptr,e);const r=t-xe+Oe.byteOffset;return Te.onBody(new Se(Oe.buffer,r,A))||0},wasm_on_message_complete:e=>{s.strictEqual(Te.ptr,e);return Te.onMessageComplete()||0}}})}let Me=null;let Ue=lazyllhttp();Ue.catch();let Te=null;let Oe=null;let Ye=0;let xe=null;const Ge=1;const Je=2;const He=3;class Parser{constructor(e,t,{exports:A}){s(Number.isFinite(e[X])&&e[X]>0);this.llhttp=A;this.ptr=this.llhttp.llhttp_alloc(Fe.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[X];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[ue]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){a.clearTimeout(this.timeout);if(e){this.timeout=a.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}s(this.ptr!=null);s(Te==null);this.llhttp.llhttp_resume(this.ptr);s(this.timeoutType===Je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||Le);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){s(this.ptr!=null);s(Te==null);s(!this.paused);const{socket:t,llhttp:A}=this;if(e.length>Ye){if(xe){A.free(xe)}Ye=Math.ceil(e.length/4096)*4096;xe=A.malloc(Ye)}new Uint8Array(A.memory.buffer,xe,Ye).set(e);try{let s;try{Oe=e;Te=this;s=A.llhttp_execute(this.ptr,xe,e.length)}catch(e){throw e}finally{Te=null;Oe=null}const r=A.llhttp_get_error_pos(this.ptr)-xe;if(s===Fe.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(r))}else if(s===Fe.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(r))}else if(s!==Fe.ERROR.OK){const t=A.llhttp_get_error_reason(this.ptr);let n="";if(t){const e=new Uint8Array(A.memory.buffer,t).indexOf(0);n="Response does not match the HTTP/1.1 protocol ("+Buffer.from(A.memory.buffer,t,e).toString()+")"}throw new B(n,Fe.ERROR[s],e.slice(r))}}catch(e){o.destroy(t,e)}}destroy(){s(this.ptr!=null);s(Te==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;a.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const A=t[O][t[_]];if(!A){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const A=this.headers[t-2];if(A.length===10&&A.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(A.length===10&&A.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(A.length===14&&A.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){o.destroy(this.socket,new d)}}onUpgrade(e){const{upgrade:t,client:A,socket:r,headers:n,statusCode:i}=this;s(t);const a=A[O][A[_]];s(a);s(!r.destroyed);s(r===A[j]);s(!this.paused);s(a.upgrade||a.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;s(this.headers.length%2===0);this.headers=[];this.headersSize=0;r.unshift(e);r[D].destroy();r[D]=null;r[k]=null;r[q]=null;r.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);A[j]=null;A[O][A[_]++]=null;A.emit("disconnect",A[w],[A],new Q("upgrade"));try{a.onUpgrade(i,n,r)}catch(e){o.destroy(r,e)}resume(A)}onHeadersComplete(e,t,A){const{client:r,socket:n,headers:i,statusText:a}=this;if(n.destroyed){return-1}const c=r[O][r[_]];if(!c){return-1}s(!this.upgrade);s(this.statusCode<200);if(e===100){o.destroy(n,new C("bad response",o.getSocketInfo(n)));return-1}if(t&&!c.upgrade){o.destroy(n,new C("bad upgrade",o.getSocketInfo(n)));return-1}s.strictEqual(this.timeoutType,Ge);this.statusCode=e;this.shouldKeepAlive=A||c.method==="HEAD"&&!n[b]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=c.bodyTimeout!=null?c.bodyTimeout:r[ee];this.setTimeout(e,Je)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(c.method==="CONNECT"){s(r[L]===1);this.upgrade=true;return 2}if(t){s(r[L]===1);this.upgrade=true;return 2}s(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&r[W]){const e=this.keepAlive?o.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-r[Z],r[$]);if(t<=0){n[b]=true}else{r[K]=t}}else{r[K]=r[H]}}else{n[b]=true}const l=c.onHeaders(e,i,this.resume,a)===false;if(c.aborted){return-1}if(c.method==="HEAD"){return 1}if(e<200){return 1}if(n[F]){n[F]=false;resume(r)}return l?Fe.ERROR.PAUSED:0}onBody(e){const{client:t,socket:A,statusCode:r,maxResponseSize:n}=this;if(A.destroyed){return-1}const i=t[O][t[_]];s(i);s.strictEqual(this.timeoutType,Je);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}s(r>=200);if(n>-1&&this.bytesRead+e.length>n){o.destroy(A,new p);return-1}this.bytesRead+=e.length;if(i.onData(e)===false){return Fe.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:A,upgrade:r,headers:n,contentLength:i,bytesRead:a,shouldKeepAlive:c}=this;if(t.destroyed&&(!A||c)){return-1}if(r){return}const l=e[O][e[_]];s(l);s(A>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";s(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(A<200){return}if(l.method!=="HEAD"&&i&&a!==parseInt(i,10)){o.destroy(t,new g);return-1}l.onComplete(n);e[O][e[_]++]=null;if(t[T]){s.strictEqual(e[L],0);o.destroy(t,new Q("reset"));return Fe.ERROR.PAUSED}else if(!c){o.destroy(t,new Q("reset"));return Fe.ERROR.PAUSED}else if(t[b]&&e[L]===0){o.destroy(t,new Q("reset"));return Fe.ERROR.PAUSED}else if(e[W]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:A,client:r}=e;if(A===Ge){if(!t[T]||t.writableNeedDrain||r[L]>1){s(!e.paused,"cannot be paused while waiting for headers");o.destroy(t,new f)}}else if(A===Je){if(!e.paused){o.destroy(t,new I)}}else if(A===He){s(r[L]===0&&r[K]);o.destroy(t,new Q("socket idle timeout"))}}function onSocketReadable(){const{[D]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[k]:t,[D]:A}=this;s(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[ge]!=="h2"){if(e.code==="ECONNRESET"&&A.statusCode&&!A.shouldKeepAlive){A.onMessageComplete();return}}this[q]=e;onError(this[k],e)}function onError(e,t){if(e[L]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){s(e[V]===e[_]);const A=e[O].splice(e[_]);for(let s=0;s0&&A.code!=="UND_ERR_INFO"){const t=e[O][e[_]];e[O][e[_]++]=null;errorRequest(e,t,A)}e[V]=e[_];s(e[L]===0);e.emit("disconnect",e[w],[e],A);resume(e)}async function connect(e){s(!e[x]);s(!e[j]);let{host:t,hostname:A,protocol:n,port:i}=e[w];if(A[0]==="["){const e=A.indexOf("]");s(e!==-1);const t=A.substring(1,e);s(r.isIP(t));A=t}e[x]=true;if(Ne.beforeConnect.hasSubscribers){Ne.beforeConnect.publish({connectParams:{host:t,hostname:A,protocol:n,port:i,servername:e[R],localAddress:e[le]},connector:e[Ae]})}try{const r=await new Promise(((s,r)=>{e[Ae]({host:t,hostname:A,protocol:n,port:i,servername:e[R],localAddress:e[le]},((e,t)=>{if(e){r(e)}else{s(t)}}))}));if(e.destroyed){o.destroy(r.on("error",(()=>{})),new y);return}e[x]=false;s(r);const a=r.alpnProtocol==="h2";if(a){if(!ke){ke=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Ie.connect(e[w],{createConnection:()=>r,peerMaxConcurrentStreams:e[fe].maxConcurrentStreams});e[ge]="h2";t[k]=e;t[j]=r;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[Ee]=t;r[Ee]=t}else{if(!Me){Me=await Ue;Ue=null}r[J]=false;r[T]=false;r[b]=false;r[F]=false;r[D]=new Parser(e,r,Me)}r[ne]=0;r[re]=e[re];r[k]=e;r[q]=null;r.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[j]=r;if(Ne.connected.hasSubscribers){Ne.connected.publish({connectParams:{host:t,hostname:A,protocol:n,port:i,servername:e[R],localAddress:e[le]},connector:e[Ae],socket:r})}e.emit("connect",e[w],[e])}catch(r){if(e.destroyed){return}e[x]=false;if(Ne.connectError.hasSubscribers){Ne.connectError.publish({connectParams:{host:t,hostname:A,protocol:n,port:i,servername:e[R],localAddress:e[le]},connector:e[Ae],error:r})}if(r.code==="ERR_TLS_CERT_ALTNAME_INVALID"){s(e[L]===0);while(e[M]>0&&e[O][e[V]].servername===e[R]){const t=e[O][e[V]++];errorRequest(e,t,r)}}else{onError(e,r)}e.emit("connectionError",e[w],[e],r)}resume(e)}function emitDrain(e){e[G]=0;e.emit("drain",e[w],[e])}function resume(e,t){if(e[v]===2){return}e[v]=2;_resume(e,t);e[v]=0;if(e[_]>256){e[O].splice(0,e[_]);e[V]-=e[_];e[_]=0}}function _resume(e,t){while(true){if(e.destroyed){s(e[M]===0);return}if(e[De]&&!e[U]){e[De]();e[De]=null;return}const A=e[j];if(A&&!A.destroyed&&A.alpnProtocol!=="h2"){if(e[U]===0){if(!A[J]&&A.unref){A.unref();A[J]=true}}else if(A[J]&&A.ref){A.ref();A[J]=false}if(e[U]===0){if(A[D].timeoutType!==He){A[D].setTimeout(e[K],He)}}else if(e[L]>0&&A[D].statusCode<200){if(A[D].timeoutType!==Ge){const t=e[O][e[_]];const s=t.headersTimeout!=null?t.headersTimeout:e[z];A[D].setTimeout(s,Ge)}}}if(e[S]){e[G]=2}else if(e[G]===2){if(t){e[G]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[M]===0){return}if(e[L]>=(e[W]||1)){return}const r=e[O][e[V]];if(e[w].protocol==="https:"&&e[R]!==r.servername){if(e[L]>0){return}e[R]=r.servername;if(A&&A.servername!==r.servername){o.destroy(A,new Q("servername changed"));return}}if(e[x]){return}if(!A&&!e[Ee]){connect(e);return}if(A.destroyed||A[T]||A[b]||A[F]){return}if(e[L]>0&&!r.idempotent){return}if(e[L]>0&&(r.upgrade||r.method==="CONNECT")){return}if(e[L]>0&&o.bodyLength(r.body)!==0&&(o.isStream(r.body)||o.isAsyncIterable(r.body))){return}if(!r.aborted&&write(e,r)){e[V]++}else{e[O].splice(e[V],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[ge]==="h2"){writeH2(e,e[Ee],t);return}const{body:A,method:r,path:n,host:i,upgrade:a,headers:c,blocking:l,reset:g}=t;const h=r==="PUT"||r==="POST"||r==="PATCH";if(A&&typeof A.read==="function"){A.read(0)}const f=o.bodyLength(A);let d=f;if(d===null){d=t.contentLength}if(d===0&&!h){d=null}if(shouldSendContentLength(r)&&d>0&&t.contentLength!==null&&t.contentLength!==d){if(e[te]){errorRequest(e,t,new u);return false}process.emitWarning(new u)}const C=e[j];try{t.onConnect((A=>{if(t.aborted||t.completed){return}errorRequest(e,t,A||new E);o.destroy(C,new Q("aborted"))}))}catch(A){errorRequest(e,t,A)}if(t.aborted){return false}if(r==="HEAD"){C[b]=true}if(a||r==="CONNECT"){C[b]=true}if(g!=null){C[b]=g}if(e[re]&&C[ne]++>=e[re]){C[b]=true}if(l){C[F]=true}let I=`${r} ${n} HTTP/1.1\r\n`;if(typeof i==="string"){I+=`host: ${i}\r\n`}else{I+=e[P]}if(a){I+=`connection: upgrade\r\nupgrade: ${a}\r\n`}else if(e[W]&&!C[b]){I+="connection: keep-alive\r\n"}else{I+="connection: close\r\n"}if(c){I+=c}if(Ne.sendHeaders.hasSubscribers){Ne.sendHeaders.publish({request:t,headers:I,socket:C})}if(!A||f===0){if(d===0){C.write(`${I}content-length: 0\r\n\r\n`,"latin1")}else{s(d===null,"no body must not have content length");C.write(`${I}\r\n`,"latin1")}t.onRequestSent()}else if(o.isBuffer(A)){s(d===A.byteLength,"buffer body must have content length");C.cork();C.write(`${I}content-length: ${d}\r\n\r\n`,"latin1");C.write(A);C.uncork();t.onBodySent(A);t.onRequestSent();if(!h){C[b]=true}}else if(o.isBlobLike(A)){if(typeof A.stream==="function"){writeIterable({body:A.stream(),client:e,request:t,socket:C,contentLength:d,header:I,expectsPayload:h})}else{writeBlob({body:A,client:e,request:t,socket:C,contentLength:d,header:I,expectsPayload:h})}}else if(o.isStream(A)){writeStream({body:A,client:e,request:t,socket:C,contentLength:d,header:I,expectsPayload:h})}else if(o.isIterable(A)){writeIterable({body:A,client:e,request:t,socket:C,contentLength:d,header:I,expectsPayload:h})}else{s(false)}return true}function writeH2(e,t,A){const{body:r,method:n,path:i,host:a,upgrade:l,expectContinue:g,signal:h,headers:f}=A;let d;if(typeof f==="string")d=c[Ce](f.trim());else d=f;if(l){errorRequest(e,A,new Error("Upgrade not supported for H2"));return false}try{A.onConnect((t=>{if(A.aborted||A.completed){return}errorRequest(e,A,t||new E)}))}catch(t){errorRequest(e,A,t)}if(A.aborted){return false}let C;const I=e[fe];d[Be]=a||e[he];d[pe]=n;if(n==="CONNECT"){t.ref();C=t.request(d,{endStream:false,signal:h});if(C.id&&!C.pending){A.onUpgrade(null,null,C);++I.openStreams}else{C.once("ready",(()=>{A.onUpgrade(null,null,C);++I.openStreams}))}C.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0)t.unref()}));return true}d[ye]=i;d[me]="https";const B=n==="PUT"||n==="POST"||n==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}let p=o.bodyLength(r);if(p==null){p=A.contentLength}if(p===0||!B){p=null}if(shouldSendContentLength(n)&&p>0&&A.contentLength!=null&&A.contentLength!==p){if(e[te]){errorRequest(e,A,new u);return false}process.emitWarning(new u)}if(p!=null){s(r,"no body must not have content length");d[we]=`${p}`}t.ref();const y=n==="GET"||n==="HEAD";if(g){d[be]="100-continue";C=t.request(d,{endStream:y,signal:h});C.once("continue",writeBodyH2)}else{C=t.request(d,{endStream:y,signal:h});writeBodyH2()}++I.openStreams;C.once("response",(e=>{const{[Re]:t,...s}=e;if(A.onHeaders(Number(t),s,C.resume.bind(C),"")===false){C.pause()}}));C.once("end",(()=>{A.onComplete([])}));C.on("data",(e=>{if(A.onData(e)===false){C.pause()}}));C.once("close",(()=>{I.openStreams-=1;if(I.openStreams===0){t.unref()}}));C.once("error",(function(t){if(e[Ee]&&!e[Ee].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;o.destroy(C,t)}}));C.once("frameError",((t,s)=>{const r=new Q(`HTTP/2: "frameError" received - type ${t}, code ${s}`);errorRequest(e,A,r);if(e[Ee]&&!e[Ee].destroyed&&!this.closed&&!this.destroyed){I.streams-=1;o.destroy(C,r)}}));return true;function writeBodyH2(){if(!r){A.onRequestSent()}else if(o.isBuffer(r)){s(p===r.byteLength,"buffer body must have content length");C.cork();C.write(r);C.uncork();C.end();A.onBodySent(r);A.onRequestSent()}else if(o.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({client:e,request:A,contentLength:p,h2stream:C,expectsPayload:B,body:r.stream(),socket:e[j],header:""})}else{writeBlob({body:r,client:e,request:A,contentLength:p,expectsPayload:B,h2stream:C,header:"",socket:e[j]})}}else if(o.isStream(r)){writeStream({body:r,client:e,request:A,contentLength:p,expectsPayload:B,socket:e[j],h2stream:C,header:""})}else if(o.isIterable(r)){writeIterable({body:r,client:e,request:A,contentLength:p,expectsPayload:B,header:"",h2stream:C,socket:e[j]})}else{s(false)}}}function writeStream({h2stream:e,body:t,client:A,request:r,socket:n,contentLength:a,header:c,expectsPayload:l}){s(a!==0||A[L]===0,"stream body cannot be pipelined");if(A[ge]==="h2"){const h=i(t,e,(A=>{if(A){o.destroy(t,A);o.destroy(e,A)}else{r.onRequestSent()}}));h.on("data",onPipeData);h.once("end",(()=>{h.removeListener("data",onPipeData);o.destroy(h)}));function onPipeData(e){r.onBodySent(e)}return}let u=false;const g=new AsyncWriter({socket:n,request:r,contentLength:a,client:A,expectsPayload:l,header:c});const onData=function(e){if(u){return}try{if(!g.write(e)&&this.pause){this.pause()}}catch(e){o.destroy(this,e)}};const onDrain=function(){if(u){return}if(t.resume){t.resume()}};const onAbort=function(){if(u){return}const e=new E;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(u){return}u=true;s(n.destroyed||n[T]&&A[L]<=1);n.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{g.end()}catch(t){e=t}}g.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){o.destroy(t,e)}else{o.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}n.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:A,request:r,socket:n,contentLength:i,header:a,expectsPayload:c}){s(i===t.size,"blob body must have content length");const l=A[ge]==="h2";try{if(i!=null&&i!==t.size){throw new u}const s=Buffer.from(await t.arrayBuffer());if(l){e.cork();e.write(s);e.uncork()}else{n.cork();n.write(`${a}content-length: ${i}\r\n\r\n`,"latin1");n.write(s);n.uncork()}r.onBodySent(s);r.onRequestSent();if(!c){n[b]=true}resume(A)}catch(t){o.destroy(l?e:n,t)}}async function writeIterable({h2stream:e,body:t,client:A,request:r,socket:n,contentLength:i,header:o,expectsPayload:a}){s(i!==0||A[L]===0,"iterator body cannot be pipelined");let c=null;function onDrain(){if(c){const e=c;c=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{s(c===null);if(n[q]){t(n[q])}else{c=e}}));if(A[ge]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const A of t){if(n[q]){throw n[q]}const t=e.write(A);r.onBodySent(A);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{r.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}n.on("close",onDrain).on("drain",onDrain);const l=new AsyncWriter({socket:n,request:r,contentLength:i,client:A,expectsPayload:a,header:o});try{for await(const e of t){if(n[q]){throw n[q]}if(!l.write(e)){await waitForDrain()}}l.end()}catch(e){l.destroy(e)}finally{n.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:A,client:s,expectsPayload:r,header:n}){this.socket=e;this.request=t;this.contentLength=A;this.client=s;this.bytesWritten=0;this.expectsPayload=r;this.header=n;e[T]=true}write(e){const{socket:t,request:A,contentLength:s,client:r,bytesWritten:n,expectsPayload:i,header:o}=this;if(t[q]){throw t[q]}if(t.destroyed){return false}const a=Buffer.byteLength(e);if(!a){return true}if(s!==null&&n+a>s){if(r[te]){throw new u}process.emitWarning(new u)}t.cork();if(n===0){if(!i){t[b]=true}if(s===null){t.write(`${o}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${o}content-length: ${s}\r\n\r\n`,"latin1")}}if(s===null){t.write(`\r\n${a.toString(16)}\r\n`,"latin1")}this.bytesWritten+=a;const c=t.write(e);t.uncork();A.onBodySent(e);if(!c){if(t[D].timeout&&t[D].timeoutType===Ge){if(t[D].timeout.refresh){t[D].timeout.refresh()}}}return c}end(){const{socket:e,contentLength:t,client:A,bytesWritten:s,expectsPayload:r,header:n,request:i}=this;i.onRequestSent();e[T]=false;if(e[q]){throw e[q]}if(e.destroyed){return}if(s===0){if(r){e.write(`${n}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${n}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&s!==t){if(A[te]){throw new u}else{process.emitWarning(new u)}}if(e[D].timeout&&e[D].timeoutType===Ge){if(e[D].timeout.refresh){e[D].timeout.refresh()}}resume(A)}destroy(e){const{socket:t,client:A}=this;t[T]=false;if(e){s(A[L]<=1,"pipeline should only contain this request");o.destroy(t,e)}}}function errorRequest(e,t,A){try{t.onError(A);s(t.aborted)}catch(A){e.emit("error",A)}}e.exports=Client},3194:(e,t,A)=>{"use strict";const{kConnected:s,kSize:r}=A(6443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[s]===0&&this.value[r]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[s]===0&&e[r]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},9237:e=>{"use strict";const t=1024;const A=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:A}},3168:(e,t,A)=>{"use strict";const{parseSetCookie:s}=A(8915);const{stringify:r}=A(3834);const{webidl:n}=A(4222);const{Headers:i}=A(6349);function getCookies(e){n.argumentLengthCheck(arguments,1,{header:"getCookies"});n.brandCheck(e,i,{strict:false});const t=e.get("cookie");const A={};if(!t){return A}for(const e of t.split(";")){const[t,...s]=e.split("=");A[t.trim()]=s.join("=")}return A}function deleteCookie(e,t,A){n.argumentLengthCheck(arguments,2,{header:"deleteCookie"});n.brandCheck(e,i,{strict:false});t=n.converters.DOMString(t);A=n.converters.DeleteCookieAttributes(A);setCookie(e,{name:t,value:"",expires:new Date(0),...A})}function getSetCookies(e){n.argumentLengthCheck(arguments,1,{header:"getSetCookies"});n.brandCheck(e,i,{strict:false});const t=e.getSetCookie();if(!t){return[]}return t.map((e=>s(e)))}function setCookie(e,t){n.argumentLengthCheck(arguments,2,{header:"setCookie"});n.brandCheck(e,i,{strict:false});t=n.converters.Cookie(t);const A=r(t);if(A){e.append("Set-Cookie",r(t))}}n.converters.DeleteCookieAttributes=n.dictionaryConverter([{converter:n.nullableConverter(n.converters.DOMString),key:"path",defaultValue:null},{converter:n.nullableConverter(n.converters.DOMString),key:"domain",defaultValue:null}]);n.converters.Cookie=n.dictionaryConverter([{converter:n.converters.DOMString,key:"name"},{converter:n.converters.DOMString,key:"value"},{converter:n.nullableConverter((e=>{if(typeof e==="number"){return n.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:n.nullableConverter(n.converters["long long"]),key:"maxAge",defaultValue:null},{converter:n.nullableConverter(n.converters.DOMString),key:"domain",defaultValue:null},{converter:n.nullableConverter(n.converters.DOMString),key:"path",defaultValue:null},{converter:n.nullableConverter(n.converters.boolean),key:"secure",defaultValue:null},{converter:n.nullableConverter(n.converters.boolean),key:"httpOnly",defaultValue:null},{converter:n.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:n.sequenceConverter(n.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,A)=>{"use strict";const{maxNameValuePairSize:s,maxAttributeValueSize:r}=A(9237);const{isCTLExcludingHtab:n}=A(3834);const{collectASequenceOfCodePointsFast:i}=A(4322);const o=A(2613);function parseSetCookie(e){if(n(e)){return null}let t="";let A="";let r="";let o="";if(e.includes(";")){const s={position:0};t=i(";",e,s);A=e.slice(s.position)}else{t=e}if(!t.includes("=")){o=t}else{const e={position:0};r=i("=",t,e);o=t.slice(e.position+1)}r=r.trim();o=o.trim();if(r.length+o.length>s){return null}return{name:r,value:o,...parseUnparsedAttributes(A)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}o(e[0]===";");e=e.slice(1);let A="";if(e.includes(";")){A=i(";",e,{position:0});e=e.slice(A.length)}else{A=e;e=""}let s="";let n="";if(A.includes("=")){const e={position:0};s=i("=",A,e);n=A.slice(e.position+1)}else{s=A}s=s.trim();n=n.trim();if(n.length>r){return parseUnparsedAttributes(e,t)}const a=s.toLowerCase();if(a==="expires"){const e=new Date(n);t.expires=e}else if(a==="max-age"){const A=n.charCodeAt(0);if((A<48||A>57)&&n[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(n)){return parseUnparsedAttributes(e,t)}const s=Number(n);t.maxAge=s}else if(a==="domain"){let e=n;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(a==="path"){let e="";if(n.length===0||n[0]!=="/"){e="/"}else{e=n}t.path=e}else if(a==="secure"){t.secure=true}else if(a==="httponly"){t.httpOnly=true}else if(a==="samesite"){let e="Default";const A=n.toLowerCase();if(A.includes("none")){e="None"}if(A.includes("strict")){e="Strict"}if(A.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${s}=${n}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:e=>{"use strict";function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const s=t[e.getUTCDay()];const r=e.getUTCDate().toString().padStart(2,"0");const n=A[e.getUTCMonth()];const i=e.getUTCFullYear();const o=e.getUTCHours().toString().padStart(2,"0");const a=e.getUTCMinutes().toString().padStart(2,"0");const c=e.getUTCSeconds().toString().padStart(2,"0");return`${s}, ${r} ${n} ${i} ${o}:${a}:${c} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const A of e.unparsed){if(!A.includes("=")){throw new Error("Invalid unparsed")}const[e,...s]=A.split("=");t.push(`${e.trim()}=${s.join("=")}`)}return t.join("; ")}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},9136:(e,t,A)=>{"use strict";const s=A(9278);const r=A(2613);const n=A(3440);const{InvalidArgumentError:i,ConnectTimeoutError:o}=A(8707);let a;let c;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){c=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:o,timeout:l,...u}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const g={path:o,...u};const h=new c(t==null?100:t);l=l==null?1e4:l;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:o,port:c,servername:u,localAddress:E,httpSocket:f},d){let C;if(o==="https:"){if(!a){a=A(4756)}u=u||g.servername||n.getServerName(i)||null;const s=u||t;const o=h.get(s)||null;r(s);C=a.connect({highWaterMark:16384,...g,servername:u,session:o,localAddress:E,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:f,port:c||443,host:t});C.on("session",(function(e){h.set(s,e)}))}else{r(!f,"httpSocket can only be sent on TLS update");C=s.connect({highWaterMark:64*1024,...g,localAddress:E,port:c||80,host:t})}if(g.keepAlive==null||g.keepAlive){const e=g.keepAliveInitialDelay===undefined?6e4:g.keepAliveInitialDelay;C.setKeepAlive(true,e)}const Q=setupTimeout((()=>onConnectTimeout(C)),l);C.setNoDelay(true).once(o==="https:"?"secureConnect":"connect",(function(){Q();if(d){const e=d;d=null;e(null,this)}})).on("error",(function(e){Q();if(d){const t=d;d=null;t(e)}}));return C}}function setupTimeout(e,t){if(!t){return()=>{}}let A=null;let s=null;const r=setTimeout((()=>{A=setImmediate((()=>{if(process.platform==="win32"){s=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(r);clearImmediate(A);clearImmediate(s)}}function onConnectTimeout(e){n.destroy(e,new o)}e.exports=buildConnector},735:e=>{"use strict";const t={};const A=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{"use strict";class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,A,s){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=s;this.status=t;this.statusCode=t;this.headers=A}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,A){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=A?A.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:A,data:s}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=s;this.headers=A}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},4655:(e,t,A)=>{"use strict";const{InvalidArgumentError:s,NotSupportedError:r}=A(8707);const n=A(2613);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:o,kHTTP1BuildRequest:a}=A(6443);const c=A(3440);const l=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const u=/[^\t\x20-\x7e\x80-\xff]/;const g=/[^\u0021-\u00ff]/;const h=Symbol("handler");const E={};let f;try{const e=A(1637);E.create=e.channel("undici:request:create");E.bodySent=e.channel("undici:request:bodySent");E.headers=e.channel("undici:request:headers");E.trailers=e.channel("undici:request:trailers");E.error=e.channel("undici:request:error")}catch{E.create={hasSubscribers:false};E.bodySent={hasSubscribers:false};E.headers={hasSubscribers:false};E.trailers={hasSubscribers:false};E.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:r,body:n,headers:i,query:o,idempotent:a,blocking:u,upgrade:d,headersTimeout:C,bodyTimeout:Q,reset:I,throwOnError:B,expectContinue:p},y){if(typeof t!=="string"){throw new s("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&r!=="CONNECT"){throw new s("path must be an absolute URL or start with a slash")}else if(g.exec(t)!==null){throw new s("invalid request path")}if(typeof r!=="string"){throw new s("method must be a string")}else if(l.exec(r)===null){throw new s("invalid request method")}if(d&&typeof d!=="string"){throw new s("upgrade must be a string")}if(C!=null&&(!Number.isFinite(C)||C<0)){throw new s("invalid headersTimeout")}if(Q!=null&&(!Number.isFinite(Q)||Q<0)){throw new s("invalid bodyTimeout")}if(I!=null&&typeof I!=="boolean"){throw new s("invalid reset")}if(p!=null&&typeof p!=="boolean"){throw new s("invalid expectContinue")}this.headersTimeout=C;this.bodyTimeout=Q;this.throwOnError=B===true;this.method=r;this.abort=null;if(n==null){this.body=null}else if(c.isStream(n)){this.body=n;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){c.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(c.isBuffer(n)){this.body=n.byteLength?n:null}else if(ArrayBuffer.isView(n)){this.body=n.buffer.byteLength?Buffer.from(n.buffer,n.byteOffset,n.byteLength):null}else if(n instanceof ArrayBuffer){this.body=n.byteLength?Buffer.from(n):null}else if(typeof n==="string"){this.body=n.length?Buffer.from(n):null}else if(c.isFormDataLike(n)||c.isIterable(n)||c.isBlobLike(n)){this.body=n}else{throw new s("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=d||null;this.path=o?c.buildURL(t,o):t;this.origin=e;this.idempotent=a==null?r==="HEAD"||r==="GET":a;this.blocking=u==null?false:u;this.reset=I==null?null:I;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=p!=null?p:false;if(Array.isArray(i)){if(i.length%2!==0){throw new s("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,A)=>{"use strict";const s=A(2613);const{kDestroyed:r,kBodyUsed:n}=A(6443);const{IncomingMessage:i}=A(8611);const o=A(2203);const a=A(9278);const{InvalidArgumentError:c}=A(8707);const{Blob:l}=A(181);const u=A(9023);const{stringify:g}=A(3480);const{headerNameLowerCasedRecord:h}=A(735);const[E,f]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return l&&e instanceof l||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const A=g(t);if(A){e+="?"+A}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new c("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new c("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new c("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new c("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new c("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new c("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new c("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new c("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let A=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let s=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(A.endsWith("/")){A=A.substring(0,A.length-1)}if(s&&!s.startsWith("/")){s=`/${s}`}e=new URL(A+s)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new c("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");s(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}s.strictEqual(typeof e,"string");const t=getHostname(e);if(a.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[r])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[r]=true}}const d=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(d);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return h[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let A=0;Ae.toString("utf8")))}else{t[s]=e[A+1].toString("utf8")}}else{if(!Array.isArray(r)){r=[r];t[s]=r}r.push(e[A+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let A=false;let s=-1;for(let r=0;r{e.close()}))}else{const t=Buffer.isBuffer(s)?s:Buffer.from(s);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const Q=!!String.prototype.toWellFormed;function toUSVString(e){if(Q){return`${e}`.toWellFormed()}else if(u.toUSVString){return u.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const I=Object.create(null);I.enumerable=true;e.exports={kEnumerableProperty:I,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:E,nodeMinor:f,nodeHasAutoSelectFamily:E>18||E===18&&f>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},1:(e,t,A)=>{"use strict";const s=A(992);const{ClientDestroyedError:r,ClientClosedError:n,InvalidArgumentError:i}=A(8707);const{kDestroy:o,kClose:a,kDispatch:c,kInterceptors:l}=A(6443);const u=Symbol("destroyed");const g=Symbol("closed");const h=Symbol("onDestroyed");const E=Symbol("onClosed");const f=Symbol("Intercepted Dispatch");class DispatcherBase extends s{constructor(){super();this[u]=false;this[h]=null;this[g]=false;this[E]=[]}get destroyed(){return this[u]}get closed(){return this[g]}get interceptors(){return this[l]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[l][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[l]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((A,s)=>A?t(A):e(s)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[u]){queueMicrotask((()=>e(new r,null)));return}if(this[g]){if(this[E]){this[E].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[g]=true;this[E].push(e);const onClosed=()=>{const e=this[E];this[E]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,A)=>{this.destroy(e,((e,s)=>e?A(e):t(s)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[u]){if(this[h]){this[h].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new r}this[u]=true;this[h]=this[h]||[];this[h].push(t);const onDestroyed=()=>{const e=this[h];this[h]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[f](e,t){if(!this[l]||this[l].length===0){this[f]=this[c];return this[c](e,t)}let A=this[c].bind(this);for(let e=this[l].length-1;e>=0;e--){A=this[l][e](A)}this[f]=A;return A(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[u]||this[h]){throw new r}if(this[g]){throw new n}return this[f](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},992:(e,t,A)=>{"use strict";const s=A(4434);class Dispatcher extends s{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,A)=>{"use strict";const s=A(9581);const r=A(3440);const{ReadableStreamFrom:n,isBlobLike:i,isReadableStreamLike:o,readableStreamClose:a,createDeferredPromise:c,fullyReadBody:l}=A(5523);const{FormData:u}=A(3073);const{kState:g}=A(9710);const{webidl:h}=A(4222);const{DOMException:E,structuredClone:f}=A(7326);const{Blob:d,File:C}=A(181);const{kBodyUsed:Q}=A(6443);const I=A(2613);const{isErrored:B}=A(3440);const{isUint8Array:p,isArrayBuffer:y}=A(8253);const{File:m}=A(3041);const{parseMIMEType:w,serializeAMimeType:b}=A(4322);let R;try{const e=A(7598);R=t=>e.randomInt(0,t)}catch{R=e=>Math.floor(Math.random(e))}let k=globalThis.ReadableStream;const S=C??m;const D=new TextEncoder;const N=new TextDecoder;function extractBody(e,t=false){if(!k){k=A(3774).ReadableStream}let s=null;if(e instanceof k){s=e}else if(i(e)){s=e.stream()}else{s=new k({async pull(e){e.enqueue(typeof l==="string"?D.encode(l):l);queueMicrotask((()=>a(e)))},start(){},type:undefined})}I(o(s));let c=null;let l=null;let u=null;let g=null;if(typeof e==="string"){l=e;g="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){l=e.toString();g="application/x-www-form-urlencoded;charset=UTF-8"}else if(y(e)){l=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(r.isFormDataLike(e)){const t=`----formdata-undici-0${`${R(1e11)}`.padStart(11,"0")}`;const A=`--${t}\r\nContent-Disposition: form-data`
/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const s=[];const r=new Uint8Array([13,10]);u=0;let n=false;for(const[t,i]of e){if(typeof i==="string"){const e=D.encode(A+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(i)}\r\n`);s.push(e);u+=e.byteLength}else{const e=D.encode(`${A}; name="${escape(normalizeLinefeeds(t))}"`+(i.name?`; filename="${escape(i.name)}"`:"")+"\r\n"+`Content-Type: ${i.type||"application/octet-stream"}\r\n\r\n`);s.push(e,i,r);if(typeof i.size==="number"){u+=e.byteLength+i.size+r.byteLength}else{n=true}}}const i=D.encode(`--${t}--`);s.push(i);u+=i.byteLength;if(n){u=null}l=e;c=async function*(){for(const e of s){if(e.stream){yield*e.stream()}else{yield e}}};g="multipart/form-data; boundary="+t}else if(i(e)){l=e;u=e.size;if(e.type){g=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(r.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}s=e instanceof k?e:n(e)}if(typeof l==="string"||r.isBuffer(l)){u=Buffer.byteLength(l)}if(c!=null){let t;s=new k({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){const{value:A,done:r}=await t.next();if(r){queueMicrotask((()=>{e.close()}))}else{if(!B(s)){e.enqueue(new Uint8Array(A))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const h={stream:s,source:l,length:u};return[h,g]}function safelyExtractBody(e,t=false){if(!k){k=A(3774).ReadableStream}if(e instanceof k){I(!r.isDisturbed(e),"The body has already been consumed.");I(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,A]=e.stream.tee();const s=f(A,{transfer:[A]});const[,r]=s.tee();e.stream=t;return{stream:r,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(p(e)){yield e}else{const t=e.stream;if(r.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[Q]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new E("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=b(t)}return new d([e],{type:t})}),e)},arrayBuffer(){return specConsumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return specConsumeBody(this,utf8DecodeBytes,e)},json(){return specConsumeBody(this,parseJSONFromBytes,e)},async formData(){h.brandCheck(this,e);throwIfAborted(this[g]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,A]of this.headers)e[t.toLowerCase()]=A;const t=new u;let A;try{A=new s({headers:e,preservePath:true})}catch(e){throw new E(`${e}`,"AbortError")}A.on("field",((e,A)=>{t.append(e,A)}));A.on("file",((e,A,s,r,n)=>{const i=[];if(r==="base64"||r.toLowerCase()==="base64"){let r="";A.on("data",(e=>{r+=e.toString().replace(/[\r\n]/gm,"");const t=r.length-r.length%4;i.push(Buffer.from(r.slice(0,t),"base64"));r=r.slice(t)}));A.on("end",(()=>{i.push(Buffer.from(r,"base64"));t.append(e,new S(i,s,{type:n}))}))}else{A.on("data",(e=>{i.push(e)}));A.on("end",(()=>{t.append(e,new S(i,s,{type:n}))}))}}));const r=new Promise(((e,t)=>{A.on("finish",e);A.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[g].body))A.write(e);A.end();await r;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const A=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[g].body)){if(!p(e)){throw new TypeError("Expected Uint8Array chunk")}t+=A.decode(e,{stream:true})}t+=A.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new u;for(const[A,s]of e){t.append(A,s)}return t}else{await Promise.resolve();throwIfAborted(this[g]);throw h.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,A){h.brandCheck(e,A);throwIfAborted(e[g]);if(bodyUnusable(e[g].body)){throw new TypeError("Body is unusable")}const s=c();const errorSteps=e=>s.reject(e);const successSteps=e=>{try{s.resolve(t(e))}catch(e){errorSteps(e)}};if(e[g].body==null){successSteps(new Uint8Array);return s.promise}await l(e[g].body,successSteps,errorSteps);return s.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||r.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=N.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[g];const A=t.get("content-type");if(A===null){return"failure"}return w(A)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},7326:(e,t,A)=>{"use strict";const{MessageChannel:s,receiveMessageOnPort:r}=A(8167);const n=["GET","HEAD","POST"];const i=new Set(n);const o=[101,204,205,304];const a=[301,302,303,307,308];const c=new Set(a);const l=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const u=new Set(l);const g=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const h=new Set(g);const E=["follow","manual","error"];const f=["GET","HEAD","OPTIONS","TRACE"];const d=new Set(f);const C=["navigate","same-origin","no-cors","cors"];const Q=["omit","same-origin","include"];const I=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const B=["content-encoding","content-language","content-location","content-type","content-length"];const p=["half"];const y=["CONNECT","TRACE","TRACK"];const m=new Set(y);const w=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const b=new Set(w);const R=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let k;const S=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!k){k=new s}k.port1.unref();k.port2.unref();k.port1.postMessage(e,t?.transfer);return r(k.port2).message};e.exports={DOMException:R,structuredClone:S,subresource:w,forbiddenMethods:y,requestBodyHeader:B,referrerPolicy:g,requestRedirect:E,requestMode:C,requestCredentials:Q,requestCache:I,redirectStatus:a,corsSafeListedMethods:n,nullBodyStatus:o,safeMethods:f,badPorts:l,requestDuplex:p,subresourceSet:b,badPortsSet:u,redirectStatusSet:c,corsSafeListedMethodsSet:i,safeMethodsSet:d,forbiddenMethodsSet:m,referrerPolicySet:h}},4322:(e,t,A)=>{const s=A(2613);const{atob:r}=A(181);const{isomorphicDecode:n}=A(5523);const i=new TextEncoder;const o=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const a=/(\u000A|\u000D|\u0009|\u0020)/;const c=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){s(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const A={position:0};let r=collectASequenceOfCodePointsFast(",",t,A);const i=r.length;r=removeASCIIWhitespace(r,true,true);if(A.position>=t.length){return"failure"}A.position++;const o=t.slice(i+1);let a=stringPercentDecode(o);if(/;(\u0020){0,}base64$/i.test(r)){const e=n(a);a=forgivingBase64(e);if(a==="failure"){return"failure"}r=r.slice(0,-6);r=r.replace(/(\u0020)+$/,"");r=r.slice(0,-1)}if(r.startsWith(";")){r="text/plain"+r}let c=parseMIMEType(r);if(c==="failure"){c=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:c,body:a}}function URLSerializer(e,t=false){if(!t){return e.href}const A=e.href;const s=e.hash.length;return s===0?A:A.substring(0,A.length-s)}function collectASequenceOfCodePoints(e,t,A){let s="";while(A.positione.length){return"failure"}t.position++;let s=collectASequenceOfCodePointsFast(";",e,t);s=removeHTTPWhitespace(s,false,true);if(s.length===0||!o.test(s)){return"failure"}const r=A.toLowerCase();const n=s.toLowerCase();const i={type:r,subtype:n,parameters:new Map,essence:`${r}/${n}`};while(t.positiona.test(e)),e,t);let A=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);A=A.toLowerCase();if(t.positione.length){break}let s=null;if(e[t.position]==='"'){s=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{s=collectASequenceOfCodePointsFast(";",e,t);s=removeHTTPWhitespace(s,false,true);if(s.length===0){continue}}if(A.length!==0&&o.test(A)&&(s.length===0||c.test(s))&&!i.parameters.has(A)){i.parameters.set(A,s)}}return i}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=r(e);const A=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const A=e[t.position];t.position++;if(A==="\\"){if(t.position>=e.length){n+="\\";break}n+=e[t.position];t.position++}else{s(A==='"');break}}if(A){return n}return e.slice(r,t.position)}function serializeAMimeType(e){s(e!=="failure");const{parameters:t,essence:A}=e;let r=A;for(let[e,A]of t.entries()){r+=";";r+=e;r+="=";if(!o.test(A)){A=A.replace(/(\\|")/g,"\\$1");A='"'+A;A+='"'}r+=A}return r}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,A=true){let s=0;let r=e.length-1;if(t){for(;s0&&isHTTPWhiteSpace(e[r]);r--);}return e.slice(s,r+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,A=true){let s=0;let r=e.length-1;if(t){for(;s