mirror of
https://github.com/pnpm/action-setup.git
synced 2024-12-23 00:06:30 +08:00
1 line
209 KiB
JavaScript
1 line
209 KiB
JavaScript
module.exports=(()=>{var __webpack_modules__={2492: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#"}')},6011:function(e,n,f){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});const l=f(6832);const s=r(f(8527));const v=r(f(3406));const c=r(f(9282));const p=r(f(6866));const g=r(f(2726));async function main(){const e=s.default();const n=l.getState("is_post");if(n==="true")return g.default(e);l.saveState("is_post","true");await c.default(e);console.log("Installation Completed!");v.default(e);p.default(e)}main().catch(e=>{console.error(e);l.setFailed(e)})},8527:function(e,n,f){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.getInputs=void 0;const l=f(6832);const s=r(f(4010));const v=f(986);const c={required:true};const p=e=>s.default(l.getInput(e,c));const g=()=>({version:l.getInput("version",c),dest:p("dest"),binDest:p("bin_dest"),registry:l.getInput("registry",c),runInstall:v.parseRunInstall("run_install")});n.getInputs=g;n.default=n.getInputs},986:function(e,n,f){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.parseRunInstall=void 0;const l=r(f(1765));const s=f(9520);const v=r(f(8469));const c=f(6832);const p=r(f(2492));const g={required:true};function parseRunInstall(e){const n=s.load(c.getInput(e,g));const f=new v.default({allErrors:true});const r=f.compile(p.default);if(!r(n)){for(const e of r.errors){c.error(`with.run_install${e.dataPath}: ${e.message}`)}return l.default.exit(1)}if(!n)return[];if(n===true)return[{recursive:true}];if(Array.isArray(n))return n;return[n]}n.parseRunInstall=parseRunInstall},9282:function(e,n,f){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.install=n.runSelfInstaller=void 0;const l=f(6832);const s=r(f(7388));n.runSelfInstaller=s.default;async function install(e){l.startGroup("Running self-installer...");const n=await s.default(e);l.endGroup();if(n){return l.setFailed(`Something does wrong, self-installer exits with code ${n}`)}}n.install=install;n.default=install},7388:(e,n,f)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.runSelfInstaller=void 0;const r=f(3129);const l=f(1765);const s=f(3189);async function runSelfInstaller(e){const n=r.spawn(l.execPath,{env:{PNPM_VERSION:e.version,PNPM_DEST:e.dest,PNPM_BIN_DEST:e.binDest,PNPM_REGISTRY:e.registry},stdio:["pipe","inherit","inherit"]});const f=await s.downloadSelfInstaller();f.body.pipe(n.stdin);return new Promise((e,f)=>{n.on("error",f);n.on("close",e)})}n.runSelfInstaller=runSelfInstaller;n.default=runSelfInstaller},3406:(e,n,f)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.setOutputs=void 0;const r=f(6832);function setOutputs(e){r.addPath(e.binDest);r.setOutput("dest",e.dest);r.setOutput("bin_dest",e.binDest)}n.setOutputs=setOutputs;n.default=setOutputs},6866:(e,n,f)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.runPnpmInstall=void 0;const r=f(3129);const l=f(6832);const s=f(1630);function runPnpmInstall(e){const n=s.patchPnpmEnv(e);for(const f of e.runInstall){const e=["install"];if(f.recursive)e.unshift("recursive");if(f.args)e.push(...f.args);const s=["pnpm",...e].join(" ");l.startGroup(`Running ${s}...`);const{error:v,status:c}=r.spawnSync("pnpm",e,{stdio:"inherit",cwd:f.cwd,shell:true,env:n});l.endGroup();if(v){l.setFailed(v);continue}if(c){l.setFailed(`Command ${s} (cwd: ${f.cwd}) exits with status ${c}`);continue}}}n.runPnpmInstall=runPnpmInstall;n.default=runPnpmInstall},2726:(e,n,f)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.pruneStore=void 0;const r=f(3129);const l=f(6832);const s=f(1630);function pruneStore(e){if(e.runInstall.length===0){console.log("Pruning is unnecessary.");return}l.startGroup("Running pnpm store prune...");const{error:n,status:f}=r.spawnSync("pnpm",["store","prune"],{stdio:"inherit",shell:true,env:s.patchPnpmEnv(e)});l.endGroup();if(n){l.warning(n);return}if(f){l.warning(`command pnpm store prune exits with code ${f}`);return}}n.pruneStore=pruneStore;n.default=pruneStore},3893:function(e,n,f){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.downloadSelfInstaller=void 0;const l=r(f(2192));const s=r(f(6174));const v=()=>l.default(s.default);n.downloadSelfInstaller=v;n.default=n.downloadSelfInstaller},3189:function(e,n,f){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,n,f,r){if(r===undefined)r=f;Object.defineProperty(e,r,{enumerable:true,get:function(){return n[f]}})}:function(e,n,f,r){if(r===undefined)r=f;e[r]=n[f]});var l=this&&this.__exportStar||function(e,n){for(var f in e)if(f!=="default"&&!Object.prototype.hasOwnProperty.call(n,f))r(n,e,f)};Object.defineProperty(n,"__esModule",{value:true});l(f(6174),n);l(f(3893),n)},6174:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.url=n.ref=void 0;n.ref="301414cec74a2b6b63c95b42f2ad1790ccb980ed";n.url=`https://raw.githubusercontent.com/pnpm/self-installer/${n.ref}/install.js`;n.default=n.url},1630:function(e,n,f){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.patchPnpmEnv=void 0;const l=r(f(1765));const s=r(f(5622));const v=e=>({...l.default.env,PATH:e.binDest+s.default.delimiter+l.default.env.PATH});n.patchPnpmEnv=v},8362:function(e,n,f){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var f in e)if(Object.hasOwnProperty.call(e,f))n[f]=e[f];n["default"]=e;return n};Object.defineProperty(n,"__esModule",{value:true});const l=r(f(2087));const s=f(9017);function issueCommand(e,n,f){const r=new Command(e,n,f);process.stdout.write(r.toString()+l.EOL)}n.issueCommand=issueCommand;function issue(e,n=""){issueCommand(e,{},n)}n.issue=issue;const v="::";class Command{constructor(e,n,f){if(!e){e="missing.command"}this.command=e;this.properties=n;this.message=f}toString(){let e=v+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=true;for(const f in this.properties){if(this.properties.hasOwnProperty(f)){const r=this.properties[f];if(r){if(n){n=false}else{e+=","}e+=`${f}=${escapeProperty(r)}`}}}}e+=`${v}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},6832:function(e,n,f){"use strict";var r=this&&this.__awaiter||function(e,n,f,r){function adopt(e){return e instanceof f?e:new f(function(n){n(e)})}return new(f||(f=Promise))(function(f,l){function fulfilled(e){try{step(r.next(e))}catch(e){l(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){l(e)}}function step(e){e.done?f(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,n||[])).next())})};var l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var f in e)if(Object.hasOwnProperty.call(e,f))n[f]=e[f];n["default"]=e;return n};Object.defineProperty(n,"__esModule",{value:true});const s=f(8362);const v=f(7531);const c=f(9017);const p=l(f(2087));const g=l(f(5622));var b;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(b=n.ExitCode||(n.ExitCode={}));function exportVariable(e,n){const f=c.toCommandValue(n);process.env[e]=f;const r=process.env["GITHUB_ENV"]||"";if(r){const n="_GitHubActionsFileCommandDelimeter_";const r=`${e}<<${n}${p.EOL}${f}${p.EOL}${n}`;v.issueCommand("ENV",r)}else{s.issueCommand("set-env",{name:e},f)}}n.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}n.setSecret=setSecret;function addPath(e){const n=process.env["GITHUB_PATH"]||"";if(n){v.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${g.delimiter}${process.env["PATH"]}`}n.addPath=addPath;function getInput(e,n){const f=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!f){throw new Error(`Input required and not supplied: ${e}`)}return f.trim()}n.getInput=getInput;function setOutput(e,n){s.issueCommand("set-output",{name:e},n)}n.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}n.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=b.Failure;error(e)}n.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}n.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}n.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}n.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}n.warning=warning;function info(e){process.stdout.write(e+p.EOL)}n.info=info;function startGroup(e){s.issue("group",e)}n.startGroup=startGroup;function endGroup(){s.issue("endgroup")}n.endGroup=endGroup;function group(e,n){return r(this,void 0,void 0,function*(){startGroup(e);let f;try{f=yield n()}finally{endGroup()}return f})}n.group=group;function saveState(e,n){s.issueCommand("save-state",{name:e},n)}n.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}n.getState=getState},7531:function(e,n,f){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var f in e)if(Object.hasOwnProperty.call(e,f))n[f]=e[f];n["default"]=e;return n};Object.defineProperty(n,"__esModule",{value:true});const l=r(f(5747));const s=r(f(2087));const v=f(9017);function issueCommand(e,n){const f=process.env[`GITHUB_${e}`];if(!f){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!l.existsSync(f)){throw new Error(`Missing file at path: ${f}`)}l.appendFileSync(f,`${v.toCommandValue(n)}${s.EOL}`,{encoding:"utf8"})}n.issueCommand=issueCommand},9017:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}n.toCommandValue=toCommandValue},8469:(e,n,f)=>{"use strict";var r=f(5637),l=f(270),s=f(1642),v=f(5657),c=f(7485),p=f(2877),g=f(8950),b=f(3379),d=f(9120);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=f(6384);var w=f(7758);Ajv.prototype.addKeyword=w.add;Ajv.prototype.getKeyword=w.get;Ajv.prototype.removeKeyword=w.remove;Ajv.prototype.validateKeyword=w.validate;var i=f(8319);Ajv.ValidationError=i.Validation;Ajv.MissingRefError=i.MissingRef;Ajv.$dataMetaSchema=b;var A="http://json-schema.org/draft-07/schema";var E=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var j=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=d.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=p(e.format);this._cache=e.cache||new s;this._loadingSchemas={};this._compilations=[];this.RULES=g();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=c;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,n){var f;if(typeof e=="string"){f=this.getSchema(e);if(!f)throw new Error('no schema with key or ref "'+e+'"')}else{var r=this._addSchema(e);f=r.validate||this._compile(r)}var l=f(n);if(f.$async!==true)this.errors=f.errors;return l}function compile(e,n){var f=this._addSchema(e,undefined,n);return f.validate||this._compile(f)}function addSchema(e,n,f,r){if(Array.isArray(e)){for(var s=0;s<e.length;s++)this.addSchema(e[s],undefined,f,r);return this}var v=this._getId(e);if(v!==undefined&&typeof v!="string")throw new Error("schema id must be string");n=l.normalizeId(n||v);checkUnique(this,n);this._schemas[n]=this._addSchema(e,f,r,true);return this}function addMetaSchema(e,n,f){this.addSchema(e,n,f,true);return this}function validateSchema(e,n){var f=e.$schema;if(f!==undefined&&typeof f!="string")throw new Error("$schema must be a string");f=f||this._opts.defaultMeta||defaultMeta(this);if(!f){this.logger.warn("meta-schema not available");this.errors=null;return true}var r=this.validate(f,e);if(!r&&n){var l="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(l);else throw new Error(l)}return r}function defaultMeta(e){var n=e._opts.meta;e._opts.defaultMeta=typeof n=="object"?e._getId(n)||n:e.getSchema(A)?A:undefined;return e._opts.defaultMeta}function getSchema(e){var n=_getSchemaObj(this,e);switch(typeof n){case"object":return n.validate||this._compile(n);case"string":return this.getSchema(n);case"undefined":return _getSchemaFragment(this,e)}}function _getSchemaFragment(e,n){var f=l.schema.call(e,{schema:{}},n);if(f){var s=f.schema,c=f.root,p=f.baseId;var g=r.call(e,s,c,undefined,p);e._fragments[n]=new v({ref:n,fragment:true,schema:s,root:c,baseId:p,validate:g});return g}}function _getSchemaObj(e,n){n=l.normalizeId(n);return e._schemas[n]||e._refs[n]||e._fragments[n]}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 n=_getSchemaObj(this,e);if(n)this._cache.del(n.cacheKey);delete this._schemas[e];delete this._refs[e];return this;case"object":var f=this._opts.serialize;var r=f?f(e):e;this._cache.del(r);var s=this._getId(e);if(s){s=l.normalizeId(s);delete this._schemas[s];delete this._refs[s]}}return this}function _removeAllSchemas(e,n,f){for(var r in n){var l=n[r];if(!l.meta&&(!f||f.test(r))){e._cache.del(l.cacheKey);delete n[r]}}}function _addSchema(e,n,f,r){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var s=this._opts.serialize;var c=s?s(e):e;var p=this._cache.get(c);if(p)return p;r=r||this._opts.addUsedSchema!==false;var g=l.normalizeId(this._getId(e));if(g&&r)checkUnique(this,g);var b=this._opts.validateSchema!==false&&!n;var d;if(b&&!(d=g&&g==l.normalizeId(e.$schema)))this.validateSchema(e,true);var w=l.ids.call(this,e);var i=new v({id:g,schema:e,localRefs:w,cacheKey:c,meta:f});if(g[0]!="#"&&r)this._refs[g]=i;this._cache.put(c,i);if(b&&d)this.validateSchema(e,true);return i}function _compile(e,n){if(e.compiling){e.validate=callValidate;callValidate.schema=e.schema;callValidate.errors=null;callValidate.root=n?n:callValidate;if(e.schema.$async===true)callValidate.$async=true;return callValidate}e.compiling=true;var f;if(e.meta){f=this._opts;this._opts=this._metaOpts}var l;try{l=r.call(this,e.schema,n,e.localRefs)}catch(n){delete e.validate;throw n}finally{e.compiling=false;if(e.meta)this._opts=f}e.validate=l;e.refs=l.refs;e.refVal=l.refVal;e.root=l.root;return l;function callValidate(){var n=e.validate;var f=n.apply(this,arguments);callValidate.errors=n.errors;return f}}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,n){e=e||this.errors;if(!e)return"No errors";n=n||{};var f=n.separator===undefined?", ":n.separator;var r=n.dataVar===undefined?"data":n.dataVar;var l="";for(var s=0;s<e.length;s++){var v=e[s];if(v)l+=r+v.dataPath+" "+v.message+f}return l.slice(0,-f.length)}function addFormat(e,n){if(typeof n=="string")n=new RegExp(n);this._formats[e]=n;return this}function addDefaultMetaSchema(e){var n;if(e._opts.$data){n=f(2706);e.addMetaSchema(n,n.$id,true)}if(e._opts.meta===false)return;var r=f(1742);if(e._opts.$data)r=b(r,j);e.addMetaSchema(r,A,true);e._refs["http://json-schema.org/schema"]=A}function addInitialSchemas(e){var n=e._opts.schemas;if(!n)return;if(Array.isArray(n))e.addSchema(n);else for(var f in n)e.addSchema(n[f],f)}function addInitialFormats(e){for(var n in e._opts.formats){var f=e._opts.formats[n];e.addFormat(n,f)}}function addInitialKeywords(e){for(var n in e._opts.keywords){var f=e._opts.keywords[n];e.addKeyword(n,f)}}function checkUnique(e,n){if(e._schemas[n]||e._refs[n])throw new Error('schema with key or id "'+n+'" already exists')}function getMetaSchemaOptions(e){var n=d.copy(e._opts);for(var f=0;f<E.length;f++)delete n[E[f]];return n}function setLogger(e){var n=e._opts.logger;if(n===false){e.logger={log:noop,warn:noop,error:noop}}else{if(n===undefined)n=console;if(!(typeof n=="object"&&n.log&&n.warn&&n.error))throw new Error("logger must implement log, warn and error methods");e.logger=n}}function noop(){}},1642:e=>{"use strict";var n=e.exports=function Cache(){this._cache={}};n.prototype.put=function Cache_put(e,n){this._cache[e]=n};n.prototype.get=function Cache_get(e){return this._cache[e]};n.prototype.del=function Cache_del(e){delete this._cache[e]};n.prototype.clear=function Cache_clear(){this._cache={}}},6384:(e,n,f)=>{"use strict";var r=f(8319).MissingRef;e.exports=compileAsync;function compileAsync(e,n,f){var l=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof n=="function"){f=n;n=undefined}var s=loadMetaSchemaOf(e).then(function(){var f=l._addSchema(e,undefined,n);return f.validate||_compileAsync(f)});if(f){s.then(function(e){f(null,e)},f)}return s;function loadMetaSchemaOf(e){var n=e.$schema;return n&&!l.getSchema(n)?compileAsync.call(l,{$ref:n},true):Promise.resolve()}function _compileAsync(e){try{return l._compile(e)}catch(e){if(e instanceof r)return loadMissingSchema(e);throw e}function loadMissingSchema(f){var r=f.missingSchema;if(added(r))throw new Error("Schema "+r+" is loaded but "+f.missingRef+" cannot be resolved");var s=l._loadingSchemas[r];if(!s){s=l._loadingSchemas[r]=l._opts.loadSchema(r);s.then(removePromise,removePromise)}return s.then(function(e){if(!added(r)){return loadMetaSchemaOf(e).then(function(){if(!added(r))l.addSchema(e,r,undefined,n)})}}).then(function(){return _compileAsync(e)});function removePromise(){delete l._loadingSchemas[r]}function added(e){return l._refs[e]||l._schemas[e]}}}}},8319:(e,n,f)=>{"use strict";var r=f(270);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,n){return"can't resolve reference "+n+" from id "+e};function MissingRefError(e,n,f){this.message=f||MissingRefError.message(e,n);this.missingRef=r.url(e,n);this.missingSchema=r.normalizeId(r.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},2877:(e,n,f)=>{"use strict";var r=f(9120);var l=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var s=[0,31,28,31,30,31,30,31,31,30,31,30,31];var v=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var c=/^(?=.{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 p=/^(?:[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 g=/^(?:[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 b=/^(?:(?:[^\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 d=/^(?:(?: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 w=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var i=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var A=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var E=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return r.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":b,url:d,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:c,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:w,"json-pointer":i,"json-pointer-uri-fragment":A,"relative-json-pointer":E};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":g,"uri-template":b,url:d,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:c,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:w,"json-pointer":i,"json-pointer-uri-fragment":A,"relative-json-pointer":E};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var n=e.match(l);if(!n)return false;var f=+n[1];var r=+n[2];var v=+n[3];return r>=1&&r<=12&&v>=1&&v<=(r==2&&isLeapYear(f)?29:s[r])}function time(e,n){var f=e.match(v);if(!f)return false;var r=f[1];var l=f[2];var s=f[3];var c=f[5];return(r<=23&&l<=59&&s<=59||r==23&&l==59&&s==60)&&(!n||c)}var j=/t|\s/i;function date_time(e){var n=e.split(j);return n.length==2&&date(n[0])&&time(n[1],true)}var F=/\/|:/;function uri(e){return F.test(e)&&p.test(e)}var O=/[^\\]\\Z/;function regex(e){if(O.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},5637:(e,n,f)=>{"use strict";var r=f(270),l=f(9120),s=f(8319),v=f(7485);var c=f(4327);var p=l.ucs2length;var g=f(3118);var b=s.Validation;e.exports=compile;function compile(e,n,f,d){var w=this,i=this._opts,A=[undefined],E={},j=[],F={},O=[],R={},I=[];n=n||{schema:e,refVal:A,refs:E};var z=checkCompiling.call(this,e,n,d);var a=this._compilations[z.index];if(z.compiling)return a.callValidate=callValidate;var U=this._formats;var C=this.RULES;try{var q=localCompile(e,n,f,d);a.validate=q;var T=a.callValidate;if(T){T.schema=q.schema;T.errors=null;T.refs=q.refs;T.refVal=q.refVal;T.root=q.root;T.$async=q.$async;if(i.sourceCode)T.source=q.source}return q}finally{endCompiling.call(this,e,n,d)}function callValidate(){var e=a.validate;var n=e.apply(this,arguments);callValidate.errors=e.errors;return n}function localCompile(e,f,v,d){var F=!f||f&&f.schema==e;if(f.schema!=n.schema)return compile.call(w,e,f,v,d);var R=e.$async===true;var z=c({isTop:true,schema:e,isRoot:F,baseId:d,root:f,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:s.MissingRef,RULES:C,validate:c,util:l,resolve:r,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:i,formats:U,logger:w.logger,self:w});z=vars(A,refValCode)+vars(j,patternCode)+vars(O,defaultCode)+vars(I,customRuleCode)+z;if(i.processCode)z=i.processCode(z,e);var a;try{var q=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",z);a=q(w,C,U,n,A,O,I,g,p,b);A[0]=a}catch(e){w.logger.error("Error compiling schema, function code:",z);throw e}a.schema=e;a.errors=null;a.refs=E;a.refVal=A;a.root=F?a:f;if(R)a.$async=true;if(i.sourceCode===true){a.source={code:z,patterns:j,defaults:O}}return a}function resolveRef(e,l,s){l=r.url(e,l);var v=E[l];var c,p;if(v!==undefined){c=A[v];p="refVal["+v+"]";return resolvedRef(c,p)}if(!s&&n.refs){var g=n.refs[l];if(g!==undefined){c=n.refVal[g];p=addLocalRef(l,c);return resolvedRef(c,p)}}p=addLocalRef(l);var b=r.call(w,localCompile,n,l);if(b===undefined){var d=f&&f[l];if(d){b=r.inlineRef(d,i.inlineRefs)?d:compile.call(w,d,n,f,e)}}if(b===undefined){removeLocalRef(l)}else{replaceLocalRef(l,b);return resolvedRef(b,p)}}function addLocalRef(e,n){var f=A.length;A[f]=n;E[e]=f;return"refVal"+f}function removeLocalRef(e){delete E[e]}function replaceLocalRef(e,n){var f=E[e];A[f]=n}function resolvedRef(e,n){return typeof e=="object"||typeof e=="boolean"?{code:n,schema:e,inline:true}:{code:n,$async:e&&!!e.$async}}function usePattern(e){var n=F[e];if(n===undefined){n=F[e]=j.length;j[n]=e}return"pattern"+n}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return l.toQuotedString(e);case"object":if(e===null)return"null";var n=v(e);var f=R[n];if(f===undefined){f=R[n]=O.length;O[f]=e}return"default"+f}}function useCustomRule(e,n,f,r){if(w._opts.validateSchema!==false){var l=e.definition.dependencies;if(l&&!l.every(function(e){return Object.prototype.hasOwnProperty.call(f,e)}))throw new Error("parent schema must have all required keywords: "+l.join(","));var s=e.definition.validateSchema;if(s){var v=s(n);if(!v){var c="keyword schema is invalid: "+w.errorsText(s.errors);if(w._opts.validateSchema=="log")w.logger.error(c);else throw new Error(c)}}}var p=e.definition.compile,g=e.definition.inline,b=e.definition.macro;var d;if(p){d=p.call(w,n,f,r)}else if(b){d=b.call(w,n,f,r);if(i.validateSchema!==false)w.validateSchema(d,true)}else if(g){d=g.call(w,r,e.keyword,n,f)}else{d=e.definition.validate;if(!d)return}if(d===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var A=I.length;I[A]=d;return{code:"customRule"+A,validate:d}}}function checkCompiling(e,n,f){var r=compIndex.call(this,e,n,f);if(r>=0)return{index:r,compiling:true};r=this._compilations.length;this._compilations[r]={schema:e,root:n,baseId:f};return{index:r,compiling:false}}function endCompiling(e,n,f){var r=compIndex.call(this,e,n,f);if(r>=0)this._compilations.splice(r,1)}function compIndex(e,n,f){for(var r=0;r<this._compilations.length;r++){var l=this._compilations[r];if(l.schema==e&&l.root==n&&l.baseId==f)return r}return-1}function patternCode(e,n){return"var pattern"+e+" = new RegExp("+l.toQuotedString(n[e])+");"}function defaultCode(e){return"var default"+e+" = defaults["+e+"];"}function refValCode(e,n){return n[e]===undefined?"":"var refVal"+e+" = refVal["+e+"];"}function customRuleCode(e){return"var customRule"+e+" = customRules["+e+"];"}function vars(e,n){if(!e.length)return"";var f="";for(var r=0;r<e.length;r++)f+=n(r,e);return f}},270:(e,n,f)=>{"use strict";var r=f(4430),l=f(3118),s=f(9120),v=f(5657),c=f(6997);e.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(e,n,f){var r=this._refs[f];if(typeof r=="string"){if(this._refs[r])r=this._refs[r];else return resolve.call(this,e,n,r)}r=r||this._schemas[f];if(r instanceof v){return inlineRef(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r)}var l=resolveSchema.call(this,n,f);var s,c,p;if(l){s=l.schema;n=l.root;p=l.baseId}if(s instanceof v){c=s.validate||e.call(this,s.schema,n,undefined,p)}else if(s!==undefined){c=inlineRef(s,this._opts.inlineRefs)?s:e.call(this,s,n,undefined,p)}return c}function resolveSchema(e,n){var f=r.parse(n),l=_getFullPath(f),s=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||l!==s){var c=normalizeId(l);var p=this._refs[c];if(typeof p=="string"){return resolveRecursive.call(this,e,p,f)}else if(p instanceof v){if(!p.validate)this._compile(p);e=p}else{p=this._schemas[c];if(p instanceof v){if(!p.validate)this._compile(p);if(c==normalizeId(n))return{schema:p,root:e,baseId:s};e=p}else{return}}if(!e.schema)return;s=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,f,s,e.schema,e)}function resolveRecursive(e,n,f){var r=resolveSchema.call(this,e,n);if(r){var l=r.schema;var s=r.baseId;e=r.root;var v=this._getId(l);if(v)s=resolveUrl(s,v);return getJsonPointer.call(this,f,s,l,e)}}var p=s.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,n,f,r){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var l=e.fragment.split("/");for(var v=1;v<l.length;v++){var c=l[v];if(c){c=s.unescapeFragment(c);f=f[c];if(f===undefined)break;var g;if(!p[c]){g=this._getId(f);if(g)n=resolveUrl(n,g);if(f.$ref){var b=resolveUrl(n,f.$ref);var d=resolveSchema.call(this,r,b);if(d){f=d.schema;r=d.root;n=d.baseId}}}}}if(f!==undefined&&f!==r.schema)return{schema:f,root:r,baseId:n}}var g=s.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function inlineRef(e,n){if(n===false)return false;if(n===undefined||n===true)return checkNoRef(e);else if(n)return countKeys(e)<=n}function checkNoRef(e){var n;if(Array.isArray(e)){for(var f=0;f<e.length;f++){n=e[f];if(typeof n=="object"&&!checkNoRef(n))return false}}else{for(var r in e){if(r=="$ref")return false;n=e[r];if(typeof n=="object"&&!checkNoRef(n))return false}}return true}function countKeys(e){var n=0,f;if(Array.isArray(e)){for(var r=0;r<e.length;r++){f=e[r];if(typeof f=="object")n+=countKeys(f);if(n==Infinity)return Infinity}}else{for(var l in e){if(l=="$ref")return Infinity;if(g[l]){n++}else{f=e[l];if(typeof f=="object")n+=countKeys(f)+1;if(n==Infinity)return Infinity}}}return n}function getFullPath(e,n){if(n!==false)e=normalizeId(e);var f=r.parse(e);return _getFullPath(f)}function _getFullPath(e){return r.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function normalizeId(e){return e?e.replace(b,""):""}function resolveUrl(e,n){n=normalizeId(n);return r.resolve(e,n)}function resolveIds(e){var n=normalizeId(this._getId(e));var f={"":n};var v={"":getFullPath(n,false)};var p={};var g=this;c(e,{allKeys:true},function(e,n,c,b,d,w,i){if(n==="")return;var A=g._getId(e);var E=f[b];var j=v[b]+"/"+d;if(i!==undefined)j+="/"+(typeof i=="number"?i:s.escapeFragment(i));if(typeof A=="string"){A=E=normalizeId(E?r.resolve(E,A):A);var F=g._refs[A];if(typeof F=="string")F=g._refs[F];if(F&&F.schema){if(!l(e,F.schema))throw new Error('id "'+A+'" resolves to more than one schema')}else if(A!=normalizeId(j)){if(A[0]=="#"){if(p[A]&&!l(e,p[A]))throw new Error('id "'+A+'" resolves to more than one schema');p[A]=e}else{g._refs[A]=j}}}f[n]=E;v[n]=j});return p}},8950:(e,n,f)=>{"use strict";var r=f(3649),l=f(9120).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 n=["type","$comment"];var f=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var s=["number","integer","string","array","object","boolean","null"];e.all=l(n);e.types=l(s);e.forEach(function(f){f.rules=f.rules.map(function(f){var l;if(typeof f=="object"){var s=Object.keys(f)[0];l=f[s];f=s;l.forEach(function(f){n.push(f);e.all[f]=true})}n.push(f);var v=e.all[f]={keyword:f,code:r[f],implements:l};return v});e.all.$comment={keyword:"$comment",code:r.$comment};if(f.type)e.types[f.type]=f});e.keywords=l(n.concat(f));e.custom={};return e}},5657:(e,n,f)=>{"use strict";var r=f(9120);e.exports=SchemaObject;function SchemaObject(e){r.copy(e,this)}},3694:e=>{"use strict";e.exports=function ucs2length(e){var n=0,f=e.length,r=0,l;while(r<f){n++;l=e.charCodeAt(r++);if(l>=55296&&l<=56319&&r<f){l=e.charCodeAt(r);if((l&64512)==56320)r++}}return n}},9120:(e,n,f)=>{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:f(3118),ucs2length:f(3694),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,n){n=n||{};for(var f in e)n[f]=e[f];return n}function checkDataType(e,n,f,r){var l=r?" !== ":" === ",s=r?" || ":" && ",v=r?"!":"",c=r?"":"!";switch(e){case"null":return n+l+"null";case"array":return v+"Array.isArray("+n+")";case"object":return"("+v+n+s+"typeof "+n+l+'"object"'+s+c+"Array.isArray("+n+"))";case"integer":return"(typeof "+n+l+'"number"'+s+c+"("+n+" % 1)"+s+n+l+n+(f?s+v+"isFinite("+n+")":"")+")";case"number":return"(typeof "+n+l+'"'+e+'"'+(f?s+v+"isFinite("+n+")":"")+")";default:return"typeof "+n+l+'"'+e+'"'}}function checkDataTypes(e,n,f){switch(e.length){case 1:return checkDataType(e[0],n,f,true);default:var r="";var l=toHash(e);if(l.array&&l.object){r=l.null?"(":"(!"+n+" || ";r+="typeof "+n+' !== "object")';delete l.null;delete l.array;delete l.object}if(l.number)delete l.integer;for(var s in l)r+=(r?" && ":"")+checkDataType(s,n,f,true);return r}}var r=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,n){if(Array.isArray(n)){var f=[];for(var l=0;l<n.length;l++){var s=n[l];if(r[s])f[f.length]=s;else if(e==="array"&&s==="array")f[f.length]=s}if(f.length)return f}else if(r[n]){return[n]}else if(e==="array"&&n==="array"){return["array"]}}function toHash(e){var n={};for(var f=0;f<e.length;f++)n[e[f]]=true;return n}var l=/^[a-z$_][a-z$_0-9]*$/i;var s=/'|\\/g;function getProperty(e){return typeof e=="number"?"["+e+"]":l.test(e)?"."+e:"['"+escapeQuotes(e)+"']"}function escapeQuotes(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function varOccurences(e,n){n+="[^0-9]";var f=e.match(new RegExp(n,"g"));return f?f.length:0}function varReplace(e,n,f){n+="([^0-9])";f=f.replace(/\$/g,"$$$$");return e.replace(new RegExp(n,"g"),f+"$1")}function schemaHasRules(e,n){if(typeof e=="boolean")return!e;for(var f in e)if(n[f])return true}function schemaHasRulesExcept(e,n,f){if(typeof e=="boolean")return!e&&f!="not";for(var r in e)if(r!=f&&n[r])return true}function schemaUnknownRules(e,n){if(typeof e=="boolean")return;for(var f in e)if(!n[f])return f}function toQuotedString(e){return"'"+escapeQuotes(e)+"'"}function getPathExpr(e,n,f,r){var l=f?"'/' + "+n+(r?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):r?"'[' + "+n+" + ']'":"'[\\'' + "+n+" + '\\']'";return joinPaths(e,l)}function getPath(e,n,f){var r=f?toQuotedString("/"+escapeJsonPointer(n)):toQuotedString(getProperty(n));return joinPaths(e,r)}var v=/^\/(?:[^~]|~0|~1)*$/;var c=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(e,n,f){var r,l,s,p;if(e==="")return"rootData";if(e[0]=="/"){if(!v.test(e))throw new Error("Invalid JSON-pointer: "+e);l=e;s="rootData"}else{p=e.match(c);if(!p)throw new Error("Invalid JSON-pointer: "+e);r=+p[1];l=p[2];if(l=="#"){if(r>=n)throw new Error("Cannot access property/index "+r+" levels up, current level is "+n);return f[n-r]}if(r>n)throw new Error("Cannot access data "+r+" levels up, current level is "+n);s="data"+(n-r||"");if(!l)return s}var g=s;var b=l.split("/");for(var d=0;d<b.length;d++){var w=b[d];if(w){s+=getProperty(unescapeJsonPointer(w));g+=" && "+s}}return g}function joinPaths(e,n){if(e=='""')return n;return(e+" + "+n).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,"~")}},3379:e=>{"use strict";var n=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,f){for(var r=0;r<f.length;r++){e=JSON.parse(JSON.stringify(e));var l=f[r].split("/");var s=e;var v;for(v=1;v<l.length;v++)s=s[l[v]];for(v=0;v<n.length;v++){var c=n[v];var p=s[c];if(p){s[c]={anyOf:[p,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}}}}return e}},3016:(e,n,f)=>{"use strict";var r=f(1742);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:r.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:r.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"}]}}}},5848:e=>{"use strict";e.exports=function generate__limit(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b;var d="data"+(s||"");var w=e.opts.$data&&v&&v.$data,i;if(w){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";i="schema"+l}else{i=v}var A=n=="maximum",E=A?"exclusiveMaximum":"exclusiveMinimum",j=e.schema[E],F=e.opts.$data&&j&&j.$data,O=A?"<":">",R=A?">":"<",b=undefined;if(!(w||typeof v=="number"||v===undefined)){throw new Error(n+" must be number")}if(!(F||j===undefined||typeof j=="number"||typeof j=="boolean")){throw new Error(E+" must be number or boolean")}if(F){var I=e.util.getData(j.$data,s,e.dataPathArr),z="exclusive"+l,a="exclType"+l,U="exclIsNumber"+l,C="op"+l,q="' + "+C+" + '";r+=" var schemaExcl"+l+" = "+I+"; ";I="schemaExcl"+l;r+=" var "+z+"; var "+a+" = typeof "+I+"; if ("+a+" != 'boolean' && "+a+" != 'undefined' && "+a+" != 'number') { ";var b=E;var T=T||[];T.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: '"+E+" should be boolean' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}r+=" } "}else{r+=" {} "}var Q=r;r=T.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+Q+"]); "}else{r+=" validate.errors = ["+Q+"]; return false; "}}else{r+=" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } else if ( ";if(w){r+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "}r+=" "+a+" == 'number' ? ( ("+z+" = "+i+" === undefined || "+I+" "+O+"= "+i+") ? "+d+" "+R+"= "+I+" : "+d+" "+R+" "+i+" ) : ( ("+z+" = "+I+" === true) ? "+d+" "+R+"= "+i+" : "+d+" "+R+" "+i+" ) || "+d+" !== "+d+") { var op"+l+" = "+z+" ? '"+O+"' : '"+O+"='; ";if(v===undefined){b=E;p=e.errSchemaPath+"/"+E;i=I;w=F}}else{var U=typeof j=="number",q=O;if(U&&w){var C="'"+q+"'";r+=" if ( ";if(w){r+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "}r+=" ( "+i+" === undefined || "+j+" "+O+"= "+i+" ? "+d+" "+R+"= "+j+" : "+d+" "+R+" "+i+" ) || "+d+" !== "+d+") { "}else{if(U&&v===undefined){z=true;b=E;p=e.errSchemaPath+"/"+E;i=j;R+="="}else{if(U)i=Math[A?"min":"max"](j,v);if(j===(U?i:true)){z=true;b=E;p=e.errSchemaPath+"/"+E;R+="="}else{z=false;q+="="}}var C="'"+q+"'";r+=" if ( ";if(w){r+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "}r+=" "+d+" "+R+" "+i+" || "+d+" !== "+d+") { "}}b=b||n;var T=T||[];T.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { comparison: "+C+", limit: "+i+", exclusive: "+z+" } ";if(e.opts.messages!==false){r+=" , message: 'should be "+q+" ";if(w){r+="' + "+i}else{r+=""+i+"'"}}if(e.opts.verbose){r+=" , schema: ";if(w){r+="validate.schema"+c}else{r+=""+v}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}r+=" } "}else{r+=" {} "}var Q=r;r=T.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+Q+"]); "}else{r+=" validate.errors = ["+Q+"]; return false; "}}else{r+=" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } ";if(g){r+=" else { "}return r}},7682:e=>{"use strict";e.exports=function generate__limitItems(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b;var d="data"+(s||"");var w=e.opts.$data&&v&&v.$data,i;if(w){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";i="schema"+l}else{i=v}if(!(w||typeof v=="number")){throw new Error(n+" must be number")}var A=n=="maxItems"?">":"<";r+="if ( ";if(w){r+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "}r+=" "+d+".length "+A+" "+i+") { ";var b=n;var E=E||[];E.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(b||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { limit: "+i+" } ";if(e.opts.messages!==false){r+=" , message: 'should NOT have ";if(n=="maxItems"){r+="more"}else{r+="fewer"}r+=" than ";if(w){r+="' + "+i+" + '"}else{r+=""+v}r+=" items' "}if(e.opts.verbose){r+=" , schema: ";if(w){r+="validate.schema"+c}else{r+=""+v}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}r+=" } "}else{r+=" {} "}var j=r;r=E.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+j+"]); "}else{r+=" validate.errors = ["+j+"]; return false; "}}else{r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+="} ";if(g){r+=" else { "}return r}},6262:e=>{"use strict";e.exports=function generate__limitLength(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b;var d="data"+(s||"");var w=e.opts.$data&&v&&v.$data,i;if(w){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";i="schema"+l}else{i=v}if(!(w||typeof v=="number")){throw new Error(n+" must be number")}var A=n=="maxLength"?">":"<";r+="if ( ";if(w){r+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "}if(e.opts.unicode===false){r+=" "+d+".length "}else{r+=" ucs2length("+d+") "}r+=" "+A+" "+i+") { ";var b=n;var E=E||[];E.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(b||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { limit: "+i+" } ";if(e.opts.messages!==false){r+=" , message: 'should NOT be ";if(n=="maxLength"){r+="longer"}else{r+="shorter"}r+=" than ";if(w){r+="' + "+i+" + '"}else{r+=""+v}r+=" characters' "}if(e.opts.verbose){r+=" , schema: ";if(w){r+="validate.schema"+c}else{r+=""+v}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}r+=" } "}else{r+=" {} "}var j=r;r=E.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+j+"]); "}else{r+=" validate.errors = ["+j+"]; return false; "}}else{r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+="} ";if(g){r+=" else { "}return r}},8125:e=>{"use strict";e.exports=function generate__limitProperties(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b;var d="data"+(s||"");var w=e.opts.$data&&v&&v.$data,i;if(w){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";i="schema"+l}else{i=v}if(!(w||typeof v=="number")){throw new Error(n+" must be number")}var A=n=="maxProperties"?">":"<";r+="if ( ";if(w){r+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "}r+=" Object.keys("+d+").length "+A+" "+i+") { ";var b=n;var E=E||[];E.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(b||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { limit: "+i+" } ";if(e.opts.messages!==false){r+=" , message: 'should NOT have ";if(n=="maxProperties"){r+="more"}else{r+="fewer"}r+=" than ";if(w){r+="' + "+i+" + '"}else{r+=""+v}r+=" properties' "}if(e.opts.verbose){r+=" , schema: ";if(w){r+="validate.schema"+c}else{r+=""+v}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}r+=" } "}else{r+=" {} "}var j=r;r=E.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+j+"]); "}else{r+=" validate.errors = ["+j+"]; return false; "}}else{r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+="} ";if(g){r+=" else { "}return r}},4511:e=>{"use strict";e.exports=function generate_allOf(e,n,f){var r=" ";var l=e.schema[n];var s=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var c=!e.opts.allErrors;var p=e.util.copy(e);var g="";p.level++;var b="valid"+p.level;var d=p.baseId,w=true;var i=l;if(i){var A,E=-1,j=i.length-1;while(E<j){A=i[E+=1];if(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===false:e.util.schemaHasRules(A,e.RULES.all)){w=false;p.schema=A;p.schemaPath=s+"["+E+"]";p.errSchemaPath=v+"/"+E;r+=" "+e.validate(p)+" ";p.baseId=d;if(c){r+=" if ("+b+") { ";g+="}"}}}}if(c){if(w){r+=" if (true) { "}else{r+=" "+g.slice(0,-1)+" "}}return r}},1888:e=>{"use strict";e.exports=function generate_anyOf(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="valid"+l;var w="errs__"+l;var i=e.util.copy(e);var A="";i.level++;var E="valid"+i.level;var j=v.every(function(n){return e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===false:e.util.schemaHasRules(n,e.RULES.all)});if(j){var F=i.baseId;r+=" var "+w+" = errors; var "+d+" = false; ";var O=e.compositeRule;e.compositeRule=i.compositeRule=true;var R=v;if(R){var I,z=-1,a=R.length-1;while(z<a){I=R[z+=1];i.schema=I;i.schemaPath=c+"["+z+"]";i.errSchemaPath=p+"/"+z;r+=" "+e.validate(i)+" ";i.baseId=F;r+=" "+d+" = "+d+" || "+E+"; if (!"+d+") { ";A+="}"}}e.compositeRule=i.compositeRule=O;r+=" "+A+" if (!"+d+") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"anyOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: 'should match some schema in anyOf' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; return false; "}}r+=" } else { errors = "+w+"; if (vErrors !== null) { if ("+w+") vErrors.length = "+w+"; else vErrors = null; } ";if(e.opts.allErrors){r+=" } "}}else{if(g){r+=" if (true) { "}}return r}},9963:e=>{"use strict";e.exports=function generate_comment(e,n,f){var r=" ";var l=e.schema[n];var s=e.errSchemaPath+"/"+n;var v=!e.opts.allErrors;var c=e.util.toQuotedString(l);if(e.opts.$comment===true){r+=" console.log("+c+");"}else if(typeof e.opts.$comment=="function"){r+=" self._opts.$comment("+c+", "+e.util.toQuotedString(s)+", validate.root.schema);"}return r}},5272:e=>{"use strict";e.exports=function generate_const(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="valid"+l;var w=e.opts.$data&&v&&v.$data,i;if(w){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";i="schema"+l}else{i=v}if(!w){r+=" var schema"+l+" = validate.schema"+c+";"}r+="var "+d+" = equal("+b+", schema"+l+"); if (!"+d+") { ";var A=A||[];A.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { allowedValue: schema"+l+" } ";if(e.opts.messages!==false){r+=" , message: 'should be equal to constant' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var E=r;r=A.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+E+"]); "}else{r+=" validate.errors = ["+E+"]; return false; "}}else{r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" }";if(g){r+=" else { "}return r}},6839:e=>{"use strict";e.exports=function generate_contains(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="valid"+l;var w="errs__"+l;var i=e.util.copy(e);var A="";i.level++;var E="valid"+i.level;var j="i"+l,F=i.dataLevel=e.dataLevel+1,O="data"+F,R=e.baseId,I=e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===false:e.util.schemaHasRules(v,e.RULES.all);r+="var "+w+" = errors;var "+d+";";if(I){var z=e.compositeRule;e.compositeRule=i.compositeRule=true;i.schema=v;i.schemaPath=c;i.errSchemaPath=p;r+=" var "+E+" = false; for (var "+j+" = 0; "+j+" < "+b+".length; "+j+"++) { ";i.errorPath=e.util.getPathExpr(e.errorPath,j,e.opts.jsonPointers,true);var a=b+"["+j+"]";i.dataPathArr[F]=j;var U=e.validate(i);i.baseId=R;if(e.util.varOccurences(U,O)<2){r+=" "+e.util.varReplace(U,O,a)+" "}else{r+=" var "+O+" = "+a+"; "+U+" "}r+=" if ("+E+") break; } ";e.compositeRule=i.compositeRule=z;r+=" "+A+" if (!"+E+") {"}else{r+=" if ("+b+".length == 0) {"}var C=C||[];C.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: 'should contain a valid item' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var q=r;r=C.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+q+"]); "}else{r+=" validate.errors = ["+q+"]; return false; "}}else{r+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } else { ";if(I){r+=" errors = "+w+"; if (vErrors !== null) { if ("+w+") vErrors.length = "+w+"; else vErrors = null; } "}if(e.opts.allErrors){r+=" } "}return r}},2273:e=>{"use strict";e.exports=function generate_custom(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b;var d="data"+(s||"");var w="valid"+l;var i="errs__"+l;var A=e.opts.$data&&v&&v.$data,E;if(A){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";E="schema"+l}else{E=v}var j=this,F="definition"+l,O=j.definition,R="";var I,z,a,U,C;if(A&&O.$data){C="keywordValidate"+l;var q=O.validateSchema;r+=" var "+F+" = RULES.custom['"+n+"'].definition; var "+C+" = "+F+".validate;"}else{U=e.useCustomRule(j,v,e.schema,e);if(!U)return;E="validate.schema"+c;C=U.code;I=O.compile;z=O.inline;a=O.macro}var T=C+".errors",Q="i"+l,B="ruleErr"+l,Y=O.async;if(Y&&!e.async)throw new Error("async keyword in sync schema");if(!(z||a)){r+=""+T+" = null;"}r+="var "+i+" = errors;var "+w+";";if(A&&O.$data){R+="}";r+=" if ("+E+" === undefined) { "+w+" = true; } else { ";if(q){R+="}";r+=" "+w+" = "+F+".validateSchema("+E+"); if ("+w+") { "}}if(z){if(O.statements){r+=" "+U.validate+" "}else{r+=" "+w+" = "+U.validate+"; "}}else if(a){var x=e.util.copy(e);var R="";x.level++;var N="valid"+x.level;x.schema=U.validate;x.schemaPath="";var M=e.compositeRule;e.compositeRule=x.compositeRule=true;var L=e.validate(x).replace(/validate\.schema/g,C);e.compositeRule=x.compositeRule=M;r+=" "+L}else{var W=W||[];W.push(r);r="";r+=" "+C+".call( ";if(e.opts.passContext){r+="this"}else{r+="self"}if(I||O.schema===false){r+=" , "+d+" "}else{r+=" , "+E+" , "+d+" , validate.schema"+e.schemaPath+" "}r+=" , (dataPath || '')";if(e.errorPath!='""'){r+=" + "+e.errorPath}var H=s?"data"+(s-1||""):"parentData",J=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+H+" , "+J+" , rootData ) ";var h=r;r=W.pop();if(O.errors===false){r+=" "+w+" = ";if(Y){r+="await "}r+=""+h+"; "}else{if(Y){T="customErrors"+l;r+=" var "+T+" = null; try { "+w+" = await "+h+"; } catch (e) { "+w+" = false; if (e instanceof ValidationError) "+T+" = e.errors; else throw e; } "}else{r+=" "+T+" = null; "+w+" = "+h+"; "}}}if(O.modifying){r+=" if ("+H+") "+d+" = "+H+"["+J+"];"}r+=""+R;if(O.valid){if(g){r+=" if (true) { "}}else{r+=" if ( ";if(O.valid===undefined){r+=" !";if(a){r+=""+N}else{r+=""+w}}else{r+=" "+!O.valid+" "}r+=") { ";b=j.keyword;var W=W||[];W.push(r);r="";var W=W||[];W.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(b||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { keyword: '"+j.keyword+"' } ";if(e.opts.messages!==false){r+=" , message: 'should pass \""+j.keyword+"\" keyword validation' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}r+=" } "}else{r+=" {} "}var G=r;r=W.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+G+"]); "}else{r+=" validate.errors = ["+G+"]; return false; "}}else{r+=" var err = "+G+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var X=r;r=W.pop();if(z){if(O.errors){if(O.errors!="full"){r+=" for (var "+Q+"="+i+"; "+Q+"<errors; "+Q+"++) { var "+B+" = vErrors["+Q+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+p+'"; } ';if(e.opts.verbose){r+=" "+B+".schema = "+E+"; "+B+".data = "+d+"; "}r+=" } "}}else{if(O.errors===false){r+=" "+X+" "}else{r+=" if ("+i+" == errors) { "+X+" } else { for (var "+Q+"="+i+"; "+Q+"<errors; "+Q+"++) { var "+B+" = vErrors["+Q+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+p+'"; } ';if(e.opts.verbose){r+=" "+B+".schema = "+E+"; "+B+".data = "+d+"; "}r+=" } } "}}}else if(a){r+=" var err = ";if(e.createErrors!==false){r+=" { keyword: '"+(b||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { keyword: '"+j.keyword+"' } ";if(e.opts.messages!==false){r+=" , message: 'should pass \""+j.keyword+"\" keyword validation' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; return false; "}}}else{if(O.errors===false){r+=" "+X+" "}else{r+=" if (Array.isArray("+T+")) { if (vErrors === null) vErrors = "+T+"; else vErrors = vErrors.concat("+T+"); errors = vErrors.length; for (var "+Q+"="+i+"; "+Q+"<errors; "+Q+"++) { var "+B+" = vErrors["+Q+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; "+B+'.schemaPath = "'+p+'"; ';if(e.opts.verbose){r+=" "+B+".schema = "+E+"; "+B+".data = "+d+"; "}r+=" } } else { "+X+" } "}}r+=" } ";if(g){r+=" else { "}}return r}},7814:e=>{"use strict";e.exports=function generate_dependencies(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="errs__"+l;var w=e.util.copy(e);var i="";w.level++;var A="valid"+w.level;var E={},j={},F=e.opts.ownProperties;for(z in v){if(z=="__proto__")continue;var O=v[z];var R=Array.isArray(O)?j:E;R[z]=O}r+="var "+d+" = errors;";var I=e.errorPath;r+="var missing"+l+";";for(var z in j){R=j[z];if(R.length){r+=" if ( "+b+e.util.getProperty(z)+" !== undefined ";if(F){r+=" && Object.prototype.hasOwnProperty.call("+b+", '"+e.util.escapeQuotes(z)+"') "}if(g){r+=" && ( ";var a=R;if(a){var U,C=-1,q=a.length-1;while(C<q){U=a[C+=1];if(C){r+=" || "}var T=e.util.getProperty(U),Q=b+T;r+=" ( ( "+Q+" === undefined ";if(F){r+=" || ! Object.prototype.hasOwnProperty.call("+b+", '"+e.util.escapeQuotes(U)+"') "}r+=") && (missing"+l+" = "+e.util.toQuotedString(e.opts.jsonPointers?U:T)+") ) "}}r+=")) { ";var B="missing"+l,Y="' + "+B+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(I,B,true):I+" + "+B}var x=x||[];x.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"dependencies"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { property: '"+e.util.escapeQuotes(z)+"', missingProperty: '"+Y+"', depsCount: "+R.length+", deps: '"+e.util.escapeQuotes(R.length==1?R[0]:R.join(", "))+"' } ";if(e.opts.messages!==false){r+=" , message: 'should have ";if(R.length==1){r+="property "+e.util.escapeQuotes(R[0])}else{r+="properties "+e.util.escapeQuotes(R.join(", "))}r+=" when property "+e.util.escapeQuotes(z)+" is present' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var N=r;r=x.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+N+"]); "}else{r+=" validate.errors = ["+N+"]; return false; "}}else{r+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{r+=" ) { ";var M=R;if(M){var U,L=-1,W=M.length-1;while(L<W){U=M[L+=1];var T=e.util.getProperty(U),Y=e.util.escapeQuotes(U),Q=b+T;if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(I,U,e.opts.jsonPointers)}r+=" if ( "+Q+" === undefined ";if(F){r+=" || ! Object.prototype.hasOwnProperty.call("+b+", '"+e.util.escapeQuotes(U)+"') "}r+=") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"dependencies"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { property: '"+e.util.escapeQuotes(z)+"', missingProperty: '"+Y+"', depsCount: "+R.length+", deps: '"+e.util.escapeQuotes(R.length==1?R[0]:R.join(", "))+"' } ";if(e.opts.messages!==false){r+=" , message: 'should have ";if(R.length==1){r+="property "+e.util.escapeQuotes(R[0])}else{r+="properties "+e.util.escapeQuotes(R.join(", "))}r+=" when property "+e.util.escapeQuotes(z)+" is present' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}}r+=" } ";if(g){i+="}";r+=" else { "}}}e.errorPath=I;var H=w.baseId;for(var z in E){var O=E[z];if(e.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===false:e.util.schemaHasRules(O,e.RULES.all)){r+=" "+A+" = true; if ( "+b+e.util.getProperty(z)+" !== undefined ";if(F){r+=" && Object.prototype.hasOwnProperty.call("+b+", '"+e.util.escapeQuotes(z)+"') "}r+=") { ";w.schema=O;w.schemaPath=c+e.util.getProperty(z);w.errSchemaPath=p+"/"+e.util.escapeFragment(z);r+=" "+e.validate(w)+" ";w.baseId=H;r+=" } ";if(g){r+=" if ("+A+") { ";i+="}"}}}if(g){r+=" "+i+" if ("+d+" == errors) {"}return r}},9645:e=>{"use strict";e.exports=function generate_enum(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="valid"+l;var w=e.opts.$data&&v&&v.$data,i;if(w){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";i="schema"+l}else{i=v}var A="i"+l,E="schema"+l;if(!w){r+=" var "+E+" = validate.schema"+c+";"}r+="var "+d+";";if(w){r+=" if (schema"+l+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+l+")) "+d+" = false; else {"}r+=""+d+" = false;for (var "+A+"=0; "+A+"<"+E+".length; "+A+"++) if (equal("+b+", "+E+"["+A+"])) { "+d+" = true; break; }";if(w){r+=" } "}r+=" if (!"+d+") { ";var j=j||[];j.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { allowedValues: schema"+l+" } ";if(e.opts.messages!==false){r+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var F=r;r=j.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+F+"]); "}else{r+=" validate.errors = ["+F+"]; return false; "}}else{r+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" }";if(g){r+=" else { "}return r}},7987:e=>{"use strict";e.exports=function generate_format(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");if(e.opts.format===false){if(g){r+=" if (true) { "}return r}var d=e.opts.$data&&v&&v.$data,w;if(d){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";w="schema"+l}else{w=v}var i=e.opts.unknownFormats,A=Array.isArray(i);if(d){var E="format"+l,j="isObject"+l,F="formatType"+l;r+=" var "+E+" = formats["+w+"]; var "+j+" = typeof "+E+" == 'object' && !("+E+" instanceof RegExp) && "+E+".validate; var "+F+" = "+j+" && "+E+".type || 'string'; if ("+j+") { ";if(e.async){r+=" var async"+l+" = "+E+".async; "}r+=" "+E+" = "+E+".validate; } if ( ";if(d){r+=" ("+w+" !== undefined && typeof "+w+" != 'string') || "}r+=" (";if(i!="ignore"){r+=" ("+w+" && !"+E+" ";if(A){r+=" && self._opts.unknownFormats.indexOf("+w+") == -1 "}r+=") || "}r+=" ("+E+" && "+F+" == '"+f+"' && !(typeof "+E+" == 'function' ? ";if(e.async){r+=" (async"+l+" ? await "+E+"("+b+") : "+E+"("+b+")) "}else{r+=" "+E+"("+b+") "}r+=" : "+E+".test("+b+"))))) {"}else{var E=e.formats[v];if(!E){if(i=="ignore"){e.logger.warn('unknown format "'+v+'" ignored in schema at path "'+e.errSchemaPath+'"');if(g){r+=" if (true) { "}return r}else if(A&&i.indexOf(v)>=0){if(g){r+=" if (true) { "}return r}else{throw new Error('unknown format "'+v+'" is used in schema at path "'+e.errSchemaPath+'"')}}var j=typeof E=="object"&&!(E instanceof RegExp)&&E.validate;var F=j&&E.type||"string";if(j){var O=E.async===true;E=E.validate}if(F!=f){if(g){r+=" if (true) { "}return r}if(O){if(!e.async)throw new Error("async format in sync schema");var R="formats"+e.util.getProperty(v)+".validate";r+=" if (!(await "+R+"("+b+"))) { "}else{r+=" if (! ";var R="formats"+e.util.getProperty(v);if(j)R+=".validate";if(typeof E=="function"){r+=" "+R+"("+b+") "}else{r+=" "+R+".test("+b+") "}r+=") { "}}var I=I||[];I.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { format: ";if(d){r+=""+w}else{r+=""+e.util.toQuotedString(v)}r+=" } ";if(e.opts.messages!==false){r+=" , message: 'should match format \"";if(d){r+="' + "+w+" + '"}else{r+=""+e.util.escapeQuotes(v)}r+="\"' "}if(e.opts.verbose){r+=" , schema: ";if(d){r+="validate.schema"+c}else{r+=""+e.util.toQuotedString(v)}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var z=r;r=I.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+z+"]); "}else{r+=" validate.errors = ["+z+"]; return false; "}}else{r+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } ";if(g){r+=" else { "}return r}},1774:e=>{"use strict";e.exports=function generate_if(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="valid"+l;var w="errs__"+l;var i=e.util.copy(e);i.level++;var A="valid"+i.level;var E=e.schema["then"],j=e.schema["else"],F=E!==undefined&&(e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===false:e.util.schemaHasRules(E,e.RULES.all)),O=j!==undefined&&(e.opts.strictKeywords?typeof j=="object"&&Object.keys(j).length>0||j===false:e.util.schemaHasRules(j,e.RULES.all)),R=i.baseId;if(F||O){var I;i.createErrors=false;i.schema=v;i.schemaPath=c;i.errSchemaPath=p;r+=" var "+w+" = errors; var "+d+" = true; ";var z=e.compositeRule;e.compositeRule=i.compositeRule=true;r+=" "+e.validate(i)+" ";i.baseId=R;i.createErrors=true;r+=" errors = "+w+"; if (vErrors !== null) { if ("+w+") vErrors.length = "+w+"; else vErrors = null; } ";e.compositeRule=i.compositeRule=z;if(F){r+=" if ("+A+") { ";i.schema=e.schema["then"];i.schemaPath=e.schemaPath+".then";i.errSchemaPath=e.errSchemaPath+"/then";r+=" "+e.validate(i)+" ";i.baseId=R;r+=" "+d+" = "+A+"; ";if(F&&O){I="ifClause"+l;r+=" var "+I+" = 'then'; "}else{I="'then'"}r+=" } ";if(O){r+=" else { "}}else{r+=" if (!"+A+") { "}if(O){i.schema=e.schema["else"];i.schemaPath=e.schemaPath+".else";i.errSchemaPath=e.errSchemaPath+"/else";r+=" "+e.validate(i)+" ";i.baseId=R;r+=" "+d+" = "+A+"; ";if(F&&O){I="ifClause"+l;r+=" var "+I+" = 'else'; "}else{I="'else'"}r+=" } "}r+=" if (!"+d+") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { failingKeyword: "+I+" } ";if(e.opts.messages!==false){r+=" , message: 'should match \"' + "+I+" + '\" schema' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; return false; "}}r+=" } ";if(g){r+=" else { "}}else{if(g){r+=" if (true) { "}}return r}},3649:(e,n,f)=>{"use strict";e.exports={$ref:f(4377),allOf:f(4511),anyOf:f(1888),$comment:f(9963),const:f(5272),contains:f(6839),dependencies:f(7814),enum:f(9645),format:f(7987),if:f(1774),items:f(4074),maximum:f(5848),minimum:f(5848),maxItems:f(7682),minItems:f(7682),maxLength:f(6262),minLength:f(6262),maxProperties:f(8125),minProperties:f(8125),multipleOf:f(8079),not:f(8138),oneOf:f(7975),pattern:f(2526),properties:f(9997),propertyNames:f(1538),required:f(6828),uniqueItems:f(9841),validate:f(4327)}},4074:e=>{"use strict";e.exports=function generate_items(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="valid"+l;var w="errs__"+l;var i=e.util.copy(e);var A="";i.level++;var E="valid"+i.level;var j="i"+l,F=i.dataLevel=e.dataLevel+1,O="data"+F,R=e.baseId;r+="var "+w+" = errors;var "+d+";";if(Array.isArray(v)){var I=e.schema.additionalItems;if(I===false){r+=" "+d+" = "+b+".length <= "+v.length+"; ";var z=p;p=e.errSchemaPath+"/additionalItems";r+=" if (!"+d+") { ";var a=a||[];a.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { limit: "+v.length+" } ";if(e.opts.messages!==false){r+=" , message: 'should NOT have more than "+v.length+" items' "}if(e.opts.verbose){r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var U=r;r=a.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+U+"]); "}else{r+=" validate.errors = ["+U+"]; return false; "}}else{r+=" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } ";p=z;if(g){A+="}";r+=" else { "}}var C=v;if(C){var q,T=-1,Q=C.length-1;while(T<Q){q=C[T+=1];if(e.opts.strictKeywords?typeof q=="object"&&Object.keys(q).length>0||q===false:e.util.schemaHasRules(q,e.RULES.all)){r+=" "+E+" = true; if ("+b+".length > "+T+") { ";var B=b+"["+T+"]";i.schema=q;i.schemaPath=c+"["+T+"]";i.errSchemaPath=p+"/"+T;i.errorPath=e.util.getPathExpr(e.errorPath,T,e.opts.jsonPointers,true);i.dataPathArr[F]=T;var Y=e.validate(i);i.baseId=R;if(e.util.varOccurences(Y,O)<2){r+=" "+e.util.varReplace(Y,O,B)+" "}else{r+=" var "+O+" = "+B+"; "+Y+" "}r+=" } ";if(g){r+=" if ("+E+") { ";A+="}"}}}}if(typeof I=="object"&&(e.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===false:e.util.schemaHasRules(I,e.RULES.all))){i.schema=I;i.schemaPath=e.schemaPath+".additionalItems";i.errSchemaPath=e.errSchemaPath+"/additionalItems";r+=" "+E+" = true; if ("+b+".length > "+v.length+") { for (var "+j+" = "+v.length+"; "+j+" < "+b+".length; "+j+"++) { ";i.errorPath=e.util.getPathExpr(e.errorPath,j,e.opts.jsonPointers,true);var B=b+"["+j+"]";i.dataPathArr[F]=j;var Y=e.validate(i);i.baseId=R;if(e.util.varOccurences(Y,O)<2){r+=" "+e.util.varReplace(Y,O,B)+" "}else{r+=" var "+O+" = "+B+"; "+Y+" "}if(g){r+=" if (!"+E+") break; "}r+=" } } ";if(g){r+=" if ("+E+") { ";A+="}"}}}else if(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===false:e.util.schemaHasRules(v,e.RULES.all)){i.schema=v;i.schemaPath=c;i.errSchemaPath=p;r+=" for (var "+j+" = "+0+"; "+j+" < "+b+".length; "+j+"++) { ";i.errorPath=e.util.getPathExpr(e.errorPath,j,e.opts.jsonPointers,true);var B=b+"["+j+"]";i.dataPathArr[F]=j;var Y=e.validate(i);i.baseId=R;if(e.util.varOccurences(Y,O)<2){r+=" "+e.util.varReplace(Y,O,B)+" "}else{r+=" var "+O+" = "+B+"; "+Y+" "}if(g){r+=" if (!"+E+") break; "}r+=" }"}if(g){r+=" "+A+" if ("+w+" == errors) {"}return r}},8079:e=>{"use strict";e.exports=function generate_multipleOf(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d=e.opts.$data&&v&&v.$data,w;if(d){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";w="schema"+l}else{w=v}if(!(d||typeof v=="number")){throw new Error(n+" must be number")}r+="var division"+l+";if (";if(d){r+=" "+w+" !== undefined && ( typeof "+w+" != 'number' || "}r+=" (division"+l+" = "+b+" / "+w+", ";if(e.opts.multipleOfPrecision){r+=" Math.abs(Math.round(division"+l+") - division"+l+") > 1e-"+e.opts.multipleOfPrecision+" "}else{r+=" division"+l+" !== parseInt(division"+l+") "}r+=" ) ";if(d){r+=" ) "}r+=" ) { ";var i=i||[];i.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { multipleOf: "+w+" } ";if(e.opts.messages!==false){r+=" , message: 'should be multiple of ";if(d){r+="' + "+w}else{r+=""+w+"'"}}if(e.opts.verbose){r+=" , schema: ";if(d){r+="validate.schema"+c}else{r+=""+v}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var A=r;r=i.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+A+"]); "}else{r+=" validate.errors = ["+A+"]; return false; "}}else{r+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+="} ";if(g){r+=" else { "}return r}},8138:e=>{"use strict";e.exports=function generate_not(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="errs__"+l;var w=e.util.copy(e);w.level++;var i="valid"+w.level;if(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===false:e.util.schemaHasRules(v,e.RULES.all)){w.schema=v;w.schemaPath=c;w.errSchemaPath=p;r+=" var "+d+" = errors; ";var A=e.compositeRule;e.compositeRule=w.compositeRule=true;w.createErrors=false;var E;if(w.opts.allErrors){E=w.opts.allErrors;w.opts.allErrors=false}r+=" "+e.validate(w)+" ";w.createErrors=true;if(E)w.opts.allErrors=E;e.compositeRule=w.compositeRule=A;r+=" if ("+i+") { ";var j=j||[];j.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: 'should NOT be valid' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var F=r;r=j.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+F+"]); "}else{r+=" validate.errors = ["+F+"]; return false; "}}else{r+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ";if(e.opts.allErrors){r+=" } "}}else{r+=" var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: 'should NOT be valid' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(g){r+=" if (false) { "}}return r}},7975:e=>{"use strict";e.exports=function generate_oneOf(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="valid"+l;var w="errs__"+l;var i=e.util.copy(e);var A="";i.level++;var E="valid"+i.level;var j=i.baseId,F="prevValid"+l,O="passingSchemas"+l;r+="var "+w+" = errors , "+F+" = false , "+d+" = false , "+O+" = null; ";var R=e.compositeRule;e.compositeRule=i.compositeRule=true;var I=v;if(I){var z,a=-1,U=I.length-1;while(a<U){z=I[a+=1];if(e.opts.strictKeywords?typeof z=="object"&&Object.keys(z).length>0||z===false:e.util.schemaHasRules(z,e.RULES.all)){i.schema=z;i.schemaPath=c+"["+a+"]";i.errSchemaPath=p+"/"+a;r+=" "+e.validate(i)+" ";i.baseId=j}else{r+=" var "+E+" = true; "}if(a){r+=" if ("+E+" && "+F+") { "+d+" = false; "+O+" = ["+O+", "+a+"]; } else { ";A+="}"}r+=" if ("+E+") { "+d+" = "+F+" = true; "+O+" = "+a+"; }"}}e.compositeRule=i.compositeRule=R;r+=""+A+"if (!"+d+") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { passingSchemas: "+O+" } ";if(e.opts.messages!==false){r+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; return false; "}}r+="} else { errors = "+w+"; if (vErrors !== null) { if ("+w+") vErrors.length = "+w+"; else vErrors = null; }";if(e.opts.allErrors){r+=" } "}return r}},2526:e=>{"use strict";e.exports=function generate_pattern(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d=e.opts.$data&&v&&v.$data,w;if(d){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";w="schema"+l}else{w=v}var i=d?"(new RegExp("+w+"))":e.usePattern(v);r+="if ( ";if(d){r+=" ("+w+" !== undefined && typeof "+w+" != 'string') || "}r+=" !"+i+".test("+b+") ) { ";var A=A||[];A.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { pattern: ";if(d){r+=""+w}else{r+=""+e.util.toQuotedString(v)}r+=" } ";if(e.opts.messages!==false){r+=" , message: 'should match pattern \"";if(d){r+="' + "+w+" + '"}else{r+=""+e.util.escapeQuotes(v)}r+="\"' "}if(e.opts.verbose){r+=" , schema: ";if(d){r+="validate.schema"+c}else{r+=""+e.util.toQuotedString(v)}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var E=r;r=A.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+E+"]); "}else{r+=" validate.errors = ["+E+"]; return false; "}}else{r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+="} ";if(g){r+=" else { "}return r}},9997:e=>{"use strict";e.exports=function generate_properties(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="errs__"+l;var w=e.util.copy(e);var i="";w.level++;var A="valid"+w.level;var E="key"+l,j="idx"+l,F=w.dataLevel=e.dataLevel+1,O="data"+F,R="dataProperties"+l;var I=Object.keys(v||{}).filter(notProto),z=e.schema.patternProperties||{},a=Object.keys(z).filter(notProto),U=e.schema.additionalProperties,C=I.length||a.length,q=U===false,T=typeof U=="object"&&Object.keys(U).length,Q=e.opts.removeAdditional,B=q||T||Q,Y=e.opts.ownProperties,x=e.baseId;var N=e.schema.required;if(N&&!(e.opts.$data&&N.$data)&&N.length<e.opts.loopRequired){var M=e.util.toHash(N)}function notProto(e){return e!=="__proto__"}r+="var "+d+" = errors;var "+A+" = true;";if(Y){r+=" var "+R+" = undefined;"}if(B){if(Y){r+=" "+R+" = "+R+" || Object.keys("+b+"); for (var "+j+"=0; "+j+"<"+R+".length; "+j+"++) { var "+E+" = "+R+"["+j+"]; "}else{r+=" for (var "+E+" in "+b+") { "}if(C){r+=" var isAdditional"+l+" = !(false ";if(I.length){if(I.length>8){r+=" || validate.schema"+c+".hasOwnProperty("+E+") "}else{var L=I;if(L){var W,H=-1,J=L.length-1;while(H<J){W=L[H+=1];r+=" || "+E+" == "+e.util.toQuotedString(W)+" "}}}}if(a.length){var h=a;if(h){var G,X=-1,Z=h.length-1;while(X<Z){G=h[X+=1];r+=" || "+e.usePattern(G)+".test("+E+") "}}}r+=" ); if (isAdditional"+l+") { "}if(Q=="all"){r+=" delete "+b+"["+E+"]; "}else{var D=e.errorPath;var V="' + "+E+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers)}if(q){if(Q){r+=" delete "+b+"["+E+"]; "}else{r+=" "+A+" = false; ";var K=p;p=e.errSchemaPath+"/additionalProperties";var y=y||[];y.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"additionalProperties"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { additionalProperty: '"+V+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is an invalid additional property"}else{r+="should NOT have additional properties"}r+="' "}if(e.opts.verbose){r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var k=r;r=y.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+k+"]); "}else{r+=" validate.errors = ["+k+"]; return false; "}}else{r+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}p=K;if(g){r+=" break; "}}}else if(T){if(Q=="failing"){r+=" var "+d+" = errors; ";var m=e.compositeRule;e.compositeRule=w.compositeRule=true;w.schema=U;w.schemaPath=e.schemaPath+".additionalProperties";w.errSchemaPath=e.errSchemaPath+"/additionalProperties";w.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers);var S=b+"["+E+"]";w.dataPathArr[F]=E;var P=e.validate(w);w.baseId=x;if(e.util.varOccurences(P,O)<2){r+=" "+e.util.varReplace(P,O,S)+" "}else{r+=" var "+O+" = "+S+"; "+P+" "}r+=" if (!"+A+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+b+"["+E+"]; } ";e.compositeRule=w.compositeRule=m}else{w.schema=U;w.schemaPath=e.schemaPath+".additionalProperties";w.errSchemaPath=e.errSchemaPath+"/additionalProperties";w.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers);var S=b+"["+E+"]";w.dataPathArr[F]=E;var P=e.validate(w);w.baseId=x;if(e.util.varOccurences(P,O)<2){r+=" "+e.util.varReplace(P,O,S)+" "}else{r+=" var "+O+" = "+S+"; "+P+" "}if(g){r+=" if (!"+A+") break; "}}}e.errorPath=D}if(C){r+=" } "}r+=" } ";if(g){r+=" if ("+A+") { ";i+="}"}}var o=e.opts.useDefaults&&!e.compositeRule;if(I.length){var _=I;if(_){var W,u=-1,$=_.length-1;while(u<$){W=_[u+=1];var t=v[W];if(e.opts.strictKeywords?typeof t=="object"&&Object.keys(t).length>0||t===false:e.util.schemaHasRules(t,e.RULES.all)){var ee=e.util.getProperty(W),S=b+ee,ne=o&&t.default!==undefined;w.schema=t;w.schemaPath=c+ee;w.errSchemaPath=p+"/"+e.util.escapeFragment(W);w.errorPath=e.util.getPath(e.errorPath,W,e.opts.jsonPointers);w.dataPathArr[F]=e.util.toQuotedString(W);var P=e.validate(w);w.baseId=x;if(e.util.varOccurences(P,O)<2){P=e.util.varReplace(P,O,S);var fe=S}else{var fe=O;r+=" var "+O+" = "+S+"; "}if(ne){r+=" "+P+" "}else{if(M&&M[W]){r+=" if ( "+fe+" === undefined ";if(Y){r+=" || ! Object.prototype.hasOwnProperty.call("+b+", '"+e.util.escapeQuotes(W)+"') "}r+=") { "+A+" = false; ";var D=e.errorPath,K=p,re=e.util.escapeQuotes(W);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(D,W,e.opts.jsonPointers)}p=e.errSchemaPath+"/required";var y=y||[];y.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { missingProperty: '"+re+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+re+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var k=r;r=y.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+k+"]); "}else{r+=" validate.errors = ["+k+"]; return false; "}}else{r+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}p=K;e.errorPath=D;r+=" } else { "}else{if(g){r+=" if ( "+fe+" === undefined ";if(Y){r+=" || ! Object.prototype.hasOwnProperty.call("+b+", '"+e.util.escapeQuotes(W)+"') "}r+=") { "+A+" = true; } else { "}else{r+=" if ("+fe+" !== undefined ";if(Y){r+=" && Object.prototype.hasOwnProperty.call("+b+", '"+e.util.escapeQuotes(W)+"') "}r+=" ) { "}}r+=" "+P+" } "}}if(g){r+=" if ("+A+") { ";i+="}"}}}}if(a.length){var le=a;if(le){var G,se=-1,ve=le.length-1;while(se<ve){G=le[se+=1];var t=z[G];if(e.opts.strictKeywords?typeof t=="object"&&Object.keys(t).length>0||t===false:e.util.schemaHasRules(t,e.RULES.all)){w.schema=t;w.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(G);w.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(G);if(Y){r+=" "+R+" = "+R+" || Object.keys("+b+"); for (var "+j+"=0; "+j+"<"+R+".length; "+j+"++) { var "+E+" = "+R+"["+j+"]; "}else{r+=" for (var "+E+" in "+b+") { "}r+=" if ("+e.usePattern(G)+".test("+E+")) { ";w.errorPath=e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers);var S=b+"["+E+"]";w.dataPathArr[F]=E;var P=e.validate(w);w.baseId=x;if(e.util.varOccurences(P,O)<2){r+=" "+e.util.varReplace(P,O,S)+" "}else{r+=" var "+O+" = "+S+"; "+P+" "}if(g){r+=" if (!"+A+") break; "}r+=" } ";if(g){r+=" else "+A+" = true; "}r+=" } ";if(g){r+=" if ("+A+") { ";i+="}"}}}}}if(g){r+=" "+i+" if ("+d+" == errors) {"}return r}},1538:e=>{"use strict";e.exports=function generate_propertyNames(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="errs__"+l;var w=e.util.copy(e);var i="";w.level++;var A="valid"+w.level;r+="var "+d+" = errors;";if(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===false:e.util.schemaHasRules(v,e.RULES.all)){w.schema=v;w.schemaPath=c;w.errSchemaPath=p;var E="key"+l,j="idx"+l,F="i"+l,O="' + "+E+" + '",R=w.dataLevel=e.dataLevel+1,I="data"+R,z="dataProperties"+l,a=e.opts.ownProperties,U=e.baseId;if(a){r+=" var "+z+" = undefined; "}if(a){r+=" "+z+" = "+z+" || Object.keys("+b+"); for (var "+j+"=0; "+j+"<"+z+".length; "+j+"++) { var "+E+" = "+z+"["+j+"]; "}else{r+=" for (var "+E+" in "+b+") { "}r+=" var startErrs"+l+" = errors; ";var C=E;var q=e.compositeRule;e.compositeRule=w.compositeRule=true;var T=e.validate(w);w.baseId=U;if(e.util.varOccurences(T,I)<2){r+=" "+e.util.varReplace(T,I,C)+" "}else{r+=" var "+I+" = "+C+"; "+T+" "}e.compositeRule=w.compositeRule=q;r+=" if (!"+A+") { for (var "+F+"=startErrs"+l+"; "+F+"<errors; "+F+"++) { vErrors["+F+"].propertyName = "+E+"; } var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"propertyNames"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { propertyName: '"+O+"' } ";if(e.opts.messages!==false){r+=" , message: 'property name \\'"+O+"\\' is invalid' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; return false; "}}if(g){r+=" break; "}r+=" } }"}if(g){r+=" "+i+" if ("+d+" == errors) {"}return r}},4377:e=>{"use strict";e.exports=function generate_ref(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var g="data"+(s||"");var b="valid"+l;var d,w;if(v=="#"||v=="#/"){if(e.isRoot){d=e.async;w="validate"}else{d=e.root.schema.$async===true;w="root.refVal[0]"}}else{var i=e.resolveRef(e.baseId,v,e.isRoot);if(i===undefined){var A=e.MissingRefError.message(e.baseId,v);if(e.opts.missingRefs=="fail"){e.logger.error(A);var E=E||[];E.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(v)+"' } ";if(e.opts.messages!==false){r+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(v)+"' "}if(e.opts.verbose){r+=" , schema: "+e.util.toQuotedString(v)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "}r+=" } "}else{r+=" {} "}var j=r;r=E.pop();if(!e.compositeRule&&p){if(e.async){r+=" throw new ValidationError(["+j+"]); "}else{r+=" validate.errors = ["+j+"]; return false; "}}else{r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(p){r+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(A);if(p){r+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,v,A)}}else if(i.inline){var F=e.util.copy(e);F.level++;var O="valid"+F.level;F.schema=i.schema;F.schemaPath="";F.errSchemaPath=v;var R=e.validate(F).replace(/validate\.schema/g,i.code);r+=" "+R+" ";if(p){r+=" if ("+O+") { "}}else{d=i.$async===true||e.async&&i.$async!==false;w=i.code}}if(w){var E=E||[];E.push(r);r="";if(e.opts.passContext){r+=" "+w+".call(this, "}else{r+=" "+w+"( "}r+=" "+g+", (dataPath || '')";if(e.errorPath!='""'){r+=" + "+e.errorPath}var I=s?"data"+(s-1||""):"parentData",z=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+I+" , "+z+", rootData) ";var a=r;r=E.pop();if(d){if(!e.async)throw new Error("async schema referenced by sync schema");if(p){r+=" var "+b+"; "}r+=" try { await "+a+"; ";if(p){r+=" "+b+" = true; "}r+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(p){r+=" "+b+" = false; "}r+=" } ";if(p){r+=" if ("+b+") { "}}else{r+=" if (!"+a+") { if (vErrors === null) vErrors = "+w+".errors; else vErrors = vErrors.concat("+w+".errors); errors = vErrors.length; } ";if(p){r+=" else { "}}}return r}},6828:e=>{"use strict";e.exports=function generate_required(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="valid"+l;var w=e.opts.$data&&v&&v.$data,i;if(w){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";i="schema"+l}else{i=v}var A="schema"+l;if(!w){if(v.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var E=[];var j=v;if(j){var F,O=-1,R=j.length-1;while(O<R){F=j[O+=1];var I=e.schema.properties[F];if(!(I&&(e.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===false:e.util.schemaHasRules(I,e.RULES.all)))){E[E.length]=F}}}}else{var E=v}}if(w||E.length){var z=e.errorPath,a=w||E.length>=e.opts.loopRequired,U=e.opts.ownProperties;if(g){r+=" var missing"+l+"; ";if(a){if(!w){r+=" var "+A+" = validate.schema"+c+"; "}var C="i"+l,q="schema"+l+"["+C+"]",T="' + "+q+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(z,q,e.opts.jsonPointers)}r+=" var "+d+" = true; ";if(w){r+=" if (schema"+l+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+l+")) "+d+" = false; else {"}r+=" for (var "+C+" = 0; "+C+" < "+A+".length; "+C+"++) { "+d+" = "+b+"["+A+"["+C+"]] !== undefined ";if(U){r+=" && Object.prototype.hasOwnProperty.call("+b+", "+A+"["+C+"]) "}r+="; if (!"+d+") break; } ";if(w){r+=" } "}r+=" if (!"+d+") { ";var Q=Q||[];Q.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { missingProperty: '"+T+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+T+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var B=r;r=Q.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+B+"]); "}else{r+=" validate.errors = ["+B+"]; return false; "}}else{r+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } else { "}else{r+=" if ( ";var Y=E;if(Y){var x,C=-1,N=Y.length-1;while(C<N){x=Y[C+=1];if(C){r+=" || "}var M=e.util.getProperty(x),L=b+M;r+=" ( ( "+L+" === undefined ";if(U){r+=" || ! Object.prototype.hasOwnProperty.call("+b+", '"+e.util.escapeQuotes(x)+"') "}r+=") && (missing"+l+" = "+e.util.toQuotedString(e.opts.jsonPointers?x:M)+") ) "}}r+=") { ";var q="missing"+l,T="' + "+q+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(z,q,true):z+" + "+q}var Q=Q||[];Q.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { missingProperty: '"+T+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+T+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var B=r;r=Q.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+B+"]); "}else{r+=" validate.errors = ["+B+"]; return false; "}}else{r+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } else { "}}else{if(a){if(!w){r+=" var "+A+" = validate.schema"+c+"; "}var C="i"+l,q="schema"+l+"["+C+"]",T="' + "+q+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(z,q,e.opts.jsonPointers)}if(w){r+=" if ("+A+" && !Array.isArray("+A+")) { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { missingProperty: '"+T+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+T+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+A+" !== undefined) { "}r+=" for (var "+C+" = 0; "+C+" < "+A+".length; "+C+"++) { if ("+b+"["+A+"["+C+"]] === undefined ";if(U){r+=" || ! Object.prototype.hasOwnProperty.call("+b+", "+A+"["+C+"]) "}r+=") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { missingProperty: '"+T+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+T+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ";if(w){r+=" } "}}else{var W=E;if(W){var x,H=-1,J=W.length-1;while(H<J){x=W[H+=1];var M=e.util.getProperty(x),T=e.util.escapeQuotes(x),L=b+M;if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(z,x,e.opts.jsonPointers)}r+=" if ( "+L+" === undefined ";if(U){r+=" || ! Object.prototype.hasOwnProperty.call("+b+", '"+e.util.escapeQuotes(x)+"') "}r+=") { var err = ";if(e.createErrors!==false){r+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { missingProperty: '"+T+"' } ";if(e.opts.messages!==false){r+=" , message: '";if(e.opts._errorDataPathProperty){r+="is a required property"}else{r+="should have required property \\'"+T+"\\'"}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}}}e.errorPath=z}else if(g){r+=" if (true) {"}return r}},9841:e=>{"use strict";e.exports=function generate_uniqueItems(e,n,f){var r=" ";var l=e.level;var s=e.dataLevel;var v=e.schema[n];var c=e.schemaPath+e.util.getProperty(n);var p=e.errSchemaPath+"/"+n;var g=!e.opts.allErrors;var b="data"+(s||"");var d="valid"+l;var w=e.opts.$data&&v&&v.$data,i;if(w){r+=" var schema"+l+" = "+e.util.getData(v.$data,s,e.dataPathArr)+"; ";i="schema"+l}else{i=v}if((v||w)&&e.opts.uniqueItems!==false){if(w){r+=" var "+d+"; if ("+i+" === false || "+i+" === undefined) "+d+" = true; else if (typeof "+i+" != 'boolean') "+d+" = false; else { "}r+=" var i = "+b+".length , "+d+" = true , j; if (i > 1) { ";var A=e.schema.items&&e.schema.items.type,E=Array.isArray(A);if(!A||A=="object"||A=="array"||E&&(A.indexOf("object")>=0||A.indexOf("array")>=0)){r+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+b+"[i], "+b+"[j])) { "+d+" = false; break outer; } } } "}else{r+=" var itemIndices = {}, item; for (;i--;) { var item = "+b+"[i]; ";var j="checkDataType"+(E?"s":"");r+=" if ("+e.util[j](A,"item",e.opts.strictNumbers,true)+") continue; ";if(E){r+=" if (typeof item == 'string') item = '\"' + item; "}r+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}r+=" } ";if(w){r+=" } "}r+=" if (!"+d+") { ";var F=F||[];F.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){r+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){r+=" , schema: ";if(w){r+="validate.schema"+c}else{r+=""+v}r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}r+=" } "}else{r+=" {} "}var O=r;r=F.pop();if(!e.compositeRule&&g){if(e.async){r+=" throw new ValidationError(["+O+"]); "}else{r+=" validate.errors = ["+O+"]; return false; "}}else{r+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } ";if(g){r+=" else { "}}else{if(g){r+=" if (true) { "}}return r}},4327:e=>{"use strict";e.exports=function generate_validate(e,n,f){var r="";var l=e.schema.$async===true,s=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),v=e.self._getId(e.schema);if(e.opts.strictKeywords){var c=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(c){var p="unknown keyword: "+c;if(e.opts.strictKeywords==="log")e.logger.warn(p);else throw new Error(p)}}if(e.isTop){r+=" var validate = ";if(l){e.async=true;r+="async "}r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(v&&(e.opts.sourceCode||e.opts.processCode)){r+=" "+("/*# sourceURL="+v+" */")+" "}}if(typeof e.schema=="boolean"||!(s||e.schema.$ref)){var n="false schema";var g=e.level;var b=e.dataLevel;var d=e.schema[n];var w=e.schemaPath+e.util.getProperty(n);var i=e.errSchemaPath+"/"+n;var A=!e.opts.allErrors;var E;var j="data"+(b||"");var F="valid"+g;if(e.schema===false){if(e.isTop){A=true}else{r+=" var "+F+" = false; "}var O=O||[];O.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(E||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: {} ";if(e.opts.messages!==false){r+=" , message: 'boolean schema is false' "}if(e.opts.verbose){r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+j+" "}r+=" } "}else{r+=" {} "}var R=r;r=O.pop();if(!e.compositeRule&&A){if(e.async){r+=" throw new ValidationError(["+R+"]); "}else{r+=" validate.errors = ["+R+"]; return false; "}}else{r+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(l){r+=" return data; "}else{r+=" validate.errors = null; return true; "}}else{r+=" var "+F+" = true; "}}if(e.isTop){r+=" }; return validate; "}return r}if(e.isTop){var I=e.isTop,g=e.level=0,b=e.dataLevel=0,j="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 z="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(z);else throw new Error(z)}r+=" var vErrors = null; ";r+=" var errors = 0; ";r+=" if (rootData === undefined) rootData = data; "}else{var g=e.level,b=e.dataLevel,j="data"+(b||"");if(v)e.baseId=e.resolve.url(e.baseId,v);if(l&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+g+" = errors;"}var F="valid"+g,A=!e.opts.allErrors,a="",U="";var E;var C=e.schema.type,q=Array.isArray(C);if(C&&e.opts.nullable&&e.schema.nullable===true){if(q){if(C.indexOf("null")==-1)C=C.concat("null")}else if(C!="null"){C=[C,"null"];q=true}}if(q&&C.length==1){C=C[0];q=false}if(e.schema.$ref&&s){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){s=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){r+=" "+e.RULES.all.$comment.code(e,"$comment")}if(C){if(e.opts.coerceTypes){var T=e.util.coerceToTypes(e.opts.coerceTypes,C)}var Q=e.RULES.types[C];if(T||q||Q===true||Q&&!$shouldUseGroup(Q)){var w=e.schemaPath+".type",i=e.errSchemaPath+"/type";var w=e.schemaPath+".type",i=e.errSchemaPath+"/type",B=q?"checkDataTypes":"checkDataType";r+=" if ("+e.util[B](C,j,e.opts.strictNumbers,true)+") { ";if(T){var Y="dataType"+g,x="coerced"+g;r+=" var "+Y+" = typeof "+j+"; var "+x+" = undefined; ";if(e.opts.coerceTypes=="array"){r+=" if ("+Y+" == 'object' && Array.isArray("+j+") && "+j+".length == 1) { "+j+" = "+j+"[0]; "+Y+" = typeof "+j+"; if ("+e.util.checkDataType(e.schema.type,j,e.opts.strictNumbers)+") "+x+" = "+j+"; } "}r+=" if ("+x+" !== undefined) ; ";var N=T;if(N){var M,L=-1,W=N.length-1;while(L<W){M=N[L+=1];if(M=="string"){r+=" else if ("+Y+" == 'number' || "+Y+" == 'boolean') "+x+" = '' + "+j+"; else if ("+j+" === null) "+x+" = ''; "}else if(M=="number"||M=="integer"){r+=" else if ("+Y+" == 'boolean' || "+j+" === null || ("+Y+" == 'string' && "+j+" && "+j+" == +"+j+" ";if(M=="integer"){r+=" && !("+j+" % 1)"}r+=")) "+x+" = +"+j+"; "}else if(M=="boolean"){r+=" else if ("+j+" === 'false' || "+j+" === 0 || "+j+" === null) "+x+" = false; else if ("+j+" === 'true' || "+j+" === 1) "+x+" = true; "}else if(M=="null"){r+=" else if ("+j+" === '' || "+j+" === 0 || "+j+" === false) "+x+" = null; "}else if(e.opts.coerceTypes=="array"&&M=="array"){r+=" else if ("+Y+" == 'string' || "+Y+" == 'number' || "+Y+" == 'boolean' || "+j+" == null) "+x+" = ["+j+"]; "}}}r+=" else { ";var O=O||[];O.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(E||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { type: '";if(q){r+=""+C.join(",")}else{r+=""+C}r+="' } ";if(e.opts.messages!==false){r+=" , message: 'should be ";if(q){r+=""+C.join(",")}else{r+=""+C}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+j+" "}r+=" } "}else{r+=" {} "}var R=r;r=O.pop();if(!e.compositeRule&&A){if(e.async){r+=" throw new ValidationError(["+R+"]); "}else{r+=" validate.errors = ["+R+"]; return false; "}}else{r+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } if ("+x+" !== undefined) { ";var H=b?"data"+(b-1||""):"parentData",J=b?e.dataPathArr[b]:"parentDataProperty";r+=" "+j+" = "+x+"; ";if(!b){r+="if ("+H+" !== undefined)"}r+=" "+H+"["+J+"] = "+x+"; } "}else{var O=O||[];O.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(E||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { type: '";if(q){r+=""+C.join(",")}else{r+=""+C}r+="' } ";if(e.opts.messages!==false){r+=" , message: 'should be ";if(q){r+=""+C.join(",")}else{r+=""+C}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+j+" "}r+=" } "}else{r+=" {} "}var R=r;r=O.pop();if(!e.compositeRule&&A){if(e.async){r+=" throw new ValidationError(["+R+"]); "}else{r+=" validate.errors = ["+R+"]; return false; "}}else{r+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}r+=" } "}}if(e.schema.$ref&&!s){r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ";if(A){r+=" } if (errors === ";if(I){r+="0"}else{r+="errs_"+g}r+=") { ";U+="}"}}else{var h=e.RULES;if(h){var Q,G=-1,X=h.length-1;while(G<X){Q=h[G+=1];if($shouldUseGroup(Q)){if(Q.type){r+=" if ("+e.util.checkDataType(Q.type,j,e.opts.strictNumbers)+") { "}if(e.opts.useDefaults){if(Q.type=="object"&&e.schema.properties){var d=e.schema.properties,Z=Object.keys(d);var D=Z;if(D){var V,K=-1,y=D.length-1;while(K<y){V=D[K+=1];var k=d[V];if(k.default!==undefined){var m=j+e.util.getProperty(V);if(e.compositeRule){if(e.opts.strictDefaults){var z="default is ignored for: "+m;if(e.opts.strictDefaults==="log")e.logger.warn(z);else throw new Error(z)}}else{r+=" if ("+m+" === undefined ";if(e.opts.useDefaults=="empty"){r+=" || "+m+" === null || "+m+" === '' "}r+=" ) "+m+" = ";if(e.opts.useDefaults=="shared"){r+=" "+e.useDefault(k.default)+" "}else{r+=" "+JSON.stringify(k.default)+" "}r+="; "}}}}}else if(Q.type=="array"&&Array.isArray(e.schema.items)){var S=e.schema.items;if(S){var k,L=-1,P=S.length-1;while(L<P){k=S[L+=1];if(k.default!==undefined){var m=j+"["+L+"]";if(e.compositeRule){if(e.opts.strictDefaults){var z="default is ignored for: "+m;if(e.opts.strictDefaults==="log")e.logger.warn(z);else throw new Error(z)}}else{r+=" if ("+m+" === undefined ";if(e.opts.useDefaults=="empty"){r+=" || "+m+" === null || "+m+" === '' "}r+=" ) "+m+" = ";if(e.opts.useDefaults=="shared"){r+=" "+e.useDefault(k.default)+" "}else{r+=" "+JSON.stringify(k.default)+" "}r+="; "}}}}}}var o=Q.rules;if(o){var _,u=-1,$=o.length-1;while(u<$){_=o[u+=1];if($shouldUseRule(_)){var t=_.code(e,_.keyword,Q.type);if(t){r+=" "+t+" ";if(A){a+="}"}}}}}if(A){r+=" "+a+" ";a=""}if(Q.type){r+=" } ";if(C&&C===Q.type&&!T){r+=" else { ";var w=e.schemaPath+".type",i=e.errSchemaPath+"/type";var O=O||[];O.push(r);r="";if(e.createErrors!==false){r+=" { keyword: '"+(E||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { type: '";if(q){r+=""+C.join(",")}else{r+=""+C}r+="' } ";if(e.opts.messages!==false){r+=" , message: 'should be ";if(q){r+=""+C.join(",")}else{r+=""+C}r+="' "}if(e.opts.verbose){r+=" , schema: validate.schema"+w+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+j+" "}r+=" } "}else{r+=" {} "}var R=r;r=O.pop();if(!e.compositeRule&&A){if(e.async){r+=" throw new ValidationError(["+R+"]); "}else{r+=" validate.errors = ["+R+"]; return false; "}}else{r+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(A){r+=" if (errors === ";if(I){r+="0"}else{r+="errs_"+g}r+=") { ";U+="}"}}}}}if(A){r+=" "+U+" "}if(I){if(l){r+=" if (errors === 0) return data; ";r+=" else throw new ValidationError(vErrors); "}else{r+=" validate.errors = vErrors; ";r+=" return errors === 0; "}r+=" }; return validate;"}else{r+=" var "+F+" = errors === errs_"+g+";"}function $shouldUseGroup(e){var n=e.rules;for(var f=0;f<n.length;f++)if($shouldUseRule(n[f]))return true}function $shouldUseRule(n){return e.schema[n.keyword]!==undefined||n.implements&&$ruleImplementsSomeKeyword(n)}function $ruleImplementsSomeKeyword(n){var f=n.implements;for(var r=0;r<f.length;r++)if(e.schema[f[r]]!==undefined)return true}return r}},7758:(e,n,f)=>{"use strict";var r=/^[a-z_$][a-z0-9_$-]*$/i;var l=f(2273);var s=f(3016);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,n){var f=this.RULES;if(f.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!r.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(n){this.validateKeyword(n,true);var s=n.type;if(Array.isArray(s)){for(var v=0;v<s.length;v++)_addRule(e,s[v],n)}else{_addRule(e,s,n)}var c=n.metaSchema;if(c){if(n.$data&&this._opts.$data){c={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}}n.validateSchema=this.compile(c,true)}}f.keywords[e]=f.all[e]=true;function _addRule(e,n,r){var s;for(var v=0;v<f.length;v++){var c=f[v];if(c.type==n){s=c;break}}if(!s){s={type:n,rules:[]};f.push(s)}var p={keyword:e,definition:r,custom:true,code:l,implements:r.implements};s.rules.push(p);f.custom[e]=p}return this}function getKeyword(e){var n=this.RULES.custom[e];return n?n.definition:this.RULES.keywords[e]||false}function removeKeyword(e){var n=this.RULES;delete n.keywords[e];delete n.all[e];delete n.custom[e];for(var f=0;f<n.length;f++){var r=n[f].rules;for(var l=0;l<r.length;l++){if(r[l].keyword==e){r.splice(l,1);break}}}return this}function validateKeyword(e,n){validateKeyword.errors=null;var f=this._validateKeyword=this._validateKeyword||this.compile(s,true);if(f(e))return true;validateKeyword.errors=f.errors;if(n)throw new Error("custom keyword definition is invalid: "+this.errorsText(f.errors));else return false}},4010:(e,n,f)=>{var r=f(7371);var l=f(5622);e.exports=function expandTilde(e){var n=r();if(e.charCodeAt(0)===126){if(e.charCodeAt(1)===43){return l.join(process.cwd(),e.slice(2))}return n?l.join(n,e.slice(1)):e}return e}},3118:e=>{"use strict";e.exports=function equal(e,n){if(e===n)return true;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return false;var f,r,l;if(Array.isArray(e)){f=e.length;if(f!=n.length)return false;for(r=f;r--!==0;)if(!equal(e[r],n[r]))return false;return true}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();l=Object.keys(e);f=l.length;if(f!==Object.keys(n).length)return false;for(r=f;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[r]))return false;for(r=f;r--!==0;){var s=l[r];if(!equal(e[s],n[s]))return false}return true}return e!==e&&n!==n}},7485:e=>{"use strict";e.exports=function(e,n){if(!n)n={};if(typeof n==="function")n={cmp:n};var f=typeof n.cycles==="boolean"?n.cycles:false;var r=n.cmp&&function(e){return function(n){return function(f,r){var l={key:f,value:n[f]};var s={key:r,value:n[r]};return e(l,s)}}}(n.cmp);var l=[];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 n,s;if(Array.isArray(e)){s="[";for(n=0;n<e.length;n++){if(n)s+=",";s+=stringify(e[n])||"null"}return s+"]"}if(e===null)return"null";if(l.indexOf(e)!==-1){if(f)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var v=l.push(e)-1;var c=Object.keys(e).sort(r&&r(e));s="";for(n=0;n<c.length;n++){var p=c[n];var g=stringify(e[p]);if(!g)continue;if(s)s+=",";s+=JSON.stringify(p)+":"+g}l.splice(v,1);return"{"+s+"}"}(e)}},7371:(e,n,f)=>{"use strict";var r=f(2087);if(typeof r.homedir!=="undefined"){e.exports=r.homedir}else{e.exports=f(446)}},446:(e,n,f)=>{"use strict";var r=f(5747);var l=f(4393);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 n=find(l(e),getuid());if(n){return n}var f=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(!f){return null}if(process.platform==="darwin"){return"/Users/"+f}return"/home/"+f}function find(e,n){var f=e.length;for(var r=0;r<f;r++){if(+e[r].uid===n){return e[r].homedir}}}function getuid(){if(typeof process.geteuid==="function"){return process.geteuid()}return process.getuid()}function tryReadFileSync(e){try{return r.readFileSync(e,"utf8")}catch(e){return""}}e.exports=homedir},9520:(e,n,f)=>{"use strict";var r=f(7329);var l=f(1704);function renamed(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+n+" instead, which is now safe by default.")}}e.exports.Type=f(9518);e.exports.Schema=f(4721);e.exports.FAILSAFE_SCHEMA=f(6654);e.exports.JSON_SCHEMA=f(708);e.exports.CORE_SCHEMA=f(3487);e.exports.DEFAULT_SCHEMA=f(6304);e.exports.load=r.load;e.exports.loadAll=r.loadAll;e.exports.dump=l.dump;e.exports.YAMLException=f(5646);e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},755: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,n){var f,r,l,s;if(n){s=Object.keys(n);for(f=0,r=s.length;f<r;f+=1){l=s[f];e[l]=n[l]}}return e}function repeat(e,n){var f="",r;for(r=0;r<n;r+=1){f+=e}return f}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},1704:(e,n,f)=>{"use strict";var r=f(755);var l=f(5646);var s=f(6304);var v=Object.prototype.toString;var c=Object.prototype.hasOwnProperty;var p=65279;var g=9;var b=10;var d=13;var w=32;var i=33;var A=34;var E=35;var j=37;var F=38;var O=39;var R=42;var I=44;var z=45;var a=58;var U=61;var C=62;var q=63;var T=64;var Q=91;var B=93;var Y=96;var x=123;var N=124;var M=125;var L={};L[0]="\\0";L[7]="\\a";L[8]="\\b";L[9]="\\t";L[10]="\\n";L[11]="\\v";L[12]="\\f";L[13]="\\r";L[27]="\\e";L[34]='\\"';L[92]="\\\\";L[133]="\\N";L[160]="\\_";L[8232]="\\L";L[8233]="\\P";var W=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var H=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,n){var f,r,l,s,v,p,g;if(n===null)return{};f={};r=Object.keys(n);for(l=0,s=r.length;l<s;l+=1){v=r[l];p=String(n[v]);if(v.slice(0,2)==="!!"){v="tag:yaml.org,2002:"+v.slice(2)}g=e.compiledTypeMap["fallback"][v];if(g&&c.call(g.styleAliases,p)){p=g.styleAliases[p]}f[v]=p}return f}function encodeHex(e){var n,f,s;n=e.toString(16).toUpperCase();if(e<=255){f="x";s=2}else if(e<=65535){f="u";s=4}else if(e<=4294967295){f="U";s=8}else{throw new l("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+f+r.repeat("0",s-n.length)+n}var J=1,h=2;function State(e){this.schema=e["schema"]||s;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=r.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"]==='"'?h:J;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,n){var f=r.repeat(" ",n),l=0,s=-1,v="",c,p=e.length;while(l<p){s=e.indexOf("\n",l);if(s===-1){c=e.slice(l);l=p}else{c=e.slice(l,s+1);l=s+1}if(c.length&&c!=="\n")v+=f;v+=c}return v}function generateNextLine(e,n){return"\n"+r.repeat(" ",e.indent*n)}function testImplicitResolving(e,n){var f,r,l;for(f=0,r=e.implicitTypes.length;f<r;f+=1){l=e.implicitTypes[f];if(l.resolve(n)){return true}}return false}function isWhitespace(e){return e===w||e===g}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==p||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==p&&e!==d&&e!==b}function isPlainSafe(e,n,f){var r=isNsCharOrWhitespace(e);var l=r&&!isWhitespace(e);return(f?r:r&&e!==I&&e!==Q&&e!==B&&e!==x&&e!==M)&&e!==E&&!(n===a&&!l)||isNsCharOrWhitespace(n)&&!isWhitespace(n)&&e===E||n===a&&l}function isPlainSafeFirst(e){return isPrintable(e)&&e!==p&&!isWhitespace(e)&&e!==z&&e!==q&&e!==a&&e!==I&&e!==Q&&e!==B&&e!==x&&e!==M&&e!==E&&e!==F&&e!==R&&e!==i&&e!==N&&e!==U&&e!==C&&e!==O&&e!==A&&e!==j&&e!==T&&e!==Y}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==a}function codePointAt(e,n){var f=e.charCodeAt(n),r;if(f>=55296&&f<=56319&&n+1<e.length){r=e.charCodeAt(n+1);if(r>=56320&&r<=57343){return(f-55296)*1024+r-56320+65536}}return f}function needIndentIndicator(e){var n=/^\n* /;return n.test(e)}var G=1,X=2,Z=3,D=4,V=5;function chooseScalarStyle(e,n,f,r,l,s,v,c){var p;var g=0;var d=null;var w=false;var i=false;var A=r!==-1;var E=-1;var j=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(n||v){for(p=0;p<e.length;g>=65536?p+=2:p++){g=codePointAt(e,p);if(!isPrintable(g)){return V}j=j&&isPlainSafe(g,d,c);d=g}}else{for(p=0;p<e.length;g>=65536?p+=2:p++){g=codePointAt(e,p);if(g===b){w=true;if(A){i=i||p-E-1>r&&e[E+1]!==" ";E=p}}else if(!isPrintable(g)){return V}j=j&&isPlainSafe(g,d,c);d=g}i=i||A&&(p-E-1>r&&e[E+1]!==" ")}if(!w&&!i){if(j&&!v&&!l(e)){return G}return s===h?V:X}if(f>9&&needIndentIndicator(e)){return V}if(!v){return i?D:Z}return s===h?V:X}function writeScalar(e,n,f,r,s){e.dump=function(){if(n.length===0){return e.quotingType===h?'""':"''"}if(!e.noCompatMode){if(W.indexOf(n)!==-1||H.test(n)){return e.quotingType===h?'"'+n+'"':"'"+n+"'"}}var v=e.indent*Math.max(1,f);var c=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-v);var p=r||e.flowLevel>-1&&f>=e.flowLevel;function testAmbiguity(n){return testImplicitResolving(e,n)}switch(chooseScalarStyle(n,p,e.indent,c,testAmbiguity,e.quotingType,e.forceQuotes&&!r,s)){case G:return n;case X:return"'"+n.replace(/'/g,"''")+"'";case Z:return"|"+blockHeader(n,e.indent)+dropEndingNewline(indentString(n,v));case D:return">"+blockHeader(n,e.indent)+dropEndingNewline(indentString(foldString(n,c),v));case V:return'"'+escapeString(n,c)+'"';default:throw new l("impossible error: invalid scalar style")}}()}function blockHeader(e,n){var f=needIndentIndicator(e)?String(n):"";var r=e[e.length-1]==="\n";var l=r&&(e[e.length-2]==="\n"||e==="\n");var s=l?"+":r?"":"-";return f+s+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,n){var f=/(\n+)([^\n]*)/g;var r=function(){var r=e.indexOf("\n");r=r!==-1?r:e.length;f.lastIndex=r;return foldLine(e.slice(0,r),n)}();var l=e[0]==="\n"||e[0]===" ";var s;var v;while(v=f.exec(e)){var c=v[1],p=v[2];s=p[0]===" ";r+=c+(!l&&!s&&p!==""?"\n":"")+foldLine(p,n);l=s}return r}function foldLine(e,n){if(e===""||e[0]===" ")return e;var f=/ [^ ]/g;var r;var l=0,s,v=0,c=0;var p="";while(r=f.exec(e)){c=r.index;if(c-l>n){s=v>l?v:c;p+="\n"+e.slice(l,s);l=s+1}v=c}p+="\n";if(e.length-l>n&&v>l){p+=e.slice(l,v)+"\n"+e.slice(v+1)}else{p+=e.slice(l)}return p.slice(1)}function escapeString(e){var n="";var f=0;var r;for(var l=0;l<e.length;f>=65536?l+=2:l++){f=codePointAt(e,l);r=L[f];if(!r&&isPrintable(f)){n+=e[l];if(f>=65536)n+=e[l+1]}else{n+=r||encodeHex(f)}}return n}function writeFlowSequence(e,n,f){var r="",l=e.tag,s,v,c;for(s=0,v=f.length;s<v;s+=1){c=f[s];if(e.replacer){c=e.replacer.call(f,String(s),c)}if(writeNode(e,n,c,false,false)||typeof c==="undefined"&&writeNode(e,n,null,false,false)){if(r!=="")r+=","+(!e.condenseFlow?" ":"");r+=e.dump}}e.tag=l;e.dump="["+r+"]"}function writeBlockSequence(e,n,f,r){var l="",s=e.tag,v,c,p;for(v=0,c=f.length;v<c;v+=1){p=f[v];if(e.replacer){p=e.replacer.call(f,String(v),p)}if(writeNode(e,n+1,p,true,true,false,true)||typeof p==="undefined"&&writeNode(e,n+1,null,true,true,false,true)){if(!r||l!==""){l+=generateNextLine(e,n)}if(e.dump&&b===e.dump.charCodeAt(0)){l+="-"}else{l+="- "}l+=e.dump}}e.tag=s;e.dump=l||"[]"}function writeFlowMapping(e,n,f){var r="",l=e.tag,s=Object.keys(f),v,c,p,g,b;for(v=0,c=s.length;v<c;v+=1){b="";if(r!=="")b+=", ";if(e.condenseFlow)b+='"';p=s[v];g=f[p];if(e.replacer){g=e.replacer.call(f,p,g)}if(!writeNode(e,n,p,false,false)){continue}if(e.dump.length>1024)b+="? ";b+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,n,g,false,false)){continue}b+=e.dump;r+=b}e.tag=l;e.dump="{"+r+"}"}function writeBlockMapping(e,n,f,r){var s="",v=e.tag,c=Object.keys(f),p,g,d,w,i,A;if(e.sortKeys===true){c.sort()}else if(typeof e.sortKeys==="function"){c.sort(e.sortKeys)}else if(e.sortKeys){throw new l("sortKeys must be a boolean or a function")}for(p=0,g=c.length;p<g;p+=1){A="";if(!r||s!==""){A+=generateNextLine(e,n)}d=c[p];w=f[d];if(e.replacer){w=e.replacer.call(f,d,w)}if(!writeNode(e,n+1,d,true,true,true)){continue}i=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(i){if(e.dump&&b===e.dump.charCodeAt(0)){A+="?"}else{A+="? "}}A+=e.dump;if(i){A+=generateNextLine(e,n)}if(!writeNode(e,n+1,w,true,i)){continue}if(e.dump&&b===e.dump.charCodeAt(0)){A+=":"}else{A+=": "}A+=e.dump;s+=A}e.tag=v;e.dump=s||"{}"}function detectType(e,n,f){var r,s,p,g,b,d;s=f?e.explicitTypes:e.implicitTypes;for(p=0,g=s.length;p<g;p+=1){b=s[p];if((b.instanceOf||b.predicate)&&(!b.instanceOf||typeof n==="object"&&n instanceof b.instanceOf)&&(!b.predicate||b.predicate(n))){if(f){if(b.multi&&b.representName){e.tag=b.representName(n)}else{e.tag=b.tag}}else{e.tag="?"}if(b.represent){d=e.styleMap[b.tag]||b.defaultStyle;if(v.call(b.represent)==="[object Function]"){r=b.represent(n,d)}else if(c.call(b.represent,d)){r=b.represent[d](n,d)}else{throw new l("!<"+b.tag+'> tag resolver accepts not "'+d+'" style')}e.dump=r}return true}}return false}function writeNode(e,n,f,r,s,c,p){e.tag=null;e.dump=f;if(!detectType(e,f,false)){detectType(e,f,true)}var g=v.call(e.dump);var b=r;var d;if(r){r=e.flowLevel<0||e.flowLevel>n}var w=g==="[object Object]"||g==="[object Array]",i,A;if(w){i=e.duplicates.indexOf(f);A=i!==-1}if(e.tag!==null&&e.tag!=="?"||A||e.indent!==2&&n>0){s=false}if(A&&e.usedDuplicates[i]){e.dump="*ref_"+i}else{if(w&&A&&!e.usedDuplicates[i]){e.usedDuplicates[i]=true}if(g==="[object Object]"){if(r&&Object.keys(e.dump).length!==0){writeBlockMapping(e,n,e.dump,s);if(A){e.dump="&ref_"+i+e.dump}}else{writeFlowMapping(e,n,e.dump);if(A){e.dump="&ref_"+i+" "+e.dump}}}else if(g==="[object Array]"){if(r&&e.dump.length!==0){if(e.noArrayIndent&&!p&&n>0){writeBlockSequence(e,n-1,e.dump,s)}else{writeBlockSequence(e,n,e.dump,s)}if(A){e.dump="&ref_"+i+e.dump}}else{writeFlowSequence(e,n,e.dump);if(A){e.dump="&ref_"+i+" "+e.dump}}}else if(g==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,n,c,b)}}else if(g==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new l("unacceptable kind of an object to dump "+g)}if(e.tag!==null&&e.tag!=="?"){d=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){d="!"+d}else if(d.slice(0,18)==="tag:yaml.org,2002:"){d="!!"+d.slice(18)}else{d="!<"+d+">"}e.dump=d+" "+e.dump}}return true}function getDuplicateReferences(e,n){var f=[],r=[],l,s;inspectNode(e,f,r);for(l=0,s=r.length;l<s;l+=1){n.duplicates.push(f[r[l]])}n.usedDuplicates=new Array(s)}function inspectNode(e,n,f){var r,l,s;if(e!==null&&typeof e==="object"){l=n.indexOf(e);if(l!==-1){if(f.indexOf(l)===-1){f.push(l)}}else{n.push(e);if(Array.isArray(e)){for(l=0,s=e.length;l<s;l+=1){inspectNode(e[l],n,f)}}else{r=Object.keys(e);for(l=0,s=r.length;l<s;l+=1){inspectNode(e[r[l]],n,f)}}}}}function dump(e,n){n=n||{};var f=new State(n);if(!f.noRefs)getDuplicateReferences(e,f);var r=e;if(f.replacer){r=f.replacer.call({"":r},"",r)}if(writeNode(f,0,r,true,true))return f.dump+"\n";return""}e.exports.dump=dump},5646:e=>{"use strict";function formatError(e,n){var f="",r=e.reason||"(unknown reason)";if(!e.mark)return r;if(e.mark.name){f+='in "'+e.mark.name+'" '}f+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!n&&e.mark.snippet){f+="\n\n"+e.mark.snippet}return r+" "+f}function YAMLException(e,n){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=n;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},7329:(e,n,f)=>{"use strict";var r=f(755);var l=f(5646);var s=f(5398);var v=f(6304);var c=Object.prototype.hasOwnProperty;var p=1;var g=2;var b=3;var d=4;var w=1;var i=2;var A=3;var E=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var j=/[\x85\u2028\u2029]/;var F=/[,\[\]\{\}]/;var O=/^(?:!|!!|![a-z\-]+!)$/i;var R=/^(?:!|[^,\[\]\{\}])(?:%[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 n;if(48<=e&&e<=57){return e-48}n=e|32;if(97<=n&&n<=102){return n-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 I=new Array(256);var z=new Array(256);for(var a=0;a<256;a++){I[a]=simpleEscapeSequence(a)?1:0;z[a]=simpleEscapeSequence(a)}function State(e,n){this.input=e;this.filename=n["filename"]||null;this.schema=n["schema"]||v;this.onWarning=n["onWarning"]||null;this.legacy=n["legacy"]||false;this.json=n["json"]||false;this.listener=n["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,n){var f={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};f.snippet=s(f);return new l(n,f)}function throwError(e,n){throw generateError(e,n)}function throwWarning(e,n){if(e.onWarning){e.onWarning.call(null,generateError(e,n))}}var U={YAML:function handleYamlDirective(e,n,f){var r,l,s;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(f.length!==1){throwError(e,"YAML directive accepts exactly one argument")}r=/^([0-9]+)\.([0-9]+)$/.exec(f[0]);if(r===null){throwError(e,"ill-formed argument of the YAML directive")}l=parseInt(r[1],10);s=parseInt(r[2],10);if(l!==1){throwError(e,"unacceptable YAML version of the document")}e.version=f[0];e.checkLineBreaks=s<2;if(s!==1&&s!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,n,f){var r,l;if(f.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}r=f[0];l=f[1];if(!O.test(r)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(c.call(e.tagMap,r)){throwError(e,'there is a previously declared suffix for "'+r+'" tag handle')}if(!R.test(l)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{l=decodeURIComponent(l)}catch(n){throwError(e,"tag prefix is malformed: "+l)}e.tagMap[r]=l}};function captureSegment(e,n,f,r){var l,s,v,c;if(n<f){c=e.input.slice(n,f);if(r){for(l=0,s=c.length;l<s;l+=1){v=c.charCodeAt(l);if(!(v===9||32<=v&&v<=1114111)){throwError(e,"expected valid JSON character")}}}else if(E.test(c)){throwError(e,"the stream contains non-printable characters")}e.result+=c}}function mergeMappings(e,n,f,l){var s,v,p,g;if(!r.isObject(f)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}s=Object.keys(f);for(p=0,g=s.length;p<g;p+=1){v=s[p];if(!c.call(n,v)){n[v]=f[v];l[v]=true}}}function storeMappingPair(e,n,f,r,l,s,v,p,g){var b,d;if(Array.isArray(l)){l=Array.prototype.slice.call(l);for(b=0,d=l.length;b<d;b+=1){if(Array.isArray(l[b])){throwError(e,"nested arrays are not supported inside keys")}if(typeof l==="object"&&_class(l[b])==="[object Object]"){l[b]="[object Object]"}}}if(typeof l==="object"&&_class(l)==="[object Object]"){l="[object Object]"}l=String(l);if(n===null){n={}}if(r==="tag:yaml.org,2002:merge"){if(Array.isArray(s)){for(b=0,d=s.length;b<d;b+=1){mergeMappings(e,n,s[b],f)}}else{mergeMappings(e,n,s,f)}}else{if(!e.json&&!c.call(f,l)&&c.call(n,l)){e.line=v||e.line;e.lineStart=p||e.lineStart;e.position=g||e.position;throwError(e,"duplicated mapping key")}if(l==="__proto__"){Object.defineProperty(n,l,{configurable:true,enumerable:true,writable:true,value:s})}else{n[l]=s}delete f[l]}return n}function readLineBreak(e){var n;n=e.input.charCodeAt(e.position);if(n===10){e.position++}else if(n===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,n,f){var r=0,l=e.input.charCodeAt(e.position);while(l!==0){while(is_WHITE_SPACE(l)){if(l===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}l=e.input.charCodeAt(++e.position)}if(n&&l===35){do{l=e.input.charCodeAt(++e.position)}while(l!==10&&l!==13&&l!==0)}if(is_EOL(l)){readLineBreak(e);l=e.input.charCodeAt(e.position);r++;e.lineIndent=0;while(l===32){e.lineIndent++;l=e.input.charCodeAt(++e.position)}}else{break}}if(f!==-1&&r!==0&&e.lineIndent<f){throwWarning(e,"deficient indentation")}return r}function testDocumentSeparator(e){var n=e.position,f;f=e.input.charCodeAt(n);if((f===45||f===46)&&f===e.input.charCodeAt(n+1)&&f===e.input.charCodeAt(n+2)){n+=3;f=e.input.charCodeAt(n);if(f===0||is_WS_OR_EOL(f)){return true}}return false}function writeFoldedLines(e,n){if(n===1){e.result+=" "}else if(n>1){e.result+=r.repeat("\n",n-1)}}function readPlainScalar(e,n,f){var r,l,s,v,c,p,g,b,d=e.kind,w=e.result,i;i=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(i)||is_FLOW_INDICATOR(i)||i===35||i===38||i===42||i===33||i===124||i===62||i===39||i===34||i===37||i===64||i===96){return false}if(i===63||i===45){l=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(l)||f&&is_FLOW_INDICATOR(l)){return false}}e.kind="scalar";e.result="";s=v=e.position;c=false;while(i!==0){if(i===58){l=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(l)||f&&is_FLOW_INDICATOR(l)){break}}else if(i===35){r=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(r)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||f&&is_FLOW_INDICATOR(i)){break}else if(is_EOL(i)){p=e.line;g=e.lineStart;b=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=n){c=true;i=e.input.charCodeAt(e.position);continue}else{e.position=v;e.line=p;e.lineStart=g;e.lineIndent=b;break}}if(c){captureSegment(e,s,v,false);writeFoldedLines(e,e.line-p);s=v=e.position;c=false}if(!is_WHITE_SPACE(i)){v=e.position+1}i=e.input.charCodeAt(++e.position)}captureSegment(e,s,v,false);if(e.result){return true}e.kind=d;e.result=w;return false}function readSingleQuotedScalar(e,n){var f,r,l;f=e.input.charCodeAt(e.position);if(f!==39){return false}e.kind="scalar";e.result="";e.position++;r=l=e.position;while((f=e.input.charCodeAt(e.position))!==0){if(f===39){captureSegment(e,r,e.position,true);f=e.input.charCodeAt(++e.position);if(f===39){r=e.position;e.position++;l=e.position}else{return true}}else if(is_EOL(f)){captureSegment(e,r,l,true);writeFoldedLines(e,skipSeparationSpace(e,false,n));r=l=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++;l=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,n){var f,r,l,s,v,c;c=e.input.charCodeAt(e.position);if(c!==34){return false}e.kind="scalar";e.result="";e.position++;f=r=e.position;while((c=e.input.charCodeAt(e.position))!==0){if(c===34){captureSegment(e,f,e.position,true);e.position++;return true}else if(c===92){captureSegment(e,f,e.position,true);c=e.input.charCodeAt(++e.position);if(is_EOL(c)){skipSeparationSpace(e,false,n)}else if(c<256&&I[c]){e.result+=z[c];e.position++}else if((v=escapedHexLen(c))>0){l=v;s=0;for(;l>0;l--){c=e.input.charCodeAt(++e.position);if((v=fromHexCode(c))>=0){s=(s<<4)+v}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(s);e.position++}else{throwError(e,"unknown escape sequence")}f=r=e.position}else if(is_EOL(c)){captureSegment(e,f,r,true);writeFoldedLines(e,skipSeparationSpace(e,false,n));f=r=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++;r=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,n){var f=true,r,l,s,v=e.tag,c,g=e.anchor,b,d,w,i,A,E=Object.create(null),j,F,O,R;R=e.input.charCodeAt(e.position);if(R===91){d=93;A=false;c=[]}else if(R===123){d=125;A=true;c={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=c}R=e.input.charCodeAt(++e.position);while(R!==0){skipSeparationSpace(e,true,n);R=e.input.charCodeAt(e.position);if(R===d){e.position++;e.tag=v;e.anchor=g;e.kind=A?"mapping":"sequence";e.result=c;return true}else if(!f){throwError(e,"missed comma between flow collection entries")}else if(R===44){throwError(e,"expected the node content, but found ','")}F=j=O=null;w=i=false;if(R===63){b=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(b)){w=i=true;e.position++;skipSeparationSpace(e,true,n)}}r=e.line;l=e.lineStart;s=e.position;composeNode(e,n,p,false,true);F=e.tag;j=e.result;skipSeparationSpace(e,true,n);R=e.input.charCodeAt(e.position);if((i||e.line===r)&&R===58){w=true;R=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,n);composeNode(e,n,p,false,true);O=e.result}if(A){storeMappingPair(e,c,E,F,j,O,r,l,s)}else if(w){c.push(storeMappingPair(e,null,E,F,j,O,r,l,s))}else{c.push(j)}skipSeparationSpace(e,true,n);R=e.input.charCodeAt(e.position);if(R===44){f=true;R=e.input.charCodeAt(++e.position)}else{f=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,n){var f,l,s=w,v=false,c=false,p=n,g=0,b=false,d,E;E=e.input.charCodeAt(e.position);if(E===124){l=false}else if(E===62){l=true}else{return false}e.kind="scalar";e.result="";while(E!==0){E=e.input.charCodeAt(++e.position);if(E===43||E===45){if(w===s){s=E===43?A:i}else{throwError(e,"repeat of a chomping mode identifier")}}else if((d=fromDecimalCode(E))>=0){if(d===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!c){p=n+d-1;c=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(E)){do{E=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(E));if(E===35){do{E=e.input.charCodeAt(++e.position)}while(!is_EOL(E)&&E!==0)}}while(E!==0){readLineBreak(e);e.lineIndent=0;E=e.input.charCodeAt(e.position);while((!c||e.lineIndent<p)&&E===32){e.lineIndent++;E=e.input.charCodeAt(++e.position)}if(!c&&e.lineIndent>p){p=e.lineIndent}if(is_EOL(E)){g++;continue}if(e.lineIndent<p){if(s===A){e.result+=r.repeat("\n",v?1+g:g)}else if(s===w){if(v){e.result+="\n"}}break}if(l){if(is_WHITE_SPACE(E)){b=true;e.result+=r.repeat("\n",v?1+g:g)}else if(b){b=false;e.result+=r.repeat("\n",g+1)}else if(g===0){if(v){e.result+=" "}}else{e.result+=r.repeat("\n",g)}}else{e.result+=r.repeat("\n",v?1+g:g)}v=true;c=true;g=0;f=e.position;while(!is_EOL(E)&&E!==0){E=e.input.charCodeAt(++e.position)}captureSegment(e,f,e.position,false)}return true}function readBlockSequence(e,n){var f,r=e.tag,l=e.anchor,s=[],v,c=false,p;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=s}p=e.input.charCodeAt(e.position);while(p!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(p!==45){break}v=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(v)){break}c=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=n){s.push(null);p=e.input.charCodeAt(e.position);continue}}f=e.line;composeNode(e,n,b,false,true);s.push(e.result);skipSeparationSpace(e,true,-1);p=e.input.charCodeAt(e.position);if((e.line===f||e.lineIndent>n)&&p!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<n){break}}if(c){e.tag=r;e.anchor=l;e.kind="sequence";e.result=s;return true}return false}function readBlockMapping(e,n,f){var r,l,s,v,c,p,b=e.tag,w=e.anchor,i={},A=Object.create(null),E=null,j=null,F=null,O=false,R=false,I;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=i}I=e.input.charCodeAt(e.position);while(I!==0){if(!O&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}r=e.input.charCodeAt(e.position+1);s=e.line;if((I===63||I===58)&&is_WS_OR_EOL(r)){if(I===63){if(O){storeMappingPair(e,i,A,E,j,null,v,c,p);E=j=F=null}R=true;O=true;l=true}else if(O){O=false;l=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;I=r}else{v=e.line;c=e.lineStart;p=e.position;if(!composeNode(e,f,g,false,true)){break}if(e.line===s){I=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(I)){I=e.input.charCodeAt(++e.position)}if(I===58){I=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(I)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(O){storeMappingPair(e,i,A,E,j,null,v,c,p);E=j=F=null}R=true;O=false;l=false;E=e.tag;j=e.result}else if(R){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=b;e.anchor=w;return true}}else if(R){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=b;e.anchor=w;return true}}if(e.line===s||e.lineIndent>n){if(O){v=e.line;c=e.lineStart;p=e.position}if(composeNode(e,n,d,true,l)){if(O){j=e.result}else{F=e.result}}if(!O){storeMappingPair(e,i,A,E,j,F,v,c,p);E=j=F=null}skipSeparationSpace(e,true,-1);I=e.input.charCodeAt(e.position)}if((e.line===s||e.lineIndent>n)&&I!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<n){break}}if(O){storeMappingPair(e,i,A,E,j,null,v,c,p)}if(R){e.tag=b;e.anchor=w;e.kind="mapping";e.result=i}return R}function readTagProperty(e){var n,f=false,r=false,l,s,v;v=e.input.charCodeAt(e.position);if(v!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}v=e.input.charCodeAt(++e.position);if(v===60){f=true;v=e.input.charCodeAt(++e.position)}else if(v===33){r=true;l="!!";v=e.input.charCodeAt(++e.position)}else{l="!"}n=e.position;if(f){do{v=e.input.charCodeAt(++e.position)}while(v!==0&&v!==62);if(e.position<e.length){s=e.input.slice(n,e.position);v=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(v!==0&&!is_WS_OR_EOL(v)){if(v===33){if(!r){l=e.input.slice(n-1,e.position+1);if(!O.test(l)){throwError(e,"named tag handle cannot contain such characters")}r=true;n=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}v=e.input.charCodeAt(++e.position)}s=e.input.slice(n,e.position);if(F.test(s)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(s&&!R.test(s)){throwError(e,"tag name cannot contain such characters: "+s)}try{s=decodeURIComponent(s)}catch(n){throwError(e,"tag name is malformed: "+s)}if(f){e.tag=s}else if(c.call(e.tagMap,l)){e.tag=e.tagMap[l]+s}else if(l==="!"){e.tag="!"+s}else if(l==="!!"){e.tag="tag:yaml.org,2002:"+s}else{throwError(e,'undeclared tag handle "'+l+'"')}return true}function readAnchorProperty(e){var n,f;f=e.input.charCodeAt(e.position);if(f!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}f=e.input.charCodeAt(++e.position);n=e.position;while(f!==0&&!is_WS_OR_EOL(f)&&!is_FLOW_INDICATOR(f)){f=e.input.charCodeAt(++e.position)}if(e.position===n){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(n,e.position);return true}function readAlias(e){var n,f,r;r=e.input.charCodeAt(e.position);if(r!==42)return false;r=e.input.charCodeAt(++e.position);n=e.position;while(r!==0&&!is_WS_OR_EOL(r)&&!is_FLOW_INDICATOR(r)){r=e.input.charCodeAt(++e.position)}if(e.position===n){throwError(e,"name of an alias node must contain at least one character")}f=e.input.slice(n,e.position);if(!c.call(e.anchorMap,f)){throwError(e,'unidentified alias "'+f+'"')}e.result=e.anchorMap[f];skipSeparationSpace(e,true,-1);return true}function composeNode(e,n,f,r,l){var s,v,w,i=1,A=false,E=false,j,F,O,R,I,z;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;s=v=w=d===f||b===f;if(r){if(skipSeparationSpace(e,true,-1)){A=true;if(e.lineIndent>n){i=1}else if(e.lineIndent===n){i=0}else if(e.lineIndent<n){i=-1}}}if(i===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){A=true;w=s;if(e.lineIndent>n){i=1}else if(e.lineIndent===n){i=0}else if(e.lineIndent<n){i=-1}}else{w=false}}}if(w){w=A||l}if(i===1||d===f){if(p===f||g===f){I=n}else{I=n+1}z=e.position-e.lineStart;if(i===1){if(w&&(readBlockSequence(e,z)||readBlockMapping(e,z,I))||readFlowCollection(e,I)){E=true}else{if(v&&readBlockScalar(e,I)||readSingleQuotedScalar(e,I)||readDoubleQuotedScalar(e,I)){E=true}else if(readAlias(e)){E=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,I,p===f)){E=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(i===0){E=w&&readBlockSequence(e,z)}}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(j=0,F=e.implicitTypes.length;j<F;j+=1){R=e.implicitTypes[j];if(R.resolve(e.result)){e.result=R.construct(e.result);e.tag=R.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(c.call(e.typeMap[e.kind||"fallback"],e.tag)){R=e.typeMap[e.kind||"fallback"][e.tag]}else{R=null;O=e.typeMap.multi[e.kind||"fallback"];for(j=0,F=O.length;j<F;j+=1){if(e.tag.slice(0,O[j].tag.length)===O[j].tag){R=O[j];break}}}if(!R){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&R.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+R.kind+'", not "'+e.kind+'"')}if(!R.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=R.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||E}function readDocument(e){var n=e.position,f,r,l,s=false,v;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((v=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);v=e.input.charCodeAt(e.position);if(e.lineIndent>0||v!==37){break}s=true;v=e.input.charCodeAt(++e.position);f=e.position;while(v!==0&&!is_WS_OR_EOL(v)){v=e.input.charCodeAt(++e.position)}r=e.input.slice(f,e.position);l=[];if(r.length<1){throwError(e,"directive name must not be less than one character in length")}while(v!==0){while(is_WHITE_SPACE(v)){v=e.input.charCodeAt(++e.position)}if(v===35){do{v=e.input.charCodeAt(++e.position)}while(v!==0&&!is_EOL(v));break}if(is_EOL(v))break;f=e.position;while(v!==0&&!is_WS_OR_EOL(v)){v=e.input.charCodeAt(++e.position)}l.push(e.input.slice(f,e.position))}if(v!==0)readLineBreak(e);if(c.call(U,r)){U[r](e,r,l)}else{throwWarning(e,'unknown document directive "'+r+'"')}}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(s){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,d,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&j.test(e.input.slice(n,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,n){e=String(e);n=n||{};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 f=new State(e,n);var r=e.indexOf("\0");if(r!==-1){f.position=r;throwError(f,"null byte is not allowed in input")}f.input+="\0";while(f.input.charCodeAt(f.position)===32){f.lineIndent+=1;f.position+=1}while(f.position<f.length-1){readDocument(f)}return f.documents}function loadAll(e,n,f){if(n!==null&&typeof n==="object"&&typeof f==="undefined"){f=n;n=null}var r=loadDocuments(e,f);if(typeof n!=="function"){return r}for(var l=0,s=r.length;l<s;l+=1){n(r[l])}}function load(e,n){var f=loadDocuments(e,n);if(f.length===0){return undefined}else if(f.length===1){return f[0]}throw new l("expected a single document in the stream, but found more")}e.exports.loadAll=loadAll;e.exports.load=load},4721:(e,n,f)=>{"use strict";var r=f(5646);var l=f(9518);function compileList(e,n,f){var r=[];e[n].forEach(function(e){f.forEach(function(n,f){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){r.push(f)}});f.push(e)});return f.filter(function(e,n){return r.indexOf(n)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,f;function collectType(n){if(n.multi){e.multi[n.kind].push(n);e.multi["fallback"].push(n)}else{e[n.kind][n.tag]=e["fallback"][n.tag]=n}}for(n=0,f=arguments.length;n<f;n+=1){arguments[n].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){var n=[];var f=[];if(e instanceof l){f.push(e)}else if(Array.isArray(e)){f=f.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)n=n.concat(e.implicit);if(e.explicit)f=f.concat(e.explicit)}else{throw new r("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}n.forEach(function(e){if(!(e instanceof l)){throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new r("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 r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}});f.forEach(function(e){if(!(e instanceof l)){throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")}});var s=Object.create(Schema.prototype);s.implicit=(this.implicit||[]).concat(n);s.explicit=(this.explicit||[]).concat(f);s.compiledImplicit=compileList(s,"implicit",[]);s.compiledExplicit=compileList(s,"explicit",[]);s.compiledTypeMap=compileMap(s.compiledImplicit,s.compiledExplicit);return s};e.exports=Schema},3487:(e,n,f)=>{"use strict";e.exports=f(708)},6304:(e,n,f)=>{"use strict";e.exports=f(3487).extend({implicit:[f(9346),f(3801)],explicit:[f(1220),f(5277),f(6864),f(4299)]})},6654:(e,n,f)=>{"use strict";var r=f(4721);e.exports=new r({explicit:[f(1420),f(8196),f(557)]})},708:(e,n,f)=>{"use strict";e.exports=f(6654).extend({implicit:[f(6133),f(952),f(4392),f(2458)]})},5398:(e,n,f)=>{"use strict";var r=f(755);function getLine(e,n,f,r,l){var s="";var v="";var c=Math.floor(l/2)-1;if(r-n>c){s=" ... ";n=r-c+s.length}if(f-r>c){v=" ...";f=r+c-v.length}return{str:s+e.slice(n,f).replace(/\t/g,"→")+v,pos:r-n+s.length}}function padStart(e,n){return r.repeat(" ",n-e.length)+e}function makeSnippet(e,n){n=Object.create(n||null);if(!e.buffer)return null;if(!n.maxLength)n.maxLength=79;if(typeof n.indent!=="number")n.indent=1;if(typeof n.linesBefore!=="number")n.linesBefore=3;if(typeof n.linesAfter!=="number")n.linesAfter=2;var f=/\r?\n|\r|\0/g;var l=[0];var s=[];var v;var c=-1;while(v=f.exec(e.buffer)){s.push(v.index);l.push(v.index+v[0].length);if(e.position<=v.index&&c<0){c=l.length-2}}if(c<0)c=l.length-1;var p="",g,b;var d=Math.min(e.line+n.linesAfter,s.length).toString().length;var w=n.maxLength-(n.indent+d+3);for(g=1;g<=n.linesBefore;g++){if(c-g<0)break;b=getLine(e.buffer,l[c-g],s[c-g],e.position-(l[c]-l[c-g]),w);p=r.repeat(" ",n.indent)+padStart((e.line-g+1).toString(),d)+" | "+b.str+"\n"+p}b=getLine(e.buffer,l[c],s[c],e.position,w);p+=r.repeat(" ",n.indent)+padStart((e.line+1).toString(),d)+" | "+b.str+"\n";p+=r.repeat("-",n.indent+d+3+b.pos)+"^"+"\n";for(g=1;g<=n.linesAfter;g++){if(c+g>=s.length)break;b=getLine(e.buffer,l[c+g],s[c+g],e.position-(l[c]-l[c+g]),w);p+=r.repeat(" ",n.indent)+padStart((e.line+g+1).toString(),d)+" | "+b.str+"\n"}return p.replace(/\n$/,"")}e.exports=makeSnippet},9518:(e,n,f)=>{"use strict";var r=f(5646);var l=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var s=["scalar","sequence","mapping"];function compileStyleAliases(e){var n={};if(e!==null){Object.keys(e).forEach(function(f){e[f].forEach(function(e){n[String(e)]=f})})}return n}function Type(e,n){n=n||{};Object.keys(n).forEach(function(n){if(l.indexOf(n)===-1){throw new r('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}});this.tag=e;this.kind=n["kind"]||null;this.resolve=n["resolve"]||function(){return true};this.construct=n["construct"]||function(e){return e};this.instanceOf=n["instanceOf"]||null;this.predicate=n["predicate"]||null;this.represent=n["represent"]||null;this.representName=n["representName"]||null;this.defaultStyle=n["defaultStyle"]||null;this.multi=n["multi"]||false;this.styleAliases=compileStyleAliases(n["styleAliases"]||null);if(s.indexOf(this.kind)===-1){throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},1220:(e,n,f)=>{"use strict";var r=f(9518);var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var n,f,r=0,s=e.length,v=l;for(f=0;f<s;f++){n=v.indexOf(e.charAt(f));if(n>64)continue;if(n<0)return false;r+=6}return r%8===0}function constructYamlBinary(e){var n,f,r=e.replace(/[\r\n=]/g,""),s=r.length,v=l,c=0,p=[];for(n=0;n<s;n++){if(n%4===0&&n){p.push(c>>16&255);p.push(c>>8&255);p.push(c&255)}c=c<<6|v.indexOf(r.charAt(n))}f=s%4*6;if(f===0){p.push(c>>16&255);p.push(c>>8&255);p.push(c&255)}else if(f===18){p.push(c>>10&255);p.push(c>>2&255)}else if(f===12){p.push(c>>4&255)}return new Uint8Array(p)}function representYamlBinary(e){var n="",f=0,r,s,v=e.length,c=l;for(r=0;r<v;r++){if(r%3===0&&r){n+=c[f>>18&63];n+=c[f>>12&63];n+=c[f>>6&63];n+=c[f&63]}f=(f<<8)+e[r]}s=v%3;if(s===0){n+=c[f>>18&63];n+=c[f>>12&63];n+=c[f>>6&63];n+=c[f&63]}else if(s===2){n+=c[f>>10&63];n+=c[f>>4&63];n+=c[f<<2&63];n+=c[64]}else if(s===1){n+=c[f>>2&63];n+=c[f<<4&63];n+=c[64];n+=c[64]}return n}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},952:(e,n,f)=>{"use strict";var r=f(9518);function resolveYamlBoolean(e){if(e===null)return false;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===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 r("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"})},2458:(e,n,f)=>{"use strict";var r=f(755);var l=f(9518);var s=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(!s.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var n,f;n=e.replace(/_/g,"").toLowerCase();f=n[0]==="-"?-1:1;if("+-".indexOf(n[0])>=0){n=n.slice(1)}if(n===".inf"){return f===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(n===".nan"){return NaN}return f*parseFloat(n,10)}var v=/^[-+]?[0-9]+e/;function representYamlFloat(e,n){var f;if(isNaN(e)){switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(r.isNegativeZero(e)){return"-0.0"}f=e.toString(10);return v.test(f)?f.replace("e",".e"):f}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||r.isNegativeZero(e))}e.exports=new l("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},4392:(e,n,f)=>{"use strict";var r=f(755);var l=f(9518);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 n=e.length,f=0,r=false,l;if(!n)return false;l=e[f];if(l==="-"||l==="+"){l=e[++f]}if(l==="0"){if(f+1===n)return true;l=e[++f];if(l==="b"){f++;for(;f<n;f++){l=e[f];if(l==="_")continue;if(l!=="0"&&l!=="1")return false;r=true}return r&&l!=="_"}if(l==="x"){f++;for(;f<n;f++){l=e[f];if(l==="_")continue;if(!isHexCode(e.charCodeAt(f)))return false;r=true}return r&&l!=="_"}if(l==="o"){f++;for(;f<n;f++){l=e[f];if(l==="_")continue;if(!isOctCode(e.charCodeAt(f)))return false;r=true}return r&&l!=="_"}}if(l==="_")return false;for(;f<n;f++){l=e[f];if(l==="_")continue;if(!isDecCode(e.charCodeAt(f))){return false}r=true}if(!r||l==="_")return false;return true}function constructYamlInteger(e){var n=e,f=1,r;if(n.indexOf("_")!==-1){n=n.replace(/_/g,"")}r=n[0];if(r==="-"||r==="+"){if(r==="-")f=-1;n=n.slice(1);r=n[0]}if(n==="0")return 0;if(r==="0"){if(n[1]==="b")return f*parseInt(n.slice(2),2);if(n[1]==="x")return f*parseInt(n.slice(2),16);if(n[1]==="o")return f*parseInt(n.slice(2),8)}return f*parseInt(n,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!r.isNegativeZero(e))}e.exports=new l("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"]}})},557:(e,n,f)=>{"use strict";var r=f(9518);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},3801:(e,n,f)=>{"use strict";var r=f(9518);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},6133:(e,n,f)=>{"use strict";var r=f(9518);function resolveYamlNull(e){if(e===null)return true;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new r("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"})},5277:(e,n,f)=>{"use strict";var r=f(9518);var l=Object.prototype.hasOwnProperty;var s=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var n=[],f,r,v,c,p,g=e;for(f=0,r=g.length;f<r;f+=1){v=g[f];p=false;if(s.call(v)!=="[object Object]")return false;for(c in v){if(l.call(v,c)){if(!p)p=true;else return false}}if(!p)return false;if(n.indexOf(c)===-1)n.push(c);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},6864:(e,n,f)=>{"use strict";var r=f(9518);var l=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var n,f,r,s,v,c=e;v=new Array(c.length);for(n=0,f=c.length;n<f;n+=1){r=c[n];if(l.call(r)!=="[object Object]")return false;s=Object.keys(r);if(s.length!==1)return false;v[n]=[s[0],r[s[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var n,f,r,l,s,v=e;s=new Array(v.length);for(n=0,f=v.length;n<f;n+=1){r=v[n];l=Object.keys(r);s[n]=[l[0],r[l[0]]]}return s}e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},8196:(e,n,f)=>{"use strict";var r=f(9518);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},4299:(e,n,f)=>{"use strict";var r=f(9518);var l=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var n,f=e;for(n in f){if(l.call(f,n)){if(f[n]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},1420:(e,n,f)=>{"use strict";var r=f(9518);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9346:(e,n,f)=>{"use strict";var r=f(9518);var l=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var s=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(l.exec(e)!==null)return true;if(s.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var n,f,r,v,c,p,g,b=0,d=null,w,i,A;n=l.exec(e);if(n===null)n=s.exec(e);if(n===null)throw new Error("Date resolve error");f=+n[1];r=+n[2]-1;v=+n[3];if(!n[4]){return new Date(Date.UTC(f,r,v))}c=+n[4];p=+n[5];g=+n[6];if(n[7]){b=n[7].slice(0,3);while(b.length<3){b+="0"}b=+b}if(n[9]){w=+n[10];i=+(n[11]||0);d=(w*60+i)*6e4;if(n[9]==="-")d=-d}A=new Date(Date.UTC(f,r,v,c,p,g,b));if(d)A.setTime(A.getTime()-d);return A}function representYamlTimestamp(e){return e.toISOString()}e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},6997:e=>{"use strict";var n=e.exports=function(e,n,f){if(typeof n=="function"){f=n;n={}}f=n.cb||f;var r=typeof f=="function"?f:f.pre||function(){};var l=f.post||function(){};_traverse(n,r,l,e,"",e)};n.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};n.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};n.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};n.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,f,r,l,s,v,c,p,g,b){if(l&&typeof l=="object"&&!Array.isArray(l)){f(l,s,v,c,p,g,b);for(var d in l){var w=l[d];if(Array.isArray(w)){if(d in n.arrayKeywords){for(var i=0;i<w.length;i++)_traverse(e,f,r,w[i],s+"/"+d+"/"+i,v,s,d,l,i)}}else if(d in n.propsKeywords){if(w&&typeof w=="object"){for(var A in w)_traverse(e,f,r,w[A],s+"/"+d+"/"+escapeJsonPtr(A),v,s,d,l,A)}}else if(d in n.keywords||e.allKeys&&!(d in n.skipKeywords)){_traverse(e,f,r,w,s+"/"+d,v,s,d,l)}}r(l,s,v,c,p,g,b)}}function escapeJsonPtr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}},2192:(e,n,f)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var r=_interopDefault(f(2413));var l=_interopDefault(f(8605));var s=_interopDefault(f(8835));var v=_interopDefault(f(7211));var c=_interopDefault(f(8761));const p=r.Readable;const g=Symbol("buffer");const b=Symbol("type");class Blob{constructor(){this[b]="";const e=arguments[0];const n=arguments[1];const f=[];let r=0;if(e){const n=e;const l=Number(n.length);for(let e=0;e<l;e++){const l=n[e];let s;if(l instanceof Buffer){s=l}else if(ArrayBuffer.isView(l)){s=Buffer.from(l.buffer,l.byteOffset,l.byteLength)}else if(l instanceof ArrayBuffer){s=Buffer.from(l)}else if(l instanceof Blob){s=l[g]}else{s=Buffer.from(typeof l==="string"?l:String(l))}r+=s.length;f.push(s)}}this[g]=Buffer.concat(f);let l=n&&n.type!==undefined&&String(n.type).toLowerCase();if(l&&!/[^\u0020-\u007E]/.test(l)){this[b]=l}}get size(){return this[g].length}get type(){return this[b]}text(){return Promise.resolve(this[g].toString())}arrayBuffer(){const e=this[g];const n=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(n)}stream(){const e=new p;e._read=function(){};e.push(this[g]);e.push(null);return e}toString(){return"[object Blob]"}slice(){const e=this.size;const n=arguments[0];const f=arguments[1];let r,l;if(n===undefined){r=0}else if(n<0){r=Math.max(e+n,0)}else{r=Math.min(n,e)}if(f===undefined){l=e}else if(f<0){l=Math.max(e+f,0)}else{l=Math.min(f,e)}const s=Math.max(l-r,0);const v=this[g];const c=v.slice(r,r+s);const p=new Blob([],{type:arguments[2]});p[g]=c;return p}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(e,n,f){Error.call(this,e);this.message=e;this.type=n;if(f){this.code=this.errno=f.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let d;try{d=f(5632).convert}catch(e){}const w=Symbol("Body internals");const i=r.PassThrough;function Body(e){var n=this;var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},l=f.size;let s=l===undefined?0:l;var v=f.timeout;let c=v===undefined?0:v;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof r) ;else{e=Buffer.from(String(e))}this[w]={body:e,disturbed:false,error:null};this.size=s;this.timeout=c;if(e instanceof r){e.on("error",function(e){const f=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${n.url}: ${e.message}`,"system",e);n[w].error=f})}}Body.prototype={get body(){return this[w].body},get bodyUsed(){return this[w].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(n){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[g]:n})})},json(){var e=this;return consumeBody.call(this).then(function(n){try{return JSON.parse(n.toString())}catch(n){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${n.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(n){return convertBody(n,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const n of Object.getOwnPropertyNames(Body.prototype)){if(!(n in e)){const f=Object.getOwnPropertyDescriptor(Body.prototype,n);Object.defineProperty(e,n,f)}}};function consumeBody(){var e=this;if(this[w].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[w].disturbed=true;if(this[w].error){return Body.Promise.reject(this[w].error)}let n=this.body;if(n===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(n)){n=n.stream()}if(Buffer.isBuffer(n)){return Body.Promise.resolve(n)}if(!(n instanceof r)){return Body.Promise.resolve(Buffer.alloc(0))}let f=[];let l=0;let s=false;return new Body.Promise(function(r,v){let c;if(e.timeout){c=setTimeout(function(){s=true;v(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}n.on("error",function(n){if(n.name==="AbortError"){s=true;v(n)}else{v(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${n.message}`,"system",n))}});n.on("data",function(n){if(s||n===null){return}if(e.size&&l+n.length>e.size){s=true;v(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}l+=n.length;f.push(n)});n.on("end",function(){if(s){return}clearTimeout(c);try{r(Buffer.concat(f,l))}catch(n){v(new FetchError(`Could not create Buffer from response body for ${e.url}: ${n.message}`,"system",n))}})})}function convertBody(e,n){if(typeof d!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const f=n.get("content-type");let r="utf-8";let l,s;if(f){l=/charset=([^;]*)/i.exec(f)}s=e.slice(0,1024).toString();if(!l&&s){l=/<meta.+?charset=(['"])(.+?)\1/i.exec(s)}if(!l&&s){l=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(s);if(!l){l=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(s);if(l){l.pop()}}if(l){l=/charset=(.*)/i.exec(l.pop())}}if(!l&&s){l=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(s)}if(l){r=l.pop();if(r==="gb2312"||r==="gbk"){r="gb18030"}}return d(e,"UTF-8",r).toString()}function isURLSearchParams(e){if(typeof e!=="object"||typeof e.append!=="function"||typeof e.delete!=="function"||typeof e.get!=="function"||typeof e.getAll!=="function"||typeof e.has!=="function"||typeof e.set!=="function"){return false}return e.constructor.name==="URLSearchParams"||Object.prototype.toString.call(e)==="[object URLSearchParams]"||typeof e.sort==="function"}function isBlob(e){return typeof e==="object"&&typeof e.arrayBuffer==="function"&&typeof e.type==="string"&&typeof e.stream==="function"&&typeof e.constructor==="function"&&typeof e.constructor.name==="string"&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function clone(e){let n,f;let l=e.body;if(e.bodyUsed){throw new Error("cannot clone body after it is used")}if(l instanceof r&&typeof l.getBoundary!=="function"){n=new i;f=new i;l.pipe(n);l.pipe(f);e[w].body=n;l=f}return l}function extractContentType(e){if(e===null){return null}else if(typeof e==="string"){return"text/plain;charset=UTF-8"}else if(isURLSearchParams(e)){return"application/x-www-form-urlencoded;charset=UTF-8"}else if(isBlob(e)){return e.type||null}else if(Buffer.isBuffer(e)){return null}else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){return null}else if(ArrayBuffer.isView(e)){return null}else if(typeof e.getBoundary==="function"){return`multipart/form-data;boundary=${e.getBoundary()}`}else if(e instanceof r){return null}else{return"text/plain;charset=UTF-8"}}function getTotalBytes(e){const n=e.body;if(n===null){return 0}else if(isBlob(n)){return n.size}else if(Buffer.isBuffer(n)){return n.length}else if(n&&typeof n.getLengthSync==="function"){if(n._lengthRetrievers&&n._lengthRetrievers.length==0||n.hasKnownLength&&n.hasKnownLength()){return n.getLengthSync()}return null}else{return null}}function writeToStream(e,n){const f=n.body;if(f===null){e.end()}else if(isBlob(f)){f.stream().pipe(e)}else if(Buffer.isBuffer(f)){e.write(f);e.end()}else{f.pipe(e)}}Body.Promise=global.Promise;const A=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;const E=/[^\t\x20-\x7e\x80-\xff]/;function validateName(e){e=`${e}`;if(A.test(e)||e===""){throw new TypeError(`${e} is not a legal HTTP header name`)}}function validateValue(e){e=`${e}`;if(E.test(e)){throw new TypeError(`${e} is not a legal HTTP header value`)}}function find(e,n){n=n.toLowerCase();for(const f in e){if(f.toLowerCase()===n){return f}}return undefined}const j=Symbol("map");class Headers{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:undefined;this[j]=Object.create(null);if(e instanceof Headers){const n=e.raw();const f=Object.keys(n);for(const e of f){for(const f of n[e]){this.append(e,f)}}return}if(e==null) ;else if(typeof e==="object"){const n=e[Symbol.iterator];if(n!=null){if(typeof n!=="function"){throw new TypeError("Header pairs must be iterable")}const f=[];for(const n of e){if(typeof n!=="object"||typeof n[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}f.push(Array.from(n))}for(const e of f){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const n of Object.keys(e)){const f=e[n];this.append(n,f)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const n=find(this[j],e);if(n===undefined){return null}return this[j][n].join(", ")}forEach(e){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let f=getHeaders(this);let r=0;while(r<f.length){var l=f[r];const s=l[0],v=l[1];e.call(n,v,s,this);f=getHeaders(this);r++}}set(e,n){e=`${e}`;n=`${n}`;validateName(e);validateValue(n);const f=find(this[j],e);this[j][f!==undefined?f:e]=[n]}append(e,n){e=`${e}`;n=`${n}`;validateName(e);validateValue(n);const f=find(this[j],e);if(f!==undefined){this[j][f].push(n)}else{this[j][e]=[n]}}has(e){e=`${e}`;validateName(e);return find(this[j],e)!==undefined}delete(e){e=`${e}`;validateName(e);const n=find(this[j],e);if(n!==undefined){delete this[j][n]}}raw(){return this[j]}keys(){return createHeadersIterator(this,"key")}values(){return createHeadersIterator(this,"value")}[Symbol.iterator](){return createHeadersIterator(this,"key+value")}}Headers.prototype.entries=Headers.prototype[Symbol.iterator];Object.defineProperty(Headers.prototype,Symbol.toStringTag,{value:"Headers",writable:false,enumerable:false,configurable:true});Object.defineProperties(Headers.prototype,{get:{enumerable:true},forEach:{enumerable:true},set:{enumerable:true},append:{enumerable:true},has:{enumerable:true},delete:{enumerable:true},keys:{enumerable:true},values:{enumerable:true},entries:{enumerable:true}});function getHeaders(e){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"key+value";const f=Object.keys(e[j]).sort();return f.map(n==="key"?function(e){return e.toLowerCase()}:n==="value"?function(n){return e[j][n].join(", ")}:function(n){return[n.toLowerCase(),e[j][n].join(", ")]})}const F=Symbol("internal");function createHeadersIterator(e,n){const f=Object.create(O);f[F]={target:e,kind:n,index:0};return f}const O=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==O){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[F];const n=e.target,f=e.kind,r=e.index;const l=getHeaders(n,f);const s=l.length;if(r>=s){return{value:undefined,done:true}}this[F].index=r+1;return{value:l[r],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(O,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const n=Object.assign({__proto__:null},e[j]);const f=find(e[j],"Host");if(f!==undefined){n[f]=n[f][0]}return n}function createHeadersLenient(e){const n=new Headers;for(const f of Object.keys(e)){if(A.test(f)){continue}if(Array.isArray(e[f])){for(const r of e[f]){if(E.test(r)){continue}if(n[j][f]===undefined){n[j][f]=[r]}else{n[j][f].push(r)}}}else if(!E.test(e[f])){n[j][f]=[e[f]]}}return n}const R=Symbol("Response internals");const I=l.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,n);const f=n.status||200;const r=new Headers(n.headers);if(e!=null&&!r.has("Content-Type")){const n=extractContentType(e);if(n){r.append("Content-Type",n)}}this[R]={url:n.url,status:f,statusText:n.statusText||I[f],headers:r,counter:n.counter}}get url(){return this[R].url||""}get status(){return this[R].status}get ok(){return this[R].status>=200&&this[R].status<300}get redirected(){return this[R].counter>0}get statusText(){return this[R].statusText}get headers(){return this[R].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const z=Symbol("Request internals");const a=s.parse;const U=s.format;const C="destroy"in r.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[z]==="object"}function isAbortSignal(e){const n=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(n&&n.constructor.name==="AbortSignal")}class Request{constructor(e){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let f;if(!isRequest(e)){if(e&&e.href){f=a(e.href)}else{f=a(`${e}`)}e={}}else{f=a(e.url)}let r=n.method||e.method||"GET";r=r.toUpperCase();if((n.body!=null||isRequest(e)&&e.body!==null)&&(r==="GET"||r==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let l=n.body!=null?n.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,l,{timeout:n.timeout||e.timeout||0,size:n.size||e.size||0});const s=new Headers(n.headers||e.headers||{});if(l!=null&&!s.has("Content-Type")){const e=extractContentType(l);if(e){s.append("Content-Type",e)}}let v=isRequest(e)?e.signal:null;if("signal"in n)v=n.signal;if(v!=null&&!isAbortSignal(v)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[z]={method:r,redirect:n.redirect||e.redirect||"follow",headers:s,parsedURL:f,signal:v};this.follow=n.follow!==undefined?n.follow:e.follow!==undefined?e.follow:20;this.compress=n.compress!==undefined?n.compress:e.compress!==undefined?e.compress:true;this.counter=n.counter||e.counter||0;this.agent=n.agent||e.agent}get method(){return this[z].method}get url(){return U(this[z].parsedURL)}get headers(){return this[z].headers}get redirect(){return this[z].redirect}get signal(){return this[z].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const n=e[z].parsedURL;const f=new Headers(e[z].headers);if(!f.has("Accept")){f.set("Accept","*/*")}if(!n.protocol||!n.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(n.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof r.Readable&&!C){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let l=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){l="0"}if(e.body!=null){const n=getTotalBytes(e);if(typeof n==="number"){l=String(n)}}if(l){f.set("Content-Length",l)}if(!f.has("User-Agent")){f.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!f.has("Accept-Encoding")){f.set("Accept-Encoding","gzip,deflate")}let s=e.agent;if(typeof s==="function"){s=s(n)}if(!f.has("Connection")&&!s){f.set("Connection","close")}return Object.assign({},n,{method:e.method,headers:exportNodeCompatibleHeaders(f),agent:s})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const q=r.PassThrough;const T=s.resolve;function fetch(e,n){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(f,s){const p=new Request(e,n);const g=getNodeRequestOptions(p);const b=(g.protocol==="https:"?v:l).request;const d=p.signal;let w=null;const i=function abort(){let e=new AbortError("The user aborted a request.");s(e);if(p.body&&p.body instanceof r.Readable){p.body.destroy(e)}if(!w||!w.body)return;w.body.emit("error",e)};if(d&&d.aborted){i();return}const A=function abortAndFinalize(){i();finalize()};const E=b(g);let j;if(d){d.addEventListener("abort",A)}function finalize(){E.abort();if(d)d.removeEventListener("abort",A);clearTimeout(j)}if(p.timeout){E.once("socket",function(e){j=setTimeout(function(){s(new FetchError(`network timeout at: ${p.url}`,"request-timeout"));finalize()},p.timeout)})}E.on("error",function(e){s(new FetchError(`request to ${p.url} failed, reason: ${e.message}`,"system",e));finalize()});E.on("response",function(e){clearTimeout(j);const n=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const r=n.get("Location");const l=r===null?null:T(p.url,r);switch(p.redirect){case"error":s(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${p.url}`,"no-redirect"));finalize();return;case"manual":if(l!==null){try{n.set("Location",l)}catch(e){s(e)}}break;case"follow":if(l===null){break}if(p.counter>=p.follow){s(new FetchError(`maximum redirect reached at: ${p.url}`,"max-redirect"));finalize();return}const r={headers:new Headers(p.headers),follow:p.follow,counter:p.counter+1,agent:p.agent,compress:p.compress,method:p.method,body:p.body,signal:p.signal,timeout:p.timeout,size:p.size};if(e.statusCode!==303&&p.body&&getTotalBytes(p)===null){s(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&p.method==="POST"){r.method="GET";r.body=undefined;r.headers.delete("content-length")}f(fetch(new Request(l,r)));finalize();return}}e.once("end",function(){if(d)d.removeEventListener("abort",A)});let r=e.pipe(new q);const l={url:p.url,status:e.statusCode,statusText:e.statusMessage,headers:n,size:p.size,timeout:p.timeout,counter:p.counter};const v=n.get("Content-Encoding");if(!p.compress||p.method==="HEAD"||v===null||e.statusCode===204||e.statusCode===304){w=new Response(r,l);f(w);return}const g={flush:c.Z_SYNC_FLUSH,finishFlush:c.Z_SYNC_FLUSH};if(v=="gzip"||v=="x-gzip"){r=r.pipe(c.createGunzip(g));w=new Response(r,l);f(w);return}if(v=="deflate"||v=="x-deflate"){const n=e.pipe(new q);n.once("data",function(e){if((e[0]&15)===8){r=r.pipe(c.createInflate())}else{r=r.pipe(c.createInflateRaw())}w=new Response(r,l);f(w)});return}if(v=="br"&&typeof c.createBrotliDecompress==="function"){r=r.pipe(c.createBrotliDecompress());w=new Response(r,l);f(w);return}w=new Response(r,l);f(w)});writeToStream(E,p)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=n=fetch;Object.defineProperty(n,"__esModule",{value:true});n.default=n;n.Headers=Headers;n.Request=Request;n.Response=Response;n.FetchError=FetchError},4393: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,n){if(!e||!e.length||e.charAt(0)==="#"){return null}var f=e.split(":");return{username:f[0],password:f[1],uid:f[2],gid:f[3],gecos:f[4],homedir:f[5],shell:f[6]}}},4430:function(e,n){(function(e,f){true?f(n):0})(this,function(e){"use strict";function merge(){for(var e=arguments.length,n=Array(e),f=0;f<e;f++){n[f]=arguments[f]}if(n.length>1){n[0]=n[0].slice(0,-1);var r=n.length-1;for(var l=1;l<r;++l){n[l]=n[l].slice(1,-1)}n[r]=n[r].slice(1);return n.join("")}else{return n[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,n){var f=e;if(n){for(var r in n){f[r]=n[r]}}return f}function buildExps(e){var n="[A-Za-z]",f="[\\x0D]",r="[0-9]",l="[\\x22]",s=merge(r,"[A-Fa-f]"),v="[\\x0A]",c="[\\x20]",p=subexp(subexp("%[EFef]"+s+"%"+s+s+"%"+s+s)+"|"+subexp("%[89A-Fa-f]"+s+"%"+s+s)+"|"+subexp("%"+s+s)),g="[\\:\\/\\?\\#\\[\\]\\@]",b="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",d=merge(g,b),w=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",i=e?"[\\uE000-\\uF8FF]":"[]",A=merge(n,r,"[\\-\\.\\_\\~]",w),E=subexp(n+merge(n,r,"[\\+\\-\\.]")+"*"),j=subexp(subexp(p+"|"+merge(A,b,"[\\:]"))+"*"),F=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+r)+"|"+subexp("1"+r+r)+"|"+subexp("[1-9]"+r)+"|"+r),O=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+r)+"|"+subexp("1"+r+r)+"|"+subexp("0?[1-9]"+r)+"|0?0?"+r),R=subexp(O+"\\."+O+"\\."+O+"\\."+O),I=subexp(s+"{1,4}"),z=subexp(subexp(I+"\\:"+I)+"|"+R),a=subexp(subexp(I+"\\:")+"{6}"+z),U=subexp("\\:\\:"+subexp(I+"\\:")+"{5}"+z),C=subexp(subexp(I)+"?\\:\\:"+subexp(I+"\\:")+"{4}"+z),q=subexp(subexp(subexp(I+"\\:")+"{0,1}"+I)+"?\\:\\:"+subexp(I+"\\:")+"{3}"+z),T=subexp(subexp(subexp(I+"\\:")+"{0,2}"+I)+"?\\:\\:"+subexp(I+"\\:")+"{2}"+z),Q=subexp(subexp(subexp(I+"\\:")+"{0,3}"+I)+"?\\:\\:"+I+"\\:"+z),B=subexp(subexp(subexp(I+"\\:")+"{0,4}"+I)+"?\\:\\:"+z),Y=subexp(subexp(subexp(I+"\\:")+"{0,5}"+I)+"?\\:\\:"+I),x=subexp(subexp(subexp(I+"\\:")+"{0,6}"+I)+"?\\:\\:"),N=subexp([a,U,C,q,T,Q,B,Y,x].join("|")),M=subexp(subexp(A+"|"+p)+"+"),L=subexp(N+"\\%25"+M),W=subexp(N+subexp("\\%25|\\%(?!"+s+"{2})")+M),H=subexp("[vV]"+s+"+\\."+merge(A,b,"[\\:]")+"+"),J=subexp("\\["+subexp(W+"|"+N+"|"+H)+"\\]"),h=subexp(subexp(p+"|"+merge(A,b))+"*"),G=subexp(J+"|"+R+"(?!"+h+")"+"|"+h),X=subexp(r+"*"),Z=subexp(subexp(j+"@")+"?"+G+subexp("\\:"+X)+"?"),D=subexp(p+"|"+merge(A,b,"[\\:\\@]")),V=subexp(D+"*"),K=subexp(D+"+"),y=subexp(subexp(p+"|"+merge(A,b,"[\\@]"))+"+"),k=subexp(subexp("\\/"+V)+"*"),m=subexp("\\/"+subexp(K+k)+"?"),S=subexp(y+k),P=subexp(K+k),o="(?!"+D+")",_=subexp(k+"|"+m+"|"+S+"|"+P+"|"+o),u=subexp(subexp(D+"|"+merge("[\\/\\?]",i))+"*"),$=subexp(subexp(D+"|[\\/\\?]")+"*"),t=subexp(subexp("\\/\\/"+Z+k)+"|"+m+"|"+P+"|"+o),ee=subexp(E+"\\:"+t+subexp("\\?"+u)+"?"+subexp("\\#"+$)+"?"),ne=subexp(subexp("\\/\\/"+Z+k)+"|"+m+"|"+S+"|"+o),fe=subexp(ne+subexp("\\?"+u)+"?"+subexp("\\#"+$)+"?"),re=subexp(ee+"|"+fe),le=subexp(E+"\\:"+t+subexp("\\?"+u)+"?"),se="^("+E+")\\:"+subexp(subexp("\\/\\/("+subexp("("+j+")@")+"?("+G+")"+subexp("\\:("+X+")")+"?)")+"?("+k+"|"+m+"|"+P+"|"+o+")")+subexp("\\?("+u+")")+"?"+subexp("\\#("+$+")")+"?$",ve="^(){0}"+subexp(subexp("\\/\\/("+subexp("("+j+")@")+"?("+G+")"+subexp("\\:("+X+")")+"?)")+"?("+k+"|"+m+"|"+S+"|"+o+")")+subexp("\\?("+u+")")+"?"+subexp("\\#("+$+")")+"?$",ce="^("+E+")\\:"+subexp(subexp("\\/\\/("+subexp("("+j+")@")+"?("+G+")"+subexp("\\:("+X+")")+"?)")+"?("+k+"|"+m+"|"+P+"|"+o+")")+subexp("\\?("+u+")")+"?$",pe="^"+subexp("\\#("+$+")")+"?$",ge="^"+subexp("("+j+")@")+"?("+G+")"+subexp("\\:("+X+")")+"?$";return{NOT_SCHEME:new RegExp(merge("[^]",n,r,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",A,b),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",A,b),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",A,b),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",A,b),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",A,b,"[\\:\\@\\/\\?]",i),"g"),NOT_FRAGMENT:new RegExp(merge("[^\\%]",A,b,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(merge("[^]",A,b),"g"),UNRESERVED:new RegExp(A,"g"),OTHER_CHARS:new RegExp(merge("[^\\%]",A,d),"g"),PCT_ENCODED:new RegExp(p,"g"),IPV4ADDRESS:new RegExp("^("+R+")$"),IPV6ADDRESS:new RegExp("^\\[?("+N+")"+subexp(subexp("\\%25|\\%(?!"+s+"{2})")+"("+M+")")+"?\\]?$")}}var n=buildExps(false);var f=buildExps(true);var r=function(){function sliceIterator(e,n){var f=[];var r=true;var l=false;var s=undefined;try{for(var v=e[Symbol.iterator](),c;!(r=(c=v.next()).done);r=true){f.push(c.value);if(n&&f.length===n)break}}catch(e){l=true;s=e}finally{try{if(!r&&v["return"])v["return"]()}finally{if(l)throw s}}return f}return function(e,n){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,n)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var l=function(e){if(Array.isArray(e)){for(var n=0,f=Array(e.length);n<e.length;n++)f[n]=e[n];return f}else{return Array.from(e)}};var s=2147483647;var v=36;var c=1;var p=26;var g=38;var b=700;var d=72;var w=128;var i="-";var A=/^xn--/;var E=/[^\0-\x7E]/;var j=/[\x2E\u3002\uFF0E\uFF61]/g;var F={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var O=v-c;var R=Math.floor;var I=String.fromCharCode;function error$1(e){throw new RangeError(F[e])}function map(e,n){var f=[];var r=e.length;while(r--){f[r]=n(e[r])}return f}function mapDomain(e,n){var f=e.split("@");var r="";if(f.length>1){r=f[0]+"@";e=f[1]}e=e.replace(j,".");var l=e.split(".");var s=map(l,n).join(".");return r+s}function ucs2decode(e){var n=[];var f=0;var r=e.length;while(f<r){var l=e.charCodeAt(f++);if(l>=55296&&l<=56319&&f<r){var s=e.charCodeAt(f++);if((s&64512)==56320){n.push(((l&1023)<<10)+(s&1023)+65536)}else{n.push(l);f--}}else{n.push(l)}}return n}var z=function ucs2encode(e){return String.fromCodePoint.apply(String,l(e))};var a=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 v};var U=function digitToBasic(e,n){return e+22+75*(e<26)-((n!=0)<<5)};var C=function adapt(e,n,f){var r=0;e=f?R(e/b):e>>1;e+=R(e/n);for(;e>O*p>>1;r+=v){e=R(e/O)}return R(r+(O+1)*e/(e+g))};var q=function decode(e){var n=[];var f=e.length;var r=0;var l=w;var g=d;var b=e.lastIndexOf(i);if(b<0){b=0}for(var A=0;A<b;++A){if(e.charCodeAt(A)>=128){error$1("not-basic")}n.push(e.charCodeAt(A))}for(var E=b>0?b+1:0;E<f;){var j=r;for(var F=1,O=v;;O+=v){if(E>=f){error$1("invalid-input")}var I=a(e.charCodeAt(E++));if(I>=v||I>R((s-r)/F)){error$1("overflow")}r+=I*F;var z=O<=g?c:O>=g+p?p:O-g;if(I<z){break}var U=v-z;if(F>R(s/U)){error$1("overflow")}F*=U}var q=n.length+1;g=C(r-j,q,j==0);if(R(r/q)>s-l){error$1("overflow")}l+=R(r/q);r%=q;n.splice(r++,0,l)}return String.fromCodePoint.apply(String,n)};var T=function encode(e){var n=[];e=ucs2decode(e);var f=e.length;var r=w;var l=0;var g=d;var b=true;var A=false;var E=undefined;try{for(var j=e[Symbol.iterator](),F;!(b=(F=j.next()).done);b=true){var O=F.value;if(O<128){n.push(I(O))}}}catch(e){A=true;E=e}finally{try{if(!b&&j.return){j.return()}}finally{if(A){throw E}}}var z=n.length;var a=z;if(z){n.push(i)}while(a<f){var q=s;var T=true;var Q=false;var B=undefined;try{for(var Y=e[Symbol.iterator](),x;!(T=(x=Y.next()).done);T=true){var N=x.value;if(N>=r&&N<q){q=N}}}catch(e){Q=true;B=e}finally{try{if(!T&&Y.return){Y.return()}}finally{if(Q){throw B}}}var M=a+1;if(q-r>R((s-l)/M)){error$1("overflow")}l+=(q-r)*M;r=q;var L=true;var W=false;var H=undefined;try{for(var J=e[Symbol.iterator](),h;!(L=(h=J.next()).done);L=true){var G=h.value;if(G<r&&++l>s){error$1("overflow")}if(G==r){var X=l;for(var Z=v;;Z+=v){var D=Z<=g?c:Z>=g+p?p:Z-g;if(X<D){break}var V=X-D;var K=v-D;n.push(I(U(D+V%K,0)));X=R(V/K)}n.push(I(U(X,0)));g=C(l,M,a==z);l=0;++a}}}catch(e){W=true;H=e}finally{try{if(!L&&J.return){J.return()}}finally{if(W){throw H}}}++l;++r}return n.join("")};var Q=function toUnicode(e){return mapDomain(e,function(e){return A.test(e)?q(e.slice(4).toLowerCase()):e})};var B=function toASCII(e){return mapDomain(e,function(e){return E.test(e)?"xn--"+T(e):e})};var Y={version:"2.1.0",ucs2:{decode:ucs2decode,encode:z},decode:q,encode:T,toASCII:B,toUnicode:Q};var x={};function pctEncChar(e){var n=e.charCodeAt(0);var f=void 0;if(n<16)f="%0"+n.toString(16).toUpperCase();else if(n<128)f="%"+n.toString(16).toUpperCase();else if(n<2048)f="%"+(n>>6|192).toString(16).toUpperCase()+"%"+(n&63|128).toString(16).toUpperCase();else f="%"+(n>>12|224).toString(16).toUpperCase()+"%"+(n>>6&63|128).toString(16).toUpperCase()+"%"+(n&63|128).toString(16).toUpperCase();return f}function pctDecChars(e){var n="";var f=0;var r=e.length;while(f<r){var l=parseInt(e.substr(f+1,2),16);if(l<128){n+=String.fromCharCode(l);f+=3}else if(l>=194&&l<224){if(r-f>=6){var s=parseInt(e.substr(f+4,2),16);n+=String.fromCharCode((l&31)<<6|s&63)}else{n+=e.substr(f,6)}f+=6}else if(l>=224){if(r-f>=9){var v=parseInt(e.substr(f+4,2),16);var c=parseInt(e.substr(f+7,2),16);n+=String.fromCharCode((l&15)<<12|(v&63)<<6|c&63)}else{n+=e.substr(f,9)}f+=9}else{n+=e.substr(f,3);f+=3}}return n}function _normalizeComponentEncoding(e,n){function decodeUnreserved(e){var f=pctDecChars(e);return!f.match(n.UNRESERVED)?e:f}if(e.scheme)e.scheme=String(e.scheme).replace(n.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(n.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(n.PCT_ENCODED,decodeUnreserved).replace(n.NOT_USERINFO,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(n.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(n.NOT_HOST,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(n.PCT_ENCODED,decodeUnreserved).replace(e.scheme?n.NOT_PATH:n.NOT_PATH_NOSCHEME,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(n.PCT_ENCODED,decodeUnreserved).replace(n.NOT_QUERY,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(n.PCT_ENCODED,decodeUnreserved).replace(n.NOT_FRAGMENT,pctEncChar).replace(n.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,n){var f=e.match(n.IPV4ADDRESS)||[];var l=r(f,2),s=l[1];if(s){return s.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,n){var f=e.match(n.IPV6ADDRESS)||[];var l=r(f,3),s=l[1],v=l[2];if(s){var c=s.toLowerCase().split("::").reverse(),p=r(c,2),g=p[0],b=p[1];var d=b?b.split(":").map(_stripLeadingZeros):[];var w=g.split(":").map(_stripLeadingZeros);var i=n.IPV4ADDRESS.test(w[w.length-1]);var A=i?7:8;var E=w.length-A;var j=Array(A);for(var F=0;F<A;++F){j[F]=d[F]||w[E+F]||""}if(i){j[A-1]=_normalizeIPv4(j[A-1],n)}var O=j.reduce(function(e,n,f){if(!n||n==="0"){var r=e[e.length-1];if(r&&r.index+r.length===f){r.length++}else{e.push({index:f,length:1})}}return e},[]);var R=O.sort(function(e,n){return n.length-e.length})[0];var I=void 0;if(R&&R.length>1){var z=j.slice(0,R.index);var a=j.slice(R.index+R.length);I=z.join(":")+"::"+a.join(":")}else{I=j.join(":")}if(v){I+="%"+v}return I}else{return e}}var N=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var M="".match(/(){0}/)[1]===undefined;function parse(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var l={};var s=r.iri!==false?f:n;if(r.reference==="suffix")e=(r.scheme?r.scheme+":":"")+"//"+e;var v=e.match(N);if(v){if(M){l.scheme=v[1];l.userinfo=v[3];l.host=v[4];l.port=parseInt(v[5],10);l.path=v[6]||"";l.query=v[7];l.fragment=v[8];if(isNaN(l.port)){l.port=v[5]}}else{l.scheme=v[1]||undefined;l.userinfo=e.indexOf("@")!==-1?v[3]:undefined;l.host=e.indexOf("//")!==-1?v[4]:undefined;l.port=parseInt(v[5],10);l.path=v[6]||"";l.query=e.indexOf("?")!==-1?v[7]:undefined;l.fragment=e.indexOf("#")!==-1?v[8]:undefined;if(isNaN(l.port)){l.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?v[4]:undefined}}if(l.host){l.host=_normalizeIPv6(_normalizeIPv4(l.host,s),s)}if(l.scheme===undefined&&l.userinfo===undefined&&l.host===undefined&&l.port===undefined&&!l.path&&l.query===undefined){l.reference="same-document"}else if(l.scheme===undefined){l.reference="relative"}else if(l.fragment===undefined){l.reference="absolute"}else{l.reference="uri"}if(r.reference&&r.reference!=="suffix"&&r.reference!==l.reference){l.error=l.error||"URI is not a "+r.reference+" reference."}var c=x[(r.scheme||l.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!c||!c.unicodeSupport)){if(l.host&&(r.domainHost||c&&c.domainHost)){try{l.host=Y.toASCII(l.host.replace(s.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){l.error=l.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(l,n)}else{_normalizeComponentEncoding(l,s)}if(c&&c.parse){c.parse(l,r)}}else{l.error=l.error||"URI can not be parsed."}return l}function _recomposeAuthority(e,r){var l=r.iri!==false?f:n;var s=[];if(e.userinfo!==undefined){s.push(e.userinfo);s.push("@")}if(e.host!==undefined){s.push(_normalizeIPv6(_normalizeIPv4(String(e.host),l),l).replace(l.IPV6ADDRESS,function(e,n,f){return"["+n+(f?"%25"+f:"")+"]"}))}if(typeof e.port==="number"){s.push(":");s.push(e.port.toString(10))}return s.length?s.join(""):undefined}var L=/^\.\.?\//;var W=/^\/\.(\/|$)/;var H=/^\/\.\.(\/|$)/;var J=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var n=[];while(e.length){if(e.match(L)){e=e.replace(L,"")}else if(e.match(W)){e=e.replace(W,"/")}else if(e.match(H)){e=e.replace(H,"/");n.pop()}else if(e==="."||e===".."){e=""}else{var f=e.match(J);if(f){var r=f[0];e=e.slice(r.length);n.push(r)}else{throw new Error("Unexpected dot segment condition")}}}return n.join("")}function serialize(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var l=r.iri?f:n;var s=[];var v=x[(r.scheme||e.scheme||"").toLowerCase()];if(v&&v.serialize)v.serialize(e,r);if(e.host){if(l.IPV6ADDRESS.test(e.host)){}else if(r.domainHost||v&&v.domainHost){try{e.host=!r.iri?Y.toASCII(e.host.replace(l.PCT_ENCODED,pctDecChars).toLowerCase()):Y.toUnicode(e.host)}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(!r.iri?"ASCII":"Unicode")+" via punycode: "+n}}}_normalizeComponentEncoding(e,l);if(r.reference!=="suffix"&&e.scheme){s.push(e.scheme);s.push(":")}var c=_recomposeAuthority(e,r);if(c!==undefined){if(r.reference!=="suffix"){s.push("//")}s.push(c);if(e.path&&e.path.charAt(0)!=="/"){s.push("/")}}if(e.path!==undefined){var p=e.path;if(!r.absolutePath&&(!v||!v.absolutePath)){p=removeDotSegments(p)}if(c===undefined){p=p.replace(/^\/\//,"/%2F")}s.push(p)}if(e.query!==undefined){s.push("?");s.push(e.query)}if(e.fragment!==undefined){s.push("#");s.push(e.fragment)}return s.join("")}function resolveComponents(e,n){var f=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var r=arguments[3];var l={};if(!r){e=parse(serialize(e,f),f);n=parse(serialize(n,f),f)}f=f||{};if(!f.tolerant&&n.scheme){l.scheme=n.scheme;l.userinfo=n.userinfo;l.host=n.host;l.port=n.port;l.path=removeDotSegments(n.path||"");l.query=n.query}else{if(n.userinfo!==undefined||n.host!==undefined||n.port!==undefined){l.userinfo=n.userinfo;l.host=n.host;l.port=n.port;l.path=removeDotSegments(n.path||"");l.query=n.query}else{if(!n.path){l.path=e.path;if(n.query!==undefined){l.query=n.query}else{l.query=e.query}}else{if(n.path.charAt(0)==="/"){l.path=removeDotSegments(n.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){l.path="/"+n.path}else if(!e.path){l.path=n.path}else{l.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+n.path}l.path=removeDotSegments(l.path)}l.query=n.query}l.userinfo=e.userinfo;l.host=e.host;l.port=e.port}l.scheme=e.scheme}l.fragment=n.fragment;return l}function resolve(e,n,f){var r=assign({scheme:"null"},f);return serialize(resolveComponents(parse(e,r),parse(n,r),r,true),r)}function normalize(e,n){if(typeof e==="string"){e=serialize(parse(e,n),n)}else if(typeOf(e)==="object"){e=parse(serialize(e,n),n)}return e}function equal(e,n,f){if(typeof e==="string"){e=serialize(parse(e,f),f)}else if(typeOf(e)==="object"){e=serialize(e,f)}if(typeof n==="string"){n=serialize(parse(n,f),f)}else if(typeOf(n)==="object"){n=serialize(n,f)}return e===n}function escapeComponent(e,r){return e&&e.toString().replace(!r||!r.iri?n.ESCAPE:f.ESCAPE,pctEncChar)}function unescapeComponent(e,r){return e&&e.toString().replace(!r||!r.iri?n.PCT_ENCODED:f.PCT_ENCODED,pctDecChars)}var h={scheme:"http",domainHost:true,parse:function parse(e,n){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,n){if(e.port===(String(e.scheme).toLowerCase()!=="https"?80:443)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var G={scheme:"https",domainHost:h.domainHost,parse:h.parse,serialize:h.serialize};var X={};var Z=true;var D="[A-Za-z0-9\\-\\.\\_\\~"+(Z?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var V="[0-9A-Fa-f]";var K=subexp(subexp("%[EFef]"+V+"%"+V+V+"%"+V+V)+"|"+subexp("%[89A-Fa-f]"+V+"%"+V+V)+"|"+subexp("%"+V+V));var y="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var k="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var m=merge(k,'[\\"\\\\]');var S="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var P=new RegExp(D,"g");var o=new RegExp(K,"g");var _=new RegExp(merge("[^]",y,"[\\.]",'[\\"]',m),"g");var u=new RegExp(merge("[^]",D,S),"g");var $=u;function decodeUnreserved(e){var n=pctDecChars(e);return!n.match(P)?e:n}var t={scheme:"mailto",parse:function parse$$1(e,n){var f=e;var r=f.to=f.path?f.path.split(","):[];f.path=undefined;if(f.query){var l=false;var s={};var v=f.query.split("&");for(var c=0,p=v.length;c<p;++c){var g=v[c].split("=");switch(g[0]){case"to":var b=g[1].split(",");for(var d=0,w=b.length;d<w;++d){r.push(b[d])}break;case"subject":f.subject=unescapeComponent(g[1],n);break;case"body":f.body=unescapeComponent(g[1],n);break;default:l=true;s[unescapeComponent(g[0],n)]=unescapeComponent(g[1],n);break}}if(l)f.headers=s}f.query=undefined;for(var i=0,A=r.length;i<A;++i){var E=r[i].split("@");E[0]=unescapeComponent(E[0]);if(!n.unicodeSupport){try{E[1]=Y.toASCII(unescapeComponent(E[1],n).toLowerCase())}catch(e){f.error=f.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}}else{E[1]=unescapeComponent(E[1],n).toLowerCase()}r[i]=E.join("@")}return f},serialize:function serialize$$1(e,n){var f=e;var r=toArray(e.to);if(r){for(var l=0,s=r.length;l<s;++l){var v=String(r[l]);var c=v.lastIndexOf("@");var p=v.slice(0,c).replace(o,decodeUnreserved).replace(o,toUpperCase).replace(_,pctEncChar);var g=v.slice(c+1);try{g=!n.iri?Y.toASCII(unescapeComponent(g,n).toLowerCase()):Y.toUnicode(g)}catch(e){f.error=f.error||"Email address's domain name can not be converted to "+(!n.iri?"ASCII":"Unicode")+" via punycode: "+e}r[l]=p+"@"+g}f.path=r.join(",")}var b=e.headers=e.headers||{};if(e.subject)b["subject"]=e.subject;if(e.body)b["body"]=e.body;var d=[];for(var w in b){if(b[w]!==X[w]){d.push(w.replace(o,decodeUnreserved).replace(o,toUpperCase).replace(u,pctEncChar)+"="+b[w].replace(o,decodeUnreserved).replace(o,toUpperCase).replace($,pctEncChar))}}if(d.length){f.query=d.join("&")}return f}};var ee=/^([^\:]+)\:(.*)/;var ne={scheme:"urn",parse:function parse$$1(e,n){var f=e.path&&e.path.match(ee);var r=e;if(f){var l=n.scheme||r.scheme||"urn";var s=f[1].toLowerCase();var v=f[2];var c=l+":"+(n.nid||s);var p=x[c];r.nid=s;r.nss=v;r.path=undefined;if(p){r=p.parse(r,n)}}else{r.error=r.error||"URN can not be parsed."}return r},serialize:function serialize$$1(e,n){var f=n.scheme||e.scheme||"urn";var r=e.nid;var l=f+":"+(n.nid||r);var s=x[l];if(s){e=s.serialize(e,n)}var v=e;var c=e.nss;v.path=(r||n.nid)+":"+c;return v}};var fe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;var re={scheme:"urn:uuid",parse:function parse(e,n){var f=e;f.uuid=f.nss;f.nss=undefined;if(!n.tolerant&&(!f.uuid||!f.uuid.match(fe))){f.error=f.error||"UUID is not valid."}return f},serialize:function serialize(e,n){var f=e;f.nss=(e.uuid||"").toLowerCase();return f}};x[h.scheme]=h;x[G.scheme]=G;x[t.scheme]=t;x[ne.scheme]=ne;x[re.scheme]=re;e.SCHEMES=x;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})})},5632:module=>{module.exports=eval("require")("encoding")},2706: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}')},1742: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}')},3129:e=>{"use strict";e.exports=require("child_process")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1765:e=>{"use strict";e.exports=require("process")},2413:e=>{"use strict";e.exports=require("stream")},8835:e=>{"use strict";e.exports=require("url")},8761:e=>{"use strict";e.exports=require("zlib")}};var __webpack_module_cache__={};function __nccwpck_require__(e){if(__webpack_module_cache__[e]){return __webpack_module_cache__[e].exports}var n=__webpack_module_cache__[e]={exports:{}};var f=true;try{__webpack_modules__[e].call(n.exports,n,n.exports,__nccwpck_require__);f=false}finally{if(f)delete __webpack_module_cache__[e]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(6011)})(); |