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,r){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});const s=r(6832);const l=f(r(8527));const c=f(r(3406));const i=f(r(9282));const v=f(r(6866));const p=f(r(2726));async function main(){const e=l.default();const n=s.getState("is_post");if(n==="true")return p.default(e);s.saveState("is_post","true");await i.default(e);console.log("Installation Completed!");c.default(e);v.default(e)}main().catch(e=>{console.error(e);s.setFailed(e)})},8527:function(e,n,r){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.getInputs=void 0;const s=r(6832);const l=f(r(4010));const c=r(986);const i={required:true};const v=e=>l.default(s.getInput(e,i));const p=()=>({version:s.getInput("version",i),dest:v("dest"),runInstall:c.parseRunInstall("run_install")});n.getInputs=p;n.default=n.getInputs},986:function(e,n,r){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.parseRunInstall=void 0;const s=f(r(1765));const l=r(9520);const c=f(r(8469));const i=r(6832);const v=f(r(2492));const p={required:true};function parseRunInstall(e){const n=l.load(i.getInput(e,p));const r=new c.default({allErrors:true});const f=r.compile(v.default);if(!f(n)){for(const e of f.errors){i.error(`with.run_install${e.dataPath}: ${e.message}`)}return s.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,r){"use strict";var f=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 s=r(6832);const l=f(r(7388));n.runSelfInstaller=l.default;async function install(e){s.startGroup("Running self-installer...");const n=await l.default(e);s.endGroup();if(n){return s.setFailed(`Something does wrong, self-installer exits with code ${n}`)}}n.install=install;n.default=install},7388:function(e,n,r){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.runSelfInstaller=void 0;const s=r(3129);const l=r(1765);const c=r(5622);const i=r(4240);const v=f(r(2192));async function runSelfInstaller(e){const{version:n,dest:r}=e;const f=n?`pnpm@${n}`:"pnpm";const p=c.join(r,"package.json");await i.remove(r);await i.ensureFile(p);await i.writeFile(p,JSON.stringify({private:true}));const d=s.spawn(l.execPath,["-","install",f,"--no-lockfile"],{cwd:r,stdio:["pipe","inherit","inherit"]});const a=await v.default("https://pnpm.js.org/pnpm.js");a.body.pipe(d.stdin);return new Promise((e,n)=>{d.on("error",n);d.on("close",e)})}n.runSelfInstaller=runSelfInstaller;n.default=runSelfInstaller},3406:(e,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.setOutputs=void 0;const f=r(6832);const s=r(1630);function setOutputs(e){const n=s.getBinDest(e);f.addPath(n);f.setOutput("dest",e.dest);f.setOutput("bin_dest",n)}n.setOutputs=setOutputs;n.default=setOutputs},6866:(e,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.runPnpmInstall=void 0;const f=r(3129);const s=r(6832);const l=r(1630);function runPnpmInstall(e){const n=l.patchPnpmEnv(e);for(const r of e.runInstall){const e=["install"];if(r.recursive)e.unshift("recursive");if(r.args)e.push(...r.args);const l=["pnpm",...e].join(" ");s.startGroup(`Running ${l}...`);const{error:c,status:i}=f.spawnSync("pnpm",e,{stdio:"inherit",cwd:r.cwd,shell:true,env:n});s.endGroup();if(c){s.setFailed(c);continue}if(i){s.setFailed(`Command ${l} (cwd: ${r.cwd}) exits with status ${i}`);continue}}}n.runPnpmInstall=runPnpmInstall;n.default=runPnpmInstall},2726:(e,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});n.pruneStore=void 0;const f=r(3129);const s=r(6832);const l=r(1630);function pruneStore(e){if(e.runInstall.length===0){console.log("Pruning is unnecessary.");return}s.startGroup("Running pnpm store prune...");const{error:n,status:r}=f.spawnSync("pnpm",["store","prune"],{stdio:"inherit",shell:true,env:l.patchPnpmEnv(e)});s.endGroup();if(n){s.warning(n);return}if(r){s.warning(`command pnpm store prune exits with code ${r}`);return}}n.pruneStore=pruneStore;n.default=pruneStore},1630:function(e,n,r){"use strict";var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.patchPnpmEnv=n.getBinDest=void 0;const s=f(r(1765));const l=f(r(5622));const c=e=>l.default.join(e.dest,"node_modules",".bin");n.getBinDest=c;const i=e=>({...s.default.env,PATH:n.getBinDest(e)+l.default.delimiter+s.default.env.PATH});n.patchPnpmEnv=i},8362:function(e,n,r){"use strict";var f=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n[r]=e[r];n["default"]=e;return n};Object.defineProperty(n,"__esModule",{value:true});const s=f(r(2087));const l=r(9017);function issueCommand(e,n,r){const f=new Command(e,n,r);process.stdout.write(f.toString()+s.EOL)}n.issueCommand=issueCommand;function issue(e,n=""){issueCommand(e,{},n)}n.issue=issue;const c="::";class Command{constructor(e,n,r){if(!e){e="missing.command"}this.command=e;this.properties=n;this.message=r}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const f=this.properties[r];if(f){if(n){n=false}else{e+=","}e+=`${r}=${escapeProperty(f)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return l.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return l.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},6832:function(e,n,r){"use strict";var f=this&&this.__awaiter||function(e,n,r,f){function adopt(e){return e instanceof r?e:new r(function(n){n(e)})}return new(r||(r=Promise))(function(r,s){function fulfilled(e){try{step(f.next(e))}catch(e){s(e)}}function rejected(e){try{step(f["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((f=f.apply(e,n||[])).next())})};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n[r]=e[r];n["default"]=e;return n};Object.defineProperty(n,"__esModule",{value:true});const l=r(8362);const c=r(7531);const i=r(9017);const v=s(r(2087));const p=s(r(5622));var d;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(d=n.ExitCode||(n.ExitCode={}));function exportVariable(e,n){const r=i.toCommandValue(n);process.env[e]=r;const f=process.env["GITHUB_ENV"]||"";if(f){const n="_GitHubActionsFileCommandDelimeter_";const f=`${e}<<${n}${v.EOL}${r}${v.EOL}${n}`;c.issueCommand("ENV",f)}else{l.issueCommand("set-env",{name:e},r)}}n.exportVariable=exportVariable;function setSecret(e){l.issueCommand("add-mask",{},e)}n.setSecret=setSecret;function addPath(e){const n=process.env["GITHUB_PATH"]||"";if(n){c.issueCommand("PATH",e)}else{l.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${p.delimiter}${process.env["PATH"]}`}n.addPath=addPath;function getInput(e,n){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}n.getInput=getInput;function setOutput(e,n){l.issueCommand("set-output",{name:e},n)}n.setOutput=setOutput;function setCommandEcho(e){l.issue("echo",e?"on":"off")}n.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=d.Failure;error(e)}n.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}n.isDebug=isDebug;function debug(e){l.issueCommand("debug",{},e)}n.debug=debug;function error(e){l.issue("error",e instanceof Error?e.toString():e)}n.error=error;function warning(e){l.issue("warning",e instanceof Error?e.toString():e)}n.warning=warning;function info(e){process.stdout.write(e+v.EOL)}n.info=info;function startGroup(e){l.issue("group",e)}n.startGroup=startGroup;function endGroup(){l.issue("endgroup")}n.endGroup=endGroup;function group(e,n){return f(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield n()}finally{endGroup()}return r})}n.group=group;function saveState(e,n){l.issueCommand("save-state",{name:e},n)}n.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}n.getState=getState},7531:function(e,n,r){"use strict";var f=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))n[r]=e[r];n["default"]=e;return n};Object.defineProperty(n,"__esModule",{value:true});const s=f(r(5747));const l=f(r(2087));const c=r(9017);function issueCommand(e,n){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${c.toCommandValue(n)}${l.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,r)=>{"use strict";var f=r(5637),s=r(270),l=r(1642),c=r(5657),i=r(7485),v=r(2877),p=r(8950),d=r(3379),a=r(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=r(6384);var g=r(7758);Ajv.prototype.addKeyword=g.add;Ajv.prototype.getKeyword=g.get;Ajv.prototype.removeKeyword=g.remove;Ajv.prototype.validateKeyword=g.validate;var b=r(8319);Ajv.ValidationError=b.Validation;Ajv.MissingRefError=b.MissingRef;Ajv.$dataMetaSchema=d;var w="http://json-schema.org/draft-07/schema";var E=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var F=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=a.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=v(e.format);this._cache=e.cache||new l;this._loadingSchemas={};this._compilations=[];this.RULES=p();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=i;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 r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error('no schema with key or ref "'+e+'"')}else{var f=this._addSchema(e);r=f.validate||this._compile(f)}var s=r(n);if(r.$async!==true)this.errors=r.errors;return s}function compile(e,n){var r=this._addSchema(e,undefined,n);return r.validate||this._compile(r)}function addSchema(e,n,r,f){if(Array.isArray(e)){for(var l=0;l{"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,r)=>{"use strict";var f=r(8319).MissingRef;e.exports=compileAsync;function compileAsync(e,n,r){var s=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof n=="function"){r=n;n=undefined}var l=loadMetaSchemaOf(e).then(function(){var r=s._addSchema(e,undefined,n);return r.validate||_compileAsync(r)});if(r){l.then(function(e){r(null,e)},r)}return l;function loadMetaSchemaOf(e){var n=e.$schema;return n&&!s.getSchema(n)?compileAsync.call(s,{$ref:n},true):Promise.resolve()}function _compileAsync(e){try{return s._compile(e)}catch(e){if(e instanceof f)return loadMissingSchema(e);throw e}function loadMissingSchema(r){var f=r.missingSchema;if(added(f))throw new Error("Schema "+f+" is loaded but "+r.missingRef+" cannot be resolved");var l=s._loadingSchemas[f];if(!l){l=s._loadingSchemas[f]=s._opts.loadSchema(f);l.then(removePromise,removePromise)}return l.then(function(e){if(!added(f)){return loadMetaSchemaOf(e).then(function(){if(!added(f))s.addSchema(e,f,undefined,n)})}}).then(function(){return _compileAsync(e)});function removePromise(){delete s._loadingSchemas[f]}function added(e){return s._refs[e]||s._schemas[e]}}}}},8319:(e,n,r)=>{"use strict";var f=r(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,r){this.message=r||MissingRefError.message(e,n);this.missingRef=f.url(e,n);this.missingSchema=f.normalizeId(f.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},2877:(e,n,r)=>{"use strict";var f=r(9120);var s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var l=[0,31,28,31,30,31,30,31,31,30,31,30,31];var c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var i=/^(?=.{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 v=/^(?:[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 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 d=/^(?:(?:[^\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 a=/^(?:(?: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 g=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var b=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var w=/^#(?:\/(?:[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 f.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":d,url:a,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:i,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:g,"json-pointer":b,"json-pointer-uri-fragment":w,"relative-json-pointer":E};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":p,"uri-template":d,url:a,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:i,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:g,"json-pointer":b,"json-pointer-uri-fragment":w,"relative-json-pointer":E};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var n=e.match(s);if(!n)return false;var r=+n[1];var f=+n[2];var c=+n[3];return f>=1&&f<=12&&c>=1&&c<=(f==2&&isLeapYear(r)?29:l[f])}function time(e,n){var r=e.match(c);if(!r)return false;var f=r[1];var s=r[2];var l=r[3];var i=r[5];return(f<=23&&s<=59&&l<=59||f==23&&s==59&&l==60)&&(!n||i)}var F=/t|\s/i;function date_time(e){var n=e.split(F);return n.length==2&&date(n[0])&&time(n[1],true)}var A=/\/|:/;function uri(e){return A.test(e)&&v.test(e)}var j=/[^\\]\\Z/;function regex(e){if(j.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},5637:(e,n,r)=>{"use strict";var f=r(270),s=r(9120),l=r(8319),c=r(7485);var i=r(4327);var v=s.ucs2length;var p=r(3118);var d=l.Validation;e.exports=compile;function compile(e,n,r,a){var g=this,b=this._opts,w=[undefined],E={},F=[],A={},j=[],h={},O=[];n=n||{schema:e,refVal:w,refs:E};var y=checkCompiling.call(this,e,n,a);var R=this._compilations[y.index];if(y.compiling)return R.callValidate=callValidate;var m=this._formats;var I=this.RULES;try{var x=localCompile(e,n,r,a);R.validate=x;var C=R.callValidate;if(C){C.schema=x.schema;C.errors=null;C.refs=x.refs;C.refVal=x.refVal;C.root=x.root;C.$async=x.$async;if(b.sourceCode)C.source=x.source}return x}finally{endCompiling.call(this,e,n,a)}function callValidate(){var e=R.validate;var n=e.apply(this,arguments);callValidate.errors=e.errors;return n}function localCompile(e,r,c,a){var A=!r||r&&r.schema==e;if(r.schema!=n.schema)return compile.call(g,e,r,c,a);var h=e.$async===true;var y=i({isTop:true,schema:e,isRoot:A,baseId:a,root:r,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:l.MissingRef,RULES:I,validate:i,util:s,resolve:f,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:b,formats:m,logger:g.logger,self:g});y=vars(w,refValCode)+vars(F,patternCode)+vars(j,defaultCode)+vars(O,customRuleCode)+y;if(b.processCode)y=b.processCode(y,e);var R;try{var x=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",y);R=x(g,I,m,n,w,j,O,p,v,d);w[0]=R}catch(e){g.logger.error("Error compiling schema, function code:",y);throw e}R.schema=e;R.errors=null;R.refs=E;R.refVal=w;R.root=A?R:r;if(h)R.$async=true;if(b.sourceCode===true){R.source={code:y,patterns:F,defaults:j}}return R}function resolveRef(e,s,l){s=f.url(e,s);var c=E[s];var i,v;if(c!==undefined){i=w[c];v="refVal["+c+"]";return resolvedRef(i,v)}if(!l&&n.refs){var p=n.refs[s];if(p!==undefined){i=n.refVal[p];v=addLocalRef(s,i);return resolvedRef(i,v)}}v=addLocalRef(s);var d=f.call(g,localCompile,n,s);if(d===undefined){var a=r&&r[s];if(a){d=f.inlineRef(a,b.inlineRefs)?a:compile.call(g,a,n,r,e)}}if(d===undefined){removeLocalRef(s)}else{replaceLocalRef(s,d);return resolvedRef(d,v)}}function addLocalRef(e,n){var r=w.length;w[r]=n;E[e]=r;return"refVal"+r}function removeLocalRef(e){delete E[e]}function replaceLocalRef(e,n){var r=E[e];w[r]=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=A[e];if(n===undefined){n=A[e]=F.length;F[n]=e}return"pattern"+n}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return s.toQuotedString(e);case"object":if(e===null)return"null";var n=c(e);var r=h[n];if(r===undefined){r=h[n]=j.length;j[r]=e}return"default"+r}}function useCustomRule(e,n,r,f){if(g._opts.validateSchema!==false){var s=e.definition.dependencies;if(s&&!s.every(function(e){return Object.prototype.hasOwnProperty.call(r,e)}))throw new Error("parent schema must have all required keywords: "+s.join(","));var l=e.definition.validateSchema;if(l){var c=l(n);if(!c){var i="keyword schema is invalid: "+g.errorsText(l.errors);if(g._opts.validateSchema=="log")g.logger.error(i);else throw new Error(i)}}}var v=e.definition.compile,p=e.definition.inline,d=e.definition.macro;var a;if(v){a=v.call(g,n,r,f)}else if(d){a=d.call(g,n,r,f);if(b.validateSchema!==false)g.validateSchema(a,true)}else if(p){a=p.call(g,f,e.keyword,n,r)}else{a=e.definition.validate;if(!a)return}if(a===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var w=O.length;O[w]=a;return{code:"customRule"+w,validate:a}}}function checkCompiling(e,n,r){var f=compIndex.call(this,e,n,r);if(f>=0)return{index:f,compiling:true};f=this._compilations.length;this._compilations[f]={schema:e,root:n,baseId:r};return{index:f,compiling:false}}function endCompiling(e,n,r){var f=compIndex.call(this,e,n,r);if(f>=0)this._compilations.splice(f,1)}function compIndex(e,n,r){for(var f=0;f{"use strict";var f=r(4430),s=r(3118),l=r(9120),c=r(5657),i=r(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,r){var f=this._refs[r];if(typeof f=="string"){if(this._refs[f])f=this._refs[f];else return resolve.call(this,e,n,f)}f=f||this._schemas[r];if(f instanceof c){return inlineRef(f.schema,this._opts.inlineRefs)?f.schema:f.validate||this._compile(f)}var s=resolveSchema.call(this,n,r);var l,i,v;if(s){l=s.schema;n=s.root;v=s.baseId}if(l instanceof c){i=l.validate||e.call(this,l.schema,n,undefined,v)}else if(l!==undefined){i=inlineRef(l,this._opts.inlineRefs)?l:e.call(this,l,n,undefined,v)}return i}function resolveSchema(e,n){var r=f.parse(n),s=_getFullPath(r),l=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||s!==l){var i=normalizeId(s);var v=this._refs[i];if(typeof v=="string"){return resolveRecursive.call(this,e,v,r)}else if(v instanceof c){if(!v.validate)this._compile(v);e=v}else{v=this._schemas[i];if(v instanceof c){if(!v.validate)this._compile(v);if(i==normalizeId(n))return{schema:v,root:e,baseId:l};e=v}else{return}}if(!e.schema)return;l=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,r,l,e.schema,e)}function resolveRecursive(e,n,r){var f=resolveSchema.call(this,e,n);if(f){var s=f.schema;var l=f.baseId;e=f.root;var c=this._getId(s);if(c)l=resolveUrl(l,c);return getJsonPointer.call(this,r,l,s,e)}}var v=l.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,n,r,f){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var s=e.fragment.split("/");for(var c=1;c{"use strict";var f=r(3649),s=r(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 r=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var l=["number","integer","string","array","object","boolean","null"];e.all=s(n);e.types=s(l);e.forEach(function(r){r.rules=r.rules.map(function(r){var s;if(typeof r=="object"){var l=Object.keys(r)[0];s=r[l];r=l;s.forEach(function(r){n.push(r);e.all[r]=true})}n.push(r);var c=e.all[r]={keyword:r,code:f[r],implements:s};return c});e.all.$comment={keyword:"$comment",code:f.$comment};if(r.type)e.types[r.type]=r});e.keywords=s(n.concat(r));e.custom={};return e}},5657:(e,n,r)=>{"use strict";var f=r(9120);e.exports=SchemaObject;function SchemaObject(e){f.copy(e,this)}},3694:e=>{"use strict";e.exports=function ucs2length(e){var n=0,r=e.length,f=0,s;while(f=55296&&s<=56319&&f{"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:r(3118),ucs2length:r(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 r in e)n[r]=e[r];return n}function checkDataType(e,n,r,f){var s=f?" !== ":" === ",l=f?" || ":" && ",c=f?"!":"",i=f?"":"!";switch(e){case"null":return n+s+"null";case"array":return c+"Array.isArray("+n+")";case"object":return"("+c+n+l+"typeof "+n+s+'"object"'+l+i+"Array.isArray("+n+"))";case"integer":return"(typeof "+n+s+'"number"'+l+i+"("+n+" % 1)"+l+n+s+n+(r?l+c+"isFinite("+n+")":"")+")";case"number":return"(typeof "+n+s+'"'+e+'"'+(r?l+c+"isFinite("+n+")":"")+")";default:return"typeof "+n+s+'"'+e+'"'}}function checkDataTypes(e,n,r){switch(e.length){case 1:return checkDataType(e[0],n,r,true);default:var f="";var s=toHash(e);if(s.array&&s.object){f=s.null?"(":"(!"+n+" || ";f+="typeof "+n+' !== "object")';delete s.null;delete s.array;delete s.object}if(s.number)delete s.integer;for(var l in s)f+=(f?" && ":"")+checkDataType(l,n,r,true);return f}}var f=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,n){if(Array.isArray(n)){var r=[];for(var s=0;s=n)throw new Error("Cannot access property/index "+f+" levels up, current level is "+n);return r[n-f]}if(f>n)throw new Error("Cannot access data "+f+" levels up, current level is "+n);l="data"+(n-f||"");if(!s)return l}var p=l;var d=s.split("/");for(var a=0;a{"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,r){for(var f=0;f{"use strict";var f=r(1742);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:f.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:f.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,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d;var a="data"+(l||"");var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}var w=n=="maximum",E=w?"exclusiveMaximum":"exclusiveMinimum",F=e.schema[E],A=e.opts.$data&&F&&F.$data,j=w?"<":">",h=w?">":"<",d=undefined;if(!(g||typeof c=="number"||c===undefined)){throw new Error(n+" must be number")}if(!(A||F===undefined||typeof F=="number"||typeof F=="boolean")){throw new Error(E+" must be number or boolean")}if(A){var O=e.util.getData(F.$data,l,e.dataPathArr),y="exclusive"+s,R="exclType"+s,m="exclIsNumber"+s,I="op"+s,x="' + "+I+" + '";f+=" var schemaExcl"+s+" = "+O+"; ";O="schemaExcl"+s;f+=" var "+y+"; var "+R+" = typeof "+O+"; if ("+R+" != 'boolean' && "+R+" != 'undefined' && "+R+" != 'number') { ";var d=E;var C=C||[];C.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: {} ";if(e.opts.messages!==false){f+=" , message: '"+E+" should be boolean' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var T=f;f=C.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+T+"]); "}else{f+=" validate.errors = ["+T+"]; return false; "}}else{f+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } else if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}f+=" "+R+" == 'number' ? ( ("+y+" = "+b+" === undefined || "+O+" "+j+"= "+b+") ? "+a+" "+h+"= "+O+" : "+a+" "+h+" "+b+" ) : ( ("+y+" = "+O+" === true) ? "+a+" "+h+"= "+b+" : "+a+" "+h+" "+b+" ) || "+a+" !== "+a+") { var op"+s+" = "+y+" ? '"+j+"' : '"+j+"='; ";if(c===undefined){d=E;v=e.errSchemaPath+"/"+E;b=O;g=A}}else{var m=typeof F=="number",x=j;if(m&&g){var I="'"+x+"'";f+=" if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}f+=" ( "+b+" === undefined || "+F+" "+j+"= "+b+" ? "+a+" "+h+"= "+F+" : "+a+" "+h+" "+b+" ) || "+a+" !== "+a+") { "}else{if(m&&c===undefined){y=true;d=E;v=e.errSchemaPath+"/"+E;b=F;h+="="}else{if(m)b=Math[w?"min":"max"](F,c);if(F===(m?b:true)){y=true;d=E;v=e.errSchemaPath+"/"+E;h+="="}else{y=false;x+="="}}var I="'"+x+"'";f+=" if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}f+=" "+a+" "+h+" "+b+" || "+a+" !== "+a+") { "}}d=d||n;var C=C||[];C.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { comparison: "+I+", limit: "+b+", exclusive: "+y+" } ";if(e.opts.messages!==false){f+=" , message: 'should be "+x+" ";if(g){f+="' + "+b}else{f+=""+b+"'"}}if(e.opts.verbose){f+=" , schema: ";if(g){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var T=f;f=C.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+T+"]); "}else{f+=" validate.errors = ["+T+"]; return false; "}}else{f+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } ";if(p){f+=" else { "}return f}},7682:e=>{"use strict";e.exports=function generate__limitItems(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d;var a="data"+(l||"");var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}if(!(g||typeof c=="number")){throw new Error(n+" must be number")}var w=n=="maxItems"?">":"<";f+="if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}f+=" "+a+".length "+w+" "+b+") { ";var d=n;var E=E||[];E.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { limit: "+b+" } ";if(e.opts.messages!==false){f+=" , message: 'should NOT have ";if(n=="maxItems"){f+="more"}else{f+="fewer"}f+=" than ";if(g){f+="' + "+b+" + '"}else{f+=""+c}f+=" items' "}if(e.opts.verbose){f+=" , schema: ";if(g){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var F=f;f=E.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+F+"]); "}else{f+=" validate.errors = ["+F+"]; return false; "}}else{f+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+="} ";if(p){f+=" else { "}return f}},6262:e=>{"use strict";e.exports=function generate__limitLength(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d;var a="data"+(l||"");var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}if(!(g||typeof c=="number")){throw new Error(n+" must be number")}var w=n=="maxLength"?">":"<";f+="if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}if(e.opts.unicode===false){f+=" "+a+".length "}else{f+=" ucs2length("+a+") "}f+=" "+w+" "+b+") { ";var d=n;var E=E||[];E.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { limit: "+b+" } ";if(e.opts.messages!==false){f+=" , message: 'should NOT be ";if(n=="maxLength"){f+="longer"}else{f+="shorter"}f+=" than ";if(g){f+="' + "+b+" + '"}else{f+=""+c}f+=" characters' "}if(e.opts.verbose){f+=" , schema: ";if(g){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var F=f;f=E.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+F+"]); "}else{f+=" validate.errors = ["+F+"]; return false; "}}else{f+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+="} ";if(p){f+=" else { "}return f}},8125:e=>{"use strict";e.exports=function generate__limitProperties(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d;var a="data"+(l||"");var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}if(!(g||typeof c=="number")){throw new Error(n+" must be number")}var w=n=="maxProperties"?">":"<";f+="if ( ";if(g){f+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "}f+=" Object.keys("+a+").length "+w+" "+b+") { ";var d=n;var E=E||[];E.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { limit: "+b+" } ";if(e.opts.messages!==false){f+=" , message: 'should NOT have ";if(n=="maxProperties"){f+="more"}else{f+="fewer"}f+=" than ";if(g){f+="' + "+b+" + '"}else{f+=""+c}f+=" properties' "}if(e.opts.verbose){f+=" , schema: ";if(g){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var F=f;f=E.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+F+"]); "}else{f+=" validate.errors = ["+F+"]; return false; "}}else{f+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+="} ";if(p){f+=" else { "}return f}},4511:e=>{"use strict";e.exports=function generate_allOf(e,n,r){var f=" ";var s=e.schema[n];var l=e.schemaPath+e.util.getProperty(n);var c=e.errSchemaPath+"/"+n;var i=!e.opts.allErrors;var v=e.util.copy(e);var p="";v.level++;var d="valid"+v.level;var a=v.baseId,g=true;var b=s;if(b){var w,E=-1,F=b.length-1;while(E0||w===false:e.util.schemaHasRules(w,e.RULES.all)){g=false;v.schema=w;v.schemaPath=l+"["+E+"]";v.errSchemaPath=c+"/"+E;f+=" "+e.validate(v)+" ";v.baseId=a;if(i){f+=" if ("+d+") { ";p+="}"}}}}if(i){if(g){f+=" if (true) { "}else{f+=" "+p.slice(0,-1)+" "}}return f}},1888:e=>{"use strict";e.exports=function generate_anyOf(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g="errs__"+s;var b=e.util.copy(e);var w="";b.level++;var E="valid"+b.level;var F=c.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(F){var A=b.baseId;f+=" var "+g+" = errors; var "+a+" = false; ";var j=e.compositeRule;e.compositeRule=b.compositeRule=true;var h=c;if(h){var O,y=-1,R=h.length-1;while(y{"use strict";e.exports=function generate_comment(e,n,r){var f=" ";var s=e.schema[n];var l=e.errSchemaPath+"/"+n;var c=!e.opts.allErrors;var i=e.util.toQuotedString(s);if(e.opts.$comment===true){f+=" console.log("+i+");"}else if(typeof e.opts.$comment=="function"){f+=" self._opts.$comment("+i+", "+e.util.toQuotedString(l)+", validate.root.schema);"}return f}},5272:e=>{"use strict";e.exports=function generate_const(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}if(!g){f+=" var schema"+s+" = validate.schema"+i+";"}f+="var "+a+" = equal("+d+", schema"+s+"); if (!"+a+") { ";var w=w||[];w.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { allowedValue: schema"+s+" } ";if(e.opts.messages!==false){f+=" , message: 'should be equal to constant' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var E=f;f=w.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+E+"]); "}else{f+=" validate.errors = ["+E+"]; return false; "}}else{f+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" }";if(p){f+=" else { "}return f}},6839:e=>{"use strict";e.exports=function generate_contains(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g="errs__"+s;var b=e.util.copy(e);var w="";b.level++;var E="valid"+b.level;var F="i"+s,A=b.dataLevel=e.dataLevel+1,j="data"+A,h=e.baseId,O=e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===false:e.util.schemaHasRules(c,e.RULES.all);f+="var "+g+" = errors;var "+a+";";if(O){var y=e.compositeRule;e.compositeRule=b.compositeRule=true;b.schema=c;b.schemaPath=i;b.errSchemaPath=v;f+=" var "+E+" = false; for (var "+F+" = 0; "+F+" < "+d+".length; "+F+"++) { ";b.errorPath=e.util.getPathExpr(e.errorPath,F,e.opts.jsonPointers,true);var R=d+"["+F+"]";b.dataPathArr[A]=F;var m=e.validate(b);b.baseId=h;if(e.util.varOccurences(m,j)<2){f+=" "+e.util.varReplace(m,j,R)+" "}else{f+=" var "+j+" = "+R+"; "+m+" "}f+=" if ("+E+") break; } ";e.compositeRule=b.compositeRule=y;f+=" "+w+" if (!"+E+") {"}else{f+=" if ("+d+".length == 0) {"}var I=I||[];I.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: {} ";if(e.opts.messages!==false){f+=" , message: 'should contain a valid item' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var x=f;f=I.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+x+"]); "}else{f+=" validate.errors = ["+x+"]; return false; "}}else{f+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } else { ";if(O){f+=" errors = "+g+"; if (vErrors !== null) { if ("+g+") vErrors.length = "+g+"; else vErrors = null; } "}if(e.opts.allErrors){f+=" } "}return f}},2273:e=>{"use strict";e.exports=function generate_custom(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d;var a="data"+(l||"");var g="valid"+s;var b="errs__"+s;var w=e.opts.$data&&c&&c.$data,E;if(w){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";E="schema"+s}else{E=c}var F=this,A="definition"+s,j=F.definition,h="";var O,y,R,m,I;if(w&&j.$data){I="keywordValidate"+s;var x=j.validateSchema;f+=" var "+A+" = RULES.custom['"+n+"'].definition; var "+I+" = "+A+".validate;"}else{m=e.useCustomRule(F,c,e.schema,e);if(!m)return;E="validate.schema"+i;I=m.code;O=j.compile;y=j.inline;R=j.macro}var C=I+".errors",T="i"+s,z="ruleErr"+s,N=j.async;if(N&&!e.async)throw new Error("async keyword in sync schema");if(!(y||R)){f+=""+C+" = null;"}f+="var "+b+" = errors;var "+g+";";if(w&&j.$data){h+="}";f+=" if ("+E+" === undefined) { "+g+" = true; } else { ";if(x){h+="}";f+=" "+g+" = "+A+".validateSchema("+E+"); if ("+g+") { "}}if(y){if(j.statements){f+=" "+m.validate+" "}else{f+=" "+g+" = "+m.validate+"; "}}else if(R){var U=e.util.copy(e);var h="";U.level++;var q="valid"+U.level;U.schema=m.validate;U.schemaPath="";var M=e.compositeRule;e.compositeRule=U.compositeRule=true;var L=e.validate(U).replace(/validate\.schema/g,I);e.compositeRule=U.compositeRule=M;f+=" "+L}else{var B=B||[];B.push(f);f="";f+=" "+I+".call( ";if(e.opts.passContext){f+="this"}else{f+="self"}if(O||j.schema===false){f+=" , "+a+" "}else{f+=" , "+E+" , "+a+" , validate.schema"+e.schemaPath+" "}f+=" , (dataPath || '')";if(e.errorPath!='""'){f+=" + "+e.errorPath}var Q=l?"data"+(l-1||""):"parentData",W=l?e.dataPathArr[l]:"parentDataProperty";f+=" , "+Q+" , "+W+" , rootData ) ";var Y=f;f=B.pop();if(j.errors===false){f+=" "+g+" = ";if(N){f+="await "}f+=""+Y+"; "}else{if(N){C="customErrors"+s;f+=" var "+C+" = null; try { "+g+" = await "+Y+"; } catch (e) { "+g+" = false; if (e instanceof ValidationError) "+C+" = e.errors; else throw e; } "}else{f+=" "+C+" = null; "+g+" = "+Y+"; "}}}if(j.modifying){f+=" if ("+Q+") "+a+" = "+Q+"["+W+"];"}f+=""+h;if(j.valid){if(p){f+=" if (true) { "}}else{f+=" if ( ";if(j.valid===undefined){f+=" !";if(R){f+=""+q}else{f+=""+g}}else{f+=" "+!j.valid+" "}f+=") { ";d=F.keyword;var B=B||[];B.push(f);f="";var B=B||[];B.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { keyword: '"+F.keyword+"' } ";if(e.opts.messages!==false){f+=" , message: 'should pass \""+F.keyword+"\" keyword validation' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+a+" "}f+=" } "}else{f+=" {} "}var D=f;f=B.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+D+"]); "}else{f+=" validate.errors = ["+D+"]; return false; "}}else{f+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var J=f;f=B.pop();if(y){if(j.errors){if(j.errors!="full"){f+=" for (var "+T+"="+b+"; "+T+"{"use strict";e.exports=function generate_dependencies(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="errs__"+s;var g=e.util.copy(e);var b="";g.level++;var w="valid"+g.level;var E={},F={},A=e.opts.ownProperties;for(y in c){if(y=="__proto__")continue;var j=c[y];var h=Array.isArray(j)?F:E;h[y]=j}f+="var "+a+" = errors;";var O=e.errorPath;f+="var missing"+s+";";for(var y in F){h=F[y];if(h.length){f+=" if ( "+d+e.util.getProperty(y)+" !== undefined ";if(A){f+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(y)+"') "}if(p){f+=" && ( ";var R=h;if(R){var m,I=-1,x=R.length-1;while(I0||j===false:e.util.schemaHasRules(j,e.RULES.all)){f+=" "+w+" = true; if ( "+d+e.util.getProperty(y)+" !== undefined ";if(A){f+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(y)+"') "}f+=") { ";g.schema=j;g.schemaPath=i+e.util.getProperty(y);g.errSchemaPath=v+"/"+e.util.escapeFragment(y);f+=" "+e.validate(g)+" ";g.baseId=Q;f+=" } ";if(p){f+=" if ("+w+") { ";b+="}"}}}if(p){f+=" "+b+" if ("+a+" == errors) {"}return f}},9645:e=>{"use strict";e.exports=function generate_enum(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}var w="i"+s,E="schema"+s;if(!g){f+=" var "+E+" = validate.schema"+i+";"}f+="var "+a+";";if(g){f+=" if (schema"+s+" === undefined) "+a+" = true; else if (!Array.isArray(schema"+s+")) "+a+" = false; else {"}f+=""+a+" = false;for (var "+w+"=0; "+w+"<"+E+".length; "+w+"++) if (equal("+d+", "+E+"["+w+"])) { "+a+" = true; break; }";if(g){f+=" } "}f+=" if (!"+a+") { ";var F=F||[];F.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { allowedValues: schema"+s+" } ";if(e.opts.messages!==false){f+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var A=f;f=F.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+A+"]); "}else{f+=" validate.errors = ["+A+"]; return false; "}}else{f+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" }";if(p){f+=" else { "}return f}},7987:e=>{"use strict";e.exports=function generate_format(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");if(e.opts.format===false){if(p){f+=" if (true) { "}return f}var a=e.opts.$data&&c&&c.$data,g;if(a){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";g="schema"+s}else{g=c}var b=e.opts.unknownFormats,w=Array.isArray(b);if(a){var E="format"+s,F="isObject"+s,A="formatType"+s;f+=" var "+E+" = formats["+g+"]; var "+F+" = typeof "+E+" == 'object' && !("+E+" instanceof RegExp) && "+E+".validate; var "+A+" = "+F+" && "+E+".type || 'string'; if ("+F+") { ";if(e.async){f+=" var async"+s+" = "+E+".async; "}f+=" "+E+" = "+E+".validate; } if ( ";if(a){f+=" ("+g+" !== undefined && typeof "+g+" != 'string') || "}f+=" (";if(b!="ignore"){f+=" ("+g+" && !"+E+" ";if(w){f+=" && self._opts.unknownFormats.indexOf("+g+") == -1 "}f+=") || "}f+=" ("+E+" && "+A+" == '"+r+"' && !(typeof "+E+" == 'function' ? ";if(e.async){f+=" (async"+s+" ? await "+E+"("+d+") : "+E+"("+d+")) "}else{f+=" "+E+"("+d+") "}f+=" : "+E+".test("+d+"))))) {"}else{var E=e.formats[c];if(!E){if(b=="ignore"){e.logger.warn('unknown format "'+c+'" ignored in schema at path "'+e.errSchemaPath+'"');if(p){f+=" if (true) { "}return f}else if(w&&b.indexOf(c)>=0){if(p){f+=" if (true) { "}return f}else{throw new Error('unknown format "'+c+'" is used in schema at path "'+e.errSchemaPath+'"')}}var F=typeof E=="object"&&!(E instanceof RegExp)&&E.validate;var A=F&&E.type||"string";if(F){var j=E.async===true;E=E.validate}if(A!=r){if(p){f+=" if (true) { "}return f}if(j){if(!e.async)throw new Error("async format in sync schema");var h="formats"+e.util.getProperty(c)+".validate";f+=" if (!(await "+h+"("+d+"))) { "}else{f+=" if (! ";var h="formats"+e.util.getProperty(c);if(F)h+=".validate";if(typeof E=="function"){f+=" "+h+"("+d+") "}else{f+=" "+h+".test("+d+") "}f+=") { "}}var O=O||[];O.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { format: ";if(a){f+=""+g}else{f+=""+e.util.toQuotedString(c)}f+=" } ";if(e.opts.messages!==false){f+=" , message: 'should match format \"";if(a){f+="' + "+g+" + '"}else{f+=""+e.util.escapeQuotes(c)}f+="\"' "}if(e.opts.verbose){f+=" , schema: ";if(a){f+="validate.schema"+i}else{f+=""+e.util.toQuotedString(c)}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var y=f;f=O.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+y+"]); "}else{f+=" validate.errors = ["+y+"]; return false; "}}else{f+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } ";if(p){f+=" else { "}return f}},1774:e=>{"use strict";e.exports=function generate_if(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g="errs__"+s;var b=e.util.copy(e);b.level++;var w="valid"+b.level;var E=e.schema["then"],F=e.schema["else"],A=E!==undefined&&(e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===false:e.util.schemaHasRules(E,e.RULES.all)),j=F!==undefined&&(e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===false:e.util.schemaHasRules(F,e.RULES.all)),h=b.baseId;if(A||j){var O;b.createErrors=false;b.schema=c;b.schemaPath=i;b.errSchemaPath=v;f+=" var "+g+" = errors; var "+a+" = true; ";var y=e.compositeRule;e.compositeRule=b.compositeRule=true;f+=" "+e.validate(b)+" ";b.baseId=h;b.createErrors=true;f+=" errors = "+g+"; if (vErrors !== null) { if ("+g+") vErrors.length = "+g+"; else vErrors = null; } ";e.compositeRule=b.compositeRule=y;if(A){f+=" if ("+w+") { ";b.schema=e.schema["then"];b.schemaPath=e.schemaPath+".then";b.errSchemaPath=e.errSchemaPath+"/then";f+=" "+e.validate(b)+" ";b.baseId=h;f+=" "+a+" = "+w+"; ";if(A&&j){O="ifClause"+s;f+=" var "+O+" = 'then'; "}else{O="'then'"}f+=" } ";if(j){f+=" else { "}}else{f+=" if (!"+w+") { "}if(j){b.schema=e.schema["else"];b.schemaPath=e.schemaPath+".else";b.errSchemaPath=e.errSchemaPath+"/else";f+=" "+e.validate(b)+" ";b.baseId=h;f+=" "+a+" = "+w+"; ";if(A&&j){O="ifClause"+s;f+=" var "+O+" = 'else'; "}else{O="'else'"}f+=" } "}f+=" if (!"+a+") { var err = ";if(e.createErrors!==false){f+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { failingKeyword: "+O+" } ";if(e.opts.messages!==false){f+=" , message: 'should match \"' + "+O+" + '\" schema' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}f+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(vErrors); "}else{f+=" validate.errors = vErrors; return false; "}}f+=" } ";if(p){f+=" else { "}}else{if(p){f+=" if (true) { "}}return f}},3649:(e,n,r)=>{"use strict";e.exports={$ref:r(4377),allOf:r(4511),anyOf:r(1888),$comment:r(9963),const:r(5272),contains:r(6839),dependencies:r(7814),enum:r(9645),format:r(7987),if:r(1774),items:r(4074),maximum:r(5848),minimum:r(5848),maxItems:r(7682),minItems:r(7682),maxLength:r(6262),minLength:r(6262),maxProperties:r(8125),minProperties:r(8125),multipleOf:r(8079),not:r(8138),oneOf:r(7975),pattern:r(2526),properties:r(9997),propertyNames:r(1538),required:r(6828),uniqueItems:r(9841),validate:r(4327)}},4074:e=>{"use strict";e.exports=function generate_items(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g="errs__"+s;var b=e.util.copy(e);var w="";b.level++;var E="valid"+b.level;var F="i"+s,A=b.dataLevel=e.dataLevel+1,j="data"+A,h=e.baseId;f+="var "+g+" = errors;var "+a+";";if(Array.isArray(c)){var O=e.schema.additionalItems;if(O===false){f+=" "+a+" = "+d+".length <= "+c.length+"; ";var y=v;v=e.errSchemaPath+"/additionalItems";f+=" if (!"+a+") { ";var R=R||[];R.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { limit: "+c.length+" } ";if(e.opts.messages!==false){f+=" , message: 'should NOT have more than "+c.length+" items' "}if(e.opts.verbose){f+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var m=f;f=R.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+m+"]); "}else{f+=" validate.errors = ["+m+"]; return false; "}}else{f+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } ";v=y;if(p){w+="}";f+=" else { "}}var I=c;if(I){var x,C=-1,T=I.length-1;while(C0||x===false:e.util.schemaHasRules(x,e.RULES.all)){f+=" "+E+" = true; if ("+d+".length > "+C+") { ";var z=d+"["+C+"]";b.schema=x;b.schemaPath=i+"["+C+"]";b.errSchemaPath=v+"/"+C;b.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers,true);b.dataPathArr[A]=C;var N=e.validate(b);b.baseId=h;if(e.util.varOccurences(N,j)<2){f+=" "+e.util.varReplace(N,j,z)+" "}else{f+=" var "+j+" = "+z+"; "+N+" "}f+=" } ";if(p){f+=" if ("+E+") { ";w+="}"}}}}if(typeof O=="object"&&(e.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===false:e.util.schemaHasRules(O,e.RULES.all))){b.schema=O;b.schemaPath=e.schemaPath+".additionalItems";b.errSchemaPath=e.errSchemaPath+"/additionalItems";f+=" "+E+" = true; if ("+d+".length > "+c.length+") { for (var "+F+" = "+c.length+"; "+F+" < "+d+".length; "+F+"++) { ";b.errorPath=e.util.getPathExpr(e.errorPath,F,e.opts.jsonPointers,true);var z=d+"["+F+"]";b.dataPathArr[A]=F;var N=e.validate(b);b.baseId=h;if(e.util.varOccurences(N,j)<2){f+=" "+e.util.varReplace(N,j,z)+" "}else{f+=" var "+j+" = "+z+"; "+N+" "}if(p){f+=" if (!"+E+") break; "}f+=" } } ";if(p){f+=" if ("+E+") { ";w+="}"}}}else if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===false:e.util.schemaHasRules(c,e.RULES.all)){b.schema=c;b.schemaPath=i;b.errSchemaPath=v;f+=" for (var "+F+" = "+0+"; "+F+" < "+d+".length; "+F+"++) { ";b.errorPath=e.util.getPathExpr(e.errorPath,F,e.opts.jsonPointers,true);var z=d+"["+F+"]";b.dataPathArr[A]=F;var N=e.validate(b);b.baseId=h;if(e.util.varOccurences(N,j)<2){f+=" "+e.util.varReplace(N,j,z)+" "}else{f+=" var "+j+" = "+z+"; "+N+" "}if(p){f+=" if (!"+E+") break; "}f+=" }"}if(p){f+=" "+w+" if ("+g+" == errors) {"}return f}},8079:e=>{"use strict";e.exports=function generate_multipleOf(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a=e.opts.$data&&c&&c.$data,g;if(a){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";g="schema"+s}else{g=c}if(!(a||typeof c=="number")){throw new Error(n+" must be number")}f+="var division"+s+";if (";if(a){f+=" "+g+" !== undefined && ( typeof "+g+" != 'number' || "}f+=" (division"+s+" = "+d+" / "+g+", ";if(e.opts.multipleOfPrecision){f+=" Math.abs(Math.round(division"+s+") - division"+s+") > 1e-"+e.opts.multipleOfPrecision+" "}else{f+=" division"+s+" !== parseInt(division"+s+") "}f+=" ) ";if(a){f+=" ) "}f+=" ) { ";var b=b||[];b.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { multipleOf: "+g+" } ";if(e.opts.messages!==false){f+=" , message: 'should be multiple of ";if(a){f+="' + "+g}else{f+=""+g+"'"}}if(e.opts.verbose){f+=" , schema: ";if(a){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var w=f;f=b.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+w+"]); "}else{f+=" validate.errors = ["+w+"]; return false; "}}else{f+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+="} ";if(p){f+=" else { "}return f}},8138:e=>{"use strict";e.exports=function generate_not(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="errs__"+s;var g=e.util.copy(e);g.level++;var b="valid"+g.level;if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===false:e.util.schemaHasRules(c,e.RULES.all)){g.schema=c;g.schemaPath=i;g.errSchemaPath=v;f+=" var "+a+" = errors; ";var w=e.compositeRule;e.compositeRule=g.compositeRule=true;g.createErrors=false;var E;if(g.opts.allErrors){E=g.opts.allErrors;g.opts.allErrors=false}f+=" "+e.validate(g)+" ";g.createErrors=true;if(E)g.opts.allErrors=E;e.compositeRule=g.compositeRule=w;f+=" if ("+b+") { ";var F=F||[];F.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: {} ";if(e.opts.messages!==false){f+=" , message: 'should NOT be valid' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var A=f;f=F.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+A+"]); "}else{f+=" validate.errors = ["+A+"]; return false; "}}else{f+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } else { errors = "+a+"; if (vErrors !== null) { if ("+a+") vErrors.length = "+a+"; else vErrors = null; } ";if(e.opts.allErrors){f+=" } "}}else{f+=" var err = ";if(e.createErrors!==false){f+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: {} ";if(e.opts.messages!==false){f+=" , message: 'should NOT be valid' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}f+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(p){f+=" if (false) { "}}return f}},7975:e=>{"use strict";e.exports=function generate_oneOf(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g="errs__"+s;var b=e.util.copy(e);var w="";b.level++;var E="valid"+b.level;var F=b.baseId,A="prevValid"+s,j="passingSchemas"+s;f+="var "+g+" = errors , "+A+" = false , "+a+" = false , "+j+" = null; ";var h=e.compositeRule;e.compositeRule=b.compositeRule=true;var O=c;if(O){var y,R=-1,m=O.length-1;while(R0||y===false:e.util.schemaHasRules(y,e.RULES.all)){b.schema=y;b.schemaPath=i+"["+R+"]";b.errSchemaPath=v+"/"+R;f+=" "+e.validate(b)+" ";b.baseId=F}else{f+=" var "+E+" = true; "}if(R){f+=" if ("+E+" && "+A+") { "+a+" = false; "+j+" = ["+j+", "+R+"]; } else { ";w+="}"}f+=" if ("+E+") { "+a+" = "+A+" = true; "+j+" = "+R+"; }"}}e.compositeRule=b.compositeRule=h;f+=""+w+"if (!"+a+") { var err = ";if(e.createErrors!==false){f+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { passingSchemas: "+j+" } ";if(e.opts.messages!==false){f+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}f+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(vErrors); "}else{f+=" validate.errors = vErrors; return false; "}}f+="} else { errors = "+g+"; if (vErrors !== null) { if ("+g+") vErrors.length = "+g+"; else vErrors = null; }";if(e.opts.allErrors){f+=" } "}return f}},2526:e=>{"use strict";e.exports=function generate_pattern(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a=e.opts.$data&&c&&c.$data,g;if(a){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";g="schema"+s}else{g=c}var b=a?"(new RegExp("+g+"))":e.usePattern(c);f+="if ( ";if(a){f+=" ("+g+" !== undefined && typeof "+g+" != 'string') || "}f+=" !"+b+".test("+d+") ) { ";var w=w||[];w.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { pattern: ";if(a){f+=""+g}else{f+=""+e.util.toQuotedString(c)}f+=" } ";if(e.opts.messages!==false){f+=" , message: 'should match pattern \"";if(a){f+="' + "+g+" + '"}else{f+=""+e.util.escapeQuotes(c)}f+="\"' "}if(e.opts.verbose){f+=" , schema: ";if(a){f+="validate.schema"+i}else{f+=""+e.util.toQuotedString(c)}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var E=f;f=w.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+E+"]); "}else{f+=" validate.errors = ["+E+"]; return false; "}}else{f+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+="} ";if(p){f+=" else { "}return f}},9997:e=>{"use strict";e.exports=function generate_properties(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="errs__"+s;var g=e.util.copy(e);var b="";g.level++;var w="valid"+g.level;var E="key"+s,F="idx"+s,A=g.dataLevel=e.dataLevel+1,j="data"+A,h="dataProperties"+s;var O=Object.keys(c||{}).filter(notProto),y=e.schema.patternProperties||{},R=Object.keys(y).filter(notProto),m=e.schema.additionalProperties,I=O.length||R.length,x=m===false,C=typeof m=="object"&&Object.keys(m).length,T=e.opts.removeAdditional,z=x||C||T,N=e.opts.ownProperties,U=e.baseId;var q=e.schema.required;if(q&&!(e.opts.$data&&q.$data)&&q.length8){f+=" || validate.schema"+i+".hasOwnProperty("+E+") "}else{var L=O;if(L){var B,Q=-1,W=L.length-1;while(Q0||$===false:e.util.schemaHasRules($,e.RULES.all)){var ee=e.util.getProperty(B),K=d+ee,ne=P&&$.default!==undefined;g.schema=$;g.schemaPath=i+ee;g.errSchemaPath=v+"/"+e.util.escapeFragment(B);g.errorPath=e.util.getPath(e.errorPath,B,e.opts.jsonPointers);g.dataPathArr[A]=e.util.toQuotedString(B);var o=e.validate(g);g.baseId=U;if(e.util.varOccurences(o,j)<2){o=e.util.varReplace(o,j,K);var re=K}else{var re=j;f+=" var "+j+" = "+K+"; "}if(ne){f+=" "+o+" "}else{if(M&&M[B]){f+=" if ( "+re+" === undefined ";if(N){f+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(B)+"') "}f+=") { "+w+" = false; ";var G=e.errorPath,Z=v,fe=e.util.escapeQuotes(B);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(G,B,e.opts.jsonPointers)}v=e.errSchemaPath+"/required";var S=S||[];S.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { missingProperty: '"+fe+"' } ";if(e.opts.messages!==false){f+=" , message: '";if(e.opts._errorDataPathProperty){f+="is a required property"}else{f+="should have required property \\'"+fe+"\\'"}f+="' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var k=f;f=S.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+k+"]); "}else{f+=" validate.errors = ["+k+"]; return false; "}}else{f+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}v=Z;e.errorPath=G;f+=" } else { "}else{if(p){f+=" if ( "+re+" === undefined ";if(N){f+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(B)+"') "}f+=") { "+w+" = true; } else { "}else{f+=" if ("+re+" !== undefined ";if(N){f+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(B)+"') "}f+=" ) { "}}f+=" "+o+" } "}}if(p){f+=" if ("+w+") { ";b+="}"}}}}if(R.length){var se=R;if(se){var D,le=-1,ce=se.length-1;while(le0||$===false:e.util.schemaHasRules($,e.RULES.all)){g.schema=$;g.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(D);g.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(D);if(N){f+=" "+h+" = "+h+" || Object.keys("+d+"); for (var "+F+"=0; "+F+"<"+h+".length; "+F+"++) { var "+E+" = "+h+"["+F+"]; "}else{f+=" for (var "+E+" in "+d+") { "}f+=" if ("+e.usePattern(D)+".test("+E+")) { ";g.errorPath=e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers);var K=d+"["+E+"]";g.dataPathArr[A]=E;var o=e.validate(g);g.baseId=U;if(e.util.varOccurences(o,j)<2){f+=" "+e.util.varReplace(o,j,K)+" "}else{f+=" var "+j+" = "+K+"; "+o+" "}if(p){f+=" if (!"+w+") break; "}f+=" } ";if(p){f+=" else "+w+" = true; "}f+=" } ";if(p){f+=" if ("+w+") { ";b+="}"}}}}}if(p){f+=" "+b+" if ("+a+" == errors) {"}return f}},1538:e=>{"use strict";e.exports=function generate_propertyNames(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="errs__"+s;var g=e.util.copy(e);var b="";g.level++;var w="valid"+g.level;f+="var "+a+" = errors;";if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===false:e.util.schemaHasRules(c,e.RULES.all)){g.schema=c;g.schemaPath=i;g.errSchemaPath=v;var E="key"+s,F="idx"+s,A="i"+s,j="' + "+E+" + '",h=g.dataLevel=e.dataLevel+1,O="data"+h,y="dataProperties"+s,R=e.opts.ownProperties,m=e.baseId;if(R){f+=" var "+y+" = undefined; "}if(R){f+=" "+y+" = "+y+" || Object.keys("+d+"); for (var "+F+"=0; "+F+"<"+y+".length; "+F+"++) { var "+E+" = "+y+"["+F+"]; "}else{f+=" for (var "+E+" in "+d+") { "}f+=" var startErrs"+s+" = errors; ";var I=E;var x=e.compositeRule;e.compositeRule=g.compositeRule=true;var C=e.validate(g);g.baseId=m;if(e.util.varOccurences(C,O)<2){f+=" "+e.util.varReplace(C,O,I)+" "}else{f+=" var "+O+" = "+I+"; "+C+" "}e.compositeRule=g.compositeRule=x;f+=" if (!"+w+") { for (var "+A+"=startErrs"+s+"; "+A+"{"use strict";e.exports=function generate_ref(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.errSchemaPath+"/"+n;var v=!e.opts.allErrors;var p="data"+(l||"");var d="valid"+s;var a,g;if(c=="#"||c=="#/"){if(e.isRoot){a=e.async;g="validate"}else{a=e.root.schema.$async===true;g="root.refVal[0]"}}else{var b=e.resolveRef(e.baseId,c,e.isRoot);if(b===undefined){var w=e.MissingRefError.message(e.baseId,c);if(e.opts.missingRefs=="fail"){e.logger.error(w);var E=E||[];E.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(i)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ";if(e.opts.messages!==false){f+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "}if(e.opts.verbose){f+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}f+=" } "}else{f+=" {} "}var F=f;f=E.pop();if(!e.compositeRule&&v){if(e.async){f+=" throw new ValidationError(["+F+"]); "}else{f+=" validate.errors = ["+F+"]; return false; "}}else{f+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(v){f+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(w);if(v){f+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,c,w)}}else if(b.inline){var A=e.util.copy(e);A.level++;var j="valid"+A.level;A.schema=b.schema;A.schemaPath="";A.errSchemaPath=c;var h=e.validate(A).replace(/validate\.schema/g,b.code);f+=" "+h+" ";if(v){f+=" if ("+j+") { "}}else{a=b.$async===true||e.async&&b.$async!==false;g=b.code}}if(g){var E=E||[];E.push(f);f="";if(e.opts.passContext){f+=" "+g+".call(this, "}else{f+=" "+g+"( "}f+=" "+p+", (dataPath || '')";if(e.errorPath!='""'){f+=" + "+e.errorPath}var O=l?"data"+(l-1||""):"parentData",y=l?e.dataPathArr[l]:"parentDataProperty";f+=" , "+O+" , "+y+", rootData) ";var R=f;f=E.pop();if(a){if(!e.async)throw new Error("async schema referenced by sync schema");if(v){f+=" var "+d+"; "}f+=" try { await "+R+"; ";if(v){f+=" "+d+" = true; "}f+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(v){f+=" "+d+" = false; "}f+=" } ";if(v){f+=" if ("+d+") { "}}else{f+=" if (!"+R+") { if (vErrors === null) vErrors = "+g+".errors; else vErrors = vErrors.concat("+g+".errors); errors = vErrors.length; } ";if(v){f+=" else { "}}}return f}},6828:e=>{"use strict";e.exports=function generate_required(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}var w="schema"+s;if(!g){if(c.length0||O===false:e.util.schemaHasRules(O,e.RULES.all)))){E[E.length]=A}}}}else{var E=c}}if(g||E.length){var y=e.errorPath,R=g||E.length>=e.opts.loopRequired,m=e.opts.ownProperties;if(p){f+=" var missing"+s+"; ";if(R){if(!g){f+=" var "+w+" = validate.schema"+i+"; "}var I="i"+s,x="schema"+s+"["+I+"]",C="' + "+x+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(y,x,e.opts.jsonPointers)}f+=" var "+a+" = true; ";if(g){f+=" if (schema"+s+" === undefined) "+a+" = true; else if (!Array.isArray(schema"+s+")) "+a+" = false; else {"}f+=" for (var "+I+" = 0; "+I+" < "+w+".length; "+I+"++) { "+a+" = "+d+"["+w+"["+I+"]] !== undefined ";if(m){f+=" && Object.prototype.hasOwnProperty.call("+d+", "+w+"["+I+"]) "}f+="; if (!"+a+") break; } ";if(g){f+=" } "}f+=" if (!"+a+") { ";var T=T||[];T.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { missingProperty: '"+C+"' } ";if(e.opts.messages!==false){f+=" , message: '";if(e.opts._errorDataPathProperty){f+="is a required property"}else{f+="should have required property \\'"+C+"\\'"}f+="' "}if(e.opts.verbose){f+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var z=f;f=T.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+z+"]); "}else{f+=" validate.errors = ["+z+"]; return false; "}}else{f+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } else { "}else{f+=" if ( ";var N=E;if(N){var U,I=-1,q=N.length-1;while(I{"use strict";e.exports=function generate_uniqueItems(e,n,r){var f=" ";var s=e.level;var l=e.dataLevel;var c=e.schema[n];var i=e.schemaPath+e.util.getProperty(n);var v=e.errSchemaPath+"/"+n;var p=!e.opts.allErrors;var d="data"+(l||"");var a="valid"+s;var g=e.opts.$data&&c&&c.$data,b;if(g){f+=" var schema"+s+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ";b="schema"+s}else{b=c}if((c||g)&&e.opts.uniqueItems!==false){if(g){f+=" var "+a+"; if ("+b+" === false || "+b+" === undefined) "+a+" = true; else if (typeof "+b+" != 'boolean') "+a+" = false; else { "}f+=" var i = "+d+".length , "+a+" = true , j; if (i > 1) { ";var w=e.schema.items&&e.schema.items.type,E=Array.isArray(w);if(!w||w=="object"||w=="array"||E&&(w.indexOf("object")>=0||w.indexOf("array")>=0)){f+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+a+" = false; break outer; } } } "}else{f+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var F="checkDataType"+(E?"s":"");f+=" if ("+e.util[F](w,"item",e.opts.strictNumbers,true)+") continue; ";if(E){f+=" if (typeof item == 'string') item = '\"' + item; "}f+=" if (typeof itemIndices[item] == 'number') { "+a+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}f+=" } ";if(g){f+=" } "}f+=" if (!"+a+") { ";var A=A||[];A.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(v)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){f+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){f+=" , schema: ";if(g){f+="validate.schema"+i}else{f+=""+c}f+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}f+=" } "}else{f+=" {} "}var j=f;f=A.pop();if(!e.compositeRule&&p){if(e.async){f+=" throw new ValidationError(["+j+"]); "}else{f+=" validate.errors = ["+j+"]; return false; "}}else{f+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}f+=" } ";if(p){f+=" else { "}}else{if(p){f+=" if (true) { "}}return f}},4327:e=>{"use strict";e.exports=function generate_validate(e,n,r){var f="";var s=e.schema.$async===true,l=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),c=e.self._getId(e.schema);if(e.opts.strictKeywords){var i=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(i){var v="unknown keyword: "+i;if(e.opts.strictKeywords==="log")e.logger.warn(v);else throw new Error(v)}}if(e.isTop){f+=" var validate = ";if(s){e.async=true;f+="async "}f+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(c&&(e.opts.sourceCode||e.opts.processCode)){f+=" "+("/*# sourceURL="+c+" */")+" "}}if(typeof e.schema=="boolean"||!(l||e.schema.$ref)){var n="false schema";var p=e.level;var d=e.dataLevel;var a=e.schema[n];var g=e.schemaPath+e.util.getProperty(n);var b=e.errSchemaPath+"/"+n;var w=!e.opts.allErrors;var E;var F="data"+(d||"");var A="valid"+p;if(e.schema===false){if(e.isTop){w=true}else{f+=" var "+A+" = false; "}var j=j||[];j.push(f);f="";if(e.createErrors!==false){f+=" { keyword: '"+(E||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(b)+" , params: {} ";if(e.opts.messages!==false){f+=" , message: 'boolean schema is false' "}if(e.opts.verbose){f+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+F+" "}f+=" } "}else{f+=" {} "}var h=f;f=j.pop();if(!e.compositeRule&&w){if(e.async){f+=" throw new ValidationError(["+h+"]); "}else{f+=" validate.errors = ["+h+"]; return false; "}}else{f+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(s){f+=" return data; "}else{f+=" validate.errors = null; return true; "}}else{f+=" var "+A+" = true; "}}if(e.isTop){f+=" }; return validate; "}return f}if(e.isTop){var O=e.isTop,p=e.level=0,d=e.dataLevel=0,F="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 y="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(y);else throw new Error(y)}f+=" var vErrors = null; ";f+=" var errors = 0; ";f+=" if (rootData === undefined) rootData = data; "}else{var p=e.level,d=e.dataLevel,F="data"+(d||"");if(c)e.baseId=e.resolve.url(e.baseId,c);if(s&&!e.async)throw new Error("async schema in sync schema");f+=" var errs_"+p+" = errors;"}var A="valid"+p,w=!e.opts.allErrors,R="",m="";var E;var I=e.schema.type,x=Array.isArray(I);if(I&&e.opts.nullable&&e.schema.nullable===true){if(x){if(I.indexOf("null")==-1)I=I.concat("null")}else if(I!="null"){I=[I,"null"];x=true}}if(x&&I.length==1){I=I[0];x=false}if(e.schema.$ref&&l){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){l=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){f+=" "+e.RULES.all.$comment.code(e,"$comment")}if(I){if(e.opts.coerceTypes){var C=e.util.coerceToTypes(e.opts.coerceTypes,I)}var T=e.RULES.types[I];if(C||x||T===true||T&&!$shouldUseGroup(T)){var g=e.schemaPath+".type",b=e.errSchemaPath+"/type";var g=e.schemaPath+".type",b=e.errSchemaPath+"/type",z=x?"checkDataTypes":"checkDataType";f+=" if ("+e.util[z](I,F,e.opts.strictNumbers,true)+") { ";if(C){var N="dataType"+p,U="coerced"+p;f+=" var "+N+" = typeof "+F+"; var "+U+" = undefined; ";if(e.opts.coerceTypes=="array"){f+=" if ("+N+" == 'object' && Array.isArray("+F+") && "+F+".length == 1) { "+F+" = "+F+"[0]; "+N+" = typeof "+F+"; if ("+e.util.checkDataType(e.schema.type,F,e.opts.strictNumbers)+") "+U+" = "+F+"; } "}f+=" if ("+U+" !== undefined) ; ";var q=C;if(q){var M,L=-1,B=q.length-1;while(L{"use strict";var f=/^[a-z_$][a-z0-9_$-]*$/i;var s=r(2273);var l=r(3016);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,n){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!f.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(n){this.validateKeyword(n,true);var l=n.type;if(Array.isArray(l)){for(var c=0;c{e.exports=(e=>{const n=process.versions.node.split(".").map(e=>parseInt(e,10));e=e.split(".").map(e=>parseInt(e,10));return n[0]>e[0]||n[0]===e[0]&&(n[1]>e[1]||n[1]===e[1]&&n[2]>=e[2])})},4010:(e,n,r)=>{var f=r(7371);var s=r(5622);e.exports=function expandTilde(e){var n=f();if(e.charCodeAt(0)===126){if(e.charCodeAt(1)===43){return s.join(process.cwd(),e.slice(2))}return n?s.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 r,f,s;if(Array.isArray(e)){r=e.length;if(r!=n.length)return false;for(f=r;f--!==0;)if(!equal(e[f],n[f]))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();s=Object.keys(e);r=s.length;if(r!==Object.keys(n).length)return false;for(f=r;f--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[f]))return false;for(f=r;f--!==0;){var l=s[f];if(!equal(e[l],n[l]))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 r=typeof n.cycles==="boolean"?n.cycles:false;var f=n.cmp&&function(e){return function(n){return function(r,f){var s={key:r,value:n[r]};var l={key:f,value:n[f]};return e(s,l)}}}(n.cmp);var s=[];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,l;if(Array.isArray(e)){l="[";for(n=0;n{"use strict";const f=r(7690);const s=r(5622);const l=r(7038).mkdirsSync;const c=r(4856).utimesMillisSync;const i=r(4666);function copySync(e,n,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:f,destStat:s}=i.checkPathsSync(e,n,"copy");i.checkParentPathsSync(e,f,n,"copy");return handleFilterAndCopy(s,e,n,r)}function handleFilterAndCopy(e,n,r,c){if(c.filter&&!c.filter(n,r))return;const i=s.dirname(r);if(!f.existsSync(i))l(i);return startCopy(e,n,r,c)}function startCopy(e,n,r,f){if(f.filter&&!f.filter(n,r))return;return getStats(e,n,r,f)}function getStats(e,n,r,s){const l=s.dereference?f.statSync:f.lstatSync;const c=l(n);if(c.isDirectory())return onDir(c,e,n,r,s);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,n,r,s);else if(c.isSymbolicLink())return onLink(e,n,r,s)}function onFile(e,n,r,f,s){if(!n)return copyFile(e,r,f,s);return mayCopyFile(e,r,f,s)}function mayCopyFile(e,n,r,s){if(s.overwrite){f.unlinkSync(r);return copyFile(e,n,r,s)}else if(s.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,n,r,s){f.copyFileSync(n,r);if(s.preserveTimestamps)handleTimestamps(e.mode,n,r);return setDestMode(r,e.mode)}function handleTimestamps(e,n,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(n,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,n){return setDestMode(e,n|128)}function setDestMode(e,n){return f.chmodSync(e,n)}function setDestTimestamps(e,n){const r=f.statSync(e);return c(n,r.atime,r.mtime)}function onDir(e,n,r,f,s){if(!n)return mkDirAndCopy(e.mode,r,f,s);if(n&&!n.isDirectory()){throw new Error(`Cannot overwrite non-directory '${f}' with directory '${r}'.`)}return copyDir(r,f,s)}function mkDirAndCopy(e,n,r,s){f.mkdirSync(r);copyDir(n,r,s);return setDestMode(r,e)}function copyDir(e,n,r){f.readdirSync(e).forEach(f=>copyDirItem(f,e,n,r))}function copyDirItem(e,n,r,f){const l=s.join(n,e);const c=s.join(r,e);const{destStat:v}=i.checkPathsSync(l,c,"copy");return startCopy(v,l,c,f)}function onLink(e,n,r,l){let c=f.readlinkSync(n);if(l.dereference){c=s.resolve(process.cwd(),c)}if(!e){return f.symlinkSync(c,r)}else{let e;try{e=f.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return f.symlinkSync(c,r);throw e}if(l.dereference){e=s.resolve(process.cwd(),e)}if(i.isSrcSubdir(c,e)){throw new Error(`Cannot copy '${c}' to a subdirectory of itself, '${e}'.`)}if(f.statSync(r).isDirectory()&&i.isSrcSubdir(e,c)){throw new Error(`Cannot overwrite '${e}' with '${c}'.`)}return copyLink(c,r)}}function copyLink(e,n){f.unlinkSync(n);return f.symlinkSync(e,n)}e.exports=copySync},3642:(e,n,r)=>{"use strict";e.exports={copySync:r(4749)}},5154:(e,n,r)=>{"use strict";const f=r(7690);const s=r(5622);const l=r(7038).mkdirs;const c=r(8640).pathExists;const i=r(4856).utimesMillis;const v=r(4666);function copy(e,n,r,f){if(typeof r==="function"&&!f){f=r;r={}}else if(typeof r==="function"){r={filter:r}}f=f||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}v.checkPaths(e,n,"copy",(s,l)=>{if(s)return f(s);const{srcStat:c,destStat:i}=l;v.checkParentPaths(e,c,n,"copy",s=>{if(s)return f(s);if(r.filter)return handleFilter(checkParentDir,i,e,n,r,f);return checkParentDir(i,e,n,r,f)})})}function checkParentDir(e,n,r,f,i){const v=s.dirname(r);c(v,(s,c)=>{if(s)return i(s);if(c)return startCopy(e,n,r,f,i);l(v,s=>{if(s)return i(s);return startCopy(e,n,r,f,i)})})}function handleFilter(e,n,r,f,s,l){Promise.resolve(s.filter(r,f)).then(c=>{if(c)return e(n,r,f,s,l);return l()},e=>l(e))}function startCopy(e,n,r,f,s){if(f.filter)return handleFilter(getStats,e,n,r,f,s);return getStats(e,n,r,f,s)}function getStats(e,n,r,s,l){const c=s.dereference?f.stat:f.lstat;c(n,(f,c)=>{if(f)return l(f);if(c.isDirectory())return onDir(c,e,n,r,s,l);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,n,r,s,l);else if(c.isSymbolicLink())return onLink(e,n,r,s,l)})}function onFile(e,n,r,f,s,l){if(!n)return copyFile(e,r,f,s,l);return mayCopyFile(e,r,f,s,l)}function mayCopyFile(e,n,r,s,l){if(s.overwrite){f.unlink(r,f=>{if(f)return l(f);return copyFile(e,n,r,s,l)})}else if(s.errorOnExist){return l(new Error(`'${r}' already exists`))}else return l()}function copyFile(e,n,r,s,l){f.copyFile(n,r,f=>{if(f)return l(f);if(s.preserveTimestamps)return handleTimestampsAndMode(e.mode,n,r,l);return setDestMode(r,e.mode,l)})}function handleTimestampsAndMode(e,n,r,f){if(fileIsNotWritable(e)){return makeFileWritable(r,e,s=>{if(s)return f(s);return setDestTimestampsAndMode(e,n,r,f)})}return setDestTimestampsAndMode(e,n,r,f)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,n,r){return setDestMode(e,n|128,r)}function setDestTimestampsAndMode(e,n,r,f){setDestTimestamps(n,r,n=>{if(n)return f(n);return setDestMode(r,e,f)})}function setDestMode(e,n,r){return f.chmod(e,n,r)}function setDestTimestamps(e,n,r){f.stat(e,(e,f)=>{if(e)return r(e);return i(n,f.atime,f.mtime,r)})}function onDir(e,n,r,f,s,l){if(!n)return mkDirAndCopy(e.mode,r,f,s,l);if(n&&!n.isDirectory()){return l(new Error(`Cannot overwrite non-directory '${f}' with directory '${r}'.`))}return copyDir(r,f,s,l)}function mkDirAndCopy(e,n,r,s,l){f.mkdir(r,f=>{if(f)return l(f);copyDir(n,r,s,n=>{if(n)return l(n);return setDestMode(r,e,l)})})}function copyDir(e,n,r,s){f.readdir(e,(f,l)=>{if(f)return s(f);return copyDirItems(l,e,n,r,s)})}function copyDirItems(e,n,r,f,s){const l=e.pop();if(!l)return s();return copyDirItem(e,l,n,r,f,s)}function copyDirItem(e,n,r,f,l,c){const i=s.join(r,n);const p=s.join(f,n);v.checkPaths(i,p,"copy",(n,s)=>{if(n)return c(n);const{destStat:v}=s;startCopy(v,i,p,l,n=>{if(n)return c(n);return copyDirItems(e,r,f,l,c)})})}function onLink(e,n,r,l,c){f.readlink(n,(n,i)=>{if(n)return c(n);if(l.dereference){i=s.resolve(process.cwd(),i)}if(!e){return f.symlink(i,r,c)}else{f.readlink(r,(n,p)=>{if(n){if(n.code==="EINVAL"||n.code==="UNKNOWN")return f.symlink(i,r,c);return c(n)}if(l.dereference){p=s.resolve(process.cwd(),p)}if(v.isSrcSubdir(i,p)){return c(new Error(`Cannot copy '${i}' to a subdirectory of itself, '${p}'.`))}if(e.isDirectory()&&v.isSrcSubdir(p,i)){return c(new Error(`Cannot overwrite '${p}' with '${i}'.`))}return copyLink(i,r,c)})}})}function copyLink(e,n,r){f.unlink(n,s=>{if(s)return r(s);return f.symlink(e,n,r)})}e.exports=copy},8:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;e.exports={copy:f(r(5154))}},5053:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(7690);const l=r(5622);const c=r(7038);const i=r(6308);const v=f(function emptyDir(e,n){n=n||function(){};s.readdir(e,(r,f)=>{if(r)return c.mkdirs(e,n);f=f.map(n=>l.join(e,n));deleteItem();function deleteItem(){const e=f.pop();if(!e)return n();i.remove(e,e=>{if(e)return n(e);deleteItem()})}})});function emptyDirSync(e){let n;try{n=s.readdirSync(e)}catch{return c.mkdirsSync(e)}n.forEach(n=>{n=l.join(e,n);i.removeSync(n)})}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:v,emptydir:v}},2835:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(5622);const l=r(7690);const c=r(7038);function createFile(e,n){function makeFile(){l.writeFile(e,"",e=>{if(e)return n(e);n()})}l.stat(e,(r,f)=>{if(!r&&f.isFile())return n();const i=s.dirname(e);l.stat(i,(e,r)=>{if(e){if(e.code==="ENOENT"){return c.mkdirs(i,e=>{if(e)return n(e);makeFile()})}return n(e)}if(r.isDirectory())makeFile();else{l.readdir(i,e=>{if(e)return n(e)})}})})}function createFileSync(e){let n;try{n=l.statSync(e)}catch{}if(n&&n.isFile())return;const r=s.dirname(e);try{if(!l.statSync(r).isDirectory()){l.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")c.mkdirsSync(r);else throw e}l.writeFileSync(e,"")}e.exports={createFile:f(createFile),createFileSync:createFileSync}},4079:(e,n,r)=>{"use strict";const f=r(2835);const s=r(2739);const l=r(8932);e.exports={createFile:f.createFile,createFileSync:f.createFileSync,ensureFile:f.createFile,ensureFileSync:f.createFileSync,createLink:s.createLink,createLinkSync:s.createLinkSync,ensureLink:s.createLink,ensureLinkSync:s.createLinkSync,createSymlink:l.createSymlink,createSymlinkSync:l.createSymlinkSync,ensureSymlink:l.createSymlink,ensureSymlinkSync:l.createSymlinkSync}},2739:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(5622);const l=r(7690);const c=r(7038);const i=r(8640).pathExists;function createLink(e,n,r){function makeLink(e,n){l.link(e,n,e=>{if(e)return r(e);r(null)})}i(n,(f,v)=>{if(f)return r(f);if(v)return r(null);l.lstat(e,f=>{if(f){f.message=f.message.replace("lstat","ensureLink");return r(f)}const l=s.dirname(n);i(l,(f,s)=>{if(f)return r(f);if(s)return makeLink(e,n);c.mkdirs(l,f=>{if(f)return r(f);makeLink(e,n)})})})})}function createLinkSync(e,n){const r=l.existsSync(n);if(r)return undefined;try{l.lstatSync(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const f=s.dirname(n);const i=l.existsSync(f);if(i)return l.linkSync(e,n);c.mkdirsSync(f);return l.linkSync(e,n)}e.exports={createLink:f(createLink),createLinkSync:createLinkSync}},9637:(e,n,r)=>{"use strict";const f=r(5622);const s=r(7690);const l=r(8640).pathExists;function symlinkPaths(e,n,r){if(f.isAbsolute(e)){return s.lstat(e,n=>{if(n){n.message=n.message.replace("lstat","ensureSymlink");return r(n)}return r(null,{toCwd:e,toDst:e})})}else{const c=f.dirname(n);const i=f.join(c,e);return l(i,(n,l)=>{if(n)return r(n);if(l){return r(null,{toCwd:i,toDst:e})}else{return s.lstat(e,n=>{if(n){n.message=n.message.replace("lstat","ensureSymlink");return r(n)}return r(null,{toCwd:e,toDst:f.relative(c,e)})})}})}}function symlinkPathsSync(e,n){let r;if(f.isAbsolute(e)){r=s.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const l=f.dirname(n);const c=f.join(l,e);r=s.existsSync(c);if(r){return{toCwd:c,toDst:e}}else{r=s.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:f.relative(l,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},4351:(e,n,r)=>{"use strict";const f=r(7690);function symlinkType(e,n,r){r=typeof n==="function"?n:r;n=typeof n==="function"?false:n;if(n)return r(null,n);f.lstat(e,(e,f)=>{if(e)return r(null,"file");n=f&&f.isDirectory()?"dir":"file";r(null,n)})}function symlinkTypeSync(e,n){let r;if(n)return n;try{r=f.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},8932:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(5622);const l=r(7690);const c=r(7038);const i=c.mkdirs;const v=c.mkdirsSync;const p=r(9637);const d=p.symlinkPaths;const a=p.symlinkPathsSync;const g=r(4351);const b=g.symlinkType;const w=g.symlinkTypeSync;const E=r(8640).pathExists;function createSymlink(e,n,r,f){f=typeof r==="function"?r:f;r=typeof r==="function"?false:r;E(n,(c,v)=>{if(c)return f(c);if(v)return f(null);d(e,n,(c,v)=>{if(c)return f(c);e=v.toDst;b(v.toCwd,r,(r,c)=>{if(r)return f(r);const v=s.dirname(n);E(v,(r,s)=>{if(r)return f(r);if(s)return l.symlink(e,n,c,f);i(v,r=>{if(r)return f(r);l.symlink(e,n,c,f)})})})})})}function createSymlinkSync(e,n,r){const f=l.existsSync(n);if(f)return undefined;const c=a(e,n);e=c.toDst;r=w(c.toCwd,r);const i=s.dirname(n);const p=l.existsSync(i);if(p)return l.symlinkSync(e,n,r);v(i);return l.symlinkSync(e,n,r)}e.exports={createSymlink:f(createSymlink),createSymlinkSync:createSymlinkSync}},2553:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(7690);const l=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>{return typeof s[e]==="function"});Object.keys(s).forEach(e=>{if(e==="promises"){return}n[e]=s[e]});l.forEach(e=>{n[e]=f(s[e])});n.exists=function(e,n){if(typeof n==="function"){return s.exists(e,n)}return new Promise(n=>{return s.exists(e,n)})};n.read=function(e,n,r,f,l,c){if(typeof c==="function"){return s.read(e,n,r,f,l,c)}return new Promise((c,i)=>{s.read(e,n,r,f,l,(e,n,r)=>{if(e)return i(e);c({bytesRead:n,buffer:r})})})};n.write=function(e,n,...r){if(typeof r[r.length-1]==="function"){return s.write(e,n,...r)}return new Promise((f,l)=>{s.write(e,n,...r,(e,n,r)=>{if(e)return l(e);f({bytesWritten:n,buffer:r})})})};if(typeof s.writev==="function"){n.writev=function(e,n,...r){if(typeof r[r.length-1]==="function"){return s.writev(e,n,...r)}return new Promise((f,l)=>{s.writev(e,n,...r,(e,n,r)=>{if(e)return l(e);f({bytesWritten:n,buffers:r})})})}}if(typeof s.realpath.native==="function"){n.realpath.native=f(s.realpath.native)}},4240:(e,n,r)=>{"use strict";e.exports={...r(2553),...r(3642),...r(8),...r(5053),...r(4079),...r(6417),...r(7038),...r(4761),...r(7241),...r(2980),...r(8640),...r(6308)};const f=r(5747);if(Object.getOwnPropertyDescriptor(f,"promises")){Object.defineProperty(e.exports,"promises",{get(){return f.promises}})}},6417:(e,n,r)=>{"use strict";const f=r(7395).fromPromise;const s=r(5382);s.outputJson=f(r(615));s.outputJsonSync=r(724);s.outputJSON=s.outputJson;s.outputJSONSync=s.outputJsonSync;s.writeJSON=s.writeJson;s.writeJSONSync=s.writeJsonSync;s.readJSON=s.readJson;s.readJSONSync=s.readJsonSync;e.exports=s},5382:(e,n,r)=>{"use strict";const f=r(3665);e.exports={readJson:f.readFile,readJsonSync:f.readFileSync,writeJson:f.writeFile,writeJsonSync:f.writeFileSync}},724:(e,n,r)=>{"use strict";const{stringify:f}=r(3485);const{outputFileSync:s}=r(2980);function outputJsonSync(e,n,r){const l=f(n,r);s(e,l,r)}e.exports=outputJsonSync},615:(e,n,r)=>{"use strict";const{stringify:f}=r(3485);const{outputFile:s}=r(2980);async function outputJson(e,n,r={}){const l=f(n,r);await s(e,l,r)}e.exports=outputJson},7038:(e,n,r)=>{"use strict";const f=r(7395).fromPromise;const{makeDir:s,makeDirSync:l}=r(3793);const c=f(s);e.exports={mkdirs:c,mkdirsSync:l,mkdirp:c,mkdirpSync:l,ensureDir:c,ensureDirSync:l}},3793:(e,n,r)=>{"use strict";const f=r(2553);const s=r(5622);const l=r(1095);const c=l("10.12.0");const i=e=>{if(process.platform==="win32"){const n=/[<>:"|?*]/.test(e.replace(s.parse(e).root,""));if(n){const n=new Error(`Path contains invalid characters: ${e}`);n.code="EINVAL";throw n}}};const v=e=>{const n={mode:511};if(typeof e==="number")e={mode:e};return{...n,...e}};const p=e=>{const n=new Error(`operation not permitted, mkdir '${e}'`);n.code="EPERM";n.errno=-4048;n.path=e;n.syscall="mkdir";return n};e.exports.makeDir=(async(e,n)=>{i(e);n=v(n);if(c){const r=s.resolve(e);return f.mkdir(r,{mode:n.mode,recursive:true})}const r=async e=>{try{await f.mkdir(e,n.mode)}catch(n){if(n.code==="EPERM"){throw n}if(n.code==="ENOENT"){if(s.dirname(e)===e){throw p(e)}if(n.message.includes("null bytes")){throw n}await r(s.dirname(e));return r(e)}try{const r=await f.stat(e);if(!r.isDirectory()){throw new Error("The path is not a directory")}}catch{throw n}}};return r(s.resolve(e))});e.exports.makeDirSync=((e,n)=>{i(e);n=v(n);if(c){const r=s.resolve(e);return f.mkdirSync(r,{mode:n.mode,recursive:true})}const r=e=>{try{f.mkdirSync(e,n.mode)}catch(n){if(n.code==="EPERM"){throw n}if(n.code==="ENOENT"){if(s.dirname(e)===e){throw p(e)}if(n.message.includes("null bytes")){throw n}r(s.dirname(e));return r(e)}try{if(!f.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch{throw n}}};return r(s.resolve(e))})},4761:(e,n,r)=>{"use strict";e.exports={moveSync:r(405)}},405:(e,n,r)=>{"use strict";const f=r(7690);const s=r(5622);const l=r(3642).copySync;const c=r(6308).removeSync;const i=r(7038).mkdirpSync;const v=r(4666);function moveSync(e,n,r){r=r||{};const f=r.overwrite||r.clobber||false;const{srcStat:l}=v.checkPathsSync(e,n,"move");v.checkParentPathsSync(e,l,n,"move");i(s.dirname(n));return doRename(e,n,f)}function doRename(e,n,r){if(r){c(n);return rename(e,n,r)}if(f.existsSync(n))throw new Error("dest already exists.");return rename(e,n,r)}function rename(e,n,r){try{f.renameSync(e,n)}catch(f){if(f.code!=="EXDEV")throw f;return moveAcrossDevice(e,n,r)}}function moveAcrossDevice(e,n,r){const f={overwrite:r,errorOnExist:true};l(e,n,f);return c(e)}e.exports=moveSync},7241:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;e.exports={move:f(r(5479))}},5479:(e,n,r)=>{"use strict";const f=r(7690);const s=r(5622);const l=r(8).copy;const c=r(6308).remove;const i=r(7038).mkdirp;const v=r(8640).pathExists;const p=r(4666);function move(e,n,r,f){if(typeof r==="function"){f=r;r={}}const l=r.overwrite||r.clobber||false;p.checkPaths(e,n,"move",(r,c)=>{if(r)return f(r);const{srcStat:v}=c;p.checkParentPaths(e,v,n,"move",r=>{if(r)return f(r);i(s.dirname(n),r=>{if(r)return f(r);return doRename(e,n,l,f)})})})}function doRename(e,n,r,f){if(r){return c(n,s=>{if(s)return f(s);return rename(e,n,r,f)})}v(n,(s,l)=>{if(s)return f(s);if(l)return f(new Error("dest already exists."));return rename(e,n,r,f)})}function rename(e,n,r,s){f.rename(e,n,f=>{if(!f)return s();if(f.code!=="EXDEV")return s(f);return moveAcrossDevice(e,n,r,s)})}function moveAcrossDevice(e,n,r,f){const s={overwrite:r,errorOnExist:true};l(e,n,s,n=>{if(n)return f(n);return c(e,f)})}e.exports=move},2980:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(7690);const l=r(5622);const c=r(7038);const i=r(8640).pathExists;function outputFile(e,n,r,f){if(typeof r==="function"){f=r;r="utf8"}const v=l.dirname(e);i(v,(l,i)=>{if(l)return f(l);if(i)return s.writeFile(e,n,r,f);c.mkdirs(v,l=>{if(l)return f(l);s.writeFile(e,n,r,f)})})}function outputFileSync(e,...n){const r=l.dirname(e);if(s.existsSync(r)){return s.writeFileSync(e,...n)}c.mkdirsSync(r);s.writeFileSync(e,...n)}e.exports={outputFile:f(outputFile),outputFileSync:outputFileSync}},8640:(e,n,r)=>{"use strict";const f=r(7395).fromPromise;const s=r(2553);function pathExists(e){return s.access(e).then(()=>true).catch(()=>false)}e.exports={pathExists:f(pathExists),pathExistsSync:s.existsSync}},6308:(e,n,r)=>{"use strict";const f=r(7395).fromCallback;const s=r(9463);e.exports={remove:f(s),removeSync:s.sync}},9463:(e,n,r)=>{"use strict";const f=r(7690);const s=r(5622);const l=r(2357);const c=process.platform==="win32";function defaults(e){const n=["unlink","chmod","stat","lstat","rmdir","readdir"];n.forEach(n=>{e[n]=e[n]||f[n];n=n+"Sync";e[n]=e[n]||f[n]});e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,n,r){let f=0;if(typeof n==="function"){r=n;n={}}l(e,"rimraf: missing path");l.strictEqual(typeof e,"string","rimraf: path should be a string");l.strictEqual(typeof r,"function","rimraf: callback function required");l(n,"rimraf: invalid options argument provided");l.strictEqual(typeof n,"object","rimraf: options should be object");defaults(n);rimraf_(e,n,function CB(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&frimraf_(e,n,CB),r)}if(s.code==="ENOENT")s=null}r(s)})}function rimraf_(e,n,r){l(e);l(n);l(typeof r==="function");n.lstat(e,(f,s)=>{if(f&&f.code==="ENOENT"){return r(null)}if(f&&f.code==="EPERM"&&c){return fixWinEPERM(e,n,f,r)}if(s&&s.isDirectory()){return rmdir(e,n,f,r)}n.unlink(e,f=>{if(f){if(f.code==="ENOENT"){return r(null)}if(f.code==="EPERM"){return c?fixWinEPERM(e,n,f,r):rmdir(e,n,f,r)}if(f.code==="EISDIR"){return rmdir(e,n,f,r)}}return r(f)})})}function fixWinEPERM(e,n,r,f){l(e);l(n);l(typeof f==="function");n.chmod(e,438,s=>{if(s){f(s.code==="ENOENT"?null:r)}else{n.stat(e,(s,l)=>{if(s){f(s.code==="ENOENT"?null:r)}else if(l.isDirectory()){rmdir(e,n,r,f)}else{n.unlink(e,f)}})}})}function fixWinEPERMSync(e,n,r){let f;l(e);l(n);try{n.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{f=n.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(f.isDirectory()){rmdirSync(e,n,r)}else{n.unlinkSync(e)}}function rmdir(e,n,r,f){l(e);l(n);l(typeof f==="function");n.rmdir(e,s=>{if(s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")){rmkids(e,n,f)}else if(s&&s.code==="ENOTDIR"){f(r)}else{f(s)}})}function rmkids(e,n,r){l(e);l(n);l(typeof r==="function");n.readdir(e,(f,l)=>{if(f)return r(f);let c=l.length;let i;if(c===0)return n.rmdir(e,r);l.forEach(f=>{rimraf(s.join(e,f),n,f=>{if(i){return}if(f)return r(i=f);if(--c===0){n.rmdir(e,r)}})})})}function rimrafSync(e,n){let r;n=n||{};defaults(n);l(e,"rimraf: missing path");l.strictEqual(typeof e,"string","rimraf: path should be a string");l(n,"rimraf: missing options");l.strictEqual(typeof n,"object","rimraf: options should be object");try{r=n.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&c){fixWinEPERMSync(e,n,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,n,null)}else{n.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return c?fixWinEPERMSync(e,n,r):rmdirSync(e,n,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,n,r)}}function rmdirSync(e,n,r){l(e);l(n);try{n.rmdirSync(e)}catch(f){if(f.code==="ENOTDIR"){throw r}else if(f.code==="ENOTEMPTY"||f.code==="EEXIST"||f.code==="EPERM"){rmkidsSync(e,n)}else if(f.code!=="ENOENT"){throw f}}}function rmkidsSync(e,n){l(e);l(n);n.readdirSync(e).forEach(r=>rimrafSync(s.join(e,r),n));if(c){const r=Date.now();do{try{const r=n.rmdirSync(e,n);return r}catch{}}while(Date.now()-r<500)}else{const r=n.rmdirSync(e,n);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},4666:(e,n,r)=>{"use strict";const f=r(2553);const s=r(5622);const l=r(1669);const c=r(1095);const i=c("10.5.0");const v=e=>i?f.stat(e,{bigint:true}):f.stat(e);const p=e=>i?f.statSync(e,{bigint:true}):f.statSync(e);function getStats(e,n){return Promise.all([v(e),v(n).catch(e=>{if(e.code==="ENOENT")return null;throw e})]).then(([e,n])=>({srcStat:e,destStat:n}))}function getStatsSync(e,n){let r;const f=p(e);try{r=p(n)}catch(e){if(e.code==="ENOENT")return{srcStat:f,destStat:null};throw e}return{srcStat:f,destStat:r}}function checkPaths(e,n,r,f){l.callbackify(getStats)(e,n,(s,l)=>{if(s)return f(s);const{srcStat:c,destStat:i}=l;if(i&&areIdentical(c,i)){return f(new Error("Source and destination must not be the same."))}if(c.isDirectory()&&isSrcSubdir(e,n)){return f(new Error(errMsg(e,n,r)))}return f(null,{srcStat:c,destStat:i})})}function checkPathsSync(e,n,r){const{srcStat:f,destStat:s}=getStatsSync(e,n);if(s&&areIdentical(f,s)){throw new Error("Source and destination must not be the same.")}if(f.isDirectory()&&isSrcSubdir(e,n)){throw new Error(errMsg(e,n,r))}return{srcStat:f,destStat:s}}function checkParentPaths(e,n,r,l,c){const v=s.resolve(s.dirname(e));const p=s.resolve(s.dirname(r));if(p===v||p===s.parse(p).root)return c();const d=(f,s)=>{if(f){if(f.code==="ENOENT")return c();return c(f)}if(areIdentical(n,s)){return c(new Error(errMsg(e,r,l)))}return checkParentPaths(e,n,p,l,c)};if(i)f.stat(p,{bigint:true},d);else f.stat(p,d)}function checkParentPathsSync(e,n,r,f){const l=s.resolve(s.dirname(e));const c=s.resolve(s.dirname(r));if(c===l||c===s.parse(c).root)return;let i;try{i=p(c)}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(n,i)){throw new Error(errMsg(e,r,f))}return checkParentPathsSync(e,n,c,f)}function areIdentical(e,n){if(n.ino&&n.dev&&n.ino===e.ino&&n.dev===e.dev){if(i||n.inoe);const f=s.resolve(n).split(s.sep).filter(e=>e);return r.reduce((e,n,r)=>e&&f[r]===n,true)}function errMsg(e,n,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${n}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir}},4856:(e,n,r)=>{"use strict";const f=r(7690);function utimesMillis(e,n,r,s){f.open(e,"r+",(e,l)=>{if(e)return s(e);f.futimes(l,n,r,e=>{f.close(l,n=>{if(s)s(e||n)})})})}function utimesMillisSync(e,n,r){const s=f.openSync(e,"r+");f.futimesSync(s,n,r);return f.closeSync(s)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},2796:e=>{"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var n={__proto__:e.__proto__};else var n=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))});return n}},7690:(e,n,r)=>{var f=r(5747);var s=r(8399);var l=r(2961);var c=r(2796);var i=r(1669);var v;var p;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){v=Symbol.for("graceful-fs.queue");p=Symbol.for("graceful-fs.previous")}else{v="___graceful-fs.queue";p="___graceful-fs.previous"}function noop(){}var d=noop;if(i.debuglog)d=i.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))d=function(){var e=i.format.apply(i,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!global[v]){var a=[];Object.defineProperty(global,v,{get:function(){return a}});f.close=function(e){function close(n,r){return e.call(f,n,function(e){if(!e){retry()}if(typeof r==="function")r.apply(this,arguments)})}Object.defineProperty(close,p,{value:e});return close}(f.close);f.closeSync=function(e){function closeSync(n){e.apply(f,arguments);retry()}Object.defineProperty(closeSync,p,{value:e});return closeSync}(f.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){d(global[v]);r(2357).equal(global[v].length,0)})}}e.exports=patch(c(f));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!f.__patched){e.exports=patch(f);f.__patched=true}function patch(e){s(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var n=e.readFile;e.readFile=readFile;function readFile(e,r,f){if(typeof r==="function")f=r,r=null;return go$readFile(e,r,f);function go$readFile(e,r,f){return n(e,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$readFile,[e,r,f]]);else{if(typeof f==="function")f.apply(this,arguments);retry()}})}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,n,f,s){if(typeof f==="function")s=f,f=null;return go$writeFile(e,n,f,s);function go$writeFile(e,n,f,s){return r(e,n,f,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,n,f,s]]);else{if(typeof s==="function")s.apply(this,arguments);retry()}})}}var f=e.appendFile;if(f)e.appendFile=appendFile;function appendFile(e,n,r,s){if(typeof r==="function")s=r,r=null;return go$appendFile(e,n,r,s);function go$appendFile(e,n,r,s){return f(e,n,r,function(f){if(f&&(f.code==="EMFILE"||f.code==="ENFILE"))enqueue([go$appendFile,[e,n,r,s]]);else{if(typeof s==="function")s.apply(this,arguments);retry()}})}}var c=e.readdir;e.readdir=readdir;function readdir(e,n,r){var f=[e];if(typeof n!=="function"){f.push(n)}else{r=n}f.push(go$readdir$cb);return go$readdir(f);function go$readdir$cb(e,n){if(n&&n.sort)n.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[f]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}}}function go$readdir(n){return c.apply(e,n)}if(process.version.substr(0,4)==="v0.8"){var i=l(e);ReadStream=i.ReadStream;WriteStream=i.WriteStream}var v=e.ReadStream;if(v){ReadStream.prototype=Object.create(v.prototype);ReadStream.prototype.open=ReadStream$open}var p=e.WriteStream;if(p){WriteStream.prototype=Object.create(p.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var d=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});var a=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return a},set:function(e){a=e},enumerable:true,configurable:true});function ReadStream(e,n){if(this instanceof ReadStream)return v.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(n,r){if(n){if(e.autoClose)e.destroy();e.emit("error",n)}else{e.fd=r;e.emit("open",r);e.read()}})}function WriteStream(e,n){if(this instanceof WriteStream)return p.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(n,r){if(n){e.destroy();e.emit("error",n)}else{e.fd=r;e.emit("open",r)}})}function createReadStream(n,r){return new e.ReadStream(n,r)}function createWriteStream(n,r){return new e.WriteStream(n,r)}var g=e.open;e.open=open;function open(e,n,r,f){if(typeof r==="function")f=r,r=null;return go$open(e,n,r,f);function go$open(e,n,r,f){return g(e,n,r,function(s,l){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$open,[e,n,r,f]]);else{if(typeof f==="function")f.apply(this,arguments);retry()}})}}return e}function enqueue(e){d("ENQUEUE",e[0].name,e[1]);global[v].push(e)}function retry(){var e=global[v].shift();if(e){d("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},2961:(e,n,r)=>{var f=r(2413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(n,r){if(!(this instanceof ReadStream))return new ReadStream(n,r);f.call(this);var s=this;this.path=n;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var l=Object.keys(r);for(var c=0,i=l.length;cthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(e,n){if(e){s.emit("error",e);s.readable=false;return}s.fd=n;s.emit("open",n);s._read()})}function WriteStream(n,r){if(!(this instanceof WriteStream))return new WriteStream(n,r);f.call(this);this.path=n;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var s=Object.keys(r);for(var l=0,c=s.length;l= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},8399:(e,n,r)=>{var f=r(7619);var s=process.cwd;var l=null;var c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!l)l=s.call(process);return l};try{process.cwd()}catch(e){}var i=process.chdir;process.chdir=function(e){l=null;i.call(process,e)};e.exports=patch;function patch(e){if(f.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,n,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,n,r,f){if(f)process.nextTick(f)};e.lchownSync=function(){}}if(c==="win32"){e.rename=function(n){return function(r,f,s){var l=Date.now();var c=0;n(r,f,function CB(i){if(i&&(i.code==="EACCES"||i.code==="EPERM")&&Date.now()-l<6e4){setTimeout(function(){e.stat(f,function(e,l){if(e&&e.code==="ENOENT")n(r,f,CB);else s(i)})},c);if(c<100)c+=10;return}if(s)s(i)})}}(e.rename)}e.read=function(n){function read(r,f,s,l,c,i){var v;if(i&&typeof i==="function"){var p=0;v=function(d,a,g){if(d&&d.code==="EAGAIN"&&p<10){p++;return n.call(e,r,f,s,l,c,v)}i.apply(this,arguments)}}return n.call(e,r,f,s,l,c,v)}read.__proto__=n;return read}(e.read);e.readSync=function(n){return function(r,f,s,l,c){var i=0;while(true){try{return n.call(e,r,f,s,l,c)}catch(e){if(e.code==="EAGAIN"&&i<10){i++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(n,r,s){e.open(n,f.O_WRONLY|f.O_SYMLINK,r,function(n,f){if(n){if(s)s(n);return}e.fchmod(f,r,function(n){e.close(f,function(e){if(s)s(n||e)})})})};e.lchmodSync=function(n,r){var s=e.openSync(n,f.O_WRONLY|f.O_SYMLINK,r);var l=true;var c;try{c=e.fchmodSync(s,r);l=false}finally{if(l){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return c}}function patchLutimes(e){if(f.hasOwnProperty("O_SYMLINK")){e.lutimes=function(n,r,s,l){e.open(n,f.O_SYMLINK,function(n,f){if(n){if(l)l(n);return}e.futimes(f,r,s,function(n){e.close(f,function(e){if(l)l(n||e)})})})};e.lutimesSync=function(n,r,s){var l=e.openSync(n,f.O_SYMLINK);var c;var i=true;try{c=e.futimesSync(l,r,s);i=false}finally{if(i){try{e.closeSync(l)}catch(e){}}else{e.closeSync(l)}}return c}}else{e.lutimes=function(e,n,r,f){if(f)process.nextTick(f)};e.lutimesSync=function(){}}}function chmodFix(n){if(!n)return n;return function(r,f,s){return n.call(e,r,f,function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)})}}function chmodFixSync(n){if(!n)return n;return function(r,f){try{return n.call(e,r,f)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(n){if(!n)return n;return function(r,f,s,l){return n.call(e,r,f,s,function(e){if(chownErOk(e))e=null;if(l)l.apply(this,arguments)})}}function chownFixSync(n){if(!n)return n;return function(r,f,s){try{return n.call(e,r,f,s)}catch(e){if(!chownErOk(e))throw e}}}function statFix(n){if(!n)return n;return function(r,f,s){if(typeof f==="function"){s=f;f=null}function callback(e,n){if(n){if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296}if(s)s.apply(this,arguments)}return f?n.call(e,r,f,callback):n.call(e,r,callback)}}function statFixSync(n){if(!n)return n;return function(r,f){var s=f?n.call(e,r,f):n.call(e,r);if(s.uid<0)s.uid+=4294967296;if(s.gid<0)s.gid+=4294967296;return s}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var n=!process.getuid||process.getuid()!==0;if(n){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},7371:(e,n,r)=>{"use strict";var f=r(2087);if(typeof f.homedir!=="undefined"){e.exports=f.homedir}else{e.exports=r(446)}},446:(e,n,r)=>{"use strict";var f=r(5747);var s=r(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(s(e),getuid());if(n){return n}var r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(!r){return null}if(process.platform==="darwin"){return"/Users/"+r}return"/home/"+r}function find(e,n){var r=e.length;for(var f=0;f{"use strict";var f=r(7329);var s=r(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=r(9518);e.exports.Schema=r(4721);e.exports.FAILSAFE_SCHEMA=r(6654);e.exports.JSON_SCHEMA=r(708);e.exports.CORE_SCHEMA=r(3487);e.exports.DEFAULT_SCHEMA=r(6304);e.exports.load=f.load;e.exports.loadAll=f.loadAll;e.exports.dump=s.dump;e.exports.YAMLException=r(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 r,f,s,l;if(n){l=Object.keys(n);for(r=0,f=l.length;r{"use strict";var f=r(755);var s=r(5646);var l=r(6304);var c=Object.prototype.toString;var i=Object.prototype.hasOwnProperty;var v=65279;var p=9;var d=10;var a=13;var g=32;var b=33;var w=34;var E=35;var F=37;var A=38;var j=39;var h=42;var O=44;var y=45;var R=58;var m=61;var I=62;var x=63;var C=64;var T=91;var z=93;var N=96;var U=123;var q=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 B=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var Q=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,n){var r,f,s,l,c,v,p;if(n===null)return{};r={};f=Object.keys(n);for(s=0,l=f.length;s=55296&&r<=56319&&n+1=56320&&f<=57343){return(r-55296)*1024+f-56320+65536}}return r}function needIndentIndicator(e){var n=/^\n* /;return n.test(e)}var D=1,J=2,H=3,G=4,X=5;function chooseScalarStyle(e,n,r,f,s,l,c,i){var v;var p=0;var a=null;var g=false;var b=false;var w=f!==-1;var E=-1;var F=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(n||c){for(v=0;v=65536?v+=2:v++){p=codePointAt(e,v);if(!isPrintable(p)){return X}F=F&&isPlainSafe(p,a,i);a=p}}else{for(v=0;v=65536?v+=2:v++){p=codePointAt(e,v);if(p===d){g=true;if(w){b=b||v-E-1>f&&e[E+1]!==" ";E=v}}else if(!isPrintable(p)){return X}F=F&&isPlainSafe(p,a,i);a=p}b=b||w&&(v-E-1>f&&e[E+1]!==" ")}if(!g&&!b){if(F&&!c&&!s(e)){return D}return l===Y?X:J}if(r>9&&needIndentIndicator(e)){return X}if(!c){return b?G:H}return l===Y?X:J}function writeScalar(e,n,r,f,l){e.dump=function(){if(n.length===0){return e.quotingType===Y?'""':"''"}if(!e.noCompatMode){if(B.indexOf(n)!==-1||Q.test(n)){return e.quotingType===Y?'"'+n+'"':"'"+n+"'"}}var c=e.indent*Math.max(1,r);var i=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c);var v=f||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(n){return testImplicitResolving(e,n)}switch(chooseScalarStyle(n,v,e.indent,i,testAmbiguity,e.quotingType,e.forceQuotes&&!f,l)){case D:return n;case J:return"'"+n.replace(/'/g,"''")+"'";case H:return"|"+blockHeader(n,e.indent)+dropEndingNewline(indentString(n,c));case G:return">"+blockHeader(n,e.indent)+dropEndingNewline(indentString(foldString(n,i),c));case X:return'"'+escapeString(n,i)+'"';default:throw new s("impossible error: invalid scalar style")}}()}function blockHeader(e,n){var r=needIndentIndicator(e)?String(n):"";var f=e[e.length-1]==="\n";var s=f&&(e[e.length-2]==="\n"||e==="\n");var l=s?"+":f?"":"-";return r+l+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,n){var r=/(\n+)([^\n]*)/g;var f=function(){var f=e.indexOf("\n");f=f!==-1?f:e.length;r.lastIndex=f;return foldLine(e.slice(0,f),n)}();var s=e[0]==="\n"||e[0]===" ";var l;var c;while(c=r.exec(e)){var i=c[1],v=c[2];l=v[0]===" ";f+=i+(!s&&!l&&v!==""?"\n":"")+foldLine(v,n);s=l}return f}function foldLine(e,n){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var f;var s=0,l,c=0,i=0;var v="";while(f=r.exec(e)){i=f.index;if(i-s>n){l=c>s?c:i;v+="\n"+e.slice(s,l);s=l+1}c=i}v+="\n";if(e.length-s>n&&c>s){v+=e.slice(s,c)+"\n"+e.slice(c+1)}else{v+=e.slice(s)}return v.slice(1)}function escapeString(e){var n="";var r=0;var f;for(var s=0;s=65536?s+=2:s++){r=codePointAt(e,s);f=L[r];if(!f&&isPrintable(r)){n+=e[s];if(r>=65536)n+=e[s+1]}else{n+=f||encodeHex(r)}}return n}function writeFlowSequence(e,n,r){var f="",s=e.tag,l,c,i;for(l=0,c=r.length;l1024)d+="? ";d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,n,p,false,false)){continue}d+=e.dump;f+=d}e.tag=s;e.dump="{"+f+"}"}function writeBlockMapping(e,n,r,f){var l="",c=e.tag,i=Object.keys(r),v,p,a,g,b,w;if(e.sortKeys===true){i.sort()}else if(typeof e.sortKeys==="function"){i.sort(e.sortKeys)}else if(e.sortKeys){throw new s("sortKeys must be a boolean or a function")}for(v=0,p=i.length;v1024;if(b){if(e.dump&&d===e.dump.charCodeAt(0)){w+="?"}else{w+="? "}}w+=e.dump;if(b){w+=generateNextLine(e,n)}if(!writeNode(e,n+1,g,true,b)){continue}if(e.dump&&d===e.dump.charCodeAt(0)){w+=":"}else{w+=": "}w+=e.dump;l+=w}e.tag=c;e.dump=l||"{}"}function detectType(e,n,r){var f,l,v,p,d,a;l=r?e.explicitTypes:e.implicitTypes;for(v=0,p=l.length;v tag resolver accepts not "'+a+'" style')}e.dump=f}return true}}return false}function writeNode(e,n,r,f,l,i,v){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var p=c.call(e.dump);var d=f;var a;if(f){f=e.flowLevel<0||e.flowLevel>n}var g=p==="[object Object]"||p==="[object Array]",b,w;if(g){b=e.duplicates.indexOf(r);w=b!==-1}if(e.tag!==null&&e.tag!=="?"||w||e.indent!==2&&n>0){l=false}if(w&&e.usedDuplicates[b]){e.dump="*ref_"+b}else{if(g&&w&&!e.usedDuplicates[b]){e.usedDuplicates[b]=true}if(p==="[object Object]"){if(f&&Object.keys(e.dump).length!==0){writeBlockMapping(e,n,e.dump,l);if(w){e.dump="&ref_"+b+e.dump}}else{writeFlowMapping(e,n,e.dump);if(w){e.dump="&ref_"+b+" "+e.dump}}}else if(p==="[object Array]"){if(f&&e.dump.length!==0){if(e.noArrayIndent&&!v&&n>0){writeBlockSequence(e,n-1,e.dump,l)}else{writeBlockSequence(e,n,e.dump,l)}if(w){e.dump="&ref_"+b+e.dump}}else{writeFlowSequence(e,n,e.dump);if(w){e.dump="&ref_"+b+" "+e.dump}}}else if(p==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,n,i,d)}}else if(p==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new s("unacceptable kind of an object to dump "+p)}if(e.tag!==null&&e.tag!=="?"){a=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){a="!"+a}else if(a.slice(0,18)==="tag:yaml.org,2002:"){a="!!"+a.slice(18)}else{a="!<"+a+">"}e.dump=a+" "+e.dump}}return true}function getDuplicateReferences(e,n){var r=[],f=[],s,l;inspectNode(e,r,f);for(s=0,l=f.length;s{"use strict";function formatError(e,n){var r="",f=e.reason||"(unknown reason)";if(!e.mark)return f;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!n&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return f+" "+r}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,r)=>{"use strict";var f=r(755);var s=r(5646);var l=r(5398);var c=r(6304);var i=Object.prototype.hasOwnProperty;var v=1;var p=2;var d=3;var a=4;var g=1;var b=2;var w=3;var E=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var F=/[\x85\u2028\u2029]/;var A=/[,\[\]\{\}]/;var j=/^(?:!|!!|![a-z\-]+!)$/i;var h=/^(?:!|[^,\[\]\{\}])(?:%[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 O=new Array(256);var y=new Array(256);for(var R=0;R<256;R++){O[R]=simpleEscapeSequence(R)?1:0;y[R]=simpleEscapeSequence(R)}function State(e,n){this.input=e;this.filename=n["filename"]||null;this.schema=n["schema"]||c;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 r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=l(r);return new s(n,r)}function throwError(e,n){throw generateError(e,n)}function throwWarning(e,n){if(e.onWarning){e.onWarning.call(null,generateError(e,n))}}var m={YAML:function handleYamlDirective(e,n,r){var f,s,l;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}f=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(f===null){throwError(e,"ill-formed argument of the YAML directive")}s=parseInt(f[1],10);l=parseInt(f[2],10);if(s!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=l<2;if(l!==1&&l!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,n,r){var f,s;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}f=r[0];s=r[1];if(!j.test(f)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(i.call(e.tagMap,f)){throwError(e,'there is a previously declared suffix for "'+f+'" tag handle')}if(!h.test(s)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{s=decodeURIComponent(s)}catch(n){throwError(e,"tag prefix is malformed: "+s)}e.tagMap[f]=s}};function captureSegment(e,n,r,f){var s,l,c,i;if(n1){e.result+=f.repeat("\n",n-1)}}function readPlainScalar(e,n,r){var f,s,l,c,i,v,p,d,a=e.kind,g=e.result,b;b=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(b)||is_FLOW_INDICATOR(b)||b===35||b===38||b===42||b===33||b===124||b===62||b===39||b===34||b===37||b===64||b===96){return false}if(b===63||b===45){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){return false}}e.kind="scalar";e.result="";l=c=e.position;i=false;while(b!==0){if(b===58){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){break}}else if(b===35){f=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(f)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(b)){break}else if(is_EOL(b)){v=e.line;p=e.lineStart;d=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=n){i=true;b=e.input.charCodeAt(e.position);continue}else{e.position=c;e.line=v;e.lineStart=p;e.lineIndent=d;break}}if(i){captureSegment(e,l,c,false);writeFoldedLines(e,e.line-v);l=c=e.position;i=false}if(!is_WHITE_SPACE(b)){c=e.position+1}b=e.input.charCodeAt(++e.position)}captureSegment(e,l,c,false);if(e.result){return true}e.kind=a;e.result=g;return false}function readSingleQuotedScalar(e,n){var r,f,s;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;f=s=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,f,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){f=e.position;e.position++;s=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,f,s,true);writeFoldedLines(e,skipSeparationSpace(e,false,n));f=s=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++;s=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,n){var r,f,s,l,c,i;i=e.input.charCodeAt(e.position);if(i!==34){return false}e.kind="scalar";e.result="";e.position++;r=f=e.position;while((i=e.input.charCodeAt(e.position))!==0){if(i===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(i===92){captureSegment(e,r,e.position,true);i=e.input.charCodeAt(++e.position);if(is_EOL(i)){skipSeparationSpace(e,false,n)}else if(i<256&&O[i]){e.result+=y[i];e.position++}else if((c=escapedHexLen(i))>0){s=c;l=0;for(;s>0;s--){i=e.input.charCodeAt(++e.position);if((c=fromHexCode(i))>=0){l=(l<<4)+c}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(l);e.position++}else{throwError(e,"unknown escape sequence")}r=f=e.position}else if(is_EOL(i)){captureSegment(e,r,f,true);writeFoldedLines(e,skipSeparationSpace(e,false,n));r=f=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++;f=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,n){var r=true,f,s,l,c=e.tag,i,p=e.anchor,d,a,g,b,w,E=Object.create(null),F,A,j,h;h=e.input.charCodeAt(e.position);if(h===91){a=93;w=false;i=[]}else if(h===123){a=125;w=true;i={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=i}h=e.input.charCodeAt(++e.position);while(h!==0){skipSeparationSpace(e,true,n);h=e.input.charCodeAt(e.position);if(h===a){e.position++;e.tag=c;e.anchor=p;e.kind=w?"mapping":"sequence";e.result=i;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(h===44){throwError(e,"expected the node content, but found ','")}A=F=j=null;g=b=false;if(h===63){d=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(d)){g=b=true;e.position++;skipSeparationSpace(e,true,n)}}f=e.line;s=e.lineStart;l=e.position;composeNode(e,n,v,false,true);A=e.tag;F=e.result;skipSeparationSpace(e,true,n);h=e.input.charCodeAt(e.position);if((b||e.line===f)&&h===58){g=true;h=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,n);composeNode(e,n,v,false,true);j=e.result}if(w){storeMappingPair(e,i,E,A,F,j,f,s,l)}else if(g){i.push(storeMappingPair(e,null,E,A,F,j,f,s,l))}else{i.push(F)}skipSeparationSpace(e,true,n);h=e.input.charCodeAt(e.position);if(h===44){r=true;h=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,n){var r,s,l=g,c=false,i=false,v=n,p=0,d=false,a,E;E=e.input.charCodeAt(e.position);if(E===124){s=false}else if(E===62){s=true}else{return false}e.kind="scalar";e.result="";while(E!==0){E=e.input.charCodeAt(++e.position);if(E===43||E===45){if(g===l){l=E===43?w:b}else{throwError(e,"repeat of a chomping mode identifier")}}else if((a=fromDecimalCode(E))>=0){if(a===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!i){v=n+a-1;i=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((!i||e.lineIndentv){v=e.lineIndent}if(is_EOL(E)){p++;continue}if(e.lineIndentn)&&v!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentn){if(j){c=e.line;i=e.lineStart;v=e.position}if(composeNode(e,n,a,true,s)){if(j){F=e.result}else{A=e.result}}if(!j){storeMappingPair(e,b,w,E,F,A,c,i,v);E=F=A=null}skipSeparationSpace(e,true,-1);O=e.input.charCodeAt(e.position)}if((e.line===l||e.lineIndent>n)&&O!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentn){b=1}else if(e.lineIndent===n){b=0}else if(e.lineIndentn){b=1}else if(e.lineIndent===n){b=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(F=0,A=e.implicitTypes.length;F")}if(e.result!==null&&h.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"')}if(!h.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=h.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,r,f,s,l=false,c;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((c=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);c=e.input.charCodeAt(e.position);if(e.lineIndent>0||c!==37){break}l=true;c=e.input.charCodeAt(++e.position);r=e.position;while(c!==0&&!is_WS_OR_EOL(c)){c=e.input.charCodeAt(++e.position)}f=e.input.slice(r,e.position);s=[];if(f.length<1){throwError(e,"directive name must not be less than one character in length")}while(c!==0){while(is_WHITE_SPACE(c)){c=e.input.charCodeAt(++e.position)}if(c===35){do{c=e.input.charCodeAt(++e.position)}while(c!==0&&!is_EOL(c));break}if(is_EOL(c))break;r=e.position;while(c!==0&&!is_WS_OR_EOL(c)){c=e.input.charCodeAt(++e.position)}s.push(e.input.slice(r,e.position))}if(c!==0)readLineBreak(e);if(i.call(m,f)){m[f](e,f,s)}else{throwWarning(e,'unknown document directive "'+f+'"')}}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(l){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,a,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&F.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{"use strict";var f=r(5646);var s=r(9518);function compileList(e,n,r){var f=[];e[n].forEach(function(e){r.forEach(function(n,r){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){f.push(r)}});r.push(e)});return r.filter(function(e,n){return f.indexOf(n)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,r;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,r=arguments.length;n{"use strict";e.exports=r(708)},6304:(e,n,r)=>{"use strict";e.exports=r(3487).extend({implicit:[r(9346),r(3801)],explicit:[r(1220),r(5277),r(6864),r(4299)]})},6654:(e,n,r)=>{"use strict";var f=r(4721);e.exports=new f({explicit:[r(1420),r(8196),r(557)]})},708:(e,n,r)=>{"use strict";e.exports=r(6654).extend({implicit:[r(6133),r(952),r(4392),r(2458)]})},5398:(e,n,r)=>{"use strict";var f=r(755);function getLine(e,n,r,f,s){var l="";var c="";var i=Math.floor(s/2)-1;if(f-n>i){l=" ... ";n=f-i+l.length}if(r-f>i){c=" ...";r=f+i-c.length}return{str:l+e.slice(n,r).replace(/\t/g,"→")+c,pos:f-n+l.length}}function padStart(e,n){return f.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 r=/\r?\n|\r|\0/g;var s=[0];var l=[];var c;var i=-1;while(c=r.exec(e.buffer)){l.push(c.index);s.push(c.index+c[0].length);if(e.position<=c.index&&i<0){i=s.length-2}}if(i<0)i=s.length-1;var v="",p,d;var a=Math.min(e.line+n.linesAfter,l.length).toString().length;var g=n.maxLength-(n.indent+a+3);for(p=1;p<=n.linesBefore;p++){if(i-p<0)break;d=getLine(e.buffer,s[i-p],l[i-p],e.position-(s[i]-s[i-p]),g);v=f.repeat(" ",n.indent)+padStart((e.line-p+1).toString(),a)+" | "+d.str+"\n"+v}d=getLine(e.buffer,s[i],l[i],e.position,g);v+=f.repeat(" ",n.indent)+padStart((e.line+1).toString(),a)+" | "+d.str+"\n";v+=f.repeat("-",n.indent+a+3+d.pos)+"^"+"\n";for(p=1;p<=n.linesAfter;p++){if(i+p>=l.length)break;d=getLine(e.buffer,s[i+p],l[i+p],e.position-(s[i]-s[i+p]),g);v+=f.repeat(" ",n.indent)+padStart((e.line+p+1).toString(),a)+" | "+d.str+"\n"}return v.replace(/\n$/,"")}e.exports=makeSnippet},9518:(e,n,r)=>{"use strict";var f=r(5646);var s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var l=["scalar","sequence","mapping"];function compileStyleAliases(e){var n={};if(e!==null){Object.keys(e).forEach(function(r){e[r].forEach(function(e){n[String(e)]=r})})}return n}function Type(e,n){n=n||{};Object.keys(n).forEach(function(n){if(s.indexOf(n)===-1){throw new f('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(l.indexOf(this.kind)===-1){throw new f('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},1220:(e,n,r)=>{"use strict";var f=r(9518);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var n,r,f=0,l=e.length,c=s;for(r=0;r64)continue;if(n<0)return false;f+=6}return f%8===0}function constructYamlBinary(e){var n,r,f=e.replace(/[\r\n=]/g,""),l=f.length,c=s,i=0,v=[];for(n=0;n>16&255);v.push(i>>8&255);v.push(i&255)}i=i<<6|c.indexOf(f.charAt(n))}r=l%4*6;if(r===0){v.push(i>>16&255);v.push(i>>8&255);v.push(i&255)}else if(r===18){v.push(i>>10&255);v.push(i>>2&255)}else if(r===12){v.push(i>>4&255)}return new Uint8Array(v)}function representYamlBinary(e){var n="",r=0,f,l,c=e.length,i=s;for(f=0;f>18&63];n+=i[r>>12&63];n+=i[r>>6&63];n+=i[r&63]}r=(r<<8)+e[f]}l=c%3;if(l===0){n+=i[r>>18&63];n+=i[r>>12&63];n+=i[r>>6&63];n+=i[r&63]}else if(l===2){n+=i[r>>10&63];n+=i[r>>4&63];n+=i[r<<2&63];n+=i[64]}else if(l===1){n+=i[r>>2&63];n+=i[r<<4&63];n+=i[64];n+=i[64]}return n}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new f("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},952:(e,n,r)=>{"use strict";var f=r(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 f("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,r)=>{"use strict";var f=r(755);var s=r(9518);var l=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(!l.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var n,r;n=e.replace(/_/g,"").toLowerCase();r=n[0]==="-"?-1:1;if("+-".indexOf(n[0])>=0){n=n.slice(1)}if(n===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(n===".nan"){return NaN}return r*parseFloat(n,10)}var c=/^[-+]?[0-9]+e/;function representYamlFloat(e,n){var r;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(f.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return c.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||f.isNegativeZero(e))}e.exports=new s("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},4392:(e,n,r)=>{"use strict";var f=r(755);var s=r(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,r=0,f=false,s;if(!n)return false;s=e[r];if(s==="-"||s==="+"){s=e[++r]}if(s==="0"){if(r+1===n)return true;s=e[++r];if(s==="b"){r++;for(;r=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,r)=>{"use strict";var f=r(9518);e.exports=new f("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},3801:(e,n,r)=>{"use strict";var f=r(9518);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new f("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},6133:(e,n,r)=>{"use strict";var f=r(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 f("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,r)=>{"use strict";var f=r(9518);var s=Object.prototype.hasOwnProperty;var l=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var n=[],r,f,c,i,v,p=e;for(r=0,f=p.length;r{"use strict";var f=r(9518);var s=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var n,r,f,l,c,i=e;c=new Array(i.length);for(n=0,r=i.length;n{"use strict";var f=r(9518);e.exports=new f("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},4299:(e,n,r)=>{"use strict";var f=r(9518);var s=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var n,r=e;for(n in r){if(s.call(r,n)){if(r[n]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new f("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},1420:(e,n,r)=>{"use strict";var f=r(9518);e.exports=new f("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9346:(e,n,r)=>{"use strict";var f=r(9518);var s=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var l=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(s.exec(e)!==null)return true;if(l.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var n,r,f,c,i,v,p,d=0,a=null,g,b,w;n=s.exec(e);if(n===null)n=l.exec(e);if(n===null)throw new Error("Date resolve error");r=+n[1];f=+n[2]-1;c=+n[3];if(!n[4]){return new Date(Date.UTC(r,f,c))}i=+n[4];v=+n[5];p=+n[6];if(n[7]){d=n[7].slice(0,3);while(d.length<3){d+="0"}d=+d}if(n[9]){g=+n[10];b=+(n[11]||0);a=(g*60+b)*6e4;if(n[9]==="-")a=-a}w=new Date(Date.UTC(r,f,c,i,v,p,d));if(a)w.setTime(w.getTime()-a);return w}function representYamlTimestamp(e){return e.toISOString()}e.exports=new f("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,r){if(typeof n=="function"){r=n;n={}}r=n.cb||r;var f=typeof r=="function"?r:r.pre||function(){};var s=r.post||function(){};_traverse(n,f,s,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,r,f,s,l,c,i,v,p,d){if(s&&typeof s=="object"&&!Array.isArray(s)){r(s,l,c,i,v,p,d);for(var a in s){var g=s[a];if(Array.isArray(g)){if(a in n.arrayKeywords){for(var b=0;b{let f;try{f=r(7690)}catch(e){f=r(5747)}const s=r(7395);const{stringify:l,stripBom:c}=r(3485);async function _readFile(e,n={}){if(typeof n==="string"){n={encoding:n}}const r=n.fs||f;const l="throws"in n?n.throws:true;let i=await s.fromCallback(r.readFile)(e,n);i=c(i);let v;try{v=JSON.parse(i,n?n.reviver:null)}catch(n){if(l){n.message=`${e}: ${n.message}`;throw n}else{return null}}return v}const i=s.fromPromise(_readFile);function readFileSync(e,n={}){if(typeof n==="string"){n={encoding:n}}const r=n.fs||f;const s="throws"in n?n.throws:true;try{let f=r.readFileSync(e,n);f=c(f);return JSON.parse(f,n.reviver)}catch(n){if(s){n.message=`${e}: ${n.message}`;throw n}else{return null}}}async function _writeFile(e,n,r={}){const c=r.fs||f;const i=l(n,r);await s.fromCallback(c.writeFile)(e,i,r)}const v=s.fromPromise(_writeFile);function writeFileSync(e,n,r={}){const s=r.fs||f;const c=l(n,r);return s.writeFileSync(e,c,r)}const p={readFile:i,readFileSync:readFileSync,writeFile:v,writeFileSync:writeFileSync};e.exports=p},3485:e=>{function stringify(e,{EOL:n="\n",finalEOL:r=true,replacer:f=null,spaces:s}={}){const l=r?n:"";const c=JSON.stringify(e,f,s);return c.replace(/\n/g,n)+l}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},2192:(e,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var f=_interopDefault(r(2413));var s=_interopDefault(r(8605));var l=_interopDefault(r(8835));var c=_interopDefault(r(7211));var i=_interopDefault(r(8761));const v=f.Readable;const p=Symbol("buffer");const d=Symbol("type");class Blob{constructor(){this[d]="";const e=arguments[0];const n=arguments[1];const r=[];let f=0;if(e){const n=e;const s=Number(n.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},s=r.size;let l=s===undefined?0:s;var c=r.timeout;let i=c===undefined?0:c;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 f) ;else{e=Buffer.from(String(e))}this[g]={body:e,disturbed:false,error:null};this.size=l;this.timeout=i;if(e instanceof f){e.on("error",function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${n.url}: ${e.message}`,"system",e);n[g].error=r})}}Body.prototype={get body(){return this[g].body},get bodyUsed(){return this[g].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()}),{[p]: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 r=Object.getOwnPropertyDescriptor(Body.prototype,n);Object.defineProperty(e,n,r)}}};function consumeBody(){var e=this;if(this[g].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[g].disturbed=true;if(this[g].error){return Body.Promise.reject(this[g].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 f)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let s=0;let l=false;return new Body.Promise(function(f,c){let i;if(e.timeout){i=setTimeout(function(){l=true;c(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"){l=true;c(n)}else{c(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${n.message}`,"system",n))}});n.on("data",function(n){if(l||n===null){return}if(e.size&&s+n.length>e.size){l=true;c(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}s+=n.length;r.push(n)});n.on("end",function(){if(l){return}clearTimeout(i);try{f(Buffer.concat(r,s))}catch(n){c(new FetchError(`Could not create Buffer from response body for ${e.url}: ${n.message}`,"system",n))}})})}function convertBody(e,n){if(typeof a!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=n.get("content-type");let f="utf-8";let s,l;if(r){s=/charset=([^;]*)/i.exec(r)}l=e.slice(0,1024).toString();if(!s&&l){s=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[F]=Object.create(null);if(e instanceof Headers){const n=e.raw();const r=Object.keys(n);for(const e of r){for(const r of n[e]){this.append(e,r)}}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 r=[];for(const n of e){if(typeof n!=="object"||typeof n[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(n))}for(const e of r){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 r=e[n];this.append(n,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const n=find(this[F],e);if(n===undefined){return null}return this[F][n].join(", ")}forEach(e){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let f=0;while(f1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[F]).sort();return r.map(n==="key"?function(e){return e.toLowerCase()}:n==="value"?function(n){return e[F][n].join(", ")}:function(n){return[n.toLowerCase(),e[F][n].join(", ")]})}const A=Symbol("internal");function createHeadersIterator(e,n){const r=Object.create(j);r[A]={target:e,kind:n,index:0};return r}const j=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==j){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[A];const n=e.target,r=e.kind,f=e.index;const s=getHeaders(n,r);const l=s.length;if(f>=l){return{value:undefined,done:true}}this[A].index=f+1;return{value:s[f],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(j,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const n=Object.assign({__proto__:null},e[F]);const r=find(e[F],"Host");if(r!==undefined){n[r]=n[r][0]}return n}function createHeadersLenient(e){const n=new Headers;for(const r of Object.keys(e)){if(w.test(r)){continue}if(Array.isArray(e[r])){for(const f of e[r]){if(E.test(f)){continue}if(n[F][r]===undefined){n[F][r]=[f]}else{n[F][r].push(f)}}}else if(!E.test(e[r])){n[F][r]=[e[r]]}}return n}const h=Symbol("Response internals");const O=s.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 r=n.status||200;const f=new Headers(n.headers);if(e!=null&&!f.has("Content-Type")){const n=extractContentType(e);if(n){f.append("Content-Type",n)}}this[h]={url:n.url,status:r,statusText:n.statusText||O[r],headers:f,counter:n.counter}}get url(){return this[h].url||""}get status(){return this[h].status}get ok(){return this[h].status>=200&&this[h].status<300}get redirected(){return this[h].counter>0}get statusText(){return this[h].statusText}get headers(){return this[h].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 y=Symbol("Request internals");const R=l.parse;const m=l.format;const I="destroy"in f.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[y]==="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 r;if(!isRequest(e)){if(e&&e.href){r=R(e.href)}else{r=R(`${e}`)}e={}}else{r=R(e.url)}let f=n.method||e.method||"GET";f=f.toUpperCase();if((n.body!=null||isRequest(e)&&e.body!==null)&&(f==="GET"||f==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let s=n.body!=null?n.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,s,{timeout:n.timeout||e.timeout||0,size:n.size||e.size||0});const l=new Headers(n.headers||e.headers||{});if(s!=null&&!l.has("Content-Type")){const e=extractContentType(s);if(e){l.append("Content-Type",e)}}let c=isRequest(e)?e.signal:null;if("signal"in n)c=n.signal;if(c!=null&&!isAbortSignal(c)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[y]={method:f,redirect:n.redirect||e.redirect||"follow",headers:l,parsedURL:r,signal:c};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[y].method}get url(){return m(this[y].parsedURL)}get headers(){return this[y].headers}get redirect(){return this[y].redirect}get signal(){return this[y].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[y].parsedURL;const r=new Headers(e[y].headers);if(!r.has("Accept")){r.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 f.Readable&&!I){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let s=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){s="0"}if(e.body!=null){const n=getTotalBytes(e);if(typeof n==="number"){s=String(n)}}if(s){r.set("Content-Length",s)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let l=e.agent;if(typeof l==="function"){l=l(n)}if(!r.has("Connection")&&!l){r.set("Connection","close")}return Object.assign({},n,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:l})}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 x=f.PassThrough;const C=l.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(r,l){const v=new Request(e,n);const p=getNodeRequestOptions(v);const d=(p.protocol==="https:"?c:s).request;const a=v.signal;let g=null;const b=function abort(){let e=new AbortError("The user aborted a request.");l(e);if(v.body&&v.body instanceof f.Readable){v.body.destroy(e)}if(!g||!g.body)return;g.body.emit("error",e)};if(a&&a.aborted){b();return}const w=function abortAndFinalize(){b();finalize()};const E=d(p);let F;if(a){a.addEventListener("abort",w)}function finalize(){E.abort();if(a)a.removeEventListener("abort",w);clearTimeout(F)}if(v.timeout){E.once("socket",function(e){F=setTimeout(function(){l(new FetchError(`network timeout at: ${v.url}`,"request-timeout"));finalize()},v.timeout)})}E.on("error",function(e){l(new FetchError(`request to ${v.url} failed, reason: ${e.message}`,"system",e));finalize()});E.on("response",function(e){clearTimeout(F);const n=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const f=n.get("Location");const s=f===null?null:C(v.url,f);switch(v.redirect){case"error":l(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${v.url}`,"no-redirect"));finalize();return;case"manual":if(s!==null){try{n.set("Location",s)}catch(e){l(e)}}break;case"follow":if(s===null){break}if(v.counter>=v.follow){l(new FetchError(`maximum redirect reached at: ${v.url}`,"max-redirect"));finalize();return}const f={headers:new Headers(v.headers),follow:v.follow,counter:v.counter+1,agent:v.agent,compress:v.compress,method:v.method,body:v.body,signal:v.signal,timeout:v.timeout,size:v.size};if(e.statusCode!==303&&v.body&&getTotalBytes(v)===null){l(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)&&v.method==="POST"){f.method="GET";f.body=undefined;f.headers.delete("content-length")}r(fetch(new Request(s,f)));finalize();return}}e.once("end",function(){if(a)a.removeEventListener("abort",w)});let f=e.pipe(new x);const s={url:v.url,status:e.statusCode,statusText:e.statusMessage,headers:n,size:v.size,timeout:v.timeout,counter:v.counter};const c=n.get("Content-Encoding");if(!v.compress||v.method==="HEAD"||c===null||e.statusCode===204||e.statusCode===304){g=new Response(f,s);r(g);return}const p={flush:i.Z_SYNC_FLUSH,finishFlush:i.Z_SYNC_FLUSH};if(c=="gzip"||c=="x-gzip"){f=f.pipe(i.createGunzip(p));g=new Response(f,s);r(g);return}if(c=="deflate"||c=="x-deflate"){const n=e.pipe(new x);n.once("data",function(e){if((e[0]&15)===8){f=f.pipe(i.createInflate())}else{f=f.pipe(i.createInflateRaw())}g=new Response(f,s);r(g)});return}if(c=="br"&&typeof i.createBrotliDecompress==="function"){f=f.pipe(i.createBrotliDecompress());g=new Response(f,s);r(g);return}g=new Response(f,s);r(g)});writeToStream(E,v)})}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 r=e.split(":");return{username:r[0],password:r[1],uid:r[2],gid:r[3],gecos:r[4],homedir:r[5],shell:r[6]}}},7395:(e,n)=>{"use strict";n.fromCallback=function(e){return Object.defineProperty(function(...n){if(typeof n[n.length-1]==="function")e.apply(this,n);else{return new Promise((r,f)=>{e.call(this,...n,(e,n)=>e!=null?f(e):r(n))})}},"name",{value:e.name})};n.fromPromise=function(e){return Object.defineProperty(function(...n){const r=n[n.length-1];if(typeof r!=="function")return e.apply(this,n);else e.apply(this,n.slice(0,-1)).then(e=>r(null,e),r)},"name",{value:e.name})}},4430:function(e,n){(function(e,r){true?r(n):0})(this,function(e){"use strict";function merge(){for(var e=arguments.length,n=Array(e),r=0;r1){n[0]=n[0].slice(0,-1);var f=n.length-1;for(var s=1;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var j=c-i;var h=Math.floor;var O=String.fromCharCode;function error$1(e){throw new RangeError(A[e])}function map(e,n){var r=[];var f=e.length;while(f--){r[f]=n(e[f])}return r}function mapDomain(e,n){var r=e.split("@");var f="";if(r.length>1){f=r[0]+"@";e=r[1]}e=e.replace(F,".");var s=e.split(".");var l=map(s,n).join(".");return f+l}function ucs2decode(e){var n=[];var r=0;var f=e.length;while(r=55296&&s<=56319&&r>1;e+=h(e/n);for(;e>j*v>>1;f+=c){e=h(e/j)}return h(f+(j+1)*e/(e+p))};var x=function decode(e){var n=[];var r=e.length;var f=0;var s=g;var p=a;var d=e.lastIndexOf(b);if(d<0){d=0}for(var w=0;w=128){error$1("not-basic")}n.push(e.charCodeAt(w))}for(var E=d>0?d+1:0;E=r){error$1("invalid-input")}var O=R(e.charCodeAt(E++));if(O>=c||O>h((l-f)/A)){error$1("overflow")}f+=O*A;var y=j<=p?i:j>=p+v?v:j-p;if(Oh(l/m)){error$1("overflow")}A*=m}var x=n.length+1;p=I(f-F,x,F==0);if(h(f/x)>l-s){error$1("overflow")}s+=h(f/x);f%=x;n.splice(f++,0,s)}return String.fromCodePoint.apply(String,n)};var C=function encode(e){var n=[];e=ucs2decode(e);var r=e.length;var f=g;var s=0;var p=a;var d=true;var w=false;var E=undefined;try{for(var F=e[Symbol.iterator](),A;!(d=(A=F.next()).done);d=true){var j=A.value;if(j<128){n.push(O(j))}}}catch(e){w=true;E=e}finally{try{if(!d&&F.return){F.return()}}finally{if(w){throw E}}}var y=n.length;var R=y;if(y){n.push(b)}while(R=f&&qh((l-s)/M)){error$1("overflow")}s+=(x-f)*M;f=x;var L=true;var B=false;var Q=undefined;try{for(var W=e[Symbol.iterator](),Y;!(L=(Y=W.next()).done);L=true){var D=Y.value;if(Dl){error$1("overflow")}if(D==f){var J=s;for(var H=c;;H+=c){var G=H<=p?i:H>=p+v?v:H-p;if(J>6|192).toString(16).toUpperCase()+"%"+(n&63|128).toString(16).toUpperCase();else r="%"+(n>>12|224).toString(16).toUpperCase()+"%"+(n>>6&63|128).toString(16).toUpperCase()+"%"+(n&63|128).toString(16).toUpperCase();return r}function pctDecChars(e){var n="";var r=0;var f=e.length;while(r=194&&s<224){if(f-r>=6){var l=parseInt(e.substr(r+4,2),16);n+=String.fromCharCode((s&31)<<6|l&63)}else{n+=e.substr(r,6)}r+=6}else if(s>=224){if(f-r>=9){var c=parseInt(e.substr(r+4,2),16);var i=parseInt(e.substr(r+7,2),16);n+=String.fromCharCode((s&15)<<12|(c&63)<<6|i&63)}else{n+=e.substr(r,9)}r+=9}else{n+=e.substr(r,3);r+=3}}return n}function _normalizeComponentEncoding(e,n){function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(n.UNRESERVED)?e:r}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 r=e.match(n.IPV4ADDRESS)||[];var s=f(r,2),l=s[1];if(l){return l.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,n){var r=e.match(n.IPV6ADDRESS)||[];var s=f(r,3),l=s[1],c=s[2];if(l){var i=l.toLowerCase().split("::").reverse(),v=f(i,2),p=v[0],d=v[1];var a=d?d.split(":").map(_stripLeadingZeros):[];var g=p.split(":").map(_stripLeadingZeros);var b=n.IPV4ADDRESS.test(g[g.length-1]);var w=b?7:8;var E=g.length-w;var F=Array(w);for(var A=0;A1){var y=F.slice(0,h.index);var R=F.slice(h.index+h.length);O=y.join(":")+"::"+R.join(":")}else{O=F.join(":")}if(c){O+="%"+c}return O}else{return e}}var q=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var M="".match(/(){0}/)[1]===undefined;function parse(e){var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s={};var l=f.iri!==false?r:n;if(f.reference==="suffix")e=(f.scheme?f.scheme+":":"")+"//"+e;var c=e.match(q);if(c){if(M){s.scheme=c[1];s.userinfo=c[3];s.host=c[4];s.port=parseInt(c[5],10);s.path=c[6]||"";s.query=c[7];s.fragment=c[8];if(isNaN(s.port)){s.port=c[5]}}else{s.scheme=c[1]||undefined;s.userinfo=e.indexOf("@")!==-1?c[3]:undefined;s.host=e.indexOf("//")!==-1?c[4]:undefined;s.port=parseInt(c[5],10);s.path=c[6]||"";s.query=e.indexOf("?")!==-1?c[7]:undefined;s.fragment=e.indexOf("#")!==-1?c[8]:undefined;if(isNaN(s.port)){s.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?c[4]:undefined}}if(s.host){s.host=_normalizeIPv6(_normalizeIPv4(s.host,l),l)}if(s.scheme===undefined&&s.userinfo===undefined&&s.host===undefined&&s.port===undefined&&!s.path&&s.query===undefined){s.reference="same-document"}else if(s.scheme===undefined){s.reference="relative"}else if(s.fragment===undefined){s.reference="absolute"}else{s.reference="uri"}if(f.reference&&f.reference!=="suffix"&&f.reference!==s.reference){s.error=s.error||"URI is not a "+f.reference+" reference."}var i=U[(f.scheme||s.scheme||"").toLowerCase()];if(!f.unicodeSupport&&(!i||!i.unicodeSupport)){if(s.host&&(f.domainHost||i&&i.domainHost)){try{s.host=N.toASCII(s.host.replace(l.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){s.error=s.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(s,n)}else{_normalizeComponentEncoding(s,l)}if(i&&i.parse){i.parse(s,f)}}else{s.error=s.error||"URI can not be parsed."}return s}function _recomposeAuthority(e,f){var s=f.iri!==false?r:n;var l=[];if(e.userinfo!==undefined){l.push(e.userinfo);l.push("@")}if(e.host!==undefined){l.push(_normalizeIPv6(_normalizeIPv4(String(e.host),s),s).replace(s.IPV6ADDRESS,function(e,n,r){return"["+n+(r?"%25"+r:"")+"]"}))}if(typeof e.port==="number"){l.push(":");l.push(e.port.toString(10))}return l.length?l.join(""):undefined}var L=/^\.\.?\//;var B=/^\/\.(\/|$)/;var Q=/^\/\.\.(\/|$)/;var W=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var n=[];while(e.length){if(e.match(L)){e=e.replace(L,"")}else if(e.match(B)){e=e.replace(B,"/")}else if(e.match(Q)){e=e.replace(Q,"/");n.pop()}else if(e==="."||e===".."){e=""}else{var r=e.match(W);if(r){var f=r[0];e=e.slice(f.length);n.push(f)}else{throw new Error("Unexpected dot segment condition")}}}return n.join("")}function serialize(e){var f=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s=f.iri?r:n;var l=[];var c=U[(f.scheme||e.scheme||"").toLowerCase()];if(c&&c.serialize)c.serialize(e,f);if(e.host){if(s.IPV6ADDRESS.test(e.host)){}else if(f.domainHost||c&&c.domainHost){try{e.host=!f.iri?N.toASCII(e.host.replace(s.PCT_ENCODED,pctDecChars).toLowerCase()):N.toUnicode(e.host)}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(!f.iri?"ASCII":"Unicode")+" via punycode: "+n}}}_normalizeComponentEncoding(e,s);if(f.reference!=="suffix"&&e.scheme){l.push(e.scheme);l.push(":")}var i=_recomposeAuthority(e,f);if(i!==undefined){if(f.reference!=="suffix"){l.push("//")}l.push(i);if(e.path&&e.path.charAt(0)!=="/"){l.push("/")}}if(e.path!==undefined){var v=e.path;if(!f.absolutePath&&(!c||!c.absolutePath)){v=removeDotSegments(v)}if(i===undefined){v=v.replace(/^\/\//,"/%2F")}l.push(v)}if(e.query!==undefined){l.push("?");l.push(e.query)}if(e.fragment!==undefined){l.push("#");l.push(e.fragment)}return l.join("")}function resolveComponents(e,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var f=arguments[3];var s={};if(!f){e=parse(serialize(e,r),r);n=parse(serialize(n,r),r)}r=r||{};if(!r.tolerant&&n.scheme){s.scheme=n.scheme;s.userinfo=n.userinfo;s.host=n.host;s.port=n.port;s.path=removeDotSegments(n.path||"");s.query=n.query}else{if(n.userinfo!==undefined||n.host!==undefined||n.port!==undefined){s.userinfo=n.userinfo;s.host=n.host;s.port=n.port;s.path=removeDotSegments(n.path||"");s.query=n.query}else{if(!n.path){s.path=e.path;if(n.query!==undefined){s.query=n.query}else{s.query=e.query}}else{if(n.path.charAt(0)==="/"){s.path=removeDotSegments(n.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){s.path="/"+n.path}else if(!e.path){s.path=n.path}else{s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+n.path}s.path=removeDotSegments(s.path)}s.query=n.query}s.userinfo=e.userinfo;s.host=e.host;s.port=e.port}s.scheme=e.scheme}s.fragment=n.fragment;return s}function resolve(e,n,r){var f=assign({scheme:"null"},r);return serialize(resolveComponents(parse(e,f),parse(n,f),f,true),f)}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,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=serialize(e,r)}if(typeof n==="string"){n=serialize(parse(n,r),r)}else if(typeOf(n)==="object"){n=serialize(n,r)}return e===n}function escapeComponent(e,f){return e&&e.toString().replace(!f||!f.iri?n.ESCAPE:r.ESCAPE,pctEncChar)}function unescapeComponent(e,f){return e&&e.toString().replace(!f||!f.iri?n.PCT_ENCODED:r.PCT_ENCODED,pctDecChars)}var Y={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 D={scheme:"https",domainHost:Y.domainHost,parse:Y.parse,serialize:Y.serialize};var J={};var H=true;var G="[A-Za-z0-9\\-\\.\\_\\~"+(H?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var X="[0-9A-Fa-f]";var Z=subexp(subexp("%[EFef]"+X+"%"+X+X+"%"+X+X)+"|"+subexp("%[89A-Fa-f]"+X+"%"+X+X)+"|"+subexp("%"+X+X));var S="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var k="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var V=merge(k,'[\\"\\\\]');var K="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var o=new RegExp(G,"g");var P=new RegExp(Z,"g");var u=new RegExp(merge("[^]",S,"[\\.]",'[\\"]',V),"g");var _=new RegExp(merge("[^]",G,K),"g");var t=_;function decodeUnreserved(e){var n=pctDecChars(e);return!n.match(o)?e:n}var $={scheme:"mailto",parse:function parse$$1(e,n){var r=e;var f=r.to=r.path?r.path.split(","):[];r.path=undefined;if(r.query){var s=false;var l={};var c=r.query.split("&");for(var i=0,v=c.length;i{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}')},2357:e=>{"use strict";e.exports=require("assert")},3129:e=>{"use strict";e.exports=require("child_process")},7619:e=>{"use strict";e.exports=require("constants")},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")},1669:e=>{"use strict";e.exports=require("util")},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 r=true;try{__webpack_modules__[e].call(n.exports,n,n.exports,__nccwpck_require__);r=false}finally{if(r)delete __webpack_module_cache__[e]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(6011)})();