From d882d12c64e032187b2edb46d3a0d003b7a43598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kh=E1=BA=A3i?= Date: Wed, 26 Jul 2023 18:50:04 +0700 Subject: [PATCH] feat: standalone binary (#92) * feat: add an option to install the self-contained binary version of pnpm * test: add a test about nodejs_bundled * style: remove an empty line * chore: use newer pnpm * chore: update dependencies * feat: rename `nodejs_bundled` to `standalone` as @zkochan suggested * docs: add --------- Co-authored-by: Takashi Sato --- .github/workflows/test.yaml | 59 +++++- README.md | 8 +- action.yml | 6 +- dist/index.js | 4 +- package.json | 6 +- pnpm-lock.yaml | 375 +++++++++++++++++++----------------- run.sh | 1 + src/inputs/index.ts | 4 +- src/install-pnpm/run.ts | 19 +- 9 files changed, 288 insertions(+), 194 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 95489f7..4654da6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -35,8 +35,8 @@ jobs: - name: 'Test: install' run: pnpm install - test_explicit_inputs: - name: Test with explicit inputs + test_dest: + name: Test with dest runs-on: ${{ matrix.os }} @@ -65,6 +65,61 @@ jobs: - name: 'Test: install' run: pnpm install + test_standalone: + name: Test with standalone + + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + + standalone: + - true + - false + + steps: + - uses: actions/checkout@v3 + + - name: Run the action + uses: ./ + with: + version: 7.0.0 + standalone: ${{ matrix.standalone }} + + - name: install Node.js + uses: actions/setup-node@v3 + with: + # pnpm@7.0.0 is not compatible with Node.js 12 + node-version: 12.22.12 + + - name: 'Test: which (pnpm)' + run: which pnpm + + - name: 'Test: which (pnpx)' + if: matrix.standalone == false + run: which pnpx + + - name: 'Test: install when standalone is true' + if: matrix.standalone + run: pnpm install + + - name: 'Test: install when standalone is false' + if: matrix.standalone == false + # Since the default shell on windows runner is pwsh, we specify bash explicitly + shell: bash + run: | + if pnpm install; then + echo "pnpm install should fail" + exit 1 + else + echo "pnpm install failed as expected" + fi + test_run_install: name: 'Test with run_install (${{ matrix.run_install.name }}, ${{ matrix.os }})' diff --git a/README.md b/README.md index c85e3e8..3606ef2 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,13 @@ If `run_install` is a YAML string representation of either an object or an array ### `package_json_file` -**Optional** File path to the `package.json` to read "packageManager" configutation. If not specified, `package.json` in the project root directory is used. +**Optional** (_type:_ `string`, _default:_ `package.json`) File path to the `package.json` to read "packageManager" configuration. + +### `standalone` + +**Optional** (_type:_ `boolean`, _default:_ `false`) When set to true, [@pnpm/exe](https://www.npmjs.com/package/@pnpm/exe), which is a Node.js bundled package, will be installed, enabling using `pnpm` without Node.js. + +This is useful when you want to use a incompatible pair of Node.js and pnpm. ## Outputs diff --git a/action.yml b/action.yml index ec60c94..c652fba 100644 --- a/action.yml +++ b/action.yml @@ -16,9 +16,13 @@ inputs: required: false default: 'null' package_json_file: - description: File path to the package.json to read "packageManager" configutation + description: File path to the package.json to read "packageManager" configuration required: false default: 'package.json' + standalone: + description: When set to true, @pnpm/exe, which is a Node.js bundled package, will be installed, enabling using pnpm without Node.js. + required: false + default: 'false' runs: using: node16 main: dist/index.js diff --git a/dist/index.js b/dist/index.js index 47b87f3..8867301 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,10 +1,10 @@ -(()=>{var e={9450:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const i=t(8829);const n=a(t(8436));const s=a(t(2191));const o=a(t(3326));const l=a(t(9150));const u=a(t(9268));async function main(){const e=(0,n.default)();const r=(0,i.getState)("is_post");if(r==="true")return(0,u.default)(e);(0,i.saveState)("is_post","true");await(0,s.default)(e);console.log("Installation Completed!");(0,o.default)(e);(0,l.default)(e)}main().catch((e=>{console.error(e);(0,i.setFailed)(e)}))},8436:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.getInputs=void 0;const i=t(8829);const n=a(t(6906));const s=t(4264);const o={required:true};const parseInputPath=e=>(0,n.default)((0,i.getInput)(e,o));const getInputs=()=>({version:(0,i.getInput)("version"),dest:parseInputPath("dest"),runInstall:(0,s.parseRunInstall)("run_install"),packageJsonFile:parseInputPath("package_json_file")});r.getInputs=getInputs;r["default"]=r.getInputs},4264:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.parseRunInstall=void 0;const i=t(8829);const n=a(t(4376));const s=t(1236);const o=a(t(7282));const l=a(t(5379));const u={required:true};function parseRunInstall(e){const r=(0,s.load)((0,i.getInput)(e,u));const t=new n.default({allErrors:true});const a=t.compile(l.default);if(!a(r)){for(const e of a.errors){(0,i.error)(`with.run_install${e.dataPath}: ${e.message}`)}return o.default.exit(1)}if(!r)return[];if(r===true)return[{recursive:true}];if(Array.isArray(r))return r;return[r]}r.parseRunInstall=parseRunInstall},2191:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.install=r.runSelfInstaller=void 0;const i=t(8829);const n=a(t(5907));r.runSelfInstaller=n.default;async function install(e){(0,i.startGroup)("Running self-installer...");const r=await(0,n.default)(e);(0,i.endGroup)();if(r){return(0,i.setFailed)(`Something went wrong, self-installer exits with code ${r}`)}}r.install=install;r["default"]=install},5907:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.runSelfInstaller=void 0;const i=t(8829);const n=t(2081);const s=t(1690);const o=a(t(1017));const l=t(7282);async function runSelfInstaller(e){const{version:r,dest:t,packageJsonFile:a}=e;await(0,s.remove)(t);const u=o.default.join(t,"package.json");await(0,s.ensureFile)(u);await(0,s.writeFile)(u,JSON.stringify({private:true}));const c=await readTarget(a,r);const f=(0,n.spawn)(l.execPath,[o.default.join(__dirname,"pnpm.js"),"install",c,"--no-lockfile"],{cwd:t,stdio:["pipe","inherit","inherit"]});const p=await new Promise(((e,r)=>{f.on("error",r);f.on("close",e)}));if(p===0){const e=o.default.join(t,"node_modules/.bin");(0,i.addPath)(e);(0,i.exportVariable)("PNPM_HOME",e)}return p}r.runSelfInstaller=runSelfInstaller;async function readTarget(e,r){if(r)return`pnpm@${r}`;const{GITHUB_WORKSPACE:t}=process.env;if(!t){throw new Error(`No workspace is found.\nIf you're intended to let pnpm/action-setup read preferred pnpm version from the "packageManager" field in the package.json file,\nplease run the actions/checkout before pnpm/action-setup.\nOtherwise, please specify the pnpm version in the action configuration.`)}const{packageManager:a}=JSON.parse(await(0,s.readFile)(o.default.join(t,e),"utf8"));if(typeof a!=="string"){throw new Error(`No pnpm version is specified.\nPlease specify it by one of the following ways:\n - in the GitHub Action config with the key "version"\n - in the package.json with the key "packageManager" (See https://nodejs.org/api/corepack.html)`)}if(!a.startsWith("pnpm@")){throw new Error("Invalid packageManager field in package.json")}return a}r["default"]=runSelfInstaller},3326:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.setOutputs=void 0;const a=t(8829);const i=t(3763);function setOutputs(e){const r=(0,i.getBinDest)(e);(0,a.addPath)(r);(0,a.setOutput)("dest",e.dest);(0,a.setOutput)("bin_dest",r)}r.setOutputs=setOutputs;r["default"]=setOutputs},9150:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.runPnpmInstall=void 0;const a=t(8829);const i=t(2081);const n=t(3763);function runPnpmInstall(e){const r=(0,n.patchPnpmEnv)(e);for(const t of e.runInstall){const e=["install"];if(t.recursive)e.unshift("recursive");if(t.args)e.push(...t.args);const n=["pnpm",...e].join(" ");(0,a.startGroup)(`Running ${n}...`);const{error:s,status:o}=(0,i.spawnSync)("pnpm",e,{stdio:"inherit",cwd:t.cwd,shell:true,env:r});(0,a.endGroup)();if(s){(0,a.setFailed)(s);continue}if(o){(0,a.setFailed)(`Command ${n} (cwd: ${t.cwd}) exits with status ${o}`);continue}}}r.runPnpmInstall=runPnpmInstall;r["default"]=runPnpmInstall},9268:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.pruneStore=void 0;const a=t(8829);const i=t(2081);const n=t(3763);function pruneStore(e){if(e.runInstall.length===0){console.log("Pruning is unnecessary.");return}(0,a.startGroup)("Running pnpm store prune...");const{error:r,status:t}=(0,i.spawnSync)("pnpm",["store","prune"],{stdio:"inherit",shell:true,env:(0,n.patchPnpmEnv)(e)});(0,a.endGroup)();if(r){(0,a.warning)(r);return}if(t){(0,a.warning)(`command pnpm store prune exits with code ${t}`);return}}r.pruneStore=pruneStore;r["default"]=pruneStore},3763:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.patchPnpmEnv=r.getBinDest=void 0;const i=a(t(1017));const n=a(t(7282));const getBinDest=e=>i.default.join(e.dest,"node_modules",".bin");r.getBinDest=getBinDest;const patchPnpmEnv=e=>({...n.default.env,PATH:(0,r.getBinDest)(e)+i.default.delimiter+n.default.env.PATH});r.patchPnpmEnv=patchPnpmEnv},2624:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const s=n(t(2037));const o=t(3757);function issueCommand(e,r,t){const a=new Command(e,r,t);process.stdout.write(a.toString()+s.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const l="::";class Command{constructor(e,r,t){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=t}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const a=this.properties[t];if(a){if(r){r=false}else{e+=","}e+=`${t}=${escapeProperty(a)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},8829:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};var s=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const o=t(2624);const l=t(6253);const u=t(3757);const c=n(t(2037));const f=n(t(1017));const p=t(3132);var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const t=u.toCommandValue(r);process.env[e]=t;const a=process.env["GITHUB_ENV"]||"";if(a){return l.issueFileCommand("ENV",l.prepareKeyValueMessage(e,r))}o.issueCommand("set-env",{name:e},t)}r.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){l.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${f.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!t){throw new Error(`Input required and not supplied: ${e}`)}if(r&&r.trimWhitespace===false){return t}return t.trim()}r.getInput=getInput;function getMultilineInput(e,r){const t=getInput(e,r).split("\n").filter((e=>e!==""));if(r&&r.trimWhitespace===false){return t}return t.map((e=>e.trim()))}r.getMultilineInput=getMultilineInput;function getBooleanInput(e,r){const t=["true","True","TRUE"];const a=["false","False","FALSE"];const i=getInput(e,r);if(t.includes(i))return true;if(a.includes(i))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\``)}r.getBooleanInput=getBooleanInput;function setOutput(e,r){const t=process.env["GITHUB_OUTPUT"]||"";if(t){return l.issueFileCommand("OUTPUT",l.prepareKeyValueMessage(e,r))}process.stdout.write(c.EOL);o.issueCommand("set-output",{name:e},u.toCommandValue(r))}r.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=d.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}r.debug=debug;function error(e,r={}){o.issueCommand("error",u.toCommandProperties(r),e instanceof Error?e.toString():e)}r.error=error;function warning(e,r={}){o.issueCommand("warning",u.toCommandProperties(r),e instanceof Error?e.toString():e)}r.warning=warning;function notice(e,r={}){o.issueCommand("notice",u.toCommandProperties(r),e instanceof Error?e.toString():e)}r.notice=notice;function info(e){process.stdout.write(e+c.EOL)}r.info=info;function startGroup(e){o.issue("group",e)}r.startGroup=startGroup;function endGroup(){o.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return s(this,void 0,void 0,(function*(){startGroup(e);let t;try{t=yield r()}finally{endGroup()}return t}))}r.group=group;function saveState(e,r){const t=process.env["GITHUB_STATE"]||"";if(t){return l.issueFileCommand("STATE",l.prepareKeyValueMessage(e,r))}o.issueCommand("save-state",{name:e},u.toCommandValue(r))}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}r.getIDToken=getIDToken;var h=t(3738);Object.defineProperty(r,"summary",{enumerable:true,get:function(){return h.summary}});var m=t(3738);Object.defineProperty(r,"markdownSummary",{enumerable:true,get:function(){return m.markdownSummary}});var v=t(9405);Object.defineProperty(r,"toPosixPath",{enumerable:true,get:function(){return v.toPosixPath}});Object.defineProperty(r,"toWin32Path",{enumerable:true,get:function(){return v.toWin32Path}});Object.defineProperty(r,"toPlatformPath",{enumerable:true,get:function(){return v.toPlatformPath}})},6253:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.prepareKeyValueMessage=r.issueFileCommand=void 0;const s=n(t(7147));const o=n(t(2037));const l=t(1172);const u=t(3757);function issueFileCommand(e,r){const t=process.env[`GITHUB_${e}`];if(!t){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(t)){throw new Error(`Missing file at path: ${t}`)}s.appendFileSync(t,`${u.toCommandValue(r)}${o.EOL}`,{encoding:"utf8"})}r.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,r){const t=`ghadelimiter_${l.v4()}`;const a=u.toCommandValue(r);if(e.includes(t)){throw new Error(`Unexpected input: name should not contain the delimiter "${t}"`)}if(a.includes(t)){throw new Error(`Unexpected input: value should not contain the delimiter "${t}"`)}return`${e}<<${t}${o.EOL}${a}${o.EOL}${t}`}r.prepareKeyValueMessage=prepareKeyValueMessage},3132:function(e,r,t){"use strict";var a=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.OidcClient=void 0;const i=t(4199);const n=t(1275);const s=t(8829);class OidcClient{static createHttpClient(e=true,r=10){const t={allowRetries:e,maxRetries:r};return new i.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(OidcClient.getRequestToken())],t)}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 r;return a(this,void 0,void 0,(function*(){const t=OidcClient.createHttpClient();const a=yield t.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const i=(r=a.result)===null||r===void 0?void 0:r.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return a(this,void 0,void 0,(function*(){try{let r=OidcClient.getIDTokenUrl();if(e){const t=encodeURIComponent(e);r=`${r}&audience=${t}`}s.debug(`ID token url is ${r}`);const t=yield OidcClient.getCall(r);s.setSecret(t);return t}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}r.OidcClient=OidcClient},9405:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.toPlatformPath=r.toWin32Path=r.toPosixPath=void 0;const s=n(t(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}r.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}r.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}r.toPlatformPath=toPlatformPath},3738:function(e,r,t){"use strict";var a=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.summary=r.markdownSummary=r.SUMMARY_DOCS_URL=r.SUMMARY_ENV_VAR=void 0;const i=t(2037);const n=t(7147);const{access:s,appendFile:o,writeFile:l}=n.promises;r.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";r.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 a(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[r.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${r.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield s(e,n.constants.R_OK|n.constants.W_OK)}catch(r){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,r,t={}){const a=Object.entries(t).map((([e,r])=>` ${e}="${r}"`)).join("");if(!r){return`<${e}${a}>`}return`<${e}${a}>${r}`}write(e){return a(this,void 0,void 0,(function*(){const r=!!(e===null||e===void 0?void 0:e.overwrite);const t=yield this.filePath();const a=r?l:o;yield a(t,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return a(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,r=false){this._buffer+=e;return r?this.addEOL():this}addEOL(){return this.addRaw(i.EOL)}addCodeBlock(e,r){const t=Object.assign({},r&&{lang:r});const a=this.wrap("pre",this.wrap("code",e),t);return this.addRaw(a).addEOL()}addList(e,r=false){const t=r?"ol":"ul";const a=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(t,a);return this.addRaw(i).addEOL()}addTable(e){const r=e.map((e=>{const r=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:r,data:t,colspan:a,rowspan:i}=e;const n=r?"th":"td";const s=Object.assign(Object.assign({},a&&{colspan:a}),i&&{rowspan:i});return this.wrap(n,t,s)})).join("");return this.wrap("tr",r)})).join("");const t=this.wrap("table",r);return this.addRaw(t).addEOL()}addDetails(e,r){const t=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(t).addEOL()}addImage(e,r,t){const{width:a,height:i}=t||{};const n=Object.assign(Object.assign({},a&&{width:a}),i&&{height:i});const s=this.wrap("img",null,Object.assign({src:e,alt:r},n));return this.addRaw(s).addEOL()}addHeading(e,r){const t=`h${r}`;const a=["h1","h2","h3","h4","h5","h6"].includes(t)?t:"h1";const i=this.wrap(a,e);return this.addRaw(i).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,r){const t=Object.assign({},r&&{cite:r});const a=this.wrap("blockquote",e,t);return this.addRaw(a).addEOL()}addLink(e,r){const t=this.wrap("a",e,{href:r});return this.addRaw(t).addEOL()}}const u=new Summary;r.markdownSummary=u;r.summary=u},3757:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.toCommandProperties=r.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)}r.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}}r.toCommandProperties=toCommandProperties},1275:function(e,r){"use strict";var t=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.PersonalAccessTokenCredentialHandler=r.BearerCredentialHandler=r.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,r){this.username=e;this.password=r}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 t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.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 t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.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 t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},4199:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};var s=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.HttpClient=r.isHttps=r.HttpClientResponse=r.HttpClientError=r.getProxyUrl=r.MediaTypes=r.Headers=r.HttpCodes=void 0;const o=n(t(3685));const l=n(t(5687));const u=n(t(6810));const c=n(t(417));var f;(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"})(f=r.HttpCodes||(r.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=r.Headers||(r.Headers={}));var d;(function(e){e["ApplicationJson"]="application/json"})(d=r.MediaTypes||(r.MediaTypes={}));function getProxyUrl(e){const r=u.getProxyUrl(new URL(e));return r?r.href:""}r.getProxyUrl=getProxyUrl;const h=[f.MovedPermanently,f.ResourceMoved,f.SeeOther,f.TemporaryRedirect,f.PermanentRedirect];const m=[f.BadGateway,f.ServiceUnavailable,f.GatewayTimeout];const v=["OPTIONS","GET","DELETE","HEAD"];const y=10;const g=5;class HttpClientError extends Error{constructor(e,r){super(e);this.name="HttpClientError";this.statusCode=r;Object.setPrototypeOf(this,HttpClientError.prototype)}}r.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return s(this,void 0,void 0,(function*(){return new Promise((e=>s(this,void 0,void 0,(function*(){let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))))}))}}r.HttpClientResponse=HttpClientResponse;function isHttps(e){const r=new URL(e);return r.protocol==="https:"}r.isHttps=isHttps;class HttpClient{constructor(e,r,t){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=r||[];this.requestOptions=t;if(t){if(t.ignoreSslError!=null){this._ignoreSslError=t.ignoreSslError}this._socketTimeout=t.socketTimeout;if(t.allowRedirects!=null){this._allowRedirects=t.allowRedirects}if(t.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=t.allowRedirectDowngrade}if(t.maxRedirects!=null){this._maxRedirects=Math.max(t.maxRedirects,0)}if(t.keepAlive!=null){this._keepAlive=t.keepAlive}if(t.allowRetries!=null){this._allowRetries=t.allowRetries}if(t.maxRetries!=null){this._maxRetries=t.maxRetries}}}options(e,r){return s(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,r||{})}))}get(e,r){return s(this,void 0,void 0,(function*(){return this.request("GET",e,null,r||{})}))}del(e,r){return s(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,r||{})}))}post(e,r,t){return s(this,void 0,void 0,(function*(){return this.request("POST",e,r,t||{})}))}patch(e,r,t){return s(this,void 0,void 0,(function*(){return this.request("PATCH",e,r,t||{})}))}put(e,r,t){return s(this,void 0,void 0,(function*(){return this.request("PUT",e,r,t||{})}))}head(e,r){return s(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,r||{})}))}sendStream(e,r,t,a){return s(this,void 0,void 0,(function*(){return this.request(e,r,t,a)}))}getJson(e,r={}){return s(this,void 0,void 0,(function*(){r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,d.ApplicationJson);const t=yield this.get(e,r);return this._processResponse(t,this.requestOptions)}))}postJson(e,r,t={}){return s(this,void 0,void 0,(function*(){const a=JSON.stringify(r,null,2);t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,d.ApplicationJson);t[p.ContentType]=this._getExistingOrDefaultHeader(t,p.ContentType,d.ApplicationJson);const i=yield this.post(e,a,t);return this._processResponse(i,this.requestOptions)}))}putJson(e,r,t={}){return s(this,void 0,void 0,(function*(){const a=JSON.stringify(r,null,2);t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,d.ApplicationJson);t[p.ContentType]=this._getExistingOrDefaultHeader(t,p.ContentType,d.ApplicationJson);const i=yield this.put(e,a,t);return this._processResponse(i,this.requestOptions)}))}patchJson(e,r,t={}){return s(this,void 0,void 0,(function*(){const a=JSON.stringify(r,null,2);t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,d.ApplicationJson);t[p.ContentType]=this._getExistingOrDefaultHeader(t,p.ContentType,d.ApplicationJson);const i=yield this.patch(e,a,t);return this._processResponse(i,this.requestOptions)}))}request(e,r,t,a){return s(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(r);let n=this._prepareRequest(e,i,a);const s=this._allowRetries&&v.includes(e)?this._maxRetries+1:1;let o=0;let l;do{l=yield this.requestRaw(n,t);if(l&&l.message&&l.message.statusCode===f.Unauthorized){let e;for(const r of this.handlers){if(r.canHandleAuthentication(l)){e=r;break}}if(e){return e.handleAuthentication(this,n,t)}else{return l}}let r=this._maxRedirects;while(l.message.statusCode&&h.includes(l.message.statusCode)&&this._allowRedirects&&r>0){const s=l.message.headers["location"];if(!s){break}const o=new URL(s);if(i.protocol==="https:"&&i.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 l.readBody();if(o.hostname!==i.hostname){for(const e in a){if(e.toLowerCase()==="authorization"){delete a[e]}}}n=this._prepareRequest(e,o,a);l=yield this.requestRaw(n,t);r--}if(!l.message.statusCode||!m.includes(l.message.statusCode)){return l}o+=1;if(o{function callbackForResult(e,r){if(e){a(e)}else if(!r){a(new Error("Unknown error"))}else{t(r)}}this.requestRawWithCallback(e,r,callbackForResult)}))}))}requestRawWithCallback(e,r,t){if(typeof r==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8")}let a=false;function handleResult(e,r){if(!a){a=true;t(e,r)}}const i=e.httpModule.request(e.options,(e=>{const r=new HttpClientResponse(e);handleResult(undefined,r)}));let n;i.on("socket",(e=>{n=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(r&&typeof r==="string"){i.write(r,"utf8")}if(r&&typeof r!=="string"){r.on("close",(function(){i.end()}));r.pipe(i)}else{i.end()}}getAgent(e){const r=new URL(e);return this._getAgent(r)}_prepareRequest(e,r,t){const a={};a.parsedUrl=r;const i=a.parsedUrl.protocol==="https:";a.httpModule=i?l:o;const n=i?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):n;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=e;a.options.headers=this._mergeHeaders(t);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(a.options)}}return a}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,r,t){let a;if(this.requestOptions&&this.requestOptions.headers){a=lowercaseKeys(this.requestOptions.headers)[r]}return e[r]||a||t}_getAgent(e){let r;const t=u.getProxyUrl(e);const a=t&&t.hostname;if(this._keepAlive&&a){r=this._proxyAgent}if(this._keepAlive&&!a){r=this._agent}if(r){return r}const i=e.protocol==="https:";let n=100;if(this.requestOptions){n=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(t&&t.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(t.username||t.password)&&{proxyAuth:`${t.username}:${t.password}`}),{host:t.hostname,port:t.port})};let a;const s=t.protocol==="https:";if(i){a=s?c.httpsOverHttps:c.httpsOverHttp}else{a=s?c.httpOverHttps:c.httpOverHttp}r=a(e);this._proxyAgent=r}if(this._keepAlive&&!r){const e={keepAlive:this._keepAlive,maxSockets:n};r=i?new l.Agent(e):new o.Agent(e);this._agent=r}if(!r){r=i?l.globalAgent:o.globalAgent}if(i&&this._ignoreSslError){r.options=Object.assign(r.options||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){e=Math.min(y,e);const r=g*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),r)))}))}_processResponse(e,r){return s(this,void 0,void 0,(function*(){return new Promise(((t,a)=>s(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const n={statusCode:i,result:null,headers:{}};if(i===f.NotFound){t(n)}function dateTimeDeserializer(e,r){if(typeof r==="string"){const e=new Date(r);if(!isNaN(e.valueOf())){return e}}return r}let s;let o;try{o=yield e.readBody();if(o&&o.length>0){if(r&&r.deserializeDates){s=JSON.parse(o,dateTimeDeserializer)}else{s=JSON.parse(o)}n.result=s}n.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${i})`}const r=new HttpClientError(e,i);r.result=n.result;a(r)}else{t(n)}}))))}))}}r.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((r,t)=>(r[t.toLowerCase()]=e[t],r)),{})},6810:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.checkBypass=r.getProxyUrl=void 0;function getProxyUrl(e){const r=e.protocol==="https:";if(checkBypass(e)){return undefined}const t=(()=>{if(r){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(t){return new URL(t)}else{return undefined}}r.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let t;if(e.port){t=Number(e.port)}else if(e.protocol==="http:"){t=80}else if(e.protocol==="https:"){t=443}const a=[e.hostname.toUpperCase()];if(typeof t==="number"){a.push(`${a[0]}:${t}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(a.some((r=>r===e))){return true}}return false}r.checkBypass=checkBypass},4376:(e,r,t)=>{"use strict";var a=t(9694),i=t(8285),n=t(6578),s=t(362),o=t(7822),l=t(1391),u=t(6351),c=t(0),f=t(273);e.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=t(859);var p=t(247);Ajv.prototype.addKeyword=p.add;Ajv.prototype.getKeyword=p.get;Ajv.prototype.removeKeyword=p.remove;Ajv.prototype.validateKeyword=p.validate;var d=t(2347);Ajv.ValidationError=d.Validation;Ajv.MissingRefError=d.MissingRef;Ajv.$dataMetaSchema=c;var h="http://json-schema.org/draft-07/schema";var m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var v=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=f.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=l(e.format);this._cache=e.cache||new n;this._loadingSchemas={};this._compilations=[];this.RULES=u();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=o;this._metaOpts=getMetaSchemaOptions(this);if(e.formats)addInitialFormats(this);if(e.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof e.meta=="object")this.addMetaSchema(e.meta);if(e.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(e,r){var t;if(typeof e=="string"){t=this.getSchema(e);if(!t)throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);t=a.validate||this._compile(a)}var i=t(r);if(t.$async!==true)this.errors=t.errors;return i}function compile(e,r){var t=this._addSchema(e,undefined,r);return t.validate||this._compile(t)}function addSchema(e,r,t,a){if(Array.isArray(e)){for(var n=0;n{"use strict";var r=e.exports=function Cache(){this._cache={}};r.prototype.put=function Cache_put(e,r){this._cache[e]=r};r.prototype.get=function Cache_get(e){return this._cache[e]};r.prototype.del=function Cache_del(e){delete this._cache[e]};r.prototype.clear=function Cache_clear(){this._cache={}}},859:(e,r,t)=>{"use strict";var a=t(2347).MissingRef;e.exports=compileAsync;function compileAsync(e,r,t){var i=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof r=="function"){t=r;r=undefined}var n=loadMetaSchemaOf(e).then((function(){var t=i._addSchema(e,undefined,r);return t.validate||_compileAsync(t)}));if(t){n.then((function(e){t(null,e)}),t)}return n;function loadMetaSchemaOf(e){var r=e.$schema;return r&&!i.getSchema(r)?compileAsync.call(i,{$ref:r},true):Promise.resolve()}function _compileAsync(e){try{return i._compile(e)}catch(e){if(e instanceof a)return loadMissingSchema(e);throw e}function loadMissingSchema(t){var a=t.missingSchema;if(added(a))throw new Error("Schema "+a+" is loaded but "+t.missingRef+" cannot be resolved");var n=i._loadingSchemas[a];if(!n){n=i._loadingSchemas[a]=i._opts.loadSchema(a);n.then(removePromise,removePromise)}return n.then((function(e){if(!added(a)){return loadMetaSchemaOf(e).then((function(){if(!added(a))i.addSchema(e,a,undefined,r)}))}})).then((function(){return _compileAsync(e)}));function removePromise(){delete i._loadingSchemas[a]}function added(e){return i._refs[e]||i._schemas[e]}}}}},2347:(e,r,t)=>{"use strict";var a=t(8285);e.exports={Validation:errorSubclass(ValidationError),MissingRef:errorSubclass(MissingRefError)};function ValidationError(e){this.message="validation failed";this.errors=e;this.ajv=this.validation=true}MissingRefError.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function MissingRefError(e,r,t){this.message=t||MissingRefError.message(e,r);this.missingRef=a.url(e,r);this.missingSchema=a.normalizeId(a.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},1391:(e,r,t)=>{"use strict";var a=t(273);var i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var n=[0,31,28,31,30,31,30,31,31,30,31,30,31];var s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var o=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var u=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var f=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var d=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return a.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:f,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":m};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":u,"uri-template":c,url:f,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":m};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var r=e.match(i);if(!r)return false;var t=+r[1];var a=+r[2];var s=+r[3];return a>=1&&a<=12&&s>=1&&s<=(a==2&&isLeapYear(t)?29:n[a])}function time(e,r){var t=e.match(s);if(!t)return false;var a=t[1];var i=t[2];var n=t[3];var o=t[5];return(a<=23&&i<=59&&n<=59||a==23&&i==59&&n==60)&&(!r||o)}var v=/t|\s/i;function date_time(e){var r=e.split(v);return r.length==2&&date(r[0])&&time(r[1],true)}var y=/\/|:/;function uri(e){return y.test(e)&&l.test(e)}var g=/[^\\]\\Z/;function regex(e){if(g.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},9694:(e,r,t)=>{"use strict";var a=t(8285),i=t(273),n=t(2347),s=t(7822);var o=t(5073);var l=i.ucs2length;var u=t(2155);var c=n.Validation;e.exports=compile;function compile(e,r,t,f){var p=this,d=this._opts,h=[undefined],m={},v=[],y={},g=[],w={},S=[];r=r||{schema:e,refVal:h,refs:m};var b=checkCompiling.call(this,e,r,f);var E=this._compilations[b.index];if(b.compiling)return E.callValidate=callValidate;var P=this._formats;var _=this.RULES;try{var x=localCompile(e,r,t,f);E.validate=x;var O=E.callValidate;if(O){O.schema=x.schema;O.errors=null;O.refs=x.refs;O.refVal=x.refVal;O.root=x.root;O.$async=x.$async;if(d.sourceCode)O.source=x.source}return x}finally{endCompiling.call(this,e,r,f)}function callValidate(){var e=E.validate;var r=e.apply(this,arguments);callValidate.errors=e.errors;return r}function localCompile(e,t,s,f){var y=!t||t&&t.schema==e;if(t.schema!=r.schema)return compile.call(p,e,t,s,f);var w=e.$async===true;var b=o({isTop:true,schema:e,isRoot:y,baseId:f,root:t,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:n.MissingRef,RULES:_,validate:o,util:i,resolve:a,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:d,formats:P,logger:p.logger,self:p});b=vars(h,refValCode)+vars(v,patternCode)+vars(g,defaultCode)+vars(S,customRuleCode)+b;if(d.processCode)b=d.processCode(b,e);var E;try{var x=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",b);E=x(p,_,P,r,h,g,S,u,l,c);h[0]=E}catch(e){p.logger.error("Error compiling schema, function code:",b);throw e}E.schema=e;E.errors=null;E.refs=m;E.refVal=h;E.root=y?E:t;if(w)E.$async=true;if(d.sourceCode===true){E.source={code:b,patterns:v,defaults:g}}return E}function resolveRef(e,i,n){i=a.url(e,i);var s=m[i];var o,l;if(s!==undefined){o=h[s];l="refVal["+s+"]";return resolvedRef(o,l)}if(!n&&r.refs){var u=r.refs[i];if(u!==undefined){o=r.refVal[u];l=addLocalRef(i,o);return resolvedRef(o,l)}}l=addLocalRef(i);var c=a.call(p,localCompile,r,i);if(c===undefined){var f=t&&t[i];if(f){c=a.inlineRef(f,d.inlineRefs)?f:compile.call(p,f,r,t,e)}}if(c===undefined){removeLocalRef(i)}else{replaceLocalRef(i,c);return resolvedRef(c,l)}}function addLocalRef(e,r){var t=h.length;h[t]=r;m[e]=t;return"refVal"+t}function removeLocalRef(e){delete m[e]}function replaceLocalRef(e,r){var t=m[e];h[t]=r}function resolvedRef(e,r){return typeof e=="object"||typeof e=="boolean"?{code:r,schema:e,inline:true}:{code:r,$async:e&&!!e.$async}}function usePattern(e){var r=y[e];if(r===undefined){r=y[e]=v.length;v[r]=e}return"pattern"+r}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(e===null)return"null";var r=s(e);var t=w[r];if(t===undefined){t=w[r]=g.length;g[t]=e}return"default"+t}}function useCustomRule(e,r,t,a){if(p._opts.validateSchema!==false){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(t,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var n=e.definition.validateSchema;if(n){var s=n(r);if(!s){var o="keyword schema is invalid: "+p.errorsText(n.errors);if(p._opts.validateSchema=="log")p.logger.error(o);else throw new Error(o)}}}var l=e.definition.compile,u=e.definition.inline,c=e.definition.macro;var f;if(l){f=l.call(p,r,t,a)}else if(c){f=c.call(p,r,t,a);if(d.validateSchema!==false)p.validateSchema(f,true)}else if(u){f=u.call(p,a,e.keyword,r,t)}else{f=e.definition.validate;if(!f)return}if(f===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=S.length;S[h]=f;return{code:"customRule"+h,validate:f}}}function checkCompiling(e,r,t){var a=compIndex.call(this,e,r,t);if(a>=0)return{index:a,compiling:true};a=this._compilations.length;this._compilations[a]={schema:e,root:r,baseId:t};return{index:a,compiling:false}}function endCompiling(e,r,t){var a=compIndex.call(this,e,r,t);if(a>=0)this._compilations.splice(a,1)}function compIndex(e,r,t){for(var a=0;a{"use strict";var a=t(4950),i=t(2155),n=t(273),s=t(362),o=t(9653);e.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(e,r,t){var a=this._refs[t];if(typeof a=="string"){if(this._refs[a])a=this._refs[a];else return resolve.call(this,e,r,a)}a=a||this._schemas[t];if(a instanceof s){return inlineRef(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a)}var i=resolveSchema.call(this,r,t);var n,o,l;if(i){n=i.schema;r=i.root;l=i.baseId}if(n instanceof s){o=n.validate||e.call(this,n.schema,r,undefined,l)}else if(n!==undefined){o=inlineRef(n,this._opts.inlineRefs)?n:e.call(this,n,r,undefined,l)}return o}function resolveSchema(e,r){var t=a.parse(r),i=_getFullPath(t),n=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||i!==n){var o=normalizeId(i);var l=this._refs[o];if(typeof l=="string"){return resolveRecursive.call(this,e,l,t)}else if(l instanceof s){if(!l.validate)this._compile(l);e=l}else{l=this._schemas[o];if(l instanceof s){if(!l.validate)this._compile(l);if(o==normalizeId(r))return{schema:l,root:e,baseId:n};e=l}else{return}}if(!e.schema)return;n=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,t,n,e.schema,e)}function resolveRecursive(e,r,t){var a=resolveSchema.call(this,e,r);if(a){var i=a.schema;var n=a.baseId;e=a.root;var s=this._getId(i);if(s)n=resolveUrl(n,s);return getJsonPointer.call(this,t,n,i,e)}}var l=n.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,r,t,a){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var i=e.fragment.split("/");for(var s=1;s{"use strict";var a=t(120),i=t(273).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}];var r=["type","$comment"];var t=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var n=["number","integer","string","array","object","boolean","null"];e.all=i(r);e.types=i(n);e.forEach((function(t){t.rules=t.rules.map((function(t){var i;if(typeof t=="object"){var n=Object.keys(t)[0];i=t[n];t=n;i.forEach((function(t){r.push(t);e.all[t]=true}))}r.push(t);var s=e.all[t]={keyword:t,code:a[t],implements:i};return s}));e.all.$comment={keyword:"$comment",code:a.$comment};if(t.type)e.types[t.type]=t}));e.keywords=i(r.concat(t));e.custom={};return e}},362:(e,r,t)=>{"use strict";var a=t(273);e.exports=SchemaObject;function SchemaObject(e){a.copy(e,this)}},6058:e=>{"use strict";e.exports=function ucs2length(e){var r=0,t=e.length,a=0,i;while(a=55296&&i<=56319&&a{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:t(2155),ucs2length:t(6058),varOccurences:varOccurences,varReplace:varReplace,schemaHasRules:schemaHasRules,schemaHasRulesExcept:schemaHasRulesExcept,schemaUnknownRules:schemaUnknownRules,toQuotedString:toQuotedString,getPathExpr:getPathExpr,getPath:getPath,getData:getData,unescapeFragment:unescapeFragment,unescapeJsonPointer:unescapeJsonPointer,escapeFragment:escapeFragment,escapeJsonPointer:escapeJsonPointer};function copy(e,r){r=r||{};for(var t in e)r[t]=e[t];return r}function checkDataType(e,r,t,a){var i=a?" !== ":" === ",n=a?" || ":" && ",s=a?"!":"",o=a?"":"!";switch(e){case"null":return r+i+"null";case"array":return s+"Array.isArray("+r+")";case"object":return"("+s+r+n+"typeof "+r+i+'"object"'+n+o+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+i+'"number"'+n+o+"("+r+" % 1)"+n+r+i+r+(t?n+s+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+i+'"'+e+'"'+(t?n+s+"isFinite("+r+")":"")+")";default:return"typeof "+r+i+'"'+e+'"'}}function checkDataTypes(e,r,t){switch(e.length){case 1:return checkDataType(e[0],r,t,true);default:var a="";var i=toHash(e);if(i.array&&i.object){a=i.null?"(":"(!"+r+" || ";a+="typeof "+r+' !== "object")';delete i.null;delete i.array;delete i.object}if(i.number)delete i.integer;for(var n in i)a+=(a?" && ":"")+checkDataType(n,r,t,true);return a}}var a=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,r){if(Array.isArray(r)){var t=[];for(var i=0;i=r)throw new Error("Cannot access property/index "+a+" levels up, current level is "+r);return t[r-a]}if(a>r)throw new Error("Cannot access data "+a+" levels up, current level is "+r);n="data"+(r-a||"");if(!i)return n}var u=n;var c=i.split("/");for(var f=0;f{"use strict";var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,t){for(var a=0;a{"use strict";var a=t(8703);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:a.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:a.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},8558:e=>{"use strict";e.exports=function generate__limit(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}var h=r=="maximum",m=h?"exclusiveMaximum":"exclusiveMinimum",v=e.schema[m],y=e.opts.$data&&v&&v.$data,g=h?"<":">",w=h?">":"<",c=undefined;if(!(p||typeof s=="number"||s===undefined)){throw new Error(r+" must be number")}if(!(y||v===undefined||typeof v=="number"||typeof v=="boolean")){throw new Error(m+" must be number or boolean")}if(y){var S=e.util.getData(v.$data,n,e.dataPathArr),b="exclusive"+i,E="exclType"+i,P="exclIsNumber"+i,_="op"+i,x="' + "+_+" + '";a+=" var schemaExcl"+i+" = "+S+"; ";S="schemaExcl"+i;a+=" var "+b+"; var "+E+" = typeof "+S+"; if ("+E+" != 'boolean' && "+E+" != 'undefined' && "+E+" != 'number') { ";var c=m;var O=O||[];O.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: '"+m+" should be boolean' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var k=a;a=O.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+k+"]); "}else{a+=" validate.errors = ["+k+"]; return false; "}}else{a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" "+E+" == 'number' ? ( ("+b+" = "+d+" === undefined || "+S+" "+g+"= "+d+") ? "+f+" "+w+"= "+S+" : "+f+" "+w+" "+d+" ) : ( ("+b+" = "+S+" === true) ? "+f+" "+w+"= "+d+" : "+f+" "+w+" "+d+" ) || "+f+" !== "+f+") { var op"+i+" = "+b+" ? '"+g+"' : '"+g+"='; ";if(s===undefined){c=m;l=e.errSchemaPath+"/"+m;d=S;p=y}}else{var P=typeof v=="number",x=g;if(P&&p){var _="'"+x+"'";a+=" if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" ( "+d+" === undefined || "+v+" "+g+"= "+d+" ? "+f+" "+w+"= "+v+" : "+f+" "+w+" "+d+" ) || "+f+" !== "+f+") { "}else{if(P&&s===undefined){b=true;c=m;l=e.errSchemaPath+"/"+m;d=v;w+="="}else{if(P)d=Math[h?"min":"max"](v,s);if(v===(P?d:true)){b=true;c=m;l=e.errSchemaPath+"/"+m;w+="="}else{b=false;x+="="}}var _="'"+x+"'";a+=" if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" "+f+" "+w+" "+d+" || "+f+" !== "+f+") { "}}c=c||r;var O=O||[];O.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+_+", limit: "+d+", exclusive: "+b+" } ";if(e.opts.messages!==false){a+=" , message: 'should be "+x+" ";if(p){a+="' + "+d}else{a+=""+d+"'"}}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var k=a;a=O.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+k+"]); "}else{a+=" validate.errors = ["+k+"]; return false; "}}else{a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}return a}},1708:e=>{"use strict";e.exports=function generate__limitItems(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!(p||typeof s=="number")){throw new Error(r+" must be number")}var h=r=="maxItems"?">":"<";a+="if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" "+f+".length "+h+" "+d+") { ";var c=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have ";if(r=="maxItems"){a+="more"}else{a+="fewer"}a+=" than ";if(p){a+="' + "+d+" + '"}else{a+=""+s}a+=" items' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},6913:e=>{"use strict";e.exports=function generate__limitLength(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!(p||typeof s=="number")){throw new Error(r+" must be number")}var h=r=="maxLength"?">":"<";a+="if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}if(e.opts.unicode===false){a+=" "+f+".length "}else{a+=" ucs2length("+f+") "}a+=" "+h+" "+d+") { ";var c=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT be ";if(r=="maxLength"){a+="longer"}else{a+="shorter"}a+=" than ";if(p){a+="' + "+d+" + '"}else{a+=""+s}a+=" characters' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},7921:e=>{"use strict";e.exports=function generate__limitProperties(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!(p||typeof s=="number")){throw new Error(r+" must be number")}var h=r=="maxProperties"?">":"<";a+="if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" Object.keys("+f+").length "+h+" "+d+") { ";var c=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have ";if(r=="maxProperties"){a+="more"}else{a+="fewer"}a+=" than ";if(p){a+="' + "+d+" + '"}else{a+=""+s}a+=" properties' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},6721:e=>{"use strict";e.exports=function generate_allOf(e,r,t){var a=" ";var i=e.schema[r];var n=e.schemaPath+e.util.getProperty(r);var s=e.errSchemaPath+"/"+r;var o=!e.opts.allErrors;var l=e.util.copy(e);var u="";l.level++;var c="valid"+l.level;var f=l.baseId,p=true;var d=i;if(d){var h,m=-1,v=d.length-1;while(m0||h===false:e.util.schemaHasRules(h,e.RULES.all)){p=false;l.schema=h;l.schemaPath=n+"["+m+"]";l.errSchemaPath=s+"/"+m;a+=" "+e.validate(l)+" ";l.baseId=f;if(o){a+=" if ("+c+") { ";u+="}"}}}}if(o){if(p){a+=" if (true) { "}else{a+=" "+u.slice(0,-1)+" "}}return a}},2755:e=>{"use strict";e.exports=function generate_anyOf(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v=s.every((function(r){return e.opts.strictKeywords?typeof r=="object"&&Object.keys(r).length>0||r===false:e.util.schemaHasRules(r,e.RULES.all)}));if(v){var y=d.baseId;a+=" var "+p+" = errors; var "+f+" = false; ";var g=e.compositeRule;e.compositeRule=d.compositeRule=true;var w=s;if(w){var S,b=-1,E=w.length-1;while(b{"use strict";e.exports=function generate_comment(e,r,t){var a=" ";var i=e.schema[r];var n=e.errSchemaPath+"/"+r;var s=!e.opts.allErrors;var o=e.util.toQuotedString(i);if(e.opts.$comment===true){a+=" console.log("+o+");"}else if(typeof e.opts.$comment=="function"){a+=" self._opts.$comment("+o+", "+e.util.toQuotedString(n)+", validate.root.schema);"}return a}},5901:e=>{"use strict";e.exports=function generate_const(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!p){a+=" var schema"+i+" = validate.schema"+o+";"}a+="var "+f+" = equal("+c+", schema"+i+"); if (!"+f+") { ";var h=h||[];h.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+i+" } ";if(e.opts.messages!==false){a+=" , message: 'should be equal to constant' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var m=a;a=h.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+m+"]); "}else{a+=" validate.errors = ["+m+"]; return false; "}}else{a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" }";if(u){a+=" else { "}return a}},4073:e=>{"use strict";e.exports=function generate_contains(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v="i"+i,y=d.dataLevel=e.dataLevel+1,g="data"+y,w=e.baseId,S=e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all);a+="var "+p+" = errors;var "+f+";";if(S){var b=e.compositeRule;e.compositeRule=d.compositeRule=true;d.schema=s;d.schemaPath=o;d.errSchemaPath=l;a+=" var "+m+" = false; for (var "+v+" = 0; "+v+" < "+c+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var E=c+"["+v+"]";d.dataPathArr[y]=v;var P=e.validate(d);d.baseId=w;if(e.util.varOccurences(P,g)<2){a+=" "+e.util.varReplace(P,g,E)+" "}else{a+=" var "+g+" = "+E+"; "+P+" "}a+=" if ("+m+") break; } ";e.compositeRule=d.compositeRule=b;a+=" "+h+" if (!"+m+") {"}else{a+=" if ("+c+".length == 0) {"}var _=_||[];_.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should contain a valid item' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var x=a;a=_.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+x+"]); "}else{a+=" validate.errors = ["+x+"]; return false; "}}else{a+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { ";if(S){a+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "}if(e.opts.allErrors){a+=" } "}return a}},5809:e=>{"use strict";e.exports=function generate_custom(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p="valid"+i;var d="errs__"+i;var h=e.opts.$data&&s&&s.$data,m;if(h){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";m="schema"+i}else{m=s}var v=this,y="definition"+i,g=v.definition,w="";var S,b,E,P,_;if(h&&g.$data){_="keywordValidate"+i;var x=g.validateSchema;a+=" var "+y+" = RULES.custom['"+r+"'].definition; var "+_+" = "+y+".validate;"}else{P=e.useCustomRule(v,s,e.schema,e);if(!P)return;m="validate.schema"+o;_=P.code;S=g.compile;b=g.inline;E=g.macro}var O=_+".errors",k="i"+i,C="ruleErr"+i,R=g.async;if(R&&!e.async)throw new Error("async keyword in sync schema");if(!(b||E)){a+=""+O+" = null;"}a+="var "+d+" = errors;var "+p+";";if(h&&g.$data){w+="}";a+=" if ("+m+" === undefined) { "+p+" = true; } else { ";if(x){w+="}";a+=" "+p+" = "+y+".validateSchema("+m+"); if ("+p+") { "}}if(b){if(g.statements){a+=" "+P.validate+" "}else{a+=" "+p+" = "+P.validate+"; "}}else if(E){var A=e.util.copy(e);var w="";A.level++;var F="valid"+A.level;A.schema=P.validate;A.schemaPath="";var D=e.compositeRule;e.compositeRule=A.compositeRule=true;var I=e.validate(A).replace(/validate\.schema/g,_);e.compositeRule=A.compositeRule=D;a+=" "+I}else{var j=j||[];j.push(a);a="";a+=" "+_+".call( ";if(e.opts.passContext){a+="this"}else{a+="self"}if(S||g.schema===false){a+=" , "+f+" "}else{a+=" , "+m+" , "+f+" , validate.schema"+e.schemaPath+" "}a+=" , (dataPath || '')";if(e.errorPath!='""'){a+=" + "+e.errorPath}var T=n?"data"+(n-1||""):"parentData",$=n?e.dataPathArr[n]:"parentDataProperty";a+=" , "+T+" , "+$+" , rootData ) ";var N=a;a=j.pop();if(g.errors===false){a+=" "+p+" = ";if(R){a+="await "}a+=""+N+"; "}else{if(R){O="customErrors"+i;a+=" var "+O+" = null; try { "+p+" = await "+N+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+O+" = e.errors; else throw e; } "}else{a+=" "+O+" = null; "+p+" = "+N+"; "}}}if(g.modifying){a+=" if ("+T+") "+f+" = "+T+"["+$+"];"}a+=""+w;if(g.valid){if(u){a+=" if (true) { "}}else{a+=" if ( ";if(g.valid===undefined){a+=" !";if(E){a+=""+F}else{a+=""+p}}else{a+=" "+!g.valid+" "}a+=") { ";c=v.keyword;var j=j||[];j.push(a);a="";var j=j||[];j.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+v.keyword+"' } ";if(e.opts.messages!==false){a+=" , message: 'should pass \""+v.keyword+"\" keyword validation' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var L=a;a=j.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+L+"]); "}else{a+=" validate.errors = ["+L+"]; return false; "}}else{a+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var M=a;a=j.pop();if(b){if(g.errors){if(g.errors!="full"){a+=" for (var "+k+"="+d+"; "+k+"{"use strict";e.exports=function generate_dependencies(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;var m={},v={},y=e.opts.ownProperties;for(b in s){if(b=="__proto__")continue;var g=s[b];var w=Array.isArray(g)?v:m;w[b]=g}a+="var "+f+" = errors;";var S=e.errorPath;a+="var missing"+i+";";for(var b in v){w=v[b];if(w.length){a+=" if ( "+c+e.util.getProperty(b)+" !== undefined ";if(y){a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(b)+"') "}if(u){a+=" && ( ";var E=w;if(E){var P,_=-1,x=E.length-1;while(_0||g===false:e.util.schemaHasRules(g,e.RULES.all)){a+=" "+h+" = true; if ( "+c+e.util.getProperty(b)+" !== undefined ";if(y){a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(b)+"') "}a+=") { ";p.schema=g;p.schemaPath=o+e.util.getProperty(b);p.errSchemaPath=l+"/"+e.util.escapeFragment(b);a+=" "+e.validate(p)+" ";p.baseId=T;a+=" } ";if(u){a+=" if ("+h+") { ";d+="}"}}}if(u){a+=" "+d+" if ("+f+" == errors) {"}return a}},8994:e=>{"use strict";e.exports=function generate_enum(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}var h="i"+i,m="schema"+i;if(!p){a+=" var "+m+" = validate.schema"+o+";"}a+="var "+f+";";if(p){a+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"}a+=""+f+" = false;for (var "+h+"=0; "+h+"<"+m+".length; "+h+"++) if (equal("+c+", "+m+"["+h+"])) { "+f+" = true; break; }";if(p){a+=" } "}a+=" if (!"+f+") { ";var v=v||[];v.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+i+" } ";if(e.opts.messages!==false){a+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var y=a;a=v.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+y+"]); "}else{a+=" validate.errors = ["+y+"]; return false; "}}else{a+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" }";if(u){a+=" else { "}return a}},5138:e=>{"use strict";e.exports=function generate_format(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");if(e.opts.format===false){if(u){a+=" if (true) { "}return a}var f=e.opts.$data&&s&&s.$data,p;if(f){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";p="schema"+i}else{p=s}var d=e.opts.unknownFormats,h=Array.isArray(d);if(f){var m="format"+i,v="isObject"+i,y="formatType"+i;a+=" var "+m+" = formats["+p+"]; var "+v+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+y+" = "+v+" && "+m+".type || 'string'; if ("+v+") { ";if(e.async){a+=" var async"+i+" = "+m+".async; "}a+=" "+m+" = "+m+".validate; } if ( ";if(f){a+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "}a+=" (";if(d!="ignore"){a+=" ("+p+" && !"+m+" ";if(h){a+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "}a+=") || "}a+=" ("+m+" && "+y+" == '"+t+"' && !(typeof "+m+" == 'function' ? ";if(e.async){a+=" (async"+i+" ? await "+m+"("+c+") : "+m+"("+c+")) "}else{a+=" "+m+"("+c+") "}a+=" : "+m+".test("+c+"))))) {"}else{var m=e.formats[s];if(!m){if(d=="ignore"){e.logger.warn('unknown format "'+s+'" ignored in schema at path "'+e.errSchemaPath+'"');if(u){a+=" if (true) { "}return a}else if(h&&d.indexOf(s)>=0){if(u){a+=" if (true) { "}return a}else{throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}}var v=typeof m=="object"&&!(m instanceof RegExp)&&m.validate;var y=v&&m.type||"string";if(v){var g=m.async===true;m=m.validate}if(y!=t){if(u){a+=" if (true) { "}return a}if(g){if(!e.async)throw new Error("async format in sync schema");var w="formats"+e.util.getProperty(s)+".validate";a+=" if (!(await "+w+"("+c+"))) { "}else{a+=" if (! ";var w="formats"+e.util.getProperty(s);if(v)w+=".validate";if(typeof m=="function"){a+=" "+w+"("+c+") "}else{a+=" "+w+".test("+c+") "}a+=") { "}}var S=S||[];S.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ";if(f){a+=""+p}else{a+=""+e.util.toQuotedString(s)}a+=" } ";if(e.opts.messages!==false){a+=" , message: 'should match format \"";if(f){a+="' + "+p+" + '"}else{a+=""+e.util.escapeQuotes(s)}a+="\"' "}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+o}else{a+=""+e.util.toQuotedString(s)}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var b=a;a=S.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+b+"]); "}else{a+=" validate.errors = ["+b+"]; return false; "}}else{a+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}return a}},8178:e=>{"use strict";e.exports=function generate_if(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);d.level++;var h="valid"+d.level;var m=e.schema["then"],v=e.schema["else"],y=m!==undefined&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===false:e.util.schemaHasRules(m,e.RULES.all)),g=v!==undefined&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===false:e.util.schemaHasRules(v,e.RULES.all)),w=d.baseId;if(y||g){var S;d.createErrors=false;d.schema=s;d.schemaPath=o;d.errSchemaPath=l;a+=" var "+p+" = errors; var "+f+" = true; ";var b=e.compositeRule;e.compositeRule=d.compositeRule=true;a+=" "+e.validate(d)+" ";d.baseId=w;d.createErrors=true;a+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ";e.compositeRule=d.compositeRule=b;if(y){a+=" if ("+h+") { ";d.schema=e.schema["then"];d.schemaPath=e.schemaPath+".then";d.errSchemaPath=e.errSchemaPath+"/then";a+=" "+e.validate(d)+" ";d.baseId=w;a+=" "+f+" = "+h+"; ";if(y&&g){S="ifClause"+i;a+=" var "+S+" = 'then'; "}else{S="'then'"}a+=" } ";if(g){a+=" else { "}}else{a+=" if (!"+h+") { "}if(g){d.schema=e.schema["else"];d.schemaPath=e.schemaPath+".else";d.errSchemaPath=e.errSchemaPath+"/else";a+=" "+e.validate(d)+" ";d.baseId=w;a+=" "+f+" = "+h+"; ";if(y&&g){S="ifClause"+i;a+=" var "+S+" = 'else'; "}else{S="'else'"}a+=" } "}a+=" if (!"+f+") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+S+" } ";if(e.opts.messages!==false){a+=" , message: 'should match \"' + "+S+" + '\" schema' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}a+=" } ";if(u){a+=" else { "}}else{if(u){a+=" if (true) { "}}return a}},120:(e,r,t)=>{"use strict";e.exports={$ref:t(1335),allOf:t(6721),anyOf:t(2755),$comment:t(1777),const:t(5901),contains:t(4073),dependencies:t(6442),enum:t(8994),format:t(5138),if:t(8178),items:t(4801),maximum:t(8558),minimum:t(8558),maxItems:t(1708),minItems:t(1708),maxLength:t(6913),minLength:t(6913),maxProperties:t(7921),minProperties:t(7921),multipleOf:t(6101),not:t(419),oneOf:t(4135),pattern:t(3936),properties:t(9909),propertyNames:t(5222),required:t(7587),uniqueItems:t(6599),validate:t(5073)}},4801:e=>{"use strict";e.exports=function generate_items(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v="i"+i,y=d.dataLevel=e.dataLevel+1,g="data"+y,w=e.baseId;a+="var "+p+" = errors;var "+f+";";if(Array.isArray(s)){var S=e.schema.additionalItems;if(S===false){a+=" "+f+" = "+c+".length <= "+s.length+"; ";var b=l;l=e.errSchemaPath+"/additionalItems";a+=" if (!"+f+") { ";var E=E||[];E.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+s.length+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have more than "+s.length+" items' "}if(e.opts.verbose){a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var P=a;a=E.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+P+"]); "}else{a+=" validate.errors = ["+P+"]; return false; "}}else{a+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";l=b;if(u){h+="}";a+=" else { "}}var _=s;if(_){var x,O=-1,k=_.length-1;while(O0||x===false:e.util.schemaHasRules(x,e.RULES.all)){a+=" "+m+" = true; if ("+c+".length > "+O+") { ";var C=c+"["+O+"]";d.schema=x;d.schemaPath=o+"["+O+"]";d.errSchemaPath=l+"/"+O;d.errorPath=e.util.getPathExpr(e.errorPath,O,e.opts.jsonPointers,true);d.dataPathArr[y]=O;var R=e.validate(d);d.baseId=w;if(e.util.varOccurences(R,g)<2){a+=" "+e.util.varReplace(R,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+R+" "}a+=" } ";if(u){a+=" if ("+m+") { ";h+="}"}}}}if(typeof S=="object"&&(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===false:e.util.schemaHasRules(S,e.RULES.all))){d.schema=S;d.schemaPath=e.schemaPath+".additionalItems";d.errSchemaPath=e.errSchemaPath+"/additionalItems";a+=" "+m+" = true; if ("+c+".length > "+s.length+") { for (var "+v+" = "+s.length+"; "+v+" < "+c+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var C=c+"["+v+"]";d.dataPathArr[y]=v;var R=e.validate(d);d.baseId=w;if(e.util.varOccurences(R,g)<2){a+=" "+e.util.varReplace(R,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+R+" "}if(u){a+=" if (!"+m+") break; "}a+=" } } ";if(u){a+=" if ("+m+") { ";h+="}"}}}else if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){d.schema=s;d.schemaPath=o;d.errSchemaPath=l;a+=" for (var "+v+" = "+0+"; "+v+" < "+c+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var C=c+"["+v+"]";d.dataPathArr[y]=v;var R=e.validate(d);d.baseId=w;if(e.util.varOccurences(R,g)<2){a+=" "+e.util.varReplace(R,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+R+" "}if(u){a+=" if (!"+m+") break; "}a+=" }"}if(u){a+=" "+h+" if ("+p+" == errors) {"}return a}},6101:e=>{"use strict";e.exports=function generate_multipleOf(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f=e.opts.$data&&s&&s.$data,p;if(f){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";p="schema"+i}else{p=s}if(!(f||typeof s=="number")){throw new Error(r+" must be number")}a+="var division"+i+";if (";if(f){a+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "}a+=" (division"+i+" = "+c+" / "+p+", ";if(e.opts.multipleOfPrecision){a+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" "}else{a+=" division"+i+" !== parseInt(division"+i+") "}a+=" ) ";if(f){a+=" ) "}a+=" ) { ";var d=d||[];d.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+p+" } ";if(e.opts.messages!==false){a+=" , message: 'should be multiple of ";if(f){a+="' + "+p}else{a+=""+p+"'"}}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var h=a;a=d.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+h+"]); "}else{a+=" validate.errors = ["+h+"]; return false; "}}else{a+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},419:e=>{"use strict";e.exports=function generate_not(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);p.level++;var d="valid"+p.level;if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){p.schema=s;p.schemaPath=o;p.errSchemaPath=l;a+=" var "+f+" = errors; ";var h=e.compositeRule;e.compositeRule=p.compositeRule=true;p.createErrors=false;var m;if(p.opts.allErrors){m=p.opts.allErrors;p.opts.allErrors=false}a+=" "+e.validate(p)+" ";p.createErrors=true;if(m)p.opts.allErrors=m;e.compositeRule=p.compositeRule=h;a+=" if ("+d+") { ";var v=v||[];v.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should NOT be valid' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var y=a;a=v.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+y+"]); "}else{a+=" validate.errors = ["+y+"]; return false; "}}else{a+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ";if(e.opts.allErrors){a+=" } "}}else{a+=" var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should NOT be valid' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(u){a+=" if (false) { "}}return a}},4135:e=>{"use strict";e.exports=function generate_oneOf(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v=d.baseId,y="prevValid"+i,g="passingSchemas"+i;a+="var "+p+" = errors , "+y+" = false , "+f+" = false , "+g+" = null; ";var w=e.compositeRule;e.compositeRule=d.compositeRule=true;var S=s;if(S){var b,E=-1,P=S.length-1;while(E0||b===false:e.util.schemaHasRules(b,e.RULES.all)){d.schema=b;d.schemaPath=o+"["+E+"]";d.errSchemaPath=l+"/"+E;a+=" "+e.validate(d)+" ";d.baseId=v}else{a+=" var "+m+" = true; "}if(E){a+=" if ("+m+" && "+y+") { "+f+" = false; "+g+" = ["+g+", "+E+"]; } else { ";h+="}"}a+=" if ("+m+") { "+f+" = "+y+" = true; "+g+" = "+E+"; }"}}e.compositeRule=d.compositeRule=w;a+=""+h+"if (!"+f+") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+g+" } ";if(e.opts.messages!==false){a+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}a+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }";if(e.opts.allErrors){a+=" } "}return a}},3936:e=>{"use strict";e.exports=function generate_pattern(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f=e.opts.$data&&s&&s.$data,p;if(f){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";p="schema"+i}else{p=s}var d=f?"(new RegExp("+p+"))":e.usePattern(s);a+="if ( ";if(f){a+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "}a+=" !"+d+".test("+c+") ) { ";var h=h||[];h.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ";if(f){a+=""+p}else{a+=""+e.util.toQuotedString(s)}a+=" } ";if(e.opts.messages!==false){a+=" , message: 'should match pattern \"";if(f){a+="' + "+p+" + '"}else{a+=""+e.util.escapeQuotes(s)}a+="\"' "}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+o}else{a+=""+e.util.toQuotedString(s)}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var m=a;a=h.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+m+"]); "}else{a+=" validate.errors = ["+m+"]; return false; "}}else{a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},9909:e=>{"use strict";e.exports=function generate_properties(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;var m="key"+i,v="idx"+i,y=p.dataLevel=e.dataLevel+1,g="data"+y,w="dataProperties"+i;var S=Object.keys(s||{}).filter(notProto),b=e.schema.patternProperties||{},E=Object.keys(b).filter(notProto),P=e.schema.additionalProperties,_=S.length||E.length,x=P===false,O=typeof P=="object"&&Object.keys(P).length,k=e.opts.removeAdditional,C=x||O||k,R=e.opts.ownProperties,A=e.baseId;var F=e.schema.required;if(F&&!(e.opts.$data&&F.$data)&&F.length8){a+=" || validate.schema"+o+".hasOwnProperty("+m+") "}else{var I=S;if(I){var j,T=-1,$=I.length-1;while(T<$){j=I[T+=1];a+=" || "+m+" == "+e.util.toQuotedString(j)+" "}}}}if(E.length){var N=E;if(N){var L,M=-1,q=N.length-1;while(M0||X===false:e.util.schemaHasRules(X,e.RULES.all)){var ee=e.util.getProperty(j),Q=c+ee,re=K&&X.default!==undefined;p.schema=X;p.schemaPath=o+ee;p.errSchemaPath=l+"/"+e.util.escapeFragment(j);p.errorPath=e.util.getPath(e.errorPath,j,e.opts.jsonPointers);p.dataPathArr[y]=e.util.toQuotedString(j);var Y=e.validate(p);p.baseId=A;if(e.util.varOccurences(Y,g)<2){Y=e.util.varReplace(Y,g,Q);var te=Q}else{var te=g;a+=" var "+g+" = "+Q+"; "}if(re){a+=" "+Y+" "}else{if(D&&D[j]){a+=" if ( "+te+" === undefined ";if(R){a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "}a+=") { "+h+" = false; ";var U=e.errorPath,B=l,ae=e.util.escapeQuotes(j);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(U,j,e.opts.jsonPointers)}l=e.errSchemaPath+"/required";var z=z||[];z.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+ae+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+ae+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var V=a;a=z.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+V+"]); "}else{a+=" validate.errors = ["+V+"]; return false; "}}else{a+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}l=B;e.errorPath=U;a+=" } else { "}else{if(u){a+=" if ( "+te+" === undefined ";if(R){a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "}a+=") { "+h+" = true; } else { "}else{a+=" if ("+te+" !== undefined ";if(R){a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "}a+=" ) { "}}a+=" "+Y+" } "}}if(u){a+=" if ("+h+") { ";d+="}"}}}}if(E.length){var ie=E;if(ie){var L,ne=-1,se=ie.length-1;while(ne0||X===false:e.util.schemaHasRules(X,e.RULES.all)){p.schema=X;p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(L);p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(L);if(R){a+=" "+w+" = "+w+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+w+".length; "+v+"++) { var "+m+" = "+w+"["+v+"]; "}else{a+=" for (var "+m+" in "+c+") { "}a+=" if ("+e.usePattern(L)+".test("+m+")) { ";p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var Q=c+"["+m+"]";p.dataPathArr[y]=m;var Y=e.validate(p);p.baseId=A;if(e.util.varOccurences(Y,g)<2){a+=" "+e.util.varReplace(Y,g,Q)+" "}else{a+=" var "+g+" = "+Q+"; "+Y+" "}if(u){a+=" if (!"+h+") break; "}a+=" } ";if(u){a+=" else "+h+" = true; "}a+=" } ";if(u){a+=" if ("+h+") { ";d+="}"}}}}}if(u){a+=" "+d+" if ("+f+" == errors) {"}return a}},5222:e=>{"use strict";e.exports=function generate_propertyNames(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;a+="var "+f+" = errors;";if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){p.schema=s;p.schemaPath=o;p.errSchemaPath=l;var m="key"+i,v="idx"+i,y="i"+i,g="' + "+m+" + '",w=p.dataLevel=e.dataLevel+1,S="data"+w,b="dataProperties"+i,E=e.opts.ownProperties,P=e.baseId;if(E){a+=" var "+b+" = undefined; "}if(E){a+=" "+b+" = "+b+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+m+" = "+b+"["+v+"]; "}else{a+=" for (var "+m+" in "+c+") { "}a+=" var startErrs"+i+" = errors; ";var _=m;var x=e.compositeRule;e.compositeRule=p.compositeRule=true;var O=e.validate(p);p.baseId=P;if(e.util.varOccurences(O,S)<2){a+=" "+e.util.varReplace(O,S,_)+" "}else{a+=" var "+S+" = "+_+"; "+O+" "}e.compositeRule=p.compositeRule=x;a+=" if (!"+h+") { for (var "+y+"=startErrs"+i+"; "+y+"{"use strict";e.exports=function generate_ref(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var u="data"+(n||"");var c="valid"+i;var f,p;if(s=="#"||s=="#/"){if(e.isRoot){f=e.async;p="validate"}else{f=e.root.schema.$async===true;p="root.refVal[0]"}}else{var d=e.resolveRef(e.baseId,s,e.isRoot);if(d===undefined){var h=e.MissingRefError.message(e.baseId,s);if(e.opts.missingRefs=="fail"){e.logger.error(h);var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(o)+" , params: { ref: '"+e.util.escapeQuotes(s)+"' } ";if(e.opts.messages!==false){a+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(s)+"' "}if(e.opts.verbose){a+=" , schema: "+e.util.toQuotedString(s)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&l){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(l){a+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(h);if(l){a+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,s,h)}}else if(d.inline){var y=e.util.copy(e);y.level++;var g="valid"+y.level;y.schema=d.schema;y.schemaPath="";y.errSchemaPath=s;var w=e.validate(y).replace(/validate\.schema/g,d.code);a+=" "+w+" ";if(l){a+=" if ("+g+") { "}}else{f=d.$async===true||e.async&&d.$async!==false;p=d.code}}if(p){var m=m||[];m.push(a);a="";if(e.opts.passContext){a+=" "+p+".call(this, "}else{a+=" "+p+"( "}a+=" "+u+", (dataPath || '')";if(e.errorPath!='""'){a+=" + "+e.errorPath}var S=n?"data"+(n-1||""):"parentData",b=n?e.dataPathArr[n]:"parentDataProperty";a+=" , "+S+" , "+b+", rootData) ";var E=a;a=m.pop();if(f){if(!e.async)throw new Error("async schema referenced by sync schema");if(l){a+=" var "+c+"; "}a+=" try { await "+E+"; ";if(l){a+=" "+c+" = true; "}a+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(l){a+=" "+c+" = false; "}a+=" } ";if(l){a+=" if ("+c+") { "}}else{a+=" if (!"+E+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ";if(l){a+=" else { "}}}return a}},7587:e=>{"use strict";e.exports=function generate_required(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}var h="schema"+i;if(!p){if(s.length0||S===false:e.util.schemaHasRules(S,e.RULES.all)))){m[m.length]=y}}}}else{var m=s}}if(p||m.length){var b=e.errorPath,E=p||m.length>=e.opts.loopRequired,P=e.opts.ownProperties;if(u){a+=" var missing"+i+"; ";if(E){if(!p){a+=" var "+h+" = validate.schema"+o+"; "}var _="i"+i,x="schema"+i+"["+_+"]",O="' + "+x+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(b,x,e.opts.jsonPointers)}a+=" var "+f+" = true; ";if(p){a+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"}a+=" for (var "+_+" = 0; "+_+" < "+h+".length; "+_+"++) { "+f+" = "+c+"["+h+"["+_+"]] !== undefined ";if(P){a+=" && Object.prototype.hasOwnProperty.call("+c+", "+h+"["+_+"]) "}a+="; if (!"+f+") break; } ";if(p){a+=" } "}a+=" if (!"+f+") { ";var k=k||[];k.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+O+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+O+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var C=a;a=k.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+C+"]); "}else{a+=" validate.errors = ["+C+"]; return false; "}}else{a+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { "}else{a+=" if ( ";var R=m;if(R){var A,_=-1,F=R.length-1;while(_{"use strict";e.exports=function generate_uniqueItems(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if((s||p)&&e.opts.uniqueItems!==false){if(p){a+=" var "+f+"; if ("+d+" === false || "+d+" === undefined) "+f+" = true; else if (typeof "+d+" != 'boolean') "+f+" = false; else { "}a+=" var i = "+c+".length , "+f+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,m=Array.isArray(h);if(!h||h=="object"||h=="array"||m&&(h.indexOf("object")>=0||h.indexOf("array")>=0)){a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+c+"[i], "+c+"[j])) { "+f+" = false; break outer; } } } "}else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+c+"[i]; ";var v="checkDataType"+(m?"s":"");a+=" if ("+e.util[v](h,"item",e.opts.strictNumbers,true)+") continue; ";if(m){a+=" if (typeof item == 'string') item = '\"' + item; "}a+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}a+=" } ";if(p){a+=" } "}a+=" if (!"+f+") { ";var y=y||[];y.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var g=a;a=y.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+g+"]); "}else{a+=" validate.errors = ["+g+"]; return false; "}}else{a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}}else{if(u){a+=" if (true) { "}}return a}},5073:e=>{"use strict";e.exports=function generate_validate(e,r,t){var a="";var i=e.schema.$async===true,n=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),s=e.self._getId(e.schema);if(e.opts.strictKeywords){var o=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(o){var l="unknown keyword: "+o;if(e.opts.strictKeywords==="log")e.logger.warn(l);else throw new Error(l)}}if(e.isTop){a+=" var validate = ";if(i){e.async=true;a+="async "}a+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(s&&(e.opts.sourceCode||e.opts.processCode)){a+=" "+("/*# sourceURL="+s+" */")+" "}}if(typeof e.schema=="boolean"||!(n||e.schema.$ref)){var r="false schema";var u=e.level;var c=e.dataLevel;var f=e.schema[r];var p=e.schemaPath+e.util.getProperty(r);var d=e.errSchemaPath+"/"+r;var h=!e.opts.allErrors;var m;var v="data"+(c||"");var y="valid"+u;if(e.schema===false){if(e.isTop){h=true}else{a+=" var "+y+" = false; "}var g=g||[];g.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(m||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'boolean schema is false' "}if(e.opts.verbose){a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}a+=" } "}else{a+=" {} "}var w=a;a=g.pop();if(!e.compositeRule&&h){if(e.async){a+=" throw new ValidationError(["+w+"]); "}else{a+=" validate.errors = ["+w+"]; return false; "}}else{a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(i){a+=" return data; "}else{a+=" validate.errors = null; return true; "}}else{a+=" var "+y+" = true; "}}if(e.isTop){a+=" }; return validate; "}return a}if(e.isTop){var S=e.isTop,u=e.level=0,c=e.dataLevel=0,v="data";e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema));e.baseId=e.baseId||e.rootId;delete e.isTop;e.dataPathArr=[""];if(e.schema.default!==undefined&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}a+=" var vErrors = null; ";a+=" var errors = 0; ";a+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,c=e.dataLevel,v="data"+(c||"");if(s)e.baseId=e.resolve.url(e.baseId,s);if(i&&!e.async)throw new Error("async schema in sync schema");a+=" var errs_"+u+" = errors;"}var y="valid"+u,h=!e.opts.allErrors,E="",P="";var m;var _=e.schema.type,x=Array.isArray(_);if(_&&e.opts.nullable&&e.schema.nullable===true){if(x){if(_.indexOf("null")==-1)_=_.concat("null")}else if(_!="null"){_=[_,"null"];x=true}}if(x&&_.length==1){_=_[0];x=false}if(e.schema.$ref&&n){if(e.opts.extendRefs=="fail"){throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)')}else if(e.opts.extendRefs!==true){n=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){a+=" "+e.RULES.all.$comment.code(e,"$comment")}if(_){if(e.opts.coerceTypes){var O=e.util.coerceToTypes(e.opts.coerceTypes,_)}var k=e.RULES.types[_];if(O||x||k===true||k&&!$shouldUseGroup(k)){var p=e.schemaPath+".type",d=e.errSchemaPath+"/type";var p=e.schemaPath+".type",d=e.errSchemaPath+"/type",C=x?"checkDataTypes":"checkDataType";a+=" if ("+e.util[C](_,v,e.opts.strictNumbers,true)+") { ";if(O){var R="dataType"+u,A="coerced"+u;a+=" var "+R+" = typeof "+v+"; var "+A+" = undefined; ";if(e.opts.coerceTypes=="array"){a+=" if ("+R+" == 'object' && Array.isArray("+v+") && "+v+".length == 1) { "+v+" = "+v+"[0]; "+R+" = typeof "+v+"; if ("+e.util.checkDataType(e.schema.type,v,e.opts.strictNumbers)+") "+A+" = "+v+"; } "}a+=" if ("+A+" !== undefined) ; ";var F=O;if(F){var D,I=-1,j=F.length-1;while(I{"use strict";var a=/^[a-z_$][a-z0-9_$-]*$/i;var i=t(5809);var n=t(1324);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,r){var t=this.RULES;if(t.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!a.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,true);var n=r.type;if(Array.isArray(n)){for(var s=0;s{ +(()=>{var e={9450:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const i=t(8829);const n=a(t(8436));const s=a(t(2191));const o=a(t(3326));const l=a(t(9150));const u=a(t(9268));async function main(){const e=(0,n.default)();const r=(0,i.getState)("is_post");if(r==="true")return(0,u.default)(e);(0,i.saveState)("is_post","true");await(0,s.default)(e);console.log("Installation Completed!");(0,o.default)(e);(0,l.default)(e)}main().catch((e=>{console.error(e);(0,i.setFailed)(e)}))},8436:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.getInputs=void 0;const i=t(8829);const n=a(t(6906));const s=t(4264);const o={required:true};const parseInputPath=e=>(0,n.default)((0,i.getInput)(e,o));const getInputs=()=>({version:(0,i.getInput)("version"),dest:parseInputPath("dest"),runInstall:(0,s.parseRunInstall)("run_install"),packageJsonFile:parseInputPath("package_json_file"),standalone:(0,i.getBooleanInput)("standalone")});r.getInputs=getInputs;r["default"]=r.getInputs},4264:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.parseRunInstall=void 0;const i=t(8829);const n=a(t(4376));const s=t(1236);const o=a(t(7282));const l=a(t(5379));const u={required:true};function parseRunInstall(e){const r=(0,s.load)((0,i.getInput)(e,u));const t=new n.default({allErrors:true});const a=t.compile(l.default);if(!a(r)){for(const e of a.errors){(0,i.error)(`with.run_install${e.dataPath}: ${e.message}`)}return o.default.exit(1)}if(!r)return[];if(r===true)return[{recursive:true}];if(Array.isArray(r))return r;return[r]}r.parseRunInstall=parseRunInstall},2191:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.install=r.runSelfInstaller=void 0;const i=t(8829);const n=a(t(5907));r.runSelfInstaller=n.default;async function install(e){(0,i.startGroup)("Running self-installer...");const r=await(0,n.default)(e);(0,i.endGroup)();if(r){return(0,i.setFailed)(`Something went wrong, self-installer exits with code ${r}`)}}r.install=install;r["default"]=install},5907:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.runSelfInstaller=void 0;const i=t(8829);const n=t(2081);const s=t(1690);const o=a(t(1017));const l=t(7282);async function runSelfInstaller(e){const{version:r,dest:t,packageJsonFile:a,standalone:u}=e;await(0,s.remove)(t);const c=o.default.join(t,"package.json");await(0,s.ensureFile)(c);await(0,s.writeFile)(c,JSON.stringify({private:true}));const f=await readTarget({version:r,packageJsonFile:a,standalone:u});const p=(0,n.spawn)(l.execPath,[o.default.join(__dirname,"pnpm.js"),"install",f,"--no-lockfile"],{cwd:t,stdio:["pipe","inherit","inherit"]});const d=await new Promise(((e,r)=>{p.on("error",r);p.on("close",e)}));if(d===0){const e=o.default.join(t,"node_modules/.bin");(0,i.addPath)(e);(0,i.exportVariable)("PNPM_HOME",e)}return d}r.runSelfInstaller=runSelfInstaller;async function readTarget(e){const{version:r,packageJsonFile:t,standalone:a}=e;if(r)return`${a?"@pnpm/exe":"pnpm"}@${r}`;const{GITHUB_WORKSPACE:i}=process.env;if(!i){throw new Error(`No workspace is found.\nIf you're intended to let pnpm/action-setup read preferred pnpm version from the "packageManager" field in the package.json file,\nplease run the actions/checkout before pnpm/action-setup.\nOtherwise, please specify the pnpm version in the action configuration.`)}const{packageManager:n}=JSON.parse(await(0,s.readFile)(o.default.join(i,t),"utf8"));if(typeof n!=="string"){throw new Error(`No pnpm version is specified.\nPlease specify it by one of the following ways:\n - in the GitHub Action config with the key "version"\n - in the package.json with the key "packageManager"`)}if(!n.startsWith("pnpm@")){throw new Error("Invalid packageManager field in package.json")}if(a){return n.replace("pnpm@","@pnpm/exe@")}return n}r["default"]=runSelfInstaller},3326:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.setOutputs=void 0;const a=t(8829);const i=t(3763);function setOutputs(e){const r=(0,i.getBinDest)(e);(0,a.addPath)(r);(0,a.setOutput)("dest",e.dest);(0,a.setOutput)("bin_dest",r)}r.setOutputs=setOutputs;r["default"]=setOutputs},9150:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.runPnpmInstall=void 0;const a=t(8829);const i=t(2081);const n=t(3763);function runPnpmInstall(e){const r=(0,n.patchPnpmEnv)(e);for(const t of e.runInstall){const e=["install"];if(t.recursive)e.unshift("recursive");if(t.args)e.push(...t.args);const n=["pnpm",...e].join(" ");(0,a.startGroup)(`Running ${n}...`);const{error:s,status:o}=(0,i.spawnSync)("pnpm",e,{stdio:"inherit",cwd:t.cwd,shell:true,env:r});(0,a.endGroup)();if(s){(0,a.setFailed)(s);continue}if(o){(0,a.setFailed)(`Command ${n} (cwd: ${t.cwd}) exits with status ${o}`);continue}}}r.runPnpmInstall=runPnpmInstall;r["default"]=runPnpmInstall},9268:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.pruneStore=void 0;const a=t(8829);const i=t(2081);const n=t(3763);function pruneStore(e){if(e.runInstall.length===0){console.log("Pruning is unnecessary.");return}(0,a.startGroup)("Running pnpm store prune...");const{error:r,status:t}=(0,i.spawnSync)("pnpm",["store","prune"],{stdio:"inherit",shell:true,env:(0,n.patchPnpmEnv)(e)});(0,a.endGroup)();if(r){(0,a.warning)(r);return}if(t){(0,a.warning)(`command pnpm store prune exits with code ${t}`);return}}r.pruneStore=pruneStore;r["default"]=pruneStore},3763:function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.patchPnpmEnv=r.getBinDest=void 0;const i=a(t(1017));const n=a(t(7282));const getBinDest=e=>i.default.join(e.dest,"node_modules",".bin");r.getBinDest=getBinDest;const patchPnpmEnv=e=>({...n.default.env,PATH:(0,r.getBinDest)(e)+i.default.delimiter+n.default.env.PATH});r.patchPnpmEnv=patchPnpmEnv},2624:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.issue=r.issueCommand=void 0;const s=n(t(2037));const o=t(3757);function issueCommand(e,r,t){const a=new Command(e,r,t);process.stdout.write(a.toString()+s.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const l="::";class Command{constructor(e,r,t){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=t}toString(){let e=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const a=this.properties[t];if(a){if(r){r=false}else{e+=","}e+=`${t}=${escapeProperty(a)}`}}}}e+=`${l}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},8829:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};var s=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.getIDToken=r.getState=r.saveState=r.group=r.endGroup=r.startGroup=r.info=r.notice=r.warning=r.error=r.debug=r.isDebug=r.setFailed=r.setCommandEcho=r.setOutput=r.getBooleanInput=r.getMultilineInput=r.getInput=r.addPath=r.setSecret=r.exportVariable=r.ExitCode=void 0;const o=t(2624);const l=t(6253);const u=t(3757);const c=n(t(2037));const f=n(t(1017));const p=t(3132);var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const t=u.toCommandValue(r);process.env[e]=t;const a=process.env["GITHUB_ENV"]||"";if(a){return l.issueFileCommand("ENV",l.prepareKeyValueMessage(e,r))}o.issueCommand("set-env",{name:e},t)}r.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){l.issueFileCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${f.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!t){throw new Error(`Input required and not supplied: ${e}`)}if(r&&r.trimWhitespace===false){return t}return t.trim()}r.getInput=getInput;function getMultilineInput(e,r){const t=getInput(e,r).split("\n").filter((e=>e!==""));if(r&&r.trimWhitespace===false){return t}return t.map((e=>e.trim()))}r.getMultilineInput=getMultilineInput;function getBooleanInput(e,r){const t=["true","True","TRUE"];const a=["false","False","FALSE"];const i=getInput(e,r);if(t.includes(i))return true;if(a.includes(i))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\``)}r.getBooleanInput=getBooleanInput;function setOutput(e,r){const t=process.env["GITHUB_OUTPUT"]||"";if(t){return l.issueFileCommand("OUTPUT",l.prepareKeyValueMessage(e,r))}process.stdout.write(c.EOL);o.issueCommand("set-output",{name:e},u.toCommandValue(r))}r.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=d.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}r.debug=debug;function error(e,r={}){o.issueCommand("error",u.toCommandProperties(r),e instanceof Error?e.toString():e)}r.error=error;function warning(e,r={}){o.issueCommand("warning",u.toCommandProperties(r),e instanceof Error?e.toString():e)}r.warning=warning;function notice(e,r={}){o.issueCommand("notice",u.toCommandProperties(r),e instanceof Error?e.toString():e)}r.notice=notice;function info(e){process.stdout.write(e+c.EOL)}r.info=info;function startGroup(e){o.issue("group",e)}r.startGroup=startGroup;function endGroup(){o.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return s(this,void 0,void 0,(function*(){startGroup(e);let t;try{t=yield r()}finally{endGroup()}return t}))}r.group=group;function saveState(e,r){const t=process.env["GITHUB_STATE"]||"";if(t){return l.issueFileCommand("STATE",l.prepareKeyValueMessage(e,r))}o.issueCommand("save-state",{name:e},u.toCommandValue(r))}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}r.getIDToken=getIDToken;var h=t(3738);Object.defineProperty(r,"summary",{enumerable:true,get:function(){return h.summary}});var m=t(3738);Object.defineProperty(r,"markdownSummary",{enumerable:true,get:function(){return m.markdownSummary}});var v=t(9405);Object.defineProperty(r,"toPosixPath",{enumerable:true,get:function(){return v.toPosixPath}});Object.defineProperty(r,"toWin32Path",{enumerable:true,get:function(){return v.toWin32Path}});Object.defineProperty(r,"toPlatformPath",{enumerable:true,get:function(){return v.toPlatformPath}})},6253:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.prepareKeyValueMessage=r.issueFileCommand=void 0;const s=n(t(7147));const o=n(t(2037));const l=t(1172);const u=t(3757);function issueFileCommand(e,r){const t=process.env[`GITHUB_${e}`];if(!t){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(t)){throw new Error(`Missing file at path: ${t}`)}s.appendFileSync(t,`${u.toCommandValue(r)}${o.EOL}`,{encoding:"utf8"})}r.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,r){const t=`ghadelimiter_${l.v4()}`;const a=u.toCommandValue(r);if(e.includes(t)){throw new Error(`Unexpected input: name should not contain the delimiter "${t}"`)}if(a.includes(t)){throw new Error(`Unexpected input: value should not contain the delimiter "${t}"`)}return`${e}<<${t}${o.EOL}${a}${o.EOL}${t}`}r.prepareKeyValueMessage=prepareKeyValueMessage},3132:function(e,r,t){"use strict";var a=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.OidcClient=void 0;const i=t(6128);const n=t(6236);const s=t(8829);class OidcClient{static createHttpClient(e=true,r=10){const t={allowRetries:e,maxRetries:r};return new i.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(OidcClient.getRequestToken())],t)}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 r;return a(this,void 0,void 0,(function*(){const t=OidcClient.createHttpClient();const a=yield t.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const i=(r=a.result)===null||r===void 0?void 0:r.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return a(this,void 0,void 0,(function*(){try{let r=OidcClient.getIDTokenUrl();if(e){const t=encodeURIComponent(e);r=`${r}&audience=${t}`}s.debug(`ID token url is ${r}`);const t=yield OidcClient.getCall(r);s.setSecret(t);return t}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}r.OidcClient=OidcClient},9405:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.toPlatformPath=r.toWin32Path=r.toPosixPath=void 0;const s=n(t(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}r.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}r.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}r.toPlatformPath=toPlatformPath},3738:function(e,r,t){"use strict";var a=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.summary=r.markdownSummary=r.SUMMARY_DOCS_URL=r.SUMMARY_ENV_VAR=void 0;const i=t(2037);const n=t(7147);const{access:s,appendFile:o,writeFile:l}=n.promises;r.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";r.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 a(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[r.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${r.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield s(e,n.constants.R_OK|n.constants.W_OK)}catch(r){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,r,t={}){const a=Object.entries(t).map((([e,r])=>` ${e}="${r}"`)).join("");if(!r){return`<${e}${a}>`}return`<${e}${a}>${r}`}write(e){return a(this,void 0,void 0,(function*(){const r=!!(e===null||e===void 0?void 0:e.overwrite);const t=yield this.filePath();const a=r?l:o;yield a(t,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return a(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,r=false){this._buffer+=e;return r?this.addEOL():this}addEOL(){return this.addRaw(i.EOL)}addCodeBlock(e,r){const t=Object.assign({},r&&{lang:r});const a=this.wrap("pre",this.wrap("code",e),t);return this.addRaw(a).addEOL()}addList(e,r=false){const t=r?"ol":"ul";const a=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(t,a);return this.addRaw(i).addEOL()}addTable(e){const r=e.map((e=>{const r=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:r,data:t,colspan:a,rowspan:i}=e;const n=r?"th":"td";const s=Object.assign(Object.assign({},a&&{colspan:a}),i&&{rowspan:i});return this.wrap(n,t,s)})).join("");return this.wrap("tr",r)})).join("");const t=this.wrap("table",r);return this.addRaw(t).addEOL()}addDetails(e,r){const t=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(t).addEOL()}addImage(e,r,t){const{width:a,height:i}=t||{};const n=Object.assign(Object.assign({},a&&{width:a}),i&&{height:i});const s=this.wrap("img",null,Object.assign({src:e,alt:r},n));return this.addRaw(s).addEOL()}addHeading(e,r){const t=`h${r}`;const a=["h1","h2","h3","h4","h5","h6"].includes(t)?t:"h1";const i=this.wrap(a,e);return this.addRaw(i).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,r){const t=Object.assign({},r&&{cite:r});const a=this.wrap("blockquote",e,t);return this.addRaw(a).addEOL()}addLink(e,r){const t=this.wrap("a",e,{href:r});return this.addRaw(t).addEOL()}}const u=new Summary;r.markdownSummary=u;r.summary=u},3757:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.toCommandProperties=r.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)}r.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}}r.toCommandProperties=toCommandProperties},6236:function(e,r){"use strict";var t=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.PersonalAccessTokenCredentialHandler=r.BearerCredentialHandler=r.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,r){this.username=e;this.password=r}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 t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.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 t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.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 t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}r.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6128:function(e,r,t){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,r,t,a){if(a===undefined)a=t;Object.defineProperty(e,a,{enumerable:true,get:function(){return r[t]}})}:function(e,r,t,a){if(a===undefined)a=t;e[a]=r[t]});var i=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))a(r,e,t);i(r,e);return r};var s=this&&this.__awaiter||function(e,r,t,a){function adopt(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function fulfilled(e){try{step(a.next(e))}catch(e){i(e)}}function rejected(e){try{step(a["throw"](e))}catch(e){i(e)}}function step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((a=a.apply(e,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.HttpClient=r.isHttps=r.HttpClientResponse=r.HttpClientError=r.getProxyUrl=r.MediaTypes=r.Headers=r.HttpCodes=void 0;const o=n(t(3685));const l=n(t(5687));const u=n(t(9101));const c=n(t(417));var f;(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"})(f=r.HttpCodes||(r.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=r.Headers||(r.Headers={}));var d;(function(e){e["ApplicationJson"]="application/json"})(d=r.MediaTypes||(r.MediaTypes={}));function getProxyUrl(e){const r=u.getProxyUrl(new URL(e));return r?r.href:""}r.getProxyUrl=getProxyUrl;const h=[f.MovedPermanently,f.ResourceMoved,f.SeeOther,f.TemporaryRedirect,f.PermanentRedirect];const m=[f.BadGateway,f.ServiceUnavailable,f.GatewayTimeout];const v=["OPTIONS","GET","DELETE","HEAD"];const y=10;const g=5;class HttpClientError extends Error{constructor(e,r){super(e);this.name="HttpClientError";this.statusCode=r;Object.setPrototypeOf(this,HttpClientError.prototype)}}r.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return s(this,void 0,void 0,(function*(){return new Promise((e=>s(this,void 0,void 0,(function*(){let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])}));this.message.on("end",(()=>{e(r.toString())}))}))))}))}}r.HttpClientResponse=HttpClientResponse;function isHttps(e){const r=new URL(e);return r.protocol==="https:"}r.isHttps=isHttps;class HttpClient{constructor(e,r,t){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=r||[];this.requestOptions=t;if(t){if(t.ignoreSslError!=null){this._ignoreSslError=t.ignoreSslError}this._socketTimeout=t.socketTimeout;if(t.allowRedirects!=null){this._allowRedirects=t.allowRedirects}if(t.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=t.allowRedirectDowngrade}if(t.maxRedirects!=null){this._maxRedirects=Math.max(t.maxRedirects,0)}if(t.keepAlive!=null){this._keepAlive=t.keepAlive}if(t.allowRetries!=null){this._allowRetries=t.allowRetries}if(t.maxRetries!=null){this._maxRetries=t.maxRetries}}}options(e,r){return s(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,r||{})}))}get(e,r){return s(this,void 0,void 0,(function*(){return this.request("GET",e,null,r||{})}))}del(e,r){return s(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,r||{})}))}post(e,r,t){return s(this,void 0,void 0,(function*(){return this.request("POST",e,r,t||{})}))}patch(e,r,t){return s(this,void 0,void 0,(function*(){return this.request("PATCH",e,r,t||{})}))}put(e,r,t){return s(this,void 0,void 0,(function*(){return this.request("PUT",e,r,t||{})}))}head(e,r){return s(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,r||{})}))}sendStream(e,r,t,a){return s(this,void 0,void 0,(function*(){return this.request(e,r,t,a)}))}getJson(e,r={}){return s(this,void 0,void 0,(function*(){r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,d.ApplicationJson);const t=yield this.get(e,r);return this._processResponse(t,this.requestOptions)}))}postJson(e,r,t={}){return s(this,void 0,void 0,(function*(){const a=JSON.stringify(r,null,2);t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,d.ApplicationJson);t[p.ContentType]=this._getExistingOrDefaultHeader(t,p.ContentType,d.ApplicationJson);const i=yield this.post(e,a,t);return this._processResponse(i,this.requestOptions)}))}putJson(e,r,t={}){return s(this,void 0,void 0,(function*(){const a=JSON.stringify(r,null,2);t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,d.ApplicationJson);t[p.ContentType]=this._getExistingOrDefaultHeader(t,p.ContentType,d.ApplicationJson);const i=yield this.put(e,a,t);return this._processResponse(i,this.requestOptions)}))}patchJson(e,r,t={}){return s(this,void 0,void 0,(function*(){const a=JSON.stringify(r,null,2);t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,d.ApplicationJson);t[p.ContentType]=this._getExistingOrDefaultHeader(t,p.ContentType,d.ApplicationJson);const i=yield this.patch(e,a,t);return this._processResponse(i,this.requestOptions)}))}request(e,r,t,a){return s(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(r);let n=this._prepareRequest(e,i,a);const s=this._allowRetries&&v.includes(e)?this._maxRetries+1:1;let o=0;let l;do{l=yield this.requestRaw(n,t);if(l&&l.message&&l.message.statusCode===f.Unauthorized){let e;for(const r of this.handlers){if(r.canHandleAuthentication(l)){e=r;break}}if(e){return e.handleAuthentication(this,n,t)}else{return l}}let r=this._maxRedirects;while(l.message.statusCode&&h.includes(l.message.statusCode)&&this._allowRedirects&&r>0){const s=l.message.headers["location"];if(!s){break}const o=new URL(s);if(i.protocol==="https:"&&i.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 l.readBody();if(o.hostname!==i.hostname){for(const e in a){if(e.toLowerCase()==="authorization"){delete a[e]}}}n=this._prepareRequest(e,o,a);l=yield this.requestRaw(n,t);r--}if(!l.message.statusCode||!m.includes(l.message.statusCode)){return l}o+=1;if(o{function callbackForResult(e,r){if(e){a(e)}else if(!r){a(new Error("Unknown error"))}else{t(r)}}this.requestRawWithCallback(e,r,callbackForResult)}))}))}requestRawWithCallback(e,r,t){if(typeof r==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8")}let a=false;function handleResult(e,r){if(!a){a=true;t(e,r)}}const i=e.httpModule.request(e.options,(e=>{const r=new HttpClientResponse(e);handleResult(undefined,r)}));let n;i.on("socket",(e=>{n=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(n){n.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(r&&typeof r==="string"){i.write(r,"utf8")}if(r&&typeof r!=="string"){r.on("close",(function(){i.end()}));r.pipe(i)}else{i.end()}}getAgent(e){const r=new URL(e);return this._getAgent(r)}_prepareRequest(e,r,t){const a={};a.parsedUrl=r;const i=a.parsedUrl.protocol==="https:";a.httpModule=i?l:o;const n=i?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):n;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=e;a.options.headers=this._mergeHeaders(t);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(a.options)}}return a}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,r,t){let a;if(this.requestOptions&&this.requestOptions.headers){a=lowercaseKeys(this.requestOptions.headers)[r]}return e[r]||a||t}_getAgent(e){let r;const t=u.getProxyUrl(e);const a=t&&t.hostname;if(this._keepAlive&&a){r=this._proxyAgent}if(this._keepAlive&&!a){r=this._agent}if(r){return r}const i=e.protocol==="https:";let n=100;if(this.requestOptions){n=this.requestOptions.maxSockets||o.globalAgent.maxSockets}if(t&&t.hostname){const e={maxSockets:n,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(t.username||t.password)&&{proxyAuth:`${t.username}:${t.password}`}),{host:t.hostname,port:t.port})};let a;const s=t.protocol==="https:";if(i){a=s?c.httpsOverHttps:c.httpsOverHttp}else{a=s?c.httpOverHttps:c.httpOverHttp}r=a(e);this._proxyAgent=r}if(this._keepAlive&&!r){const e={keepAlive:this._keepAlive,maxSockets:n};r=i?new l.Agent(e):new o.Agent(e);this._agent=r}if(!r){r=i?l.globalAgent:o.globalAgent}if(i&&this._ignoreSslError){r.options=Object.assign(r.options||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){e=Math.min(y,e);const r=g*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),r)))}))}_processResponse(e,r){return s(this,void 0,void 0,(function*(){return new Promise(((t,a)=>s(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const n={statusCode:i,result:null,headers:{}};if(i===f.NotFound){t(n)}function dateTimeDeserializer(e,r){if(typeof r==="string"){const e=new Date(r);if(!isNaN(e.valueOf())){return e}}return r}let s;let o;try{o=yield e.readBody();if(o&&o.length>0){if(r&&r.deserializeDates){s=JSON.parse(o,dateTimeDeserializer)}else{s=JSON.parse(o)}n.result=s}n.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(o&&o.length>0){e=o}else{e=`Failed request: (${i})`}const r=new HttpClientError(e,i);r.result=n.result;a(r)}else{t(n)}}))))}))}}r.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((r,t)=>(r[t.toLowerCase()]=e[t],r)),{})},9101:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.checkBypass=r.getProxyUrl=void 0;function getProxyUrl(e){const r=e.protocol==="https:";if(checkBypass(e)){return undefined}const t=(()=>{if(r){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(t){return new URL(t)}else{return undefined}}r.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const r=e.hostname;if(isLoopbackAddress(r)){return true}const t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let a;if(e.port){a=Number(e.port)}else if(e.protocol==="http:"){a=80}else if(e.protocol==="https:"){a=443}const i=[e.hostname.toUpperCase()];if(typeof a==="number"){i.push(`${i[0]}:${a}`)}for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||i.some((r=>r===e||r.endsWith(`.${e}`)||e.startsWith(".")&&r.endsWith(`${e}`)))){return true}}return false}r.checkBypass=checkBypass;function isLoopbackAddress(e){const r=e.toLowerCase();return r==="localhost"||r.startsWith("127.")||r.startsWith("[::1]")||r.startsWith("[0:0:0:0:0:0:0:1]")}},4376:(e,r,t)=>{"use strict";var a=t(9694),i=t(8285),n=t(6578),s=t(362),o=t(7822),l=t(1391),u=t(6351),c=t(0),f=t(273);e.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=t(859);var p=t(247);Ajv.prototype.addKeyword=p.add;Ajv.prototype.getKeyword=p.get;Ajv.prototype.removeKeyword=p.remove;Ajv.prototype.validateKeyword=p.validate;var d=t(2347);Ajv.ValidationError=d.Validation;Ajv.MissingRefError=d.MissingRef;Ajv.$dataMetaSchema=c;var h="http://json-schema.org/draft-07/schema";var m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var v=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=f.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=l(e.format);this._cache=e.cache||new n;this._loadingSchemas={};this._compilations=[];this.RULES=u();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=o;this._metaOpts=getMetaSchemaOptions(this);if(e.formats)addInitialFormats(this);if(e.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof e.meta=="object")this.addMetaSchema(e.meta);if(e.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(e,r){var t;if(typeof e=="string"){t=this.getSchema(e);if(!t)throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);t=a.validate||this._compile(a)}var i=t(r);if(t.$async!==true)this.errors=t.errors;return i}function compile(e,r){var t=this._addSchema(e,undefined,r);return t.validate||this._compile(t)}function addSchema(e,r,t,a){if(Array.isArray(e)){for(var n=0;n{"use strict";var r=e.exports=function Cache(){this._cache={}};r.prototype.put=function Cache_put(e,r){this._cache[e]=r};r.prototype.get=function Cache_get(e){return this._cache[e]};r.prototype.del=function Cache_del(e){delete this._cache[e]};r.prototype.clear=function Cache_clear(){this._cache={}}},859:(e,r,t)=>{"use strict";var a=t(2347).MissingRef;e.exports=compileAsync;function compileAsync(e,r,t){var i=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof r=="function"){t=r;r=undefined}var n=loadMetaSchemaOf(e).then((function(){var t=i._addSchema(e,undefined,r);return t.validate||_compileAsync(t)}));if(t){n.then((function(e){t(null,e)}),t)}return n;function loadMetaSchemaOf(e){var r=e.$schema;return r&&!i.getSchema(r)?compileAsync.call(i,{$ref:r},true):Promise.resolve()}function _compileAsync(e){try{return i._compile(e)}catch(e){if(e instanceof a)return loadMissingSchema(e);throw e}function loadMissingSchema(t){var a=t.missingSchema;if(added(a))throw new Error("Schema "+a+" is loaded but "+t.missingRef+" cannot be resolved");var n=i._loadingSchemas[a];if(!n){n=i._loadingSchemas[a]=i._opts.loadSchema(a);n.then(removePromise,removePromise)}return n.then((function(e){if(!added(a)){return loadMetaSchemaOf(e).then((function(){if(!added(a))i.addSchema(e,a,undefined,r)}))}})).then((function(){return _compileAsync(e)}));function removePromise(){delete i._loadingSchemas[a]}function added(e){return i._refs[e]||i._schemas[e]}}}}},2347:(e,r,t)=>{"use strict";var a=t(8285);e.exports={Validation:errorSubclass(ValidationError),MissingRef:errorSubclass(MissingRefError)};function ValidationError(e){this.message="validation failed";this.errors=e;this.ajv=this.validation=true}MissingRefError.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function MissingRefError(e,r,t){this.message=t||MissingRefError.message(e,r);this.missingRef=a.url(e,r);this.missingSchema=a.normalizeId(a.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},1391:(e,r,t)=>{"use strict";var a=t(273);var i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var n=[0,31,28,31,30,31,30,31,31,30,31,30,31];var s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var o=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var u=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;var c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var f=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var d=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return a.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:f,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":m};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":u,"uri-template":c,url:f,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:p,"json-pointer":d,"json-pointer-uri-fragment":h,"relative-json-pointer":m};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var r=e.match(i);if(!r)return false;var t=+r[1];var a=+r[2];var s=+r[3];return a>=1&&a<=12&&s>=1&&s<=(a==2&&isLeapYear(t)?29:n[a])}function time(e,r){var t=e.match(s);if(!t)return false;var a=t[1];var i=t[2];var n=t[3];var o=t[5];return(a<=23&&i<=59&&n<=59||a==23&&i==59&&n==60)&&(!r||o)}var v=/t|\s/i;function date_time(e){var r=e.split(v);return r.length==2&&date(r[0])&&time(r[1],true)}var y=/\/|:/;function uri(e){return y.test(e)&&l.test(e)}var g=/[^\\]\\Z/;function regex(e){if(g.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},9694:(e,r,t)=>{"use strict";var a=t(8285),i=t(273),n=t(2347),s=t(7822);var o=t(5073);var l=i.ucs2length;var u=t(2155);var c=n.Validation;e.exports=compile;function compile(e,r,t,f){var p=this,d=this._opts,h=[undefined],m={},v=[],y={},g=[],w={},S=[];r=r||{schema:e,refVal:h,refs:m};var b=checkCompiling.call(this,e,r,f);var E=this._compilations[b.index];if(b.compiling)return E.callValidate=callValidate;var P=this._formats;var _=this.RULES;try{var x=localCompile(e,r,t,f);E.validate=x;var O=E.callValidate;if(O){O.schema=x.schema;O.errors=null;O.refs=x.refs;O.refVal=x.refVal;O.root=x.root;O.$async=x.$async;if(d.sourceCode)O.source=x.source}return x}finally{endCompiling.call(this,e,r,f)}function callValidate(){var e=E.validate;var r=e.apply(this,arguments);callValidate.errors=e.errors;return r}function localCompile(e,t,s,f){var y=!t||t&&t.schema==e;if(t.schema!=r.schema)return compile.call(p,e,t,s,f);var w=e.$async===true;var b=o({isTop:true,schema:e,isRoot:y,baseId:f,root:t,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:n.MissingRef,RULES:_,validate:o,util:i,resolve:a,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:d,formats:P,logger:p.logger,self:p});b=vars(h,refValCode)+vars(v,patternCode)+vars(g,defaultCode)+vars(S,customRuleCode)+b;if(d.processCode)b=d.processCode(b,e);var E;try{var x=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",b);E=x(p,_,P,r,h,g,S,u,l,c);h[0]=E}catch(e){p.logger.error("Error compiling schema, function code:",b);throw e}E.schema=e;E.errors=null;E.refs=m;E.refVal=h;E.root=y?E:t;if(w)E.$async=true;if(d.sourceCode===true){E.source={code:b,patterns:v,defaults:g}}return E}function resolveRef(e,i,n){i=a.url(e,i);var s=m[i];var o,l;if(s!==undefined){o=h[s];l="refVal["+s+"]";return resolvedRef(o,l)}if(!n&&r.refs){var u=r.refs[i];if(u!==undefined){o=r.refVal[u];l=addLocalRef(i,o);return resolvedRef(o,l)}}l=addLocalRef(i);var c=a.call(p,localCompile,r,i);if(c===undefined){var f=t&&t[i];if(f){c=a.inlineRef(f,d.inlineRefs)?f:compile.call(p,f,r,t,e)}}if(c===undefined){removeLocalRef(i)}else{replaceLocalRef(i,c);return resolvedRef(c,l)}}function addLocalRef(e,r){var t=h.length;h[t]=r;m[e]=t;return"refVal"+t}function removeLocalRef(e){delete m[e]}function replaceLocalRef(e,r){var t=m[e];h[t]=r}function resolvedRef(e,r){return typeof e=="object"||typeof e=="boolean"?{code:r,schema:e,inline:true}:{code:r,$async:e&&!!e.$async}}function usePattern(e){var r=y[e];if(r===undefined){r=y[e]=v.length;v[r]=e}return"pattern"+r}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(e===null)return"null";var r=s(e);var t=w[r];if(t===undefined){t=w[r]=g.length;g[t]=e}return"default"+t}}function useCustomRule(e,r,t,a){if(p._opts.validateSchema!==false){var i=e.definition.dependencies;if(i&&!i.every((function(e){return Object.prototype.hasOwnProperty.call(t,e)})))throw new Error("parent schema must have all required keywords: "+i.join(","));var n=e.definition.validateSchema;if(n){var s=n(r);if(!s){var o="keyword schema is invalid: "+p.errorsText(n.errors);if(p._opts.validateSchema=="log")p.logger.error(o);else throw new Error(o)}}}var l=e.definition.compile,u=e.definition.inline,c=e.definition.macro;var f;if(l){f=l.call(p,r,t,a)}else if(c){f=c.call(p,r,t,a);if(d.validateSchema!==false)p.validateSchema(f,true)}else if(u){f=u.call(p,a,e.keyword,r,t)}else{f=e.definition.validate;if(!f)return}if(f===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=S.length;S[h]=f;return{code:"customRule"+h,validate:f}}}function checkCompiling(e,r,t){var a=compIndex.call(this,e,r,t);if(a>=0)return{index:a,compiling:true};a=this._compilations.length;this._compilations[a]={schema:e,root:r,baseId:t};return{index:a,compiling:false}}function endCompiling(e,r,t){var a=compIndex.call(this,e,r,t);if(a>=0)this._compilations.splice(a,1)}function compIndex(e,r,t){for(var a=0;a{"use strict";var a=t(4950),i=t(2155),n=t(273),s=t(362),o=t(9653);e.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(e,r,t){var a=this._refs[t];if(typeof a=="string"){if(this._refs[a])a=this._refs[a];else return resolve.call(this,e,r,a)}a=a||this._schemas[t];if(a instanceof s){return inlineRef(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a)}var i=resolveSchema.call(this,r,t);var n,o,l;if(i){n=i.schema;r=i.root;l=i.baseId}if(n instanceof s){o=n.validate||e.call(this,n.schema,r,undefined,l)}else if(n!==undefined){o=inlineRef(n,this._opts.inlineRefs)?n:e.call(this,n,r,undefined,l)}return o}function resolveSchema(e,r){var t=a.parse(r),i=_getFullPath(t),n=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||i!==n){var o=normalizeId(i);var l=this._refs[o];if(typeof l=="string"){return resolveRecursive.call(this,e,l,t)}else if(l instanceof s){if(!l.validate)this._compile(l);e=l}else{l=this._schemas[o];if(l instanceof s){if(!l.validate)this._compile(l);if(o==normalizeId(r))return{schema:l,root:e,baseId:n};e=l}else{return}}if(!e.schema)return;n=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,t,n,e.schema,e)}function resolveRecursive(e,r,t){var a=resolveSchema.call(this,e,r);if(a){var i=a.schema;var n=a.baseId;e=a.root;var s=this._getId(i);if(s)n=resolveUrl(n,s);return getJsonPointer.call(this,t,n,i,e)}}var l=n.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,r,t,a){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var i=e.fragment.split("/");for(var s=1;s{"use strict";var a=t(120),i=t(273).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}];var r=["type","$comment"];var t=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var n=["number","integer","string","array","object","boolean","null"];e.all=i(r);e.types=i(n);e.forEach((function(t){t.rules=t.rules.map((function(t){var i;if(typeof t=="object"){var n=Object.keys(t)[0];i=t[n];t=n;i.forEach((function(t){r.push(t);e.all[t]=true}))}r.push(t);var s=e.all[t]={keyword:t,code:a[t],implements:i};return s}));e.all.$comment={keyword:"$comment",code:a.$comment};if(t.type)e.types[t.type]=t}));e.keywords=i(r.concat(t));e.custom={};return e}},362:(e,r,t)=>{"use strict";var a=t(273);e.exports=SchemaObject;function SchemaObject(e){a.copy(e,this)}},6058:e=>{"use strict";e.exports=function ucs2length(e){var r=0,t=e.length,a=0,i;while(a=55296&&i<=56319&&a{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:t(2155),ucs2length:t(6058),varOccurences:varOccurences,varReplace:varReplace,schemaHasRules:schemaHasRules,schemaHasRulesExcept:schemaHasRulesExcept,schemaUnknownRules:schemaUnknownRules,toQuotedString:toQuotedString,getPathExpr:getPathExpr,getPath:getPath,getData:getData,unescapeFragment:unescapeFragment,unescapeJsonPointer:unescapeJsonPointer,escapeFragment:escapeFragment,escapeJsonPointer:escapeJsonPointer};function copy(e,r){r=r||{};for(var t in e)r[t]=e[t];return r}function checkDataType(e,r,t,a){var i=a?" !== ":" === ",n=a?" || ":" && ",s=a?"!":"",o=a?"":"!";switch(e){case"null":return r+i+"null";case"array":return s+"Array.isArray("+r+")";case"object":return"("+s+r+n+"typeof "+r+i+'"object"'+n+o+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+i+'"number"'+n+o+"("+r+" % 1)"+n+r+i+r+(t?n+s+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+i+'"'+e+'"'+(t?n+s+"isFinite("+r+")":"")+")";default:return"typeof "+r+i+'"'+e+'"'}}function checkDataTypes(e,r,t){switch(e.length){case 1:return checkDataType(e[0],r,t,true);default:var a="";var i=toHash(e);if(i.array&&i.object){a=i.null?"(":"(!"+r+" || ";a+="typeof "+r+' !== "object")';delete i.null;delete i.array;delete i.object}if(i.number)delete i.integer;for(var n in i)a+=(a?" && ":"")+checkDataType(n,r,t,true);return a}}var a=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,r){if(Array.isArray(r)){var t=[];for(var i=0;i=r)throw new Error("Cannot access property/index "+a+" levels up, current level is "+r);return t[r-a]}if(a>r)throw new Error("Cannot access data "+a+" levels up, current level is "+r);n="data"+(r-a||"");if(!i)return n}var u=n;var c=i.split("/");for(var f=0;f{"use strict";var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,t){for(var a=0;a{"use strict";var a=t(8703);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:a.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:a.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},8558:e=>{"use strict";e.exports=function generate__limit(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}var h=r=="maximum",m=h?"exclusiveMaximum":"exclusiveMinimum",v=e.schema[m],y=e.opts.$data&&v&&v.$data,g=h?"<":">",w=h?">":"<",c=undefined;if(!(p||typeof s=="number"||s===undefined)){throw new Error(r+" must be number")}if(!(y||v===undefined||typeof v=="number"||typeof v=="boolean")){throw new Error(m+" must be number or boolean")}if(y){var S=e.util.getData(v.$data,n,e.dataPathArr),b="exclusive"+i,E="exclType"+i,P="exclIsNumber"+i,_="op"+i,x="' + "+_+" + '";a+=" var schemaExcl"+i+" = "+S+"; ";S="schemaExcl"+i;a+=" var "+b+"; var "+E+" = typeof "+S+"; if ("+E+" != 'boolean' && "+E+" != 'undefined' && "+E+" != 'number') { ";var c=m;var O=O||[];O.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: '"+m+" should be boolean' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var k=a;a=O.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+k+"]); "}else{a+=" validate.errors = ["+k+"]; return false; "}}else{a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" "+E+" == 'number' ? ( ("+b+" = "+d+" === undefined || "+S+" "+g+"= "+d+") ? "+f+" "+w+"= "+S+" : "+f+" "+w+" "+d+" ) : ( ("+b+" = "+S+" === true) ? "+f+" "+w+"= "+d+" : "+f+" "+w+" "+d+" ) || "+f+" !== "+f+") { var op"+i+" = "+b+" ? '"+g+"' : '"+g+"='; ";if(s===undefined){c=m;l=e.errSchemaPath+"/"+m;d=S;p=y}}else{var P=typeof v=="number",x=g;if(P&&p){var _="'"+x+"'";a+=" if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" ( "+d+" === undefined || "+v+" "+g+"= "+d+" ? "+f+" "+w+"= "+v+" : "+f+" "+w+" "+d+" ) || "+f+" !== "+f+") { "}else{if(P&&s===undefined){b=true;c=m;l=e.errSchemaPath+"/"+m;d=v;w+="="}else{if(P)d=Math[h?"min":"max"](v,s);if(v===(P?d:true)){b=true;c=m;l=e.errSchemaPath+"/"+m;w+="="}else{b=false;x+="="}}var _="'"+x+"'";a+=" if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" "+f+" "+w+" "+d+" || "+f+" !== "+f+") { "}}c=c||r;var O=O||[];O.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+_+", limit: "+d+", exclusive: "+b+" } ";if(e.opts.messages!==false){a+=" , message: 'should be "+x+" ";if(p){a+="' + "+d}else{a+=""+d+"'"}}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var k=a;a=O.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+k+"]); "}else{a+=" validate.errors = ["+k+"]; return false; "}}else{a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}return a}},1708:e=>{"use strict";e.exports=function generate__limitItems(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!(p||typeof s=="number")){throw new Error(r+" must be number")}var h=r=="maxItems"?">":"<";a+="if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" "+f+".length "+h+" "+d+") { ";var c=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have ";if(r=="maxItems"){a+="more"}else{a+="fewer"}a+=" than ";if(p){a+="' + "+d+" + '"}else{a+=""+s}a+=" items' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},6913:e=>{"use strict";e.exports=function generate__limitLength(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!(p||typeof s=="number")){throw new Error(r+" must be number")}var h=r=="maxLength"?">":"<";a+="if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}if(e.opts.unicode===false){a+=" "+f+".length "}else{a+=" ucs2length("+f+") "}a+=" "+h+" "+d+") { ";var c=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT be ";if(r=="maxLength"){a+="longer"}else{a+="shorter"}a+=" than ";if(p){a+="' + "+d+" + '"}else{a+=""+s}a+=" characters' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},7921:e=>{"use strict";e.exports=function generate__limitProperties(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!(p||typeof s=="number")){throw new Error(r+" must be number")}var h=r=="maxProperties"?">":"<";a+="if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" Object.keys("+f+").length "+h+" "+d+") { ";var c=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+d+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have ";if(r=="maxProperties"){a+="more"}else{a+="fewer"}a+=" than ";if(p){a+="' + "+d+" + '"}else{a+=""+s}a+=" properties' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},6721:e=>{"use strict";e.exports=function generate_allOf(e,r,t){var a=" ";var i=e.schema[r];var n=e.schemaPath+e.util.getProperty(r);var s=e.errSchemaPath+"/"+r;var o=!e.opts.allErrors;var l=e.util.copy(e);var u="";l.level++;var c="valid"+l.level;var f=l.baseId,p=true;var d=i;if(d){var h,m=-1,v=d.length-1;while(m0||h===false:e.util.schemaHasRules(h,e.RULES.all)){p=false;l.schema=h;l.schemaPath=n+"["+m+"]";l.errSchemaPath=s+"/"+m;a+=" "+e.validate(l)+" ";l.baseId=f;if(o){a+=" if ("+c+") { ";u+="}"}}}}if(o){if(p){a+=" if (true) { "}else{a+=" "+u.slice(0,-1)+" "}}return a}},2755:e=>{"use strict";e.exports=function generate_anyOf(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v=s.every((function(r){return e.opts.strictKeywords?typeof r=="object"&&Object.keys(r).length>0||r===false:e.util.schemaHasRules(r,e.RULES.all)}));if(v){var y=d.baseId;a+=" var "+p+" = errors; var "+f+" = false; ";var g=e.compositeRule;e.compositeRule=d.compositeRule=true;var w=s;if(w){var S,b=-1,E=w.length-1;while(b{"use strict";e.exports=function generate_comment(e,r,t){var a=" ";var i=e.schema[r];var n=e.errSchemaPath+"/"+r;var s=!e.opts.allErrors;var o=e.util.toQuotedString(i);if(e.opts.$comment===true){a+=" console.log("+o+");"}else if(typeof e.opts.$comment=="function"){a+=" self._opts.$comment("+o+", "+e.util.toQuotedString(n)+", validate.root.schema);"}return a}},5901:e=>{"use strict";e.exports=function generate_const(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if(!p){a+=" var schema"+i+" = validate.schema"+o+";"}a+="var "+f+" = equal("+c+", schema"+i+"); if (!"+f+") { ";var h=h||[];h.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+i+" } ";if(e.opts.messages!==false){a+=" , message: 'should be equal to constant' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var m=a;a=h.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+m+"]); "}else{a+=" validate.errors = ["+m+"]; return false; "}}else{a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" }";if(u){a+=" else { "}return a}},4073:e=>{"use strict";e.exports=function generate_contains(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v="i"+i,y=d.dataLevel=e.dataLevel+1,g="data"+y,w=e.baseId,S=e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all);a+="var "+p+" = errors;var "+f+";";if(S){var b=e.compositeRule;e.compositeRule=d.compositeRule=true;d.schema=s;d.schemaPath=o;d.errSchemaPath=l;a+=" var "+m+" = false; for (var "+v+" = 0; "+v+" < "+c+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var E=c+"["+v+"]";d.dataPathArr[y]=v;var P=e.validate(d);d.baseId=w;if(e.util.varOccurences(P,g)<2){a+=" "+e.util.varReplace(P,g,E)+" "}else{a+=" var "+g+" = "+E+"; "+P+" "}a+=" if ("+m+") break; } ";e.compositeRule=d.compositeRule=b;a+=" "+h+" if (!"+m+") {"}else{a+=" if ("+c+".length == 0) {"}var _=_||[];_.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should contain a valid item' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var x=a;a=_.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+x+"]); "}else{a+=" validate.errors = ["+x+"]; return false; "}}else{a+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { ";if(S){a+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "}if(e.opts.allErrors){a+=" } "}return a}},5809:e=>{"use strict";e.exports=function generate_custom(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c;var f="data"+(n||"");var p="valid"+i;var d="errs__"+i;var h=e.opts.$data&&s&&s.$data,m;if(h){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";m="schema"+i}else{m=s}var v=this,y="definition"+i,g=v.definition,w="";var S,b,E,P,_;if(h&&g.$data){_="keywordValidate"+i;var x=g.validateSchema;a+=" var "+y+" = RULES.custom['"+r+"'].definition; var "+_+" = "+y+".validate;"}else{P=e.useCustomRule(v,s,e.schema,e);if(!P)return;m="validate.schema"+o;_=P.code;S=g.compile;b=g.inline;E=g.macro}var O=_+".errors",k="i"+i,C="ruleErr"+i,R=g.async;if(R&&!e.async)throw new Error("async keyword in sync schema");if(!(b||E)){a+=""+O+" = null;"}a+="var "+d+" = errors;var "+p+";";if(h&&g.$data){w+="}";a+=" if ("+m+" === undefined) { "+p+" = true; } else { ";if(x){w+="}";a+=" "+p+" = "+y+".validateSchema("+m+"); if ("+p+") { "}}if(b){if(g.statements){a+=" "+P.validate+" "}else{a+=" "+p+" = "+P.validate+"; "}}else if(E){var A=e.util.copy(e);var w="";A.level++;var F="valid"+A.level;A.schema=P.validate;A.schemaPath="";var D=e.compositeRule;e.compositeRule=A.compositeRule=true;var I=e.validate(A).replace(/validate\.schema/g,_);e.compositeRule=A.compositeRule=D;a+=" "+I}else{var j=j||[];j.push(a);a="";a+=" "+_+".call( ";if(e.opts.passContext){a+="this"}else{a+="self"}if(S||g.schema===false){a+=" , "+f+" "}else{a+=" , "+m+" , "+f+" , validate.schema"+e.schemaPath+" "}a+=" , (dataPath || '')";if(e.errorPath!='""'){a+=" + "+e.errorPath}var T=n?"data"+(n-1||""):"parentData",$=n?e.dataPathArr[n]:"parentDataProperty";a+=" , "+T+" , "+$+" , rootData ) ";var N=a;a=j.pop();if(g.errors===false){a+=" "+p+" = ";if(R){a+="await "}a+=""+N+"; "}else{if(R){O="customErrors"+i;a+=" var "+O+" = null; try { "+p+" = await "+N+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+O+" = e.errors; else throw e; } "}else{a+=" "+O+" = null; "+p+" = "+N+"; "}}}if(g.modifying){a+=" if ("+T+") "+f+" = "+T+"["+$+"];"}a+=""+w;if(g.valid){if(u){a+=" if (true) { "}}else{a+=" if ( ";if(g.valid===undefined){a+=" !";if(E){a+=""+F}else{a+=""+p}}else{a+=" "+!g.valid+" "}a+=") { ";c=v.keyword;var j=j||[];j.push(a);a="";var j=j||[];j.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+v.keyword+"' } ";if(e.opts.messages!==false){a+=" , message: 'should pass \""+v.keyword+"\" keyword validation' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "}a+=" } "}else{a+=" {} "}var L=a;a=j.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+L+"]); "}else{a+=" validate.errors = ["+L+"]; return false; "}}else{a+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var M=a;a=j.pop();if(b){if(g.errors){if(g.errors!="full"){a+=" for (var "+k+"="+d+"; "+k+"{"use strict";e.exports=function generate_dependencies(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;var m={},v={},y=e.opts.ownProperties;for(b in s){if(b=="__proto__")continue;var g=s[b];var w=Array.isArray(g)?v:m;w[b]=g}a+="var "+f+" = errors;";var S=e.errorPath;a+="var missing"+i+";";for(var b in v){w=v[b];if(w.length){a+=" if ( "+c+e.util.getProperty(b)+" !== undefined ";if(y){a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(b)+"') "}if(u){a+=" && ( ";var E=w;if(E){var P,_=-1,x=E.length-1;while(_0||g===false:e.util.schemaHasRules(g,e.RULES.all)){a+=" "+h+" = true; if ( "+c+e.util.getProperty(b)+" !== undefined ";if(y){a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(b)+"') "}a+=") { ";p.schema=g;p.schemaPath=o+e.util.getProperty(b);p.errSchemaPath=l+"/"+e.util.escapeFragment(b);a+=" "+e.validate(p)+" ";p.baseId=T;a+=" } ";if(u){a+=" if ("+h+") { ";d+="}"}}}if(u){a+=" "+d+" if ("+f+" == errors) {"}return a}},8994:e=>{"use strict";e.exports=function generate_enum(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}var h="i"+i,m="schema"+i;if(!p){a+=" var "+m+" = validate.schema"+o+";"}a+="var "+f+";";if(p){a+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"}a+=""+f+" = false;for (var "+h+"=0; "+h+"<"+m+".length; "+h+"++) if (equal("+c+", "+m+"["+h+"])) { "+f+" = true; break; }";if(p){a+=" } "}a+=" if (!"+f+") { ";var v=v||[];v.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+i+" } ";if(e.opts.messages!==false){a+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var y=a;a=v.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+y+"]); "}else{a+=" validate.errors = ["+y+"]; return false; "}}else{a+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" }";if(u){a+=" else { "}return a}},5138:e=>{"use strict";e.exports=function generate_format(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");if(e.opts.format===false){if(u){a+=" if (true) { "}return a}var f=e.opts.$data&&s&&s.$data,p;if(f){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";p="schema"+i}else{p=s}var d=e.opts.unknownFormats,h=Array.isArray(d);if(f){var m="format"+i,v="isObject"+i,y="formatType"+i;a+=" var "+m+" = formats["+p+"]; var "+v+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+y+" = "+v+" && "+m+".type || 'string'; if ("+v+") { ";if(e.async){a+=" var async"+i+" = "+m+".async; "}a+=" "+m+" = "+m+".validate; } if ( ";if(f){a+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "}a+=" (";if(d!="ignore"){a+=" ("+p+" && !"+m+" ";if(h){a+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "}a+=") || "}a+=" ("+m+" && "+y+" == '"+t+"' && !(typeof "+m+" == 'function' ? ";if(e.async){a+=" (async"+i+" ? await "+m+"("+c+") : "+m+"("+c+")) "}else{a+=" "+m+"("+c+") "}a+=" : "+m+".test("+c+"))))) {"}else{var m=e.formats[s];if(!m){if(d=="ignore"){e.logger.warn('unknown format "'+s+'" ignored in schema at path "'+e.errSchemaPath+'"');if(u){a+=" if (true) { "}return a}else if(h&&d.indexOf(s)>=0){if(u){a+=" if (true) { "}return a}else{throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}}var v=typeof m=="object"&&!(m instanceof RegExp)&&m.validate;var y=v&&m.type||"string";if(v){var g=m.async===true;m=m.validate}if(y!=t){if(u){a+=" if (true) { "}return a}if(g){if(!e.async)throw new Error("async format in sync schema");var w="formats"+e.util.getProperty(s)+".validate";a+=" if (!(await "+w+"("+c+"))) { "}else{a+=" if (! ";var w="formats"+e.util.getProperty(s);if(v)w+=".validate";if(typeof m=="function"){a+=" "+w+"("+c+") "}else{a+=" "+w+".test("+c+") "}a+=") { "}}var S=S||[];S.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ";if(f){a+=""+p}else{a+=""+e.util.toQuotedString(s)}a+=" } ";if(e.opts.messages!==false){a+=" , message: 'should match format \"";if(f){a+="' + "+p+" + '"}else{a+=""+e.util.escapeQuotes(s)}a+="\"' "}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+o}else{a+=""+e.util.toQuotedString(s)}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var b=a;a=S.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+b+"]); "}else{a+=" validate.errors = ["+b+"]; return false; "}}else{a+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}return a}},8178:e=>{"use strict";e.exports=function generate_if(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);d.level++;var h="valid"+d.level;var m=e.schema["then"],v=e.schema["else"],y=m!==undefined&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===false:e.util.schemaHasRules(m,e.RULES.all)),g=v!==undefined&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===false:e.util.schemaHasRules(v,e.RULES.all)),w=d.baseId;if(y||g){var S;d.createErrors=false;d.schema=s;d.schemaPath=o;d.errSchemaPath=l;a+=" var "+p+" = errors; var "+f+" = true; ";var b=e.compositeRule;e.compositeRule=d.compositeRule=true;a+=" "+e.validate(d)+" ";d.baseId=w;d.createErrors=true;a+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ";e.compositeRule=d.compositeRule=b;if(y){a+=" if ("+h+") { ";d.schema=e.schema["then"];d.schemaPath=e.schemaPath+".then";d.errSchemaPath=e.errSchemaPath+"/then";a+=" "+e.validate(d)+" ";d.baseId=w;a+=" "+f+" = "+h+"; ";if(y&&g){S="ifClause"+i;a+=" var "+S+" = 'then'; "}else{S="'then'"}a+=" } ";if(g){a+=" else { "}}else{a+=" if (!"+h+") { "}if(g){d.schema=e.schema["else"];d.schemaPath=e.schemaPath+".else";d.errSchemaPath=e.errSchemaPath+"/else";a+=" "+e.validate(d)+" ";d.baseId=w;a+=" "+f+" = "+h+"; ";if(y&&g){S="ifClause"+i;a+=" var "+S+" = 'else'; "}else{S="'else'"}a+=" } "}a+=" if (!"+f+") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+S+" } ";if(e.opts.messages!==false){a+=" , message: 'should match \"' + "+S+" + '\" schema' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}a+=" } ";if(u){a+=" else { "}}else{if(u){a+=" if (true) { "}}return a}},120:(e,r,t)=>{"use strict";e.exports={$ref:t(1335),allOf:t(6721),anyOf:t(2755),$comment:t(1777),const:t(5901),contains:t(4073),dependencies:t(6442),enum:t(8994),format:t(5138),if:t(8178),items:t(4801),maximum:t(8558),minimum:t(8558),maxItems:t(1708),minItems:t(1708),maxLength:t(6913),minLength:t(6913),maxProperties:t(7921),minProperties:t(7921),multipleOf:t(6101),not:t(419),oneOf:t(4135),pattern:t(3936),properties:t(9909),propertyNames:t(5222),required:t(7587),uniqueItems:t(6599),validate:t(5073)}},4801:e=>{"use strict";e.exports=function generate_items(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v="i"+i,y=d.dataLevel=e.dataLevel+1,g="data"+y,w=e.baseId;a+="var "+p+" = errors;var "+f+";";if(Array.isArray(s)){var S=e.schema.additionalItems;if(S===false){a+=" "+f+" = "+c+".length <= "+s.length+"; ";var b=l;l=e.errSchemaPath+"/additionalItems";a+=" if (!"+f+") { ";var E=E||[];E.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+s.length+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have more than "+s.length+" items' "}if(e.opts.verbose){a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var P=a;a=E.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+P+"]); "}else{a+=" validate.errors = ["+P+"]; return false; "}}else{a+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";l=b;if(u){h+="}";a+=" else { "}}var _=s;if(_){var x,O=-1,k=_.length-1;while(O0||x===false:e.util.schemaHasRules(x,e.RULES.all)){a+=" "+m+" = true; if ("+c+".length > "+O+") { ";var C=c+"["+O+"]";d.schema=x;d.schemaPath=o+"["+O+"]";d.errSchemaPath=l+"/"+O;d.errorPath=e.util.getPathExpr(e.errorPath,O,e.opts.jsonPointers,true);d.dataPathArr[y]=O;var R=e.validate(d);d.baseId=w;if(e.util.varOccurences(R,g)<2){a+=" "+e.util.varReplace(R,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+R+" "}a+=" } ";if(u){a+=" if ("+m+") { ";h+="}"}}}}if(typeof S=="object"&&(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===false:e.util.schemaHasRules(S,e.RULES.all))){d.schema=S;d.schemaPath=e.schemaPath+".additionalItems";d.errSchemaPath=e.errSchemaPath+"/additionalItems";a+=" "+m+" = true; if ("+c+".length > "+s.length+") { for (var "+v+" = "+s.length+"; "+v+" < "+c+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var C=c+"["+v+"]";d.dataPathArr[y]=v;var R=e.validate(d);d.baseId=w;if(e.util.varOccurences(R,g)<2){a+=" "+e.util.varReplace(R,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+R+" "}if(u){a+=" if (!"+m+") break; "}a+=" } } ";if(u){a+=" if ("+m+") { ";h+="}"}}}else if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){d.schema=s;d.schemaPath=o;d.errSchemaPath=l;a+=" for (var "+v+" = "+0+"; "+v+" < "+c+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var C=c+"["+v+"]";d.dataPathArr[y]=v;var R=e.validate(d);d.baseId=w;if(e.util.varOccurences(R,g)<2){a+=" "+e.util.varReplace(R,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+R+" "}if(u){a+=" if (!"+m+") break; "}a+=" }"}if(u){a+=" "+h+" if ("+p+" == errors) {"}return a}},6101:e=>{"use strict";e.exports=function generate_multipleOf(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f=e.opts.$data&&s&&s.$data,p;if(f){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";p="schema"+i}else{p=s}if(!(f||typeof s=="number")){throw new Error(r+" must be number")}a+="var division"+i+";if (";if(f){a+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "}a+=" (division"+i+" = "+c+" / "+p+", ";if(e.opts.multipleOfPrecision){a+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" "}else{a+=" division"+i+" !== parseInt(division"+i+") "}a+=" ) ";if(f){a+=" ) "}a+=" ) { ";var d=d||[];d.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+p+" } ";if(e.opts.messages!==false){a+=" , message: 'should be multiple of ";if(f){a+="' + "+p}else{a+=""+p+"'"}}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var h=a;a=d.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+h+"]); "}else{a+=" validate.errors = ["+h+"]; return false; "}}else{a+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},419:e=>{"use strict";e.exports=function generate_not(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);p.level++;var d="valid"+p.level;if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){p.schema=s;p.schemaPath=o;p.errSchemaPath=l;a+=" var "+f+" = errors; ";var h=e.compositeRule;e.compositeRule=p.compositeRule=true;p.createErrors=false;var m;if(p.opts.allErrors){m=p.opts.allErrors;p.opts.allErrors=false}a+=" "+e.validate(p)+" ";p.createErrors=true;if(m)p.opts.allErrors=m;e.compositeRule=p.compositeRule=h;a+=" if ("+d+") { ";var v=v||[];v.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should NOT be valid' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var y=a;a=v.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+y+"]); "}else{a+=" validate.errors = ["+y+"]; return false; "}}else{a+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ";if(e.opts.allErrors){a+=" } "}}else{a+=" var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should NOT be valid' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(u){a+=" if (false) { "}}return a}},4135:e=>{"use strict";e.exports=function generate_oneOf(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p="errs__"+i;var d=e.util.copy(e);var h="";d.level++;var m="valid"+d.level;var v=d.baseId,y="prevValid"+i,g="passingSchemas"+i;a+="var "+p+" = errors , "+y+" = false , "+f+" = false , "+g+" = null; ";var w=e.compositeRule;e.compositeRule=d.compositeRule=true;var S=s;if(S){var b,E=-1,P=S.length-1;while(E0||b===false:e.util.schemaHasRules(b,e.RULES.all)){d.schema=b;d.schemaPath=o+"["+E+"]";d.errSchemaPath=l+"/"+E;a+=" "+e.validate(d)+" ";d.baseId=v}else{a+=" var "+m+" = true; "}if(E){a+=" if ("+m+" && "+y+") { "+f+" = false; "+g+" = ["+g+", "+E+"]; } else { ";h+="}"}a+=" if ("+m+") { "+f+" = "+y+" = true; "+g+" = "+E+"; }"}}e.compositeRule=d.compositeRule=w;a+=""+h+"if (!"+f+") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+g+" } ";if(e.opts.messages!==false){a+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}a+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }";if(e.opts.allErrors){a+=" } "}return a}},3936:e=>{"use strict";e.exports=function generate_pattern(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f=e.opts.$data&&s&&s.$data,p;if(f){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";p="schema"+i}else{p=s}var d=f?"(new RegExp("+p+"))":e.usePattern(s);a+="if ( ";if(f){a+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "}a+=" !"+d+".test("+c+") ) { ";var h=h||[];h.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ";if(f){a+=""+p}else{a+=""+e.util.toQuotedString(s)}a+=" } ";if(e.opts.messages!==false){a+=" , message: 'should match pattern \"";if(f){a+="' + "+p+" + '"}else{a+=""+e.util.escapeQuotes(s)}a+="\"' "}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+o}else{a+=""+e.util.toQuotedString(s)}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var m=a;a=h.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+m+"]); "}else{a+=" validate.errors = ["+m+"]; return false; "}}else{a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},9909:e=>{"use strict";e.exports=function generate_properties(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;var m="key"+i,v="idx"+i,y=p.dataLevel=e.dataLevel+1,g="data"+y,w="dataProperties"+i;var S=Object.keys(s||{}).filter(notProto),b=e.schema.patternProperties||{},E=Object.keys(b).filter(notProto),P=e.schema.additionalProperties,_=S.length||E.length,x=P===false,O=typeof P=="object"&&Object.keys(P).length,k=e.opts.removeAdditional,C=x||O||k,R=e.opts.ownProperties,A=e.baseId;var F=e.schema.required;if(F&&!(e.opts.$data&&F.$data)&&F.length8){a+=" || validate.schema"+o+".hasOwnProperty("+m+") "}else{var I=S;if(I){var j,T=-1,$=I.length-1;while(T<$){j=I[T+=1];a+=" || "+m+" == "+e.util.toQuotedString(j)+" "}}}}if(E.length){var N=E;if(N){var L,M=-1,q=N.length-1;while(M0||X===false:e.util.schemaHasRules(X,e.RULES.all)){var ee=e.util.getProperty(j),Q=c+ee,re=K&&X.default!==undefined;p.schema=X;p.schemaPath=o+ee;p.errSchemaPath=l+"/"+e.util.escapeFragment(j);p.errorPath=e.util.getPath(e.errorPath,j,e.opts.jsonPointers);p.dataPathArr[y]=e.util.toQuotedString(j);var Y=e.validate(p);p.baseId=A;if(e.util.varOccurences(Y,g)<2){Y=e.util.varReplace(Y,g,Q);var te=Q}else{var te=g;a+=" var "+g+" = "+Q+"; "}if(re){a+=" "+Y+" "}else{if(D&&D[j]){a+=" if ( "+te+" === undefined ";if(R){a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "}a+=") { "+h+" = false; ";var U=e.errorPath,B=l,ae=e.util.escapeQuotes(j);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(U,j,e.opts.jsonPointers)}l=e.errSchemaPath+"/required";var z=z||[];z.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+ae+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+ae+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var V=a;a=z.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+V+"]); "}else{a+=" validate.errors = ["+V+"]; return false; "}}else{a+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}l=B;e.errorPath=U;a+=" } else { "}else{if(u){a+=" if ( "+te+" === undefined ";if(R){a+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "}a+=") { "+h+" = true; } else { "}else{a+=" if ("+te+" !== undefined ";if(R){a+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "}a+=" ) { "}}a+=" "+Y+" } "}}if(u){a+=" if ("+h+") { ";d+="}"}}}}if(E.length){var ie=E;if(ie){var L,ne=-1,se=ie.length-1;while(ne0||X===false:e.util.schemaHasRules(X,e.RULES.all)){p.schema=X;p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(L);p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(L);if(R){a+=" "+w+" = "+w+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+w+".length; "+v+"++) { var "+m+" = "+w+"["+v+"]; "}else{a+=" for (var "+m+" in "+c+") { "}a+=" if ("+e.usePattern(L)+".test("+m+")) { ";p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var Q=c+"["+m+"]";p.dataPathArr[y]=m;var Y=e.validate(p);p.baseId=A;if(e.util.varOccurences(Y,g)<2){a+=" "+e.util.varReplace(Y,g,Q)+" "}else{a+=" var "+g+" = "+Q+"; "+Y+" "}if(u){a+=" if (!"+h+") break; "}a+=" } ";if(u){a+=" else "+h+" = true; "}a+=" } ";if(u){a+=" if ("+h+") { ";d+="}"}}}}}if(u){a+=" "+d+" if ("+f+" == errors) {"}return a}},5222:e=>{"use strict";e.exports=function generate_propertyNames(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="errs__"+i;var p=e.util.copy(e);var d="";p.level++;var h="valid"+p.level;a+="var "+f+" = errors;";if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0||s===false:e.util.schemaHasRules(s,e.RULES.all)){p.schema=s;p.schemaPath=o;p.errSchemaPath=l;var m="key"+i,v="idx"+i,y="i"+i,g="' + "+m+" + '",w=p.dataLevel=e.dataLevel+1,S="data"+w,b="dataProperties"+i,E=e.opts.ownProperties,P=e.baseId;if(E){a+=" var "+b+" = undefined; "}if(E){a+=" "+b+" = "+b+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+m+" = "+b+"["+v+"]; "}else{a+=" for (var "+m+" in "+c+") { "}a+=" var startErrs"+i+" = errors; ";var _=m;var x=e.compositeRule;e.compositeRule=p.compositeRule=true;var O=e.validate(p);p.baseId=P;if(e.util.varOccurences(O,S)<2){a+=" "+e.util.varReplace(O,S,_)+" "}else{a+=" var "+S+" = "+_+"; "+O+" "}e.compositeRule=p.compositeRule=x;a+=" if (!"+h+") { for (var "+y+"=startErrs"+i+"; "+y+"{"use strict";e.exports=function generate_ref(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var u="data"+(n||"");var c="valid"+i;var f,p;if(s=="#"||s=="#/"){if(e.isRoot){f=e.async;p="validate"}else{f=e.root.schema.$async===true;p="root.refVal[0]"}}else{var d=e.resolveRef(e.baseId,s,e.isRoot);if(d===undefined){var h=e.MissingRefError.message(e.baseId,s);if(e.opts.missingRefs=="fail"){e.logger.error(h);var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(o)+" , params: { ref: '"+e.util.escapeQuotes(s)+"' } ";if(e.opts.messages!==false){a+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(s)+"' "}if(e.opts.verbose){a+=" , schema: "+e.util.toQuotedString(s)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}var v=a;a=m.pop();if(!e.compositeRule&&l){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(l){a+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(h);if(l){a+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,s,h)}}else if(d.inline){var y=e.util.copy(e);y.level++;var g="valid"+y.level;y.schema=d.schema;y.schemaPath="";y.errSchemaPath=s;var w=e.validate(y).replace(/validate\.schema/g,d.code);a+=" "+w+" ";if(l){a+=" if ("+g+") { "}}else{f=d.$async===true||e.async&&d.$async!==false;p=d.code}}if(p){var m=m||[];m.push(a);a="";if(e.opts.passContext){a+=" "+p+".call(this, "}else{a+=" "+p+"( "}a+=" "+u+", (dataPath || '')";if(e.errorPath!='""'){a+=" + "+e.errorPath}var S=n?"data"+(n-1||""):"parentData",b=n?e.dataPathArr[n]:"parentDataProperty";a+=" , "+S+" , "+b+", rootData) ";var E=a;a=m.pop();if(f){if(!e.async)throw new Error("async schema referenced by sync schema");if(l){a+=" var "+c+"; "}a+=" try { await "+E+"; ";if(l){a+=" "+c+" = true; "}a+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(l){a+=" "+c+" = false; "}a+=" } ";if(l){a+=" if ("+c+") { "}}else{a+=" if (!"+E+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ";if(l){a+=" else { "}}}return a}},7587:e=>{"use strict";e.exports=function generate_required(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}var h="schema"+i;if(!p){if(s.length0||S===false:e.util.schemaHasRules(S,e.RULES.all)))){m[m.length]=y}}}}else{var m=s}}if(p||m.length){var b=e.errorPath,E=p||m.length>=e.opts.loopRequired,P=e.opts.ownProperties;if(u){a+=" var missing"+i+"; ";if(E){if(!p){a+=" var "+h+" = validate.schema"+o+"; "}var _="i"+i,x="schema"+i+"["+_+"]",O="' + "+x+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(b,x,e.opts.jsonPointers)}a+=" var "+f+" = true; ";if(p){a+=" if (schema"+i+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+i+")) "+f+" = false; else {"}a+=" for (var "+_+" = 0; "+_+" < "+h+".length; "+_+"++) { "+f+" = "+c+"["+h+"["+_+"]] !== undefined ";if(P){a+=" && Object.prototype.hasOwnProperty.call("+c+", "+h+"["+_+"]) "}a+="; if (!"+f+") break; } ";if(p){a+=" } "}a+=" if (!"+f+") { ";var k=k||[];k.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+O+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+O+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var C=a;a=k.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+C+"]); "}else{a+=" validate.errors = ["+C+"]; return false; "}}else{a+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { "}else{a+=" if ( ";var R=m;if(R){var A,_=-1,F=R.length-1;while(_{"use strict";e.exports=function generate_uniqueItems(e,r,t){var a=" ";var i=e.level;var n=e.dataLevel;var s=e.schema[r];var o=e.schemaPath+e.util.getProperty(r);var l=e.errSchemaPath+"/"+r;var u=!e.opts.allErrors;var c="data"+(n||"");var f="valid"+i;var p=e.opts.$data&&s&&s.$data,d;if(p){a+=" var schema"+i+" = "+e.util.getData(s.$data,n,e.dataPathArr)+"; ";d="schema"+i}else{d=s}if((s||p)&&e.opts.uniqueItems!==false){if(p){a+=" var "+f+"; if ("+d+" === false || "+d+" === undefined) "+f+" = true; else if (typeof "+d+" != 'boolean') "+f+" = false; else { "}a+=" var i = "+c+".length , "+f+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,m=Array.isArray(h);if(!h||h=="object"||h=="array"||m&&(h.indexOf("object")>=0||h.indexOf("array")>=0)){a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+c+"[i], "+c+"[j])) { "+f+" = false; break outer; } } } "}else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+c+"[i]; ";var v="checkDataType"+(m?"s":"");a+=" if ("+e.util[v](h,"item",e.opts.strictNumbers,true)+") continue; ";if(m){a+=" if (typeof item == 'string') item = '\"' + item; "}a+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}a+=" } ";if(p){a+=" } "}a+=" if (!"+f+") { ";var y=y||[];y.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){a+=" , schema: ";if(p){a+="validate.schema"+o}else{a+=""+s}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}a+=" } "}else{a+=" {} "}var g=a;a=y.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+g+"]); "}else{a+=" validate.errors = ["+g+"]; return false; "}}else{a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}}else{if(u){a+=" if (true) { "}}return a}},5073:e=>{"use strict";e.exports=function generate_validate(e,r,t){var a="";var i=e.schema.$async===true,n=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),s=e.self._getId(e.schema);if(e.opts.strictKeywords){var o=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(o){var l="unknown keyword: "+o;if(e.opts.strictKeywords==="log")e.logger.warn(l);else throw new Error(l)}}if(e.isTop){a+=" var validate = ";if(i){e.async=true;a+="async "}a+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(s&&(e.opts.sourceCode||e.opts.processCode)){a+=" "+("/*# sourceURL="+s+" */")+" "}}if(typeof e.schema=="boolean"||!(n||e.schema.$ref)){var r="false schema";var u=e.level;var c=e.dataLevel;var f=e.schema[r];var p=e.schemaPath+e.util.getProperty(r);var d=e.errSchemaPath+"/"+r;var h=!e.opts.allErrors;var m;var v="data"+(c||"");var y="valid"+u;if(e.schema===false){if(e.isTop){h=true}else{a+=" var "+y+" = false; "}var g=g||[];g.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(m||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'boolean schema is false' "}if(e.opts.verbose){a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}a+=" } "}else{a+=" {} "}var w=a;a=g.pop();if(!e.compositeRule&&h){if(e.async){a+=" throw new ValidationError(["+w+"]); "}else{a+=" validate.errors = ["+w+"]; return false; "}}else{a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(i){a+=" return data; "}else{a+=" validate.errors = null; return true; "}}else{a+=" var "+y+" = true; "}}if(e.isTop){a+=" }; return validate; "}return a}if(e.isTop){var S=e.isTop,u=e.level=0,c=e.dataLevel=0,v="data";e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema));e.baseId=e.baseId||e.rootId;delete e.isTop;e.dataPathArr=[""];if(e.schema.default!==undefined&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}a+=" var vErrors = null; ";a+=" var errors = 0; ";a+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,c=e.dataLevel,v="data"+(c||"");if(s)e.baseId=e.resolve.url(e.baseId,s);if(i&&!e.async)throw new Error("async schema in sync schema");a+=" var errs_"+u+" = errors;"}var y="valid"+u,h=!e.opts.allErrors,E="",P="";var m;var _=e.schema.type,x=Array.isArray(_);if(_&&e.opts.nullable&&e.schema.nullable===true){if(x){if(_.indexOf("null")==-1)_=_.concat("null")}else if(_!="null"){_=[_,"null"];x=true}}if(x&&_.length==1){_=_[0];x=false}if(e.schema.$ref&&n){if(e.opts.extendRefs=="fail"){throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)')}else if(e.opts.extendRefs!==true){n=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){a+=" "+e.RULES.all.$comment.code(e,"$comment")}if(_){if(e.opts.coerceTypes){var O=e.util.coerceToTypes(e.opts.coerceTypes,_)}var k=e.RULES.types[_];if(O||x||k===true||k&&!$shouldUseGroup(k)){var p=e.schemaPath+".type",d=e.errSchemaPath+"/type";var p=e.schemaPath+".type",d=e.errSchemaPath+"/type",C=x?"checkDataTypes":"checkDataType";a+=" if ("+e.util[C](_,v,e.opts.strictNumbers,true)+") { ";if(O){var R="dataType"+u,A="coerced"+u;a+=" var "+R+" = typeof "+v+"; var "+A+" = undefined; ";if(e.opts.coerceTypes=="array"){a+=" if ("+R+" == 'object' && Array.isArray("+v+") && "+v+".length == 1) { "+v+" = "+v+"[0]; "+R+" = typeof "+v+"; if ("+e.util.checkDataType(e.schema.type,v,e.opts.strictNumbers)+") "+A+" = "+v+"; } "}a+=" if ("+A+" !== undefined) ; ";var F=O;if(F){var D,I=-1,j=F.length-1;while(I{"use strict";var a=/^[a-z_$][a-z0-9_$-]*$/i;var i=t(5809);var n=t(1324);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,r){var t=this.RULES;if(t.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!a.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,true);var n=r.type;if(Array.isArray(n)){for(var s=0;s{ /*! * expand-tilde * * Copyright (c) 2015 Jon Schlinkert. * Licensed under the MIT license. */ -var a=t(3554);var i=t(1017);e.exports=function expandTilde(e){var r=a();if(e.charCodeAt(0)===126){if(e.charCodeAt(1)===43){return i.join(process.cwd(),e.slice(2))}return r?i.join(r,e.slice(1)):e}return e}},2155:e=>{"use strict";e.exports=function equal(e,r){if(e===r)return true;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return false;var t,a,i;if(Array.isArray(e)){t=e.length;if(t!=r.length)return false;for(a=t;a--!==0;)if(!equal(e[a],r[a]))return false;return true}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();i=Object.keys(e);t=i.length;if(t!==Object.keys(r).length)return false;for(a=t;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return false;for(a=t;a--!==0;){var n=i[a];if(!equal(e[n],r[n]))return false}return true}return e!==e&&r!==r}},7822:e=>{"use strict";e.exports=function(e,r){if(!r)r={};if(typeof r==="function")r={cmp:r};var t=typeof r.cycles==="boolean"?r.cycles:false;var a=r.cmp&&function(e){return function(r){return function(t,a){var i={key:t,value:r[t]};var n={key:a,value:r[a]};return e(i,n)}}}(r.cmp);var i=[];return function stringify(e){if(e&&e.toJSON&&typeof e.toJSON==="function"){e=e.toJSON()}if(e===undefined)return;if(typeof e=="number")return isFinite(e)?""+e:"null";if(typeof e!=="object")return JSON.stringify(e);var r,n;if(Array.isArray(e)){n="[";for(r=0;r{"use strict";const a=t(9113);const i=t(1017);const n=t(8695).mkdirsSync;const s=t(8223).utimesMillisSync;const o=t(5513);function copySync(e,r,t){if(typeof t==="function"){t={filter:t}}t=t||{};t.clobber="clobber"in t?!!t.clobber:true;t.overwrite="overwrite"in t?!!t.overwrite:t.clobber;if(t.preserveTimestamps&&process.arch==="ia32"){process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n"+"\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002")}const{srcStat:a,destStat:i}=o.checkPathsSync(e,r,"copy",t);o.checkParentPathsSync(e,a,r,"copy");return handleFilterAndCopy(i,e,r,t)}function handleFilterAndCopy(e,r,t,s){if(s.filter&&!s.filter(r,t))return;const o=i.dirname(t);if(!a.existsSync(o))n(o);return getStats(e,r,t,s)}function startCopy(e,r,t,a){if(a.filter&&!a.filter(r,t))return;return getStats(e,r,t,a)}function getStats(e,r,t,i){const n=i.dereference?a.statSync:a.lstatSync;const s=n(r);if(s.isDirectory())return onDir(s,e,r,t,i);else if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return onFile(s,e,r,t,i);else if(s.isSymbolicLink())return onLink(e,r,t,i);else if(s.isSocket())throw new Error(`Cannot copy a socket file: ${r}`);else if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${r}`);throw new Error(`Unknown file: ${r}`)}function onFile(e,r,t,a,i){if(!r)return copyFile(e,t,a,i);return mayCopyFile(e,t,a,i)}function mayCopyFile(e,r,t,i){if(i.overwrite){a.unlinkSync(t);return copyFile(e,r,t,i)}else if(i.errorOnExist){throw new Error(`'${t}' already exists`)}}function copyFile(e,r,t,i){a.copyFileSync(r,t);if(i.preserveTimestamps)handleTimestamps(e.mode,r,t);return setDestMode(t,e.mode)}function handleTimestamps(e,r,t){if(fileIsNotWritable(e))makeFileWritable(t,e);return setDestTimestamps(r,t)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,r){return setDestMode(e,r|128)}function setDestMode(e,r){return a.chmodSync(e,r)}function setDestTimestamps(e,r){const t=a.statSync(e);return s(r,t.atime,t.mtime)}function onDir(e,r,t,a,i){if(!r)return mkDirAndCopy(e.mode,t,a,i);return copyDir(t,a,i)}function mkDirAndCopy(e,r,t,i){a.mkdirSync(t);copyDir(r,t,i);return setDestMode(t,e)}function copyDir(e,r,t){a.readdirSync(e).forEach((a=>copyDirItem(a,e,r,t)))}function copyDirItem(e,r,t,a){const n=i.join(r,e);const s=i.join(t,e);const{destStat:l}=o.checkPathsSync(n,s,"copy",a);return startCopy(l,n,s,a)}function onLink(e,r,t,n){let s=a.readlinkSync(r);if(n.dereference){s=i.resolve(process.cwd(),s)}if(!e){return a.symlinkSync(s,t)}else{let e;try{e=a.readlinkSync(t)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return a.symlinkSync(s,t);throw e}if(n.dereference){e=i.resolve(process.cwd(),e)}if(o.isSrcSubdir(s,e)){throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`)}if(a.statSync(t).isDirectory()&&o.isSrcSubdir(e,s)){throw new Error(`Cannot overwrite '${e}' with '${s}'.`)}return copyLink(s,t)}}function copyLink(e,r){a.unlinkSync(r);return a.symlinkSync(e,r)}e.exports=copySync},8947:(e,r,t)=>{"use strict";const a=t(9113);const i=t(1017);const n=t(8695).mkdirs;const s=t(650).pathExists;const o=t(8223).utimesMillis;const l=t(5513);function copy(e,r,t,a){if(typeof t==="function"&&!a){a=t;t={}}else if(typeof t==="function"){t={filter:t}}a=a||function(){};t=t||{};t.clobber="clobber"in t?!!t.clobber:true;t.overwrite="overwrite"in t?!!t.overwrite:t.clobber;if(t.preserveTimestamps&&process.arch==="ia32"){process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n"+"\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001")}l.checkPaths(e,r,"copy",t,((i,n)=>{if(i)return a(i);const{srcStat:s,destStat:o}=n;l.checkParentPaths(e,s,r,"copy",(i=>{if(i)return a(i);if(t.filter)return handleFilter(checkParentDir,o,e,r,t,a);return checkParentDir(o,e,r,t,a)}))}))}function checkParentDir(e,r,t,a,o){const l=i.dirname(t);s(l,((i,s)=>{if(i)return o(i);if(s)return getStats(e,r,t,a,o);n(l,(i=>{if(i)return o(i);return getStats(e,r,t,a,o)}))}))}function handleFilter(e,r,t,a,i,n){Promise.resolve(i.filter(t,a)).then((s=>{if(s)return e(r,t,a,i,n);return n()}),(e=>n(e)))}function startCopy(e,r,t,a,i){if(a.filter)return handleFilter(getStats,e,r,t,a,i);return getStats(e,r,t,a,i)}function getStats(e,r,t,i,n){const s=i.dereference?a.stat:a.lstat;s(r,((a,s)=>{if(a)return n(a);if(s.isDirectory())return onDir(s,e,r,t,i,n);else if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return onFile(s,e,r,t,i,n);else if(s.isSymbolicLink())return onLink(e,r,t,i,n);else if(s.isSocket())return n(new Error(`Cannot copy a socket file: ${r}`));else if(s.isFIFO())return n(new Error(`Cannot copy a FIFO pipe: ${r}`));return n(new Error(`Unknown file: ${r}`))}))}function onFile(e,r,t,a,i,n){if(!r)return copyFile(e,t,a,i,n);return mayCopyFile(e,t,a,i,n)}function mayCopyFile(e,r,t,i,n){if(i.overwrite){a.unlink(t,(a=>{if(a)return n(a);return copyFile(e,r,t,i,n)}))}else if(i.errorOnExist){return n(new Error(`'${t}' already exists`))}else return n()}function copyFile(e,r,t,i,n){a.copyFile(r,t,(a=>{if(a)return n(a);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,r,t,n);return setDestMode(t,e.mode,n)}))}function handleTimestampsAndMode(e,r,t,a){if(fileIsNotWritable(e)){return makeFileWritable(t,e,(i=>{if(i)return a(i);return setDestTimestampsAndMode(e,r,t,a)}))}return setDestTimestampsAndMode(e,r,t,a)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,r,t){return setDestMode(e,r|128,t)}function setDestTimestampsAndMode(e,r,t,a){setDestTimestamps(r,t,(r=>{if(r)return a(r);return setDestMode(t,e,a)}))}function setDestMode(e,r,t){return a.chmod(e,r,t)}function setDestTimestamps(e,r,t){a.stat(e,((e,a)=>{if(e)return t(e);return o(r,a.atime,a.mtime,t)}))}function onDir(e,r,t,a,i,n){if(!r)return mkDirAndCopy(e.mode,t,a,i,n);return copyDir(t,a,i,n)}function mkDirAndCopy(e,r,t,i,n){a.mkdir(t,(a=>{if(a)return n(a);copyDir(r,t,i,(r=>{if(r)return n(r);return setDestMode(t,e,n)}))}))}function copyDir(e,r,t,i){a.readdir(e,((a,n)=>{if(a)return i(a);return copyDirItems(n,e,r,t,i)}))}function copyDirItems(e,r,t,a,i){const n=e.pop();if(!n)return i();return copyDirItem(e,n,r,t,a,i)}function copyDirItem(e,r,t,a,n,s){const o=i.join(t,r);const u=i.join(a,r);l.checkPaths(o,u,"copy",n,((r,i)=>{if(r)return s(r);const{destStat:l}=i;startCopy(l,o,u,n,(r=>{if(r)return s(r);return copyDirItems(e,t,a,n,s)}))}))}function onLink(e,r,t,n,s){a.readlink(r,((r,o)=>{if(r)return s(r);if(n.dereference){o=i.resolve(process.cwd(),o)}if(!e){return a.symlink(o,t,s)}else{a.readlink(t,((r,u)=>{if(r){if(r.code==="EINVAL"||r.code==="UNKNOWN")return a.symlink(o,t,s);return s(r)}if(n.dereference){u=i.resolve(process.cwd(),u)}if(l.isSrcSubdir(o,u)){return s(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`))}if(e.isDirectory()&&l.isSrcSubdir(u,o)){return s(new Error(`Cannot overwrite '${u}' with '${o}'.`))}return copyLink(o,t,s)}))}}))}function copyLink(e,r,t){a.unlink(r,(i=>{if(i)return t(i);return a.symlink(e,r,t)}))}e.exports=copy},4263:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;e.exports={copy:a(t(8947)),copySync:t(2168)}},3428:(e,r,t)=>{"use strict";const a=t(2450).fromPromise;const i=t(2207);const n=t(1017);const s=t(8695);const o=t(21);const l=a((async function emptyDir(e){let r;try{r=await i.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(r.map((r=>o.remove(n.join(e,r)))))}));function emptyDirSync(e){let r;try{r=i.readdirSync(e)}catch{return s.mkdirsSync(e)}r.forEach((r=>{r=n.join(e,r);o.removeSync(r)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:l,emptydir:l}},3015:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;const i=t(1017);const n=t(9113);const s=t(8695);function createFile(e,r){function makeFile(){n.writeFile(e,"",(e=>{if(e)return r(e);r()}))}n.stat(e,((t,a)=>{if(!t&&a.isFile())return r();const o=i.dirname(e);n.stat(o,((e,t)=>{if(e){if(e.code==="ENOENT"){return s.mkdirs(o,(e=>{if(e)return r(e);makeFile()}))}return r(e)}if(t.isDirectory())makeFile();else{n.readdir(o,(e=>{if(e)return r(e)}))}}))}))}function createFileSync(e){let r;try{r=n.statSync(e)}catch{}if(r&&r.isFile())return;const t=i.dirname(e);try{if(!n.statSync(t).isDirectory()){n.readdirSync(t)}}catch(e){if(e&&e.code==="ENOENT")s.mkdirsSync(t);else throw e}n.writeFileSync(e,"")}e.exports={createFile:a(createFile),createFileSync:createFileSync}},9474:(e,r,t)=>{"use strict";const{createFile:a,createFileSync:i}=t(3015);const{createLink:n,createLinkSync:s}=t(5602);const{createSymlink:o,createSymlinkSync:l}=t(2152);e.exports={createFile:a,createFileSync:i,ensureFile:a,ensureFileSync:i,createLink:n,createLinkSync:s,ensureLink:n,ensureLinkSync:s,createSymlink:o,createSymlinkSync:l,ensureSymlink:o,ensureSymlinkSync:l}},5602:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;const i=t(1017);const n=t(9113);const s=t(8695);const o=t(650).pathExists;const{areIdentical:l}=t(5513);function createLink(e,r,t){function makeLink(e,r){n.link(e,r,(e=>{if(e)return t(e);t(null)}))}n.lstat(r,((a,u)=>{n.lstat(e,((a,n)=>{if(a){a.message=a.message.replace("lstat","ensureLink");return t(a)}if(u&&l(n,u))return t(null);const c=i.dirname(r);o(c,((a,i)=>{if(a)return t(a);if(i)return makeLink(e,r);s.mkdirs(c,(a=>{if(a)return t(a);makeLink(e,r)}))}))}))}))}function createLinkSync(e,r){let t;try{t=n.lstatSync(r)}catch{}try{const r=n.lstatSync(e);if(t&&l(r,t))return}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const a=i.dirname(r);const o=n.existsSync(a);if(o)return n.linkSync(e,r);s.mkdirsSync(a);return n.linkSync(e,r)}e.exports={createLink:a(createLink),createLinkSync:createLinkSync}},3455:(e,r,t)=>{"use strict";const a=t(1017);const i=t(9113);const n=t(650).pathExists;function symlinkPaths(e,r,t){if(a.isAbsolute(e)){return i.lstat(e,(r=>{if(r){r.message=r.message.replace("lstat","ensureSymlink");return t(r)}return t(null,{toCwd:e,toDst:e})}))}else{const s=a.dirname(r);const o=a.join(s,e);return n(o,((r,n)=>{if(r)return t(r);if(n){return t(null,{toCwd:o,toDst:e})}else{return i.lstat(e,(r=>{if(r){r.message=r.message.replace("lstat","ensureSymlink");return t(r)}return t(null,{toCwd:e,toDst:a.relative(s,e)})}))}}))}}function symlinkPathsSync(e,r){let t;if(a.isAbsolute(e)){t=i.existsSync(e);if(!t)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const n=a.dirname(r);const s=a.join(n,e);t=i.existsSync(s);if(t){return{toCwd:s,toDst:e}}else{t=i.existsSync(e);if(!t)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:a.relative(n,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},1878:(e,r,t)=>{"use strict";const a=t(9113);function symlinkType(e,r,t){t=typeof r==="function"?r:t;r=typeof r==="function"?false:r;if(r)return t(null,r);a.lstat(e,((e,a)=>{if(e)return t(null,"file");r=a&&a.isDirectory()?"dir":"file";t(null,r)}))}function symlinkTypeSync(e,r){let t;if(r)return r;try{t=a.lstatSync(e)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},2152:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;const i=t(1017);const n=t(2207);const s=t(8695);const o=s.mkdirs;const l=s.mkdirsSync;const u=t(3455);const c=u.symlinkPaths;const f=u.symlinkPathsSync;const p=t(1878);const d=p.symlinkType;const h=p.symlinkTypeSync;const m=t(650).pathExists;const{areIdentical:v}=t(5513);function createSymlink(e,r,t,a){a=typeof t==="function"?t:a;t=typeof t==="function"?false:t;n.lstat(r,((i,s)=>{if(!i&&s.isSymbolicLink()){Promise.all([n.stat(e),n.stat(r)]).then((([i,n])=>{if(v(i,n))return a(null);_createSymlink(e,r,t,a)}))}else _createSymlink(e,r,t,a)}))}function _createSymlink(e,r,t,a){c(e,r,((s,l)=>{if(s)return a(s);e=l.toDst;d(l.toCwd,t,((t,s)=>{if(t)return a(t);const l=i.dirname(r);m(l,((t,i)=>{if(t)return a(t);if(i)return n.symlink(e,r,s,a);o(l,(t=>{if(t)return a(t);n.symlink(e,r,s,a)}))}))}))}))}function createSymlinkSync(e,r,t){let a;try{a=n.lstatSync(r)}catch{}if(a&&a.isSymbolicLink()){const t=n.statSync(e);const a=n.statSync(r);if(v(t,a))return}const s=f(e,r);e=s.toDst;t=h(s.toCwd,t);const o=i.dirname(r);const u=n.existsSync(o);if(u)return n.symlinkSync(e,r,t);l(o);return n.symlinkSync(e,r,t)}e.exports={createSymlink:a(createSymlink),createSymlinkSync:createSymlinkSync}},2207:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;const i=t(9113);const n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>typeof i[e]==="function"));Object.assign(r,i);n.forEach((e=>{r[e]=a(i[e])}));r.exists=function(e,r){if(typeof r==="function"){return i.exists(e,r)}return new Promise((r=>i.exists(e,r)))};r.read=function(e,r,t,a,n,s){if(typeof s==="function"){return i.read(e,r,t,a,n,s)}return new Promise(((s,o)=>{i.read(e,r,t,a,n,((e,r,t)=>{if(e)return o(e);s({bytesRead:r,buffer:t})}))}))};r.write=function(e,r,...t){if(typeof t[t.length-1]==="function"){return i.write(e,r,...t)}return new Promise(((a,n)=>{i.write(e,r,...t,((e,r,t)=>{if(e)return n(e);a({bytesWritten:r,buffer:t})}))}))};if(typeof i.writev==="function"){r.writev=function(e,r,...t){if(typeof t[t.length-1]==="function"){return i.writev(e,r,...t)}return new Promise(((a,n)=>{i.writev(e,r,...t,((e,r,t)=>{if(e)return n(e);a({bytesWritten:r,buffers:t})}))}))}}if(typeof i.realpath.native==="function"){r.realpath.native=a(i.realpath.native)}else{process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}},1690:(e,r,t)=>{"use strict";e.exports={...t(2207),...t(4263),...t(3428),...t(9474),...t(7719),...t(8695),...t(1321),...t(7151),...t(650),...t(21)}},7719:(e,r,t)=>{"use strict";const a=t(2450).fromPromise;const i=t(3507);i.outputJson=a(t(2753));i.outputJsonSync=t(2026);i.outputJSON=i.outputJson;i.outputJSONSync=i.outputJsonSync;i.writeJSON=i.writeJson;i.writeJSONSync=i.writeJsonSync;i.readJSON=i.readJson;i.readJSONSync=i.readJsonSync;e.exports=i},3507:(e,r,t)=>{"use strict";const a=t(5424);e.exports={readJson:a.readFile,readJsonSync:a.readFileSync,writeJson:a.writeFile,writeJsonSync:a.writeFileSync}},2026:(e,r,t)=>{"use strict";const{stringify:a}=t(1413);const{outputFileSync:i}=t(7151);function outputJsonSync(e,r,t){const n=a(r,t);i(e,n,t)}e.exports=outputJsonSync},2753:(e,r,t)=>{"use strict";const{stringify:a}=t(1413);const{outputFile:i}=t(7151);async function outputJson(e,r,t={}){const n=a(r,t);await i(e,n,t)}e.exports=outputJson},8695:(e,r,t)=>{"use strict";const a=t(2450).fromPromise;const{makeDir:i,makeDirSync:n}=t(3982);const s=a(i);e.exports={mkdirs:s,mkdirsSync:n,mkdirp:s,mkdirpSync:n,ensureDir:s,ensureDirSync:n}},3982:(e,r,t)=>{"use strict";const a=t(2207);const{checkPath:i}=t(9781);const getMode=e=>{const r={mode:511};if(typeof e==="number")return e;return{...r,...e}.mode};e.exports.makeDir=async(e,r)=>{i(e);return a.mkdir(e,{mode:getMode(r),recursive:true})};e.exports.makeDirSync=(e,r)=>{i(e);return a.mkdirSync(e,{mode:getMode(r),recursive:true})}},9781:(e,r,t)=>{"use strict";const a=t(1017);e.exports.checkPath=function checkPath(e){if(process.platform==="win32"){const r=/[<>:"|?*]/.test(e.replace(a.parse(e).root,""));if(r){const r=new Error(`Path contains invalid characters: ${e}`);r.code="EINVAL";throw r}}}},1321:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;e.exports={move:a(t(6657)),moveSync:t(4513)}},4513:(e,r,t)=>{"use strict";const a=t(9113);const i=t(1017);const n=t(4263).copySync;const s=t(21).removeSync;const o=t(8695).mkdirpSync;const l=t(5513);function moveSync(e,r,t){t=t||{};const a=t.overwrite||t.clobber||false;const{srcStat:n,isChangingCase:s=false}=l.checkPathsSync(e,r,"move",t);l.checkParentPathsSync(e,n,r,"move");if(!isParentRoot(r))o(i.dirname(r));return doRename(e,r,a,s)}function isParentRoot(e){const r=i.dirname(e);const t=i.parse(r);return t.root===r}function doRename(e,r,t,i){if(i)return rename(e,r,t);if(t){s(r);return rename(e,r,t)}if(a.existsSync(r))throw new Error("dest already exists.");return rename(e,r,t)}function rename(e,r,t){try{a.renameSync(e,r)}catch(a){if(a.code!=="EXDEV")throw a;return moveAcrossDevice(e,r,t)}}function moveAcrossDevice(e,r,t){const a={overwrite:t,errorOnExist:true};n(e,r,a);return s(e)}e.exports=moveSync},6657:(e,r,t)=>{"use strict";const a=t(9113);const i=t(1017);const n=t(4263).copy;const s=t(21).remove;const o=t(8695).mkdirp;const l=t(650).pathExists;const u=t(5513);function move(e,r,t,a){if(typeof t==="function"){a=t;t={}}t=t||{};const n=t.overwrite||t.clobber||false;u.checkPaths(e,r,"move",t,((t,s)=>{if(t)return a(t);const{srcStat:l,isChangingCase:c=false}=s;u.checkParentPaths(e,l,r,"move",(t=>{if(t)return a(t);if(isParentRoot(r))return doRename(e,r,n,c,a);o(i.dirname(r),(t=>{if(t)return a(t);return doRename(e,r,n,c,a)}))}))}))}function isParentRoot(e){const r=i.dirname(e);const t=i.parse(r);return t.root===r}function doRename(e,r,t,a,i){if(a)return rename(e,r,t,i);if(t){return s(r,(a=>{if(a)return i(a);return rename(e,r,t,i)}))}l(r,((a,n)=>{if(a)return i(a);if(n)return i(new Error("dest already exists."));return rename(e,r,t,i)}))}function rename(e,r,t,i){a.rename(e,r,(a=>{if(!a)return i();if(a.code!=="EXDEV")return i(a);return moveAcrossDevice(e,r,t,i)}))}function moveAcrossDevice(e,r,t,a){const i={overwrite:t,errorOnExist:true};n(e,r,i,(r=>{if(r)return a(r);return s(e,a)}))}e.exports=move},7151:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;const i=t(9113);const n=t(1017);const s=t(8695);const o=t(650).pathExists;function outputFile(e,r,t,a){if(typeof t==="function"){a=t;t="utf8"}const l=n.dirname(e);o(l,((n,o)=>{if(n)return a(n);if(o)return i.writeFile(e,r,t,a);s.mkdirs(l,(n=>{if(n)return a(n);i.writeFile(e,r,t,a)}))}))}function outputFileSync(e,...r){const t=n.dirname(e);if(i.existsSync(t)){return i.writeFileSync(e,...r)}s.mkdirsSync(t);i.writeFileSync(e,...r)}e.exports={outputFile:a(outputFile),outputFileSync:outputFileSync}},650:(e,r,t)=>{"use strict";const a=t(2450).fromPromise;const i=t(2207);function pathExists(e){return i.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:a(pathExists),pathExistsSync:i.existsSync}},21:(e,r,t)=>{"use strict";const a=t(9113);const i=t(2450).fromCallback;const n=t(2896);function remove(e,r){if(a.rm)return a.rm(e,{recursive:true,force:true},r);n(e,r)}function removeSync(e){if(a.rmSync)return a.rmSync(e,{recursive:true,force:true});n.sync(e)}e.exports={remove:i(remove),removeSync:removeSync}},2896:(e,r,t)=>{"use strict";const a=t(9113);const i=t(1017);const n=t(9491);const s=process.platform==="win32";function defaults(e){const r=["unlink","chmod","stat","lstat","rmdir","readdir"];r.forEach((r=>{e[r]=e[r]||a[r];r=r+"Sync";e[r]=e[r]||a[r]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,r,t){let a=0;if(typeof r==="function"){t=r;r={}}n(e,"rimraf: missing path");n.strictEqual(typeof e,"string","rimraf: path should be a string");n.strictEqual(typeof t,"function","rimraf: callback function required");n(r,"rimraf: invalid options argument provided");n.strictEqual(typeof r,"object","rimraf: options should be object");defaults(r);rimraf_(e,r,(function CB(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&arimraf_(e,r,CB)),t)}if(i.code==="ENOENT")i=null}t(i)}))}function rimraf_(e,r,t){n(e);n(r);n(typeof t==="function");r.lstat(e,((a,i)=>{if(a&&a.code==="ENOENT"){return t(null)}if(a&&a.code==="EPERM"&&s){return fixWinEPERM(e,r,a,t)}if(i&&i.isDirectory()){return rmdir(e,r,a,t)}r.unlink(e,(a=>{if(a){if(a.code==="ENOENT"){return t(null)}if(a.code==="EPERM"){return s?fixWinEPERM(e,r,a,t):rmdir(e,r,a,t)}if(a.code==="EISDIR"){return rmdir(e,r,a,t)}}return t(a)}))}))}function fixWinEPERM(e,r,t,a){n(e);n(r);n(typeof a==="function");r.chmod(e,438,(i=>{if(i){a(i.code==="ENOENT"?null:t)}else{r.stat(e,((i,n)=>{if(i){a(i.code==="ENOENT"?null:t)}else if(n.isDirectory()){rmdir(e,r,t,a)}else{r.unlink(e,a)}}))}}))}function fixWinEPERMSync(e,r,t){let a;n(e);n(r);try{r.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw t}}try{a=r.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw t}}if(a.isDirectory()){rmdirSync(e,r,t)}else{r.unlinkSync(e)}}function rmdir(e,r,t,a){n(e);n(r);n(typeof a==="function");r.rmdir(e,(i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")){rmkids(e,r,a)}else if(i&&i.code==="ENOTDIR"){a(t)}else{a(i)}}))}function rmkids(e,r,t){n(e);n(r);n(typeof t==="function");r.readdir(e,((a,n)=>{if(a)return t(a);let s=n.length;let o;if(s===0)return r.rmdir(e,t);n.forEach((a=>{rimraf(i.join(e,a),r,(a=>{if(o){return}if(a)return t(o=a);if(--s===0){r.rmdir(e,t)}}))}))}))}function rimrafSync(e,r){let t;r=r||{};defaults(r);n(e,"rimraf: missing path");n.strictEqual(typeof e,"string","rimraf: path should be a string");n(r,"rimraf: missing options");n.strictEqual(typeof r,"object","rimraf: options should be object");try{t=r.lstatSync(e)}catch(t){if(t.code==="ENOENT"){return}if(t.code==="EPERM"&&s){fixWinEPERMSync(e,r,t)}}try{if(t&&t.isDirectory()){rmdirSync(e,r,null)}else{r.unlinkSync(e)}}catch(t){if(t.code==="ENOENT"){return}else if(t.code==="EPERM"){return s?fixWinEPERMSync(e,r,t):rmdirSync(e,r,t)}else if(t.code!=="EISDIR"){throw t}rmdirSync(e,r,t)}}function rmdirSync(e,r,t){n(e);n(r);try{r.rmdirSync(e)}catch(a){if(a.code==="ENOTDIR"){throw t}else if(a.code==="ENOTEMPTY"||a.code==="EEXIST"||a.code==="EPERM"){rmkidsSync(e,r)}else if(a.code!=="ENOENT"){throw a}}}function rmkidsSync(e,r){n(e);n(r);r.readdirSync(e).forEach((t=>rimrafSync(i.join(e,t),r)));if(s){const t=Date.now();do{try{const t=r.rmdirSync(e,r);return t}catch{}}while(Date.now()-t<500)}else{const t=r.rmdirSync(e,r);return t}}e.exports=rimraf;rimraf.sync=rimrafSync},5513:(e,r,t)=>{"use strict";const a=t(2207);const i=t(1017);const n=t(3837);function getStats(e,r,t){const i=t.dereference?e=>a.stat(e,{bigint:true}):e=>a.lstat(e,{bigint:true});return Promise.all([i(e),i(r).catch((e=>{if(e.code==="ENOENT")return null;throw e}))]).then((([e,r])=>({srcStat:e,destStat:r})))}function getStatsSync(e,r,t){let i;const n=t.dereference?e=>a.statSync(e,{bigint:true}):e=>a.lstatSync(e,{bigint:true});const s=n(e);try{i=n(r)}catch(e){if(e.code==="ENOENT")return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:i}}function checkPaths(e,r,t,a,s){n.callbackify(getStats)(e,r,a,((a,n)=>{if(a)return s(a);const{srcStat:o,destStat:l}=n;if(l){if(areIdentical(o,l)){const a=i.basename(e);const n=i.basename(r);if(t==="move"&&a!==n&&a.toLowerCase()===n.toLowerCase()){return s(null,{srcStat:o,destStat:l,isChangingCase:true})}return s(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!l.isDirectory()){return s(new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`))}if(!o.isDirectory()&&l.isDirectory()){return s(new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`))}}if(o.isDirectory()&&isSrcSubdir(e,r)){return s(new Error(errMsg(e,r,t)))}return s(null,{srcStat:o,destStat:l})}))}function checkPathsSync(e,r,t,a){const{srcStat:n,destStat:s}=getStatsSync(e,r,a);if(s){if(areIdentical(n,s)){const a=i.basename(e);const o=i.basename(r);if(t==="move"&&a!==o&&a.toLowerCase()===o.toLowerCase()){return{srcStat:n,destStat:s,isChangingCase:true}}throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&!s.isDirectory()){throw new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`)}if(!n.isDirectory()&&s.isDirectory()){throw new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`)}}if(n.isDirectory()&&isSrcSubdir(e,r)){throw new Error(errMsg(e,r,t))}return{srcStat:n,destStat:s}}function checkParentPaths(e,r,t,n,s){const o=i.resolve(i.dirname(e));const l=i.resolve(i.dirname(t));if(l===o||l===i.parse(l).root)return s();a.stat(l,{bigint:true},((a,i)=>{if(a){if(a.code==="ENOENT")return s();return s(a)}if(areIdentical(r,i)){return s(new Error(errMsg(e,t,n)))}return checkParentPaths(e,r,l,n,s)}))}function checkParentPathsSync(e,r,t,n){const s=i.resolve(i.dirname(e));const o=i.resolve(i.dirname(t));if(o===s||o===i.parse(o).root)return;let l;try{l=a.statSync(o,{bigint:true})}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(r,l)){throw new Error(errMsg(e,t,n))}return checkParentPathsSync(e,r,o,n)}function areIdentical(e,r){return r.ino&&r.dev&&r.ino===e.ino&&r.dev===e.dev}function isSrcSubdir(e,r){const t=i.resolve(e).split(i.sep).filter((e=>e));const a=i.resolve(r).split(i.sep).filter((e=>e));return t.reduce(((e,r,t)=>e&&a[t]===r),true)}function errMsg(e,r,t){return`Cannot ${t} '${e}' to a subdirectory of itself, '${r}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir,areIdentical:areIdentical}},8223:(e,r,t)=>{"use strict";const a=t(9113);function utimesMillis(e,r,t,i){a.open(e,"r+",((e,n)=>{if(e)return i(e);a.futimes(n,r,t,(e=>{a.close(n,(r=>{if(i)i(e||r)}))}))}))}function utimesMillisSync(e,r,t){const i=a.openSync(e,"r+");a.futimesSync(i,r,t);return a.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},4497:e=>{"use strict";e.exports=clone;var r=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:r(e)};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}));return t}},9113:(e,r,t)=>{var a=t(7147);var i=t(2627);var n=t(7757);var s=t(4497);var o=t(3837);var l;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){l=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{l="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,r){Object.defineProperty(e,l,{get:function(){return r}})}var c=noop;if(o.debuglog)c=o.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c=function(){var e=o.format.apply(o,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!a[l]){var f=global[l]||[];publishQueue(a,f);a.close=function(e){function close(r,t){return e.call(a,r,(function(e){if(!e){resetQueue()}if(typeof t==="function")t.apply(this,arguments)}))}Object.defineProperty(close,u,{value:e});return close}(a.close);a.closeSync=function(e){function closeSync(r){e.apply(a,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(a.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){c(a[l]);t(9491).equal(a[l].length,0)}))}}if(!global[l]){publishQueue(global,a[l])}e.exports=patch(s(a));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched){e.exports=patch(a);a.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var r=e.readFile;e.readFile=readFile;function readFile(e,t,a){if(typeof t==="function")a=t,t=null;return go$readFile(e,t,a);function go$readFile(e,t,a,i){return r(e,t,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$readFile,[e,t,a],r,i||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var t=e.writeFile;e.writeFile=writeFile;function writeFile(e,r,a,i){if(typeof a==="function")i=a,a=null;return go$writeFile(e,r,a,i);function go$writeFile(e,r,a,i,n){return t(e,r,a,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$writeFile,[e,r,a,i],t,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var a=e.appendFile;if(a)e.appendFile=appendFile;function appendFile(e,r,t,i){if(typeof t==="function")i=t,t=null;return go$appendFile(e,r,t,i);function go$appendFile(e,r,t,i,n){return a(e,r,t,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$appendFile,[e,r,t,i],a,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var s=e.copyFile;if(s)e.copyFile=copyFile;function copyFile(e,r,t,a){if(typeof t==="function"){a=t;t=0}return go$copyFile(e,r,t,a);function go$copyFile(e,r,t,a,i){return s(e,r,t,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$copyFile,[e,r,t,a],n,i||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var o=e.readdir;e.readdir=readdir;var l=/^v[0-5]\./;function readdir(e,r,t){if(typeof r==="function")t=r,r=null;var a=l.test(process.version)?function go$readdir(e,r,t,a){return o(e,fs$readdirCallback(e,r,t,a))}:function go$readdir(e,r,t,a){return o(e,r,fs$readdirCallback(e,r,t,a))};return a(e,r,t);function fs$readdirCallback(e,r,t,i){return function(n,s){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([a,[e,r,t],n,i||Date.now(),Date.now()]);else{if(s&&s.sort)s.sort();if(typeof t==="function")t.call(this,n,s)}}}}if(process.version.substr(0,4)==="v0.8"){var u=n(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var f=e.WriteStream;if(f){WriteStream.prototype=Object.create(f.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var p=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});var d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,r){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(r,t){if(r){if(e.autoClose)e.destroy();e.emit("error",r)}else{e.fd=t;e.emit("open",t);e.read()}}))}function WriteStream(e,r){if(this instanceof WriteStream)return f.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(r,t){if(r){e.destroy();e.emit("error",r)}else{e.fd=t;e.emit("open",t)}}))}function createReadStream(r,t){return new e.ReadStream(r,t)}function createWriteStream(r,t){return new e.WriteStream(r,t)}var h=e.open;e.open=open;function open(e,r,t,a){if(typeof t==="function")a=t,t=null;return go$open(e,r,t,a);function go$open(e,r,t,a,i){return h(e,r,t,(function(n,s){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$open,[e,r,t,a],n,i||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}return e}function enqueue(e){c("ENQUEUE",e[0].name,e[1]);a[l].push(e);retry()}var p;function resetQueue(){var e=Date.now();for(var r=0;r2){a[l][r][3]=e;a[l][r][4]=e}}retry()}function retry(){clearTimeout(p);p=undefined;if(a[l].length===0)return;var e=a[l].shift();var r=e[0];var t=e[1];var i=e[2];var n=e[3];var s=e[4];if(n===undefined){c("RETRY",r.name,t);r.apply(null,t)}else if(Date.now()-n>=6e4){c("TIMEOUT",r.name,t);var o=t.pop();if(typeof o==="function")o.call(null,i)}else{var u=Date.now()-s;var f=Math.max(s-n,1);var d=Math.min(f*1.2,100);if(u>=d){c("RETRY",r.name,t);r.apply(null,t.concat([n]))}else{a[l].push(e)}}if(p===undefined){p=setTimeout(retry,0)}}},7757:(e,r,t)=>{var a=t(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(r,t){if(!(this instanceof ReadStream))return new ReadStream(r,t);a.call(this);var i=this;this.path=r;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;t=t||{};var n=Object.keys(t);for(var s=0,o=n.length;sthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){i._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,r){if(e){i.emit("error",e);i.readable=false;return}i.fd=r;i.emit("open",r);i._read()}))}function WriteStream(r,t){if(!(this instanceof WriteStream))return new WriteStream(r,t);a.call(this);this.path=r;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;t=t||{};var i=Object.keys(t);for(var n=0,s=i.length;n= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},2627:(e,r,t)=>{var a=t(2057);var i=process.cwd;var n=null;var s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!n)n=i.call(process);return n};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var o=process.chdir;process.chdir=function(e){n=null;o.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,o)}e.exports=patch;function patch(e){if(a.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,r,t){if(t)process.nextTick(t)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,r,t,a){if(a)process.nextTick(a)};e.lchownSync=function(){}}if(s==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(r){function rename(t,a,i){var n=Date.now();var s=0;r(t,a,(function CB(o){if(o&&(o.code==="EACCES"||o.code==="EPERM")&&Date.now()-n<6e4){setTimeout((function(){e.stat(a,(function(e,n){if(e&&e.code==="ENOENT")r(t,a,CB);else i(o)}))}),s);if(s<100)s+=10;return}if(i)i(o)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,r);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(r){function read(t,a,i,n,s,o){var l;if(o&&typeof o==="function"){var u=0;l=function(c,f,p){if(c&&c.code==="EAGAIN"&&u<10){u++;return r.call(e,t,a,i,n,s,l)}o.apply(this,arguments)}}return r.call(e,t,a,i,n,s,l)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,r);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(r){return function(t,a,i,n,s){var o=0;while(true){try{return r.call(e,t,a,i,n,s)}catch(e){if(e.code==="EAGAIN"&&o<10){o++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(r,t,i){e.open(r,a.O_WRONLY|a.O_SYMLINK,t,(function(r,a){if(r){if(i)i(r);return}e.fchmod(a,t,(function(r){e.close(a,(function(e){if(i)i(r||e)}))}))}))};e.lchmodSync=function(r,t){var i=e.openSync(r,a.O_WRONLY|a.O_SYMLINK,t);var n=true;var s;try{s=e.fchmodSync(i,t);n=false}finally{if(n){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return s}}function patchLutimes(e){if(a.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(r,t,i,n){e.open(r,a.O_SYMLINK,(function(r,a){if(r){if(n)n(r);return}e.futimes(a,t,i,(function(r){e.close(a,(function(e){if(n)n(r||e)}))}))}))};e.lutimesSync=function(r,t,i){var n=e.openSync(r,a.O_SYMLINK);var s;var o=true;try{s=e.futimesSync(n,t,i);o=false}finally{if(o){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return s}}else if(e.futimes){e.lutimes=function(e,r,t,a){if(a)process.nextTick(a)};e.lutimesSync=function(){}}}function chmodFix(r){if(!r)return r;return function(t,a,i){return r.call(e,t,a,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(r){if(!r)return r;return function(t,a){try{return r.call(e,t,a)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(r){if(!r)return r;return function(t,a,i,n){return r.call(e,t,a,i,(function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)}))}}function chownFixSync(r){if(!r)return r;return function(t,a,i){try{return r.call(e,t,a,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(r){if(!r)return r;return function(t,a,i){if(typeof a==="function"){i=a;a=null}function callback(e,r){if(r){if(r.uid<0)r.uid+=4294967296;if(r.gid<0)r.gid+=4294967296}if(i)i.apply(this,arguments)}return a?r.call(e,t,a,callback):r.call(e,t,callback)}}function statFixSync(r){if(!r)return r;return function(t,a){var i=a?r.call(e,t,a):r.call(e,t);if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var r=!process.getuid||process.getuid()!==0;if(r){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},3554:(e,r,t)=>{"use strict";var a=t(2037);if(typeof a.homedir!=="undefined"){e.exports=a.homedir}else{e.exports=t(6364)}},6364:(e,r,t)=>{"use strict";var a=t(7147);var i=t(4656);function homedir(){if(process.platform==="win32"){if(process.env.USERPROFILE){return process.env.USERPROFILE}if(process.env.HOMEDRIVE&&process.env.HOMEPATH){return process.env.HOMEDRIVE+process.env.HOMEPATH}if(process.env.HOME){return process.env.HOME}return null}if(process.env.HOME){return process.env.HOME}var e=tryReadFileSync("/etc/passwd");var r=find(i(e),getuid());if(r){return r}var t=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(!t){return null}if(process.platform==="darwin"){return"/Users/"+t}return"/home/"+t}function find(e,r){var t=e.length;for(var a=0;a{"use strict";var a=t(512);var i=t(3258);function renamed(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+r+" instead, which is now safe by default.")}}e.exports.Type=t(9672);e.exports.Schema=t(5050);e.exports.FAILSAFE_SCHEMA=t(4880);e.exports.JSON_SCHEMA=t(8170);e.exports.CORE_SCHEMA=t(9407);e.exports.DEFAULT_SCHEMA=t(4945);e.exports.load=a.load;e.exports.loadAll=a.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=t(7494);e.exports.types={binary:t(233),float:t(7145),map:t(7083),null:t(496),pairs:t(8180),set:t(6085),timestamp:t(4427),bool:t(3991),int:t(7375),merge:t(549),omap:t(9972),seq:t(4952),str:t(4381)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},8390:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,r){var t,a,i,n;if(r){n=Object.keys(r);for(t=0,a=n.length;t{"use strict";var a=t(8390);var i=t(7494);var n=t(4945);var s=Object.prototype.toString;var o=Object.prototype.hasOwnProperty;var l=65279;var u=9;var c=10;var f=13;var p=32;var d=33;var h=34;var m=35;var v=37;var y=38;var g=39;var w=42;var S=44;var b=45;var E=58;var P=61;var _=62;var x=63;var O=64;var k=91;var C=93;var R=96;var A=123;var F=124;var D=125;var I={};I[0]="\\0";I[7]="\\a";I[8]="\\b";I[9]="\\t";I[10]="\\n";I[11]="\\v";I[12]="\\f";I[13]="\\r";I[27]="\\e";I[34]='\\"';I[92]="\\\\";I[133]="\\N";I[160]="\\_";I[8232]="\\L";I[8233]="\\P";var j=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var T=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,r){var t,a,i,n,s,l,u;if(r===null)return{};t={};a=Object.keys(r);for(i=0,n=a.length;i=55296&&t<=56319&&r+1=56320&&a<=57343){return(t-55296)*1024+a-56320+65536}}return t}function needIndentIndicator(e){var r=/^\n* /;return r.test(e)}var L=1,M=2,q=3,U=4,H=5;function chooseScalarStyle(e,r,t,a,i,n,s,o){var l;var u=0;var f=null;var p=false;var d=false;var h=a!==-1;var m=-1;var v=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(r||s){for(l=0;l=65536?l+=2:l++){u=codePointAt(e,l);if(!isPrintable(u)){return H}v=v&&isPlainSafe(u,f,o);f=u}}else{for(l=0;l=65536?l+=2:l++){u=codePointAt(e,l);if(u===c){p=true;if(h){d=d||l-m-1>a&&e[m+1]!==" ";m=l}}else if(!isPrintable(u)){return H}v=v&&isPlainSafe(u,f,o);f=u}d=d||h&&(l-m-1>a&&e[m+1]!==" ")}if(!p&&!d){if(v&&!s&&!i(e)){return L}return n===N?H:M}if(t>9&&needIndentIndicator(e)){return H}if(!s){return d?U:q}return n===N?H:M}function writeScalar(e,r,t,a,n){e.dump=function(){if(r.length===0){return e.quotingType===N?'""':"''"}if(!e.noCompatMode){if(j.indexOf(r)!==-1||T.test(r)){return e.quotingType===N?'"'+r+'"':"'"+r+"'"}}var s=e.indent*Math.max(1,t);var o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s);var l=a||e.flowLevel>-1&&t>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,l,e.indent,o,testAmbiguity,e.quotingType,e.forceQuotes&&!a,n)){case L:return r;case M:return"'"+r.replace(/'/g,"''")+"'";case q:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,s));case U:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,o),s));case H:return'"'+escapeString(r,o)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,r){var t=needIndentIndicator(e)?String(r):"";var a=e[e.length-1]==="\n";var i=a&&(e[e.length-2]==="\n"||e==="\n");var n=i?"+":a?"":"-";return t+n+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,r){var t=/(\n+)([^\n]*)/g;var a=function(){var a=e.indexOf("\n");a=a!==-1?a:e.length;t.lastIndex=a;return foldLine(e.slice(0,a),r)}();var i=e[0]==="\n"||e[0]===" ";var n;var s;while(s=t.exec(e)){var o=s[1],l=s[2];n=l[0]===" ";a+=o+(!i&&!n&&l!==""?"\n":"")+foldLine(l,r);i=n}return a}function foldLine(e,r){if(e===""||e[0]===" ")return e;var t=/ [^ ]/g;var a;var i=0,n,s=0,o=0;var l="";while(a=t.exec(e)){o=a.index;if(o-i>r){n=s>i?s:o;l+="\n"+e.slice(i,n);i=n+1}s=o}l+="\n";if(e.length-i>r&&s>i){l+=e.slice(i,s)+"\n"+e.slice(s+1)}else{l+=e.slice(i)}return l.slice(1)}function escapeString(e){var r="";var t=0;var a;for(var i=0;i=65536?i+=2:i++){t=codePointAt(e,i);a=I[t];if(!a&&isPrintable(t)){r+=e[i];if(t>=65536)r+=e[i+1]}else{r+=a||encodeHex(t)}}return r}function writeFlowSequence(e,r,t){var a="",i=e.tag,n,s,o;for(n=0,s=t.length;n1024)c+="? ";c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,u,false,false)){continue}c+=e.dump;a+=c}e.tag=i;e.dump="{"+a+"}"}function writeBlockMapping(e,r,t,a){var n="",s=e.tag,o=Object.keys(t),l,u,f,p,d,h;if(e.sortKeys===true){o.sort()}else if(typeof e.sortKeys==="function"){o.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(l=0,u=o.length;l1024;if(d){if(e.dump&&c===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(d){h+=generateNextLine(e,r)}if(!writeNode(e,r+1,p,true,d)){continue}if(e.dump&&c===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;n+=h}e.tag=s;e.dump=n||"{}"}function detectType(e,r,t){var a,n,l,u,c,f;n=t?e.explicitTypes:e.implicitTypes;for(l=0,u=n.length;l tag resolver accepts not "'+f+'" style')}e.dump=a}return true}}return false}function writeNode(e,r,t,a,n,o,l){e.tag=null;e.dump=t;if(!detectType(e,t,false)){detectType(e,t,true)}var u=s.call(e.dump);var c=a;var f;if(a){a=e.flowLevel<0||e.flowLevel>r}var p=u==="[object Object]"||u==="[object Array]",d,h;if(p){d=e.duplicates.indexOf(t);h=d!==-1}if(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&r>0){n=false}if(h&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(p&&h&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(u==="[object Object]"){if(a&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,n);if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,r,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object Array]"){if(a&&e.dump.length!==0){if(e.noArrayIndent&&!l&&r>0){writeBlockSequence(e,r-1,e.dump,n)}else{writeBlockSequence(e,r,e.dump,n)}if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,r,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,o,c)}}else if(u==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+u)}if(e.tag!==null&&e.tag!=="?"){f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){f="!"+f}else if(f.slice(0,18)==="tag:yaml.org,2002:"){f="!!"+f.slice(18)}else{f="!<"+f+">"}e.dump=f+" "+e.dump}}return true}function getDuplicateReferences(e,r){var t=[],a=[],i,n;inspectNode(e,t,a);for(i=0,n=a.length;i{"use strict";function formatError(e,r){var t="",a=e.reason||"(unknown reason)";if(!e.mark)return a;if(e.mark.name){t+='in "'+e.mark.name+'" '}t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!r&&e.mark.snippet){t+="\n\n"+e.mark.snippet}return a+" "+t}function YAMLException(e,r){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=r;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},512:(e,r,t)=>{"use strict";var a=t(8390);var i=t(7494);var n=t(3615);var s=t(4945);var o=Object.prototype.hasOwnProperty;var l=1;var u=2;var c=3;var f=4;var p=1;var d=2;var h=3;var m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var v=/[\x85\u2028\u2029]/;var y=/[,\[\]\{\}]/;var g=/^(?:!|!!|![a-z\-]+!)$/i;var w=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var r;if(48<=e&&e<=57){return e-48}r=e|32;if(97<=r&&r<=102){return r-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var S=new Array(256);var b=new Array(256);for(var E=0;E<256;E++){S[E]=simpleEscapeSequence(E)?1:0;b[E]=simpleEscapeSequence(E)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||s;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};t.snippet=n(t);return new i(r,t)}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var P={YAML:function handleYamlDirective(e,r,t){var a,i,n;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(t.length!==1){throwError(e,"YAML directive accepts exactly one argument")}a=/^([0-9]+)\.([0-9]+)$/.exec(t[0]);if(a===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(a[1],10);n=parseInt(a[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=t[0];e.checkLineBreaks=n<2;if(n!==1&&n!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,r,t){var a,i;if(t.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}a=t[0];i=t[1];if(!g.test(a)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(o.call(e.tagMap,a)){throwError(e,'there is a previously declared suffix for "'+a+'" tag handle')}if(!w.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(r){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[a]=i}};function captureSegment(e,r,t,a){var i,n,s,o;if(r1){e.result+=a.repeat("\n",r-1)}}function readPlainScalar(e,r,t){var a,i,n,s,o,l,u,c,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||t&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";n=s=e.position;o=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||t&&is_FLOW_INDICATOR(i)){break}}else if(d===35){a=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(a)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||t&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){l=e.line;u=e.lineStart;c=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=r){o=true;d=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=l;e.lineStart=u;e.lineIndent=c;break}}if(o){captureSegment(e,n,s,false);writeFoldedLines(e,e.line-l);n=s=e.position;o=false}if(!is_WHITE_SPACE(d)){s=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,n,s,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,r){var t,a,i;t=e.input.charCodeAt(e.position);if(t!==39){return false}e.kind="scalar";e.result="";e.position++;a=i=e.position;while((t=e.input.charCodeAt(e.position))!==0){if(t===39){captureSegment(e,a,e.position,true);t=e.input.charCodeAt(++e.position);if(t===39){a=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(t)){captureSegment(e,a,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));a=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,r){var t,a,i,n,s,o;o=e.input.charCodeAt(e.position);if(o!==34){return false}e.kind="scalar";e.result="";e.position++;t=a=e.position;while((o=e.input.charCodeAt(e.position))!==0){if(o===34){captureSegment(e,t,e.position,true);e.position++;return true}else if(o===92){captureSegment(e,t,e.position,true);o=e.input.charCodeAt(++e.position);if(is_EOL(o)){skipSeparationSpace(e,false,r)}else if(o<256&&S[o]){e.result+=b[o];e.position++}else if((s=escapedHexLen(o))>0){i=s;n=0;for(;i>0;i--){o=e.input.charCodeAt(++e.position);if((s=fromHexCode(o))>=0){n=(n<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(n);e.position++}else{throwError(e,"unknown escape sequence")}t=a=e.position}else if(is_EOL(o)){captureSegment(e,t,a,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));t=a=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;a=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,r){var t=true,a,i,n,s=e.tag,o,u=e.anchor,c,f,p,d,h,m=Object.create(null),v,y,g,w;w=e.input.charCodeAt(e.position);if(w===91){f=93;h=false;o=[]}else if(w===123){f=125;h=true;o={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=o}w=e.input.charCodeAt(++e.position);while(w!==0){skipSeparationSpace(e,true,r);w=e.input.charCodeAt(e.position);if(w===f){e.position++;e.tag=s;e.anchor=u;e.kind=h?"mapping":"sequence";e.result=o;return true}else if(!t){throwError(e,"missed comma between flow collection entries")}else if(w===44){throwError(e,"expected the node content, but found ','")}y=v=g=null;p=d=false;if(w===63){c=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(c)){p=d=true;e.position++;skipSeparationSpace(e,true,r)}}a=e.line;i=e.lineStart;n=e.position;composeNode(e,r,l,false,true);y=e.tag;v=e.result;skipSeparationSpace(e,true,r);w=e.input.charCodeAt(e.position);if((d||e.line===a)&&w===58){p=true;w=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,l,false,true);g=e.result}if(h){storeMappingPair(e,o,m,y,v,g,a,i,n)}else if(p){o.push(storeMappingPair(e,null,m,y,v,g,a,i,n))}else{o.push(v)}skipSeparationSpace(e,true,r);w=e.input.charCodeAt(e.position);if(w===44){t=true;w=e.input.charCodeAt(++e.position)}else{t=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,r){var t,i,n=p,s=false,o=false,l=r,u=0,c=false,f,m;m=e.input.charCodeAt(e.position);if(m===124){i=false}else if(m===62){i=true}else{return false}e.kind="scalar";e.result="";while(m!==0){m=e.input.charCodeAt(++e.position);if(m===43||m===45){if(p===n){n=m===43?h:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((f=fromDecimalCode(m))>=0){if(f===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!o){l=r+f-1;o=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(m)){do{m=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(m));if(m===35){do{m=e.input.charCodeAt(++e.position)}while(!is_EOL(m)&&m!==0)}}while(m!==0){readLineBreak(e);e.lineIndent=0;m=e.input.charCodeAt(e.position);while((!o||e.lineIndentl){l=e.lineIndent}if(is_EOL(m)){u++;continue}if(e.lineIndentr)&&l!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(g){s=e.line;o=e.lineStart;l=e.position}if(composeNode(e,r,f,true,i)){if(g){v=e.result}else{y=e.result}}if(!g){storeMappingPair(e,d,h,m,v,y,s,o,l);m=v=y=null}skipSeparationSpace(e,true,-1);S=e.input.charCodeAt(e.position)}if((e.line===n||e.lineIndent>r)&&S!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentr){d=1}else if(e.lineIndent===r){d=0}else if(e.lineIndentr){d=1}else if(e.lineIndent===r){d=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(v=0,y=e.implicitTypes.length;v")}if(e.result!==null&&w.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+w.kind+'", not "'+e.kind+'"')}if(!w.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=w.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||m}function readDocument(e){var r=e.position,t,a,i,n=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}n=true;s=e.input.charCodeAt(++e.position);t=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}a=e.input.slice(t,e.position);i=[];if(a.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;t=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}i.push(e.input.slice(t,e.position))}if(s!==0)readLineBreak(e);if(o.call(P,a)){P[a](e,a,i)}else{throwWarning(e,'unknown document directive "'+a+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(n){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,f,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&v.test(e.input.slice(r,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{"use strict";var a=t(7494);var i=t(9672);function compileList(e,r){var t=[];e[r].forEach((function(e){var r=t.length;t.forEach((function(t,a){if(t.tag===e.tag&&t.kind===e.kind&&t.multi===e.multi){r=a}}));t[r]=e}));return t}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function collectType(r){if(r.multi){e.multi[r.kind].push(r);e.multi["fallback"].push(r)}else{e[r.kind][r.tag]=e["fallback"][r.tag]=r}}for(r=0,t=arguments.length;r{"use strict";e.exports=t(8170)},4945:(e,r,t)=>{"use strict";e.exports=t(9407).extend({implicit:[t(4427),t(549)],explicit:[t(233),t(9972),t(8180),t(6085)]})},4880:(e,r,t)=>{"use strict";var a=t(5050);e.exports=new a({explicit:[t(4381),t(4952),t(7083)]})},8170:(e,r,t)=>{"use strict";e.exports=t(4880).extend({implicit:[t(496),t(3991),t(7375),t(7145)]})},3615:(e,r,t)=>{"use strict";var a=t(8390);function getLine(e,r,t,a,i){var n="";var s="";var o=Math.floor(i/2)-1;if(a-r>o){n=" ... ";r=a-o+n.length}if(t-a>o){s=" ...";t=a+o-s.length}return{str:n+e.slice(r,t).replace(/\t/g,"→")+s,pos:a-r+n.length}}function padStart(e,r){return a.repeat(" ",r-e.length)+e}function makeSnippet(e,r){r=Object.create(r||null);if(!e.buffer)return null;if(!r.maxLength)r.maxLength=79;if(typeof r.indent!=="number")r.indent=1;if(typeof r.linesBefore!=="number")r.linesBefore=3;if(typeof r.linesAfter!=="number")r.linesAfter=2;var t=/\r?\n|\r|\0/g;var i=[0];var n=[];var s;var o=-1;while(s=t.exec(e.buffer)){n.push(s.index);i.push(s.index+s[0].length);if(e.position<=s.index&&o<0){o=i.length-2}}if(o<0)o=i.length-1;var l="",u,c;var f=Math.min(e.line+r.linesAfter,n.length).toString().length;var p=r.maxLength-(r.indent+f+3);for(u=1;u<=r.linesBefore;u++){if(o-u<0)break;c=getLine(e.buffer,i[o-u],n[o-u],e.position-(i[o]-i[o-u]),p);l=a.repeat(" ",r.indent)+padStart((e.line-u+1).toString(),f)+" | "+c.str+"\n"+l}c=getLine(e.buffer,i[o],n[o],e.position,p);l+=a.repeat(" ",r.indent)+padStart((e.line+1).toString(),f)+" | "+c.str+"\n";l+=a.repeat("-",r.indent+f+3+c.pos)+"^"+"\n";for(u=1;u<=r.linesAfter;u++){if(o+u>=n.length)break;c=getLine(e.buffer,i[o+u],n[o+u],e.position-(i[o]-i[o+u]),p);l+=a.repeat(" ",r.indent)+padStart((e.line+u+1).toString(),f)+" | "+c.str+"\n"}return l.replace(/\n$/,"")}e.exports=makeSnippet},9672:(e,r,t)=>{"use strict";var a=t(7494);var i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var n=["scalar","sequence","mapping"];function compileStyleAliases(e){var r={};if(e!==null){Object.keys(e).forEach((function(t){e[t].forEach((function(e){r[String(e)]=t}))}))}return r}function Type(e,r){r=r||{};Object.keys(r).forEach((function(r){if(i.indexOf(r)===-1){throw new a('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}}));this.options=r;this.tag=e;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(e){return e};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.representName=r["representName"]||null;this.defaultStyle=r["defaultStyle"]||null;this.multi=r["multi"]||false;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(n.indexOf(this.kind)===-1){throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},233:(e,r,t)=>{"use strict";var a=t(9672);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var r,t,a=0,n=e.length,s=i;for(t=0;t64)continue;if(r<0)return false;a+=6}return a%8===0}function constructYamlBinary(e){var r,t,a=e.replace(/[\r\n=]/g,""),n=a.length,s=i,o=0,l=[];for(r=0;r>16&255);l.push(o>>8&255);l.push(o&255)}o=o<<6|s.indexOf(a.charAt(r))}t=n%4*6;if(t===0){l.push(o>>16&255);l.push(o>>8&255);l.push(o&255)}else if(t===18){l.push(o>>10&255);l.push(o>>2&255)}else if(t===12){l.push(o>>4&255)}return new Uint8Array(l)}function representYamlBinary(e){var r="",t=0,a,n,s=e.length,o=i;for(a=0;a>18&63];r+=o[t>>12&63];r+=o[t>>6&63];r+=o[t&63]}t=(t<<8)+e[a]}n=s%3;if(n===0){r+=o[t>>18&63];r+=o[t>>12&63];r+=o[t>>6&63];r+=o[t&63]}else if(n===2){r+=o[t>>10&63];r+=o[t>>4&63];r+=o[t<<2&63];r+=o[64]}else if(n===1){r+=o[t>>2&63];r+=o[t<<4&63];r+=o[64];r+=o[64]}return r}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new a("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},3991:(e,r,t)=>{"use strict";var a=t(9672);function resolveYamlBoolean(e){if(e===null)return false;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},7145:(e,r,t)=>{"use strict";var a=t(8390);var i=t(9672);var n=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!n.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var r,t;r=e.replace(/_/g,"").toLowerCase();t=r[0]==="-"?-1:1;if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}return t*parseFloat(r,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,r){var t;if(isNaN(e)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(a.isNegativeZero(e)){return"-0.0"}t=e.toString(10);return s.test(t)?t.replace("e",".e"):t}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||a.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},7375:(e,r,t)=>{"use strict";var a=t(8390);var i=t(9672);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var r=e.length,t=0,a=false,i;if(!r)return false;i=e[t];if(i==="-"||i==="+"){i=e[++t]}if(i==="0"){if(t+1===r)return true;i=e[++t];if(i==="b"){t++;for(;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},7083:(e,r,t)=>{"use strict";var a=t(9672);e.exports=new a("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},549:(e,r,t)=>{"use strict";var a=t(9672);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new a("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},496:(e,r,t)=>{"use strict";var a=t(9672);function resolveYamlNull(e){if(e===null)return true;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new a("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9972:(e,r,t)=>{"use strict";var a=t(9672);var i=Object.prototype.hasOwnProperty;var n=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var r=[],t,a,s,o,l,u=e;for(t=0,a=u.length;t{"use strict";var a=t(9672);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var r,t,a,n,s,o=e;s=new Array(o.length);for(r=0,t=o.length;r{"use strict";var a=t(9672);e.exports=new a("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},6085:(e,r,t)=>{"use strict";var a=t(9672);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var r,t=e;for(r in t){if(i.call(t,r)){if(t[r]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new a("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},4381:(e,r,t)=>{"use strict";var a=t(9672);e.exports=new a("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},4427:(e,r,t)=>{"use strict";var a=t(9672);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var n=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(i.exec(e)!==null)return true;if(n.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var r,t,a,s,o,l,u,c=0,f=null,p,d,h;r=i.exec(e);if(r===null)r=n.exec(e);if(r===null)throw new Error("Date resolve error");t=+r[1];a=+r[2]-1;s=+r[3];if(!r[4]){return new Date(Date.UTC(t,a,s))}o=+r[4];l=+r[5];u=+r[6];if(r[7]){c=r[7].slice(0,3);while(c.length<3){c+="0"}c=+c}if(r[9]){p=+r[10];d=+(r[11]||0);f=(p*60+d)*6e4;if(r[9]==="-")f=-f}h=new Date(Date.UTC(t,a,s,o,l,u,c));if(f)h.setTime(h.getTime()-f);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},9653:e=>{"use strict";var r=e.exports=function(e,r,t){if(typeof r=="function"){t=r;r={}}t=r.cb||t;var a=typeof t=="function"?t:t.pre||function(){};var i=t.post||function(){};_traverse(r,a,i,e,"",e)};r.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};r.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};r.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};r.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,t,a,i,n,s,o,l,u,c){if(i&&typeof i=="object"&&!Array.isArray(i)){t(i,n,s,o,l,u,c);for(var f in i){var p=i[f];if(Array.isArray(p)){if(f in r.arrayKeywords){for(var d=0;d{let a;try{a=t(9113)}catch(e){a=t(7147)}const i=t(2450);const{stringify:n,stripBom:s}=t(1413);async function _readFile(e,r={}){if(typeof r==="string"){r={encoding:r}}const t=r.fs||a;const n="throws"in r?r.throws:true;let o=await i.fromCallback(t.readFile)(e,r);o=s(o);let l;try{l=JSON.parse(o,r?r.reviver:null)}catch(r){if(n){r.message=`${e}: ${r.message}`;throw r}else{return null}}return l}const o=i.fromPromise(_readFile);function readFileSync(e,r={}){if(typeof r==="string"){r={encoding:r}}const t=r.fs||a;const i="throws"in r?r.throws:true;try{let a=t.readFileSync(e,r);a=s(a);return JSON.parse(a,r.reviver)}catch(r){if(i){r.message=`${e}: ${r.message}`;throw r}else{return null}}}async function _writeFile(e,r,t={}){const s=t.fs||a;const o=n(r,t);await i.fromCallback(s.writeFile)(e,o,t)}const l=i.fromPromise(_writeFile);function writeFileSync(e,r,t={}){const i=t.fs||a;const s=n(r,t);return i.writeFileSync(e,s,t)}const u={readFile:o,readFileSync:readFileSync,writeFile:l,writeFileSync:writeFileSync};e.exports=u},1413:e=>{function stringify(e,{EOL:r="\n",finalEOL:t=true,replacer:a=null,spaces:i}={}){const n=t?r:"";const s=JSON.stringify(e,a,i);return s.replace(/\n/g,r)+n}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},4656:e=>{"use strict";e.exports=function(e){if(typeof e!=="string"){throw new Error("expected a string")}return e.split("\n").map(user).filter(Boolean)};function user(e,r){if(!e||!e.length||e.charAt(0)==="#"){return null}var t=e.split(":");return{username:t[0],password:t[1],uid:t[2],gid:t[3],gecos:t[4],homedir:t[5],shell:t[6]}}},417:(e,r,t)=>{e.exports=t(5452)},5452:(e,r,t)=>{"use strict";var a=t(1808);var i=t(4404);var n=t(3685);var s=t(5687);var o=t(2361);var l=t(9491);var u=t(3837);r.httpOverHttp=httpOverHttp;r.httpsOverHttp=httpsOverHttp;r.httpOverHttps=httpOverHttps;r.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var r=new TunnelingAgent(e);r.request=n.request;return r}function httpsOverHttp(e){var r=new TunnelingAgent(e);r.request=n.request;r.createSocket=createSecureSocket;r.defaultPort=443;return r}function httpOverHttps(e){var r=new TunnelingAgent(e);r.request=s.request;return r}function httpsOverHttps(e){var r=new TunnelingAgent(e);r.request=s.request;r.createSocket=createSecureSocket;r.defaultPort=443;return r}function TunnelingAgent(e){var r=this;r.options=e||{};r.proxyOptions=r.options.proxy||{};r.maxSockets=r.options.maxSockets||n.Agent.defaultMaxSockets;r.requests=[];r.sockets=[];r.on("free",(function onFree(e,t,a,i){var n=toOptions(t,a,i);for(var s=0,o=r.requests.length;s=this.maxSockets){i.requests.push(n);return}i.createSocket(n,(function(r){r.on("free",onFree);r.on("close",onCloseOrRemove);r.on("agentRemove",onCloseOrRemove);e.onSocket(r);function onFree(){i.emit("free",r,n)}function onCloseOrRemove(e){i.removeSocket(r);r.removeListener("free",onFree);r.removeListener("close",onCloseOrRemove);r.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,r){var t=this;var a={};t.sockets.push(a);var i=mergeOptions({},t.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}c("making CONNECT request");var n=t.request(i);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,r,t){process.nextTick((function(){onConnect(e,r,t)}))}function onConnect(i,s,o){n.removeAllListeners();s.removeAllListeners();if(i.statusCode!==200){c("tunneling socket could not be established, statusCode=%d",i.statusCode);s.destroy();var l=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);l.code="ECONNRESET";e.request.emit("error",l);t.removeSocket(a);return}if(o.length>0){c("got illegal response body from proxy");s.destroy();var l=new Error("got illegal response body from proxy");l.code="ECONNRESET";e.request.emit("error",l);t.removeSocket(a);return}c("tunneling connection has established");t.sockets[t.sockets.indexOf(a)]=s;return r(s)}function onError(r){n.removeAllListeners();c("tunneling socket could not be established, cause=%s\n",r.message,r.stack);var i=new Error("tunneling socket could not be established, "+"cause="+r.message);i.code="ECONNRESET";e.request.emit("error",i);t.removeSocket(a)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var r=this.sockets.indexOf(e);if(r===-1){return}this.sockets.splice(r,1);var t=this.requests.shift();if(t){this.createSocket(t,(function(e){t.request.onSocket(e)}))}};function createSecureSocket(e,r){var t=this;TunnelingAgent.prototype.createSocket.call(t,e,(function(a){var n=e.request.getHeader("host");var s=mergeOptions({},t.options,{socket:a,servername:n?n.replace(/:.*$/,""):e.host});var o=i.connect(0,s);t.sockets[t.sockets.indexOf(a)]=o;r(o)}))}function toOptions(e,r,t){if(typeof e==="string"){return{host:e,port:r,localAddress:t}}return e}function mergeOptions(e){for(var r=1,t=arguments.length;r{"use strict";r.fromCallback=function(e){return Object.defineProperty((function(...r){if(typeof r[r.length-1]==="function")e.apply(this,r);else{return new Promise(((t,a)=>{e.call(this,...r,((e,r)=>e!=null?a(e):t(r)))}))}}),"name",{value:e.name})};r.fromPromise=function(e){return Object.defineProperty((function(...r){const t=r[r.length-1];if(typeof t!=="function")return e.apply(this,r);else e.apply(this,r.slice(0,-1)).then((e=>t(null,e)),t)}),"name",{value:e.name})}},4950:function(e,r){ +var a=t(3554);var i=t(1017);e.exports=function expandTilde(e){var r=a();if(e.charCodeAt(0)===126){if(e.charCodeAt(1)===43){return i.join(process.cwd(),e.slice(2))}return r?i.join(r,e.slice(1)):e}return e}},2155:e=>{"use strict";e.exports=function equal(e,r){if(e===r)return true;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return false;var t,a,i;if(Array.isArray(e)){t=e.length;if(t!=r.length)return false;for(a=t;a--!==0;)if(!equal(e[a],r[a]))return false;return true}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();i=Object.keys(e);t=i.length;if(t!==Object.keys(r).length)return false;for(a=t;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return false;for(a=t;a--!==0;){var n=i[a];if(!equal(e[n],r[n]))return false}return true}return e!==e&&r!==r}},7822:e=>{"use strict";e.exports=function(e,r){if(!r)r={};if(typeof r==="function")r={cmp:r};var t=typeof r.cycles==="boolean"?r.cycles:false;var a=r.cmp&&function(e){return function(r){return function(t,a){var i={key:t,value:r[t]};var n={key:a,value:r[a]};return e(i,n)}}}(r.cmp);var i=[];return function stringify(e){if(e&&e.toJSON&&typeof e.toJSON==="function"){e=e.toJSON()}if(e===undefined)return;if(typeof e=="number")return isFinite(e)?""+e:"null";if(typeof e!=="object")return JSON.stringify(e);var r,n;if(Array.isArray(e)){n="[";for(r=0;r{"use strict";const a=t(9262);const i=t(1017);const n=t(8695).mkdirsSync;const s=t(8223).utimesMillisSync;const o=t(5513);function copySync(e,r,t){if(typeof t==="function"){t={filter:t}}t=t||{};t.clobber="clobber"in t?!!t.clobber:true;t.overwrite="overwrite"in t?!!t.overwrite:t.clobber;if(t.preserveTimestamps&&process.arch==="ia32"){process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n"+"\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002")}const{srcStat:a,destStat:i}=o.checkPathsSync(e,r,"copy",t);o.checkParentPathsSync(e,a,r,"copy");return handleFilterAndCopy(i,e,r,t)}function handleFilterAndCopy(e,r,t,s){if(s.filter&&!s.filter(r,t))return;const o=i.dirname(t);if(!a.existsSync(o))n(o);return getStats(e,r,t,s)}function startCopy(e,r,t,a){if(a.filter&&!a.filter(r,t))return;return getStats(e,r,t,a)}function getStats(e,r,t,i){const n=i.dereference?a.statSync:a.lstatSync;const s=n(r);if(s.isDirectory())return onDir(s,e,r,t,i);else if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return onFile(s,e,r,t,i);else if(s.isSymbolicLink())return onLink(e,r,t,i);else if(s.isSocket())throw new Error(`Cannot copy a socket file: ${r}`);else if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${r}`);throw new Error(`Unknown file: ${r}`)}function onFile(e,r,t,a,i){if(!r)return copyFile(e,t,a,i);return mayCopyFile(e,t,a,i)}function mayCopyFile(e,r,t,i){if(i.overwrite){a.unlinkSync(t);return copyFile(e,r,t,i)}else if(i.errorOnExist){throw new Error(`'${t}' already exists`)}}function copyFile(e,r,t,i){a.copyFileSync(r,t);if(i.preserveTimestamps)handleTimestamps(e.mode,r,t);return setDestMode(t,e.mode)}function handleTimestamps(e,r,t){if(fileIsNotWritable(e))makeFileWritable(t,e);return setDestTimestamps(r,t)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,r){return setDestMode(e,r|128)}function setDestMode(e,r){return a.chmodSync(e,r)}function setDestTimestamps(e,r){const t=a.statSync(e);return s(r,t.atime,t.mtime)}function onDir(e,r,t,a,i){if(!r)return mkDirAndCopy(e.mode,t,a,i);return copyDir(t,a,i)}function mkDirAndCopy(e,r,t,i){a.mkdirSync(t);copyDir(r,t,i);return setDestMode(t,e)}function copyDir(e,r,t){a.readdirSync(e).forEach((a=>copyDirItem(a,e,r,t)))}function copyDirItem(e,r,t,a){const n=i.join(r,e);const s=i.join(t,e);const{destStat:l}=o.checkPathsSync(n,s,"copy",a);return startCopy(l,n,s,a)}function onLink(e,r,t,n){let s=a.readlinkSync(r);if(n.dereference){s=i.resolve(process.cwd(),s)}if(!e){return a.symlinkSync(s,t)}else{let e;try{e=a.readlinkSync(t)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return a.symlinkSync(s,t);throw e}if(n.dereference){e=i.resolve(process.cwd(),e)}if(o.isSrcSubdir(s,e)){throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`)}if(a.statSync(t).isDirectory()&&o.isSrcSubdir(e,s)){throw new Error(`Cannot overwrite '${e}' with '${s}'.`)}return copyLink(s,t)}}function copyLink(e,r){a.unlinkSync(r);return a.symlinkSync(e,r)}e.exports=copySync},8947:(e,r,t)=>{"use strict";const a=t(9262);const i=t(1017);const n=t(8695).mkdirs;const s=t(650).pathExists;const o=t(8223).utimesMillis;const l=t(5513);function copy(e,r,t,a){if(typeof t==="function"&&!a){a=t;t={}}else if(typeof t==="function"){t={filter:t}}a=a||function(){};t=t||{};t.clobber="clobber"in t?!!t.clobber:true;t.overwrite="overwrite"in t?!!t.overwrite:t.clobber;if(t.preserveTimestamps&&process.arch==="ia32"){process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n"+"\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001")}l.checkPaths(e,r,"copy",t,((i,n)=>{if(i)return a(i);const{srcStat:s,destStat:o}=n;l.checkParentPaths(e,s,r,"copy",(i=>{if(i)return a(i);if(t.filter)return handleFilter(checkParentDir,o,e,r,t,a);return checkParentDir(o,e,r,t,a)}))}))}function checkParentDir(e,r,t,a,o){const l=i.dirname(t);s(l,((i,s)=>{if(i)return o(i);if(s)return getStats(e,r,t,a,o);n(l,(i=>{if(i)return o(i);return getStats(e,r,t,a,o)}))}))}function handleFilter(e,r,t,a,i,n){Promise.resolve(i.filter(t,a)).then((s=>{if(s)return e(r,t,a,i,n);return n()}),(e=>n(e)))}function startCopy(e,r,t,a,i){if(a.filter)return handleFilter(getStats,e,r,t,a,i);return getStats(e,r,t,a,i)}function getStats(e,r,t,i,n){const s=i.dereference?a.stat:a.lstat;s(r,((a,s)=>{if(a)return n(a);if(s.isDirectory())return onDir(s,e,r,t,i,n);else if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return onFile(s,e,r,t,i,n);else if(s.isSymbolicLink())return onLink(e,r,t,i,n);else if(s.isSocket())return n(new Error(`Cannot copy a socket file: ${r}`));else if(s.isFIFO())return n(new Error(`Cannot copy a FIFO pipe: ${r}`));return n(new Error(`Unknown file: ${r}`))}))}function onFile(e,r,t,a,i,n){if(!r)return copyFile(e,t,a,i,n);return mayCopyFile(e,t,a,i,n)}function mayCopyFile(e,r,t,i,n){if(i.overwrite){a.unlink(t,(a=>{if(a)return n(a);return copyFile(e,r,t,i,n)}))}else if(i.errorOnExist){return n(new Error(`'${t}' already exists`))}else return n()}function copyFile(e,r,t,i,n){a.copyFile(r,t,(a=>{if(a)return n(a);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,r,t,n);return setDestMode(t,e.mode,n)}))}function handleTimestampsAndMode(e,r,t,a){if(fileIsNotWritable(e)){return makeFileWritable(t,e,(i=>{if(i)return a(i);return setDestTimestampsAndMode(e,r,t,a)}))}return setDestTimestampsAndMode(e,r,t,a)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,r,t){return setDestMode(e,r|128,t)}function setDestTimestampsAndMode(e,r,t,a){setDestTimestamps(r,t,(r=>{if(r)return a(r);return setDestMode(t,e,a)}))}function setDestMode(e,r,t){return a.chmod(e,r,t)}function setDestTimestamps(e,r,t){a.stat(e,((e,a)=>{if(e)return t(e);return o(r,a.atime,a.mtime,t)}))}function onDir(e,r,t,a,i,n){if(!r)return mkDirAndCopy(e.mode,t,a,i,n);return copyDir(t,a,i,n)}function mkDirAndCopy(e,r,t,i,n){a.mkdir(t,(a=>{if(a)return n(a);copyDir(r,t,i,(r=>{if(r)return n(r);return setDestMode(t,e,n)}))}))}function copyDir(e,r,t,i){a.readdir(e,((a,n)=>{if(a)return i(a);return copyDirItems(n,e,r,t,i)}))}function copyDirItems(e,r,t,a,i){const n=e.pop();if(!n)return i();return copyDirItem(e,n,r,t,a,i)}function copyDirItem(e,r,t,a,n,s){const o=i.join(t,r);const u=i.join(a,r);l.checkPaths(o,u,"copy",n,((r,i)=>{if(r)return s(r);const{destStat:l}=i;startCopy(l,o,u,n,(r=>{if(r)return s(r);return copyDirItems(e,t,a,n,s)}))}))}function onLink(e,r,t,n,s){a.readlink(r,((r,o)=>{if(r)return s(r);if(n.dereference){o=i.resolve(process.cwd(),o)}if(!e){return a.symlink(o,t,s)}else{a.readlink(t,((r,u)=>{if(r){if(r.code==="EINVAL"||r.code==="UNKNOWN")return a.symlink(o,t,s);return s(r)}if(n.dereference){u=i.resolve(process.cwd(),u)}if(l.isSrcSubdir(o,u)){return s(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`))}if(e.isDirectory()&&l.isSrcSubdir(u,o)){return s(new Error(`Cannot overwrite '${u}' with '${o}'.`))}return copyLink(o,t,s)}))}}))}function copyLink(e,r,t){a.unlink(r,(i=>{if(i)return t(i);return a.symlink(e,r,t)}))}e.exports=copy},4263:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;e.exports={copy:a(t(8947)),copySync:t(2168)}},3428:(e,r,t)=>{"use strict";const a=t(2450).fromPromise;const i=t(2207);const n=t(1017);const s=t(8695);const o=t(21);const l=a((async function emptyDir(e){let r;try{r=await i.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(r.map((r=>o.remove(n.join(e,r)))))}));function emptyDirSync(e){let r;try{r=i.readdirSync(e)}catch{return s.mkdirsSync(e)}r.forEach((r=>{r=n.join(e,r);o.removeSync(r)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:l,emptydir:l}},3015:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;const i=t(1017);const n=t(9262);const s=t(8695);function createFile(e,r){function makeFile(){n.writeFile(e,"",(e=>{if(e)return r(e);r()}))}n.stat(e,((t,a)=>{if(!t&&a.isFile())return r();const o=i.dirname(e);n.stat(o,((e,t)=>{if(e){if(e.code==="ENOENT"){return s.mkdirs(o,(e=>{if(e)return r(e);makeFile()}))}return r(e)}if(t.isDirectory())makeFile();else{n.readdir(o,(e=>{if(e)return r(e)}))}}))}))}function createFileSync(e){let r;try{r=n.statSync(e)}catch{}if(r&&r.isFile())return;const t=i.dirname(e);try{if(!n.statSync(t).isDirectory()){n.readdirSync(t)}}catch(e){if(e&&e.code==="ENOENT")s.mkdirsSync(t);else throw e}n.writeFileSync(e,"")}e.exports={createFile:a(createFile),createFileSync:createFileSync}},9474:(e,r,t)=>{"use strict";const{createFile:a,createFileSync:i}=t(3015);const{createLink:n,createLinkSync:s}=t(5602);const{createSymlink:o,createSymlinkSync:l}=t(2152);e.exports={createFile:a,createFileSync:i,ensureFile:a,ensureFileSync:i,createLink:n,createLinkSync:s,ensureLink:n,ensureLinkSync:s,createSymlink:o,createSymlinkSync:l,ensureSymlink:o,ensureSymlinkSync:l}},5602:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;const i=t(1017);const n=t(9262);const s=t(8695);const o=t(650).pathExists;const{areIdentical:l}=t(5513);function createLink(e,r,t){function makeLink(e,r){n.link(e,r,(e=>{if(e)return t(e);t(null)}))}n.lstat(r,((a,u)=>{n.lstat(e,((a,n)=>{if(a){a.message=a.message.replace("lstat","ensureLink");return t(a)}if(u&&l(n,u))return t(null);const c=i.dirname(r);o(c,((a,i)=>{if(a)return t(a);if(i)return makeLink(e,r);s.mkdirs(c,(a=>{if(a)return t(a);makeLink(e,r)}))}))}))}))}function createLinkSync(e,r){let t;try{t=n.lstatSync(r)}catch{}try{const r=n.lstatSync(e);if(t&&l(r,t))return}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const a=i.dirname(r);const o=n.existsSync(a);if(o)return n.linkSync(e,r);s.mkdirsSync(a);return n.linkSync(e,r)}e.exports={createLink:a(createLink),createLinkSync:createLinkSync}},3455:(e,r,t)=>{"use strict";const a=t(1017);const i=t(9262);const n=t(650).pathExists;function symlinkPaths(e,r,t){if(a.isAbsolute(e)){return i.lstat(e,(r=>{if(r){r.message=r.message.replace("lstat","ensureSymlink");return t(r)}return t(null,{toCwd:e,toDst:e})}))}else{const s=a.dirname(r);const o=a.join(s,e);return n(o,((r,n)=>{if(r)return t(r);if(n){return t(null,{toCwd:o,toDst:e})}else{return i.lstat(e,(r=>{if(r){r.message=r.message.replace("lstat","ensureSymlink");return t(r)}return t(null,{toCwd:e,toDst:a.relative(s,e)})}))}}))}}function symlinkPathsSync(e,r){let t;if(a.isAbsolute(e)){t=i.existsSync(e);if(!t)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const n=a.dirname(r);const s=a.join(n,e);t=i.existsSync(s);if(t){return{toCwd:s,toDst:e}}else{t=i.existsSync(e);if(!t)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:a.relative(n,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},1878:(e,r,t)=>{"use strict";const a=t(9262);function symlinkType(e,r,t){t=typeof r==="function"?r:t;r=typeof r==="function"?false:r;if(r)return t(null,r);a.lstat(e,((e,a)=>{if(e)return t(null,"file");r=a&&a.isDirectory()?"dir":"file";t(null,r)}))}function symlinkTypeSync(e,r){let t;if(r)return r;try{t=a.lstatSync(e)}catch{return"file"}return t&&t.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},2152:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;const i=t(1017);const n=t(2207);const s=t(8695);const o=s.mkdirs;const l=s.mkdirsSync;const u=t(3455);const c=u.symlinkPaths;const f=u.symlinkPathsSync;const p=t(1878);const d=p.symlinkType;const h=p.symlinkTypeSync;const m=t(650).pathExists;const{areIdentical:v}=t(5513);function createSymlink(e,r,t,a){a=typeof t==="function"?t:a;t=typeof t==="function"?false:t;n.lstat(r,((i,s)=>{if(!i&&s.isSymbolicLink()){Promise.all([n.stat(e),n.stat(r)]).then((([i,n])=>{if(v(i,n))return a(null);_createSymlink(e,r,t,a)}))}else _createSymlink(e,r,t,a)}))}function _createSymlink(e,r,t,a){c(e,r,((s,l)=>{if(s)return a(s);e=l.toDst;d(l.toCwd,t,((t,s)=>{if(t)return a(t);const l=i.dirname(r);m(l,((t,i)=>{if(t)return a(t);if(i)return n.symlink(e,r,s,a);o(l,(t=>{if(t)return a(t);n.symlink(e,r,s,a)}))}))}))}))}function createSymlinkSync(e,r,t){let a;try{a=n.lstatSync(r)}catch{}if(a&&a.isSymbolicLink()){const t=n.statSync(e);const a=n.statSync(r);if(v(t,a))return}const s=f(e,r);e=s.toDst;t=h(s.toCwd,t);const o=i.dirname(r);const u=n.existsSync(o);if(u)return n.symlinkSync(e,r,t);l(o);return n.symlinkSync(e,r,t)}e.exports={createSymlink:a(createSymlink),createSymlinkSync:createSymlinkSync}},2207:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;const i=t(9262);const n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>typeof i[e]==="function"));Object.assign(r,i);n.forEach((e=>{r[e]=a(i[e])}));r.exists=function(e,r){if(typeof r==="function"){return i.exists(e,r)}return new Promise((r=>i.exists(e,r)))};r.read=function(e,r,t,a,n,s){if(typeof s==="function"){return i.read(e,r,t,a,n,s)}return new Promise(((s,o)=>{i.read(e,r,t,a,n,((e,r,t)=>{if(e)return o(e);s({bytesRead:r,buffer:t})}))}))};r.write=function(e,r,...t){if(typeof t[t.length-1]==="function"){return i.write(e,r,...t)}return new Promise(((a,n)=>{i.write(e,r,...t,((e,r,t)=>{if(e)return n(e);a({bytesWritten:r,buffer:t})}))}))};if(typeof i.writev==="function"){r.writev=function(e,r,...t){if(typeof t[t.length-1]==="function"){return i.writev(e,r,...t)}return new Promise(((a,n)=>{i.writev(e,r,...t,((e,r,t)=>{if(e)return n(e);a({bytesWritten:r,buffers:t})}))}))}}if(typeof i.realpath.native==="function"){r.realpath.native=a(i.realpath.native)}else{process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}},1690:(e,r,t)=>{"use strict";e.exports={...t(2207),...t(4263),...t(3428),...t(9474),...t(7719),...t(8695),...t(1321),...t(7151),...t(650),...t(21)}},7719:(e,r,t)=>{"use strict";const a=t(2450).fromPromise;const i=t(3507);i.outputJson=a(t(2753));i.outputJsonSync=t(2026);i.outputJSON=i.outputJson;i.outputJSONSync=i.outputJsonSync;i.writeJSON=i.writeJson;i.writeJSONSync=i.writeJsonSync;i.readJSON=i.readJson;i.readJSONSync=i.readJsonSync;e.exports=i},3507:(e,r,t)=>{"use strict";const a=t(5424);e.exports={readJson:a.readFile,readJsonSync:a.readFileSync,writeJson:a.writeFile,writeJsonSync:a.writeFileSync}},2026:(e,r,t)=>{"use strict";const{stringify:a}=t(1413);const{outputFileSync:i}=t(7151);function outputJsonSync(e,r,t){const n=a(r,t);i(e,n,t)}e.exports=outputJsonSync},2753:(e,r,t)=>{"use strict";const{stringify:a}=t(1413);const{outputFile:i}=t(7151);async function outputJson(e,r,t={}){const n=a(r,t);await i(e,n,t)}e.exports=outputJson},8695:(e,r,t)=>{"use strict";const a=t(2450).fromPromise;const{makeDir:i,makeDirSync:n}=t(3982);const s=a(i);e.exports={mkdirs:s,mkdirsSync:n,mkdirp:s,mkdirpSync:n,ensureDir:s,ensureDirSync:n}},3982:(e,r,t)=>{"use strict";const a=t(2207);const{checkPath:i}=t(9781);const getMode=e=>{const r={mode:511};if(typeof e==="number")return e;return{...r,...e}.mode};e.exports.makeDir=async(e,r)=>{i(e);return a.mkdir(e,{mode:getMode(r),recursive:true})};e.exports.makeDirSync=(e,r)=>{i(e);return a.mkdirSync(e,{mode:getMode(r),recursive:true})}},9781:(e,r,t)=>{"use strict";const a=t(1017);e.exports.checkPath=function checkPath(e){if(process.platform==="win32"){const r=/[<>:"|?*]/.test(e.replace(a.parse(e).root,""));if(r){const r=new Error(`Path contains invalid characters: ${e}`);r.code="EINVAL";throw r}}}},1321:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;e.exports={move:a(t(6657)),moveSync:t(4513)}},4513:(e,r,t)=>{"use strict";const a=t(9262);const i=t(1017);const n=t(4263).copySync;const s=t(21).removeSync;const o=t(8695).mkdirpSync;const l=t(5513);function moveSync(e,r,t){t=t||{};const a=t.overwrite||t.clobber||false;const{srcStat:n,isChangingCase:s=false}=l.checkPathsSync(e,r,"move",t);l.checkParentPathsSync(e,n,r,"move");if(!isParentRoot(r))o(i.dirname(r));return doRename(e,r,a,s)}function isParentRoot(e){const r=i.dirname(e);const t=i.parse(r);return t.root===r}function doRename(e,r,t,i){if(i)return rename(e,r,t);if(t){s(r);return rename(e,r,t)}if(a.existsSync(r))throw new Error("dest already exists.");return rename(e,r,t)}function rename(e,r,t){try{a.renameSync(e,r)}catch(a){if(a.code!=="EXDEV")throw a;return moveAcrossDevice(e,r,t)}}function moveAcrossDevice(e,r,t){const a={overwrite:t,errorOnExist:true};n(e,r,a);return s(e)}e.exports=moveSync},6657:(e,r,t)=>{"use strict";const a=t(9262);const i=t(1017);const n=t(4263).copy;const s=t(21).remove;const o=t(8695).mkdirp;const l=t(650).pathExists;const u=t(5513);function move(e,r,t,a){if(typeof t==="function"){a=t;t={}}t=t||{};const n=t.overwrite||t.clobber||false;u.checkPaths(e,r,"move",t,((t,s)=>{if(t)return a(t);const{srcStat:l,isChangingCase:c=false}=s;u.checkParentPaths(e,l,r,"move",(t=>{if(t)return a(t);if(isParentRoot(r))return doRename(e,r,n,c,a);o(i.dirname(r),(t=>{if(t)return a(t);return doRename(e,r,n,c,a)}))}))}))}function isParentRoot(e){const r=i.dirname(e);const t=i.parse(r);return t.root===r}function doRename(e,r,t,a,i){if(a)return rename(e,r,t,i);if(t){return s(r,(a=>{if(a)return i(a);return rename(e,r,t,i)}))}l(r,((a,n)=>{if(a)return i(a);if(n)return i(new Error("dest already exists."));return rename(e,r,t,i)}))}function rename(e,r,t,i){a.rename(e,r,(a=>{if(!a)return i();if(a.code!=="EXDEV")return i(a);return moveAcrossDevice(e,r,t,i)}))}function moveAcrossDevice(e,r,t,a){const i={overwrite:t,errorOnExist:true};n(e,r,i,(r=>{if(r)return a(r);return s(e,a)}))}e.exports=move},7151:(e,r,t)=>{"use strict";const a=t(2450).fromCallback;const i=t(9262);const n=t(1017);const s=t(8695);const o=t(650).pathExists;function outputFile(e,r,t,a){if(typeof t==="function"){a=t;t="utf8"}const l=n.dirname(e);o(l,((n,o)=>{if(n)return a(n);if(o)return i.writeFile(e,r,t,a);s.mkdirs(l,(n=>{if(n)return a(n);i.writeFile(e,r,t,a)}))}))}function outputFileSync(e,...r){const t=n.dirname(e);if(i.existsSync(t)){return i.writeFileSync(e,...r)}s.mkdirsSync(t);i.writeFileSync(e,...r)}e.exports={outputFile:a(outputFile),outputFileSync:outputFileSync}},650:(e,r,t)=>{"use strict";const a=t(2450).fromPromise;const i=t(2207);function pathExists(e){return i.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:a(pathExists),pathExistsSync:i.existsSync}},21:(e,r,t)=>{"use strict";const a=t(9262);const i=t(2450).fromCallback;const n=t(2896);function remove(e,r){if(a.rm)return a.rm(e,{recursive:true,force:true},r);n(e,r)}function removeSync(e){if(a.rmSync)return a.rmSync(e,{recursive:true,force:true});n.sync(e)}e.exports={remove:i(remove),removeSync:removeSync}},2896:(e,r,t)=>{"use strict";const a=t(9262);const i=t(1017);const n=t(9491);const s=process.platform==="win32";function defaults(e){const r=["unlink","chmod","stat","lstat","rmdir","readdir"];r.forEach((r=>{e[r]=e[r]||a[r];r=r+"Sync";e[r]=e[r]||a[r]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,r,t){let a=0;if(typeof r==="function"){t=r;r={}}n(e,"rimraf: missing path");n.strictEqual(typeof e,"string","rimraf: path should be a string");n.strictEqual(typeof t,"function","rimraf: callback function required");n(r,"rimraf: invalid options argument provided");n.strictEqual(typeof r,"object","rimraf: options should be object");defaults(r);rimraf_(e,r,(function CB(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&arimraf_(e,r,CB)),t)}if(i.code==="ENOENT")i=null}t(i)}))}function rimraf_(e,r,t){n(e);n(r);n(typeof t==="function");r.lstat(e,((a,i)=>{if(a&&a.code==="ENOENT"){return t(null)}if(a&&a.code==="EPERM"&&s){return fixWinEPERM(e,r,a,t)}if(i&&i.isDirectory()){return rmdir(e,r,a,t)}r.unlink(e,(a=>{if(a){if(a.code==="ENOENT"){return t(null)}if(a.code==="EPERM"){return s?fixWinEPERM(e,r,a,t):rmdir(e,r,a,t)}if(a.code==="EISDIR"){return rmdir(e,r,a,t)}}return t(a)}))}))}function fixWinEPERM(e,r,t,a){n(e);n(r);n(typeof a==="function");r.chmod(e,438,(i=>{if(i){a(i.code==="ENOENT"?null:t)}else{r.stat(e,((i,n)=>{if(i){a(i.code==="ENOENT"?null:t)}else if(n.isDirectory()){rmdir(e,r,t,a)}else{r.unlink(e,a)}}))}}))}function fixWinEPERMSync(e,r,t){let a;n(e);n(r);try{r.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw t}}try{a=r.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw t}}if(a.isDirectory()){rmdirSync(e,r,t)}else{r.unlinkSync(e)}}function rmdir(e,r,t,a){n(e);n(r);n(typeof a==="function");r.rmdir(e,(i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")){rmkids(e,r,a)}else if(i&&i.code==="ENOTDIR"){a(t)}else{a(i)}}))}function rmkids(e,r,t){n(e);n(r);n(typeof t==="function");r.readdir(e,((a,n)=>{if(a)return t(a);let s=n.length;let o;if(s===0)return r.rmdir(e,t);n.forEach((a=>{rimraf(i.join(e,a),r,(a=>{if(o){return}if(a)return t(o=a);if(--s===0){r.rmdir(e,t)}}))}))}))}function rimrafSync(e,r){let t;r=r||{};defaults(r);n(e,"rimraf: missing path");n.strictEqual(typeof e,"string","rimraf: path should be a string");n(r,"rimraf: missing options");n.strictEqual(typeof r,"object","rimraf: options should be object");try{t=r.lstatSync(e)}catch(t){if(t.code==="ENOENT"){return}if(t.code==="EPERM"&&s){fixWinEPERMSync(e,r,t)}}try{if(t&&t.isDirectory()){rmdirSync(e,r,null)}else{r.unlinkSync(e)}}catch(t){if(t.code==="ENOENT"){return}else if(t.code==="EPERM"){return s?fixWinEPERMSync(e,r,t):rmdirSync(e,r,t)}else if(t.code!=="EISDIR"){throw t}rmdirSync(e,r,t)}}function rmdirSync(e,r,t){n(e);n(r);try{r.rmdirSync(e)}catch(a){if(a.code==="ENOTDIR"){throw t}else if(a.code==="ENOTEMPTY"||a.code==="EEXIST"||a.code==="EPERM"){rmkidsSync(e,r)}else if(a.code!=="ENOENT"){throw a}}}function rmkidsSync(e,r){n(e);n(r);r.readdirSync(e).forEach((t=>rimrafSync(i.join(e,t),r)));if(s){const t=Date.now();do{try{const t=r.rmdirSync(e,r);return t}catch{}}while(Date.now()-t<500)}else{const t=r.rmdirSync(e,r);return t}}e.exports=rimraf;rimraf.sync=rimrafSync},5513:(e,r,t)=>{"use strict";const a=t(2207);const i=t(1017);const n=t(3837);function getStats(e,r,t){const i=t.dereference?e=>a.stat(e,{bigint:true}):e=>a.lstat(e,{bigint:true});return Promise.all([i(e),i(r).catch((e=>{if(e.code==="ENOENT")return null;throw e}))]).then((([e,r])=>({srcStat:e,destStat:r})))}function getStatsSync(e,r,t){let i;const n=t.dereference?e=>a.statSync(e,{bigint:true}):e=>a.lstatSync(e,{bigint:true});const s=n(e);try{i=n(r)}catch(e){if(e.code==="ENOENT")return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:i}}function checkPaths(e,r,t,a,s){n.callbackify(getStats)(e,r,a,((a,n)=>{if(a)return s(a);const{srcStat:o,destStat:l}=n;if(l){if(areIdentical(o,l)){const a=i.basename(e);const n=i.basename(r);if(t==="move"&&a!==n&&a.toLowerCase()===n.toLowerCase()){return s(null,{srcStat:o,destStat:l,isChangingCase:true})}return s(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!l.isDirectory()){return s(new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`))}if(!o.isDirectory()&&l.isDirectory()){return s(new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`))}}if(o.isDirectory()&&isSrcSubdir(e,r)){return s(new Error(errMsg(e,r,t)))}return s(null,{srcStat:o,destStat:l})}))}function checkPathsSync(e,r,t,a){const{srcStat:n,destStat:s}=getStatsSync(e,r,a);if(s){if(areIdentical(n,s)){const a=i.basename(e);const o=i.basename(r);if(t==="move"&&a!==o&&a.toLowerCase()===o.toLowerCase()){return{srcStat:n,destStat:s,isChangingCase:true}}throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&!s.isDirectory()){throw new Error(`Cannot overwrite non-directory '${r}' with directory '${e}'.`)}if(!n.isDirectory()&&s.isDirectory()){throw new Error(`Cannot overwrite directory '${r}' with non-directory '${e}'.`)}}if(n.isDirectory()&&isSrcSubdir(e,r)){throw new Error(errMsg(e,r,t))}return{srcStat:n,destStat:s}}function checkParentPaths(e,r,t,n,s){const o=i.resolve(i.dirname(e));const l=i.resolve(i.dirname(t));if(l===o||l===i.parse(l).root)return s();a.stat(l,{bigint:true},((a,i)=>{if(a){if(a.code==="ENOENT")return s();return s(a)}if(areIdentical(r,i)){return s(new Error(errMsg(e,t,n)))}return checkParentPaths(e,r,l,n,s)}))}function checkParentPathsSync(e,r,t,n){const s=i.resolve(i.dirname(e));const o=i.resolve(i.dirname(t));if(o===s||o===i.parse(o).root)return;let l;try{l=a.statSync(o,{bigint:true})}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(r,l)){throw new Error(errMsg(e,t,n))}return checkParentPathsSync(e,r,o,n)}function areIdentical(e,r){return r.ino&&r.dev&&r.ino===e.ino&&r.dev===e.dev}function isSrcSubdir(e,r){const t=i.resolve(e).split(i.sep).filter((e=>e));const a=i.resolve(r).split(i.sep).filter((e=>e));return t.reduce(((e,r,t)=>e&&a[t]===r),true)}function errMsg(e,r,t){return`Cannot ${t} '${e}' to a subdirectory of itself, '${r}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir,areIdentical:areIdentical}},8223:(e,r,t)=>{"use strict";const a=t(9262);function utimesMillis(e,r,t,i){a.open(e,"r+",((e,n)=>{if(e)return i(e);a.futimes(n,r,t,(e=>{a.close(n,(r=>{if(i)i(e||r)}))}))}))}function utimesMillisSync(e,r,t){const i=a.openSync(e,"r+");a.futimesSync(i,r,t);return a.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},2254:e=>{"use strict";e.exports=clone;var r=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:r(e)};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}));return t}},9262:(e,r,t)=>{var a=t(7147);var i=t(868);var n=t(1928);var s=t(2254);var o=t(3837);var l;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){l=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{l="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,r){Object.defineProperty(e,l,{get:function(){return r}})}var c=noop;if(o.debuglog)c=o.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c=function(){var e=o.format.apply(o,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!a[l]){var f=global[l]||[];publishQueue(a,f);a.close=function(e){function close(r,t){return e.call(a,r,(function(e){if(!e){resetQueue()}if(typeof t==="function")t.apply(this,arguments)}))}Object.defineProperty(close,u,{value:e});return close}(a.close);a.closeSync=function(e){function closeSync(r){e.apply(a,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(a.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){c(a[l]);t(9491).equal(a[l].length,0)}))}}if(!global[l]){publishQueue(global,a[l])}e.exports=patch(s(a));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched){e.exports=patch(a);a.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var r=e.readFile;e.readFile=readFile;function readFile(e,t,a){if(typeof t==="function")a=t,t=null;return go$readFile(e,t,a);function go$readFile(e,t,a,i){return r(e,t,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$readFile,[e,t,a],r,i||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var t=e.writeFile;e.writeFile=writeFile;function writeFile(e,r,a,i){if(typeof a==="function")i=a,a=null;return go$writeFile(e,r,a,i);function go$writeFile(e,r,a,i,n){return t(e,r,a,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$writeFile,[e,r,a,i],t,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var a=e.appendFile;if(a)e.appendFile=appendFile;function appendFile(e,r,t,i){if(typeof t==="function")i=t,t=null;return go$appendFile(e,r,t,i);function go$appendFile(e,r,t,i,n){return a(e,r,t,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$appendFile,[e,r,t,i],a,n||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var s=e.copyFile;if(s)e.copyFile=copyFile;function copyFile(e,r,t,a){if(typeof t==="function"){a=t;t=0}return go$copyFile(e,r,t,a);function go$copyFile(e,r,t,a,i){return s(e,r,t,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$copyFile,[e,r,t,a],n,i||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var o=e.readdir;e.readdir=readdir;var l=/^v[0-5]\./;function readdir(e,r,t){if(typeof r==="function")t=r,r=null;var a=l.test(process.version)?function go$readdir(e,r,t,a){return o(e,fs$readdirCallback(e,r,t,a))}:function go$readdir(e,r,t,a){return o(e,r,fs$readdirCallback(e,r,t,a))};return a(e,r,t);function fs$readdirCallback(e,r,t,i){return function(n,s){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([a,[e,r,t],n,i||Date.now(),Date.now()]);else{if(s&&s.sort)s.sort();if(typeof t==="function")t.call(this,n,s)}}}}if(process.version.substr(0,4)==="v0.8"){var u=n(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var f=e.WriteStream;if(f){WriteStream.prototype=Object.create(f.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var p=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});var d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,r){if(this instanceof ReadStream)return c.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(r,t){if(r){if(e.autoClose)e.destroy();e.emit("error",r)}else{e.fd=t;e.emit("open",t);e.read()}}))}function WriteStream(e,r){if(this instanceof WriteStream)return f.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(r,t){if(r){e.destroy();e.emit("error",r)}else{e.fd=t;e.emit("open",t)}}))}function createReadStream(r,t){return new e.ReadStream(r,t)}function createWriteStream(r,t){return new e.WriteStream(r,t)}var h=e.open;e.open=open;function open(e,r,t,a){if(typeof t==="function")a=t,t=null;return go$open(e,r,t,a);function go$open(e,r,t,a,i){return h(e,r,t,(function(n,s){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$open,[e,r,t,a],n,i||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}return e}function enqueue(e){c("ENQUEUE",e[0].name,e[1]);a[l].push(e);retry()}var p;function resetQueue(){var e=Date.now();for(var r=0;r2){a[l][r][3]=e;a[l][r][4]=e}}retry()}function retry(){clearTimeout(p);p=undefined;if(a[l].length===0)return;var e=a[l].shift();var r=e[0];var t=e[1];var i=e[2];var n=e[3];var s=e[4];if(n===undefined){c("RETRY",r.name,t);r.apply(null,t)}else if(Date.now()-n>=6e4){c("TIMEOUT",r.name,t);var o=t.pop();if(typeof o==="function")o.call(null,i)}else{var u=Date.now()-s;var f=Math.max(s-n,1);var d=Math.min(f*1.2,100);if(u>=d){c("RETRY",r.name,t);r.apply(null,t.concat([n]))}else{a[l].push(e)}}if(p===undefined){p=setTimeout(retry,0)}}},1928:(e,r,t)=>{var a=t(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(r,t){if(!(this instanceof ReadStream))return new ReadStream(r,t);a.call(this);var i=this;this.path=r;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;t=t||{};var n=Object.keys(t);for(var s=0,o=n.length;sthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){i._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,r){if(e){i.emit("error",e);i.readable=false;return}i.fd=r;i.emit("open",r);i._read()}))}function WriteStream(r,t){if(!(this instanceof WriteStream))return new WriteStream(r,t);a.call(this);this.path=r;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;t=t||{};var i=Object.keys(t);for(var n=0,s=i.length;n= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},868:(e,r,t)=>{var a=t(2057);var i=process.cwd;var n=null;var s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!n)n=i.call(process);return n};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var o=process.chdir;process.chdir=function(e){n=null;o.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,o)}e.exports=patch;function patch(e){if(a.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,r,t){if(t)process.nextTick(t)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,r,t,a){if(a)process.nextTick(a)};e.lchownSync=function(){}}if(s==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(r){function rename(t,a,i){var n=Date.now();var s=0;r(t,a,(function CB(o){if(o&&(o.code==="EACCES"||o.code==="EPERM"||o.code==="EBUSY")&&Date.now()-n<6e4){setTimeout((function(){e.stat(a,(function(e,n){if(e&&e.code==="ENOENT")r(t,a,CB);else i(o)}))}),s);if(s<100)s+=10;return}if(i)i(o)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,r);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(r){function read(t,a,i,n,s,o){var l;if(o&&typeof o==="function"){var u=0;l=function(c,f,p){if(c&&c.code==="EAGAIN"&&u<10){u++;return r.call(e,t,a,i,n,s,l)}o.apply(this,arguments)}}return r.call(e,t,a,i,n,s,l)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,r);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(r){return function(t,a,i,n,s){var o=0;while(true){try{return r.call(e,t,a,i,n,s)}catch(e){if(e.code==="EAGAIN"&&o<10){o++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(r,t,i){e.open(r,a.O_WRONLY|a.O_SYMLINK,t,(function(r,a){if(r){if(i)i(r);return}e.fchmod(a,t,(function(r){e.close(a,(function(e){if(i)i(r||e)}))}))}))};e.lchmodSync=function(r,t){var i=e.openSync(r,a.O_WRONLY|a.O_SYMLINK,t);var n=true;var s;try{s=e.fchmodSync(i,t);n=false}finally{if(n){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return s}}function patchLutimes(e){if(a.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(r,t,i,n){e.open(r,a.O_SYMLINK,(function(r,a){if(r){if(n)n(r);return}e.futimes(a,t,i,(function(r){e.close(a,(function(e){if(n)n(r||e)}))}))}))};e.lutimesSync=function(r,t,i){var n=e.openSync(r,a.O_SYMLINK);var s;var o=true;try{s=e.futimesSync(n,t,i);o=false}finally{if(o){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return s}}else if(e.futimes){e.lutimes=function(e,r,t,a){if(a)process.nextTick(a)};e.lutimesSync=function(){}}}function chmodFix(r){if(!r)return r;return function(t,a,i){return r.call(e,t,a,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(r){if(!r)return r;return function(t,a){try{return r.call(e,t,a)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(r){if(!r)return r;return function(t,a,i,n){return r.call(e,t,a,i,(function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)}))}}function chownFixSync(r){if(!r)return r;return function(t,a,i){try{return r.call(e,t,a,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(r){if(!r)return r;return function(t,a,i){if(typeof a==="function"){i=a;a=null}function callback(e,r){if(r){if(r.uid<0)r.uid+=4294967296;if(r.gid<0)r.gid+=4294967296}if(i)i.apply(this,arguments)}return a?r.call(e,t,a,callback):r.call(e,t,callback)}}function statFixSync(r){if(!r)return r;return function(t,a){var i=a?r.call(e,t,a):r.call(e,t);if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var r=!process.getuid||process.getuid()!==0;if(r){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},3554:(e,r,t)=>{"use strict";var a=t(2037);if(typeof a.homedir!=="undefined"){e.exports=a.homedir}else{e.exports=t(6364)}},6364:(e,r,t)=>{"use strict";var a=t(7147);var i=t(4656);function homedir(){if(process.platform==="win32"){if(process.env.USERPROFILE){return process.env.USERPROFILE}if(process.env.HOMEDRIVE&&process.env.HOMEPATH){return process.env.HOMEDRIVE+process.env.HOMEPATH}if(process.env.HOME){return process.env.HOME}return null}if(process.env.HOME){return process.env.HOME}var e=tryReadFileSync("/etc/passwd");var r=find(i(e),getuid());if(r){return r}var t=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(!t){return null}if(process.platform==="darwin"){return"/Users/"+t}return"/home/"+t}function find(e,r){var t=e.length;for(var a=0;a{"use strict";var a=t(512);var i=t(3258);function renamed(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+r+" instead, which is now safe by default.")}}e.exports.Type=t(9672);e.exports.Schema=t(5050);e.exports.FAILSAFE_SCHEMA=t(4880);e.exports.JSON_SCHEMA=t(8170);e.exports.CORE_SCHEMA=t(9407);e.exports.DEFAULT_SCHEMA=t(4945);e.exports.load=a.load;e.exports.loadAll=a.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=t(7494);e.exports.types={binary:t(233),float:t(7145),map:t(7083),null:t(496),pairs:t(8180),set:t(6085),timestamp:t(4427),bool:t(3991),int:t(7375),merge:t(549),omap:t(9972),seq:t(4952),str:t(4381)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},8390:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,r){var t,a,i,n;if(r){n=Object.keys(r);for(t=0,a=n.length;t{"use strict";var a=t(8390);var i=t(7494);var n=t(4945);var s=Object.prototype.toString;var o=Object.prototype.hasOwnProperty;var l=65279;var u=9;var c=10;var f=13;var p=32;var d=33;var h=34;var m=35;var v=37;var y=38;var g=39;var w=42;var S=44;var b=45;var E=58;var P=61;var _=62;var x=63;var O=64;var k=91;var C=93;var R=96;var A=123;var F=124;var D=125;var I={};I[0]="\\0";I[7]="\\a";I[8]="\\b";I[9]="\\t";I[10]="\\n";I[11]="\\v";I[12]="\\f";I[13]="\\r";I[27]="\\e";I[34]='\\"';I[92]="\\\\";I[133]="\\N";I[160]="\\_";I[8232]="\\L";I[8233]="\\P";var j=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var T=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,r){var t,a,i,n,s,l,u;if(r===null)return{};t={};a=Object.keys(r);for(i=0,n=a.length;i=55296&&t<=56319&&r+1=56320&&a<=57343){return(t-55296)*1024+a-56320+65536}}return t}function needIndentIndicator(e){var r=/^\n* /;return r.test(e)}var L=1,M=2,q=3,U=4,H=5;function chooseScalarStyle(e,r,t,a,i,n,s,o){var l;var u=0;var f=null;var p=false;var d=false;var h=a!==-1;var m=-1;var v=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(r||s){for(l=0;l=65536?l+=2:l++){u=codePointAt(e,l);if(!isPrintable(u)){return H}v=v&&isPlainSafe(u,f,o);f=u}}else{for(l=0;l=65536?l+=2:l++){u=codePointAt(e,l);if(u===c){p=true;if(h){d=d||l-m-1>a&&e[m+1]!==" ";m=l}}else if(!isPrintable(u)){return H}v=v&&isPlainSafe(u,f,o);f=u}d=d||h&&(l-m-1>a&&e[m+1]!==" ")}if(!p&&!d){if(v&&!s&&!i(e)){return L}return n===N?H:M}if(t>9&&needIndentIndicator(e)){return H}if(!s){return d?U:q}return n===N?H:M}function writeScalar(e,r,t,a,n){e.dump=function(){if(r.length===0){return e.quotingType===N?'""':"''"}if(!e.noCompatMode){if(j.indexOf(r)!==-1||T.test(r)){return e.quotingType===N?'"'+r+'"':"'"+r+"'"}}var s=e.indent*Math.max(1,t);var o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s);var l=a||e.flowLevel>-1&&t>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,l,e.indent,o,testAmbiguity,e.quotingType,e.forceQuotes&&!a,n)){case L:return r;case M:return"'"+r.replace(/'/g,"''")+"'";case q:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,s));case U:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,o),s));case H:return'"'+escapeString(r,o)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,r){var t=needIndentIndicator(e)?String(r):"";var a=e[e.length-1]==="\n";var i=a&&(e[e.length-2]==="\n"||e==="\n");var n=i?"+":a?"":"-";return t+n+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,r){var t=/(\n+)([^\n]*)/g;var a=function(){var a=e.indexOf("\n");a=a!==-1?a:e.length;t.lastIndex=a;return foldLine(e.slice(0,a),r)}();var i=e[0]==="\n"||e[0]===" ";var n;var s;while(s=t.exec(e)){var o=s[1],l=s[2];n=l[0]===" ";a+=o+(!i&&!n&&l!==""?"\n":"")+foldLine(l,r);i=n}return a}function foldLine(e,r){if(e===""||e[0]===" ")return e;var t=/ [^ ]/g;var a;var i=0,n,s=0,o=0;var l="";while(a=t.exec(e)){o=a.index;if(o-i>r){n=s>i?s:o;l+="\n"+e.slice(i,n);i=n+1}s=o}l+="\n";if(e.length-i>r&&s>i){l+=e.slice(i,s)+"\n"+e.slice(s+1)}else{l+=e.slice(i)}return l.slice(1)}function escapeString(e){var r="";var t=0;var a;for(var i=0;i=65536?i+=2:i++){t=codePointAt(e,i);a=I[t];if(!a&&isPrintable(t)){r+=e[i];if(t>=65536)r+=e[i+1]}else{r+=a||encodeHex(t)}}return r}function writeFlowSequence(e,r,t){var a="",i=e.tag,n,s,o;for(n=0,s=t.length;n1024)c+="? ";c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,u,false,false)){continue}c+=e.dump;a+=c}e.tag=i;e.dump="{"+a+"}"}function writeBlockMapping(e,r,t,a){var n="",s=e.tag,o=Object.keys(t),l,u,f,p,d,h;if(e.sortKeys===true){o.sort()}else if(typeof e.sortKeys==="function"){o.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(l=0,u=o.length;l1024;if(d){if(e.dump&&c===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(d){h+=generateNextLine(e,r)}if(!writeNode(e,r+1,p,true,d)){continue}if(e.dump&&c===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;n+=h}e.tag=s;e.dump=n||"{}"}function detectType(e,r,t){var a,n,l,u,c,f;n=t?e.explicitTypes:e.implicitTypes;for(l=0,u=n.length;l tag resolver accepts not "'+f+'" style')}e.dump=a}return true}}return false}function writeNode(e,r,t,a,n,o,l){e.tag=null;e.dump=t;if(!detectType(e,t,false)){detectType(e,t,true)}var u=s.call(e.dump);var c=a;var f;if(a){a=e.flowLevel<0||e.flowLevel>r}var p=u==="[object Object]"||u==="[object Array]",d,h;if(p){d=e.duplicates.indexOf(t);h=d!==-1}if(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&r>0){n=false}if(h&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(p&&h&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(u==="[object Object]"){if(a&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,n);if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,r,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object Array]"){if(a&&e.dump.length!==0){if(e.noArrayIndent&&!l&&r>0){writeBlockSequence(e,r-1,e.dump,n)}else{writeBlockSequence(e,r,e.dump,n)}if(h){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,r,e.dump);if(h){e.dump="&ref_"+d+" "+e.dump}}}else if(u==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,o,c)}}else if(u==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+u)}if(e.tag!==null&&e.tag!=="?"){f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){f="!"+f}else if(f.slice(0,18)==="tag:yaml.org,2002:"){f="!!"+f.slice(18)}else{f="!<"+f+">"}e.dump=f+" "+e.dump}}return true}function getDuplicateReferences(e,r){var t=[],a=[],i,n;inspectNode(e,t,a);for(i=0,n=a.length;i{"use strict";function formatError(e,r){var t="",a=e.reason||"(unknown reason)";if(!e.mark)return a;if(e.mark.name){t+='in "'+e.mark.name+'" '}t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!r&&e.mark.snippet){t+="\n\n"+e.mark.snippet}return a+" "+t}function YAMLException(e,r){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=r;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},512:(e,r,t)=>{"use strict";var a=t(8390);var i=t(7494);var n=t(3615);var s=t(4945);var o=Object.prototype.hasOwnProperty;var l=1;var u=2;var c=3;var f=4;var p=1;var d=2;var h=3;var m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var v=/[\x85\u2028\u2029]/;var y=/[,\[\]\{\}]/;var g=/^(?:!|!!|![a-z\-]+!)$/i;var w=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var r;if(48<=e&&e<=57){return e-48}r=e|32;if(97<=r&&r<=102){return r-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var S=new Array(256);var b=new Array(256);for(var E=0;E<256;E++){S[E]=simpleEscapeSequence(E)?1:0;b[E]=simpleEscapeSequence(E)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||s;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};t.snippet=n(t);return new i(r,t)}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var P={YAML:function handleYamlDirective(e,r,t){var a,i,n;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(t.length!==1){throwError(e,"YAML directive accepts exactly one argument")}a=/^([0-9]+)\.([0-9]+)$/.exec(t[0]);if(a===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(a[1],10);n=parseInt(a[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=t[0];e.checkLineBreaks=n<2;if(n!==1&&n!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,r,t){var a,i;if(t.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}a=t[0];i=t[1];if(!g.test(a)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(o.call(e.tagMap,a)){throwError(e,'there is a previously declared suffix for "'+a+'" tag handle')}if(!w.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(r){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[a]=i}};function captureSegment(e,r,t,a){var i,n,s,o;if(r1){e.result+=a.repeat("\n",r-1)}}function readPlainScalar(e,r,t){var a,i,n,s,o,l,u,c,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||t&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";n=s=e.position;o=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||t&&is_FLOW_INDICATOR(i)){break}}else if(d===35){a=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(a)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||t&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){l=e.line;u=e.lineStart;c=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=r){o=true;d=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=l;e.lineStart=u;e.lineIndent=c;break}}if(o){captureSegment(e,n,s,false);writeFoldedLines(e,e.line-l);n=s=e.position;o=false}if(!is_WHITE_SPACE(d)){s=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,n,s,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,r){var t,a,i;t=e.input.charCodeAt(e.position);if(t!==39){return false}e.kind="scalar";e.result="";e.position++;a=i=e.position;while((t=e.input.charCodeAt(e.position))!==0){if(t===39){captureSegment(e,a,e.position,true);t=e.input.charCodeAt(++e.position);if(t===39){a=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(t)){captureSegment(e,a,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));a=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,r){var t,a,i,n,s,o;o=e.input.charCodeAt(e.position);if(o!==34){return false}e.kind="scalar";e.result="";e.position++;t=a=e.position;while((o=e.input.charCodeAt(e.position))!==0){if(o===34){captureSegment(e,t,e.position,true);e.position++;return true}else if(o===92){captureSegment(e,t,e.position,true);o=e.input.charCodeAt(++e.position);if(is_EOL(o)){skipSeparationSpace(e,false,r)}else if(o<256&&S[o]){e.result+=b[o];e.position++}else if((s=escapedHexLen(o))>0){i=s;n=0;for(;i>0;i--){o=e.input.charCodeAt(++e.position);if((s=fromHexCode(o))>=0){n=(n<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(n);e.position++}else{throwError(e,"unknown escape sequence")}t=a=e.position}else if(is_EOL(o)){captureSegment(e,t,a,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));t=a=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;a=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,r){var t=true,a,i,n,s=e.tag,o,u=e.anchor,c,f,p,d,h,m=Object.create(null),v,y,g,w;w=e.input.charCodeAt(e.position);if(w===91){f=93;h=false;o=[]}else if(w===123){f=125;h=true;o={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=o}w=e.input.charCodeAt(++e.position);while(w!==0){skipSeparationSpace(e,true,r);w=e.input.charCodeAt(e.position);if(w===f){e.position++;e.tag=s;e.anchor=u;e.kind=h?"mapping":"sequence";e.result=o;return true}else if(!t){throwError(e,"missed comma between flow collection entries")}else if(w===44){throwError(e,"expected the node content, but found ','")}y=v=g=null;p=d=false;if(w===63){c=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(c)){p=d=true;e.position++;skipSeparationSpace(e,true,r)}}a=e.line;i=e.lineStart;n=e.position;composeNode(e,r,l,false,true);y=e.tag;v=e.result;skipSeparationSpace(e,true,r);w=e.input.charCodeAt(e.position);if((d||e.line===a)&&w===58){p=true;w=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,l,false,true);g=e.result}if(h){storeMappingPair(e,o,m,y,v,g,a,i,n)}else if(p){o.push(storeMappingPair(e,null,m,y,v,g,a,i,n))}else{o.push(v)}skipSeparationSpace(e,true,r);w=e.input.charCodeAt(e.position);if(w===44){t=true;w=e.input.charCodeAt(++e.position)}else{t=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,r){var t,i,n=p,s=false,o=false,l=r,u=0,c=false,f,m;m=e.input.charCodeAt(e.position);if(m===124){i=false}else if(m===62){i=true}else{return false}e.kind="scalar";e.result="";while(m!==0){m=e.input.charCodeAt(++e.position);if(m===43||m===45){if(p===n){n=m===43?h:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((f=fromDecimalCode(m))>=0){if(f===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!o){l=r+f-1;o=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(m)){do{m=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(m));if(m===35){do{m=e.input.charCodeAt(++e.position)}while(!is_EOL(m)&&m!==0)}}while(m!==0){readLineBreak(e);e.lineIndent=0;m=e.input.charCodeAt(e.position);while((!o||e.lineIndentl){l=e.lineIndent}if(is_EOL(m)){u++;continue}if(e.lineIndentr)&&l!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(g){s=e.line;o=e.lineStart;l=e.position}if(composeNode(e,r,f,true,i)){if(g){v=e.result}else{y=e.result}}if(!g){storeMappingPair(e,d,h,m,v,y,s,o,l);m=v=y=null}skipSeparationSpace(e,true,-1);S=e.input.charCodeAt(e.position)}if((e.line===n||e.lineIndent>r)&&S!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentr){d=1}else if(e.lineIndent===r){d=0}else if(e.lineIndentr){d=1}else if(e.lineIndent===r){d=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(v=0,y=e.implicitTypes.length;v")}if(e.result!==null&&w.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+w.kind+'", not "'+e.kind+'"')}if(!w.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=w.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||m}function readDocument(e){var r=e.position,t,a,i,n=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}n=true;s=e.input.charCodeAt(++e.position);t=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}a=e.input.slice(t,e.position);i=[];if(a.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;t=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}i.push(e.input.slice(t,e.position))}if(s!==0)readLineBreak(e);if(o.call(P,a)){P[a](e,a,i)}else{throwWarning(e,'unknown document directive "'+a+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(n){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,f,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&v.test(e.input.slice(r,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{"use strict";var a=t(7494);var i=t(9672);function compileList(e,r){var t=[];e[r].forEach((function(e){var r=t.length;t.forEach((function(t,a){if(t.tag===e.tag&&t.kind===e.kind&&t.multi===e.multi){r=a}}));t[r]=e}));return t}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function collectType(r){if(r.multi){e.multi[r.kind].push(r);e.multi["fallback"].push(r)}else{e[r.kind][r.tag]=e["fallback"][r.tag]=r}}for(r=0,t=arguments.length;r{"use strict";e.exports=t(8170)},4945:(e,r,t)=>{"use strict";e.exports=t(9407).extend({implicit:[t(4427),t(549)],explicit:[t(233),t(9972),t(8180),t(6085)]})},4880:(e,r,t)=>{"use strict";var a=t(5050);e.exports=new a({explicit:[t(4381),t(4952),t(7083)]})},8170:(e,r,t)=>{"use strict";e.exports=t(4880).extend({implicit:[t(496),t(3991),t(7375),t(7145)]})},3615:(e,r,t)=>{"use strict";var a=t(8390);function getLine(e,r,t,a,i){var n="";var s="";var o=Math.floor(i/2)-1;if(a-r>o){n=" ... ";r=a-o+n.length}if(t-a>o){s=" ...";t=a+o-s.length}return{str:n+e.slice(r,t).replace(/\t/g,"→")+s,pos:a-r+n.length}}function padStart(e,r){return a.repeat(" ",r-e.length)+e}function makeSnippet(e,r){r=Object.create(r||null);if(!e.buffer)return null;if(!r.maxLength)r.maxLength=79;if(typeof r.indent!=="number")r.indent=1;if(typeof r.linesBefore!=="number")r.linesBefore=3;if(typeof r.linesAfter!=="number")r.linesAfter=2;var t=/\r?\n|\r|\0/g;var i=[0];var n=[];var s;var o=-1;while(s=t.exec(e.buffer)){n.push(s.index);i.push(s.index+s[0].length);if(e.position<=s.index&&o<0){o=i.length-2}}if(o<0)o=i.length-1;var l="",u,c;var f=Math.min(e.line+r.linesAfter,n.length).toString().length;var p=r.maxLength-(r.indent+f+3);for(u=1;u<=r.linesBefore;u++){if(o-u<0)break;c=getLine(e.buffer,i[o-u],n[o-u],e.position-(i[o]-i[o-u]),p);l=a.repeat(" ",r.indent)+padStart((e.line-u+1).toString(),f)+" | "+c.str+"\n"+l}c=getLine(e.buffer,i[o],n[o],e.position,p);l+=a.repeat(" ",r.indent)+padStart((e.line+1).toString(),f)+" | "+c.str+"\n";l+=a.repeat("-",r.indent+f+3+c.pos)+"^"+"\n";for(u=1;u<=r.linesAfter;u++){if(o+u>=n.length)break;c=getLine(e.buffer,i[o+u],n[o+u],e.position-(i[o]-i[o+u]),p);l+=a.repeat(" ",r.indent)+padStart((e.line+u+1).toString(),f)+" | "+c.str+"\n"}return l.replace(/\n$/,"")}e.exports=makeSnippet},9672:(e,r,t)=>{"use strict";var a=t(7494);var i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var n=["scalar","sequence","mapping"];function compileStyleAliases(e){var r={};if(e!==null){Object.keys(e).forEach((function(t){e[t].forEach((function(e){r[String(e)]=t}))}))}return r}function Type(e,r){r=r||{};Object.keys(r).forEach((function(r){if(i.indexOf(r)===-1){throw new a('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}}));this.options=r;this.tag=e;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(e){return e};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.representName=r["representName"]||null;this.defaultStyle=r["defaultStyle"]||null;this.multi=r["multi"]||false;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(n.indexOf(this.kind)===-1){throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},233:(e,r,t)=>{"use strict";var a=t(9672);var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var r,t,a=0,n=e.length,s=i;for(t=0;t64)continue;if(r<0)return false;a+=6}return a%8===0}function constructYamlBinary(e){var r,t,a=e.replace(/[\r\n=]/g,""),n=a.length,s=i,o=0,l=[];for(r=0;r>16&255);l.push(o>>8&255);l.push(o&255)}o=o<<6|s.indexOf(a.charAt(r))}t=n%4*6;if(t===0){l.push(o>>16&255);l.push(o>>8&255);l.push(o&255)}else if(t===18){l.push(o>>10&255);l.push(o>>2&255)}else if(t===12){l.push(o>>4&255)}return new Uint8Array(l)}function representYamlBinary(e){var r="",t=0,a,n,s=e.length,o=i;for(a=0;a>18&63];r+=o[t>>12&63];r+=o[t>>6&63];r+=o[t&63]}t=(t<<8)+e[a]}n=s%3;if(n===0){r+=o[t>>18&63];r+=o[t>>12&63];r+=o[t>>6&63];r+=o[t&63]}else if(n===2){r+=o[t>>10&63];r+=o[t>>4&63];r+=o[t<<2&63];r+=o[64]}else if(n===1){r+=o[t>>2&63];r+=o[t<<4&63];r+=o[64];r+=o[64]}return r}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new a("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},3991:(e,r,t)=>{"use strict";var a=t(9672);function resolveYamlBoolean(e){if(e===null)return false;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},7145:(e,r,t)=>{"use strict";var a=t(8390);var i=t(9672);var n=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!n.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var r,t;r=e.replace(/_/g,"").toLowerCase();t=r[0]==="-"?-1:1;if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}return t*parseFloat(r,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,r){var t;if(isNaN(e)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(a.isNegativeZero(e)){return"-0.0"}t=e.toString(10);return s.test(t)?t.replace("e",".e"):t}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||a.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},7375:(e,r,t)=>{"use strict";var a=t(8390);var i=t(9672);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var r=e.length,t=0,a=false,i;if(!r)return false;i=e[t];if(i==="-"||i==="+"){i=e[++t]}if(i==="0"){if(t+1===r)return true;i=e[++t];if(i==="b"){t++;for(;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},7083:(e,r,t)=>{"use strict";var a=t(9672);e.exports=new a("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},549:(e,r,t)=>{"use strict";var a=t(9672);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new a("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},496:(e,r,t)=>{"use strict";var a=t(9672);function resolveYamlNull(e){if(e===null)return true;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new a("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9972:(e,r,t)=>{"use strict";var a=t(9672);var i=Object.prototype.hasOwnProperty;var n=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var r=[],t,a,s,o,l,u=e;for(t=0,a=u.length;t{"use strict";var a=t(9672);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var r,t,a,n,s,o=e;s=new Array(o.length);for(r=0,t=o.length;r{"use strict";var a=t(9672);e.exports=new a("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},6085:(e,r,t)=>{"use strict";var a=t(9672);var i=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var r,t=e;for(r in t){if(i.call(t,r)){if(t[r]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new a("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},4381:(e,r,t)=>{"use strict";var a=t(9672);e.exports=new a("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},4427:(e,r,t)=>{"use strict";var a=t(9672);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var n=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(i.exec(e)!==null)return true;if(n.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var r,t,a,s,o,l,u,c=0,f=null,p,d,h;r=i.exec(e);if(r===null)r=n.exec(e);if(r===null)throw new Error("Date resolve error");t=+r[1];a=+r[2]-1;s=+r[3];if(!r[4]){return new Date(Date.UTC(t,a,s))}o=+r[4];l=+r[5];u=+r[6];if(r[7]){c=r[7].slice(0,3);while(c.length<3){c+="0"}c=+c}if(r[9]){p=+r[10];d=+(r[11]||0);f=(p*60+d)*6e4;if(r[9]==="-")f=-f}h=new Date(Date.UTC(t,a,s,o,l,u,c));if(f)h.setTime(h.getTime()-f);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},9653:e=>{"use strict";var r=e.exports=function(e,r,t){if(typeof r=="function"){t=r;r={}}t=r.cb||t;var a=typeof t=="function"?t:t.pre||function(){};var i=t.post||function(){};_traverse(r,a,i,e,"",e)};r.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};r.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};r.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};r.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,t,a,i,n,s,o,l,u,c){if(i&&typeof i=="object"&&!Array.isArray(i)){t(i,n,s,o,l,u,c);for(var f in i){var p=i[f];if(Array.isArray(p)){if(f in r.arrayKeywords){for(var d=0;d{let a;try{a=t(9262)}catch(e){a=t(7147)}const i=t(2450);const{stringify:n,stripBom:s}=t(1413);async function _readFile(e,r={}){if(typeof r==="string"){r={encoding:r}}const t=r.fs||a;const n="throws"in r?r.throws:true;let o=await i.fromCallback(t.readFile)(e,r);o=s(o);let l;try{l=JSON.parse(o,r?r.reviver:null)}catch(r){if(n){r.message=`${e}: ${r.message}`;throw r}else{return null}}return l}const o=i.fromPromise(_readFile);function readFileSync(e,r={}){if(typeof r==="string"){r={encoding:r}}const t=r.fs||a;const i="throws"in r?r.throws:true;try{let a=t.readFileSync(e,r);a=s(a);return JSON.parse(a,r.reviver)}catch(r){if(i){r.message=`${e}: ${r.message}`;throw r}else{return null}}}async function _writeFile(e,r,t={}){const s=t.fs||a;const o=n(r,t);await i.fromCallback(s.writeFile)(e,o,t)}const l=i.fromPromise(_writeFile);function writeFileSync(e,r,t={}){const i=t.fs||a;const s=n(r,t);return i.writeFileSync(e,s,t)}const u={readFile:o,readFileSync:readFileSync,writeFile:l,writeFileSync:writeFileSync};e.exports=u},1413:e=>{function stringify(e,{EOL:r="\n",finalEOL:t=true,replacer:a=null,spaces:i}={}){const n=t?r:"";const s=JSON.stringify(e,a,i);return s.replace(/\n/g,r)+n}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},4656:e=>{"use strict";e.exports=function(e){if(typeof e!=="string"){throw new Error("expected a string")}return e.split("\n").map(user).filter(Boolean)};function user(e,r){if(!e||!e.length||e.charAt(0)==="#"){return null}var t=e.split(":");return{username:t[0],password:t[1],uid:t[2],gid:t[3],gecos:t[4],homedir:t[5],shell:t[6]}}},417:(e,r,t)=>{e.exports=t(5452)},5452:(e,r,t)=>{"use strict";var a=t(1808);var i=t(4404);var n=t(3685);var s=t(5687);var o=t(2361);var l=t(9491);var u=t(3837);r.httpOverHttp=httpOverHttp;r.httpsOverHttp=httpsOverHttp;r.httpOverHttps=httpOverHttps;r.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var r=new TunnelingAgent(e);r.request=n.request;return r}function httpsOverHttp(e){var r=new TunnelingAgent(e);r.request=n.request;r.createSocket=createSecureSocket;r.defaultPort=443;return r}function httpOverHttps(e){var r=new TunnelingAgent(e);r.request=s.request;return r}function httpsOverHttps(e){var r=new TunnelingAgent(e);r.request=s.request;r.createSocket=createSecureSocket;r.defaultPort=443;return r}function TunnelingAgent(e){var r=this;r.options=e||{};r.proxyOptions=r.options.proxy||{};r.maxSockets=r.options.maxSockets||n.Agent.defaultMaxSockets;r.requests=[];r.sockets=[];r.on("free",(function onFree(e,t,a,i){var n=toOptions(t,a,i);for(var s=0,o=r.requests.length;s=this.maxSockets){i.requests.push(n);return}i.createSocket(n,(function(r){r.on("free",onFree);r.on("close",onCloseOrRemove);r.on("agentRemove",onCloseOrRemove);e.onSocket(r);function onFree(){i.emit("free",r,n)}function onCloseOrRemove(e){i.removeSocket(r);r.removeListener("free",onFree);r.removeListener("close",onCloseOrRemove);r.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,r){var t=this;var a={};t.sockets.push(a);var i=mergeOptions({},t.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}c("making CONNECT request");var n=t.request(i);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,r,t){process.nextTick((function(){onConnect(e,r,t)}))}function onConnect(i,s,o){n.removeAllListeners();s.removeAllListeners();if(i.statusCode!==200){c("tunneling socket could not be established, statusCode=%d",i.statusCode);s.destroy();var l=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);l.code="ECONNRESET";e.request.emit("error",l);t.removeSocket(a);return}if(o.length>0){c("got illegal response body from proxy");s.destroy();var l=new Error("got illegal response body from proxy");l.code="ECONNRESET";e.request.emit("error",l);t.removeSocket(a);return}c("tunneling connection has established");t.sockets[t.sockets.indexOf(a)]=s;return r(s)}function onError(r){n.removeAllListeners();c("tunneling socket could not be established, cause=%s\n",r.message,r.stack);var i=new Error("tunneling socket could not be established, "+"cause="+r.message);i.code="ECONNRESET";e.request.emit("error",i);t.removeSocket(a)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var r=this.sockets.indexOf(e);if(r===-1){return}this.sockets.splice(r,1);var t=this.requests.shift();if(t){this.createSocket(t,(function(e){t.request.onSocket(e)}))}};function createSecureSocket(e,r){var t=this;TunnelingAgent.prototype.createSocket.call(t,e,(function(a){var n=e.request.getHeader("host");var s=mergeOptions({},t.options,{socket:a,servername:n?n.replace(/:.*$/,""):e.host});var o=i.connect(0,s);t.sockets[t.sockets.indexOf(a)]=o;r(o)}))}function toOptions(e,r,t){if(typeof e==="string"){return{host:e,port:r,localAddress:t}}return e}function mergeOptions(e){for(var r=1,t=arguments.length;r{"use strict";r.fromCallback=function(e){return Object.defineProperty((function(...r){if(typeof r[r.length-1]==="function")e.apply(this,r);else{return new Promise(((t,a)=>{e.call(this,...r,((e,r)=>e!=null?a(e):t(r)))}))}}),"name",{value:e.name})};r.fromPromise=function(e){return Object.defineProperty((function(...r){const t=r[r.length-1];if(typeof t!=="function")return e.apply(this,r);else e.apply(this,r.slice(0,-1)).then((e=>t(null,e)),t)}),"name",{value:e.name})}},4950:function(e,r){ /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ (function(e,t){true?t(r):0})(this,(function(e){"use strict";function merge(){for(var e=arguments.length,r=Array(e),t=0;t1){r[0]=r[0].slice(0,-1);var a=r.length-1;for(var i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var y=n-s;var g=Math.floor;var w=String.fromCharCode;function error$1(e){throw new RangeError(v[e])}function map(e,r){var t=[];var a=e.length;while(a--){t[a]=r(e[a])}return t}function mapDomain(e,r){var t=e.split("@");var a="";if(t.length>1){a=t[0]+"@";e=t[1]}e=e.replace(m,".");var i=e.split(".");var n=map(i,r).join(".");return a+n}function ucs2decode(e){var r=[];var t=0;var a=e.length;while(t=55296&&i<=56319&&t>1;e+=g(e/r);for(;e>y*o>>1;a+=n){e=g(e/y)}return g(a+(y+1)*e/(e+l))};var _=function decode(e){var r=[];var t=e.length;var a=0;var l=f;var u=c;var d=e.lastIndexOf(p);if(d<0){d=0}for(var h=0;h=128){error$1("not-basic")}r.push(e.charCodeAt(h))}for(var m=d>0?d+1:0;m=t){error$1("invalid-input")}var S=b(e.charCodeAt(m++));if(S>=n||S>g((i-a)/y)){error$1("overflow")}a+=S*y;var E=w<=u?s:w>=u+o?o:w-u;if(Sg(i/_)){error$1("overflow")}y*=_}var x=r.length+1;u=P(a-v,x,v==0);if(g(a/x)>i-l){error$1("overflow")}l+=g(a/x);a%=x;r.splice(a++,0,l)}return String.fromCodePoint.apply(String,r)};var x=function encode(e){var r=[];e=ucs2decode(e);var t=e.length;var a=f;var l=0;var u=c;var d=true;var h=false;var m=undefined;try{for(var v=e[Symbol.iterator](),y;!(d=(y=v.next()).done);d=true){var S=y.value;if(S<128){r.push(w(S))}}}catch(e){h=true;m=e}finally{try{if(!d&&v.return){v.return()}}finally{if(h){throw m}}}var b=r.length;var _=b;if(b){r.push(p)}while(_=a&&Fg((i-l)/D)){error$1("overflow")}l+=(x-a)*D;a=x;var I=true;var j=false;var T=undefined;try{for(var $=e[Symbol.iterator](),N;!(I=(N=$.next()).done);I=true){var L=N.value;if(Li){error$1("overflow")}if(L==a){var M=l;for(var q=n;;q+=n){var U=q<=u?s:q>=u+o?o:q-u;if(M>6|192).toString(16).toUpperCase()+"%"+(r&63|128).toString(16).toUpperCase();else t="%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(r&63|128).toString(16).toUpperCase();return t}function pctDecChars(e){var r="";var t=0;var a=e.length;while(t=194&&i<224){if(a-t>=6){var n=parseInt(e.substr(t+4,2),16);r+=String.fromCharCode((i&31)<<6|n&63)}else{r+=e.substr(t,6)}t+=6}else if(i>=224){if(a-t>=9){var s=parseInt(e.substr(t+4,2),16);var o=parseInt(e.substr(t+7,2),16);r+=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63)}else{r+=e.substr(t,9)}t+=9}else{r+=e.substr(t,3);t+=3}}return r}function _normalizeComponentEncoding(e,r){function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(r.UNRESERVED)?e:t}if(e.scheme)e.scheme=String(e.scheme).replace(r.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(r.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_USERINFO,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(r.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(r.NOT_HOST,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(r.PCT_ENCODED,decodeUnreserved).replace(e.scheme?r.NOT_PATH:r.NOT_PATH_NOSCHEME,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_QUERY,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_FRAGMENT,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,r){var t=e.match(r.IPV4ADDRESS)||[];var i=a(t,2),n=i[1];if(n){return n.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,r){var t=e.match(r.IPV6ADDRESS)||[];var i=a(t,3),n=i[1],s=i[2];if(n){var o=n.toLowerCase().split("::").reverse(),l=a(o,2),u=l[0],c=l[1];var f=c?c.split(":").map(_stripLeadingZeros):[];var p=u.split(":").map(_stripLeadingZeros);var d=r.IPV4ADDRESS.test(p[p.length-1]);var h=d?7:8;var m=p.length-h;var v=Array(h);for(var y=0;y1){var b=v.slice(0,w.index);var E=v.slice(w.index+w.length);S=b.join(":")+"::"+E.join(":")}else{S=v.join(":")}if(s){S+="%"+s}return S}else{return e}}var A=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var F="".match(/(){0}/)[1]===undefined;function parse(e){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i={};var n=a.iri!==false?t:r;if(a.reference==="suffix")e=(a.scheme?a.scheme+":":"")+"//"+e;var s=e.match(A);if(s){if(F){i.scheme=s[1];i.userinfo=s[3];i.host=s[4];i.port=parseInt(s[5],10);i.path=s[6]||"";i.query=s[7];i.fragment=s[8];if(isNaN(i.port)){i.port=s[5]}}else{i.scheme=s[1]||undefined;i.userinfo=e.indexOf("@")!==-1?s[3]:undefined;i.host=e.indexOf("//")!==-1?s[4]:undefined;i.port=parseInt(s[5],10);i.path=s[6]||"";i.query=e.indexOf("?")!==-1?s[7]:undefined;i.fragment=e.indexOf("#")!==-1?s[8]:undefined;if(isNaN(i.port)){i.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:undefined}}if(i.host){i.host=_normalizeIPv6(_normalizeIPv4(i.host,n),n)}if(i.scheme===undefined&&i.userinfo===undefined&&i.host===undefined&&i.port===undefined&&!i.path&&i.query===undefined){i.reference="same-document"}else if(i.scheme===undefined){i.reference="relative"}else if(i.fragment===undefined){i.reference="absolute"}else{i.reference="uri"}if(a.reference&&a.reference!=="suffix"&&a.reference!==i.reference){i.error=i.error||"URI is not a "+a.reference+" reference."}var o=R[(a.scheme||i.scheme||"").toLowerCase()];if(!a.unicodeSupport&&(!o||!o.unicodeSupport)){if(i.host&&(a.domainHost||o&&o.domainHost)){try{i.host=C.toASCII(i.host.replace(n.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(i,r)}else{_normalizeComponentEncoding(i,n)}if(o&&o.parse){o.parse(i,a)}}else{i.error=i.error||"URI can not be parsed."}return i}function _recomposeAuthority(e,a){var i=a.iri!==false?t:r;var n=[];if(e.userinfo!==undefined){n.push(e.userinfo);n.push("@")}if(e.host!==undefined){n.push(_normalizeIPv6(_normalizeIPv4(String(e.host),i),i).replace(i.IPV6ADDRESS,(function(e,r,t){return"["+r+(t?"%25"+t:"")+"]"})))}if(typeof e.port==="number"||typeof e.port==="string"){n.push(":");n.push(String(e.port))}return n.length?n.join(""):undefined}var D=/^\.\.?\//;var I=/^\/\.(\/|$)/;var j=/^\/\.\.(\/|$)/;var T=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var r=[];while(e.length){if(e.match(D)){e=e.replace(D,"")}else if(e.match(I)){e=e.replace(I,"/")}else if(e.match(j)){e=e.replace(j,"/");r.pop()}else if(e==="."||e===".."){e=""}else{var t=e.match(T);if(t){var a=t[0];e=e.slice(a.length);r.push(a)}else{throw new Error("Unexpected dot segment condition")}}}return r.join("")}function serialize(e){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=a.iri?t:r;var n=[];var s=R[(a.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize)s.serialize(e,a);if(e.host){if(i.IPV6ADDRESS.test(e.host)){}else if(a.domainHost||s&&s.domainHost){try{e.host=!a.iri?C.toASCII(e.host.replace(i.PCT_ENCODED,pctDecChars).toLowerCase()):C.toUnicode(e.host)}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(!a.iri?"ASCII":"Unicode")+" via punycode: "+r}}}_normalizeComponentEncoding(e,i);if(a.reference!=="suffix"&&e.scheme){n.push(e.scheme);n.push(":")}var o=_recomposeAuthority(e,a);if(o!==undefined){if(a.reference!=="suffix"){n.push("//")}n.push(o);if(e.path&&e.path.charAt(0)!=="/"){n.push("/")}}if(e.path!==undefined){var l=e.path;if(!a.absolutePath&&(!s||!s.absolutePath)){l=removeDotSegments(l)}if(o===undefined){l=l.replace(/^\/\//,"/%2F")}n.push(l)}if(e.query!==undefined){n.push("?");n.push(e.query)}if(e.fragment!==undefined){n.push("#");n.push(e.fragment)}return n.join("")}function resolveComponents(e,r){var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments[3];var i={};if(!a){e=parse(serialize(e,t),t);r=parse(serialize(r,t),t)}t=t||{};if(!t.tolerant&&r.scheme){i.scheme=r.scheme;i.userinfo=r.userinfo;i.host=r.host;i.port=r.port;i.path=removeDotSegments(r.path||"");i.query=r.query}else{if(r.userinfo!==undefined||r.host!==undefined||r.port!==undefined){i.userinfo=r.userinfo;i.host=r.host;i.port=r.port;i.path=removeDotSegments(r.path||"");i.query=r.query}else{if(!r.path){i.path=e.path;if(r.query!==undefined){i.query=r.query}else{i.query=e.query}}else{if(r.path.charAt(0)==="/"){i.path=removeDotSegments(r.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){i.path="/"+r.path}else if(!e.path){i.path=r.path}else{i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path}i.path=removeDotSegments(i.path)}i.query=r.query}i.userinfo=e.userinfo;i.host=e.host;i.port=e.port}i.scheme=e.scheme}i.fragment=r.fragment;return i}function resolve(e,r,t){var a=assign({scheme:"null"},t);return serialize(resolveComponents(parse(e,a),parse(r,a),a,true),a)}function normalize(e,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=parse(serialize(e,r),r)}return e}function equal(e,r,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=serialize(e,t)}if(typeof r==="string"){r=serialize(parse(r,t),t)}else if(typeOf(r)==="object"){r=serialize(r,t)}return e===r}function escapeComponent(e,a){return e&&e.toString().replace(!a||!a.iri?r.ESCAPE:t.ESCAPE,pctEncChar)}function unescapeComponent(e,a){return e&&e.toString().replace(!a||!a.iri?r.PCT_ENCODED:t.PCT_ENCODED,pctDecChars)}var $={scheme:"http",domainHost:true,parse:function parse(e,r){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,r){var t=String(e.scheme).toLowerCase()==="https";if(e.port===(t?443:80)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var N={scheme:"https",domainHost:$.domainHost,parse:$.parse,serialize:$.serialize};function isSecure(e){return typeof e.secure==="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}var L={scheme:"ws",domainHost:true,parse:function parse(e,r){var t=e;t.secure=isSecure(t);t.resourceName=(t.path||"/")+(t.query?"?"+t.query:"");t.path=undefined;t.query=undefined;return t},serialize:function serialize(e,r){if(e.port===(isSecure(e)?443:80)||e.port===""){e.port=undefined}if(typeof e.secure==="boolean"){e.scheme=e.secure?"wss":"ws";e.secure=undefined}if(e.resourceName){var t=e.resourceName.split("?"),i=a(t,2),n=i[0],s=i[1];e.path=n&&n!=="/"?n:undefined;e.query=s;e.resourceName=undefined}e.fragment=undefined;return e}};var M={scheme:"wss",domainHost:L.domainHost,parse:L.parse,serialize:L.serialize};var q={};var U=true;var H="[A-Za-z0-9\\-\\.\\_\\~"+(U?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var B="[0-9A-Fa-f]";var z=subexp(subexp("%[EFef]"+B+"%"+B+B+"%"+B+B)+"|"+subexp("%[89A-Fa-f]"+B+"%"+B+B)+"|"+subexp("%"+B+B));var V="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var W="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var Q=merge(W,'[\\"\\\\]');var Y="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var K=new RegExp(H,"g");var J=new RegExp(z,"g");var G=new RegExp(merge("[^]",V,"[\\.]",'[\\"]',Q),"g");var Z=new RegExp(merge("[^]",H,Y),"g");var X=Z;function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(K)?e:r}var ee={scheme:"mailto",parse:function parse$$1(e,r){var t=e;var a=t.to=t.path?t.path.split(","):[];t.path=undefined;if(t.query){var i=false;var n={};var s=t.query.split("&");for(var o=0,l=s.length;o{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(r,"v3",{enumerable:true,get:function(){return i.default}});Object.defineProperty(r,"v4",{enumerable:true,get:function(){return n.default}});Object.defineProperty(r,"v5",{enumerable:true,get:function(){return s.default}});Object.defineProperty(r,"NIL",{enumerable:true,get:function(){return o.default}});Object.defineProperty(r,"version",{enumerable:true,get:function(){return l.default}});Object.defineProperty(r,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(r,"stringify",{enumerable:true,get:function(){return c.default}});Object.defineProperty(r,"parse",{enumerable:true,get:function(){return f.default}});var a=_interopRequireDefault(t(8060));var i=_interopRequireDefault(t(1133));var n=_interopRequireDefault(t(7619));var s=_interopRequireDefault(t(6324));var o=_interopRequireDefault(t(2796));var l=_interopRequireDefault(t(834));var u=_interopRequireDefault(t(7316));var c=_interopRequireDefault(t(6664));var f=_interopRequireDefault(t(8883));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},5972:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("md5").update(e).digest()}var i=md5;r["default"]=i},2796:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var t="00000000-0000-0000-0000-000000000000";r["default"]=t},8883:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(7316));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}let r;const t=new Uint8Array(16);t[0]=(r=parseInt(e.slice(0,8),16))>>>24;t[1]=r>>>16&255;t[2]=r>>>8&255;t[3]=r&255;t[4]=(r=parseInt(e.slice(9,13),16))>>>8;t[5]=r&255;t[6]=(r=parseInt(e.slice(14,18),16))>>>8;t[7]=r&255;t[8]=(r=parseInt(e.slice(19,23),16))>>>8;t[9]=r&255;t[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255;t[11]=r/4294967296&255;t[12]=r>>>24&255;t[13]=r>>>16&255;t[14]=r>>>8&255;t[15]=r&255;return t}var i=parse;r["default"]=i},7932:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;r["default"]=t},5700:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=rng;var a=_interopRequireDefault(t(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=new Uint8Array(256);let n=i.length;function rng(){if(n>i.length-16){a.default.randomFillSync(i);n=0}return i.slice(n,n+=16)}},6812:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return a.default.createHash("sha1").update(e).digest()}var i=sha1;r["default"]=i},6664:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(7316));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=[];for(let e=0;e<256;++e){i.push((e+256).toString(16).substr(1))}function stringify(e,r=0){const t=(i[e[r+0]]+i[e[r+1]]+i[e[r+2]]+i[e[r+3]]+"-"+i[e[r+4]]+i[e[r+5]]+"-"+i[e[r+6]]+i[e[r+7]]+"-"+i[e[r+8]]+i[e[r+9]]+"-"+i[e[r+10]]+i[e[r+11]]+i[e[r+12]]+i[e[r+13]]+i[e[r+14]]+i[e[r+15]]).toLowerCase();if(!(0,a.default)(t)){throw TypeError("Stringified UUID is invalid")}return t}var n=stringify;r["default"]=n},8060:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(5700));var i=_interopRequireDefault(t(6664));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let n;let s;let o=0;let l=0;function v1(e,r,t){let u=r&&t||0;const c=r||new Array(16);e=e||{};let f=e.node||n;let p=e.clockseq!==undefined?e.clockseq:s;if(f==null||p==null){const r=e.random||(e.rng||a.default)();if(f==null){f=n=[r[0]|1,r[1],r[2],r[3],r[4],r[5]]}if(p==null){p=s=(r[6]<<8|r[7])&16383}}let d=e.msecs!==undefined?e.msecs:Date.now();let h=e.nsecs!==undefined?e.nsecs:l+1;const m=d-o+(h-l)/1e4;if(m<0&&e.clockseq===undefined){p=p+1&16383}if((m<0||d>o)&&e.nsecs===undefined){h=0}if(h>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}o=d;l=h;s=p;d+=122192928e5;const v=((d&268435455)*1e4+h)%4294967296;c[u++]=v>>>24&255;c[u++]=v>>>16&255;c[u++]=v>>>8&255;c[u++]=v&255;const y=d/4294967296*1e4&268435455;c[u++]=y>>>8&255;c[u++]=y&255;c[u++]=y>>>24&15|16;c[u++]=y>>>16&255;c[u++]=p>>>8|128;c[u++]=p&255;for(let e=0;e<6;++e){c[u+e]=f[e]}return r||(0,i.default)(c)}var u=v1;r["default"]=u},1133:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(7968));var i=_interopRequireDefault(t(5972));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n=(0,a.default)("v3",48,i.default);var s=n;r["default"]=s},7968:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=_default;r.URL=r.DNS=void 0;var a=_interopRequireDefault(t(6664));var i=_interopRequireDefault(t(8883));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const r=[];for(let t=0;t{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(5700));var i=_interopRequireDefault(t(6664));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,r,t){e=e||{};const n=e.random||(e.rng||a.default)();n[6]=n[6]&15|64;n[8]=n[8]&63|128;if(r){t=t||0;for(let e=0;e<16;++e){r[t+e]=n[e]}return r}return(0,i.default)(n)}var n=v4;r["default"]=n},6324:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(7968));var i=_interopRequireDefault(t(6812));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n=(0,a.default)("v5",80,i.default);var s=n;r["default"]=s},7316:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(7932));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&a.default.test(e)}var i=validate;r["default"]=i},834:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=void 0;var a=_interopRequireDefault(t(7316));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var i=version;r["default"]=i},9491:e=>{"use strict";e.exports=require("assert")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},7282:e=>{"use strict";e.exports=require("process")},2781:e=>{"use strict";e.exports=require("stream")},4404:e=>{"use strict";e.exports=require("tls")},3837:e=>{"use strict";e.exports=require("util")},5379:e=>{"use strict";e.exports=JSON.parse('{"anyOf":[{"$ref":"#/definitions/RunInstall"},{"type":"array","items":{"$ref":"#/definitions/RunInstall"}},{"type":["null","boolean"]}],"definitions":{"RunInstall":{"type":"object","properties":{"recursive":{"type":"boolean"},"cwd":{"type":"string"},"args":{"type":"array","items":{"type":"string"}}}}},"$schema":"http://json-schema.org/draft-07/schema#"}')},3246:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},8703:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}};var r={};function __nccwpck_require__(t){var a=r[t];if(a!==undefined){return a.exports}var i=r[t]={exports:{}};var n=true;try{e[t].call(i.exports,i,i.exports,__nccwpck_require__);n=false}finally{if(n)delete r[t]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(9450);module.exports=t})(); \ No newline at end of file diff --git a/package.json b/package.json index 3db923d..b03a33a 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ "@types/expand-tilde": "^2.0.0", "@types/fs-extra": "^9.0.13", "@types/js-yaml": "^4.0.5", - "@types/node": "^14.18.32", - "@types/node-fetch": "^2.6.2", + "@types/node": "^14.18.54", + "@types/node-fetch": "^2.6.4", "ajv": "^6.12.6", "expand-tilde": "^2.0.2", "fs-extra": "^10.1.0", @@ -21,6 +21,6 @@ "devDependencies": { "@ts-schema-autogen/cli": "^0.1.2", "@vercel/ncc": "^0.33.4", - "typescript": "^4.8.4" + "typescript": "^4.9.5" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5f9330a..64d1063 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,67 +1,82 @@ -lockfileVersion: 5.4 - -specifiers: - '@actions/core': ^1.10.0 - '@ts-schema-autogen/cli': ^0.1.2 - '@types/expand-tilde': ^2.0.0 - '@types/fs-extra': ^9.0.13 - '@types/js-yaml': ^4.0.5 - '@types/node': ^14.18.32 - '@types/node-fetch': ^2.6.2 - '@vercel/ncc': ^0.33.4 - ajv: ^6.12.6 - expand-tilde: ^2.0.2 - fs-extra: ^10.1.0 - js-yaml: ^4.1.0 - typescript: ^4.8.4 +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false dependencies: - '@actions/core': 1.10.0 - '@types/expand-tilde': 2.0.0 - '@types/fs-extra': 9.0.13 - '@types/js-yaml': 4.0.5 - '@types/node': 14.18.32 - '@types/node-fetch': 2.6.2 - ajv: 6.12.6 - expand-tilde: 2.0.2 - fs-extra: 10.1.0 - js-yaml: 4.1.0 + '@actions/core': + specifier: ^1.10.0 + version: 1.10.0 + '@types/expand-tilde': + specifier: ^2.0.0 + version: 2.0.0 + '@types/fs-extra': + specifier: ^9.0.13 + version: 9.0.13 + '@types/js-yaml': + specifier: ^4.0.5 + version: 4.0.5 + '@types/node': + specifier: ^14.18.54 + version: 14.18.54 + '@types/node-fetch': + specifier: ^2.6.4 + version: 2.6.4 + ajv: + specifier: ^6.12.6 + version: 6.12.6 + expand-tilde: + specifier: ^2.0.2 + version: 2.0.2 + fs-extra: + specifier: ^10.1.0 + version: 10.1.0 + js-yaml: + specifier: ^4.1.0 + version: 4.1.0 devDependencies: - '@ts-schema-autogen/cli': 0.1.2 - '@vercel/ncc': 0.33.4 - typescript: 4.8.4 + '@ts-schema-autogen/cli': + specifier: ^0.1.2 + version: 0.1.2 + '@vercel/ncc': + specifier: ^0.33.4 + version: 0.33.4 + typescript: + specifier: ^4.9.5 + version: 4.9.5 packages: - /@actions/core/1.10.0: + /@actions/core@1.10.0: resolution: {integrity: sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==} dependencies: - '@actions/http-client': 2.0.1 + '@actions/http-client': 2.1.0 uuid: 8.3.2 dev: false - /@actions/http-client/2.0.1: - resolution: {integrity: sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==} + /@actions/http-client@2.1.0: + resolution: {integrity: sha512-BonhODnXr3amchh4qkmjPMUO8mFi/zLaaCeCAJZqch8iQqyDnVIkySjB38VHAC8IJ+bnlgfOqlhpyCUZHlQsqw==} dependencies: tunnel: 0.0.6 dev: false - /@ts-schema-autogen/cli/0.1.2: + /@ts-schema-autogen/cli@0.1.2: resolution: {integrity: sha512-61aIkJh7RDDNLCQJtp++1pL/LWlPAI9dxgWyhXycyRm4TRaTVaRBOoxTVnN0IVT+akdhWeiXkhNkCzG6Vd5zAw==} hasBin: true dependencies: '@ts-schema-autogen/main': 0.1.1 '@types/fs-extra': 8.1.2 '@types/node': 13.13.52 - '@types/yargs': 15.0.14 + '@types/yargs': 15.0.15 fs-extra: 8.1.0 tslib: 1.14.1 typescript-json-schema: 0.42.0 yargs: 15.4.1 dev: true - /@ts-schema-autogen/lib/0.1.1: + /@ts-schema-autogen/lib@0.1.1: resolution: {integrity: sha512-1oOQ9lbGnA3RVfIMiX1thvC0OEvTpvuTyLC6kwaBm8CnOBSFsxWUtoQ9ceyVe/otOqZL4SoucMmbJ3kOUnK7EQ==} dependencies: '@ts-schema-autogen/status': 0.1.1 @@ -78,7 +93,7 @@ packages: tslib: 1.14.1 dev: true - /@ts-schema-autogen/main/0.1.1: + /@ts-schema-autogen/main@0.1.1: resolution: {integrity: sha512-IC193iebvbbERdx2DGugDq97ne4Fn+zXNVqTc40QuyTbzTGBES6+DnSfI3t1e2f/jX0xGT1e6pDMN8DbdrK1Hw==} dependencies: '@ts-schema-autogen/lib': 0.1.1 @@ -91,7 +106,7 @@ packages: tslib: 1.14.1 dev: true - /@ts-schema-autogen/schemas/0.1.1: + /@ts-schema-autogen/schemas@0.1.1: resolution: {integrity: sha512-cHzhHPJsCQbZCYetSpxRcIEB17MLDOUnuxZiuZ0Yn1BRS72qMwgXqCDckMgGuf9TAsfbkBxUiOIT0C8S7FPYyw==} dependencies: '@ts-schema-autogen/types': 0.1.1 @@ -100,7 +115,7 @@ packages: tslib: 1.14.1 dev: true - /@ts-schema-autogen/status/0.1.1: + /@ts-schema-autogen/status@0.1.1: resolution: {integrity: sha512-zN5KSkk9HjrsgCRFiENYUL7K/fZvK/afQolfSDrqj3nnyuYzRazIn/i2fV5pgTrdEKG3fK/95Zznko7evtK2ow==} dependencies: '@ts-schema-autogen/types': 0.1.1 @@ -109,7 +124,7 @@ packages: tslib: 1.14.1 dev: true - /@ts-schema-autogen/types/0.1.1: + /@ts-schema-autogen/types@0.1.1: resolution: {integrity: sha512-ePh2vU49xe8Tb4gXytOFDtI/dtSVzQpT1fp5WlyS4KwADZH4Gplj5c3M9t0m7bXl07qUVw5HnF7O6G7iliQ/XQ==} dependencies: '@ts-schema-autogen/utils': 0.0.1 @@ -118,14 +133,14 @@ packages: typescript-json-schema: 0.42.0 dev: true - /@ts-schema-autogen/utils/0.0.1: + /@ts-schema-autogen/utils@0.0.1: resolution: {integrity: sha512-ASFLu03+zcRBaVAeRCTP84WvuHxmpGiksORB8QpE3nOmWC9m+f/dDRTvgTq/t3bNIYVSe1vKs4LutXX5pjhdjA==} dependencies: '@types/node': 13.13.52 tslib: 1.14.1 dev: true - /@ts-schema-autogen/validate/0.1.1: + /@ts-schema-autogen/validate@0.1.1: resolution: {integrity: sha512-5h1xEHsCBk4JZeecLATpEDvCzuQifqA6YzmlEu2C1u8zEMNpv6Y49Yw7ABDGOnam8HQVdnCG6QggKVjVE4GyJQ==} dependencies: '@ts-schema-autogen/schemas': 0.1.1 @@ -137,7 +152,7 @@ packages: tslib: 1.14.1 dev: true - /@tsfun/object/0.0.17: + /@tsfun/object@0.0.17: resolution: {integrity: sha512-H/hRAlGWkoui1ZqIX2iPSQdK07mUF7QZwIkyY5SzwBIe1jVkSRNXmHtm9WvWMuoaGCr3peCZGXphximX3DEzig==} dependencies: '@types/node': 13.13.52 @@ -145,7 +160,7 @@ packages: utility-types: 3.10.0 dev: true - /@tsfun/pipe/0.0.11: + /@tsfun/pipe@0.0.11: resolution: {integrity: sha512-jL88eyhDR/Pena+eBzY9bw8SOED9nET2QPNSgvXpz4XK9t2CBmwtu6YUPzdZCBG6RTSZoQV5VKmsXu4255qVaA==} engines: {node: '>= 8.9.0'} dependencies: @@ -154,7 +169,7 @@ packages: tslib: 1.14.1 dev: true - /@tsfun/prv-option-result-common/0.0.11: + /@tsfun/prv-option-result-common@0.0.11: resolution: {integrity: sha512-AIp2Oygr9WD12BG4p+fUEhyGtPnchRVALahzDab2eobkD2IhxRnHsKZh4J3v84faEIuXbnpdfALwGkzaOcgkPA==} engines: {node: '>= 8.9.0'} dependencies: @@ -162,14 +177,14 @@ packages: tslib: 1.14.1 dev: true - /@tsfun/prv-types/0.0.6: + /@tsfun/prv-types@0.0.6: resolution: {integrity: sha512-s97gvRX2SjGTdU+Odsi6RgsVFi+xNOx3T6Jew2mo7m7Wj6eJmM0HB0HlFPmwIIi2MtXIpSr71TZmRVcMeU3Atw==} dependencies: '@types/node': 13.13.52 tslib: 1.14.1 dev: true - /@tsfun/result/0.0.16: + /@tsfun/result@0.0.16: resolution: {integrity: sha512-lUpVISAm0RUxRdyVUuAOLBe7ArdrQkepdLz4nML0a/2/WvrDsAIn2PIdRL3eZXqqdyhS2dy+ot5E5vc/RNWOEQ==} engines: {node: '>= 8.9.0'} dependencies: @@ -180,71 +195,71 @@ packages: tslib: 1.14.1 dev: true - /@tsfun/tap/0.0.10: + /@tsfun/tap@0.0.10: resolution: {integrity: sha512-ArfW5g+1BxUXhqWOCOceiR3iviWn6PvDjOHzSBCCw3luYlVJ8JwYMcvj9ZXITBbP33uM8NKbxwzjRGGVckXLdg==} dependencies: '@types/node': 13.13.52 tslib: 1.14.1 dev: true - /@types/expand-tilde/2.0.0: + /@types/expand-tilde@2.0.0: resolution: {integrity: sha512-17h/6MRHoetV2QVUVnUfrmaFCXNIFJ3uDJmXlklX2xDtlEb1W0OXLgP+qwND2Ibg/PtQfQi0vx19KGuPayjLiw==} dev: false - /@types/fs-extra/8.1.2: + /@types/fs-extra@8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 14.18.32 + '@types/node': 14.18.54 dev: true - /@types/fs-extra/9.0.13: + /@types/fs-extra@9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.32 + '@types/node': 14.18.54 dev: false - /@types/js-yaml/3.12.7: + /@types/js-yaml@3.12.7: resolution: {integrity: sha512-S6+8JAYTE1qdsc9HMVsfY7+SgSuUU/Tp6TYTmITW0PZxiyIMvol3Gy//y69Wkhs0ti4py5qgR3uZH6uz/DNzJQ==} dev: true - /@types/js-yaml/4.0.5: + /@types/js-yaml@4.0.5: resolution: {integrity: sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==} dev: false - /@types/json-schema/7.0.11: - resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==} + /@types/json-schema@7.0.12: + resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==} dev: true - /@types/node-fetch/2.6.2: - resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==} + /@types/node-fetch@2.6.4: + resolution: {integrity: sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==} dependencies: - '@types/node': 14.18.32 + '@types/node': 14.18.54 form-data: 3.0.1 dev: false - /@types/node/13.13.52: + /@types/node@13.13.52: resolution: {integrity: sha512-s3nugnZumCC//n4moGGe6tkNMyYEdaDBitVjwPxXmR5lnMG5dHePinH2EdxkG3Rh1ghFHHixAG4NJhpJW1rthQ==} dev: true - /@types/node/14.18.32: - resolution: {integrity: sha512-Y6S38pFr04yb13qqHf8uk1nHE3lXgQ30WZbv1mLliV9pt0NjvqdWttLcrOYLnXbOafknVYRHZGoMSpR9UwfYow==} + /@types/node@14.18.54: + resolution: {integrity: sha512-uq7O52wvo2Lggsx1x21tKZgqkJpvwCseBBPtX/nKQfpVlEsLOb11zZ1CRsWUKvJF0+lzuA9jwvA7Pr2Wt7i3xw==} - /@types/yargs-parser/21.0.0: + /@types/yargs-parser@21.0.0: resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} dev: true - /@types/yargs/15.0.14: - resolution: {integrity: sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==} + /@types/yargs@15.0.15: + resolution: {integrity: sha512-IziEYMU9XoVj8hWg7k+UJrXALkGFjWJhn5QFEv9q4p+v40oZhSuC135M38st8XPjICL7Ey4TV64ferBGUoJhBg==} dependencies: '@types/yargs-parser': 21.0.0 dev: true - /@vercel/ncc/0.33.4: + /@vercel/ncc@0.33.4: resolution: {integrity: sha512-ln18hs7dMffelP47tpkaR+V5Tj6coykNyxJrlcmCormPqRQjB/Gv4cu2FfBG+PMzIfdZp2CLDsrrB1NPU22Qhg==} hasBin: true dev: true - /ajv/6.12.6: + /ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} dependencies: fast-deep-equal: 3.1.3 @@ -252,68 +267,68 @@ packages: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - /ansi-regex/4.1.1: + /ansi-regex@4.1.1: resolution: {integrity: sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==} engines: {node: '>=6'} dev: true - /ansi-regex/5.0.1: + /ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} dev: true - /ansi-styles/3.2.1: + /ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} dependencies: color-convert: 1.9.3 dev: true - /ansi-styles/4.3.0: + /ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} dependencies: color-convert: 2.0.1 dev: true - /argparse/1.0.10: + /argparse@1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} dependencies: sprintf-js: 1.0.3 dev: true - /argparse/2.0.1: + /argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} dev: false - /asynckit/0.4.0: + /asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} dev: false - /balanced-match/1.0.2: + /balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} dev: true - /better-path-join/0.0.1: + /better-path-join@0.0.1: resolution: {integrity: sha512-JIv4V7rh19/Hg0O5I0l8eSobC3F+aUWaL9D9QQKAKFw4Qj+whdRrlRejrYICPS2NEJ/2vsDjhKur3iFhQf49QQ==} dependencies: '@types/node': 13.13.52 tslib: 1.14.1 dev: true - /brace-expansion/1.1.11: + /brace-expansion@1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} dependencies: balanced-match: 1.0.2 concat-map: 0.0.1 dev: true - /camelcase/5.3.1: + /camelcase@5.3.1: resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} engines: {node: '>=6'} dev: true - /cliui/5.0.0: + /cliui@5.0.0: resolution: {integrity: sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==} dependencies: string-width: 3.1.0 @@ -321,7 +336,7 @@ packages: wrap-ansi: 5.1.0 dev: true - /cliui/6.0.0: + /cliui@6.0.0: resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} dependencies: string-width: 4.2.3 @@ -329,97 +344,97 @@ packages: wrap-ansi: 6.2.0 dev: true - /color-convert/1.9.3: + /color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} dependencies: color-name: 1.1.3 dev: true - /color-convert/2.0.1: + /color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} dependencies: color-name: 1.1.4 dev: true - /color-name/1.1.3: + /color-name@1.1.3: resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} dev: true - /color-name/1.1.4: + /color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} dev: true - /combined-stream/1.0.8: + /combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} dependencies: delayed-stream: 1.0.0 dev: false - /concat-map/0.0.1: + /concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: true - /decamelize/1.2.0: + /decamelize@1.2.0: resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} engines: {node: '>=0.10.0'} dev: true - /delayed-stream/1.0.0: + /delayed-stream@1.0.0: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} dev: false - /emoji-regex/7.0.3: + /emoji-regex@7.0.3: resolution: {integrity: sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==} dev: true - /emoji-regex/8.0.0: + /emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} dev: true - /esprima/4.0.1: + /esprima@4.0.1: resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} engines: {node: '>=4'} hasBin: true dev: true - /exec-once/0.1.8: + /exec-once@0.1.8: resolution: {integrity: sha512-zv8nmN+jF366nAEuNgOh5U2owy5MMkv+N1LCp1utCH63ujSXr92H3x2lDR+Mstm9xNmXNlo45W/Ch+TrN1jAdw==} dependencies: - '@types/node': 14.18.32 - tslib: 2.4.0 + '@types/node': 14.18.54 + tslib: 2.6.1 dev: true - /expand-tilde/2.0.2: + /expand-tilde@2.0.2: resolution: {integrity: sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==} engines: {node: '>=0.10.0'} dependencies: homedir-polyfill: 1.0.3 dev: false - /fast-deep-equal/3.1.3: + /fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - /fast-json-stable-stringify/2.1.0: + /fast-json-stable-stringify@2.1.0: resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - /fast-traverse/0.1.7: + /fast-traverse@0.1.7: resolution: {integrity: sha512-gZTQvJSgrGV24F8AeeTNxip8OEkjRHwDDpGw0b51TzRVGjJsKzh6CuHf9ltVjJZzni5Ead+EEQJ0IFCuoCJUtA==} dependencies: - '@types/node': 14.18.32 - tslib: 2.4.0 + '@types/node': 14.18.54 + tslib: 2.6.1 dev: true - /find-up/3.0.0: + /find-up@3.0.0: resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==} engines: {node: '>=6'} dependencies: locate-path: 3.0.0 dev: true - /find-up/4.1.0: + /find-up@4.1.0: resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} engines: {node: '>=8'} dependencies: @@ -427,7 +442,7 @@ packages: path-exists: 4.0.0 dev: true - /form-data/3.0.1: + /form-data@3.0.1: resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} engines: {node: '>= 6'} dependencies: @@ -436,34 +451,34 @@ packages: mime-types: 2.1.35 dev: false - /fs-extra/10.1.0: + /fs-extra@10.1.0: resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} engines: {node: '>=12'} dependencies: - graceful-fs: 4.2.10 + graceful-fs: 4.2.11 jsonfile: 6.1.0 universalify: 2.0.0 dev: false - /fs-extra/8.1.0: + /fs-extra@8.1.0: resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} engines: {node: '>=6 <7 || >=8'} dependencies: - graceful-fs: 4.2.10 + graceful-fs: 4.2.11 jsonfile: 4.0.0 universalify: 0.1.2 dev: true - /fs.realpath/1.0.0: + /fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} dev: true - /get-caller-file/2.0.5: + /get-caller-file@2.0.5: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} dev: true - /glob/7.1.7: + /glob@7.1.7: resolution: {integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==} dependencies: fs.realpath: 1.0.0 @@ -474,38 +489,38 @@ packages: path-is-absolute: 1.0.1 dev: true - /graceful-fs/4.2.10: - resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} + /graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - /homedir-polyfill/1.0.3: + /homedir-polyfill@1.0.3: resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} engines: {node: '>=0.10.0'} dependencies: parse-passwd: 1.0.0 dev: false - /inflight/1.0.6: + /inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} dependencies: once: 1.4.0 wrappy: 1.0.2 dev: true - /inherits/2.0.4: + /inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} dev: true - /is-fullwidth-code-point/2.0.0: + /is-fullwidth-code-point@2.0.0: resolution: {integrity: sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==} engines: {node: '>=4'} dev: true - /is-fullwidth-code-point/3.0.0: + /is-fullwidth-code-point@3.0.0: resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} engines: {node: '>=8'} dev: true - /js-yaml/3.14.1: + /js-yaml@3.14.1: resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} hasBin: true dependencies: @@ -513,41 +528,41 @@ packages: esprima: 4.0.1 dev: true - /js-yaml/4.1.0: + /js-yaml@4.1.0: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true dependencies: argparse: 2.0.1 dev: false - /json-schema-traverse/0.4.1: + /json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - /json-stable-stringify/1.0.1: - resolution: {integrity: sha512-i/J297TW6xyj7sDFa7AmBPkQvLIxWr2kKPWI26tXydnZrzVAocNqn5DMNT1Mzk0vit1V5UkRM7C1KdVNp7Lmcg==} + /json-stable-stringify@1.0.2: + resolution: {integrity: sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g==} dependencies: jsonify: 0.0.1 dev: true - /jsonfile/4.0.0: + /jsonfile@4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} optionalDependencies: - graceful-fs: 4.2.10 + graceful-fs: 4.2.11 dev: true - /jsonfile/6.1.0: + /jsonfile@6.1.0: resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} dependencies: universalify: 2.0.0 optionalDependencies: - graceful-fs: 4.2.10 + graceful-fs: 4.2.11 dev: false - /jsonify/0.0.1: + /jsonify@0.0.1: resolution: {integrity: sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==} dev: true - /locate-path/3.0.0: + /locate-path@3.0.0: resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==} engines: {node: '>=6'} dependencies: @@ -555,105 +570,105 @@ packages: path-exists: 3.0.0 dev: true - /locate-path/5.0.0: + /locate-path@5.0.0: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} dependencies: p-locate: 4.1.0 dev: true - /mime-db/1.52.0: + /mime-db@1.52.0: resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} engines: {node: '>= 0.6'} dev: false - /mime-types/2.1.35: + /mime-types@2.1.35: resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} engines: {node: '>= 0.6'} dependencies: mime-db: 1.52.0 dev: false - /minimatch/3.1.2: + /minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} dependencies: brace-expansion: 1.1.11 dev: true - /once/1.4.0: + /once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} dependencies: wrappy: 1.0.2 dev: true - /p-limit/2.3.0: + /p-limit@2.3.0: resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} engines: {node: '>=6'} dependencies: p-try: 2.2.0 dev: true - /p-locate/3.0.0: + /p-locate@3.0.0: resolution: {integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==} engines: {node: '>=6'} dependencies: p-limit: 2.3.0 dev: true - /p-locate/4.1.0: + /p-locate@4.1.0: resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} engines: {node: '>=8'} dependencies: p-limit: 2.3.0 dev: true - /p-try/2.2.0: + /p-try@2.2.0: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} dev: true - /parse-passwd/1.0.0: + /parse-passwd@1.0.0: resolution: {integrity: sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==} engines: {node: '>=0.10.0'} dev: false - /path-exists/3.0.0: + /path-exists@3.0.0: resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==} engines: {node: '>=4'} dev: true - /path-exists/4.0.0: + /path-exists@4.0.0: resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} dev: true - /path-is-absolute/1.0.1: + /path-is-absolute@1.0.1: resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} engines: {node: '>=0.10.0'} dev: true - /punycode/2.1.1: - resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==} + /punycode@2.3.0: + resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} engines: {node: '>=6'} - /require-directory/2.1.1: + /require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} dev: true - /require-main-filename/2.0.0: + /require-main-filename@2.0.0: resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} dev: true - /set-blocking/2.0.0: + /set-blocking@2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} dev: true - /sprintf-js/1.0.3: + /sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} dev: true - /string-width/3.1.0: + /string-width@3.1.0: resolution: {integrity: sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==} engines: {node: '>=6'} dependencies: @@ -662,7 +677,7 @@ packages: strip-ansi: 5.2.0 dev: true - /string-width/4.2.3: + /string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} dependencies: @@ -671,86 +686,86 @@ packages: strip-ansi: 6.0.1 dev: true - /strip-ansi/5.2.0: + /strip-ansi@5.2.0: resolution: {integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==} engines: {node: '>=6'} dependencies: ansi-regex: 4.1.1 dev: true - /strip-ansi/6.0.1: + /strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} dependencies: ansi-regex: 5.0.1 dev: true - /tslib/1.14.1: + /tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} dev: true - /tslib/2.4.0: - resolution: {integrity: sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==} + /tslib@2.6.1: + resolution: {integrity: sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==} dev: true - /tunnel/0.0.6: + /tunnel@0.0.6: resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==} engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'} dev: false - /typescript-json-schema/0.42.0: + /typescript-json-schema@0.42.0: resolution: {integrity: sha512-9WO+lVmlph7Ecb7lPd9tU84XFUQh44kpAf3cWe/Ym4G5EKw/SS6XGpi1DZDthvxqkIdNSDlWi7FhKfxuIV/3yw==} hasBin: true dependencies: - '@types/json-schema': 7.0.11 + '@types/json-schema': 7.0.12 glob: 7.1.7 - json-stable-stringify: 1.0.1 + json-stable-stringify: 1.0.2 typescript: 3.9.10 yargs: 14.2.3 dev: true - /typescript/3.9.10: + /typescript@3.9.10: resolution: {integrity: sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==} engines: {node: '>=4.2.0'} hasBin: true dev: true - /typescript/4.8.4: - resolution: {integrity: sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==} + /typescript@4.9.5: + resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} engines: {node: '>=4.2.0'} hasBin: true dev: true - /universalify/0.1.2: + /universalify@0.1.2: resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} engines: {node: '>= 4.0.0'} dev: true - /universalify/2.0.0: + /universalify@2.0.0: resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} engines: {node: '>= 10.0.0'} dev: false - /uri-js/4.4.1: + /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: - punycode: 2.1.1 + punycode: 2.3.0 - /utility-types/3.10.0: + /utility-types@3.10.0: resolution: {integrity: sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==} engines: {node: '>= 4'} dev: true - /uuid/8.3.2: + /uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} hasBin: true dev: false - /which-module/2.0.0: - resolution: {integrity: sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==} + /which-module@2.0.1: + resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} dev: true - /wrap-ansi/5.1.0: + /wrap-ansi@5.1.0: resolution: {integrity: sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==} engines: {node: '>=6'} dependencies: @@ -759,7 +774,7 @@ packages: strip-ansi: 5.2.0 dev: true - /wrap-ansi/6.2.0: + /wrap-ansi@6.2.0: resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} engines: {node: '>=8'} dependencies: @@ -768,22 +783,22 @@ packages: strip-ansi: 6.0.1 dev: true - /wrappy/1.0.2: + /wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} dev: true - /y18n/4.0.3: + /y18n@4.0.3: resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} dev: true - /yargs-parser/15.0.3: + /yargs-parser@15.0.3: resolution: {integrity: sha512-/MVEVjTXy/cGAjdtQf8dW3V9b97bPN7rNn8ETj6BmAQL7ibC7O1Q9SPJbGjgh3SlwoBNXMzj/ZGIj8mBgl12YA==} dependencies: camelcase: 5.3.1 decamelize: 1.2.0 dev: true - /yargs-parser/18.1.3: + /yargs-parser@18.1.3: resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} engines: {node: '>=6'} dependencies: @@ -791,7 +806,7 @@ packages: decamelize: 1.2.0 dev: true - /yargs/14.2.3: + /yargs@14.2.3: resolution: {integrity: sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg==} dependencies: cliui: 5.0.0 @@ -802,12 +817,12 @@ packages: require-main-filename: 2.0.0 set-blocking: 2.0.0 string-width: 3.1.0 - which-module: 2.0.0 + which-module: 2.0.1 y18n: 4.0.3 yargs-parser: 15.0.3 dev: true - /yargs/15.4.1: + /yargs@15.4.1: resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==} engines: {node: '>=8'} dependencies: @@ -819,7 +834,7 @@ packages: require-main-filename: 2.0.0 set-blocking: 2.0.0 string-width: 4.2.3 - which-module: 2.0.0 + which-module: 2.0.1 y18n: 4.0.3 yargs-parser: 18.1.3 dev: true diff --git a/run.sh b/run.sh index 8af79df..cda71de 100755 --- a/run.sh +++ b/run.sh @@ -4,4 +4,5 @@ export HOME="$(pwd)" export INPUT_VERSION=4.11.1 export INPUT_DEST='~/pnpm.temp' export INPUT_RUN_INSTALL=null +export INPUT_standalone=false exec node dist/index.js diff --git a/src/inputs/index.ts b/src/inputs/index.ts index 5ebfb4b..a9b705a 100644 --- a/src/inputs/index.ts +++ b/src/inputs/index.ts @@ -1,4 +1,4 @@ -import { getInput, InputOptions } from '@actions/core' +import { getBooleanInput, getInput, InputOptions } from '@actions/core' import expandTilde from 'expand-tilde' import { RunInstall, parseRunInstall } from './run-install' @@ -7,6 +7,7 @@ export interface Inputs { readonly dest: string readonly runInstall: RunInstall[] readonly packageJsonFile: string + readonly standalone: boolean } const options: InputOptions = { @@ -20,6 +21,7 @@ export const getInputs = (): Inputs => ({ dest: parseInputPath('dest'), runInstall: parseRunInstall('run_install'), packageJsonFile: parseInputPath('package_json_file'), + standalone: getBooleanInput('standalone'), }) export default getInputs diff --git a/src/install-pnpm/run.ts b/src/install-pnpm/run.ts index f3fd1f9..7a547f0 100644 --- a/src/install-pnpm/run.ts +++ b/src/install-pnpm/run.ts @@ -6,7 +6,7 @@ import { execPath } from 'process' import { Inputs } from '../inputs' export async function runSelfInstaller(inputs: Inputs): Promise { - const { version, dest, packageJsonFile } = inputs + const { version, dest, packageJsonFile, standalone } = inputs // prepare self install await remove(dest) @@ -15,7 +15,7 @@ export async function runSelfInstaller(inputs: Inputs): Promise { await writeFile(pkgJson, JSON.stringify({ private: true })) // prepare target pnpm - const target = await readTarget(packageJsonFile, version) + const target = await readTarget({ version, packageJsonFile, standalone }) const cp = spawn(execPath, [path.join(__dirname, 'pnpm.js'), 'install', target, '--no-lockfile'], { cwd: dest, stdio: ['pipe', 'inherit', 'inherit'], @@ -33,8 +33,14 @@ export async function runSelfInstaller(inputs: Inputs): Promise { return exitCode } -async function readTarget(packageJsonFile: string, version?: string | undefined) { - if (version) return `pnpm@${version}` +async function readTarget(opts: { + readonly version?: string | undefined + readonly packageJsonFile: string + readonly standalone: boolean +}) { + const { version, packageJsonFile, standalone } = opts + + if (version) return `${ standalone ? '@pnpm/exe' : 'pnpm' }@${version}` const { GITHUB_WORKSPACE } = process.env if (!GITHUB_WORKSPACE) { @@ -55,6 +61,11 @@ Please specify it by one of the following ways: if (!packageManager.startsWith('pnpm@')) { throw new Error('Invalid packageManager field in package.json') } + + if(standalone){ + return packageManager.replace('pnpm@', '@pnpm/exe@') + } + return packageManager }