setup-pnpm/dist/index.js
2022-05-28 16:44:46 +03:00

10 lines
249 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

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

(()=>{var e={8243: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(3031);const n=a(t(4694));const s=a(t(1142));const o=a(t(2759));const l=a(t(4207));const c=a(t(5659));async function main(){const e=(0,n.default)();const r=(0,i.getState)("is_post");if(r==="true")return(0,c.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)}))},4694: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(3031);const n=a(t(4790));const s=t(5400);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")});r.getInputs=getInputs;r["default"]=r.getInputs},5400: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(3031);const n=a(t(8438));const s=t(3639);const o=a(t(7282));const l=a(t(5379));const c={required:true};function parseRunInstall(e){const r=(0,s.load)((0,i.getInput)(e,c));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},1142: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(3031);const n=a(t(9536));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},9536: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(3031);const n=t(2081);const s=t(5176);const o=a(t(1017));const l=t(7282);async function runSelfInstaller(e){const{version:r,dest:t}=e;await(0,s.remove)(t);const a=o.default.join(t,"package.json");await(0,s.ensureFile)(a);await(0,s.writeFile)(a,JSON.stringify({private:true}));const c=await readTarget(r);const u=(0,n.spawn)(l.execPath,[o.default.join(__dirname,"pnpm.js"),"install",c,"--no-lockfile"],{cwd:t,stdio:["pipe","inherit","inherit"]});const f=await new Promise(((e,r)=>{u.on("error",r);u.on("close",e)}));if(f===0){const e=o.default.join(t,"node_modules/.bin");(0,i.addPath)(e);(0,i.exportVariable)("PNPM_HOME",e)}return f}r.runSelfInstaller=runSelfInstaller;async function readTarget(e){if(e)return`pnpm@${e}`;const{GITHUB_WORKSPACE:r}=process.env;if(!r){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:t}=JSON.parse(await(0,s.readFile)(o.default.join(r,"package.json"),"utf8"));if(typeof t!=="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(!t.startsWith("pnpm@")){throw new Error("Invalid packageManager field in package.json")}return t}r["default"]=runSelfInstaller},2759:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.setOutputs=void 0;const a=t(3031);const i=t(6392);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},4207:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.runPnpmInstall=void 0;const a=t(3031);const i=t(2081);const n=t(6392);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},5659:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.pruneStore=void 0;const a=t(3031);const i=t(2081);const n=t(6392);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},6392: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},8302: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(8541);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")}},3031: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(8302);const l=t(1234);const c=t(8541);const u=n(t(2037));const f=n(t(1017));const p=t(9946);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=c.toCommandValue(r);process.env[e]=t;const a=process.env["GITHUB_ENV"]||"";if(a){const r="_GitHubActionsFileCommandDelimeter_";const a=`${e}<<${r}${u.EOL}${t}${u.EOL}${r}`;l.issueCommand("ENV",a)}else{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.issueCommand("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!==""));return t}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){process.stdout.write(u.EOL);o.issueCommand("set-output",{name:e},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",c.toCommandProperties(r),e instanceof Error?e.toString():e)}r.error=error;function warning(e,r={}){o.issueCommand("warning",c.toCommandProperties(r),e instanceof Error?e.toString():e)}r.warning=warning;function notice(e,r={}){o.issueCommand("notice",c.toCommandProperties(r),e instanceof Error?e.toString():e)}r.notice=notice;function info(e){process.stdout.write(e+u.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){o.issueCommand("save-state",{name:e},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},1234: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.issueCommand=void 0;const s=n(t(7147));const o=n(t(2037));const l=t(8541);function issueCommand(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,`${l.toCommandValue(r)}${o.EOL}`,{encoding:"utf8"})}r.issueCommand=issueCommand},9946: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(9875);const n=t(2760);const s=t(3031);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},8541:(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},2760:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,r){this.username=e;this.password=r}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,r,t){return null}}r.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,r,t){return null}}r.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,r,t){return null}}r.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},9875:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const a=t(3685);const i=t(5687);const n=t(6502);let s;var o;(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"})(o=r.HttpCodes||(r.HttpCodes={}));var l;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(l=r.Headers||(r.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=r.MediaTypes||(r.MediaTypes={}));function getProxyUrl(e){let r=n.getProxyUrl(new URL(e));return r?r.href:""}r.getProxyUrl=getProxyUrl;const u=[o.MovedPermanently,o.ResourceMoved,o.SeeOther,o.TemporaryRedirect,o.PermanentRedirect];const f=[o.BadGateway,o.ServiceUnavailable,o.GatewayTimeout];const p=["OPTIONS","GET","DELETE","HEAD"];const d=10;const h=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 new Promise((async(e,r)=>{let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))}}r.HttpClientResponse=HttpClientResponse;function isHttps(e){let 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 this.request("OPTIONS",e,null,r||{})}get(e,r){return this.request("GET",e,null,r||{})}del(e,r){return this.request("DELETE",e,null,r||{})}post(e,r,t){return this.request("POST",e,r,t||{})}patch(e,r,t){return this.request("PATCH",e,r,t||{})}put(e,r,t){return this.request("PUT",e,r,t||{})}head(e,r){return this.request("HEAD",e,null,r||{})}sendStream(e,r,t,a){return this.request(e,r,t,a)}async getJson(e,r={}){r[l.Accept]=this._getExistingOrDefaultHeader(r,l.Accept,c.ApplicationJson);let t=await this.get(e,r);return this._processResponse(t,this.requestOptions)}async postJson(e,r,t={}){let a=JSON.stringify(r,null,2);t[l.Accept]=this._getExistingOrDefaultHeader(t,l.Accept,c.ApplicationJson);t[l.ContentType]=this._getExistingOrDefaultHeader(t,l.ContentType,c.ApplicationJson);let i=await this.post(e,a,t);return this._processResponse(i,this.requestOptions)}async putJson(e,r,t={}){let a=JSON.stringify(r,null,2);t[l.Accept]=this._getExistingOrDefaultHeader(t,l.Accept,c.ApplicationJson);t[l.ContentType]=this._getExistingOrDefaultHeader(t,l.ContentType,c.ApplicationJson);let i=await this.put(e,a,t);return this._processResponse(i,this.requestOptions)}async patchJson(e,r,t={}){let a=JSON.stringify(r,null,2);t[l.Accept]=this._getExistingOrDefaultHeader(t,l.Accept,c.ApplicationJson);t[l.ContentType]=this._getExistingOrDefaultHeader(t,l.ContentType,c.ApplicationJson);let i=await this.patch(e,a,t);return this._processResponse(i,this.requestOptions)}async request(e,r,t,a){if(this._disposed){throw new Error("Client has already been disposed.")}let i=new URL(r);let n=this._prepareRequest(e,i,a);let s=this._allowRetries&&p.indexOf(e)!=-1?this._maxRetries+1:1;let l=0;let c;while(l<s){c=await this.requestRaw(n,t);if(c&&c.message&&c.message.statusCode===o.Unauthorized){let e;for(let r=0;r<this.handlers.length;r++){if(this.handlers[r].canHandleAuthentication(c)){e=this.handlers[r];break}}if(e){return e.handleAuthentication(this,n,t)}else{return c}}let r=this._maxRedirects;while(u.indexOf(c.message.statusCode)!=-1&&this._allowRedirects&&r>0){const s=c.message.headers["location"];if(!s){break}let 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.")}await c.readBody();if(o.hostname!==i.hostname){for(let e in a){if(e.toLowerCase()==="authorization"){delete a[e]}}}n=this._prepareRequest(e,o,a);c=await this.requestRaw(n,t);r--}if(f.indexOf(c.message.statusCode)==-1){return c}l+=1;if(l<s){await c.readBody();await this._performExponentialBackoff(l)}}return c}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(e,r){return new Promise(((t,a)=>{let callbackForResult=function(e,r){if(e){a(e)}t(r)};this.requestRawWithCallback(e,r,callbackForResult)}))}requestRawWithCallback(e,r,t){let a;if(typeof r==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8")}let i=false;let handleResult=(e,r)=>{if(!i){i=true;t(e,r)}};let n=e.httpModule.request(e.options,(e=>{let r=new HttpClientResponse(e);handleResult(null,r)}));n.on("socket",(e=>{a=e}));n.setTimeout(this._socketTimeout||3*6e4,(()=>{if(a){a.end()}handleResult(new Error("Request timeout: "+e.options.path),null)}));n.on("error",(function(e){handleResult(e,null)}));if(r&&typeof r==="string"){n.write(r,"utf8")}if(r&&typeof r!=="string"){r.on("close",(function(){n.end()}));r.pipe(n)}else{n.end()}}getAgent(e){let r=new URL(e);return this._getAgent(r)}_prepareRequest(e,r,t){const n={};n.parsedUrl=r;const s=n.parsedUrl.protocol==="https:";n.httpModule=s?i:a;const o=s?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):o;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(t);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){this.handlers.forEach((e=>{e.prepareRequest(n.options)}))}return n}_mergeHeaders(e){const lowercaseKeys=e=>Object.keys(e).reduce(((r,t)=>(r[t.toLowerCase()]=e[t],r)),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,r,t){const lowercaseKeys=e=>Object.keys(e).reduce(((r,t)=>(r[t.toLowerCase()]=e[t],r)),{});let a;if(this.requestOptions&&this.requestOptions.headers){a=lowercaseKeys(this.requestOptions.headers)[r]}return e[r]||a||t}_getAgent(e){let r;let o=n.getProxyUrl(e);let l=o&&o.hostname;if(this._keepAlive&&l){r=this._proxyAgent}if(this._keepAlive&&!l){r=this._agent}if(!!r){return r}const c=e.protocol==="https:";let u=100;if(!!this.requestOptions){u=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(l){if(!s){s=t(1353)}const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{...(o.username||o.password)&&{proxyAuth:`${o.username}:${o.password}`},host:o.hostname,port:o.port}};let a;const i=o.protocol==="https:";if(c){a=i?s.httpsOverHttps:s.httpsOverHttp}else{a=i?s.httpOverHttps:s.httpOverHttp}r=a(e);this._proxyAgent=r}if(this._keepAlive&&!r){const e={keepAlive:this._keepAlive,maxSockets:u};r=c?new i.Agent(e):new a.Agent(e);this._agent=r}if(!r){r=c?i.globalAgent:a.globalAgent}if(c&&this._ignoreSslError){r.options=Object.assign(r.options||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){e=Math.min(d,e);const r=h*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),r)))}static dateTimeDeserializer(e,r){if(typeof r==="string"){let e=new Date(r);if(!isNaN(e.valueOf())){return e}}return r}async _processResponse(e,r){return new Promise((async(t,a)=>{const i=e.message.statusCode;const n={statusCode:i,result:null,headers:{}};if(i==o.NotFound){t(n)}let s;let l;try{l=await e.readBody();if(l&&l.length>0){if(r&&r.deserializeDates){s=JSON.parse(l,HttpClient.dateTimeDeserializer)}else{s=JSON.parse(l)}n.result=s}n.headers=e.message.headers}catch(e){}if(i>299){let e;if(s&&s.message){e=s.message}else if(l&&l.length>0){e=l}else{e="Failed request: ("+i+")"}let r=new HttpClientError(e,i);r.result=n.result;a(r)}else{t(n)}}))}}r.HttpClient=HttpClient},6502:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function getProxyUrl(e){let r=e.protocol==="https:";let t;if(checkBypass(e)){return t}let a;if(r){a=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{a=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(a){t=new URL(a)}return t}r.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let 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}let a=[e.hostname.toUpperCase()];if(typeof t==="number"){a.push(`${a[0]}:${t}`)}for(let 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},8438:(e,r,t)=>{"use strict";var a=t(5391),i=t(6650),n=t(6281),s=t(5738),o=t(4486),l=t(229),c=t(6072),u=t(7178),f=t(3162);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(5911);var p=t(7975);Ajv.prototype.addKeyword=p.add;Ajv.prototype.getKeyword=p.get;Ajv.prototype.removeKeyword=p.remove;Ajv.prototype.validateKeyword=p.validate;var d=t(2485);Ajv.ValidationError=d.Validation;Ajv.MissingRefError=d.MissingRef;Ajv.$dataMetaSchema=u;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=c();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<e.length;n++)this.addSchema(e[n],undefined,t,a);return this}var s=this._getId(e);if(s!==undefined&&typeof s!="string")throw new Error("schema id must be string");r=i.normalizeId(r||s);checkUnique(this,r);this._schemas[r]=this._addSchema(e,t,a,true);return this}function addMetaSchema(e,r,t){this.addSchema(e,r,t,true);return this}function validateSchema(e,r){var t=e.$schema;if(t!==undefined&&typeof t!="string")throw new Error("$schema must be a string");t=t||this._opts.defaultMeta||defaultMeta(this);if(!t){this.logger.warn("meta-schema not available");this.errors=null;return true}var a=this.validate(t,e);if(!a&&r){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return a}function defaultMeta(e){var r=e._opts.meta;e._opts.defaultMeta=typeof r=="object"?e._getId(r)||r:e.getSchema(h)?h:undefined;return e._opts.defaultMeta}function getSchema(e){var r=_getSchemaObj(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return _getSchemaFragment(this,e)}}function _getSchemaFragment(e,r){var t=i.schema.call(e,{schema:{}},r);if(t){var n=t.schema,o=t.root,l=t.baseId;var c=a.call(e,n,o,undefined,l);e._fragments[r]=new s({ref:r,fragment:true,schema:n,root:o,baseId:l,validate:c});return c}}function _getSchemaObj(e,r){r=i.normalizeId(r);return e._schemas[r]||e._refs[r]||e._fragments[r]}function removeSchema(e){if(e instanceof RegExp){_removeAllSchemas(this,this._schemas,e);_removeAllSchemas(this,this._refs,e);return this}switch(typeof e){case"undefined":_removeAllSchemas(this,this._schemas);_removeAllSchemas(this,this._refs);this._cache.clear();return this;case"string":var r=_getSchemaObj(this,e);if(r)this._cache.del(r.cacheKey);delete this._schemas[e];delete this._refs[e];return this;case"object":var t=this._opts.serialize;var a=t?t(e):e;this._cache.del(a);var n=this._getId(e);if(n){n=i.normalizeId(n);delete this._schemas[n];delete this._refs[n]}}return this}function _removeAllSchemas(e,r,t){for(var a in r){var i=r[a];if(!i.meta&&(!t||t.test(a))){e._cache.del(i.cacheKey);delete r[a]}}}function _addSchema(e,r,t,a){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var n=this._opts.serialize;var o=n?n(e):e;var l=this._cache.get(o);if(l)return l;a=a||this._opts.addUsedSchema!==false;var c=i.normalizeId(this._getId(e));if(c&&a)checkUnique(this,c);var u=this._opts.validateSchema!==false&&!r;var f;if(u&&!(f=c&&c==i.normalizeId(e.$schema)))this.validateSchema(e,true);var p=i.ids.call(this,e);var d=new s({id:c,schema:e,localRefs:p,cacheKey:o,meta:t});if(c[0]!="#"&&a)this._refs[c]=d;this._cache.put(o,d);if(u&&f)this.validateSchema(e,true);return d}function _compile(e,r){if(e.compiling){e.validate=callValidate;callValidate.schema=e.schema;callValidate.errors=null;callValidate.root=r?r:callValidate;if(e.schema.$async===true)callValidate.$async=true;return callValidate}e.compiling=true;var t;if(e.meta){t=this._opts;this._opts=this._metaOpts}var i;try{i=a.call(this,e.schema,r,e.localRefs)}catch(r){delete e.validate;throw r}finally{e.compiling=false;if(e.meta)this._opts=t}e.validate=i;e.refs=i.refs;e.refVal=i.refVal;e.root=i.root;return i;function callValidate(){var r=e.validate;var t=r.apply(this,arguments);callValidate.errors=r.errors;return t}}function chooseGetId(e){switch(e.schemaId){case"auto":return _get$IdOrId;case"id":return _getId;default:return _get$Id}}function _getId(e){if(e.$id)this.logger.warn("schema $id ignored",e.$id);return e.id}function _get$Id(e){if(e.id)this.logger.warn("schema id ignored",e.id);return e.$id}function _get$IdOrId(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function errorsText(e,r){e=e||this.errors;if(!e)return"No errors";r=r||{};var t=r.separator===undefined?", ":r.separator;var a=r.dataVar===undefined?"data":r.dataVar;var i="";for(var n=0;n<e.length;n++){var s=e[n];if(s)i+=a+s.dataPath+" "+s.message+t}return i.slice(0,-t.length)}function addFormat(e,r){if(typeof r=="string")r=new RegExp(r);this._formats[e]=r;return this}function addDefaultMetaSchema(e){var r;if(e._opts.$data){r=t(3246);e.addMetaSchema(r,r.$id,true)}if(e._opts.meta===false)return;var a=t(8703);if(e._opts.$data)a=u(a,v);e.addMetaSchema(a,h,true);e._refs["http://json-schema.org/schema"]=h}function addInitialSchemas(e){var r=e._opts.schemas;if(!r)return;if(Array.isArray(r))e.addSchema(r);else for(var t in r)e.addSchema(r[t],t)}function addInitialFormats(e){for(var r in e._opts.formats){var t=e._opts.formats[r];e.addFormat(r,t)}}function addInitialKeywords(e){for(var r in e._opts.keywords){var t=e._opts.keywords[r];e.addKeyword(r,t)}}function checkUnique(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function getMetaSchemaOptions(e){var r=f.copy(e._opts);for(var t=0;t<m.length;t++)delete r[m[t]];return r}function setLogger(e){var r=e._opts.logger;if(r===false){e.logger={log:noop,warn:noop,error:noop}}else{if(r===undefined)r=console;if(!(typeof r=="object"&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}function noop(){}},6281:e=>{"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={}}},5911:(e,r,t)=>{"use strict";var a=t(2485).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]}}}}},2485:(e,r,t)=>{"use strict";var a=t(6650);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}},229:(e,r,t)=>{"use strict";var a=t(3162);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 c=/^(?:[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=/^(?:(?:[^\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":u,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":c,"uri-template":u,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}}},5391:(e,r,t)=>{"use strict";var a=t(6650),i=t(3162),n=t(2485),s=t(4486);var o=t(734);var l=i.ucs2length;var c=t(3064);var u=n.Validation;e.exports=compile;function compile(e,r,t,f){var p=this,d=this._opts,h=[undefined],m={},v=[],y={},g=[],S={},w=[];r=r||{schema:e,refVal:h,refs:m};var E=checkCompiling.call(this,e,r,f);var b=this._compilations[E.index];if(E.compiling)return b.callValidate=callValidate;var P=this._formats;var x=this.RULES;try{var _=localCompile(e,r,t,f);b.validate=_;var k=b.callValidate;if(k){k.schema=_.schema;k.errors=null;k.refs=_.refs;k.refVal=_.refVal;k.root=_.root;k.$async=_.$async;if(d.sourceCode)k.source=_.source}return _}finally{endCompiling.call(this,e,r,f)}function callValidate(){var e=b.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 S=e.$async===true;var E=o({isTop:true,schema:e,isRoot:y,baseId:f,root:t,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:n.MissingRef,RULES:x,validate:o,util:i,resolve:a,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:d,formats:P,logger:p.logger,self:p});E=vars(h,refValCode)+vars(v,patternCode)+vars(g,defaultCode)+vars(w,customRuleCode)+E;if(d.processCode)E=d.processCode(E,e);var b;try{var _=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",E);b=_(p,x,P,r,h,g,w,c,l,u);h[0]=b}catch(e){p.logger.error("Error compiling schema, function code:",E);throw e}b.schema=e;b.errors=null;b.refs=m;b.refVal=h;b.root=y?b:t;if(S)b.$async=true;if(d.sourceCode===true){b.source={code:E,patterns:v,defaults:g}}return b}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 c=r.refs[i];if(c!==undefined){o=r.refVal[c];l=addLocalRef(i,o);return resolvedRef(o,l)}}l=addLocalRef(i);var u=a.call(p,localCompile,r,i);if(u===undefined){var f=t&&t[i];if(f){u=a.inlineRef(f,d.inlineRefs)?f:compile.call(p,f,r,t,e)}}if(u===undefined){removeLocalRef(i)}else{replaceLocalRef(i,u);return resolvedRef(u,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=S[r];if(t===undefined){t=S[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,c=e.definition.inline,u=e.definition.macro;var f;if(l){f=l.call(p,r,t,a)}else if(u){f=u.call(p,r,t,a);if(d.validateSchema!==false)p.validateSchema(f,true)}else if(c){f=c.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=w.length;w[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<this._compilations.length;a++){var i=this._compilations[a];if(i.schema==e&&i.root==r&&i.baseId==t)return a}return-1}function patternCode(e,r){return"var pattern"+e+" = new RegExp("+i.toQuotedString(r[e])+");"}function defaultCode(e){return"var default"+e+" = defaults["+e+"];"}function refValCode(e,r){return r[e]===undefined?"":"var refVal"+e+" = refVal["+e+"];"}function customRuleCode(e){return"var customRule"+e+" = customRules["+e+"];"}function vars(e,r){if(!e.length)return"";var t="";for(var a=0;a<e.length;a++)t+=r(a,e);return t}},6650:(e,r,t)=>{"use strict";var a=t(626),i=t(3064),n=t(3162),s=t(5738),o=t(8154);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<i.length;s++){var o=i[s];if(o){o=n.unescapeFragment(o);t=t[o];if(t===undefined)break;var c;if(!l[o]){c=this._getId(t);if(c)r=resolveUrl(r,c);if(t.$ref){var u=resolveUrl(r,t.$ref);var f=resolveSchema.call(this,a,u);if(f){t=f.schema;a=f.root;r=f.baseId}}}}}if(t!==undefined&&t!==a.schema)return{schema:t,root:a,baseId:r}}var c=n.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function inlineRef(e,r){if(r===false)return false;if(r===undefined||r===true)return checkNoRef(e);else if(r)return countKeys(e)<=r}function checkNoRef(e){var r;if(Array.isArray(e)){for(var t=0;t<e.length;t++){r=e[t];if(typeof r=="object"&&!checkNoRef(r))return false}}else{for(var a in e){if(a=="$ref")return false;r=e[a];if(typeof r=="object"&&!checkNoRef(r))return false}}return true}function countKeys(e){var r=0,t;if(Array.isArray(e)){for(var a=0;a<e.length;a++){t=e[a];if(typeof t=="object")r+=countKeys(t);if(r==Infinity)return Infinity}}else{for(var i in e){if(i=="$ref")return Infinity;if(c[i]){r++}else{t=e[i];if(typeof t=="object")r+=countKeys(t)+1;if(r==Infinity)return Infinity}}}return r}function getFullPath(e,r){if(r!==false)e=normalizeId(e);var t=a.parse(e);return _getFullPath(t)}function _getFullPath(e){return a.serialize(e).split("#")[0]+"#"}var u=/#\/?$/;function normalizeId(e){return e?e.replace(u,""):""}function resolveUrl(e,r){r=normalizeId(r);return a.resolve(e,r)}function resolveIds(e){var r=normalizeId(this._getId(e));var t={"":r};var s={"":getFullPath(r,false)};var l={};var c=this;o(e,{allKeys:true},(function(e,r,o,u,f,p,d){if(r==="")return;var h=c._getId(e);var m=t[u];var v=s[u]+"/"+f;if(d!==undefined)v+="/"+(typeof d=="number"?d:n.escapeFragment(d));if(typeof h=="string"){h=m=normalizeId(m?a.resolve(m,h):h);var y=c._refs[h];if(typeof y=="string")y=c._refs[y];if(y&&y.schema){if(!i(e,y.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=normalizeId(v)){if(h[0]=="#"){if(l[h]&&!i(e,l[h]))throw new Error('id "'+h+'" resolves to more than one schema');l[h]=e}else{c._refs[h]=v}}}t[r]=m;s[r]=v}));return l}},6072:(e,r,t)=>{"use strict";var a=t(1960),i=t(3162).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}},5738:(e,r,t)=>{"use strict";var a=t(3162);e.exports=SchemaObject;function SchemaObject(e){a.copy(e,this)}},6103:e=>{"use strict";e.exports=function ucs2length(e){var r=0,t=e.length,a=0,i;while(a<t){r++;i=e.charCodeAt(a++);if(i>=55296&&i<=56319&&a<t){i=e.charCodeAt(a);if((i&64512)==56320)a++}}return r}},3162:(e,r,t)=>{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:t(3064),ucs2length:t(6103),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.length;i++){var n=r[i];if(a[n])t[t.length]=n;else if(e==="array"&&n==="array")t[t.length]=n}if(t.length)return t}else if(a[r]){return[r]}else if(e==="array"&&r==="array"){return["array"]}}function toHash(e){var r={};for(var t=0;t<e.length;t++)r[e[t]]=true;return r}var i=/^[a-z$_][a-z$_0-9]*$/i;var n=/'|\\/g;function getProperty(e){return typeof e=="number"?"["+e+"]":i.test(e)?"."+e:"['"+escapeQuotes(e)+"']"}function escapeQuotes(e){return e.replace(n,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function varOccurences(e,r){r+="[^0-9]";var t=e.match(new RegExp(r,"g"));return t?t.length:0}function varReplace(e,r,t){r+="([^0-9])";t=t.replace(/\$/g,"$$$$");return e.replace(new RegExp(r,"g"),t+"$1")}function schemaHasRules(e,r){if(typeof e=="boolean")return!e;for(var t in e)if(r[t])return true}function schemaHasRulesExcept(e,r,t){if(typeof e=="boolean")return!e&&t!="not";for(var a in e)if(a!=t&&r[a])return true}function schemaUnknownRules(e,r){if(typeof e=="boolean")return;for(var t in e)if(!r[t])return t}function toQuotedString(e){return"'"+escapeQuotes(e)+"'"}function getPathExpr(e,r,t,a){var i=t?"'/' + "+r+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'";return joinPaths(e,i)}function getPath(e,r,t){var a=t?toQuotedString("/"+escapeJsonPointer(r)):toQuotedString(getProperty(r));return joinPaths(e,a)}var s=/^\/(?:[^~]|~0|~1)*$/;var o=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(e,r,t){var a,i,n,l;if(e==="")return"rootData";if(e[0]=="/"){if(!s.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e;n="rootData"}else{l=e.match(o);if(!l)throw new Error("Invalid JSON-pointer: "+e);a=+l[1];i=l[2];if(i=="#"){if(a>=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 c=n;var u=i.split("/");for(var f=0;f<u.length;f++){var p=u[f];if(p){n+=getProperty(unescapeJsonPointer(p));c+=" && "+n}}return c}function joinPaths(e,r){if(e=='""')return r;return(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function unescapeFragment(e){return unescapeJsonPointer(decodeURIComponent(e))}function escapeFragment(e){return encodeURIComponent(escapeJsonPointer(e))}function escapeJsonPointer(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},7178:e=>{"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<t.length;a++){e=JSON.parse(JSON.stringify(e));var i=t[a].split("/");var n=e;var s;for(s=1;s<i.length;s++)n=n[i[s]];for(s=0;s<r.length;s++){var o=r[s];var l=n[o];if(l){n[o]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}}}}return e}},4540:(e,r,t)=>{"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"}]}}}},2813: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 c=!e.opts.allErrors;var u;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?"<":">",S=h?">":"<",u=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 w=e.util.getData(v.$data,n,e.dataPathArr),E="exclusive"+i,b="exclType"+i,P="exclIsNumber"+i,x="op"+i,_="' + "+x+" + '";a+=" var schemaExcl"+i+" = "+w+"; ";w="schemaExcl"+i;a+=" var "+E+"; var "+b+" = typeof "+w+"; if ("+b+" != 'boolean' && "+b+" != 'undefined' && "+b+" != 'number') { ";var u=m;var k=k||[];k.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(u||"_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 O=a;a=k.pop();if(!e.compositeRule&&c){if(e.async){a+=" throw new ValidationError(["+O+"]); "}else{a+=" validate.errors = ["+O+"]; return false; "}}else{a+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" "+b+" == 'number' ? ( ("+E+" = "+d+" === undefined || "+w+" "+g+"= "+d+") ? "+f+" "+S+"= "+w+" : "+f+" "+S+" "+d+" ) : ( ("+E+" = "+w+" === true) ? "+f+" "+S+"= "+d+" : "+f+" "+S+" "+d+" ) || "+f+" !== "+f+") { var op"+i+" = "+E+" ? '"+g+"' : '"+g+"='; ";if(s===undefined){u=m;l=e.errSchemaPath+"/"+m;d=w;p=y}}else{var P=typeof v=="number",_=g;if(P&&p){var x="'"+_+"'";a+=" if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" ( "+d+" === undefined || "+v+" "+g+"= "+d+" ? "+f+" "+S+"= "+v+" : "+f+" "+S+" "+d+" ) || "+f+" !== "+f+") { "}else{if(P&&s===undefined){E=true;u=m;l=e.errSchemaPath+"/"+m;d=v;S+="="}else{if(P)d=Math[h?"min":"max"](v,s);if(v===(P?d:true)){E=true;u=m;l=e.errSchemaPath+"/"+m;S+="="}else{E=false;_+="="}}var x="'"+_+"'";a+=" if ( ";if(p){a+=" ("+d+" !== undefined && typeof "+d+" != 'number') || "}a+=" "+f+" "+S+" "+d+" || "+f+" !== "+f+") { "}}u=u||r;var k=k||[];k.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(u||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+x+", limit: "+d+", exclusive: "+E+" } ";if(e.opts.messages!==false){a+=" , message: 'should be "+_+" ";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 O=a;a=k.pop();if(!e.compositeRule&&c){if(e.async){a+=" throw new ValidationError(["+O+"]); "}else{a+=" validate.errors = ["+O+"]; return false; "}}else{a+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(c){a+=" else { "}return a}},9809: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 c=!e.opts.allErrors;var u;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 u=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(u||"_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&&c){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(c){a+=" else { "}return a}},5356: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 c=!e.opts.allErrors;var u;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 u=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(u||"_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&&c){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(c){a+=" else { "}return a}},7500: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 c=!e.opts.allErrors;var u;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 u=r;var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(u||"_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&&c){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(c){a+=" else { "}return a}},6265: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 c="";l.level++;var u="valid"+l.level;var f=l.baseId,p=true;var d=i;if(d){var h,m=-1,v=d.length-1;while(m<v){h=d[m+=1];if(e.opts.strictKeywords?typeof h=="object"&&Object.keys(h).length>0||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 ("+u+") { ";c+="}"}}}}if(o){if(p){a+=" if (true) { "}else{a+=" "+c.slice(0,-1)+" "}}return a}},2816: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 c=!e.opts.allErrors;var u="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 S=s;if(S){var w,E=-1,b=S.length-1;while(E<b){w=S[E+=1];d.schema=w;d.schemaPath=o+"["+E+"]";d.errSchemaPath=l+"/"+E;a+=" "+e.validate(d)+" ";d.baseId=y;a+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ";h+="}"}}e.compositeRule=d.compositeRule=g;a+=" "+h+" if (!"+f+") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"anyOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should match some schema in anyOf' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&c){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+=" } "}}else{if(c){a+=" if (true) { "}}return a}},4302:e=>{"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}},3641: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 c=!e.opts.allErrors;var u="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("+u+", 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: "+u+" "}a+=" } "}else{a+=" {} "}var m=a;a=h.pop();if(!e.compositeRule&&c){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(c){a+=" else { "}return a}},6665: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 c=!e.opts.allErrors;var u="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,S=e.baseId,w=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(w){var E=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+" < "+u+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var b=u+"["+v+"]";d.dataPathArr[y]=v;var P=e.validate(d);d.baseId=S;if(e.util.varOccurences(P,g)<2){a+=" "+e.util.varReplace(P,g,b)+" "}else{a+=" var "+g+" = "+b+"; "+P+" "}a+=" if ("+m+") break; } ";e.compositeRule=d.compositeRule=E;a+=" "+h+" if (!"+m+") {"}else{a+=" if ("+u+".length == 0) {"}var x=x||[];x.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: "+u+" "}a+=" } "}else{a+=" {} "}var _=a;a=x.pop();if(!e.compositeRule&&c){if(e.async){a+=" throw new ValidationError(["+_+"]); "}else{a+=" validate.errors = ["+_+"]; return false; "}}else{a+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { ";if(w){a+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "}if(e.opts.allErrors){a+=" } "}return a}},8343: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 c=!e.opts.allErrors;var u;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,S="";var w,E,b,P,x;if(h&&g.$data){x="keywordValidate"+i;var _=g.validateSchema;a+=" var "+y+" = RULES.custom['"+r+"'].definition; var "+x+" = "+y+".validate;"}else{P=e.useCustomRule(v,s,e.schema,e);if(!P)return;m="validate.schema"+o;x=P.code;w=g.compile;E=g.inline;b=g.macro}var k=x+".errors",O="i"+i,C="ruleErr"+i,A=g.async;if(A&&!e.async)throw new Error("async keyword in sync schema");if(!(E||b)){a+=""+k+" = null;"}a+="var "+d+" = errors;var "+p+";";if(h&&g.$data){S+="}";a+=" if ("+m+" === undefined) { "+p+" = true; } else { ";if(_){S+="}";a+=" "+p+" = "+y+".validateSchema("+m+"); if ("+p+") { "}}if(E){if(g.statements){a+=" "+P.validate+" "}else{a+=" "+p+" = "+P.validate+"; "}}else if(b){var F=e.util.copy(e);var S="";F.level++;var R="valid"+F.level;F.schema=P.validate;F.schemaPath="";var I=e.compositeRule;e.compositeRule=F.compositeRule=true;var D=e.validate(F).replace(/validate\.schema/g,x);e.compositeRule=F.compositeRule=I;a+=" "+D}else{var j=j||[];j.push(a);a="";a+=" "+x+".call( ";if(e.opts.passContext){a+="this"}else{a+="self"}if(w||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(A){a+="await "}a+=""+N+"; "}else{if(A){k="customErrors"+i;a+=" var "+k+" = null; try { "+p+" = await "+N+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+k+" = e.errors; else throw e; } "}else{a+=" "+k+" = null; "+p+" = "+N+"; "}}}if(g.modifying){a+=" if ("+T+") "+f+" = "+T+"["+$+"];"}a+=""+S;if(g.valid){if(c){a+=" if (true) { "}}else{a+=" if ( ";if(g.valid===undefined){a+=" !";if(b){a+=""+R}else{a+=""+p}}else{a+=" "+!g.valid+" "}a+=") { ";u=v.keyword;var j=j||[];j.push(a);a="";var j=j||[];j.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(u||"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&&c){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(E){if(g.errors){if(g.errors!="full"){a+=" for (var "+O+"="+d+"; "+O+"<errors; "+O+"++) { var "+C+" = vErrors["+O+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ';if(e.opts.verbose){a+=" "+C+".schema = "+m+"; "+C+".data = "+f+"; "}a+=" } "}}else{if(g.errors===false){a+=" "+M+" "}else{a+=" if ("+d+" == errors) { "+M+" } else { for (var "+O+"="+d+"; "+O+"<errors; "+O+"++) { var "+C+" = vErrors["+O+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+C+".schemaPath === undefined) { "+C+'.schemaPath = "'+l+'"; } ';if(e.opts.verbose){a+=" "+C+".schema = "+m+"; "+C+".data = "+f+"; "}a+=" } } "}}}else if(b){a+=" var err = ";if(e.createErrors!==false){a+=" { keyword: '"+(u||"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+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&c){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}}else{if(g.errors===false){a+=" "+M+" "}else{a+=" if (Array.isArray("+k+")) { if (vErrors === null) vErrors = "+k+"; else vErrors = vErrors.concat("+k+"); errors = vErrors.length; for (var "+O+"="+d+"; "+O+"<errors; "+O+"++) { var "+C+" = vErrors["+O+"]; if ("+C+".dataPath === undefined) "+C+".dataPath = (dataPath || '') + "+e.errorPath+"; "+C+'.schemaPath = "'+l+'"; ';if(e.opts.verbose){a+=" "+C+".schema = "+m+"; "+C+".data = "+f+"; "}a+=" } } else { "+M+" } "}}a+=" } ";if(c){a+=" else { "}}return a}},4352:e=>{"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 c=!e.opts.allErrors;var u="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(E in s){if(E=="__proto__")continue;var g=s[E];var S=Array.isArray(g)?v:m;S[E]=g}a+="var "+f+" = errors;";var w=e.errorPath;a+="var missing"+i+";";for(var E in v){S=v[E];if(S.length){a+=" if ( "+u+e.util.getProperty(E)+" !== undefined ";if(y){a+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(E)+"') "}if(c){a+=" && ( ";var b=S;if(b){var P,x=-1,_=b.length-1;while(x<_){P=b[x+=1];if(x){a+=" || "}var k=e.util.getProperty(P),O=u+k;a+=" ( ( "+O+" === undefined ";if(y){a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(P)+"') "}a+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:k)+") ) "}}a+=")) { ";var C="missing"+i,A="' + "+C+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(w,C,true):w+" + "+C}var F=F||[];F.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"dependencies"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+A+"', depsCount: "+S.length+", deps: '"+e.util.escapeQuotes(S.length==1?S[0]:S.join(", "))+"' } ";if(e.opts.messages!==false){a+=" , message: 'should have ";if(S.length==1){a+="property "+e.util.escapeQuotes(S[0])}else{a+="properties "+e.util.escapeQuotes(S.join(", "))}a+=" when property "+e.util.escapeQuotes(E)+" is present' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}var R=a;a=F.pop();if(!e.compositeRule&&c){if(e.async){a+=" throw new ValidationError(["+R+"]); "}else{a+=" validate.errors = ["+R+"]; return false; "}}else{a+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{a+=" ) { ";var I=S;if(I){var P,D=-1,j=I.length-1;while(D<j){P=I[D+=1];var k=e.util.getProperty(P),A=e.util.escapeQuotes(P),O=u+k;if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(w,P,e.opts.jsonPointers)}a+=" if ( "+O+" === undefined ";if(y){a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(P)+"') "}a+=") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"dependencies"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+A+"', depsCount: "+S.length+", deps: '"+e.util.escapeQuotes(S.length==1?S[0]:S.join(", "))+"' } ";if(e.opts.messages!==false){a+=" , message: 'should have ";if(S.length==1){a+="property "+e.util.escapeQuotes(S[0])}else{a+="properties "+e.util.escapeQuotes(S.join(", "))}a+=" when property "+e.util.escapeQuotes(E)+" is present' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}}a+=" } ";if(c){d+="}";a+=" else { "}}}e.errorPath=w;var T=p.baseId;for(var E in m){var g=m[E];if(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===false:e.util.schemaHasRules(g,e.RULES.all)){a+=" "+h+" = true; if ( "+u+e.util.getProperty(E)+" !== undefined ";if(y){a+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(E)+"') "}a+=") { ";p.schema=g;p.schemaPath=o+e.util.getProperty(E);p.errSchemaPath=l+"/"+e.util.escapeFragment(E);a+=" "+e.validate(p)+" ";p.baseId=T;a+=" } ";if(c){a+=" if ("+h+") { ";d+="}"}}}if(c){a+=" "+d+" if ("+f+" == errors) {"}return a}},5625: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 c=!e.opts.allErrors;var u="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("+u+", "+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: "+u+" "}a+=" } "}else{a+=" {} "}var y=a;a=v.pop();if(!e.compositeRule&&c){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(c){a+=" else { "}return a}},137: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 c=!e.opts.allErrors;var u="data"+(n||"");if(e.opts.format===false){if(c){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+"("+u+") : "+m+"("+u+")) "}else{a+=" "+m+"("+u+") "}a+=" : "+m+".test("+u+"))))) {"}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(c){a+=" if (true) { "}return a}else if(h&&d.indexOf(s)>=0){if(c){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(c){a+=" if (true) { "}return a}if(g){if(!e.async)throw new Error("async format in sync schema");var S="formats"+e.util.getProperty(s)+".validate";a+=" if (!(await "+S+"("+u+"))) { "}else{a+=" if (! ";var S="formats"+e.util.getProperty(s);if(v)S+=".validate";if(typeof m=="function"){a+=" "+S+"("+u+") "}else{a+=" "+S+".test("+u+") "}a+=") { "}}var w=w||[];w.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: "+u+" "}a+=" } "}else{a+=" {} "}var E=a;a=w.pop();if(!e.compositeRule&&c){if(e.async){a+=" throw new ValidationError(["+E+"]); "}else{a+=" validate.errors = ["+E+"]; return false; "}}else{a+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(c){a+=" else { "}return a}},7137: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 c=!e.opts.allErrors;var u="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)),S=d.baseId;if(y||g){var w;d.createErrors=false;d.schema=s;d.schemaPath=o;d.errSchemaPath=l;a+=" var "+p+" = errors; var "+f+" = true; ";var E=e.compositeRule;e.compositeRule=d.compositeRule=true;a+=" "+e.validate(d)+" ";d.baseId=S;d.createErrors=true;a+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ";e.compositeRule=d.compositeRule=E;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=S;a+=" "+f+" = "+h+"; ";if(y&&g){w="ifClause"+i;a+=" var "+w+" = 'then'; "}else{w="'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=S;a+=" "+f+" = "+h+"; ";if(y&&g){w="ifClause"+i;a+=" var "+w+" = 'else'; "}else{w="'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: "+w+" } ";if(e.opts.messages!==false){a+=" , message: 'should match \"' + "+w+" + '\" schema' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&c){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}a+=" } ";if(c){a+=" else { "}}else{if(c){a+=" if (true) { "}}return a}},1960:(e,r,t)=>{"use strict";e.exports={$ref:t(144),allOf:t(6265),anyOf:t(2816),$comment:t(4302),const:t(3641),contains:t(6665),dependencies:t(4352),enum:t(5625),format:t(137),if:t(7137),items:t(6301),maximum:t(2813),minimum:t(2813),maxItems:t(9809),minItems:t(9809),maxLength:t(5356),minLength:t(5356),maxProperties:t(7500),minProperties:t(7500),multipleOf:t(9180),not:t(911),oneOf:t(555),pattern:t(8557),properties:t(2847),propertyNames:t(5897),required:t(6775),uniqueItems:t(4313),validate:t(734)}},6301: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 c=!e.opts.allErrors;var u="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,S=e.baseId;a+="var "+p+" = errors;var "+f+";";if(Array.isArray(s)){var w=e.schema.additionalItems;if(w===false){a+=" "+f+" = "+u+".length <= "+s.length+"; ";var E=l;l=e.errSchemaPath+"/additionalItems";a+=" if (!"+f+") { ";var b=b||[];b.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: "+u+" "}a+=" } "}else{a+=" {} "}var P=a;a=b.pop();if(!e.compositeRule&&c){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=E;if(c){h+="}";a+=" else { "}}var x=s;if(x){var _,k=-1,O=x.length-1;while(k<O){_=x[k+=1];if(e.opts.strictKeywords?typeof _=="object"&&Object.keys(_).length>0||_===false:e.util.schemaHasRules(_,e.RULES.all)){a+=" "+m+" = true; if ("+u+".length > "+k+") { ";var C=u+"["+k+"]";d.schema=_;d.schemaPath=o+"["+k+"]";d.errSchemaPath=l+"/"+k;d.errorPath=e.util.getPathExpr(e.errorPath,k,e.opts.jsonPointers,true);d.dataPathArr[y]=k;var A=e.validate(d);d.baseId=S;if(e.util.varOccurences(A,g)<2){a+=" "+e.util.varReplace(A,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+A+" "}a+=" } ";if(c){a+=" if ("+m+") { ";h+="}"}}}}if(typeof w=="object"&&(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===false:e.util.schemaHasRules(w,e.RULES.all))){d.schema=w;d.schemaPath=e.schemaPath+".additionalItems";d.errSchemaPath=e.errSchemaPath+"/additionalItems";a+=" "+m+" = true; if ("+u+".length > "+s.length+") { for (var "+v+" = "+s.length+"; "+v+" < "+u+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var C=u+"["+v+"]";d.dataPathArr[y]=v;var A=e.validate(d);d.baseId=S;if(e.util.varOccurences(A,g)<2){a+=" "+e.util.varReplace(A,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+A+" "}if(c){a+=" if (!"+m+") break; "}a+=" } } ";if(c){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+" < "+u+".length; "+v+"++) { ";d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var C=u+"["+v+"]";d.dataPathArr[y]=v;var A=e.validate(d);d.baseId=S;if(e.util.varOccurences(A,g)<2){a+=" "+e.util.varReplace(A,g,C)+" "}else{a+=" var "+g+" = "+C+"; "+A+" "}if(c){a+=" if (!"+m+") break; "}a+=" }"}if(c){a+=" "+h+" if ("+p+" == errors) {"}return a}},9180: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 c=!e.opts.allErrors;var u="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+" = "+u+" / "+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: "+u+" "}a+=" } "}else{a+=" {} "}var h=a;a=d.pop();if(!e.compositeRule&&c){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(c){a+=" else { "}return a}},911: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 c=!e.opts.allErrors;var u="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: "+u+" "}a+=" } "}else{a+=" {} "}var y=a;a=v.pop();if(!e.compositeRule&&c){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: "+u+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(c){a+=" if (false) { "}}return a}},555: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 c=!e.opts.allErrors;var u="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 S=e.compositeRule;e.compositeRule=d.compositeRule=true;var w=s;if(w){var E,b=-1,P=w.length-1;while(b<P){E=w[b+=1];if(e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===false:e.util.schemaHasRules(E,e.RULES.all)){d.schema=E;d.schemaPath=o+"["+b+"]";d.errSchemaPath=l+"/"+b;a+=" "+e.validate(d)+" ";d.baseId=v}else{a+=" var "+m+" = true; "}if(b){a+=" if ("+m+" && "+y+") { "+f+" = false; "+g+" = ["+g+", "+b+"]; } else { ";h+="}"}a+=" if ("+m+") { "+f+" = "+y+" = true; "+g+" = "+b+"; }"}}e.compositeRule=d.compositeRule=S;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: "+u+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&c){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}},8557: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 c=!e.opts.allErrors;var u="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("+u+") ) { ";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: "+u+" "}a+=" } "}else{a+=" {} "}var m=a;a=h.pop();if(!e.compositeRule&&c){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(c){a+=" else { "}return a}},2847: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 c=!e.opts.allErrors;var u="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,S="dataProperties"+i;var w=Object.keys(s||{}).filter(notProto),E=e.schema.patternProperties||{},b=Object.keys(E).filter(notProto),P=e.schema.additionalProperties,x=w.length||b.length,_=P===false,k=typeof P=="object"&&Object.keys(P).length,O=e.opts.removeAdditional,C=_||k||O,A=e.opts.ownProperties,F=e.baseId;var R=e.schema.required;if(R&&!(e.opts.$data&&R.$data)&&R.length<e.opts.loopRequired){var I=e.util.toHash(R)}function notProto(e){return e!=="__proto__"}a+="var "+f+" = errors;var "+h+" = true;";if(A){a+=" var "+S+" = undefined;"}if(C){if(A){a+=" "+S+" = "+S+" || Object.keys("+u+"); for (var "+v+"=0; "+v+"<"+S+".length; "+v+"++) { var "+m+" = "+S+"["+v+"]; "}else{a+=" for (var "+m+" in "+u+") { "}if(x){a+=" var isAdditional"+i+" = !(false ";if(w.length){if(w.length>8){a+=" || validate.schema"+o+".hasOwnProperty("+m+") "}else{var D=w;if(D){var j,T=-1,$=D.length-1;while(T<$){j=D[T+=1];a+=" || "+m+" == "+e.util.toQuotedString(j)+" "}}}}if(b.length){var N=b;if(N){var L,M=-1,q=N.length-1;while(M<q){L=N[M+=1];a+=" || "+e.usePattern(L)+".test("+m+") "}}}a+=" ); if (isAdditional"+i+") { "}if(O=="all"){a+=" delete "+u+"["+m+"]; "}else{var U=e.errorPath;var H="' + "+m+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)}if(_){if(O){a+=" delete "+u+"["+m+"]; "}else{a+=" "+h+" = false; ";var z=l;l=e.errSchemaPath+"/additionalProperties";var B=B||[];B.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"additionalProperties"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { additionalProperty: '"+H+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is an invalid additional property"}else{a+="should NOT have additional properties"}a+="' "}if(e.opts.verbose){a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}var V=a;a=B.pop();if(!e.compositeRule&&c){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=z;if(c){a+=" break; "}}}else if(k){if(O=="failing"){a+=" var "+f+" = errors; ";var Q=e.compositeRule;e.compositeRule=p.compositeRule=true;p.schema=P;p.schemaPath=e.schemaPath+".additionalProperties";p.errSchemaPath=e.errSchemaPath+"/additionalProperties";p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var W=u+"["+m+"]";p.dataPathArr[y]=m;var Y=e.validate(p);p.baseId=F;if(e.util.varOccurences(Y,g)<2){a+=" "+e.util.varReplace(Y,g,W)+" "}else{a+=" var "+g+" = "+W+"; "+Y+" "}a+=" if (!"+h+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+m+"]; } ";e.compositeRule=p.compositeRule=Q}else{p.schema=P;p.schemaPath=e.schemaPath+".additionalProperties";p.errSchemaPath=e.errSchemaPath+"/additionalProperties";p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var W=u+"["+m+"]";p.dataPathArr[y]=m;var Y=e.validate(p);p.baseId=F;if(e.util.varOccurences(Y,g)<2){a+=" "+e.util.varReplace(Y,g,W)+" "}else{a+=" var "+g+" = "+W+"; "+Y+" "}if(c){a+=" if (!"+h+") break; "}}}e.errorPath=U}if(x){a+=" } "}a+=" } ";if(c){a+=" if ("+h+") { ";d+="}"}}var K=e.opts.useDefaults&&!e.compositeRule;if(w.length){var J=w;if(J){var j,G=-1,Z=J.length-1;while(G<Z){j=J[G+=1];var X=s[j];if(e.opts.strictKeywords?typeof X=="object"&&Object.keys(X).length>0||X===false:e.util.schemaHasRules(X,e.RULES.all)){var ee=e.util.getProperty(j),W=u+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=F;if(e.util.varOccurences(Y,g)<2){Y=e.util.varReplace(Y,g,W);var te=W}else{var te=g;a+=" var "+g+" = "+W+"; "}if(re){a+=" "+Y+" "}else{if(I&&I[j]){a+=" if ( "+te+" === undefined ";if(A){a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(j)+"') "}a+=") { "+h+" = false; ";var U=e.errorPath,z=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 B=B||[];B.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: "+u+" "}a+=" } "}else{a+=" {} "}var V=a;a=B.pop();if(!e.compositeRule&&c){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=z;e.errorPath=U;a+=" } else { "}else{if(c){a+=" if ( "+te+" === undefined ";if(A){a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(j)+"') "}a+=") { "+h+" = true; } else { "}else{a+=" if ("+te+" !== undefined ";if(A){a+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(j)+"') "}a+=" ) { "}}a+=" "+Y+" } "}}if(c){a+=" if ("+h+") { ";d+="}"}}}}if(b.length){var ie=b;if(ie){var L,ne=-1,se=ie.length-1;while(ne<se){L=ie[ne+=1];var X=E[L];if(e.opts.strictKeywords?typeof X=="object"&&Object.keys(X).length>0||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(A){a+=" "+S+" = "+S+" || Object.keys("+u+"); for (var "+v+"=0; "+v+"<"+S+".length; "+v+"++) { var "+m+" = "+S+"["+v+"]; "}else{a+=" for (var "+m+" in "+u+") { "}a+=" if ("+e.usePattern(L)+".test("+m+")) { ";p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var W=u+"["+m+"]";p.dataPathArr[y]=m;var Y=e.validate(p);p.baseId=F;if(e.util.varOccurences(Y,g)<2){a+=" "+e.util.varReplace(Y,g,W)+" "}else{a+=" var "+g+" = "+W+"; "+Y+" "}if(c){a+=" if (!"+h+") break; "}a+=" } ";if(c){a+=" else "+h+" = true; "}a+=" } ";if(c){a+=" if ("+h+") { ";d+="}"}}}}}if(c){a+=" "+d+" if ("+f+" == errors) {"}return a}},5897: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 c=!e.opts.allErrors;var u="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+" + '",S=p.dataLevel=e.dataLevel+1,w="data"+S,E="dataProperties"+i,b=e.opts.ownProperties,P=e.baseId;if(b){a+=" var "+E+" = undefined; "}if(b){a+=" "+E+" = "+E+" || Object.keys("+u+"); for (var "+v+"=0; "+v+"<"+E+".length; "+v+"++) { var "+m+" = "+E+"["+v+"]; "}else{a+=" for (var "+m+" in "+u+") { "}a+=" var startErrs"+i+" = errors; ";var x=m;var _=e.compositeRule;e.compositeRule=p.compositeRule=true;var k=e.validate(p);p.baseId=P;if(e.util.varOccurences(k,w)<2){a+=" "+e.util.varReplace(k,w,x)+" "}else{a+=" var "+w+" = "+x+"; "+k+" "}e.compositeRule=p.compositeRule=_;a+=" if (!"+h+") { for (var "+y+"=startErrs"+i+"; "+y+"<errors; "+y+"++) { vErrors["+y+"].propertyName = "+m+"; } var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"propertyNames"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { propertyName: '"+g+"' } ";if(e.opts.messages!==false){a+=" , message: 'property name \\'"+g+"\\' is invalid' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&c){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}if(c){a+=" break; "}a+=" } }"}if(c){a+=" "+d+" if ("+f+" == errors) {"}return a}},144:e=>{"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 c="data"+(n||"");var u="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: "+c+" "}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 S=e.validate(y).replace(/validate\.schema/g,d.code);a+=" "+S+" ";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+=" "+c+", (dataPath || '')";if(e.errorPath!='""'){a+=" + "+e.errorPath}var w=n?"data"+(n-1||""):"parentData",E=n?e.dataPathArr[n]:"parentDataProperty";a+=" , "+w+" , "+E+", rootData) ";var b=a;a=m.pop();if(f){if(!e.async)throw new Error("async schema referenced by sync schema");if(l){a+=" var "+u+"; "}a+=" try { await "+b+"; ";if(l){a+=" "+u+" = 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+=" "+u+" = false; "}a+=" } ";if(l){a+=" if ("+u+") { "}}else{a+=" if (!"+b+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ";if(l){a+=" else { "}}}return a}},6775: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 c=!e.opts.allErrors;var u="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.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var m=[];var v=s;if(v){var y,g=-1,S=v.length-1;while(g<S){y=v[g+=1];var w=e.schema.properties[y];if(!(w&&(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===false:e.util.schemaHasRules(w,e.RULES.all)))){m[m.length]=y}}}}else{var m=s}}if(p||m.length){var E=e.errorPath,b=p||m.length>=e.opts.loopRequired,P=e.opts.ownProperties;if(c){a+=" var missing"+i+"; ";if(b){if(!p){a+=" var "+h+" = validate.schema"+o+"; "}var x="i"+i,_="schema"+i+"["+x+"]",k="' + "+_+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(E,_,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 "+x+" = 0; "+x+" < "+h+".length; "+x+"++) { "+f+" = "+u+"["+h+"["+x+"]] !== undefined ";if(P){a+=" && Object.prototype.hasOwnProperty.call("+u+", "+h+"["+x+"]) "}a+="; if (!"+f+") break; } ";if(p){a+=" } "}a+=" if (!"+f+") { ";var O=O||[];O.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+k+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+k+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}var C=a;a=O.pop();if(!e.compositeRule&&c){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 A=m;if(A){var F,x=-1,R=A.length-1;while(x<R){F=A[x+=1];if(x){a+=" || "}var I=e.util.getProperty(F),D=u+I;a+=" ( ( "+D+" === undefined ";if(P){a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(F)+"') "}a+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?F:I)+") ) "}}a+=") { ";var _="missing"+i,k="' + "+_+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,_,true):E+" + "+_}var O=O||[];O.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+k+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+k+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}var C=a;a=O.pop();if(!e.compositeRule&&c){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{if(b){if(!p){a+=" var "+h+" = validate.schema"+o+"; "}var x="i"+i,_="schema"+i+"["+x+"]",k="' + "+_+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(E,_,e.opts.jsonPointers)}if(p){a+=" if ("+h+" && !Array.isArray("+h+")) { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+k+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+k+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "}a+=" for (var "+x+" = 0; "+x+" < "+h+".length; "+x+"++) { if ("+u+"["+h+"["+x+"]] === undefined ";if(P){a+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+h+"["+x+"]) "}a+=") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+k+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+k+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ";if(p){a+=" } "}}else{var j=m;if(j){var F,T=-1,$=j.length-1;while(T<$){F=j[T+=1];var I=e.util.getProperty(F),k=e.util.escapeQuotes(F),D=u+I;if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(E,F,e.opts.jsonPointers)}a+=" if ( "+D+" === undefined ";if(P){a+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(F)+"') "}a+=") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+k+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+k+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}}}e.errorPath=E}else if(c){a+=" if (true) {"}return a}},4313:e=>{"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 c=!e.opts.allErrors;var u="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 = "+u+".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("+u+"[i], "+u+"[j])) { "+f+" = false; break outer; } } } "}else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+u+"[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: "+u+" "}a+=" } "}else{a+=" {} "}var g=a;a=y.pop();if(!e.compositeRule&&c){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(c){a+=" else { "}}else{if(c){a+=" if (true) { "}}return a}},734: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 c=e.level;var u=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"+(u||"");var y="valid"+c;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 S=a;a=g.pop();if(!e.compositeRule&&h){if(e.async){a+=" throw new ValidationError(["+S+"]); "}else{a+=" validate.errors = ["+S+"]; return false; "}}else{a+=" var err = "+S+"; 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 w=e.isTop,c=e.level=0,u=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 E="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(E);else throw new Error(E)}a+=" var vErrors = null; ";a+=" var errors = 0; ";a+=" if (rootData === undefined) rootData = data; "}else{var c=e.level,u=e.dataLevel,v="data"+(u||"");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_"+c+" = errors;"}var y="valid"+c,h=!e.opts.allErrors,b="",P="";var m;var x=e.schema.type,_=Array.isArray(x);if(x&&e.opts.nullable&&e.schema.nullable===true){if(_){if(x.indexOf("null")==-1)x=x.concat("null")}else if(x!="null"){x=[x,"null"];_=true}}if(_&&x.length==1){x=x[0];_=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(x){if(e.opts.coerceTypes){var k=e.util.coerceToTypes(e.opts.coerceTypes,x)}var O=e.RULES.types[x];if(k||_||O===true||O&&!$shouldUseGroup(O)){var p=e.schemaPath+".type",d=e.errSchemaPath+"/type";var p=e.schemaPath+".type",d=e.errSchemaPath+"/type",C=_?"checkDataTypes":"checkDataType";a+=" if ("+e.util[C](x,v,e.opts.strictNumbers,true)+") { ";if(k){var A="dataType"+c,F="coerced"+c;a+=" var "+A+" = typeof "+v+"; var "+F+" = undefined; ";if(e.opts.coerceTypes=="array"){a+=" if ("+A+" == 'object' && Array.isArray("+v+") && "+v+".length == 1) { "+v+" = "+v+"[0]; "+A+" = typeof "+v+"; if ("+e.util.checkDataType(e.schema.type,v,e.opts.strictNumbers)+") "+F+" = "+v+"; } "}a+=" if ("+F+" !== undefined) ; ";var R=k;if(R){var I,D=-1,j=R.length-1;while(D<j){I=R[D+=1];if(I=="string"){a+=" else if ("+A+" == 'number' || "+A+" == 'boolean') "+F+" = '' + "+v+"; else if ("+v+" === null) "+F+" = ''; "}else if(I=="number"||I=="integer"){a+=" else if ("+A+" == 'boolean' || "+v+" === null || ("+A+" == 'string' && "+v+" && "+v+" == +"+v+" ";if(I=="integer"){a+=" && !("+v+" % 1)"}a+=")) "+F+" = +"+v+"; "}else if(I=="boolean"){a+=" else if ("+v+" === 'false' || "+v+" === 0 || "+v+" === null) "+F+" = false; else if ("+v+" === 'true' || "+v+" === 1) "+F+" = true; "}else if(I=="null"){a+=" else if ("+v+" === '' || "+v+" === 0 || "+v+" === false) "+F+" = null; "}else if(e.opts.coerceTypes=="array"&&I=="array"){a+=" else if ("+A+" == 'string' || "+A+" == 'number' || "+A+" == 'boolean' || "+v+" == null) "+F+" = ["+v+"]; "}}}a+=" else { ";var g=g||[];g.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(m||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '";if(_){a+=""+x.join(",")}else{a+=""+x}a+="' } ";if(e.opts.messages!==false){a+=" , message: 'should be ";if(_){a+=""+x.join(",")}else{a+=""+x}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}a+=" } "}else{a+=" {} "}var S=a;a=g.pop();if(!e.compositeRule&&h){if(e.async){a+=" throw new ValidationError(["+S+"]); "}else{a+=" validate.errors = ["+S+"]; return false; "}}else{a+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } if ("+F+" !== undefined) { ";var T=u?"data"+(u-1||""):"parentData",$=u?e.dataPathArr[u]:"parentDataProperty";a+=" "+v+" = "+F+"; ";if(!u){a+="if ("+T+" !== undefined)"}a+=" "+T+"["+$+"] = "+F+"; } "}else{var g=g||[];g.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(m||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '";if(_){a+=""+x.join(",")}else{a+=""+x}a+="' } ";if(e.opts.messages!==false){a+=" , message: 'should be ";if(_){a+=""+x.join(",")}else{a+=""+x}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}a+=" } "}else{a+=" {} "}var S=a;a=g.pop();if(!e.compositeRule&&h){if(e.async){a+=" throw new ValidationError(["+S+"]); "}else{a+=" validate.errors = ["+S+"]; return false; "}}else{a+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}a+=" } "}}if(e.schema.$ref&&!n){a+=" "+e.RULES.all.$ref.code(e,"$ref")+" ";if(h){a+=" } if (errors === ";if(w){a+="0"}else{a+="errs_"+c}a+=") { ";P+="}"}}else{var N=e.RULES;if(N){var O,L=-1,M=N.length-1;while(L<M){O=N[L+=1];if($shouldUseGroup(O)){if(O.type){a+=" if ("+e.util.checkDataType(O.type,v,e.opts.strictNumbers)+") { "}if(e.opts.useDefaults){if(O.type=="object"&&e.schema.properties){var f=e.schema.properties,q=Object.keys(f);var U=q;if(U){var H,z=-1,B=U.length-1;while(z<B){H=U[z+=1];var V=f[H];if(V.default!==undefined){var Q=v+e.util.getProperty(H);if(e.compositeRule){if(e.opts.strictDefaults){var E="default is ignored for: "+Q;if(e.opts.strictDefaults==="log")e.logger.warn(E);else throw new Error(E)}}else{a+=" if ("+Q+" === undefined ";if(e.opts.useDefaults=="empty"){a+=" || "+Q+" === null || "+Q+" === '' "}a+=" ) "+Q+" = ";if(e.opts.useDefaults=="shared"){a+=" "+e.useDefault(V.default)+" "}else{a+=" "+JSON.stringify(V.default)+" "}a+="; "}}}}}else if(O.type=="array"&&Array.isArray(e.schema.items)){var W=e.schema.items;if(W){var V,D=-1,Y=W.length-1;while(D<Y){V=W[D+=1];if(V.default!==undefined){var Q=v+"["+D+"]";if(e.compositeRule){if(e.opts.strictDefaults){var E="default is ignored for: "+Q;if(e.opts.strictDefaults==="log")e.logger.warn(E);else throw new Error(E)}}else{a+=" if ("+Q+" === undefined ";if(e.opts.useDefaults=="empty"){a+=" || "+Q+" === null || "+Q+" === '' "}a+=" ) "+Q+" = ";if(e.opts.useDefaults=="shared"){a+=" "+e.useDefault(V.default)+" "}else{a+=" "+JSON.stringify(V.default)+" "}a+="; "}}}}}}var K=O.rules;if(K){var J,G=-1,Z=K.length-1;while(G<Z){J=K[G+=1];if($shouldUseRule(J)){var X=J.code(e,J.keyword,O.type);if(X){a+=" "+X+" ";if(h){b+="}"}}}}}if(h){a+=" "+b+" ";b=""}if(O.type){a+=" } ";if(x&&x===O.type&&!k){a+=" else { ";var p=e.schemaPath+".type",d=e.errSchemaPath+"/type";var g=g||[];g.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(m||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '";if(_){a+=""+x.join(",")}else{a+=""+x}a+="' } ";if(e.opts.messages!==false){a+=" , message: 'should be ";if(_){a+=""+x.join(",")}else{a+=""+x}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+v+" "}a+=" } "}else{a+=" {} "}var S=a;a=g.pop();if(!e.compositeRule&&h){if(e.async){a+=" throw new ValidationError(["+S+"]); "}else{a+=" validate.errors = ["+S+"]; return false; "}}else{a+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } "}}if(h){a+=" if (errors === ";if(w){a+="0"}else{a+="errs_"+c}a+=") { ";P+="}"}}}}}if(h){a+=" "+P+" "}if(w){if(i){a+=" if (errors === 0) return data; ";a+=" else throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; ";a+=" return errors === 0; "}a+=" }; return validate;"}else{a+=" var "+y+" = errors === errs_"+c+";"}function $shouldUseGroup(e){var r=e.rules;for(var t=0;t<r.length;t++)if($shouldUseRule(r[t]))return true}function $shouldUseRule(r){return e.schema[r.keyword]!==undefined||r.implements&&$ruleImplementsSomeKeyword(r)}function $ruleImplementsSomeKeyword(r){var t=r.implements;for(var a=0;a<t.length;a++)if(e.schema[t[a]]!==undefined)return true}return a}},7975:(e,r,t)=>{"use strict";var a=/^[a-z_$][a-z0-9_$-]*$/i;var i=t(8343);var n=t(4540);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<n.length;s++)_addRule(e,n[s],r)}else{_addRule(e,n,r)}var o=r.metaSchema;if(o){if(r.$data&&this._opts.$data){o={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}}r.validateSchema=this.compile(o,true)}}t.keywords[e]=t.all[e]=true;function _addRule(e,r,a){var n;for(var s=0;s<t.length;s++){var o=t[s];if(o.type==r){n=o;break}}if(!n){n={type:r,rules:[]};t.push(n)}var l={keyword:e,definition:a,custom:true,code:i,implements:a.implements};n.rules.push(l);t.custom[e]=l}return this}function getKeyword(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||false}function removeKeyword(e){var r=this.RULES;delete r.keywords[e];delete r.all[e];delete r.custom[e];for(var t=0;t<r.length;t++){var a=r[t].rules;for(var i=0;i<a.length;i++){if(a[i].keyword==e){a.splice(i,1);break}}}return this}function validateKeyword(e,r){validateKeyword.errors=null;var t=this._validateKeyword=this._validateKeyword||this.compile(n,true);if(t(e))return true;validateKeyword.errors=t.errors;if(r)throw new Error("custom keyword definition is invalid: "+this.errorsText(t.errors));else return false}},4790:(e,r,t)=>{
/*!
* expand-tilde <https://github.com/jonschlinkert/expand-tilde>
*
* Copyright (c) 2015 Jon Schlinkert.
* Licensed under the MIT license.
*/
var a=t(2157);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}},3064: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}},4486: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<e.length;r++){if(r)n+=",";n+=stringify(e[r])||"null"}return n+"]"}if(e===null)return"null";if(i.indexOf(e)!==-1){if(t)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(e)-1;var o=Object.keys(e).sort(a&&a(e));n="";for(r=0;r<o.length;r++){var l=o[r];var c=stringify(e[l]);if(!c)continue;if(n)n+=",";n+=JSON.stringify(l)+":"+c}i.splice(s,1);return"{"+n+"}"}(e)}},8593:(e,r,t)=>{"use strict";const a=t(7765);const i=t(1017);const n=t(5443).mkdirsSync;const s=t(7237).utimesMillisSync;const o=t(7169);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"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}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},5390:(e,r,t)=>{"use strict";e.exports={copySync:t(8593)}},9226:(e,r,t)=>{"use strict";const a=t(7765);const i=t(1017);const n=t(5443).mkdirs;const s=t(6618).pathExists;const o=t(7237).utimesMillis;const l=t(7169);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"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}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 c=i.join(a,r);l.checkPaths(o,c,"copy",n,((r,i)=>{if(r)return s(r);const{destStat:l}=i;startCopy(l,o,c,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,c)=>{if(r){if(r.code==="EINVAL"||r.code==="UNKNOWN")return a.symlink(o,t,s);return s(r)}if(n.dereference){c=i.resolve(process.cwd(),c)}if(l.isSrcSubdir(o,c)){return s(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`))}if(e.isDirectory()&&l.isSrcSubdir(c,o)){return s(new Error(`Cannot overwrite '${c}' 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},7619:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;e.exports={copy:a(t(9226))}},4810:(e,r,t)=>{"use strict";const a=t(3706).fromPromise;const i=t(2003);const n=t(1017);const s=t(5443);const o=t(6875);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}},3132:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;const i=t(1017);const n=t(7765);const s=t(5443);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}},1393:(e,r,t)=>{"use strict";const a=t(3132);const i=t(5258);const n=t(9609);e.exports={createFile:a.createFile,createFileSync:a.createFileSync,ensureFile:a.createFile,ensureFileSync:a.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:n.createSymlink,createSymlinkSync:n.createSymlinkSync,ensureSymlink:n.createSymlink,ensureSymlinkSync:n.createSymlinkSync}},5258:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;const i=t(1017);const n=t(7765);const s=t(5443);const o=t(6618).pathExists;const{areIdentical:l}=t(7169);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,c)=>{n.lstat(e,((a,n)=>{if(a){a.message=a.message.replace("lstat","ensureLink");return t(a)}if(c&&l(n,c))return t(null);const u=i.dirname(r);o(u,((a,i)=>{if(a)return t(a);if(i)return makeLink(e,r);s.mkdirs(u,(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}},6927:(e,r,t)=>{"use strict";const a=t(1017);const i=t(7765);const n=t(6618).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}},3694:(e,r,t)=>{"use strict";const a=t(7765);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}},9609:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;const i=t(1017);const n=t(2003);const s=t(5443);const o=s.mkdirs;const l=s.mkdirsSync;const c=t(6927);const u=c.symlinkPaths;const f=c.symlinkPathsSync;const p=t(3694);const d=p.symlinkType;const h=p.symlinkTypeSync;const m=t(6618).pathExists;const{areIdentical:v}=t(7169);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){u(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 c=n.existsSync(o);if(c)return n.symlinkSync(e,r,t);l(o);return n.symlinkSync(e,r,t)}e.exports={createSymlink:a(createSymlink),createSymlinkSync:createSymlinkSync}},2003:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;const i=t(7765);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.realpath.native=a(i.realpath.native);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})}))}))}}},5176:(e,r,t)=>{"use strict";e.exports={...t(2003),...t(5390),...t(7619),...t(4810),...t(1393),...t(6287),...t(5443),...t(4155),...t(9453),...t(209),...t(6618),...t(6875)}},6287:(e,r,t)=>{"use strict";const a=t(3706).fromPromise;const i=t(1108);i.outputJson=a(t(447));i.outputJsonSync=t(466);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},1108:(e,r,t)=>{"use strict";const a=t(5533);e.exports={readJson:a.readFile,readJsonSync:a.readFileSync,writeJson:a.writeFile,writeJsonSync:a.writeFileSync}},466:(e,r,t)=>{"use strict";const{stringify:a}=t(8171);const{outputFileSync:i}=t(209);function outputJsonSync(e,r,t){const n=a(r,t);i(e,n,t)}e.exports=outputJsonSync},447:(e,r,t)=>{"use strict";const{stringify:a}=t(8171);const{outputFile:i}=t(209);async function outputJson(e,r,t={}){const n=a(r,t);await i(e,n,t)}e.exports=outputJson},5443:(e,r,t)=>{"use strict";const a=t(3706).fromPromise;const{makeDir:i,makeDirSync:n}=t(7113);const s=a(i);e.exports={mkdirs:s,mkdirsSync:n,mkdirp:s,mkdirpSync:n,ensureDir:s,ensureDirSync:n}},7113:(e,r,t)=>{"use strict";const a=t(2003);const{checkPath:i}=t(4096);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})}},4096:(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}}}},4155:(e,r,t)=>{"use strict";e.exports={moveSync:t(8450)}},8450:(e,r,t)=>{"use strict";const a=t(7765);const i=t(1017);const n=t(5390).copySync;const s=t(6875).removeSync;const o=t(5443).mkdirpSync;const l=t(7169);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},9453:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;e.exports={move:a(t(2826))}},2826:(e,r,t)=>{"use strict";const a=t(7765);const i=t(1017);const n=t(7619).copy;const s=t(6875).remove;const o=t(5443).mkdirp;const l=t(6618).pathExists;const c=t(7169);function move(e,r,t,a){if(typeof t==="function"){a=t;t={}}const n=t.overwrite||t.clobber||false;c.checkPaths(e,r,"move",t,((t,s)=>{if(t)return a(t);const{srcStat:l,isChangingCase:u=false}=s;c.checkParentPaths(e,l,r,"move",(t=>{if(t)return a(t);if(isParentRoot(r))return doRename(e,r,n,u,a);o(i.dirname(r),(t=>{if(t)return a(t);return doRename(e,r,n,u,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},209:(e,r,t)=>{"use strict";const a=t(3706).fromCallback;const i=t(7765);const n=t(1017);const s=t(5443);const o=t(6618).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}},6618:(e,r,t)=>{"use strict";const a=t(3706).fromPromise;const i=t(2003);function pathExists(e){return i.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:a(pathExists),pathExistsSync:i.existsSync}},6875:(e,r,t)=>{"use strict";const a=t(7765);const i=t(3706).fromCallback;const n=t(7611);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}},7611:(e,r,t)=>{"use strict";const a=t(7765);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")&&a<r.maxBusyTries){a++;const t=a*100;return setTimeout((()=>rimraf_(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},7169:(e,r,t)=>{"use strict";const a=t(2003);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}},7237:(e,r,t)=>{"use strict";const a=t(7765);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}},3236: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}},7765:(e,r,t)=>{var a=t(7147);var i=t(7457);var n=t(7681);var s=t(3236);var o=t(3837);var l;var c;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){l=Symbol.for("graceful-fs.queue");c=Symbol.for("graceful-fs.previous")}else{l="___graceful-fs.queue";c="___graceful-fs.previous"}function noop(){}function publishQueue(e,r){Object.defineProperty(e,l,{get:function(){return r}})}var u=noop;if(o.debuglog)u=o.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))u=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,c,{value:e});return close}(a.close);a.closeSync=function(e){function closeSync(r){e.apply(a,arguments);resetQueue()}Object.defineProperty(closeSync,c,{value:e});return closeSync}(a.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){u(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;function readdir(e,r,t){if(typeof r==="function")t=r,r=null;return go$readdir(e,r,t);function go$readdir(e,r,t,a){return o(e,r,(function(i,n){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$readdir,[e,r,t],i,a||Date.now(),Date.now()]);else{if(n&&n.sort)n.sort();if(typeof t==="function")t.call(this,i,n)}}))}}if(process.version.substr(0,4)==="v0.8"){var l=n(e);ReadStream=l.ReadStream;WriteStream=l.WriteStream}var c=e.ReadStream;if(c){ReadStream.prototype=Object.create(c.prototype);ReadStream.prototype.open=ReadStream$open}var u=e.WriteStream;if(u){WriteStream.prototype=Object.create(u.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 f=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return f},set:function(e){f=e},enumerable:true,configurable:true});var p=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(e){p=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 u.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 d=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 d(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){u("ENQUEUE",e[0].name,e[1]);a[l].push(e);retry()}var p;function resetQueue(){var e=Date.now();for(var r=0;r<a[l].length;++r){if(a[l][r].length>2){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){u("RETRY",r.name,t);r.apply(null,t)}else if(Date.now()-n>=6e4){u("TIMEOUT",r.name,t);var o=t.pop();if(typeof o==="function")o.call(null,i)}else{var c=Date.now()-s;var f=Math.max(s-n,1);var d=Math.min(f*1.2,100);if(c>=d){u("RETRY",r.name,t);r.apply(null,t.concat([n]))}else{a[l].push(e)}}if(p===undefined){p=setTimeout(retry,0)}}},7681:(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;s<o;s++){var l=n[s];this[l]=t[l]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.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<s;n++){var o=i[n];this[o]=t[o]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= 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()}}}},7457:(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.lchmod){e.lchmod=function(e,r,t){if(t)process.nextTick(t)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,r,t,a){if(a)process.nextTick(a)};e.lchownSync=function(){}}if(s==="win32"){e.rename=function(r){return function(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)}))}}(e.rename)}e.read=function(r){function read(t,a,i,n,s,o){var l;if(o&&typeof o==="function"){var c=0;l=function(u,f,p){if(u&&u.code==="EAGAIN"&&c<10){c++;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=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.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{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}}},2157:(e,r,t)=>{"use strict";var a=t(2037);if(typeof a.homedir!=="undefined"){e.exports=a.homedir}else{e.exports=t(9975)}},9975:(e,r,t)=>{"use strict";var a=t(7147);var i=t(9524);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<t;a++){if(+e[a].uid===r){return e[a].homedir}}}function getuid(){if(typeof process.geteuid==="function"){return process.geteuid()}return process.getuid()}function tryReadFileSync(e){try{return a.readFileSync(e,"utf8")}catch(e){return""}}e.exports=homedir},3639:(e,r,t)=>{"use strict";var a=t(6344);var i=t(7902);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(4098);e.exports.Schema=t(5217);e.exports.FAILSAFE_SCHEMA=t(3183);e.exports.JSON_SCHEMA=t(9116);e.exports.CORE_SCHEMA=t(9043);e.exports.DEFAULT_SCHEMA=t(6672);e.exports.load=a.load;e.exports.loadAll=a.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=t(876);e.exports.types={binary:t(1688),float:t(3250),map:t(723),null:t(2451),pairs:t(5671),set:t(3051),timestamp:t(8285),bool:t(8510),int:t(2682),merge:t(5831),omap:t(3602),seq:t(9130),str:t(802)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},5929: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<a;t+=1){i=n[t];e[i]=r[i]}}return e}function repeat(e,r){var t="",a;for(a=0;a<r;a+=1){t+=e}return t}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=isNothing;e.exports.isObject=isObject;e.exports.toArray=toArray;e.exports.repeat=repeat;e.exports.isNegativeZero=isNegativeZero;e.exports.extend=extend},7902:(e,r,t)=>{"use strict";var a=t(5929);var i=t(876);var n=t(6672);var s=Object.prototype.toString;var o=Object.prototype.hasOwnProperty;var l=65279;var c=9;var u=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 S=42;var w=44;var E=45;var b=58;var P=61;var x=62;var _=63;var k=64;var O=91;var C=93;var A=96;var F=123;var R=124;var I=125;var D={};D[0]="\\0";D[7]="\\a";D[8]="\\b";D[9]="\\t";D[10]="\\n";D[11]="\\v";D[12]="\\f";D[13]="\\r";D[27]="\\e";D[34]='\\"';D[92]="\\\\";D[133]="\\N";D[160]="\\_";D[8232]="\\L";D[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,c;if(r===null)return{};t={};a=Object.keys(r);for(i=0,n=a.length;i<n;i+=1){s=a[i];l=String(r[s]);if(s.slice(0,2)==="!!"){s="tag:yaml.org,2002:"+s.slice(2)}c=e.compiledTypeMap["fallback"][s];if(c&&o.call(c.styleAliases,l)){l=c.styleAliases[l]}t[s]=l}return t}function encodeHex(e){var r,t,n;r=e.toString(16).toUpperCase();if(e<=255){t="x";n=2}else if(e<=65535){t="u";n=4}else if(e<=4294967295){t="U";n=8}else{throw new i("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+t+a.repeat("0",n-r.length)+r}var $=1,N=2;function State(e){this.schema=e["schema"]||n;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=a.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?N:$;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,r){var t=a.repeat(" ",r),i=0,n=-1,s="",o,l=e.length;while(i<l){n=e.indexOf("\n",i);if(n===-1){o=e.slice(i);i=l}else{o=e.slice(i,n+1);i=n+1}if(o.length&&o!=="\n")s+=t;s+=o}return s}function generateNextLine(e,r){return"\n"+a.repeat(" ",e.indent*r)}function testImplicitResolving(e,r){var t,a,i;for(t=0,a=e.implicitTypes.length;t<a;t+=1){i=e.implicitTypes[t];if(i.resolve(r)){return true}}return false}function isWhitespace(e){return e===p||e===c}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==l||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==l&&e!==f&&e!==u}function isPlainSafe(e,r,t){var a=isNsCharOrWhitespace(e);var i=a&&!isWhitespace(e);return(t?a:a&&e!==w&&e!==O&&e!==C&&e!==F&&e!==I)&&e!==m&&!(r===b&&!i)||isNsCharOrWhitespace(r)&&!isWhitespace(r)&&e===m||r===b&&i}function isPlainSafeFirst(e){return isPrintable(e)&&e!==l&&!isWhitespace(e)&&e!==E&&e!==_&&e!==b&&e!==w&&e!==O&&e!==C&&e!==F&&e!==I&&e!==m&&e!==y&&e!==S&&e!==d&&e!==R&&e!==P&&e!==x&&e!==g&&e!==h&&e!==v&&e!==k&&e!==A}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==b}function codePointAt(e,r){var t=e.charCodeAt(r),a;if(t>=55296&&t<=56319&&r+1<e.length){a=e.charCodeAt(r+1);if(a>=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 c=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<e.length;c>=65536?l+=2:l++){c=codePointAt(e,l);if(!isPrintable(c)){return H}v=v&&isPlainSafe(c,f,o);f=c}}else{for(l=0;l<e.length;c>=65536?l+=2:l++){c=codePointAt(e,l);if(c===u){p=true;if(h){d=d||l-m-1>a&&e[m+1]!==" ";m=l}}else if(!isPrintable(c)){return H}v=v&&isPlainSafe(c,f,o);f=c}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<e.length;t>=65536?i+=2:i++){t=codePointAt(e,i);a=D[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;n<s;n+=1){o=t[n];if(e.replacer){o=e.replacer.call(t,String(n),o)}if(writeNode(e,r,o,false,false)||typeof o==="undefined"&&writeNode(e,r,null,false,false)){if(a!=="")a+=","+(!e.condenseFlow?" ":"");a+=e.dump}}e.tag=i;e.dump="["+a+"]"}function writeBlockSequence(e,r,t,a){var i="",n=e.tag,s,o,l;for(s=0,o=t.length;s<o;s+=1){l=t[s];if(e.replacer){l=e.replacer.call(t,String(s),l)}if(writeNode(e,r+1,l,true,true,false,true)||typeof l==="undefined"&&writeNode(e,r+1,null,true,true,false,true)){if(!a||i!==""){i+=generateNextLine(e,r)}if(e.dump&&u===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=n;e.dump=i||"[]"}function writeFlowMapping(e,r,t){var a="",i=e.tag,n=Object.keys(t),s,o,l,c,u;for(s=0,o=n.length;s<o;s+=1){u="";if(a!=="")u+=", ";if(e.condenseFlow)u+='"';l=n[s];c=t[l];if(e.replacer){c=e.replacer.call(t,l,c)}if(!writeNode(e,r,l,false,false)){continue}if(e.dump.length>1024)u+="? ";u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,c,false,false)){continue}u+=e.dump;a+=u}e.tag=i;e.dump="{"+a+"}"}function writeBlockMapping(e,r,t,a){var n="",s=e.tag,o=Object.keys(t),l,c,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,c=o.length;l<c;l+=1){h="";if(!a||n!==""){h+=generateNextLine(e,r)}f=o[l];p=t[f];if(e.replacer){p=e.replacer.call(t,f,p)}if(!writeNode(e,r+1,f,true,true,true)){continue}d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(d){if(e.dump&&u===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&&u===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,c,u,f;n=t?e.explicitTypes:e.implicitTypes;for(l=0,c=n.length;l<c;l+=1){u=n[l];if((u.instanceOf||u.predicate)&&(!u.instanceOf||typeof r==="object"&&r instanceof u.instanceOf)&&(!u.predicate||u.predicate(r))){if(t){if(u.multi&&u.representName){e.tag=u.representName(r)}else{e.tag=u.tag}}else{e.tag="?"}if(u.represent){f=e.styleMap[u.tag]||u.defaultStyle;if(s.call(u.represent)==="[object Function]"){a=u.represent(r,f)}else if(o.call(u.represent,f)){a=u.represent[f](r,f)}else{throw new i("!<"+u.tag+'> 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 c=s.call(e.dump);var u=a;var f;if(a){a=e.flowLevel<0||e.flowLevel>r}var p=c==="[object Object]"||c==="[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(c==="[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(c==="[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(c==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,o,u)}}else if(c==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+c)}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<n;i+=1){r.duplicates.push(t[a[i]])}r.usedDuplicates=new Array(n)}function inspectNode(e,r,t){var a,i,n;if(e!==null&&typeof e==="object"){i=r.indexOf(e);if(i!==-1){if(t.indexOf(i)===-1){t.push(i)}}else{r.push(e);if(Array.isArray(e)){for(i=0,n=e.length;i<n;i+=1){inspectNode(e[i],r,t)}}else{a=Object.keys(e);for(i=0,n=a.length;i<n;i+=1){inspectNode(e[a[i]],r,t)}}}}}function dump(e,r){r=r||{};var t=new State(r);if(!t.noRefs)getDuplicateReferences(e,t);var a=e;if(t.replacer){a=t.replacer.call({"":a},"",a)}if(writeNode(t,0,a,true,true))return t.dump+"\n";return""}e.exports.dump=dump},876:e=>{"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},6344:(e,r,t)=>{"use strict";var a=t(5929);var i=t(876);var n=t(6589);var s=t(6672);var o=Object.prototype.hasOwnProperty;var l=1;var c=2;var u=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 S=/^(?:!|[^,\[\]\{\}])(?:%[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 w=new Array(256);var E=new Array(256);for(var b=0;b<256;b++){w[b]=simpleEscapeSequence(b)?1:0;E[b]=simpleEscapeSequence(b)}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(!S.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(r<t){o=e.input.slice(r,t);if(a){for(i=0,n=o.length;i<n;i+=1){s=o.charCodeAt(i);if(!(s===9||32<=s&&s<=1114111)){throwError(e,"expected valid JSON character")}}}else if(m.test(o)){throwError(e,"the stream contains non-printable characters")}e.result+=o}}function mergeMappings(e,r,t,i){var n,s,l,c;if(!a.isObject(t)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}n=Object.keys(t);for(l=0,c=n.length;l<c;l+=1){s=n[l];if(!o.call(r,s)){r[s]=t[s];i[s]=true}}}function storeMappingPair(e,r,t,a,i,n,s,l,c){var u,f;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(u=0,f=i.length;u<f;u+=1){if(Array.isArray(i[u])){throwError(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&_class(i[u])==="[object Object]"){i[u]="[object Object]"}}}if(typeof i==="object"&&_class(i)==="[object Object]"){i="[object Object]"}i=String(i);if(r===null){r={}}if(a==="tag:yaml.org,2002:merge"){if(Array.isArray(n)){for(u=0,f=n.length;u<f;u+=1){mergeMappings(e,r,n[u],t)}}else{mergeMappings(e,r,n,t)}}else{if(!e.json&&!o.call(t,i)&&o.call(r,i)){e.line=s||e.line;e.lineStart=l||e.lineStart;e.position=c||e.position;throwError(e,"duplicated mapping key")}if(i==="__proto__"){Object.defineProperty(r,i,{configurable:true,enumerable:true,writable:true,value:n})}else{r[i]=n}delete t[i]}return r}function readLineBreak(e){var r;r=e.input.charCodeAt(e.position);if(r===10){e.position++}else if(r===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,r,t){var a=0,i=e.input.charCodeAt(e.position);while(i!==0){while(is_WHITE_SPACE(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(r&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(is_EOL(i)){readLineBreak(e);i=e.input.charCodeAt(e.position);a++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(t!==-1&&a!==0&&e.lineIndent<t){throwWarning(e,"deficient indentation")}return a}function testDocumentSeparator(e){var r=e.position,t;t=e.input.charCodeAt(r);if((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)){r+=3;t=e.input.charCodeAt(r);if(t===0||is_WS_OR_EOL(t)){return true}}return false}function writeFoldedLines(e,r){if(r===1){e.result+=" "}else if(r>1){e.result+=a.repeat("\n",r-1)}}function readPlainScalar(e,r,t){var a,i,n,s,o,l,c,u,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;c=e.lineStart;u=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=c;e.lineIndent=u;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&&w[o]){e.result+=E[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,c=e.anchor,u,f,p,d,h,m=Object.create(null),v,y,g,S;S=e.input.charCodeAt(e.position);if(S===91){f=93;h=false;o=[]}else if(S===123){f=125;h=true;o={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=o}S=e.input.charCodeAt(++e.position);while(S!==0){skipSeparationSpace(e,true,r);S=e.input.charCodeAt(e.position);if(S===f){e.position++;e.tag=s;e.anchor=c;e.kind=h?"mapping":"sequence";e.result=o;return true}else if(!t){throwError(e,"missed comma between flow collection entries")}else if(S===44){throwError(e,"expected the node content, but found ','")}y=v=g=null;p=d=false;if(S===63){u=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(u)){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);S=e.input.charCodeAt(e.position);if((d||e.line===a)&&S===58){p=true;S=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);S=e.input.charCodeAt(e.position);if(S===44){t=true;S=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,c=0,u=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.lineIndent<l)&&m===32){e.lineIndent++;m=e.input.charCodeAt(++e.position)}if(!o&&e.lineIndent>l){l=e.lineIndent}if(is_EOL(m)){c++;continue}if(e.lineIndent<l){if(n===h){e.result+=a.repeat("\n",s?1+c:c)}else if(n===p){if(s){e.result+="\n"}}break}if(i){if(is_WHITE_SPACE(m)){u=true;e.result+=a.repeat("\n",s?1+c:c)}else if(u){u=false;e.result+=a.repeat("\n",c+1)}else if(c===0){if(s){e.result+=" "}}else{e.result+=a.repeat("\n",c)}}else{e.result+=a.repeat("\n",s?1+c:c)}s=true;o=true;c=0;t=e.position;while(!is_EOL(m)&&m!==0){m=e.input.charCodeAt(++e.position)}captureSegment(e,t,e.position,false)}return true}function readBlockSequence(e,r){var t,a=e.tag,i=e.anchor,n=[],s,o=false,l;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=n}l=e.input.charCodeAt(e.position);while(l!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(l!==45){break}s=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(s)){break}o=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=r){n.push(null);l=e.input.charCodeAt(e.position);continue}}t=e.line;composeNode(e,r,u,false,true);n.push(e.result);skipSeparationSpace(e,true,-1);l=e.input.charCodeAt(e.position);if((e.line===t||e.lineIndent>r)&&l!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<r){break}}if(o){e.tag=a;e.anchor=i;e.kind="sequence";e.result=n;return true}return false}function readBlockMapping(e,r,t){var a,i,n,s,o,l,u=e.tag,p=e.anchor,d={},h=Object.create(null),m=null,v=null,y=null,g=false,S=false,w;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=d}w=e.input.charCodeAt(e.position);while(w!==0){if(!g&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}a=e.input.charCodeAt(e.position+1);n=e.line;if((w===63||w===58)&&is_WS_OR_EOL(a)){if(w===63){if(g){storeMappingPair(e,d,h,m,v,null,s,o,l);m=v=y=null}S=true;g=true;i=true}else if(g){g=false;i=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;w=a}else{s=e.line;o=e.lineStart;l=e.position;if(!composeNode(e,t,c,false,true)){break}if(e.line===n){w=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(w)){w=e.input.charCodeAt(++e.position)}if(w===58){w=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(w)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(g){storeMappingPair(e,d,h,m,v,null,s,o,l);m=v=y=null}S=true;g=false;i=false;m=e.tag;v=e.result}else if(S){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=u;e.anchor=p;return true}}else if(S){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=u;e.anchor=p;return true}}if(e.line===n||e.lineIndent>r){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);w=e.input.charCodeAt(e.position)}if((e.line===n||e.lineIndent>r)&&w!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<r){break}}if(g){storeMappingPair(e,d,h,m,v,null,s,o,l)}if(S){e.tag=u;e.anchor=p;e.kind="mapping";e.result=d}return S}function readTagProperty(e){var r,t=false,a=false,i,n,s;s=e.input.charCodeAt(e.position);if(s!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}s=e.input.charCodeAt(++e.position);if(s===60){t=true;s=e.input.charCodeAt(++e.position)}else if(s===33){a=true;i="!!";s=e.input.charCodeAt(++e.position)}else{i="!"}r=e.position;if(t){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&s!==62);if(e.position<e.length){n=e.input.slice(r,e.position);s=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(s!==0&&!is_WS_OR_EOL(s)){if(s===33){if(!a){i=e.input.slice(r-1,e.position+1);if(!g.test(i)){throwError(e,"named tag handle cannot contain such characters")}a=true;r=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}s=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);if(y.test(n)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(n&&!S.test(n)){throwError(e,"tag name cannot contain such characters: "+n)}try{n=decodeURIComponent(n)}catch(r){throwError(e,"tag name is malformed: "+n)}if(t){e.tag=n}else if(o.call(e.tagMap,i)){e.tag=e.tagMap[i]+n}else if(i==="!"){e.tag="!"+n}else if(i==="!!"){e.tag="tag:yaml.org,2002:"+n}else{throwError(e,'undeclared tag handle "'+i+'"')}return true}function readAnchorProperty(e){var r,t;t=e.input.charCodeAt(e.position);if(t!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}t=e.input.charCodeAt(++e.position);r=e.position;while(t!==0&&!is_WS_OR_EOL(t)&&!is_FLOW_INDICATOR(t)){t=e.input.charCodeAt(++e.position)}if(e.position===r){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(r,e.position);return true}function readAlias(e){var r,t,a;a=e.input.charCodeAt(e.position);if(a!==42)return false;a=e.input.charCodeAt(++e.position);r=e.position;while(a!==0&&!is_WS_OR_EOL(a)&&!is_FLOW_INDICATOR(a)){a=e.input.charCodeAt(++e.position)}if(e.position===r){throwError(e,"name of an alias node must contain at least one character")}t=e.input.slice(r,e.position);if(!o.call(e.anchorMap,t)){throwError(e,'unidentified alias "'+t+'"')}e.result=e.anchorMap[t];skipSeparationSpace(e,true,-1);return true}function composeNode(e,r,t,a,i){var n,s,p,d=1,h=false,m=false,v,y,g,S,w,E;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;n=s=p=f===t||u===t;if(a){if(skipSeparationSpace(e,true,-1)){h=true;if(e.lineIndent>r){d=1}else if(e.lineIndent===r){d=0}else if(e.lineIndent<r){d=-1}}}if(d===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){h=true;p=n;if(e.lineIndent>r){d=1}else if(e.lineIndent===r){d=0}else if(e.lineIndent<r){d=-1}}else{p=false}}}if(p){p=h||i}if(d===1||f===t){if(l===t||c===t){w=r}else{w=r+1}E=e.position-e.lineStart;if(d===1){if(p&&(readBlockSequence(e,E)||readBlockMapping(e,E,w))||readFlowCollection(e,w)){m=true}else{if(s&&readBlockScalar(e,w)||readSingleQuotedScalar(e,w)||readDoubleQuotedScalar(e,w)){m=true}else if(readAlias(e)){m=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,w,l===t)){m=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(d===0){m=p&&readBlockSequence(e,E)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(v=0,y=e.implicitTypes.length;v<y;v+=1){S=e.implicitTypes[v];if(S.resolve(e.result)){e.result=S.construct(e.result);e.tag=S.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(o.call(e.typeMap[e.kind||"fallback"],e.tag)){S=e.typeMap[e.kind||"fallback"][e.tag]}else{S=null;g=e.typeMap.multi[e.kind||"fallback"];for(v=0,y=g.length;v<y;v+=1){if(e.tag.slice(0,g[v].tag.length)===g[v].tag){S=g[v];break}}}if(!S){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&S.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+S.kind+'", not "'+e.kind+'"')}if(!S.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=S.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<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,r){e=String(e);r=r||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var t=new State(e,r);var a=e.indexOf("\0");if(a!==-1){t.position=a;throwError(t,"null byte is not allowed in input")}t.input+="\0";while(t.input.charCodeAt(t.position)===32){t.lineIndent+=1;t.position+=1}while(t.position<t.length-1){readDocument(t)}return t.documents}function loadAll(e,r,t){if(r!==null&&typeof r==="object"&&typeof t==="undefined"){t=r;r=null}var a=loadDocuments(e,t);if(typeof r!=="function"){return a}for(var i=0,n=a.length;i<n;i+=1){r(a[i])}}function load(e,r){var t=loadDocuments(e,r);if(t.length===0){return undefined}else if(t.length===1){return t[0]}throw new i("expected a single document in the stream, but found more")}e.exports.loadAll=loadAll;e.exports.load=load},5217:(e,r,t)=>{"use strict";var a=t(876);var i=t(4098);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<t;r+=1){arguments[r].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){var r=[];var t=[];if(e instanceof i){t.push(e)}else if(Array.isArray(e)){t=t.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)r=r.concat(e.implicit);if(e.explicit)t=t.concat(e.explicit)}else{throw new a("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}r.forEach((function(e){if(!(e instanceof i)){throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new a("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));t.forEach((function(e){if(!(e instanceof i)){throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var n=Object.create(Schema.prototype);n.implicit=(this.implicit||[]).concat(r);n.explicit=(this.explicit||[]).concat(t);n.compiledImplicit=compileList(n,"implicit");n.compiledExplicit=compileList(n,"explicit");n.compiledTypeMap=compileMap(n.compiledImplicit,n.compiledExplicit);return n};e.exports=Schema},9043:(e,r,t)=>{"use strict";e.exports=t(9116)},6672:(e,r,t)=>{"use strict";e.exports=t(9043).extend({implicit:[t(8285),t(5831)],explicit:[t(1688),t(3602),t(5671),t(3051)]})},3183:(e,r,t)=>{"use strict";var a=t(5217);e.exports=new a({explicit:[t(802),t(9130),t(723)]})},9116:(e,r,t)=>{"use strict";e.exports=t(3183).extend({implicit:[t(2451),t(8510),t(2682),t(3250)]})},6589:(e,r,t)=>{"use strict";var a=t(5929);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="",c,u;var f=Math.min(e.line+r.linesAfter,n.length).toString().length;var p=r.maxLength-(r.indent+f+3);for(c=1;c<=r.linesBefore;c++){if(o-c<0)break;u=getLine(e.buffer,i[o-c],n[o-c],e.position-(i[o]-i[o-c]),p);l=a.repeat(" ",r.indent)+padStart((e.line-c+1).toString(),f)+" | "+u.str+"\n"+l}u=getLine(e.buffer,i[o],n[o],e.position,p);l+=a.repeat(" ",r.indent)+padStart((e.line+1).toString(),f)+" | "+u.str+"\n";l+=a.repeat("-",r.indent+f+3+u.pos)+"^"+"\n";for(c=1;c<=r.linesAfter;c++){if(o+c>=n.length)break;u=getLine(e.buffer,i[o+c],n[o+c],e.position-(i[o]-i[o+c]),p);l+=a.repeat(" ",r.indent)+padStart((e.line+c+1).toString(),f)+" | "+u.str+"\n"}return l.replace(/\n$/,"")}e.exports=makeSnippet},4098:(e,r,t)=>{"use strict";var a=t(876);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},1688:(e,r,t)=>{"use strict";var a=t(4098);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;t<n;t++){r=s.indexOf(e.charAt(t));if(r>64)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<n;r++){if(r%4===0&&r){l.push(o>>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<s;a++){if(a%3===0&&a){r+=o[t>>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})},8510:(e,r,t)=>{"use strict";var a=t(4098);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"})},3250:(e,r,t)=>{"use strict";var a=t(5929);var i=t(4098);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"})},2682:(e,r,t)=>{"use strict";var a=t(5929);var i=t(4098);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<r;t++){i=e[t];if(i==="_")continue;if(i!=="0"&&i!=="1")return false;a=true}return a&&i!=="_"}if(i==="x"){t++;for(;t<r;t++){i=e[t];if(i==="_")continue;if(!isHexCode(e.charCodeAt(t)))return false;a=true}return a&&i!=="_"}if(i==="o"){t++;for(;t<r;t++){i=e[t];if(i==="_")continue;if(!isOctCode(e.charCodeAt(t)))return false;a=true}return a&&i!=="_"}}if(i==="_")return false;for(;t<r;t++){i=e[t];if(i==="_")continue;if(!isDecCode(e.charCodeAt(t))){return false}a=true}if(!a||i==="_")return false;return true}function constructYamlInteger(e){var r=e,t=1,a;if(r.indexOf("_")!==-1){r=r.replace(/_/g,"")}a=r[0];if(a==="-"||a==="+"){if(a==="-")t=-1;r=r.slice(1);a=r[0]}if(r==="0")return 0;if(a==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!a.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=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"]}})},723:(e,r,t)=>{"use strict";var a=t(4098);e.exports=new a("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},5831:(e,r,t)=>{"use strict";var a=t(4098);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new a("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},2451:(e,r,t)=>{"use strict";var a=t(4098);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"})},3602:(e,r,t)=>{"use strict";var a=t(4098);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,c=e;for(t=0,a=c.length;t<a;t+=1){s=c[t];l=false;if(n.call(s)!=="[object Object]")return false;for(o in s){if(i.call(s,o)){if(!l)l=true;else return false}}if(!l)return false;if(r.indexOf(o)===-1)r.push(o);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}e.exports=new a("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},5671:(e,r,t)=>{"use strict";var a=t(4098);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<t;r+=1){a=o[r];if(i.call(a)!=="[object Object]")return false;n=Object.keys(a);if(n.length!==1)return false;s[r]=[n[0],a[n[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var r,t,a,i,n,s=e;n=new Array(s.length);for(r=0,t=s.length;r<t;r+=1){a=s[r];i=Object.keys(a);n[r]=[i[0],a[i[0]]]}return n}e.exports=new a("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},9130:(e,r,t)=>{"use strict";var a=t(4098);e.exports=new a("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},3051:(e,r,t)=>{"use strict";var a=t(4098);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})},802:(e,r,t)=>{"use strict";var a=t(4098);e.exports=new a("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},8285:(e,r,t)=>{"use strict";var a=t(4098);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,c,u=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];c=+r[6];if(r[7]){u=r[7].slice(0,3);while(u.length<3){u+="0"}u=+u}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,c,u));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})},8154: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,c,u){if(i&&typeof i=="object"&&!Array.isArray(i)){t(i,n,s,o,l,c,u);for(var f in i){var p=i[f];if(Array.isArray(p)){if(f in r.arrayKeywords){for(var d=0;d<p.length;d++)_traverse(e,t,a,p[d],n+"/"+f+"/"+d,s,n,f,i,d)}}else if(f in r.propsKeywords){if(p&&typeof p=="object"){for(var h in p)_traverse(e,t,a,p[h],n+"/"+f+"/"+escapeJsonPtr(h),s,n,f,i,h)}}else if(f in r.keywords||e.allKeys&&!(f in r.skipKeywords)){_traverse(e,t,a,p,n+"/"+f,s,n,f,i)}}a(i,n,s,o,l,c,u)}}function escapeJsonPtr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}},5533:(e,r,t)=>{let a;try{a=t(7765)}catch(e){a=t(7147)}const i=t(3706);const{stringify:n,stripBom:s}=t(8171);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 c={readFile:o,readFileSync:readFileSync,writeFile:l,writeFileSync:writeFileSync};e.exports=c},8171: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}},9524: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]}}},1353:(e,r,t)=>{e.exports=t(21)},21:(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 c=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<o;++s){var l=r.requests[s];if(l.host===n.host&&l.port===n.port){r.requests.splice(s,1);l.request.onSocket(e);return}}e.destroy();r.removeSocket(e)}))}c.inherits(TunnelingAgent,o.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(e,r,t,a){var i=this;var n=mergeOptions({request:e},i.options,toOptions(r,t,a));if(i.sockets.length>=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")}u("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){u("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){u("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}u("tunneling connection has established");t.sockets[t.sockets.indexOf(a)]=s;return r(s)}function onError(r){n.removeAllListeners();u("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<t;++r){var a=arguments[r];if(typeof a==="object"){var i=Object.keys(a);for(var n=0,s=i.length;n<s;++n){var o=i[n];if(a[o]!==undefined){e[o]=a[o]}}}}return e}var u;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)){u=function(){var e=Array.prototype.slice.call(arguments);if(typeof e[0]==="string"){e[0]="TUNNEL: "+e[0]}else{e.unshift("TUNNEL:")}console.error.apply(console,e)}}else{u=function(){}}r.debug=u},3706:(e,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})}},626: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;t<e;t++){r[t]=arguments[t]}if(r.length>1){r[0]=r[0].slice(0,-1);var a=r.length-1;for(var i=1;i<a;++i){r[i]=r[i].slice(1,-1)}r[a]=r[a].slice(1);return r.join("")}else{return r[0]}}function subexp(e){return"(?:"+e+")"}function typeOf(e){return e===undefined?"undefined":e===null?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function toUpperCase(e){return e.toUpperCase()}function toArray(e){return e!==undefined&&e!==null?e instanceof Array?e:typeof e.length!=="number"||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function assign(e,r){var t=e;if(r){for(var a in r){t[a]=r[a]}}return t}function buildExps(e){var r="[A-Za-z]",t="[\\x0D]",a="[0-9]",i="[\\x22]",n=merge(a,"[A-Fa-f]"),s="[\\x0A]",o="[\\x20]",l=subexp(subexp("%[EFef]"+n+"%"+n+n+"%"+n+n)+"|"+subexp("%[89A-Fa-f]"+n+"%"+n+n)+"|"+subexp("%"+n+n)),c="[\\:\\/\\?\\#\\[\\]\\@]",u="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",f=merge(c,u),p=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",d=e?"[\\uE000-\\uF8FF]":"[]",h=merge(r,a,"[\\-\\.\\_\\~]",p),m=subexp(r+merge(r,a,"[\\+\\-\\.]")+"*"),v=subexp(subexp(l+"|"+merge(h,u,"[\\:]"))+"*"),y=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+a)+"|"+subexp("1"+a+a)+"|"+subexp("[1-9]"+a)+"|"+a),g=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+a)+"|"+subexp("1"+a+a)+"|"+subexp("0?[1-9]"+a)+"|0?0?"+a),S=subexp(g+"\\."+g+"\\."+g+"\\."+g),w=subexp(n+"{1,4}"),E=subexp(subexp(w+"\\:"+w)+"|"+S),b=subexp(subexp(w+"\\:")+"{6}"+E),P=subexp("\\:\\:"+subexp(w+"\\:")+"{5}"+E),x=subexp(subexp(w)+"?\\:\\:"+subexp(w+"\\:")+"{4}"+E),_=subexp(subexp(subexp(w+"\\:")+"{0,1}"+w)+"?\\:\\:"+subexp(w+"\\:")+"{3}"+E),k=subexp(subexp(subexp(w+"\\:")+"{0,2}"+w)+"?\\:\\:"+subexp(w+"\\:")+"{2}"+E),O=subexp(subexp(subexp(w+"\\:")+"{0,3}"+w)+"?\\:\\:"+w+"\\:"+E),C=subexp(subexp(subexp(w+"\\:")+"{0,4}"+w)+"?\\:\\:"+E),A=subexp(subexp(subexp(w+"\\:")+"{0,5}"+w)+"?\\:\\:"+w),F=subexp(subexp(subexp(w+"\\:")+"{0,6}"+w)+"?\\:\\:"),R=subexp([b,P,x,_,k,O,C,A,F].join("|")),I=subexp(subexp(h+"|"+l)+"+"),D=subexp(R+"\\%25"+I),j=subexp(R+subexp("\\%25|\\%(?!"+n+"{2})")+I),T=subexp("[vV]"+n+"+\\."+merge(h,u,"[\\:]")+"+"),$=subexp("\\["+subexp(j+"|"+R+"|"+T)+"\\]"),N=subexp(subexp(l+"|"+merge(h,u))+"*"),L=subexp($+"|"+S+"(?!"+N+")"+"|"+N),M=subexp(a+"*"),q=subexp(subexp(v+"@")+"?"+L+subexp("\\:"+M)+"?"),U=subexp(l+"|"+merge(h,u,"[\\:\\@]")),H=subexp(U+"*"),z=subexp(U+"+"),B=subexp(subexp(l+"|"+merge(h,u,"[\\@]"))+"+"),V=subexp(subexp("\\/"+H)+"*"),Q=subexp("\\/"+subexp(z+V)+"?"),W=subexp(B+V),Y=subexp(z+V),K="(?!"+U+")",J=subexp(V+"|"+Q+"|"+W+"|"+Y+"|"+K),G=subexp(subexp(U+"|"+merge("[\\/\\?]",d))+"*"),Z=subexp(subexp(U+"|[\\/\\?]")+"*"),X=subexp(subexp("\\/\\/"+q+V)+"|"+Q+"|"+Y+"|"+K),ee=subexp(m+"\\:"+X+subexp("\\?"+G)+"?"+subexp("\\#"+Z)+"?"),re=subexp(subexp("\\/\\/"+q+V)+"|"+Q+"|"+W+"|"+K),te=subexp(re+subexp("\\?"+G)+"?"+subexp("\\#"+Z)+"?"),ae=subexp(ee+"|"+te),ie=subexp(m+"\\:"+X+subexp("\\?"+G)+"?"),ne="^("+m+")\\:"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+L+")"+subexp("\\:("+M+")")+"?)")+"?("+V+"|"+Q+"|"+Y+"|"+K+")")+subexp("\\?("+G+")")+"?"+subexp("\\#("+Z+")")+"?$",se="^(){0}"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+L+")"+subexp("\\:("+M+")")+"?)")+"?("+V+"|"+Q+"|"+W+"|"+K+")")+subexp("\\?("+G+")")+"?"+subexp("\\#("+Z+")")+"?$",oe="^("+m+")\\:"+subexp(subexp("\\/\\/("+subexp("("+v+")@")+"?("+L+")"+subexp("\\:("+M+")")+"?)")+"?("+V+"|"+Q+"|"+Y+"|"+K+")")+subexp("\\?("+G+")")+"?$",le="^"+subexp("\\#("+Z+")")+"?$",ce="^"+subexp("("+v+")@")+"?("+L+")"+subexp("\\:("+M+")")+"?$";return{NOT_SCHEME:new RegExp(merge("[^]",r,a,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",h,u),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",h,u),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",h,u),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",h,u),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",h,u,"[\\:\\@\\/\\?]",d),"g"),NOT_FRAGMENT:new RegExp(merge("[^\\%]",h,u,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(merge("[^]",h,u),"g"),UNRESERVED:new RegExp(h,"g"),OTHER_CHARS:new RegExp(merge("[^\\%]",h,f),"g"),PCT_ENCODED:new RegExp(l,"g"),IPV4ADDRESS:new RegExp("^("+S+")$"),IPV6ADDRESS:new RegExp("^\\[?("+R+")"+subexp(subexp("\\%25|\\%(?!"+n+"{2})")+"("+I+")")+"?\\]?$")}}var r=buildExps(false);var t=buildExps(true);var a=function(){function sliceIterator(e,r){var t=[];var a=true;var i=false;var n=undefined;try{for(var s=e[Symbol.iterator](),o;!(a=(o=s.next()).done);a=true){t.push(o.value);if(r&&t.length===r)break}}catch(e){i=true;n=e}finally{try{if(!a&&s["return"])s["return"]()}finally{if(i)throw n}}return t}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var toConsumableArray=function(e){if(Array.isArray(e)){for(var r=0,t=Array(e.length);r<e.length;r++)t[r]=e[r];return t}else{return Array.from(e)}};var i=2147483647;var n=36;var s=1;var o=26;var l=38;var c=700;var u=72;var f=128;var p="-";var d=/^xn--/;var h=/[^\0-\x7E]/;var m=/[\x2E\u3002\uFF0E\uFF61]/g;var v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var y=n-s;var g=Math.floor;var S=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<a){var i=e.charCodeAt(t++);if(i>=55296&&i<=56319&&t<a){var n=e.charCodeAt(t++);if((n&64512)==56320){r.push(((i&1023)<<10)+(n&1023)+65536)}else{r.push(i);t--}}else{r.push(i)}}return r}var w=function ucs2encode(e){return String.fromCodePoint.apply(String,toConsumableArray(e))};var E=function basicToDigit(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return n};var b=function digitToBasic(e,r){return e+22+75*(e<26)-((r!=0)<<5)};var P=function adapt(e,r,t){var a=0;e=t?g(e/c):e>>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 x=function decode(e){var r=[];var t=e.length;var a=0;var l=f;var c=u;var d=e.lastIndexOf(p);if(d<0){d=0}for(var h=0;h<d;++h){if(e.charCodeAt(h)>=128){error$1("not-basic")}r.push(e.charCodeAt(h))}for(var m=d>0?d+1:0;m<t;){var v=a;for(var y=1,S=n;;S+=n){if(m>=t){error$1("invalid-input")}var w=E(e.charCodeAt(m++));if(w>=n||w>g((i-a)/y)){error$1("overflow")}a+=w*y;var b=S<=c?s:S>=c+o?o:S-c;if(w<b){break}var x=n-b;if(y>g(i/x)){error$1("overflow")}y*=x}var _=r.length+1;c=P(a-v,_,v==0);if(g(a/_)>i-l){error$1("overflow")}l+=g(a/_);a%=_;r.splice(a++,0,l)}return String.fromCodePoint.apply(String,r)};var _=function encode(e){var r=[];e=ucs2decode(e);var t=e.length;var a=f;var l=0;var c=u;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 w=y.value;if(w<128){r.push(S(w))}}}catch(e){h=true;m=e}finally{try{if(!d&&v.return){v.return()}}finally{if(h){throw m}}}var E=r.length;var x=E;if(E){r.push(p)}while(x<t){var _=i;var k=true;var O=false;var C=undefined;try{for(var A=e[Symbol.iterator](),F;!(k=(F=A.next()).done);k=true){var R=F.value;if(R>=a&&R<_){_=R}}}catch(e){O=true;C=e}finally{try{if(!k&&A.return){A.return()}}finally{if(O){throw C}}}var I=x+1;if(_-a>g((i-l)/I)){error$1("overflow")}l+=(_-a)*I;a=_;var D=true;var j=false;var T=undefined;try{for(var $=e[Symbol.iterator](),N;!(D=(N=$.next()).done);D=true){var L=N.value;if(L<a&&++l>i){error$1("overflow")}if(L==a){var M=l;for(var q=n;;q+=n){var U=q<=c?s:q>=c+o?o:q-c;if(M<U){break}var H=M-U;var z=n-U;r.push(S(b(U+H%z,0)));M=g(H/z)}r.push(S(b(M,0)));c=P(l,I,x==E);l=0;++x}}}catch(e){j=true;T=e}finally{try{if(!D&&$.return){$.return()}}finally{if(j){throw T}}}++l;++a}return r.join("")};var k=function toUnicode(e){return mapDomain(e,(function(e){return d.test(e)?x(e.slice(4).toLowerCase()):e}))};var O=function toASCII(e){return mapDomain(e,(function(e){return h.test(e)?"xn--"+_(e):e}))};var C={version:"2.1.0",ucs2:{decode:ucs2decode,encode:w},decode:x,encode:_,toASCII:O,toUnicode:k};var A={};function pctEncChar(e){var r=e.charCodeAt(0);var t=void 0;if(r<16)t="%0"+r.toString(16).toUpperCase();else if(r<128)t="%"+r.toString(16).toUpperCase();else if(r<2048)t="%"+(r>>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<a){var i=parseInt(e.substr(t+1,2),16);if(i<128){r+=String.fromCharCode(i);t+=3}else if(i>=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),c=l[0],u=l[1];var f=u?u.split(":").map(_stripLeadingZeros):[];var p=c.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;y<h;++y){v[y]=f[y]||p[m+y]||""}if(d){v[h-1]=_normalizeIPv4(v[h-1],r)}var g=v.reduce((function(e,r,t){if(!r||r==="0"){var a=e[e.length-1];if(a&&a.index+a.length===t){a.length++}else{e.push({index:t,length:1})}}return e}),[]);var S=g.sort((function(e,r){return r.length-e.length}))[0];var w=void 0;if(S&&S.length>1){var E=v.slice(0,S.index);var b=v.slice(S.index+S.length);w=E.join(":")+"::"+b.join(":")}else{w=v.join(":")}if(s){w+="%"+s}return w}else{return e}}var F=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var R="".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(F);if(s){if(R){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=A[(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 I=/^\.\.?\//;var D=/^\/\.(\/|$)/;var j=/^\/\.\.(\/|$)/;var T=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var r=[];while(e.length){if(e.match(I)){e=e.replace(I,"")}else if(e.match(D)){e=e.replace(D,"/")}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=A[(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 z="[0-9A-Fa-f]";var B=subexp(subexp("%[EFef]"+z+"%"+z+z+"%"+z+z)+"|"+subexp("%[89A-Fa-f]"+z+"%"+z+z)+"|"+subexp("%"+z+z));var V="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var Q="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var W=merge(Q,'[\\"\\\\]');var Y="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var K=new RegExp(H,"g");var J=new RegExp(B,"g");var G=new RegExp(merge("[^]",V,"[\\.]",'[\\"]',W),"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<l;++o){var c=s[o].split("=");switch(c[0]){case"to":var u=c[1].split(",");for(var f=0,p=u.length;f<p;++f){a.push(u[f])}break;case"subject":t.subject=unescapeComponent(c[1],r);break;case"body":t.body=unescapeComponent(c[1],r);break;default:i=true;n[unescapeComponent(c[0],r)]=unescapeComponent(c[1],r);break}}if(i)t.headers=n}t.query=undefined;for(var d=0,h=a.length;d<h;++d){var m=a[d].split("@");m[0]=unescapeComponent(m[0]);if(!r.unicodeSupport){try{m[1]=C.toASCII(unescapeComponent(m[1],r).toLowerCase())}catch(e){t.error=t.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}}else{m[1]=unescapeComponent(m[1],r).toLowerCase()}a[d]=m.join("@")}return t},serialize:function serialize$$1(e,r){var t=e;var a=toArray(e.to);if(a){for(var i=0,n=a.length;i<n;++i){var s=String(a[i]);var o=s.lastIndexOf("@");var l=s.slice(0,o).replace(J,decodeUnreserved).replace(J,toUpperCase).replace(G,pctEncChar);var c=s.slice(o+1);try{c=!r.iri?C.toASCII(unescapeComponent(c,r).toLowerCase()):C.toUnicode(c)}catch(e){t.error=t.error||"Email address's domain name can not be converted to "+(!r.iri?"ASCII":"Unicode")+" via punycode: "+e}a[i]=l+"@"+c}t.path=a.join(",")}var u=e.headers=e.headers||{};if(e.subject)u["subject"]=e.subject;if(e.body)u["body"]=e.body;var f=[];for(var p in u){if(u[p]!==q[p]){f.push(p.replace(J,decodeUnreserved).replace(J,toUpperCase).replace(Z,pctEncChar)+"="+u[p].replace(J,decodeUnreserved).replace(J,toUpperCase).replace(X,pctEncChar))}}if(f.length){t.query=f.join("&")}return t}};var re=/^([^\:]+)\:(.*)/;var te={scheme:"urn",parse:function parse$$1(e,r){var t=e.path&&e.path.match(re);var a=e;if(t){var i=r.scheme||a.scheme||"urn";var n=t[1].toLowerCase();var s=t[2];var o=i+":"+(r.nid||n);var l=A[o];a.nid=n;a.nss=s;a.path=undefined;if(l){a=l.parse(a,r)}}else{a.error=a.error||"URN can not be parsed."}return a},serialize:function serialize$$1(e,r){var t=r.scheme||e.scheme||"urn";var a=e.nid;var i=t+":"+(r.nid||a);var n=A[i];if(n){e=n.serialize(e,r)}var s=e;var o=e.nss;s.path=(a||r.nid)+":"+o;return s}};var ae=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;var ie={scheme:"urn:uuid",parse:function parse(e,r){var t=e;t.uuid=t.nss;t.nss=undefined;if(!r.tolerant&&(!t.uuid||!t.uuid.match(ae))){t.error=t.error||"UUID is not valid."}return t},serialize:function serialize(e,r){var t=e;t.nss=(e.uuid||"").toLowerCase();return t}};A[$.scheme]=$;A[N.scheme]=N;A[L.scheme]=L;A[M.scheme]=M;A[ee.scheme]=ee;A[te.scheme]=te;A[ie.scheme]=ie;e.SCHEMES=A;e.pctEncChar=pctEncChar;e.pctDecChars=pctDecChars;e.parse=parse;e.removeDotSegments=removeDotSegments;e.serialize=serialize;e.resolveComponents=resolveComponents;e.resolve=resolve;e.normalize=normalize;e.equal=equal;e.escapeComponent=escapeComponent;e.unescapeComponent=unescapeComponent;Object.defineProperty(e,"__esModule",{value:true})}))},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")},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__(8243);module.exports=t})();