From 6fb615f4f1c76dab675be46c287eea969b6640f4 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 10 Dec 2024 22:25:46 +0000 Subject: [PATCH] =?UTF-8?q?build(release):=20=F0=9F=9A=80=20v9.0.2-next.2?= =?UTF-8?q?=20=F0=9F=A6=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [9.0.2-next.2](https://github.com/readmeio/rdme/compare/v9.0.2-next.1...v9.0.2-next.2) (2024-12-10) ### Bug Fixes * **autocomplete:** bad alias ([#1118](https://github.com/readmeio/rdme/issues/1118)) ([5b8d928](https://github.com/readmeio/rdme/commit/5b8d9286e891b1bc5cfbcfce1a1862cb8dbdf2b4)) [skip ci] --- CHANGELOG.md | 7 +++++++ dist-gha/commands.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7db4260a2..5a499fa73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [9.0.2-next.2](https://github.com/readmeio/rdme/compare/v9.0.2-next.1...v9.0.2-next.2) (2024-12-10) + + +### Bug Fixes + +* **autocomplete:** bad alias ([#1118](https://github.com/readmeio/rdme/issues/1118)) ([5b8d928](https://github.com/readmeio/rdme/commit/5b8d9286e891b1bc5cfbcfce1a1862cb8dbdf2b4)) + ## [9.0.2-next.1](https://github.com/readmeio/rdme/compare/v9.0.1...v9.0.2-next.1) (2024-12-10) diff --git a/dist-gha/commands.js b/dist-gha/commands.js index 945f90db9..235fa7b51 100644 --- a/dist-gha/commands.js +++ b/dist-gha/commands.js @@ -78,7 +78,7 @@ o[i-4]=this.maskKey[0],o[i-3]=this.maskKey[1],o[i-2]=this.maskKey[2],o[i-1]=this * * Copyright (c) 2015, 2017, Jon Schlinkert. * Released under the MIT License. - */function requireStripBomString(){return hasRequiredStripBomString||(hasRequiredStripBomString=1,stripBomString=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e}),stripBomString}function requireUtils$5(){return hasRequiredUtils$5||(hasRequiredUtils$5=1,function(e){const t=requireStripBomString(),n=requireKindOf();e.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},e.isBuffer=function(e){return"buffer"===n(e)},e.isObject=function(e){return"object"===n(e)},e.toBuffer=function(e){return"string"==typeof e?Buffer.from(e):e},e.toString=function(n){if(e.isBuffer(n))return t(String(n));if("string"!=typeof n)throw new TypeError("expected input to be a string or buffer");return t(n)},e.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},e.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}(utils$5)),utils$5}function requireDefaults$2(){if(hasRequiredDefaults$2)return defaults$1;hasRequiredDefaults$2=1;const e=requireEngines(),t=requireUtils$5();return defaults$1=function(n){const r=Object.assign({},n);return r.delimiters=t.arrayify(r.delims||r.delimiters||"---"),1===r.delimiters.length&&r.delimiters.push(r.delimiters[0]),r.language=(r.language||r.lang||"yaml").toLowerCase(),r.engines=Object.assign({},e,r.parsers,r.engines),r},defaults$1}function requireEngine(){if(hasRequiredEngine)return engine;return hasRequiredEngine=1,engine=function(e,t){let n=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===n)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof n&&(n={parse:n}),n},engine}function requireStringify(){if(hasRequiredStringify)return stringify;hasRequiredStringify=1;const e=requireKindOf(),t=requireEngine(),n=requireDefaults$2();function r(e){return"\n"!==e.slice(-1)?e+"\n":e}return stringify=function(i,o,s){if(null==o&&null==s)switch(e(i)){case"object":o=i.data,s={};break;case"string":return i;default:throw new TypeError("expected file to be a string or object")}const a=i.content,c=n(s);if(null==o){if(!c.data)return i;o=c.data}const l=i.language||c.language,u=t(l,c);if("function"!=typeof u.stringify)throw new TypeError('expected "'+l+'.stringify" to be a function');o=Object.assign({},i.data,o);const d=c.delimiters[0],p=c.delimiters[1],f=u.stringify(o,s).trim();let _="";return"{}"!==f&&(_=r(d)+r(f)+r(p)),"string"==typeof i.excerpt&&""!==i.excerpt&&-1===a.indexOf(i.excerpt.trim())&&(_+=r(i.excerpt)+r(p)),_+r(a)},stringify}function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const e=requireDefaults$2();return excerpt=function(t,n){const r=e(n);if(null==t.data&&(t.data={}),"function"==typeof r.excerpt)return r.excerpt(t,r);const i=t.data.excerpt_separator||r.excerpt_separator;if(null==i&&(!1===r.excerpt||null==r.excerpt))return t;const o="string"==typeof r.excerpt?r.excerpt:i||r.delimiters[0],s=t.content.indexOf(o);return-1!==s&&(t.excerpt=t.content.slice(0,s)),t},excerpt}function requireToFile(){if(hasRequiredToFile)return toFile;hasRequiredToFile=1;const e=requireKindOf(),t=requireStringify(),n=requireUtils$5();return toFile=function(r){return"object"!==e(r)&&(r={content:r}),"object"!==e(r.data)&&(r.data={}),r.contents&&null==r.content&&(r.content=r.contents),n.define(r,"orig",n.toBuffer(r.content)),n.define(r,"language",r.language||""),n.define(r,"matter",r.matter||""),n.define(r,"stringify",(function(e,n){return n&&n.language&&(r.language=n.language),t(r,e,n)})),r.content=n.toString(r.content),r.isEmpty=!1,r.excerpt="",r},toFile}function requireParse$1(){if(hasRequiredParse$1)return parse$4;hasRequiredParse$1=1;const e=requireEngine(),t=requireDefaults$2();return parse$4=function(n,r,i){const o=t(i),s=e(n,o);if("function"!=typeof s.parse)throw new TypeError('expected "'+n+'.parse" to be a function');return s.parse(r,o)},parse$4}function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter$1;hasRequiredGrayMatter=1;const e=require$$0$7,t=requireSectionMatter(),n=requireDefaults$2(),r=requireStringify(),i=requireExcerpt(),o=requireEngines(),s=requireToFile(),a=requireParse$1(),c=requireUtils$5();function l(e,r){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let o=s(e);const u=l.cache[o.content];if(!r){if(u)return o=Object.assign({},u),o.orig=u.orig,o;l.cache[o.content]=o}return function(e,r){const o=n(r),s=o.delimiters[0],u="\n"+o.delimiters[1];let d=e.content;o.language&&(e.language=o.language);const p=s.length;if(!c.startsWith(d,s,p))return i(e,o),e;if(d.charAt(p)===s.slice(-1))return e;d=d.slice(p);const f=d.length,_=l.language(d,o);_.name&&(e.language=_.name,d=d.slice(_.raw.length));let m=d.indexOf(u);-1===m&&(m=f);e.matter=d.slice(0,m);const h=e.matter.replace(/^\s*#[^\n]+/gm,"").trim();""===h?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=a(e.language,e.matter,o);m===f?e.content="":(e.content=d.slice(m+u.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1)));i(e,o),(!0===o.sections||"function"==typeof o.section)&&t(e,o.section);return e}(o,r)}return l.engines=o,l.stringify=function(e,t,n){return"string"==typeof e&&(e=l(e,n)),r(e,t,n)},l.read=function(t,n){const r=l(e.readFileSync(t,"utf8"),n);return r.path=t,r},l.test=function(e,t){return c.startsWith(e,n(t).delimiters[0])},l.language=function(e,t){const r=n(t).delimiters[0];l.test(e)&&(e=e.slice(r.length));const i=e.slice(0,e.search(/\r?\n/));return{raw:i,name:i?i.trim():""}},l.cache={},l.clearCache=function(){l.cache={}},grayMatter$1=l}var grayMatterExports=requireGrayMatter(),grayMatter=getDefaultExportFromCjs(grayMatterExports);function readDoc(e){debug(`reading file ${e}`);const t=fs$6.readFileSync(e,"utf8"),n=grayMatter(t),{content:r,data:i}=n;debug(`front matter for ${e}: ${JSON.stringify(n)}`);const o=n.data.slug||path$1.basename(e).replace(path$1.extname(e),"").toLowerCase();return{content:r,data:i,filePath:e,hash:crypto.createHash("sha1").update(t).digest("hex"),slug:o}}async function pushDoc(e,t){const n=this.id,{key:r,dryRun:i}=this.flags,{content:o,data:s,filePath:a,hash:c,slug:l}=t;if(!Object.keys(s).length)return this.debug(`No front matter attributes found for ${a}, not syncing`),`⏭️ no front matter attributes found for ${a}, skipping`;let u={body:o,...s,lastUpdatedHash:c};return"custompages"===n&&(u=a.endsWith(".html")?{html:o,htmlmode:!0,...s,lastUpdatedHash:c}:{body:o,htmlmode:!1,...s,lastUpdatedHash:c}),readmeAPIv1Fetch(`/api/v1/${n}/${l}`,{method:"get",headers:cleanAPIv1Headers(r,e,new Headers({Accept:"application/json"}))}).then((async t=>{const o=await handleAPIv1Res(t,!1);return t.ok?(this.debug(`data received for ${l}, updating doc`),c===o.lastUpdatedHash?`${i?"🎭 dry run! ":""}\`${l}\` ${i?"will not be":"was not"} updated because there were no changes.`:i?`🎭 dry run! This will update '${l}' with contents from ${a} with the following metadata: ${JSON.stringify(s)}`:readmeAPIv1Fetch(`/api/v1/${n}/${l}`,{method:"put",headers:cleanAPIv1Headers(r,e,new Headers({"Content-Type":"application/json"})),body:JSON.stringify(u)},{filePath:a,fileType:"path"}).then(handleAPIv1Res).then((e=>`✏️ successfully updated '${e.slug}' with contents from ${a}`))):404!==t.status?Promise.reject(new APIv1Error(o)):(this.debug(`error retrieving data for ${l}, creating doc`),i?`🎭 dry run! This will create '${l}' with contents from ${a} with the following metadata: ${JSON.stringify(s)}`:readmeAPIv1Fetch(`/api/v1/${n}`,{method:"post",headers:cleanAPIv1Headers(r,e,new Headers({"Content-Type":"application/json"})),body:JSON.stringify({slug:l,...u})},{filePath:a,fileType:"path"}).then(handleAPIv1Res).then((e=>`🌱 successfully created '${e.slug}' (ID: ${e._id}) with contents from ${a}`)))})).catch((e=>{throw e.message=`Error uploading ${chalk.underline(a)}:\n\n${e.message}`,e}))}const byParentDoc=(e,t)=>(t.data.parentDoc?1:0)-(e.data.parentDoc?1:0);function sortFiles(e){const t=e.map(readDoc).sort(byParentDoc),n=t.reduce(((e,t)=>(e[t.slug]=t,e)),{}),r=Object.values(n).reduce(((e,t)=>(t.data.parentDocSlug&&n[t.data.parentDocSlug]&&e.push([n[t.data.parentDocSlug],n[t.slug]]),e)),[]);return toposort.array(t,r)}async function syncDocsPath(e){const{path:t}=this.args,n=[".markdown",".md"];"custompages"===this.id&&n.unshift(".html");let r;if((await fs$7.stat(t).catch((e=>{if("ENOENT"===e.code)throw new Error("Oops! We couldn't locate a file or directory at the path you provided.");throw e}))).isDirectory()){const i=readdirRecursive(t).filter((e=>n.includes(path$1.extname(e).toLowerCase())));if(this.debug(`number of files: ${i.length}`),!i.length)return Promise.reject(new Error(`The directory you provided (${t}) doesn't contain any of the following required files: ${n.join(", ")}.`));let o;try{o=sortFiles(i)}catch(e){return Promise.reject(e)}r=(await Promise.all(o.map((async t=>pushDoc.call(this,e,t))))).join("\n")}else{const i=path$1.extname(t).toLowerCase();if(!n.includes(i))return Promise.reject(new Error(`Invalid file extension (${i}). Must be one of the following: ${n.join(", ")}`));const o=readDoc(t);r=await pushDoc.call(this,e,o)}return Promise.resolve(chalk.green(r))}class DocsCommand extends BaseCommand{id="docs";static id="docs";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static aliases=["guides"];static summary="Sync Markdown files to your ReadMe project as Guides.";static description="Syncs Markdown files to the Guides section of your ReadMe project. The path can either be a directory or a single Markdown file. The Markdown files will require YAML front matter with certain ReadMe documentation attributes. Check out our docs for more info on setting up your front matter: https://docs.readme.com/main/docs/rdme#markdown-file-setup";static args={path:libExports$3.Args.string({description:"Path to a local Markdown file or folder of Markdown files.",required:!0})};static flags={key:keyFlag,version:versionFlag,github:githubFlag,dryRun:libExports$3.Flags.boolean({description:"Runs the command without creating/updating any docs in ReadMe. Useful for debugging."})};static examples=[{description:"Passing in a path to a directory will also sync any Markdown files that are located in subdirectories. The path input can also be individual Markdown files:",command:"<%= config.bin %> <%= command.id %> [path] --version={project-version}"},{description:"This command also has a dry run mode, which can be useful for initial setup and debugging. You can read more about dry run mode in our docs: https://docs.readme.com/main/docs/rdme#dry-run-mode",command:"<%= config.bin %> <%= command.id %> [path] --version={project-version} --dryRun"}];async run(){const{key:e,version:t}=this.flags,n=await getProjectVersion(t,e);return this.runCreateGHAHook({result:await syncDocsPath.call(this,n),parsedOpts:{...this.args,...this.flags,version:n}})}}class ChangelogsCommand extends BaseCommand{id="changelogs";static id="changelogs";static summary="Sync Markdown files to your ReadMe project as Changelog posts.";static description="Syncs Markdown files to the Changelog section of your ReadMe project. The path can either be a directory or a single Markdown file. The Markdown files will require YAML front matter with certain ReadMe documentation attributes. Check out our docs for more info on setting up your front matter: https://docs.readme.com/main/docs/rdme#markdown-file-setup";static args={path:libExports$3.Args.string({description:"Path to a local Markdown file or folder of Markdown files.",required:!0})};static examples=DocsCommand.examples;static flags={github:githubFlag,key:keyFlag,dryRun:libExports$3.Flags.boolean({description:"Runs the command without creating/updating any changelogs in ReadMe. Useful for debugging."})};async run(){return this.runCreateGHAHook({result:await syncDocsPath.call(this)})}}class CustomPagesCommand extends BaseCommand{id="custompages";static id="custompages";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static summary="Sync Markdown/HTML files to your ReadMe project as Custom Pages.";static description="Syncs Markdown files as Custom Pages in your ReadMe project. The path can either be a directory or a single Markdown file. The Markdown files will require YAML front matter with certain ReadMe documentation attributes. Check out our docs for more info on setting up your front matter: https://docs.readme.com/main/docs/rdme#markdown-file-setup";static args={path:libExports$3.Args.string({description:"Path to a local Markdown file or folder of Markdown files.",required:!0})};static examples=DocsCommand.examples;static flags={github:githubFlag,key:keyFlag,dryRun:libExports$3.Flags.boolean({description:"Runs the command without creating/updating any custom pages in ReadMe. Useful for debugging."})};async run(){return this.runCreateGHAHook({result:await syncDocsPath.call(this)})}}async function deleteDoc(e,t,n,r){return n?Promise.resolve(`🎭 dry run! This will delete \`${r}\`.`):readmeAPIv1Fetch(`/api/v1/docs/${r}`,{method:"delete",headers:cleanAPIv1Headers(e,t,new Headers({"Content-Type":"application/json"}))}).then(handleAPIv1Res).then((()=>`🗑️ successfully deleted \`${r}\`.`))}function flatten(e){const t=[];return[].concat(...e).forEach((e=>{t.push(e),e.children&&e.children.forEach((e=>{t.push(e)}))})),t.sort((e=>e.children?.length?1:-1)),t}async function getCategoryDocs(e,t,n){return readmeAPIv1Fetch(`/api/v1/categories/${n}/docs`,{method:"get",headers:cleanAPIv1Headers(e,t,new Headers({"Content-Type":"application/json"}))}).then(handleAPIv1Res)}async function getDocs(e,t){return getCategories(e,t).then((e=>e.filter((({type:e})=>"guide"===e)))).then((n=>n.map((({slug:n})=>getCategoryDocs(e,t,n))))).then((e=>Promise.all(e))).then(flatten)}function getSlug(e){const{slug:t}=readDoc(e);return t}class DocsPruneCommand extends BaseCommand{static id="docs prune";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static aliases=["guides prune"];static description="Delete any docs from ReadMe if their slugs are not found in the target folder.";static args={folder:libExports$3.Args.string({description:"A local folder containing the files you wish to prune.",required:!0})};static flags={key:keyFlag,version:versionFlag,github:githubFlag,confirm:libExports$3.Flags.boolean({description:"Bypass the confirmation prompt. Useful for CI environments."}),dryRun:libExports$3.Flags.boolean({description:"Runs the command without deleting any docs in ReadMe. Useful for debugging."})};static examples=[{description:"If you wish to delete documents from ReadMe that are no longer present in your local directory:",command:"<%= config.bin %> <%= command.id %> [path-to-directory-of-markdown]"},{description:"Run with `--confirm` to bypass the confirmation prompt (useful for CI environments):",command:"<%= config.bin %> <%= command.id %> [path-to-directory-of-markdown] --confirm"}];async run(){const{folder:e}=this.args,{dryRun:t,key:n,version:r}=this.flags,i=await getProjectVersion(r,n);this.debug(`selectedVersion: ${i}`);const o=readdirRecursive(e).filter((e=>e.toLowerCase().endsWith(".md")||e.toLowerCase().endsWith(".markdown")));this.debug(`number of files: ${o.length}`),prompts.override({confirm:this.flags.confirm});const{confirm:s}=await promptTerminal({type:"confirm",name:"confirm",message:`This command will delete all guides page from your ReadMe project (version ${i}) that are not also in ${e}, would you like to confirm?`});if(!s)return Promise.reject(new Error("Aborting, no changes were made."));const a=(await getDocs(n,i)).map((({slug:e})=>e)),c=new Set(o.map(getSlug)),l=a.filter((e=>!c.has(e))),u=await Promise.all(l.map((e=>deleteDoc(n,i,t,e))));return this.runCreateGHAHook({result:chalk.green(u.join("\n")),parsedOpts:{...this.args,...this.flags,version:i,confirm:!0}})}}var isEmail$1={exports:{}},assertString={exports:{}},hasRequiredAssertString;function requireAssertString(){return hasRequiredAssertString||(hasRequiredAssertString=1,function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="string"==typeof e||e instanceof String;if(!t){var r=n(e);throw null===e?r="null":"object"===r&&(r=e.constructor.name),new TypeError("Expected a string but received a ".concat(r))}},e.exports=t.default,e.exports.default=t.default}(assertString,assertString.exports)),assertString.exports}var isByteLength={exports:{}},hasRequiredIsByteLength;function requireIsByteLength(){return hasRequiredIsByteLength||(hasRequiredIsByteLength=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o;(0,r.default)(e),"object"===i(t)?(n=t.min||0,o=t.max):(n=arguments[1],o=arguments[2]);var s=encodeURI(e).split(/%..|./).length-1;return s>=n&&(void 0===o||s<=o)};var n,r=(n=requireAssertString())&&n.__esModule?n:{default:n};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default}(isByteLength,isByteLength.exports)),isByteLength.exports}var isFQDN={exports:{}},merge$2={exports:{}},hasRequiredMerge$1,hasRequiredIsFQDN;function requireMerge$1(){return hasRequiredMerge$1||(hasRequiredMerge$1=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default}(merge$2,merge$2.exports)),merge$2.exports}function requireIsFQDN(){return hasRequiredIsFQDN||(hasRequiredIsFQDN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=(0,r.default)(t,o),t.allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var i=e.split("."),s=i[i.length-1];if(t.require_tld){if(i.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(s))return!1;if(/\s/.test(s))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(s))return!1;return i.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=i(requireAssertString()),r=i(requireMerge$1());function i(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default}(isFQDN,isFQDN.exports)),isFQDN.exports}var isIP={exports:{}},hasRequiredIsIP,hasRequiredIsEmail;function requireIsIP(){return hasRequiredIsIP||(hasRequiredIsIP=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),n=String(n),!n)return e(t,4)||e(t,6);if("4"===n)return s.test(t);if("6"===n)return c.test(t);return!1};var n,r=(n=requireAssertString())&&n.__esModule?n:{default:n};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(i,"[.]){3}").concat(i),s=new RegExp("^".concat(o,"$")),a="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(a,":){7}(?:").concat(a,"|:)|")+"(?:".concat(a,":){6}(?:").concat(o,"|:").concat(a,"|:)|")+"(?:".concat(a,":){5}(?::").concat(o,"|(:").concat(a,"){1,2}|:)|")+"(?:".concat(a,":){4}(?:(:").concat(a,"){0,1}:").concat(o,"|(:").concat(a,"){1,3}|:)|")+"(?:".concat(a,":){3}(?:(:").concat(a,"){0,2}:").concat(o,"|(:").concat(a,"){1,4}|:)|")+"(?:".concat(a,":){2}(?:(:").concat(a,"){0,3}:").concat(o,"|(:").concat(a,"){1,5}|:)|")+"(?:".concat(a,":){1}(?:(:").concat(a,"){0,4}:").concat(o,"|(:").concat(a,"){1,6}|:)|")+"(?::((?::".concat(a,"){0,5}:").concat(o,"|(?::").concat(a,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(isIP,isIP.exports)),isIP.exports}function requireIsEmail(){return hasRequiredIsEmail||(hasRequiredIsEmail=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,s.default)(t,c),t.require_display_name||t.allow_display_name){var a=e.match(l);if(a){var h=a[1];if(e=e.replace(h,"").replace(/(^<|>$)/g,""),h.endsWith(" ")&&(h=h.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(h))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>m)return!1;var g=e.split("@"),A=g.pop(),y=A.toLowerCase();if(t.host_blacklist.includes(y))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(y))return!1;var v=g.join("@");if(t.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var b=(v=v.toLowerCase()).split("+")[0];if(!(0,r.default)(b.replace(/\./g,""),{min:6,max:30}))return!1;for(var C=b.split("."),E=0;E{};this?.debug&&"function"==typeof this.debug&&(e=this.debug);return{apiKey:(()=>{switch(!0){case!!process.env.RDME_API_KEY:return e("using RDME_API_KEY env var for api key"),process.env.RDME_API_KEY;case!!process.env.README_API_KEY:return e("using README_API_KEY env var for api key"),process.env.README_API_KEY;default:return e("falling back to configstore value for api key"),configstore.get("apiKey")}})(),email:1==!!process.env.RDME_EMAIL?(e("using RDME_EMAIL env var for email"),process.env.RDME_EMAIL):(e("falling back to configstore value for email"),configstore.get("email")),project:1==!!process.env.RDME_PROJECT?(e("using RDME_PROJECT env var for project"),process.env.RDME_PROJECT):(e("falling back to configstore value for project"),configstore.get("project"))}}function loginFetch(e){return readmeAPIv1Fetch("/api/v1/login",{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)})}async function loginFlow(e){const t=getCurrentConfig(),{email:n,password:r,project:i}=await promptTerminal([{type:"text",name:"email",message:"What is your email address?",initial:t.email,validate:e=>!!isEmail.default(e)||"Please provide a valid email address."},{type:"invisible",name:"password",message:"What is your password?"},{type:"text",name:"project",message:"What project subdomain are you logging into?",initial:t.project,validate:validateSubdomain}]);if(!i)return Promise.reject(new Error("No project subdomain provided. Please use `--project`."));if(!isEmail.default(n))return Promise.reject(new Error("You must provide a valid email address."));const o={email:n,password:r,project:i};return e&&(o.token=e),loginFetch(o).then(handleAPIv1Res).catch((async e=>{if("LOGIN_TWOFACTOR"===e.code){debug("2FA error response, prompting for 2FA code");const e=await promptTerminal({type:"text",name:"otp",message:"What is your 2FA token?"});return loginFetch({email:n,password:r,project:i,token:e.otp}).then(handleAPIv1Res)}throw e})).then((e=>(configstore.set("apiKey",e.apiKey),configstore.set("email",n),configstore.set("project",i),`Successfully logged in as ${chalk.green(n)} to the ${chalk.blue(i)} project.`)))}class LoginCommand extends BaseCommand{static description="Login to a ReadMe project.";static flags={email:libExports$3.Flags.string({description:"Your email address"}),password:libExports$3.Flags.string({description:"Your password"}),otp:libExports$3.Flags.string({description:"Your one-time password (if you have two-factor authentication enabled)"}),project:libExports$3.Flags.string({description:"The subdomain of the project you wish to log into"})};async run(){return prompts.override(this.flags),loginFlow(this.flags.otp)}}class LogoutCommand extends BaseCommand{static description="Logs the currently authenticated user out of ReadMe.";async run(){return configstore.has("email")&&configstore.has("project")&&configstore.clear(),Promise.resolve(`You have logged out of ReadMe. Please use \`${this.config.bin} login\` to login again.`)}}let isDockerCached,cachedResult;function hasDockerEnv(){try{return fs$6.statSync("/.dockerenv"),!0}catch{return!1}}function hasDockerCGroup(){try{return fs$6.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function isDocker(){return void 0===isDockerCached&&(isDockerCached=hasDockerEnv()||hasDockerCGroup()),isDockerCached}const hasContainerEnv=()=>{try{return fs$6.statSync("/run/.containerenv"),!0}catch{return!1}};function isInsideContainer(){return void 0===cachedResult&&(cachedResult=hasContainerEnv()||isDocker()),cachedResult}const isWsl=()=>{if("linux"!==process$2.platform)return!1;if(os$1.release().toLowerCase().includes("microsoft"))return!isInsideContainer();try{return!!fs$6.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")&&!isInsideContainer()}catch{return!1}};var isWsl$1=process$2.env.__IS_WSL_TEST__?isWsl:isWsl();function defineLazyProperty(e,t,n){const r=n=>Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0});return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){const e=n();return r(e),e},set(e){r(e)}}),e}const execFileAsync$3=promisify(execFile);async function defaultBrowserId(){if("darwin"!==process$2.platform)throw new Error("macOS only");const{stdout:e}=await execFileAsync$3("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),t=/LSHandlerRoleAll = "(?!-)(?[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(e);return t?.groups.id??"com.apple.Safari"}const execFileAsync$2=promisify(execFile);async function runAppleScript(e,{humanReadableOutput:t=!0}={}){if("darwin"!==process$2.platform)throw new Error("macOS only");const n=t?[]:["-ss"],{stdout:r}=await execFileAsync$2("osascript",["-e",e,n]);return r.trim()}async function bundleName(e){return runAppleScript(`tell application "Finder" to set app_path to application file id "${e}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}const execFileAsync$1=promisify(execFile),windowsBrowserProgIds={AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},MSEdgeDHTML:{name:"Edge",id:"com.microsoft.edge"},MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"}};class UnknownBrowserError extends Error{}async function defaultBrowser$1(e=execFileAsync$1){const{stdout:t}=await e("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),n=/ProgId\s*REG_SZ\s*(?\S+)/.exec(t);if(!n)throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(t)}`);const{id:r}=n.groups,i=windowsBrowserProgIds[r];if(!i)throw new UnknownBrowserError(`Unknown browser ID: ${r}`);return i}const execFileAsync=promisify(execFile),titleize=e=>e.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,(e=>e.toUpperCase()));async function defaultBrowser(){if("darwin"===process$2.platform){const e=await defaultBrowserId();return{name:await bundleName(e),id:e}}if("linux"===process$2.platform){const{stdout:e}=await execFileAsync("xdg-mime",["query","default","x-scheme-handler/http"]),t=e.trim();return{name:titleize(t.replace(/.desktop$/,"").replace("-"," ")),id:t}}if("win32"===process$2.platform)return defaultBrowser$1();throw new Error("Only macOS, Linux, and Windows are supported")}const __dirname$1=path$1.dirname(fileURLToPath(import.meta.url)),localXdgOpenPath=path$1.join(__dirname$1,"xdg-open"),{platform:platform,arch:arch}=process$2,getWslDrivesMountPoint=(()=>{const e="/mnt/";let t;return async function(){if(t)return t;const n="/etc/wsl.conf";let r=!1;try{await fs$7.access(n,constants$9.F_OK),r=!0}catch{}if(!r)return e;const i=await fs$7.readFile(n,{encoding:"utf8"}),o=/(?.*)/g.exec(i);return o?(t=o.groups.mountPoint.trim(),t=t.endsWith("/")?t:`${t}/`,t):e}})(),pTryEach=async(e,t)=>{let n;for(const r of e)try{return await t(r)}catch(e){n=e}throw n},baseOpen=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return pTryEach(e.app,(t=>baseOpen({...e,app:t})));let t,{name:n,arguments:r=[]}=e.app??{};if(r=[...r],Array.isArray(n))return pTryEach(n,(t=>baseOpen({...e,app:{name:t,arguments:r}})));if("browser"===n||"browserPrivate"===n){const t={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","microsoft-edge.desktop":"edge"},i={chrome:"--incognito",firefox:"--private-window",edge:"--inPrivate"},o=await defaultBrowser();if(o.id in t){const s=t[o.id];return"browserPrivate"===n&&r.push(i[s]),baseOpen({...e,app:{name:apps[s],arguments:r}})}throw new Error(`${o.name} is not supported as a default browser`)}const i=[],o={};if("darwin"===platform)t="open",e.wait&&i.push("--wait-apps"),e.background&&i.push("--background"),e.newInstance&&i.push("--new"),n&&i.push("-a",n);else if("win32"===platform||isWsl$1&&!isInsideContainer()&&!n){const s=await getWslDrivesMountPoint();t=isWsl$1?`${s}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process$2.env.SYSTEMROOT||process$2.env.windir||"C:\\Windows"}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"),isWsl$1||(o.windowsVerbatimArguments=!0);const a=["Start"];e.wait&&a.push("-Wait"),n?(a.push(`"\`"${n}\`""`),e.target&&r.push(e.target)):e.target&&a.push(`"${e.target}"`),r.length>0&&(r=r.map((e=>`"\`"${e}\`""`)),a.push("-ArgumentList",r.join(","))),e.target=Buffer$1.from(a.join(" "),"utf16le").toString("base64")}else{if(n)t=n;else{const e=!__dirname$1||"/"===__dirname$1;let n=!1;try{await fs$7.access(localXdgOpenPath,constants$9.X_OK),n=!0}catch{}t=process$2.versions.electron??("android"===platform||e||!n)?"xdg-open":localXdgOpenPath}r.length>0&&i.push(...r),e.wait||(o.stdio="ignore",o.detached=!0)}"darwin"===platform&&r.length>0&&i.push("--args",...r),e.target&&i.push(e.target);const s=childProcess.spawn(t,i,o);return e.wait?new Promise(((t,n)=>{s.once("error",n),s.once("close",(r=>{!e.allowNonzeroExitCode&&r>0?n(new Error(`Exited with code ${r}`)):t(s)}))})):(s.unref(),s)},open=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a `target`");return baseOpen({...t,target:e})};function detectArchBinary(e){if("string"==typeof e||Array.isArray(e))return e;const{[arch]:t}=e;if(!t)throw new Error(`${arch} is not supported`);return t}function detectPlatformBinary({[platform]:e},{wsl:t}){if(t&&isWsl$1)return detectArchBinary(t);if(!e)throw new Error(`${platform} is not supported`);return detectArchBinary(e)}const apps={};defineLazyProperty(apps,"chrome",(()=>detectPlatformBinary({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}))),defineLazyProperty(apps,"firefox",(()=>detectPlatformBinary({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}))),defineLazyProperty(apps,"edge",(()=>detectPlatformBinary({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}))),defineLazyProperty(apps,"browser",(()=>"browser")),defineLazyProperty(apps,"browserPrivate",(()=>"browserPrivate"));class OpenCommand extends BaseCommand{static description="Open your current ReadMe project in the browser.";static flags={dash:libExports$3.Flags.boolean({description:"Opens your current ReadMe project dashboard."}),mock:libExports$3.Flags.boolean({description:"[hidden] used for mocking.",hidden:!0})};static hidden=!0;static id="open";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};async run(){const{dash:e,mock:t}=this.flags,{apiKey:n,project:r}=getCurrentConfig();if(this.debug(`project: ${r}`),!r)return Promise.reject(new Error(`Please login using \`${this.config.bin} login\`.`));let i;if(e){if(!n)return Promise.reject(new Error(`Please login using \`${this.config.bin} login\`.`));const e=await getProjectVersion(void 0,n,!0);i=`${config.host}/project/${r}/v${e}/overview`}else{i=config.hub.replace("{project}",r)}const o=`Opening ${chalk.green(i)} in your browser...`;return t?Promise.resolve(o):open(i,{wait:!1}).then((()=>Promise.resolve(o)))}} + */function requireStripBomString(){return hasRequiredStripBomString||(hasRequiredStripBomString=1,stripBomString=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e}),stripBomString}function requireUtils$5(){return hasRequiredUtils$5||(hasRequiredUtils$5=1,function(e){const t=requireStripBomString(),n=requireKindOf();e.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},e.isBuffer=function(e){return"buffer"===n(e)},e.isObject=function(e){return"object"===n(e)},e.toBuffer=function(e){return"string"==typeof e?Buffer.from(e):e},e.toString=function(n){if(e.isBuffer(n))return t(String(n));if("string"!=typeof n)throw new TypeError("expected input to be a string or buffer");return t(n)},e.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},e.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}(utils$5)),utils$5}function requireDefaults$2(){if(hasRequiredDefaults$2)return defaults$1;hasRequiredDefaults$2=1;const e=requireEngines(),t=requireUtils$5();return defaults$1=function(n){const r=Object.assign({},n);return r.delimiters=t.arrayify(r.delims||r.delimiters||"---"),1===r.delimiters.length&&r.delimiters.push(r.delimiters[0]),r.language=(r.language||r.lang||"yaml").toLowerCase(),r.engines=Object.assign({},e,r.parsers,r.engines),r},defaults$1}function requireEngine(){if(hasRequiredEngine)return engine;return hasRequiredEngine=1,engine=function(e,t){let n=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===n)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof n&&(n={parse:n}),n},engine}function requireStringify(){if(hasRequiredStringify)return stringify;hasRequiredStringify=1;const e=requireKindOf(),t=requireEngine(),n=requireDefaults$2();function r(e){return"\n"!==e.slice(-1)?e+"\n":e}return stringify=function(i,o,s){if(null==o&&null==s)switch(e(i)){case"object":o=i.data,s={};break;case"string":return i;default:throw new TypeError("expected file to be a string or object")}const a=i.content,c=n(s);if(null==o){if(!c.data)return i;o=c.data}const l=i.language||c.language,u=t(l,c);if("function"!=typeof u.stringify)throw new TypeError('expected "'+l+'.stringify" to be a function');o=Object.assign({},i.data,o);const d=c.delimiters[0],p=c.delimiters[1],f=u.stringify(o,s).trim();let _="";return"{}"!==f&&(_=r(d)+r(f)+r(p)),"string"==typeof i.excerpt&&""!==i.excerpt&&-1===a.indexOf(i.excerpt.trim())&&(_+=r(i.excerpt)+r(p)),_+r(a)},stringify}function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const e=requireDefaults$2();return excerpt=function(t,n){const r=e(n);if(null==t.data&&(t.data={}),"function"==typeof r.excerpt)return r.excerpt(t,r);const i=t.data.excerpt_separator||r.excerpt_separator;if(null==i&&(!1===r.excerpt||null==r.excerpt))return t;const o="string"==typeof r.excerpt?r.excerpt:i||r.delimiters[0],s=t.content.indexOf(o);return-1!==s&&(t.excerpt=t.content.slice(0,s)),t},excerpt}function requireToFile(){if(hasRequiredToFile)return toFile;hasRequiredToFile=1;const e=requireKindOf(),t=requireStringify(),n=requireUtils$5();return toFile=function(r){return"object"!==e(r)&&(r={content:r}),"object"!==e(r.data)&&(r.data={}),r.contents&&null==r.content&&(r.content=r.contents),n.define(r,"orig",n.toBuffer(r.content)),n.define(r,"language",r.language||""),n.define(r,"matter",r.matter||""),n.define(r,"stringify",(function(e,n){return n&&n.language&&(r.language=n.language),t(r,e,n)})),r.content=n.toString(r.content),r.isEmpty=!1,r.excerpt="",r},toFile}function requireParse$1(){if(hasRequiredParse$1)return parse$4;hasRequiredParse$1=1;const e=requireEngine(),t=requireDefaults$2();return parse$4=function(n,r,i){const o=t(i),s=e(n,o);if("function"!=typeof s.parse)throw new TypeError('expected "'+n+'.parse" to be a function');return s.parse(r,o)},parse$4}function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter$1;hasRequiredGrayMatter=1;const e=require$$0$7,t=requireSectionMatter(),n=requireDefaults$2(),r=requireStringify(),i=requireExcerpt(),o=requireEngines(),s=requireToFile(),a=requireParse$1(),c=requireUtils$5();function l(e,r){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let o=s(e);const u=l.cache[o.content];if(!r){if(u)return o=Object.assign({},u),o.orig=u.orig,o;l.cache[o.content]=o}return function(e,r){const o=n(r),s=o.delimiters[0],u="\n"+o.delimiters[1];let d=e.content;o.language&&(e.language=o.language);const p=s.length;if(!c.startsWith(d,s,p))return i(e,o),e;if(d.charAt(p)===s.slice(-1))return e;d=d.slice(p);const f=d.length,_=l.language(d,o);_.name&&(e.language=_.name,d=d.slice(_.raw.length));let m=d.indexOf(u);-1===m&&(m=f);e.matter=d.slice(0,m);const h=e.matter.replace(/^\s*#[^\n]+/gm,"").trim();""===h?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=a(e.language,e.matter,o);m===f?e.content="":(e.content=d.slice(m+u.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1)));i(e,o),(!0===o.sections||"function"==typeof o.section)&&t(e,o.section);return e}(o,r)}return l.engines=o,l.stringify=function(e,t,n){return"string"==typeof e&&(e=l(e,n)),r(e,t,n)},l.read=function(t,n){const r=l(e.readFileSync(t,"utf8"),n);return r.path=t,r},l.test=function(e,t){return c.startsWith(e,n(t).delimiters[0])},l.language=function(e,t){const r=n(t).delimiters[0];l.test(e)&&(e=e.slice(r.length));const i=e.slice(0,e.search(/\r?\n/));return{raw:i,name:i?i.trim():""}},l.cache={},l.clearCache=function(){l.cache={}},grayMatter$1=l}var grayMatterExports=requireGrayMatter(),grayMatter=getDefaultExportFromCjs(grayMatterExports);function readDoc(e){debug(`reading file ${e}`);const t=fs$6.readFileSync(e,"utf8"),n=grayMatter(t),{content:r,data:i}=n;debug(`front matter for ${e}: ${JSON.stringify(n)}`);const o=n.data.slug||path$1.basename(e).replace(path$1.extname(e),"").toLowerCase();return{content:r,data:i,filePath:e,hash:crypto.createHash("sha1").update(t).digest("hex"),slug:o}}async function pushDoc(e,t){const n=this.id,{key:r,dryRun:i}=this.flags,{content:o,data:s,filePath:a,hash:c,slug:l}=t;if(!Object.keys(s).length)return this.debug(`No front matter attributes found for ${a}, not syncing`),`⏭️ no front matter attributes found for ${a}, skipping`;let u={body:o,...s,lastUpdatedHash:c};return"custompages"===n&&(u=a.endsWith(".html")?{html:o,htmlmode:!0,...s,lastUpdatedHash:c}:{body:o,htmlmode:!1,...s,lastUpdatedHash:c}),readmeAPIv1Fetch(`/api/v1/${n}/${l}`,{method:"get",headers:cleanAPIv1Headers(r,e,new Headers({Accept:"application/json"}))}).then((async t=>{const o=await handleAPIv1Res(t,!1);return t.ok?(this.debug(`data received for ${l}, updating doc`),c===o.lastUpdatedHash?`${i?"🎭 dry run! ":""}\`${l}\` ${i?"will not be":"was not"} updated because there were no changes.`:i?`🎭 dry run! This will update '${l}' with contents from ${a} with the following metadata: ${JSON.stringify(s)}`:readmeAPIv1Fetch(`/api/v1/${n}/${l}`,{method:"put",headers:cleanAPIv1Headers(r,e,new Headers({"Content-Type":"application/json"})),body:JSON.stringify(u)},{filePath:a,fileType:"path"}).then(handleAPIv1Res).then((e=>`✏️ successfully updated '${e.slug}' with contents from ${a}`))):404!==t.status?Promise.reject(new APIv1Error(o)):(this.debug(`error retrieving data for ${l}, creating doc`),i?`🎭 dry run! This will create '${l}' with contents from ${a} with the following metadata: ${JSON.stringify(s)}`:readmeAPIv1Fetch(`/api/v1/${n}`,{method:"post",headers:cleanAPIv1Headers(r,e,new Headers({"Content-Type":"application/json"})),body:JSON.stringify({slug:l,...u})},{filePath:a,fileType:"path"}).then(handleAPIv1Res).then((e=>`🌱 successfully created '${e.slug}' (ID: ${e._id}) with contents from ${a}`)))})).catch((e=>{throw e.message=`Error uploading ${chalk.underline(a)}:\n\n${e.message}`,e}))}const byParentDoc=(e,t)=>(t.data.parentDoc?1:0)-(e.data.parentDoc?1:0);function sortFiles(e){const t=e.map(readDoc).sort(byParentDoc),n=t.reduce(((e,t)=>(e[t.slug]=t,e)),{}),r=Object.values(n).reduce(((e,t)=>(t.data.parentDocSlug&&n[t.data.parentDocSlug]&&e.push([n[t.data.parentDocSlug],n[t.slug]]),e)),[]);return toposort.array(t,r)}async function syncDocsPath(e){const{path:t}=this.args,n=[".markdown",".md"];"custompages"===this.id&&n.unshift(".html");let r;if((await fs$7.stat(t).catch((e=>{if("ENOENT"===e.code)throw new Error("Oops! We couldn't locate a file or directory at the path you provided.");throw e}))).isDirectory()){const i=readdirRecursive(t).filter((e=>n.includes(path$1.extname(e).toLowerCase())));if(this.debug(`number of files: ${i.length}`),!i.length)return Promise.reject(new Error(`The directory you provided (${t}) doesn't contain any of the following required files: ${n.join(", ")}.`));let o;try{o=sortFiles(i)}catch(e){return Promise.reject(e)}r=(await Promise.all(o.map((async t=>pushDoc.call(this,e,t))))).join("\n")}else{const i=path$1.extname(t).toLowerCase();if(!n.includes(i))return Promise.reject(new Error(`Invalid file extension (${i}). Must be one of the following: ${n.join(", ")}`));const o=readDoc(t);r=await pushDoc.call(this,e,o)}return Promise.resolve(chalk.green(r))}class DocsCommand extends BaseCommand{id="docs";static id="docs";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static aliases=["guides"];static summary="Sync Markdown files to your ReadMe project as Guides.";static description="Syncs Markdown files to the Guides section of your ReadMe project. The path can either be a directory or a single Markdown file. The Markdown files will require YAML front matter with certain ReadMe documentation attributes. Check out our docs for more info on setting up your front matter: https://docs.readme.com/main/docs/rdme#markdown-file-setup";static args={path:libExports$3.Args.string({description:"Path to a local Markdown file or folder of Markdown files.",required:!0})};static flags={key:keyFlag,version:versionFlag,github:githubFlag,dryRun:libExports$3.Flags.boolean({description:"Runs the command without creating/updating any docs in ReadMe. Useful for debugging."})};static examples=[{description:"Passing in a path to a directory will also sync any Markdown files that are located in subdirectories. The path input can also be individual Markdown files:",command:"<%= config.bin %> <%= command.id %> [path] --version={project-version}"},{description:"This command also has a dry run mode, which can be useful for initial setup and debugging. You can read more about dry run mode in our docs: https://docs.readme.com/main/docs/rdme#dry-run-mode",command:"<%= config.bin %> <%= command.id %> [path] --version={project-version} --dryRun"}];async run(){const{key:e,version:t}=this.flags,n=await getProjectVersion(t,e);return this.runCreateGHAHook({result:await syncDocsPath.call(this,n),parsedOpts:{...this.args,...this.flags,version:n}})}}class ChangelogsCommand extends BaseCommand{id="changelogs";static id="changelogs";static summary="Sync Markdown files to your ReadMe project as Changelog posts.";static description="Syncs Markdown files to the Changelog section of your ReadMe project. The path can either be a directory or a single Markdown file. The Markdown files will require YAML front matter with certain ReadMe documentation attributes. Check out our docs for more info on setting up your front matter: https://docs.readme.com/main/docs/rdme#markdown-file-setup";static args={path:libExports$3.Args.string({description:"Path to a local Markdown file or folder of Markdown files.",required:!0})};static examples=DocsCommand.examples;static flags={github:githubFlag,key:keyFlag,dryRun:libExports$3.Flags.boolean({description:"Runs the command without creating/updating any changelogs in ReadMe. Useful for debugging."})};async run(){return this.runCreateGHAHook({result:await syncDocsPath.call(this)})}}class CustomPagesCommand extends BaseCommand{id="custompages";static id="custompages";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static summary="Sync Markdown/HTML files to your ReadMe project as Custom Pages.";static description="Syncs Markdown files as Custom Pages in your ReadMe project. The path can either be a directory or a single Markdown file. The Markdown files will require YAML front matter with certain ReadMe documentation attributes. Check out our docs for more info on setting up your front matter: https://docs.readme.com/main/docs/rdme#markdown-file-setup";static args={path:libExports$3.Args.string({description:"Path to a local Markdown file or folder of Markdown files.",required:!0})};static examples=DocsCommand.examples;static flags={github:githubFlag,key:keyFlag,dryRun:libExports$3.Flags.boolean({description:"Runs the command without creating/updating any custom pages in ReadMe. Useful for debugging."})};async run(){return this.runCreateGHAHook({result:await syncDocsPath.call(this)})}}async function deleteDoc(e,t,n,r){return n?Promise.resolve(`🎭 dry run! This will delete \`${r}\`.`):readmeAPIv1Fetch(`/api/v1/docs/${r}`,{method:"delete",headers:cleanAPIv1Headers(e,t,new Headers({"Content-Type":"application/json"}))}).then(handleAPIv1Res).then((()=>`🗑️ successfully deleted \`${r}\`.`))}function flatten(e){const t=[];return[].concat(...e).forEach((e=>{t.push(e),e.children&&e.children.forEach((e=>{t.push(e)}))})),t.sort((e=>e.children?.length?1:-1)),t}async function getCategoryDocs(e,t,n){return readmeAPIv1Fetch(`/api/v1/categories/${n}/docs`,{method:"get",headers:cleanAPIv1Headers(e,t,new Headers({"Content-Type":"application/json"}))}).then(handleAPIv1Res)}async function getDocs(e,t){return getCategories(e,t).then((e=>e.filter((({type:e})=>"guide"===e)))).then((n=>n.map((({slug:n})=>getCategoryDocs(e,t,n))))).then((e=>Promise.all(e))).then(flatten)}function getSlug(e){const{slug:t}=readDoc(e);return t}class DocsPruneCommand extends BaseCommand{static id="docs prune";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};static aliases=["guides:prune"];static description="Delete any docs from ReadMe if their slugs are not found in the target folder.";static args={folder:libExports$3.Args.string({description:"A local folder containing the files you wish to prune.",required:!0})};static flags={key:keyFlag,version:versionFlag,github:githubFlag,confirm:libExports$3.Flags.boolean({description:"Bypass the confirmation prompt. Useful for CI environments."}),dryRun:libExports$3.Flags.boolean({description:"Runs the command without deleting any docs in ReadMe. Useful for debugging."})};static examples=[{description:"If you wish to delete documents from ReadMe that are no longer present in your local directory:",command:"<%= config.bin %> <%= command.id %> [path-to-directory-of-markdown]"},{description:"Run with `--confirm` to bypass the confirmation prompt (useful for CI environments):",command:"<%= config.bin %> <%= command.id %> [path-to-directory-of-markdown] --confirm"}];async run(){const{folder:e}=this.args,{dryRun:t,key:n,version:r}=this.flags,i=await getProjectVersion(r,n);this.debug(`selectedVersion: ${i}`);const o=readdirRecursive(e).filter((e=>e.toLowerCase().endsWith(".md")||e.toLowerCase().endsWith(".markdown")));this.debug(`number of files: ${o.length}`),prompts.override({confirm:this.flags.confirm});const{confirm:s}=await promptTerminal({type:"confirm",name:"confirm",message:`This command will delete all guides page from your ReadMe project (version ${i}) that are not also in ${e}, would you like to confirm?`});if(!s)return Promise.reject(new Error("Aborting, no changes were made."));const a=(await getDocs(n,i)).map((({slug:e})=>e)),c=new Set(o.map(getSlug)),l=a.filter((e=>!c.has(e))),u=await Promise.all(l.map((e=>deleteDoc(n,i,t,e))));return this.runCreateGHAHook({result:chalk.green(u.join("\n")),parsedOpts:{...this.args,...this.flags,version:i,confirm:!0}})}}var isEmail$1={exports:{}},assertString={exports:{}},hasRequiredAssertString;function requireAssertString(){return hasRequiredAssertString||(hasRequiredAssertString=1,function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="string"==typeof e||e instanceof String;if(!t){var r=n(e);throw null===e?r="null":"object"===r&&(r=e.constructor.name),new TypeError("Expected a string but received a ".concat(r))}},e.exports=t.default,e.exports.default=t.default}(assertString,assertString.exports)),assertString.exports}var isByteLength={exports:{}},hasRequiredIsByteLength;function requireIsByteLength(){return hasRequiredIsByteLength||(hasRequiredIsByteLength=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o;(0,r.default)(e),"object"===i(t)?(n=t.min||0,o=t.max):(n=arguments[1],o=arguments[2]);var s=encodeURI(e).split(/%..|./).length-1;return s>=n&&(void 0===o||s<=o)};var n,r=(n=requireAssertString())&&n.__esModule?n:{default:n};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default}(isByteLength,isByteLength.exports)),isByteLength.exports}var isFQDN={exports:{}},merge$2={exports:{}},hasRequiredMerge$1,hasRequiredIsFQDN;function requireMerge$1(){return hasRequiredMerge$1||(hasRequiredMerge$1=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default}(merge$2,merge$2.exports)),merge$2.exports}function requireIsFQDN(){return hasRequiredIsFQDN||(hasRequiredIsFQDN=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=(0,r.default)(t,o),t.allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var i=e.split("."),s=i[i.length-1];if(t.require_tld){if(i.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(s))return!1;if(/\s/.test(s))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(s))return!1;return i.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=i(requireAssertString()),r=i(requireMerge$1());function i(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default}(isFQDN,isFQDN.exports)),isFQDN.exports}var isIP={exports:{}},hasRequiredIsIP,hasRequiredIsEmail;function requireIsIP(){return hasRequiredIsIP||(hasRequiredIsIP=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),n=String(n),!n)return e(t,4)||e(t,6);if("4"===n)return s.test(t);if("6"===n)return c.test(t);return!1};var n,r=(n=requireAssertString())&&n.__esModule?n:{default:n};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(i,"[.]){3}").concat(i),s=new RegExp("^".concat(o,"$")),a="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(a,":){7}(?:").concat(a,"|:)|")+"(?:".concat(a,":){6}(?:").concat(o,"|:").concat(a,"|:)|")+"(?:".concat(a,":){5}(?::").concat(o,"|(:").concat(a,"){1,2}|:)|")+"(?:".concat(a,":){4}(?:(:").concat(a,"){0,1}:").concat(o,"|(:").concat(a,"){1,3}|:)|")+"(?:".concat(a,":){3}(?:(:").concat(a,"){0,2}:").concat(o,"|(:").concat(a,"){1,4}|:)|")+"(?:".concat(a,":){2}(?:(:").concat(a,"){0,3}:").concat(o,"|(:").concat(a,"){1,5}|:)|")+"(?:".concat(a,":){1}(?:(:").concat(a,"){0,4}:").concat(o,"|(:").concat(a,"){1,6}|:)|")+"(?::((?::".concat(a,"){0,5}:").concat(o,"|(?::").concat(a,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(isIP,isIP.exports)),isIP.exports}function requireIsEmail(){return hasRequiredIsEmail||(hasRequiredIsEmail=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,s.default)(t,c),t.require_display_name||t.allow_display_name){var a=e.match(l);if(a){var h=a[1];if(e=e.replace(h,"").replace(/(^<|>$)/g,""),h.endsWith(" ")&&(h=h.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(h))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>m)return!1;var g=e.split("@"),A=g.pop(),y=A.toLowerCase();if(t.host_blacklist.includes(y))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(y))return!1;var v=g.join("@");if(t.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var b=(v=v.toLowerCase()).split("+")[0];if(!(0,r.default)(b.replace(/\./g,""),{min:6,max:30}))return!1;for(var C=b.split("."),E=0;E{};this?.debug&&"function"==typeof this.debug&&(e=this.debug);return{apiKey:(()=>{switch(!0){case!!process.env.RDME_API_KEY:return e("using RDME_API_KEY env var for api key"),process.env.RDME_API_KEY;case!!process.env.README_API_KEY:return e("using README_API_KEY env var for api key"),process.env.README_API_KEY;default:return e("falling back to configstore value for api key"),configstore.get("apiKey")}})(),email:1==!!process.env.RDME_EMAIL?(e("using RDME_EMAIL env var for email"),process.env.RDME_EMAIL):(e("falling back to configstore value for email"),configstore.get("email")),project:1==!!process.env.RDME_PROJECT?(e("using RDME_PROJECT env var for project"),process.env.RDME_PROJECT):(e("falling back to configstore value for project"),configstore.get("project"))}}function loginFetch(e){return readmeAPIv1Fetch("/api/v1/login",{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)})}async function loginFlow(e){const t=getCurrentConfig(),{email:n,password:r,project:i}=await promptTerminal([{type:"text",name:"email",message:"What is your email address?",initial:t.email,validate:e=>!!isEmail.default(e)||"Please provide a valid email address."},{type:"invisible",name:"password",message:"What is your password?"},{type:"text",name:"project",message:"What project subdomain are you logging into?",initial:t.project,validate:validateSubdomain}]);if(!i)return Promise.reject(new Error("No project subdomain provided. Please use `--project`."));if(!isEmail.default(n))return Promise.reject(new Error("You must provide a valid email address."));const o={email:n,password:r,project:i};return e&&(o.token=e),loginFetch(o).then(handleAPIv1Res).catch((async e=>{if("LOGIN_TWOFACTOR"===e.code){debug("2FA error response, prompting for 2FA code");const e=await promptTerminal({type:"text",name:"otp",message:"What is your 2FA token?"});return loginFetch({email:n,password:r,project:i,token:e.otp}).then(handleAPIv1Res)}throw e})).then((e=>(configstore.set("apiKey",e.apiKey),configstore.set("email",n),configstore.set("project",i),`Successfully logged in as ${chalk.green(n)} to the ${chalk.blue(i)} project.`)))}class LoginCommand extends BaseCommand{static description="Login to a ReadMe project.";static flags={email:libExports$3.Flags.string({description:"Your email address"}),password:libExports$3.Flags.string({description:"Your password"}),otp:libExports$3.Flags.string({description:"Your one-time password (if you have two-factor authentication enabled)"}),project:libExports$3.Flags.string({description:"The subdomain of the project you wish to log into"})};async run(){return prompts.override(this.flags),loginFlow(this.flags.otp)}}class LogoutCommand extends BaseCommand{static description="Logs the currently authenticated user out of ReadMe.";async run(){return configstore.has("email")&&configstore.has("project")&&configstore.clear(),Promise.resolve(`You have logged out of ReadMe. Please use \`${this.config.bin} login\` to login again.`)}}let isDockerCached,cachedResult;function hasDockerEnv(){try{return fs$6.statSync("/.dockerenv"),!0}catch{return!1}}function hasDockerCGroup(){try{return fs$6.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function isDocker(){return void 0===isDockerCached&&(isDockerCached=hasDockerEnv()||hasDockerCGroup()),isDockerCached}const hasContainerEnv=()=>{try{return fs$6.statSync("/run/.containerenv"),!0}catch{return!1}};function isInsideContainer(){return void 0===cachedResult&&(cachedResult=hasContainerEnv()||isDocker()),cachedResult}const isWsl=()=>{if("linux"!==process$2.platform)return!1;if(os$1.release().toLowerCase().includes("microsoft"))return!isInsideContainer();try{return!!fs$6.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")&&!isInsideContainer()}catch{return!1}};var isWsl$1=process$2.env.__IS_WSL_TEST__?isWsl:isWsl();function defineLazyProperty(e,t,n){const r=n=>Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0});return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get(){const e=n();return r(e),e},set(e){r(e)}}),e}const execFileAsync$3=promisify(execFile);async function defaultBrowserId(){if("darwin"!==process$2.platform)throw new Error("macOS only");const{stdout:e}=await execFileAsync$3("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),t=/LSHandlerRoleAll = "(?!-)(?[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(e);return t?.groups.id??"com.apple.Safari"}const execFileAsync$2=promisify(execFile);async function runAppleScript(e,{humanReadableOutput:t=!0}={}){if("darwin"!==process$2.platform)throw new Error("macOS only");const n=t?[]:["-ss"],{stdout:r}=await execFileAsync$2("osascript",["-e",e,n]);return r.trim()}async function bundleName(e){return runAppleScript(`tell application "Finder" to set app_path to application file id "${e}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}const execFileAsync$1=promisify(execFile),windowsBrowserProgIds={AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},MSEdgeDHTML:{name:"Edge",id:"com.microsoft.edge"},MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"}};class UnknownBrowserError extends Error{}async function defaultBrowser$1(e=execFileAsync$1){const{stdout:t}=await e("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),n=/ProgId\s*REG_SZ\s*(?\S+)/.exec(t);if(!n)throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(t)}`);const{id:r}=n.groups,i=windowsBrowserProgIds[r];if(!i)throw new UnknownBrowserError(`Unknown browser ID: ${r}`);return i}const execFileAsync=promisify(execFile),titleize=e=>e.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,(e=>e.toUpperCase()));async function defaultBrowser(){if("darwin"===process$2.platform){const e=await defaultBrowserId();return{name:await bundleName(e),id:e}}if("linux"===process$2.platform){const{stdout:e}=await execFileAsync("xdg-mime",["query","default","x-scheme-handler/http"]),t=e.trim();return{name:titleize(t.replace(/.desktop$/,"").replace("-"," ")),id:t}}if("win32"===process$2.platform)return defaultBrowser$1();throw new Error("Only macOS, Linux, and Windows are supported")}const __dirname$1=path$1.dirname(fileURLToPath(import.meta.url)),localXdgOpenPath=path$1.join(__dirname$1,"xdg-open"),{platform:platform,arch:arch}=process$2,getWslDrivesMountPoint=(()=>{const e="/mnt/";let t;return async function(){if(t)return t;const n="/etc/wsl.conf";let r=!1;try{await fs$7.access(n,constants$9.F_OK),r=!0}catch{}if(!r)return e;const i=await fs$7.readFile(n,{encoding:"utf8"}),o=/(?.*)/g.exec(i);return o?(t=o.groups.mountPoint.trim(),t=t.endsWith("/")?t:`${t}/`,t):e}})(),pTryEach=async(e,t)=>{let n;for(const r of e)try{return await t(r)}catch(e){n=e}throw n},baseOpen=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return pTryEach(e.app,(t=>baseOpen({...e,app:t})));let t,{name:n,arguments:r=[]}=e.app??{};if(r=[...r],Array.isArray(n))return pTryEach(n,(t=>baseOpen({...e,app:{name:t,arguments:r}})));if("browser"===n||"browserPrivate"===n){const t={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","microsoft-edge.desktop":"edge"},i={chrome:"--incognito",firefox:"--private-window",edge:"--inPrivate"},o=await defaultBrowser();if(o.id in t){const s=t[o.id];return"browserPrivate"===n&&r.push(i[s]),baseOpen({...e,app:{name:apps[s],arguments:r}})}throw new Error(`${o.name} is not supported as a default browser`)}const i=[],o={};if("darwin"===platform)t="open",e.wait&&i.push("--wait-apps"),e.background&&i.push("--background"),e.newInstance&&i.push("--new"),n&&i.push("-a",n);else if("win32"===platform||isWsl$1&&!isInsideContainer()&&!n){const s=await getWslDrivesMountPoint();t=isWsl$1?`${s}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process$2.env.SYSTEMROOT||process$2.env.windir||"C:\\Windows"}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"),isWsl$1||(o.windowsVerbatimArguments=!0);const a=["Start"];e.wait&&a.push("-Wait"),n?(a.push(`"\`"${n}\`""`),e.target&&r.push(e.target)):e.target&&a.push(`"${e.target}"`),r.length>0&&(r=r.map((e=>`"\`"${e}\`""`)),a.push("-ArgumentList",r.join(","))),e.target=Buffer$1.from(a.join(" "),"utf16le").toString("base64")}else{if(n)t=n;else{const e=!__dirname$1||"/"===__dirname$1;let n=!1;try{await fs$7.access(localXdgOpenPath,constants$9.X_OK),n=!0}catch{}t=process$2.versions.electron??("android"===platform||e||!n)?"xdg-open":localXdgOpenPath}r.length>0&&i.push(...r),e.wait||(o.stdio="ignore",o.detached=!0)}"darwin"===platform&&r.length>0&&i.push("--args",...r),e.target&&i.push(e.target);const s=childProcess.spawn(t,i,o);return e.wait?new Promise(((t,n)=>{s.once("error",n),s.once("close",(r=>{!e.allowNonzeroExitCode&&r>0?n(new Error(`Exited with code ${r}`)):t(s)}))})):(s.unref(),s)},open=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a `target`");return baseOpen({...t,target:e})};function detectArchBinary(e){if("string"==typeof e||Array.isArray(e))return e;const{[arch]:t}=e;if(!t)throw new Error(`${arch} is not supported`);return t}function detectPlatformBinary({[platform]:e},{wsl:t}){if(t&&isWsl$1)return detectArchBinary(t);if(!e)throw new Error(`${platform} is not supported`);return detectArchBinary(e)}const apps={};defineLazyProperty(apps,"chrome",(()=>detectPlatformBinary({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}))),defineLazyProperty(apps,"firefox",(()=>detectPlatformBinary({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}))),defineLazyProperty(apps,"edge",(()=>detectPlatformBinary({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}))),defineLazyProperty(apps,"browser",(()=>"browser")),defineLazyProperty(apps,"browserPrivate",(()=>"browserPrivate"));class OpenCommand extends BaseCommand{static description="Open your current ReadMe project in the browser.";static flags={dash:libExports$3.Flags.boolean({description:"Opens your current ReadMe project dashboard."}),mock:libExports$3.Flags.boolean({description:"[hidden] used for mocking.",hidden:!0})};static hidden=!0;static id="open";static state="deprecated";static deprecationOptions={message:`\`rdme ${this.id}\` is deprecated and will be removed in v10. For more information, please visit our migration guide: https://github.com/readmeio/rdme/tree/v9/documentation/migration-guide.md`};async run(){const{dash:e,mock:t}=this.flags,{apiKey:n,project:r}=getCurrentConfig();if(this.debug(`project: ${r}`),!r)return Promise.reject(new Error(`Please login using \`${this.config.bin} login\`.`));let i;if(e){if(!n)return Promise.reject(new Error(`Please login using \`${this.config.bin} login\`.`));const e=await getProjectVersion(void 0,n,!0);i=`${config.host}/project/${r}/v${e}/overview`}else{i=config.hub.replace("{project}",r)}const o=`Opening ${chalk.green(i)} in your browser...`;return t?Promise.resolve(o):open(i,{wait:!1}).then((()=>Promise.resolve(o)))}} /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function isNothing(e){return null==e}function isObject$3(e){return"object"==typeof e&&null!==e}function toArray$1(e){return Array.isArray(e)?e:isNothing(e)?[]:[e]}function extend(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;na&&(t=r-a+(o=" ... ").length),n-r>a&&(n=r+a-(s=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function padStart(e,t){return common$2.repeat(" ",t-e.length)+e}function makeSnippet(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],o=[],s=-1;n=r.exec(e.buffer);)o.push(n.index),i.push(n.index+n[0].length),e.position<=n.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var a,c,l="",u=Math.min(e.line+t.linesAfter,o.length).toString().length,d=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(s-a<0);a++)c=getLine(e.buffer,i[s-a],o[s-a],e.position-(i[s]-i[s-a]),d),l=common$2.repeat(" ",t.indent)+padStart((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=getLine(e.buffer,i[s],o[s],e.position,d),l+=common$2.repeat(" ",t.indent)+padStart((e.line+1).toString(),u)+" | "+c.str+"\n",l+=common$2.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(s+a>=o.length);a++)c=getLine(e.buffer,i[s+a],o[s+a],e.position-(i[s]-i[s+a]),d),l+=common$2.repeat(" ",t.indent)+padStart((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")}var snippet$1=makeSnippet,TYPE_CONSTRUCTOR_OPTIONS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}function Type$1(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===TYPE_CONSTRUCTOR_OPTIONS.indexOf(t))throw new exception$1('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=compileStyleAliases(t.styleAliases||null),-1===YAML_NODE_KINDS.indexOf(this.kind))throw new exception$1('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var type$b=Type$1;function compileList(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function compileMap(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),YAML_FLOAT_PATTERN=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){return null!==e&&!(!YAML_FLOAT_PATTERN.test(e)||"_"===e[e.length-1])}function constructYamlFloat(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)}var SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(common$2.isNegativeZero(e))return"-0.0";return n=e.toString(10),SCIENTIFIC_WITHOUT_DOT.test(n)?n.replace("e",".e"):n}function isFloat(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||common$2.isNegativeZero(e))}var float$1=new type$b("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"}),json$3=failsafe$1.extend({implicit:[_null$1,bool$1,int$1,float$1]}),core$4=json$3,YAML_DATE_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),YAML_TIMESTAMP_REGEXP=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){return null!==e&&(null!==YAML_DATE_REGEXP.exec(e)||null!==YAML_TIMESTAMP_REGEXP.exec(e))}function constructYamlTimestamp(e){var t,n,r,i,o,s,a,c,l=0,u=null;if(null===(t=YAML_DATE_REGEXP.exec(e))&&(t=YAML_TIMESTAMP_REGEXP.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(n,r,i,o,s,a,l)),u&&c.setTime(c.getTime()-u),c}function representYamlTimestamp(e){return e.toISOString()}var timestamp$1=new type$b("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(e){return"<<"===e||null===e}var merge$1=new type$b("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge}),BASE64_MAP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(null===e)return!1;var t,n,r=0,i=e.length,o=BASE64_MAP;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0}function constructYamlBinary(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=BASE64_MAP,s=0,a=[];for(t=0;t>16&255),a.push(s>>8&255),a.push(255&s)),s=s<<6|o.indexOf(r.charAt(t));return 0===(n=i%4*6)?(a.push(s>>16&255),a.push(s>>8&255),a.push(255&s)):18===n?(a.push(s>>10&255),a.push(s>>2&255)):12===n&&a.push(s>>4&255),new Uint8Array(a)}function representYamlBinary(e){var t,n,r="",i=0,o=e.length,s=BASE64_MAP;for(t=0;t>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]),i=(i<<8)+e[t];return 0===(n=o%3)?(r+=s[i>>18&63],r+=s[i>>12&63],r+=s[i>>6&63],r+=s[63&i]):2===n?(r+=s[i>>10&63],r+=s[i>>4&63],r+=s[i<<2&63],r+=s[64]):1===n&&(r+=s[i>>2&63],r+=s[i<<4&63],r+=s[64],r+=s[64]),r}function isBinary(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}var binary$2=new type$b("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary}),_hasOwnProperty$3=Object.prototype.hasOwnProperty,_toString$2=Object.prototype.toString;function resolveYamlOmap(e){if(null===e)return!0;var t,n,r,i,o,s=[],a=e;for(t=0,n=a.length;t>10),56320+(e-65536&1023))}for(var simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256),i=0;i<256;i++)simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0,simpleEscapeMap[i]=simpleEscapeSequence(i);function State$1(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||_default$2,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.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,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=snippet$1(n),new exception$1(t,n)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){e.onWarning&&e.onWarning.call(null,generateError(e,t))}var directiveHandlers={YAML:function(e,t,n){var r,i,o;null!==e.version&&throwError(e,"duplication of %YAML directive"),1!==n.length&&throwError(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&throwError(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&throwError(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&throwWarning(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&throwError(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],PATTERN_TAG_HANDLE.test(r)||throwError(e,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty$1.call(e.tagMap,r)&&throwError(e,'there is a previously declared suffix for "'+r+'" tag handle'),PATTERN_TAG_URI.test(i)||throwError(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function captureSegment(e,t,n,r){var i,o,s,a;if(t1&&(e.result+=common$2.repeat("\n",t-1))}function readPlainScalar(e,t,n){var r,i,o,s,a,c,l,u,d=e.kind,p=e.result;if(is_WS_OR_EOL(u=e.input.charCodeAt(e.position))||is_FLOW_INDICATOR(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(is_WS_OR_EOL(r=e.input.charCodeAt(e.position+1))||n&&is_FLOW_INDICATOR(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;0!==u;){if(58===u){if(is_WS_OR_EOL(r=e.input.charCodeAt(e.position+1))||n&&is_FLOW_INDICATOR(r))break}else if(35===u){if(is_WS_OR_EOL(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(u))break;if(is_EOL(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,skipSeparationSpace(e,!1,-1),e.lineIndent>=t){s=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=a,e.lineStart=c,e.lineIndent=l;break}}s&&(captureSegment(e,i,o,!1),writeFoldedLines(e,e.line-a),i=o=e.position,s=!1),is_WHITE_SPACE(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return captureSegment(e,i,o,!1),!!e.result||(e.kind=d,e.result=p,!1)}function readSingleQuotedScalar(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(captureSegment(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else is_EOL(n)?(captureSegment(e,r,i,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,t)),r=i=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var n,r,i,o,s,a;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return captureSegment(e,n,e.position,!0),e.position++,!0;if(92===a){if(captureSegment(e,n,e.position,!0),is_EOL(a=e.input.charCodeAt(++e.position)))skipSeparationSpace(e,!1,t);else if(a<256&&simpleEscapeCheck[a])e.result+=simpleEscapeMap[a],e.position++;else if((s=escapedHexLen(a))>0){for(i=s,o=0;i>0;i--)(s=fromHexCode(a=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+s:throwError(e,"expected hexadecimal character");e.result+=charFromCodepoint(o),e.position++}else throwError(e,"unknown escape sequence");n=r=e.position}else is_EOL(a)?(captureSegment(e,n,r,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,t)),n=r=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var n,r,i,o,s,a,c,l,u,d,p,f,_=!0,m=e.tag,h=e.anchor,g=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))s=93,l=!1,o=[];else{if(123!==f)return!1;s=125,l=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),f=e.input.charCodeAt(++e.position);0!==f;){if(skipSeparationSpace(e,!0,t),(f=e.input.charCodeAt(e.position))===s)return e.position++,e.tag=m,e.anchor=h,e.kind=l?"mapping":"sequence",e.result=o,!0;_?44===f&&throwError(e,"expected the node content, but found ','"):throwError(e,"missed comma between flow collection entries"),p=null,a=c=!1,63===f&&is_WS_OR_EOL(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,skipSeparationSpace(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,composeNode(e,t,CONTEXT_FLOW_IN,!1,!0),d=e.tag,u=e.result,skipSeparationSpace(e,!0,t),f=e.input.charCodeAt(e.position),!c&&e.line!==n||58!==f||(a=!0,f=e.input.charCodeAt(++e.position),skipSeparationSpace(e,!0,t),composeNode(e,t,CONTEXT_FLOW_IN,!1,!0),p=e.result),l?storeMappingPair(e,o,g,d,u,p,n,r,i):a?o.push(storeMappingPair(e,null,g,d,u,p,n,r,i)):o.push(u),skipSeparationSpace(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(_=!0,f=e.input.charCodeAt(++e.position)):_=!1}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var n,r,i,o,s=CHOMPING_CLIP,a=!1,c=!1,l=t,u=0,d=!1;if(124===(o=e.input.charCodeAt(e.position)))r=!1;else{if(62!==o)return!1;r=!0}for(e.kind="scalar",e.result="";0!==o;)if(43===(o=e.input.charCodeAt(++e.position))||45===o)CHOMPING_CLIP===s?s=43===o?CHOMPING_KEEP:CHOMPING_STRIP:throwError(e,"repeat of a chomping mode identifier");else{if(!((i=fromDecimalCode(o))>=0))break;0===i?throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?throwError(e,"repeat of an indentation width identifier"):(l=t+i-1,c=!0)}if(is_WHITE_SPACE(o)){do{o=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!is_EOL(o)&&0!==o)}for(;0!==o;){for(readLineBreak(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!c||e.lineIndentl&&(l=e.lineIndent),is_EOL(o))u++;else{if(e.lineIndentt)&&0!==r)throwError(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(g&&(s=e.line,a=e.lineStart,c=e.position),composeNode(e,t,CONTEXT_BLOCK_OUT,!0,i)&&(g?m=e.result:h=e.result),g||(storeMappingPair(e,p,f,_,m,h,s,a,c),_=m=h=null),skipSeparationSpace(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==l)throwError(e,"bad indentation of a mapping entry");else if(e.lineIndentt?_=1:e.lineIndent===t?_=0:e.lineIndentt?_=1:e.lineIndent===t?_=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c"),null!==e.result&&d.kind!==e.kind&&throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||h}function readDocument(e){var t,n,r,i,o=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(skipSeparationSpace(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!is_WS_OR_EOL(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&throwError(e,"directive name must not be less than one character in length");0!==i;){for(;is_WHITE_SPACE(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!is_EOL(i));break}if(is_EOL(i))break;for(t=e.position;0!==i&&!is_WS_OR_EOL(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&readLineBreak(e),_hasOwnProperty$1.call(directiveHandlers,n)?directiveHandlers[n](e,n,r):throwWarning(e,'unknown document directive "'+n+'"')}skipSeparationSpace(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,skipSeparationSpace(e,!0,-1)):s&&throwError(e,"directives end mark is expected"),composeNode(e,e.lineIndent-1,CONTEXT_BLOCK_OUT,!1,!0),skipSeparationSpace(e,!0,-1),e.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(e.input.slice(o,e.position))&&throwWarning(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&testDocumentSeparator(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,skipSeparationSpace(e,!0,-1)):e.position=55296&&r<=56319&&t+1=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function needIndentIndicator(e){return/^\n* /.test(e)}var STYLE_PLAIN=1,STYLE_SINGLE=2,STYLE_LITERAL=3,STYLE_FOLDED=4,STYLE_DOUBLE=5;function chooseScalarStyle(e,t,n,r,i,o,s,a){var c,l=0,u=null,d=!1,p=!1,f=-1!==r,_=-1,m=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||s)for(c=0;c=65536?c+=2:c++){if(!isPrintable(l=codePointAt(e,c)))return STYLE_DOUBLE;m=m&&isPlainSafe(l,u,a),u=l}else{for(c=0;c=65536?c+=2:c++){if((l=codePointAt(e,c))===CHAR_LINE_FEED)d=!0,f&&(p=p||c-_-1>r&&" "!==e[_+1],_=c);else if(!isPrintable(l))return STYLE_DOUBLE;m=m&&isPlainSafe(l,u,a),u=l}p=p||f&&c-_-1>r&&" "!==e[_+1]}return d||p?n>9&&needIndentIndicator(e)?STYLE_DOUBLE:s?o===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:p?STYLE_FOLDED:STYLE_LITERAL:!m||s||i(e)?o===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:STYLE_PLAIN}function writeScalar(e,t,n,r,i){e.dump=function(){if(0===t.length)return e.quotingType===QUOTING_TYPE_DOUBLE?'""':"''";if(!e.noCompatMode&&(-1!==DEPRECATED_BOOLEANS_SYNTAX.indexOf(t)||DEPRECATED_BASE60_SYNTAX.test(t)))return e.quotingType===QUOTING_TYPE_DOUBLE?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=r||e.flowLevel>-1&&n>=e.flowLevel;switch(chooseScalarStyle(t,a,e.indent,s,(function(t){return testImplicitResolving(e,t)}),e.quotingType,e.forceQuotes&&!r,i)){case STYLE_PLAIN:return t;case STYLE_SINGLE:return"'"+t.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,o));case STYLE_FOLDED:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,s),o));case STYLE_DOUBLE:return'"'+escapeString(t)+'"';default:throw new exception$1("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var n=needIndentIndicator(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function dropEndingNewline(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function foldString(e,t){for(var n,r,i,o=/(\n+)([^\n]*)/g,s=(n=-1!==(n=e.indexOf("\n"))?n:e.length,o.lastIndex=n,foldLine(e.slice(0,n),t)),a="\n"===e[0]||" "===e[0];i=o.exec(e);){var c=i[1],l=i[2];r=" "===l[0],s+=c+(a||r||""===l?"":"\n")+foldLine(l,t),a=r}return s}function foldLine(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,o=0,s=0,a=0,c="";n=i.exec(e);)(a=n.index)-o>t&&(r=s>o?s:a,c+="\n"+e.slice(o,r),o=r+1),s=a;return c+="\n",e.length-o>t&&s>o?c+=e.slice(o,s)+"\n"+e.slice(s+1):c+=e.slice(o),c.slice(1)}function escapeString(e){for(var t,n="",r=0,i=0;i=65536?i+=2:i++)r=codePointAt(e,i),!(t=ESCAPE_SEQUENCES[r])&&isPrintable(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||encodeHex(r);return n}function writeFlowSequence(e,t,n){var r,i,o,s="",a=e.tag;for(r=0,i=n.length;r1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),writeNode(e,t,s,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}function writeBlockMapping(e,t,n,r){var i,o,s,a,c,l,u="",d=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new exception$1("sortKeys must be a boolean or a function");for(i=0,o=p.length;i1024)&&(e.dump&&CHAR_LINE_FEED===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=generateNextLine(e,t)),writeNode(e,t+1,a,!0,c)&&(e.dump&&CHAR_LINE_FEED===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=d,e.dump=u||"{}"}function detectType(e,t,n){var r,i,o,s,a,c;for(o=0,s=(i=n?e.explicitTypes:e.implicitTypes).length;o tag resolver accepts not "'+c+'" style');r=a.represent[c](t,c)}e.dump=r}return!0}return!1}function writeNode(e,t,n,r,i,o,s){e.tag=null,e.dump=n,detectType(e,n,!1)||detectType(e,n,!0);var a,c=_toString.call(e.dump),l=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var u,d,p="[object Object]"===c||"[object Array]"===c;if(p&&(d=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(i=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(p&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)r&&0!==Object.keys(e.dump).length?(writeBlockMapping(e,t,e.dump,i),d&&(e.dump="&ref_"+u+e.dump)):(writeFlowMapping(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===c)r&&0!==e.dump.length?(e.noArrayIndent&&!s&&t>0?writeBlockSequence(e,t-1,e.dump,i):writeBlockSequence(e,t,e.dump,i),d&&(e.dump="&ref_"+u+e.dump)):(writeFlowSequence(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new exception$1("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&writeScalar(e,e.dump,t,o,l)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function getDuplicateReferences(e,t){var n,r,i=[],o=[];for(inspectNode(e,i,o),n=0,r=o.length;njoinStacks({stack:e.get.apply(t)},n),enumerable:!1,configurable:!0}):lazyPopStack(t,e)}function popStack(e){if(e){let t,n=e.split(newline);for(let e=0;e0)return n.join("\n")}return e}function lazyPopStack(e,t){Object.defineProperty(e,"stack",{get:()=>popStack(t.get.apply(e)),enumerable:!1,configurable:!0})}const protectedProps=["name","message","stack"];function extendError(e,t,n){let r=e;return extendStack(r,t),t&&"object"==typeof t&&mergeErrors(r,t),r.toJSON=toJSON,addInspectMethod&&addInspectMethod(r),n&&"object"==typeof n&&Object.assign(r,n),r}function extendStack(e,t){let n=Object.getOwnPropertyDescriptor(e,"stack");isLazyStack(n)?lazyJoinStacks(n,e,t):isWritableStack(n)&&(e.stack=joinStacks(e,t))}function mergeErrors(e,t){let n=getDeepKeys(t,protectedProps),r=e,i=t;for(let e of n)if(void 0===r[e])try{r[e]=i[e]}catch(e){}}function normalizeOptions$1(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0===e.format?format$4:"function"==typeof e.format&&e.format}}function normalizeArgs$1(e,t){let n,r,i,o="";return"string"==typeof e[0]?i=e:"string"==typeof e[1]?(e[0]instanceof Error?n=e[0]:r=e[0],i=e.slice(1)):(n=e[0],r=e[1],i=e.slice(2)),i.length>0&&(o=t.format?t.format.apply(void 0,i):i.join(" ")),t.concatMessages&&n&&n.message&&(o+=(o?" \n":"")+n.message),{originalError:n,props:r,message:o}}const constructor=Ono;function Ono(e,t){function n(...n){let{originalError:r,props:i,message:o}=normalizeArgs$1(n,t);return extendError(new e(o),r,i)}return t=normalizeOptions$1(t),n[Symbol.species]=e,n}Ono.toJSON=function(e){return toJSON.call(e)},Ono.extend=function(e,t,n){return n||t instanceof Error?extendError(e,t,n):t?extendError(e,void 0,t):extendError(e)};const singleton=ono;ono.error=new constructor(Error),ono.eval=new constructor(EvalError),ono.range=new constructor(RangeError),ono.reference=new constructor(ReferenceError),ono.syntax=new constructor(SyntaxError),ono.type=new constructor(TypeError),ono.uri=new constructor(URIError);const onoMap=ono;function ono(...e){let t=e[0];if("object"==typeof t&&"string"==typeof t.name)for(let n of Object.values(onoMap))if("function"==typeof n&&"ono"===n.name){let r=n[Symbol.species];if(r&&r!==Error&&(t instanceof r||t.name===r.name))return n.apply(void 0,e)}return ono.error.apply(void 0,e)}"object"==typeof module&&"object"==typeof module.exports&&"object"==typeof module.exports.default&&(module.exports=Object.assign(module.exports.default,module.exports));var esm=Object.freeze({__proto__:null,Ono:constructor,default:singleton,ono:singleton}),require$$0$1=getAugmentedNamespace(esm),lib$e={exports:{}},next$1,hasRequiredNext$1,maybe,hasRequiredMaybe;function requireNext$1(){if(hasRequiredNext$1)return next$1;return hasRequiredNext$1=1,next$1="object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:"function"==typeof setImmediate?setImmediate:function(e){setTimeout(e,0)}}function requireMaybe(){if(hasRequiredMaybe)return maybe;hasRequiredMaybe=1;var e=requireNext$1();return maybe=function(t,n){return t?void n.then((function(n){e((function(){t(null,n)}))}),(function(n){e((function(){t(n)}))})):n},maybe}var errors$1={},url={exports:{}},hasRequiredUrl,hasRequiredErrors$1,pointer,hasRequiredPointer,ref$1,hasRequiredRef$1,bundle,hasRequiredBundle,dereference,hasRequiredDereference$1,binary$1,hasRequiredBinary$1,json$2,hasRequiredJson$2,text,hasRequiredText;function requireUrl(){return hasRequiredUrl||(hasRequiredUrl=1,function(e,t){const n=/^win/.test(process.platform),r=/\//g,i=/^(\w{2,}):\/\//i,o=e.exports,s=/~1/g,a=/~0/g,c=[/\?/g,"%3F",/#/g,"%23"],l=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"];t.parse=require$$0$k.parse,t.resolve=require$$0$k.resolve,t.cwd=function(){if(process.browser)return location.href;const e=process.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:`${e}/`},t.getProtocol=function(e){const t=i.exec(e);if(t)return t[1].toLowerCase()},t.getExtension=function(e){const t=e.lastIndexOf(".");return t>=0?o.stripQuery(e.substr(t).toLowerCase()):""},t.stripQuery=function(e){const t=e.indexOf("?");return t>=0&&(e=e.substr(0,t)),e},t.getHash=function(e){const t=e.indexOf("#");return t>=0?e.substr(t):"#"},t.stripHash=function(e){const t=e.indexOf("#");return t>=0?e.substr(0,t):e},t.isHttp=function(e){const t=o.getProtocol(e);return"http"===t||"https"===t||void 0===t&&process.browser},t.isFileSystemPath=function(e){if(process.browser)return!1;const t=o.getProtocol(e);return void 0===t||"file"===t},t.fromFileSystemPath=function(e){n&&(e=e.replace(/\\/g,"/")),e=encodeURI(e);for(let t=0;tdecodeURIComponent(e).replace(s,"/").replace(a,"~")))}}(url,url.exports)),url.exports}function requireErrors$1(){if(hasRequiredErrors$1)return errors$1;hasRequiredErrors$1=1;const{Ono:e}=require$$0$1,{stripHash:t,toFileSystemPath:n}=requireUrl();function r(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}const i=class extends Error{constructor(t,n){super(),this.code="EUNKNOWN",this.message=t,this.source=n,this.path=null,e.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};errors$1.JSONParserError=i,r(i);const o=class t extends Error{constructor(t){super(),this.files=t,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${n(t.$refs._root$Ref.path)}'`,e.extend(this)}static getParserErrors(e){const t=[];for(const n of Object.values(e.$refs._$refs))n.errors&&t.push(...n.errors);return t}get errors(){return t.getParserErrors(this.files)}};errors$1.JSONParserErrorGroup=o,r(o);const s=class extends i{constructor(e,t){super(`Error parsing ${t}: ${e}`,t),this.code="EPARSER"}};errors$1.ParserError=s,r(s);const a=class extends i{constructor(e){super(`Could not find parser for "${e}"`,e),this.code="EUNMATCHEDPARSER"}};errors$1.UnmatchedParserError=a,r(a);const c=class extends i{constructor(e,t){super(e.message||`Error reading file "${t}"`,t),this.code="ERESOLVER","code"in e&&(this.ioErrorCode=String(e.code))}};errors$1.ResolverError=c,r(c);const l=class extends i{constructor(e){super(`Could not find resolver for "${e}"`,e),this.code="EUNMATCHEDRESOLVER"}};errors$1.UnmatchedResolverError=l,r(l);const u=class extends i{constructor(e,n){super(`Token "${e}" does not exist.`,t(n)),this.code="EMISSINGPOINTER"}};errors$1.MissingPointerError=u,r(u);const d=class extends i{constructor(e,n){super(`Invalid $ref pointer "${e}". Pointers must begin with "#/"`,t(n)),this.code="EINVALIDPOINTER"}};return errors$1.InvalidPointerError=d,r(d),errors$1.isHandledError=function(e){return e instanceof i||e instanceof o},errors$1.normalizeError=function(e){return null===e.path&&(e.path=[]),e},errors$1}function requirePointer(){if(hasRequiredPointer)return pointer;hasRequiredPointer=1;const e=requireRef$1(),{JSONParserError:t,InvalidPointerError:n,MissingPointerError:r,isHandledError:i}=requireErrors$1(),o=requireUrl(),s=/\//g,a=/~/g,c=/~1/g,l=/~0/g;function u(e,t,n){this.$ref=e,this.path=t,this.originalPath=n||t,this.value=void 0,this.circular=!1,this.indirections=0}function d(t,n){if(e.isAllowed$Ref(t.value,n)){const r=o.resolve(t.path,t.value.$ref);if(r!==t.path){const i=t.$ref.$refs._resolve(r,t.path,n);return null!==i&&(t.indirections+=i.indirections+1,e.isExtended$Ref(t.value)?(t.value=e.dereference(t.value,i.value),!1):(t.$ref=i.$ref,t.path=i.path,t.value=i.value,!0))}t.circular=!0}}function p(e,n,r){if(!e.value||"object"!=typeof e.value)throw new t(`Error assigning $ref pointer "${e.path}". \nCannot set "${n}" of a non-object.`);return"-"===n&&Array.isArray(e.value)?e.value.push(r):e.value[n]=r,r}function f(e){if(i(e))throw e;return e}return pointer=u,u.prototype.resolve=function(e,t,n){const i=u.parse(this.path,this.originalPath);this.value=f(e);for(let e=0;ee));Array.isArray(e.errors)?this.errors.push(...e.errors.map(r).filter((({footprint:e})=>!t.includes(e)))):t.includes(e.footprint)||this.errors.push(r(e))},a.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch(e){return!1}},a.prototype.get=function(e,t){return this.resolve(e,t).value},a.prototype.resolve=function(r,a,c,l){const u=new e(this,r,c);try{return u.resolve(this.value,a,l)}catch(e){if(!a||!a.continueOnError||!n(e))throw e;return null===e.path&&(e.path=i(s(l))),e instanceof t&&(e.source=o(l)),this.addError(e),null}},a.prototype.set=function(t,n){const r=new e(this,t);this.value=r.set(this.value,n)},a.is$Ref=function(e){return e&&"object"==typeof e&&"string"==typeof e.$ref&&e.$ref.length>0},a.isExternal$Ref=function(e){return a.is$Ref(e)&&"#"!==e.$ref[0]},a.isAllowed$Ref=function(e,t){if(a.is$Ref(e)){if("#/"===e.$ref.substr(0,2)||"#"===e.$ref)return!0;if("#"!==e.$ref[0]&&(!t||t.resolve.external))return!0}},a.isExtended$Ref=function(e){return a.is$Ref(e)&&Object.keys(e).length>1},a.dereference=function(e,t){if(t&&"object"==typeof t&&a.isExtended$Ref(e)){const n={};for(const t of Object.keys(e))"$ref"!==t&&(n[t]=e[t]);for(const e of Object.keys(t))e in n||(n[e]=t[e]);return n}return t},ref$1}function requireBundle(){if(hasRequiredBundle)return bundle;hasRequiredBundle=1;const e=requireRef$1(),t=requirePointer(),n=requireUrl();function r(n,o,s,a,c,l,u,d){const p=null===o?n:n[o];if(p&&"object"==typeof p&&!ArrayBuffer.isView(p))if(e.isAllowed$Ref(p))i(n,o,s,a,c,l,u,d);else{const n=Object.keys(p).sort(((e,t)=>"definitions"===e?-1:"definitions"===t?1:e.length-t.length));for(const o of n){const n=t.join(s,o),f=t.join(a,o),_=p[o];e.isAllowed$Ref(_)?i(p,o,s,f,c,l,u,d):r(p,o,n,f,c,l,u,d)}}}function i(i,o,s,a,c,l,u,d){const p=null===o?i:i[o],f=n.resolve(s,p.$ref),_=u._resolve(f,a,d);if(null===_)return;const m=t.parse(a).length,h=n.stripHash(_.path),g=n.getHash(_.path),A=h!==u._root$Ref.path,y=e.isExtended$Ref(p);c+=_.indirections;const v=function(e,t,n){for(let r=0;r{if(e.file!==t.file)return e.file1){const n={};for(const r of t)"$ref"===r||r in f.value||(n[r]=e[r]);return{circular:f.circular,value:{...f.value,...n}}}return f}const _=u._resolve(p,t,d);if(null===_)return{circular:!1,value:null};const m=_.circular;let h=m||a.has(_.value);h&&s(t,u,d);let g=n.dereference(e,_.value);if(!h){const e=i(g,_.path,o,a,c,l,u,d);h=e.circular,g=e.value}h&&!m&&"ignore"===d.dereference.circular&&(g=e),m&&(g.$ref=o);const A={circular:h,value:g};return 1===Object.keys(e).length&&l.set(p,A),A}function s(t,n,r){if(n.circular=!0,n.circularRefs.push(t),!r.dereference.circular)throw e.reference(`Circular $ref pointer found at ${t}`);return!0}return dereference=function(e,t){const n=i(e.schema,e.$refs._root$Ref.path,"#",new Set,new Set,new Map,e.$refs,t);e.$refs.circular=n.circular,e.schema=n.value},dereference}function requireBinary$1(){if(hasRequiredBinary$1)return binary$1;hasRequiredBinary$1=1;const e=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;return binary$1={order:400,allowEmpty:!0,canParse:t=>Buffer.isBuffer(t.data)&&e.test(t.url),parse:e=>Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)},binary$1}function requireJson$2(){if(hasRequiredJson$2)return json$2;hasRequiredJson$2=1;const{ParserError:e}=requireErrors$1();return json$2={order:100,allowEmpty:!0,canParse:".json",async parse(t){let n=t.data;if(Buffer.isBuffer(n)&&(n=n.toString()),"string"==typeof n){if(0===n.trim().length)return;try{return JSON.parse(n)}catch(n){throw new e(n.message,t.url)}}return n}},json$2}function requireText(){if(hasRequiredText)return text;hasRequiredText=1;const{ParserError:e}=requireErrors$1(),t=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;return text={order:300,allowEmpty:!0,encoding:"utf8",canParse:e=>("string"==typeof e.data||Buffer.isBuffer(e.data))&&t.test(e.url),parse(t){if("string"==typeof t.data)return t.data;if(Buffer.isBuffer(t.data))return t.data.toString(this.encoding);throw new e("data is not text",t.url)}},text}var jsYaml={},loader={},common$1={},hasRequiredCommon$1,exception,hasRequiredException,snippet,hasRequiredSnippet,type$a,hasRequiredType,schema$1,hasRequiredSchema$1,str,hasRequiredStr,seq,hasRequiredSeq,map$1,hasRequiredMap$1,failsafe,hasRequiredFailsafe,_null,hasRequired_null,bool,hasRequiredBool,int,hasRequiredInt,float,hasRequiredFloat,json$1,hasRequiredJson$1,core$3,hasRequiredCore$3,timestamp,hasRequiredTimestamp,merge,hasRequiredMerge,binary,hasRequiredBinary,omap,hasRequiredOmap,pairs,hasRequiredPairs,set,hasRequiredSet,_default$1,hasRequired_default$1,hasRequiredLoader;function requireCommon$1(){if(hasRequiredCommon$1)return common$1;function e(e){return null==e}return hasRequiredCommon$1=1,common$1.isNothing=e,common$1.isObject=function(e){return"object"==typeof e&&null!==e},common$1.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},common$1.repeat=function(e,t){var n,r="";for(n=0;na&&(t=r-a+(o=" ... ").length),n-r>a&&(n=r+a-(s=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function n(t,n){return e.repeat(" ",n-t.length)+t}return snippet=function(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),"number"!=typeof i.indent&&(i.indent=1),"number"!=typeof i.linesBefore&&(i.linesBefore=3),"number"!=typeof i.linesAfter&&(i.linesAfter=2);for(var o,s=/\r?\n|\r|\0/g,a=[0],c=[],l=-1;o=s.exec(r.buffer);)c.push(o.index),a.push(o.index+o[0].length),r.position<=o.index&&l<0&&(l=a.length-2);l<0&&(l=a.length-1);var u,d,p="",f=Math.min(r.line+i.linesAfter,c.length).toString().length,_=i.maxLength-(i.indent+f+3);for(u=1;u<=i.linesBefore&&!(l-u<0);u++)d=t(r.buffer,a[l-u],c[l-u],r.position-(a[l]-a[l-u]),_),p=e.repeat(" ",i.indent)+n((r.line-u+1).toString(),f)+" | "+d.str+"\n"+p;for(d=t(r.buffer,a[l],c[l],r.position,_),p+=e.repeat(" ",i.indent)+n((r.line+1).toString(),f)+" | "+d.str+"\n",p+=e.repeat("-",i.indent+f+3+d.pos)+"^\n",u=1;u<=i.linesAfter&&!(l+u>=c.length);u++)d=t(r.buffer,a[l+u],c[l+u],r.position-(a[l]-a[l+u]),_),p+=e.repeat(" ",i.indent)+n((r.line+u+1).toString(),f)+" | "+d.str+"\n";return p.replace(/\n$/,"")},snippet}function requireType(){if(hasRequiredType)return type$a;hasRequiredType=1;var e=requireException(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];return type$a=function(r,i){if(i=i||{},Object.keys(i).forEach((function(n){if(-1===t.indexOf(n))throw new e('Unknown option "'+n+'" is met in definition of "'+r+'" YAML type.')})),this.options=i,this.tag=r,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(e){return e},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(i.styleAliases||null),-1===n.indexOf(this.kind))throw new e('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')},type$a}function requireSchema$1(){if(hasRequiredSchema$1)return schema$1;hasRequiredSchema$1=1;var e=requireException(),t=requireType();function n(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function r(e){return this.extend(e)}return r.prototype.extend=function(i){var o=[],s=[];if(i instanceof t)s.push(i);else if(Array.isArray(i))s=s.concat(i);else{if(!i||!Array.isArray(i.implicit)&&!Array.isArray(i.explicit))throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.implicit&&(o=o.concat(i.implicit)),i.explicit&&(s=s.concat(i.explicit))}o.forEach((function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&"scalar"!==n.loadKind)throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),s.forEach((function(n){if(!(n instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var a=Object.create(r.prototype);return a.implicit=(this.implicit||[]).concat(o),a.explicit=(this.explicit||[]).concat(s),a.compiledImplicit=n(a,"implicit"),a.compiledExplicit=n(a,"explicit"),a.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),int}function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1;var e=requireCommon$1(),t=requireType(),n=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var r=/^[-+]?[0-9]+e/;return float=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!n.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||e.isNegativeZero(t))},represent:function(t,n){var i;if(isNaN(t))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(t))return"-0.0";return i=t.toString(10),r.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),float}function requireJson$1(){return hasRequiredJson$1?json$1:(hasRequiredJson$1=1,json$1=requireFailsafe().extend({implicit:[require_null(),requireBool(),requireInt(),requireFloat()]}))}function requireCore$3(){return hasRequiredCore$3?core$3:(hasRequiredCore$3=1,core$3=requireJson$1())}function requireTimestamp(){if(hasRequiredTimestamp)return timestamp;hasRequiredTimestamp=1;var e=requireType(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");return timestamp=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==t.exec(e)||null!==n.exec(e))},construct:function(e){var r,i,o,s,a,c,l,u,d=0,p=null;if(null===(r=t.exec(e))&&(r=n.exec(e)),null===r)throw new Error("Date resolve error");if(i=+r[1],o=+r[2]-1,s=+r[3],!r[4])return new Date(Date.UTC(i,o,s));if(a=+r[4],c=+r[5],l=+r[6],r[7]){for(d=r[7].slice(0,3);d.length<3;)d+="0";d=+d}return r[9]&&(p=6e4*(60*+r[10]+ +(r[11]||0)),"-"===r[9]&&(p=-p)),u=new Date(Date.UTC(i,o,s,a,c,l,d)),p&&u.setTime(u.getTime()-p),u},instanceOf:Date,represent:function(e){return e.toISOString()}}),timestamp}function requireMerge(){if(hasRequiredMerge)return merge;hasRequiredMerge=1;var e=requireType();return merge=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})}function requireBinary(){if(hasRequiredBinary)return binary;hasRequiredBinary=1;var e=requireType(),t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";return binary=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var n,r,i=0,o=e.length,s=t;for(r=0;r64)){if(n<0)return!1;i+=6}return i%8==0},construct:function(e){var n,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=t,a=0,c=[];for(n=0;n>16&255),c.push(a>>8&255),c.push(255&a)),a=a<<6|s.indexOf(i.charAt(n));return 0===(r=o%4*6)?(c.push(a>>16&255),c.push(a>>8&255),c.push(255&a)):18===r?(c.push(a>>10&255),c.push(a>>2&255)):12===r&&c.push(a>>4&255),new Uint8Array(c)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var n,r,i="",o=0,s=e.length,a=t;for(n=0;n>18&63],i+=a[o>>12&63],i+=a[o>>6&63],i+=a[63&o]),o=(o<<8)+e[n];return 0===(r=s%3)?(i+=a[o>>18&63],i+=a[o>>12&63],i+=a[o>>6&63],i+=a[63&o]):2===r?(i+=a[o>>10&63],i+=a[o>>4&63],i+=a[o<<2&63],i+=a[64]):1===r&&(i+=a[o>>2&63],i+=a[o<<4&63],i+=a[64],i+=a[64]),i}}),binary}function requireOmap(){if(hasRequiredOmap)return omap;hasRequiredOmap=1;var e=requireType(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;return omap=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var r,i,o,s,a,c=[],l=e;for(r=0,i=l.length;r>10),56320+(e-65536&1023))}for(var A=new Array(256),y=new Array(256),v=0;v<256;v++)A[v]=h(v)?1:0,y[v]=h(v);function b(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.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 C(e,r){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}function E(e,t){throw C(e,t)}function x(e,t){e.onWarning&&e.onWarning.call(null,C(e,t))}var S={YAML:function(e,t,n){var r,i,o;null!==e.version&&E(e,"duplication of %YAML directive"),1!==n.length&&E(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&E(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&E(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&x(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&E(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],c.test(r)||E(e,"ill-formed tag handle (first argument) of the TAG directive"),i.call(e.tagMap,r)&&E(e,'there is a previously declared suffix for "'+r+'" tag handle'),l.test(o)||E(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){E(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function k(e,t,n,r){var i,s,a,c;if(t1&&(t.result+=e.repeat("\n",n-1))}function P(e,t){var n,r,i=e.tag,o=e.anchor,s=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,E(e,"tab characters must not be used in indentation")),45===r)&&f(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,T(e,!0,-1)&&e.lineIndent<=t)s.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,O(e,t,3,!1,!0),s.push(e.result),T(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)E(e,"bad indentation of a sequence entry");else if(e.lineIndentn?S=1:t.lineIndent===n?S=0:t.lineIndentn?S=1:t.lineIndent===n?S=0:t.lineIndentt)&&(y&&(s=e.line,a=e.lineStart,c=e.position),O(e,t,4,!0,i)&&(y?g=e.result:A=e.result),y||(w(e,_,m,h,g,A,s,a,c),h=g=A=null),T(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==l)E(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===o?E(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?E(t,"repeat of an indentation width identifier"):(f=n+o-1,u=!0)}if(p(s)){do{s=t.input.charCodeAt(++t.position)}while(p(s));if(35===s)do{s=t.input.charCodeAt(++t.position)}while(!d(s)&&0!==s)}for(;0!==s;){for(I(t),t.lineIndent=0,s=t.input.charCodeAt(t.position);(!u||t.lineIndentf&&(f=t.lineIndent),d(s))_++;else{if(t.lineIndent0){for(i=s,o=0;i>0;i--)(s=m(a=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+s:E(e,"expected hexadecimal character");e.result+=g(o),e.position++}else E(e,"unknown escape sequence");n=r=e.position}else d(a)?(k(e,n,r,!0),R(e,T(e,!1,t)),n=r=e.position):e.position===e.lineStart&&F(e)?E(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}E(e,"unexpected end of the stream within a double quoted scalar")}(t,C)?q=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!f(r)&&!_(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&E(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),i.call(e.anchorMap,n)||E(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],T(e,!0,-1),!0}(t)?function(e,t,n){var r,i,o,s,a,c,l,u,m=e.kind,h=e.result;if(f(u=e.input.charCodeAt(e.position))||_(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(f(r=e.input.charCodeAt(e.position+1))||n&&_(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;0!==u;){if(58===u){if(f(r=e.input.charCodeAt(e.position+1))||n&&_(r))break}else if(35===u){if(f(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&F(e)||n&&_(u))break;if(d(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,T(e,!1,-1),e.lineIndent>=t){s=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=a,e.lineStart=c,e.lineIndent=l;break}}s&&(k(e,i,o,!1),R(e,e.line-a),i=o=e.position,s=!1),p(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return k(e,i,o,!1),!!e.result||(e.kind=m,e.result=h,!1)}(t,C,1===r)&&(q=!0,null===t.tag&&(t.tag="?")):(q=!0,null===t.tag&&null===t.anchor||E(t,"alias node should not have any properties")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===S&&(q=l&&P(t,x))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&E(t,'unacceptable node kind for ! tag; it should be "scalar", not "'+t.kind+'"'),u=0,h=t.implicitTypes.length;u"),null!==t.result&&b.kind!==t.kind&&E(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+b.kind+'", not "'+t.kind+'"'),b.resolve(t.result,t.tag)?(t.result=b.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):E(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||q}function q(e){var t,n,r,o,a=e.position,c=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(o=e.input.charCodeAt(e.position))&&(T(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(c=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!f(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&E(e,"directive name must not be less than one character in length");0!==o;){for(;p(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!d(o));break}if(d(o))break;for(t=e.position;0!==o&&!f(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&I(e),i.call(S,n)?S[n](e,n,r):x(e,'unknown document directive "'+n+'"')}T(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,T(e,!0,-1)):c&&E(e,"directives end mark is expected"),O(e,e.lineIndent-1,4,!1,!0),T(e,!0,-1),e.checkLineBreaks&&s.test(e.input.slice(a,e.position))&&x(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&F(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,T(e,!0,-1)):e.position=55296&&r<=56319&&t+1=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function A(e){return/^\n* /.test(e)}function y(e,t,n,r,i,s,a,c){var l,u,d=0,p=null,m=!1,y=!1,v=-1!==r,b=-1,C=_(u=g(e,0))&&u!==o&&!f(u)&&45!==u&&63!==u&&58!==u&&44!==u&&91!==u&&93!==u&&123!==u&&125!==u&&35!==u&&38!==u&&42!==u&&33!==u&&124!==u&&61!==u&&62!==u&&39!==u&&34!==u&&37!==u&&64!==u&&96!==u&&function(e){return!f(e)&&58!==e}(g(e,e.length-1));if(t||a)for(l=0;l=65536?l+=2:l++){if(!_(d=g(e,l)))return 5;C=C&&h(d,p,c),p=d}else{for(l=0;l=65536?l+=2:l++){if(10===(d=g(e,l)))m=!0,v&&(y=y||l-b-1>r&&" "!==e[b+1],b=l);else if(!_(d))return 5;C=C&&h(d,p,c),p=d}y=y||v&&l-b-1>r&&" "!==e[b+1]}return m||y?n>9&&A(e)?5:a?2===s?5:2:y?4:3:!C||a||i(e)?2===s?5:2:1}function v(e,n,r,i,o){e.dump=function(){if(0===n.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==a.indexOf(n)||c.test(n)))return 2===e.quotingType?'"'+n+'"':"'"+n+"'";var u=e.indent*Math.max(1,r),p=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-u),f=i||e.flowLevel>-1&&r>=e.flowLevel;switch(y(n,f,e.indent,p,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n"+b(n,e.indent)+C(d(function(e,t){var n,r,i=/(\n+)([^\n]*)/g,o=(a=e.indexOf("\n"),a=-1!==a?a:e.length,i.lastIndex=a,E(e.slice(0,a),t)),s="\n"===e[0]||" "===e[0];var a;for(;r=i.exec(e);){var c=r[1],l=r[2];n=" "===l[0],o+=c+(s||n||""===l?"":"\n")+E(l,t),s=n}return o}(n,p),u));case 5:return'"'+function(e){for(var t,n="",r=0,i=0;i=65536?i+=2:i++)r=g(e,i),!(t=s[r])&&_(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||l(r);return n}(n)+'"';default:throw new t("impossible error: invalid scalar style")}}()}function b(e,t){var n=A(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function C(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function E(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,o=0,s=0,a=0,c="";n=i.exec(e);)(a=n.index)-o>t&&(r=s>o?s:a,c+="\n"+e.slice(o,r),o=r+1),s=a;return c+="\n",e.length-o>t&&s>o?c+=e.slice(o,s)+"\n"+e.slice(s+1):c+=e.slice(o),c.slice(1)}function x(e,t,n,r){var i,o,s,a="",c=e.tag;for(i=0,o=n.length;i tag resolver accepts not "'+d+'" style');s=u.represent[d](n,d)}e.dump=s}return!0}return!1}function k(e,n,i,o,s,a,c){e.tag=null,e.dump=i,S(e,i,!1)||S(e,i,!0);var l,u=r.call(e.dump),d=o;o&&(o=e.flowLevel<0||e.flowLevel>n);var f,_,m="[object Object]"===u||"[object Array]"===u;if(m&&(_=-1!==(f=e.duplicates.indexOf(i))),(null!==e.tag&&"?"!==e.tag||_||2!==e.indent&&n>0)&&(s=!1),_&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(m&&_&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),"[object Object]"===u)o&&0!==Object.keys(e.dump).length?(!function(e,n,r,i){var o,s,a,c,l,u,d="",f=e.tag,_=Object.keys(r);if(!0===e.sortKeys)_.sort();else if("function"==typeof e.sortKeys)_.sort(e.sortKeys);else if(e.sortKeys)throw new t("sortKeys must be a boolean or a function");for(o=0,s=_.length;o1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,l&&(u+=p(e,n)),k(e,n+1,c,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",d+=u+=e.dump));e.tag=f,e.dump=d||"{}"}(e,n,e.dump,s),_&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,n){var r,i,o,s,a,c="",l=e.tag,u=Object.keys(n);for(r=0,i=u.length;r1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),k(e,t,s,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,n,e.dump),_&&(e.dump="&ref_"+f+" "+e.dump));else if("[object Array]"===u)o&&0!==e.dump.length?(e.noArrayIndent&&!c&&n>0?x(e,n-1,e.dump,s):x(e,n,e.dump,s),_&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,n){var r,i,o,s="",a=e.tag;for(r=0,i=n.length;r",e.dump=l+" "+e.dump)}return!0}function D(e,t){var n,r,i=[],o=[];for(w(e,i,o),n=0,r=o.length;nr.isFileSystemPath(e.url),read:i=>new Promise(((o,s)=>{let a;try{a=r.toFileSystemPath(i.url)}catch(e){s(new n(t.uri(e,`Malformed URI: ${i.url}`),i.url))}try{e.readFile(a,((e,r)=>{e?s(new n(t(e,`Error opening file "${a}"`),a)):o(r)}))}catch(e){s(new n(t(e,`Error opening file "${a}"`),a))}}))},file}function requireHttp$1(){if(hasRequiredHttp$1)return http_1$1;hasRequiredHttp$1=1;const e=require$$2$1,t=require$$1$4,{ono:n}=require$$0$1,{ResolverError:r}=requireErrors$1(),i=requireUrl();function o(s,a,c){return new Promise(((l,u)=>{s=i.parse(s),(c=c||[]).push(s.href),function(n,r){return new Promise(((i,o)=>{const s=("https:"===n.protocol?t:e).get({hostname:n.hostname,port:n.port,path:n.path,auth:n.auth,protocol:n.protocol,headers:r.headers||{},withCredentials:r.withCredentials});"function"==typeof s.setTimeout&&s.setTimeout(r.timeout),s.on("timeout",(()=>{s.abort()})),s.on("error",o),s.once("response",(e=>{e.body=Buffer.alloc(0),e.on("data",(t=>{e.body=Buffer.concat([e.body,Buffer.from(t)])})),e.on("error",o),e.on("end",(()=>{i(e)}))}))}))}(s,a).then((e=>{if(e.statusCode>=400)throw n({status:e.statusCode},`HTTP ERROR ${e.statusCode}`);if(e.statusCode>=300)if(c.length>a.redirects)u(new r(n({status:e.statusCode},`Error downloading ${c[0]}. \nToo many redirects: \n ${c.join(" \n ")}`)));else{if(!e.headers.location)throw n({status:e.statusCode},`HTTP ${e.statusCode} redirect with no location header`);o(i.resolve(s,e.headers.location),a,c).then(l,u)}else l(e.body||Buffer.alloc(0))})).catch((e=>{u(new r(n(e,`Error downloading ${s.href}`),s.href))}))}))}return http_1$1={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead:e=>i.isHttp(e.url),read(e){const t=i.parse(e.url);return process.browser&&!t.protocol&&(t.protocol=i.parse(location.href).protocol),o(t,this)}},http_1$1}function requireOptions$1(){if(hasRequiredOptions$1)return options$1;hasRequiredOptions$1=1;const e=requireBinary$1(),t=requireJson$2(),n=requireText(),r=requireYaml$1(),i=requireFile(),o=requireHttp$1();function s(e){a(this,s.defaults),a(this,e)}function a(e,t){if(c(t)){const n=Object.keys(t);for(let r=0;r"object"==typeof e[t])).map((t=>(e[t].name=t,e[t])))},plugins.filter=function(t,n,r){return t.filter((t=>!!e(t,n,r)))},plugins.sort=function(e){for(const t of e)t.order=t.order||Number.MAX_SAFE_INTEGER;return e.sort(((e,t)=>e.order-t.order))},plugins.run=function(t,n,r,i){let o,s,a=0;return new Promise(((c,l)=>{function u(){if(o=t[a++],!o)return l(s);try{const s=e(o,n,r,d,i);if(s&&"function"==typeof s.then)s.then(p,f);else if(void 0!==s)p(s);else if(a===t.length)throw new Error("No promise has been returned or callback has been called.")}catch(e){f(e)}}function d(e,t){e?f(e):p(t)}function p(e){c({plugin:o,result:e})}function f(e){s={plugin:o,error:e},u()}u()}))},plugins}function requireParse(){if(hasRequiredParse)return parse$3;hasRequiredParse=1;const{ono:e}=require$$0$1,{ResolverError:t,ParserError:n,UnmatchedParserError:r,UnmatchedResolverError:i,isHandledError:o}=requireErrors$1(),s=requirePlugins(),a=requireUrl();return parse$3=async function(c,l,u){c=a.stripHash(c);const d=l._add(c),p={url:c,extension:a.getExtension(c)};try{const o=await function(n,r,o){return new Promise(((a,c)=>{let l=s.all(r.resolve);function u(o){!o&&r.continueOnError?c(new i(n.url)):o&&"error"in o?o.error instanceof t?c(o.error):c(new t(o,n.url)):c(e.syntax(`Unable to resolve $ref pointer "${n.url}"`))}l=s.filter(l,"canRead",n),s.sort(l),s.run(l,"read",n,o).then(a,u)}))}(p,u,l);d.pathType=o.plugin.name,p.data=o.result;const a=await function(t,i,o){return new Promise(((a,c)=>{const l=s.all(i.parse),u=s.filter(l,"canParse",t),d=u.length>0?u:l;function p(n){var r;!n.plugin.allowEmpty&&(void 0===(r=n.result)||"object"==typeof r&&0===Object.keys(r).length||"string"==typeof r&&0===r.trim().length||Buffer.isBuffer(r)&&0===r.length)?c(e.syntax(`Error parsing "${t.url}" as ${n.plugin.name}. \nParsed value is empty`)):a(n)}function f(o){!o&&i.continueOnError?c(new r(t.url)):o&&"error"in o?o.error instanceof n?c(o.error):c(new n(o.error.message,t.url)):c(e.syntax(`Unable to parse ${t.url}`))}s.sort(d),s.run(d,"parse",t,o).then(p,f)}))}(p,u,l);return d.value=a.result,a.result}catch(e){throw o(e)&&(d.value=e),e}},parse$3}function requireRefs(){if(hasRequiredRefs)return refs;hasRequiredRefs=1;const{ono:e}=require$$0$1,t=requireRef$1(),n=requireUrl();function r(){this.circular=!1,this.circularRefs=[],this._$refs={},this._root$Ref=null}function i(e,t){let r=Object.keys(e);return(t=Array.isArray(t[0])?t[0]:Array.prototype.slice.call(t)).length>0&&t[0]&&(r=r.filter((n=>-1!==t.indexOf(e[n].pathType)))),r.map((t=>({encoded:t,decoded:"file"===e[t].pathType?n.toFileSystemPath(t,!0):t})))}return refs=r,r.prototype.paths=function(e){return i(this._$refs,arguments).map((e=>e.decoded))},r.prototype.values=function(e){const t=this._$refs;return i(t,arguments).reduce(((e,n)=>(e[n.decoded]=t[n.encoded].value,e)),{})},r.prototype.toJSON=r.prototype.values,r.prototype.exists=function(e,t){try{return this._resolve(e,"",t),!0}catch(e){return!1}},r.prototype.get=function(e,t){return this._resolve(e,"",t).value},r.prototype.set=function(t,r){const i=n.resolve(this._root$Ref.path,t),o=n.stripHash(i),s=this._$refs[o];if(!s)throw e(`Error resolving $ref pointer "${t}". \n"${o}" not found.`);s.set(i,r)},r.prototype._add=function(e){const r=n.stripHash(e),i=new t;return i.path=r,i.$refs=this,this._$refs[r]=i,this._root$Ref=this._root$Ref||i,i},r.prototype._resolve=function(t,r,i){const o=n.resolve(this._root$Ref.path,t),s=n.stripHash(o),a=this._$refs[s];if(!a)throw e(`Error resolving $ref pointer "${t}". \n"${s}" not found.`);return a.resolve(o,i,t,r)},r.prototype._get$Ref=function(e){e=n.resolve(this._root$Ref.path,e);const t=n.stripHash(e);return this._$refs[t]},refs}function requireResolveExternal(){if(hasRequiredResolveExternal)return resolveExternal_1;hasRequiredResolveExternal=1;const e=requireParse(),t=requirePointer(),n=requireRef$1(),{isHandledError:r}=requireErrors$1(),i=requireUrl();function o(e,r,i,a,c){c=c||new Set;let l=[];if(e&&"object"==typeof e&&!ArrayBuffer.isView(e)&&!c.has(e))if(c.add(e),n.isExternal$Ref(e))l.push(s(e,r,i,a));else for(const u of Object.keys(e)){const d=t.join(r,u),p=e[u];n.isExternal$Ref(p)?l.push(s(p,d,i,a)):l=l.concat(o(p,d,i,a,c))}return l}async function s(t,n,s,a){const c=i.resolve(n,t.$ref),l=i.stripHash(c);if(t=s._$refs[l])return Promise.resolve(t.value);try{const t=o(await e(c,s,a),`${l}#`,s,a);return Promise.all(t)}catch(e){if(!a.continueOnError||!r(e))throw e;return s._$refs[l]&&(e.source=i.stripHash(n),e.path=i.safePointerToPath(i.getHash(n))),[]}}return resolveExternal_1=function(e,t){if(!t.resolve.external)return Promise.resolve();try{const n=o(e.schema,`${e.$refs._root$Ref.path}#`,e.$refs,t);return Promise.all(n)}catch(e){return Promise.reject(e)}},resolveExternal_1}function requireLib$d(){if(hasRequiredLib$d)return lib$e.exports;hasRequiredLib$d=1;const{ono:e}=require$$0$1,t=requireMaybe(),n=requireBundle(),r=requireDereference$1(),i=requireNormalizeArgs(),o=requireParse(),s=requireRefs(),a=requireResolveExternal(),{JSONParserError:c,InvalidPointerError:l,MissingPointerError:u,ResolverError:d,ParserError:p,UnmatchedParserError:f,UnmatchedResolverError:_,isHandledError:m,JSONParserErrorGroup:h}=requireErrors$1(),g=requireUrl();function A(){this.schema=null,this.$refs=new s}function y(e){if(h.getParserErrors(e).length>0)throw new h(e)}return lib$e.exports=A,lib$e.exports.default=A,lib$e.exports.JSONParserError=c,lib$e.exports.InvalidPointerError=l,lib$e.exports.MissingPointerError=u,lib$e.exports.ResolverError=d,lib$e.exports.ParserError=p,lib$e.exports.UnmatchedParserError=f,lib$e.exports.UnmatchedResolverError=_,A.parse=function(e,t,n,r){const i=new this;return i.parse.apply(i,arguments)},A.prototype.parse=async function(n,r,a,c){const l=i(arguments);let u;if(!l.path&&!l.schema){const n=e(`Expected a file path, URL, or object. Got ${l.path||l.schema}`);return t(l.callback,Promise.reject(n))}this.schema=null,this.$refs=new s;let d="http";if(g.isFileSystemPath(l.path)&&(l.path=g.fromFileSystemPath(l.path),d="file"),l.path=g.resolve(g.cwd(),l.path),l.schema&&"object"==typeof l.schema){const e=this.$refs._add(l.path);e.value=l.schema,e.pathType=d,u=Promise.resolve(l.schema)}else u=o(l.path,this.$refs,l.options);const p=this;try{const n=await u;if(null!==n&&"object"==typeof n&&!Buffer.isBuffer(n))return p.schema=n,t(l.callback,Promise.resolve(p.schema));if(l.options.continueOnError)return p.schema=null,t(l.callback,Promise.resolve(p.schema));throw e.syntax(`"${p.$refs._root$Ref.path||n}" is not a valid JSON Schema`)}catch(e){return l.options.continueOnError&&m(e)?(this.$refs._$refs[g.stripHash(l.path)]&&this.$refs._$refs[g.stripHash(l.path)].addError(e),t(l.callback,Promise.resolve(null))):t(l.callback,Promise.reject(e))}},A.resolve=function(e,t,n,r){const i=new this;return i.resolve.apply(i,arguments)},A.prototype.resolve=async function(e,n,r,o){const s=this,c=i(arguments);try{return await this.parse(c.path,c.schema,c.options),await a(s,c.options),y(s),t(c.callback,Promise.resolve(s.$refs))}catch(e){return t(c.callback,Promise.reject(e))}},A.bundle=function(e,t,n,r){const i=new this;return i.bundle.apply(i,arguments)},A.prototype.bundle=async function(e,r,o,s){const a=this,c=i(arguments);try{return await this.resolve(c.path,c.schema,c.options),n(a,c.options),y(a),t(c.callback,Promise.resolve(a.schema))}catch(e){return t(c.callback,Promise.reject(e))}},A.dereference=function(e,t,n,r){const i=new this;return i.dereference.apply(i,arguments)},A.prototype.dereference=async function(e,n,o,s){const a=this,c=i(arguments);try{return await this.resolve(c.path,c.schema,c.options),r(a,c.options),y(a),t(c.callback,Promise.resolve(a.schema))}catch(e){return t(c.callback,Promise.reject(e))}},lib$e.exports}var util$2={},hasRequiredUtil$2;function requireUtil$2(){if(hasRequiredUtil$2)return util$2;hasRequiredUtil$2=1;const e=require$$0__default,t=requireUrl();util$2.format=e.format,util$2.inherits=e.inherits,util$2.swaggerParamRegExp=/\{([^/}]+)}/g;const n=["get","post","put","delete","patch","options","head","trace"];function r(e,n){if(e.url&&e.url.startsWith("/")){const r=t.parse(n),i=`${r.protocol}//${r.hostname}${e.url}`;e.url=i}return e}return util$2.fixOasRelativeServers=function(e,t){e.openapi&&t&&(t.startsWith("http:")||t.startsWith("https:"))&&(e.servers&&e.servers.map((e=>r(e,t))),["paths","webhooks"].forEach((i=>{Object.keys(e[i]||[]).forEach((o=>{const s=e[i][o];Object.keys(s).forEach((e=>{"servers"===e?s[e].map((e=>r(e,t))):n.includes(e)&&s[e].servers&&s[e].servers.map((e=>r(e,t)))}))}))})))},util$2.getSpecificationName=function(e){return e.swagger?"Swagger":"OpenAPI"},util$2}var lib$d={exports:{}},interopRequireDefault={exports:{}},hasRequiredInteropRequireDefault;function requireInteropRequireDefault(){return hasRequiredInteropRequireDefault||(hasRequiredInteropRequireDefault=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(interopRequireDefault)),interopRequireDefault.exports}var api$1={},hasRequiredApi$1;function requireApi$1(){if(hasRequiredApi$1)return api$1;hasRequiredApi$1=1,Object.defineProperty(api$1,"__esModule",{value:!0});const e="true",t="false",n="null",r=new Map([["t",e],["f",t],["n",n]]),i=new Map([['"','"'],["\\","\\"],["/","/"],["b","\b"],["n","\n"],["f","\f"],["r","\r"],["t","\t"]]),o=new Map([["[","Punctuator"],["]","Punctuator"],["{","Punctuator"],["}","Punctuator"],[":","Punctuator"],[",","Punctuator"],[e,"Boolean"],[t,"Boolean"],[n,"Null"]]);class s extends Error{constructor(e,{line:t,column:n,index:r}){super(`${e} (${t}:${n})`),this.line=t,this.column=n,this.index=r}}class a extends s{constructor(e,t){super(`Unexpected character ${e} found.`,t)}}class c extends s{constructor(e){super(`Unexpected token ${e.type}(${e.value}) found.`,e.loc.start)}}class l extends s{constructor(e){super("Unexpected end of input found.",e)}}const u={comments:!1,ranges:!1};function d(e){return/[\s\n]/.test(e)}function p(e){return e>="0"&&e<="9"}function f(e){return p(e)||/[a-f]/i.test(e)}function _(e){return/[tfn]/.test(e)}function m(e){return p(e)||"."===e||"-"===e}function h(e,t){t=Object.freeze({...u,...t});let n=-1,s=1,c=0,h=!1;const g=[];function A(e,n,r,i){const o=r.offset+n.length;let s=t.ranges?{range:[r.offset,o]}:void 0;return{type:e,value:n,loc:{start:r,end:i||{line:r.line,column:r.column+n.length,offset:o}},...s}}function y(){let t=e.charAt(++n);return h?(s++,c=1,h=!1):c++,"\r"===t?(h=!0,"\n"===e.charAt(n+1)&&n++):"\n"===t&&(h=!0),t}function v(){return{line:s,column:c,offset:n}}function b(t){let i=r.get(t);if(e.slice(n,n+i.length)===i)return n+=i.length-1,c+=i.length-1,{value:i,c:y()};for(let t=1;t="1"&&e<="9"})(e)||S(e);do{t+=e,e=y()}while(p(e))}if("."===e)do{t+=e,e=y()}while(p(e));if("e"===e||"E"===e)for(t+=e,"+"!==(e=y())&&"-"!==e||(t+=e,e=y()),p(e)||S(e);p(e);)t+=e,e=y();return{value:t,c:e}}function x(e){let t=e;if("/"===(e=y())){do{t+=e,e=y()}while(e&&"\r"!==e&&"\n"!==e);return{value:t,c:e}}if("*"===e){for(;e;)if(t+=e,"*"===(e=y())&&(t+=e,"/"===(e=y())))return t+=e,{value:t,c:e=y()};k()}S(e)}function S(e){throw new a(e,v())}function k(){throw new l(v())}let D=y();for(;n({type:"Document",body:e,...t}),string:(e,t={})=>({type:"String",value:e,...t}),number:(e,t={})=>({type:"Number",value:e,...t}),boolean:(e,t={})=>({type:"Boolean",value:e,...t}),null:(e={})=>({type:"Null",value:"null",...e}),array:(e,t={})=>({type:"Array",elements:e,...t}),object:(e,t={})=>({type:"Object",members:e,...t}),member:(e,t,n={})=>({type:"Member",name:e,value:t,...n})},A={tokens:!1,comments:!1,ranges:!1};function y(e){switch(e.type){case"Boolean":return"true"===e.value;case"Number":return Number(e.value);case"Null":return null;case"String":return function(e){let t=e.value.slice(1,-1),n="",r=t.indexOf("\\"),o=0;for(;r>=0;){n+=t.slice(o,r);const a=t.charAt(r+1);if(i.has(a))n+=i.get(a),o=r+2;else{if("u"!==a)throw new s(`Invalid escape \\${a}.`,{line:e.loc.start.line,column:e.loc.start.column+r,offset:e.loc.start.offset+r});{const i=t.slice(r+2,r+6);if(i.length<4||/[^0-9a-f]/i.test(i))throw new s(`Invalid unicode escape \\u${i}.`,{line:e.loc.start.line,column:e.loc.start.column+r,offset:e.loc.start.offset+r});n+=String.fromCharCode(parseInt(i,16)),o=r+6}}r=t.indexOf("\\",o)}return n+=t.slice(o),n}(e)}}const v=new Map([["Document",["body"]],["Object",["members"]],["Member",["name","value"]],["Array",["elements"]],["String",[]],["Number",[]],["Boolean",[]],["Null",[]]]);function b(e){return e&&"object"==typeof e}function C(e){return b(e)&&"string"==typeof e.type}function E(e,t){!function e(n,r){"function"==typeof t.enter&&t.enter(n,r);for(const t of v.get(n.type)){const r=n[t];b(r)&&(Array.isArray(r)?r.forEach((t=>e(t,n))):C(r)&&e(r,n))}"function"==typeof t.exit&&t.exit(n,r)}(e)}function x(e){switch(e.type){case"String":case"Number":case"Boolean":return e.value;case"Null":return null;case"Array":return e.elements.map(x);case"Object":{const t={};return e.members.forEach((e=>{t[x(e.name)]=x(e.value)})),t}case"Document":return x(e.body);case"Property":throw new Error("Cannot evaluate object property outside of an object.");default:throw new Error(`Unknown node type ${e.type}.`)}}return api$1.evaluate=x,api$1.iterator=function(e,t=()=>!0){const n=[];return E(e,{enter(e,t){n.push({node:e,parent:t,phase:"enter"})},exit(e,t){n.push({node:e,parent:t,phase:"exit"})}}),n.filter(t).values()},api$1.parse=function(e,t){const n=h(e,{comments:!!(t=Object.freeze({...A,...t})).comments,ranges:!!t.ranges});let r=0;const i=t.comments?function e(){const t=n[r++];return t&&t.type.endsWith("Comment")?e():t}:function(){return n[r++]};function o(e,t){if(!e||e.value!==t)throw new c(e)}function s(e,n){return t.ranges?{range:[e.offset,n.offset]}:void 0}function a(e){const t=s(e.loc.start,e.loc.end);return{type:e.type,value:y(e),loc:{start:{...e.loc.start},end:{...e.loc.end}},...t}}function l(e){!function(e,t){if(!e||e.type!==t)throw new c(e)}(e,"String");const t=a(e);o(e=i(),":");const n=u(),r=s(t.loc.start,n.loc.end);return g.member(t,n,{loc:{start:{...t.loc.start},end:{...n.loc.end}},...r})}function u(e){switch((e=e||i()).type){case"String":case"Boolean":case"Number":case"Null":return a(e);case"Punctuator":if("{"===e.value)return function(e){o(e,"{");const t=[];let n=i();if(n&&"}"!==n.value)do{if(t.push(l(n)),n=i(),","!==n.value)break;n=i()}while(n);o(n,"}");const r=s(e.loc.start,n.loc.end);return g.object(t,{loc:{start:{...e.loc.start},end:{...n.loc.end}},...r})}(e);if("["===e.value)return function(e){o(e,"[");const t=[];let n=i();if(n&&"]"!==n.value)do{if(t.push(u(n)),n=i(),","!==n.value)break;n=i()}while(n);o(n,"]");const r=s(e.loc.start,n.loc.end);return g.array(t,{type:"Array",elements:t,loc:{start:{...e.loc.start},end:{...n.loc.end}},...r})}(e);default:throw new c(e)}}const d=u(),p=i();if(p)throw new c(p);const f={loc:{start:{line:1,column:1,offset:0},end:{...d.loc.end}}};return t.tokens&&(f.tokens=n),t.ranges&&(f.range=s(f.loc.start,f.loc.end)),g.document(d,f)},api$1.print=function(e,{indent:t=0}={}){const n=x(e);return JSON.stringify(n,null,t)},api$1.tokenize=h,api$1.traverse=E,api$1.types=g,api$1}var helpers={},defineProperty={exports:{}},toPropertyKey={exports:{}},_typeof={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(_typeof)),_typeof.exports}var toPrimitive={exports:{}},hasRequiredToPrimitive,hasRequiredToPropertyKey,hasRequiredDefineProperty;function requireToPrimitive(){return hasRequiredToPrimitive||(hasRequiredToPrimitive=1,function(e){var t=require_typeof().default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(toPrimitive)),toPrimitive.exports}function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,function(e){var t=require_typeof().default,n=requireToPrimitive();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(toPropertyKey)),toPropertyKey.exports}function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,function(e){var t=requireToPropertyKey();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(defineProperty)),defineProperty.exports}var toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray,hasRequiredArrayWithoutHoles;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr=>{let i=""+r,s=i.indexOf(t,e.length);return~s?e+o(i,t,n,s)+t:e+i+t},o=(e,t,n,r)=>{let i="",o=0;do{i+=e.substring(o,r)+n,o=r+t.length,r=e.indexOf(t,o)}while(~r);return i+e.substring(o)},s=(e=r)=>{let t=e?i:()=>String;return{isColorSupported:e,reset:t("",""),bold:t("","",""),dim:t("","",""),italic:t("",""),underline:t("",""),inverse:t("",""),hidden:t("",""),strikethrough:t("",""),black:t("",""),red:t("",""),green:t("",""),yellow:t("",""),blue:t("",""),magenta:t("",""),cyan:t("",""),white:t("",""),gray:t("",""),bgBlack:t("",""),bgRed:t("",""),bgGreen:t("",""),bgYellow:t("",""),bgBlue:t("",""),bgMagenta:t("",""),bgCyan:t("",""),bgWhite:t("",""),blackBright:t("",""),redBright:t("",""),greenBright:t("",""),yellowBright:t("",""),blueBright:t("",""),magentaBright:t("",""),cyanBright:t("",""),whiteBright:t("",""),bgBlackBright:t("",""),bgRedBright:t("",""),bgGreenBright:t("",""),bgYellowBright:t("",""),bgBlueBright:t("",""),bgMagentaBright:t("",""),bgCyanBright:t("",""),bgWhiteBright:t("","")}};return picocolors.exports=s(),picocolors.exports.createColors=s,picocolors.exports}var jsTokens={},hasRequiredJsTokens;function requireJsTokens(){return hasRequiredJsTokens||(hasRequiredJsTokens=1,Object.defineProperty(jsTokens,"__esModule",{value:!0}),jsTokens.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,jsTokens.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}),jsTokens}var lib$b={},identifier={},hasRequiredIdentifier;function requireIdentifier(){if(hasRequiredIdentifier)return identifier;hasRequiredIdentifier=1,Object.defineProperty(identifier,"__esModule",{value:!0}),identifier.isIdentifierChar=c,identifier.isIdentifierName=function(e){let t=!0;for(let n=0;ne)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function a(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):s(e,i)))}function c(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):s(e,i)||s(e,o))))}return identifier}var keyword$1={},hasRequiredKeyword$1,hasRequiredLib$c,hasRequiredLib$b,supportsColor_1,hasRequiredSupportsColor,util$1,hasRequiredUtil$1,templates,hasRequiredTemplates,source,hasRequiredSource;function requireKeyword$1(){if(hasRequiredKeyword$1)return keyword$1;hasRequiredKeyword$1=1,Object.defineProperty(keyword$1,"__esModule",{value:!0}),keyword$1.isKeyword=function(e){return n.has(e)},keyword$1.isReservedWord=o,keyword$1.isStrictBindOnlyReservedWord=a,keyword$1.isStrictBindReservedWord=function(e,t){return s(e,t)||a(e)},keyword$1.isStrictReservedWord=s;const e=["implements","interface","let","package","private","protected","public","static","yield"],t=["eval","arguments"],n=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),r=new Set(e),i=new Set(t);function o(e,t){return t&&"await"===e||"enum"===e}function s(e,t){return o(e,t)||r.has(e)}function a(e){return i.has(e)}return keyword$1}function requireLib$c(){return hasRequiredLib$c||(hasRequiredLib$c=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}});var t=requireIdentifier(),n=requireKeyword$1()}(lib$b)),lib$b}function requireLib$b(){if(hasRequiredLib$b)return lib$c;hasRequiredLib$b=1,Object.defineProperty(lib$c,"__esModule",{value:!0});var e=requirePicocolors(),t=requireJsTokens(),n=requireLib$c();const r=(e,t)=>n=>e(t(n));function i(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:r(r(e.white,e.bgRed),e.bold),gutter:e.gray,marker:r(e.red,e.bold),message:r(e.red,e.bold),reset:e.reset}}const o=i(e.createColors(!0)),s=i(e.createColors(!1));function a(e){return e?o:s}const c=new Set(["as","async","from","get","of","set"]),l=/\r\n|[\n\r\u2028\u2029]/,u=/^[()[\]{}]$/;let d;{const e=/^[a-z][\w-]*$/i,r=function(t,r,i){if("name"===t.type){if(n.isKeyword(t.value)||n.isStrictReservedWord(t.value,!0)||c.has(t.value))return"keyword";if(e.test(t.value)&&("<"===i[r-1]||"t[r](e))).join("\n"):i;return n}let f=!1;const _=/\r\n|[\n\r\u2028\u2029]/;function m(t,n,r={}){const i=r.forceColor||("object"!=typeof process||"0"!==process.env.FORCE_COLOR&&"false"!==process.env.FORCE_COLOR)&&e.isColorSupported&&r.highlightCode,o=a(i),s=t.split(_),{start:c,end:l,markerLines:u}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},a=r.line,c=r.column,l=i.line,u=i.column;let d=Math.max(a-(o+1),0),p=Math.min(t.length,l+s);-1===a&&(d=0),-1===l&&(p=t.length);const f=l-a,_={};if(f)for(let e=0;e<=f;e++){const n=e+a;if(c)if(0===e){const e=t[n-1].length;_[n]=[c,e-c+1]}else if(e===f)_[n]=[0,u];else{const r=t[n-e].length;_[n]=[0,r]}else _[n]=!0}else _[a]=c===u?!c||[c,0]:[c,u-c];return{start:d,end:p,markerLines:_}}(n,s,r),d=n.start&&"number"==typeof n.start.column,f=String(l).length;let m=(i?p(t):t).split(_,l).slice(c,l).map(((e,t)=>{const n=c+1+t,i=` ${` ${n}`.slice(-f)} |`,s=u[n],a=!u[n+1];if(s){let t="";if(Array.isArray(s)){const n=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\t]/g," "),c=s[1]||1;t=["\n ",o.gutter(i.replace(/\d/g," "))," ",n,o.marker("^").repeat(c)].join(""),a&&r.message&&(t+=" "+o.message(r.message))}return[o.marker(">"),o.gutter(i),e.length>0?` ${e}`:"",t].join("")}return` ${o.gutter(i)}${e.length>0?` ${e}`:""}`})).join("\n");return r.message&&!d&&(m=`${" ".repeat(f+1)}${r.message}\n${m}`),i?o.reset(m):m}return lib$c.codeFrameColumns=m,lib$c.default=function(e,t,n,r={}){if(!f){f=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(e,"DeprecationWarning");else{new Error(e).name="DeprecationWarning",console.warn(new Error(e))}}return m(e,{start:{column:n=Math.max(n,0),line:t}},r)},lib$c.highlight=p,lib$c}function requireSupportsColor(){if(hasRequiredSupportsColor)return supportsColor_1;hasRequiredSupportsColor=1;const e=require$$0$9,t=require$$1$1,n=requireHasFlag(),{env:r}=process;let i;function o(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function s(t,o){if(0===i)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!o&&void 0===i)return 0;const s=i||0;if("dumb"===r.TERM)return s;if("win32"===process.platform){const t=e.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in r))||"codeship"===r.CI_NAME?1:s;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:s}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?i=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(i=1),"FORCE_COLOR"in r&&(i="true"===r.FORCE_COLOR?1:"false"===r.FORCE_COLOR?0:0===r.FORCE_COLOR.length?1:Math.min(parseInt(r.FORCE_COLOR,10),3)),supportsColor_1={supportsColor:function(e){return o(s(e,e&&e.isTTY))},stdout:o(s(!0,t.isatty(1))),stderr:o(s(!0,t.isatty(2)))},supportsColor_1}function requireUtil$1(){if(hasRequiredUtil$1)return util$1;hasRequiredUtil$1=1;return util$1={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const i=t.length;let o=0,s="";do{s+=e.substr(o,r-o)+t+n,o=r+i,r=e.indexOf(t,o)}while(-1!==r);return s+=e.substr(o),s},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let i=0,o="";do{const s="\r"===e[r-1];o+=e.substr(i,(s?r-1:r)-i)+t+(s?"\r\n":"\n")+n,i=r+1,r=e.indexOf("\n",i)}while(-1!==r);return o+=e.substr(i),o}},util$1}function requireTemplates(){if(hasRequiredTemplates)return templates;hasRequiredTemplates=1;const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,r=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function o(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):i.get(e)||e}function s(e,t){const i=[],s=t.trim().split(/\s*,\s*/g);let a;for(const t of s){const s=Number(t);if(Number.isNaN(s)){if(!(a=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);i.push(a[2].replace(r,((e,t,n)=>t?o(t):n)))}else i.push(s)}return i}function a(e){t.lastIndex=0;const n=[];let r;for(;null!==(r=t.exec(e));){const e=r[1];if(r[2]){const t=s(e,r[2]);n.push([e].concat(t))}else n.push([e])}return n}function c(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=t.length>0?r[e](...t):r[e]}return r}return templates=(t,n)=>{const r=[],i=[];let s=[];if(n.replace(e,((e,n,l,u,d,p)=>{if(n)s.push(o(n));else if(u){const e=s.join("");s=[],i.push(0===r.length?e:c(t,r)(e)),r.push({inverse:l,styles:a(u)})}else if(d){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");i.push(c(t,r)(s.join(""))),s=[],r.pop()}else s.push(p)})),i.push(s.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")},templates}function requireSource(){if(hasRequiredSource)return source;hasRequiredSource=1;const e=requireAnsiStyles(),{stdout:t,stderr:n}=requireSupportsColor(),{stringReplaceAll:r,stringEncaseCRLFWithFirstIndex:i}=requireUtil$1(),{isArray:o}=Array,s=["ansi","ansi","ansi256","ansi16m"],a=Object.create(null);class c{constructor(e){return l(e)}}const l=e=>{const n={};return((e,n={})=>{if(n.level&&!(Number.isInteger(n.level)&&n.level>=0&&n.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=t?t.level:0;e.level=void 0===n.level?r:n.level})(n,e),n.template=(...e)=>g(n.template,...e),Object.setPrototypeOf(n,u.prototype),Object.setPrototypeOf(n.template,n),n.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},n.template.Instance=c,n.template};function u(e){return l(e)}for(const[t,n]of Object.entries(e))a[t]={get(){const e=_(this,f(n.open,n.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:e}),e}};a.visible={get(){const e=_(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const d=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of d)a[t]={get(){const{level:n}=this;return function(...r){const i=f(e.color[s[n]][t](...r),e.color.close,this._styler);return _(this,i,this._isEmpty)}}};for(const t of d){a["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:n}=this;return function(...r){const i=f(e.bgColor[s[n]][t](...r),e.bgColor.close,this._styler);return _(this,i,this._isEmpty)}}}}const p=Object.defineProperties((()=>{}),{...a,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),f=(e,t,n)=>{let r,i;return void 0===n?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},_=(e,t,n)=>{const r=(...e)=>o(e[0])&&o(e[0].raw)?m(r,g(r,...e)):m(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,p),r._generator=e,r._styler=t,r._isEmpty=n,r},m=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:o,closeAll:s}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=r(t,n.close,n.open),n=n.parent;const a=t.indexOf("\n");return-1!==a&&(t=i(t,s,o,a)),o+t+s};let h;const g=(e,...t)=>{const[n]=t;if(!o(n)||!o(n.raw))return t.join(" ");const r=t.slice(1),i=[n.raw[0]];for(let e=1;e0&&void 0!==arguments[0]?arguments[0]:{isIdentifierLocation:!1},n=arguments.length>1?arguments[1]:void 0,i=n.colorize,o=n.data,s=n.schema,a=n.jsonAst,c=n.jsonRaw;(0,r.default)(this,e),this.options=t,this.colorize=!(!i&&void 0!==i),this.data=o,this.schema=s,this.jsonAst=a,this.jsonRaw=c}return(0,i.default)(e,[{key:"getChalk",value:function(){return this.colorize?s.default:new s.default.Instance({level:0})}},{key:"getLocation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.instancePath,t=this.options,n=t.isIdentifierLocation,r=t.isSkipEndLocation,i=(0,a.getMetaFromPath)(this.jsonAst,e,n).loc;return{start:i.start,end:r?void 0:i.end}}},{key:"getDecoratedPath",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.instancePath;return(0,a.getDecoratedDataPath)(this.jsonAst,e)}},{key:"getCodeFrame",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.instancePath;return(0,o.codeFrameColumns)(this.jsonRaw,this.getLocation(t),{highlightCode:!1,message:e})}},{key:"instancePath",get:function(){return void 0!==this.options.instancePath?this.options.instancePath:this.options.dataPath}},{key:"print",value:function(){throw new Error("Implement the 'print' method inside ".concat(this.constructor.name,"!"))}},{key:"getError",value:function(){throw new Error("Implement the 'getError' method inside ".concat(this.constructor.name,"!"))}}]),e}();t.default=c,e.exports=t.default}(base,base.exports)),base.exports}function requireAdditionalProp(){return hasRequiredAdditionalProp||(hasRequiredAdditionalProp=1,function(e,t){var n=requireInteropRequireDefault();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,o=n(requireDefineProperty()),s=n(requireTaggedTemplateLiteral()),a=n(requireClassCallCheck()),c=n(requireCreateClass()),l=n(requireInherits()),u=n(requirePossibleConstructorReturn()),d=n(requireGetPrototypeOf());function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;ts,void 0===e[i]&&(Array.isArray(e)&&"-"===i&&(i=e.length),o&&(""!==t[s]&&t[s]<1/0||"-"===t[s]?e[i]=[]:e[i]={})),!o)break;e=e[i]}var c=e[i];return void 0===n?delete e[i]:e[i]=n,c}(e,t,n)}return jsonpointer.get=o,jsonpointer.set=s,jsonpointer.compile=function(e){var t=i(e);return{get:function(e){return o(e,t)},set:function(e,n){return s(e,t,n)}}},jsonpointer}var leven={exports:{}},hasRequiredLeven,hasRequired_enum$1;function requireLeven(){if(hasRequiredLeven)return leven.exports;hasRequiredLeven=1;const e=[],t=[],n=(n,r)=>{if(n===r)return 0;const i=n;n.length>r.length&&(n=r,r=i);let o=n.length,s=r.length;for(;o>0&&n.charCodeAt(~-o)===r.charCodeAt(~-s);)o--,s--;let a,c,l,u,d=0;for(;dc?u>c?c+1:u:u>l?l+1:u;return c};return leven.exports=n,leven.exports.default=n,leven.exports}function require_enum$1(){return hasRequired_enum$1||(hasRequired_enum$1=1,function(e,t){var n=requireInteropRequireDefault();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,o,s,a=n(requireDefineProperty()),c=n(requireTaggedTemplateLiteral()),l=n(requireClassCallCheck()),u=n(requireCreateClass()),d=n(requireInherits()),p=n(requirePossibleConstructorReturn()),f=n(requireGetPrototypeOf()),_=n(requireJsonpointer()),m=n(requireLeven());function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;tt.weight?1:e.weight0&&void 0!==arguments[0]?arguments[0]:this.instancePath;return{start:(0,l.default)((0,p.default)(n.prototype),"getLocation",this).call(this,e).start}}},{key:"print",value:function(){var e=this.options,t=e.message,n=e.params,o=this.getChalk();return[o(r||(r=(0,s.default)(["{red {bold REQUIRED} ","}\n"],["{red {bold REQUIRED} ","}\\n"])),t)].concat(this.getCodeFrame(o(i||(i=(0,s.default)(["☹️ {magentaBright ","} is missing here!"])),n.missingProperty)))}},{key:"getError",value:function(){var e=this.options.message;return _(_({},this.getLocation()),{},{error:"".concat(this.getDecoratedPath()," ").concat(e),path:this.instancePath})}}]),n}(n(requireBase()).default);t.default=h,e.exports=t.default}(required$2,required$2.exports)),required$2.exports}var unevaluatedProp={exports:{}},hasRequiredUnevaluatedProp,hasRequiredValidationErrors,hasRequiredHelpers,hasRequiredLib$a;function requireUnevaluatedProp(){return hasRequiredUnevaluatedProp||(hasRequiredUnevaluatedProp=1,function(e,t){var n=requireInteropRequireDefault();Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i,o=n(requireDefineProperty()),s=n(requireTaggedTemplateLiteral()),a=n(requireClassCallCheck()),c=n(requireCreateClass()),l=n(requireInherits()),u=n(requirePossibleConstructorReturn()),d=n(requireGetPrototypeOf());function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var n=void 0!==t.instancePath?t.instancePath:t.dataPath,r=""===n?[""]:n.match(l);r&&r.reduce((function(e,n,i){return e.children[n]=e.children[n]||{children:{},errors:[]},i===r.length-1&&e.children[n].errors.push(t),e.children[n]}),e)})),e}function d(e,t,n){(0,o.getErrors)(e).forEach((function(t){(0,o.isRequiredError)(t)&&(e.errors=[t],e.children={})})),(0,o.getErrors)(e).some(o.isAnyOfError)&&Object.keys(e.children).length>0&&delete e.errors,e.errors&&e.errors.length&&(0,o.getErrors)(e).every(o.isEnumError)&&(0,o.getSiblings)(t)(e).filter(o.notUndefined).some(o.getErrors)&&delete t.children[n],Object.entries(e.children).forEach((function(t){var n=(0,i.default)(t,2),r=n[0];return d(n[1],e,r)}))}function p(e,t){var n=(0,o.getErrors)(e);if(n.length&&n.every(o.isEnumError)){var i=new Set((0,o.concatAll)([])(n.map((function(e){return e.params.allowedValues})))),a=(0,r.default)(i),l=n[0];return[new s.EnumValidationError(c(c({},l),{},{params:{allowedValues:a}}),t)]}return(0,o.concatAll)(n.reduce((function(e,n){switch(n.keyword){case"additionalProperties":return e.concat(new s.AdditionalPropValidationError(n,t));case"pattern":return e.concat(new s.PatternValidationError(n,t));case"required":return e.concat(new s.RequiredValidationError(n,t));case"unevaluatedProperties":return e.concat(new s.UnevaluatedPropValidationError(n,t));default:return e.concat(new s.DefaultValidationError(n,t))}}),[]))((0,o.getChildren)(e).map((function(e){return p(e,t)})))}}(helpers)),helpers}function requireLib$a(){return hasRequiredLib$a||(hasRequiredLib$a=1,function(e,t){var n=requireInteropRequireDefault();Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=o.colorize,a=void 0===s||s,c=o.format,l=void 0===c?"cli":c,u=o.indent,d=void 0===u?null:u,p=o.json,f=void 0===p?null:p,_=f||JSON.stringify(t,null,d),m=(0,r.parse)(_),h=(0,i.default)(n,{colorize:a,data:t,schema:e,jsonAst:m,jsonRaw:_});if("cli"===l)return h.map((function(e){return e.print().join("\n")})).join("\n\n");return h.map((function(e){return e.getError()}))};var r=requireApi$1(),i=n(requireHelpers());e.exports=t.default}(lib$d,lib$d.exports)),lib$d.exports}var dist$3={},hasRequiredDist$3;function requireDist$3(){if(hasRequiredDist$3)return dist$3;hasRequiredDist$3=1,Object.defineProperty(dist$3,"__esModule",{value:!0});var e={v1:{id:"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/apiDeclaration.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","basePath","apis"],properties:{swaggerVersion:{enum:["1.2"]},apiVersion:{type:"string"},basePath:{type:"string",format:"uri",pattern:"^https?://"},resourcePath:{type:"string",format:"uri",pattern:"^/"},apis:{type:"array",items:{$ref:"#/definitions/apiObject"}},models:{type:"object",additionalProperties:{$ref:"modelsObject.json#"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},authorizations:{$ref:"authorizationObject.json#"}},additionalProperties:!1,definitions:{apiObject:{type:"object",required:["path","operations"],properties:{path:{type:"string",format:"uri-template",pattern:"^/"},description:{type:"string"},operations:{type:"array",items:{$ref:"operationObject.json#"}}},additionalProperties:!1},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}},v2:{title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for responses"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},consumes:{description:"A list of MIME types the API can consume.",allOf:[{$ref:"#/definitions/mediaTypeList"}]},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}},v3:{id:"https://spec.openapis.org/oas/3.0/schema/2021-09-28",$schema:"http://json-schema.org/draft-04/schema#",description:"The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3",type:"object",required:["openapi","info","paths"],properties:{openapi:{type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{type:"object",required:["title","version"],properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"},email:{type:"string",format:"email"}},patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",required:["name"],properties:{name:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Server:{type:"object",required:["url"],properties:{url:{type:"string"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ServerVariable:{type:"object",required:["default"],properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},Components:{type:"object",properties:{schemas:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},minItems:1,uniqueItems:!1},type:{type:"string",enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},properties:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],default:!0},description:{type:"string"},format:{type:"string"},default:{},nullable:{type:"boolean",default:!1},discriminator:{$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],properties:{propertyName:{type:"string"},mapping:{type:"object",additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",required:["description"],properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}},encoding:{type:"object",additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:{},externalValue:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},Header:{type:"object",properties:{description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"}]},Paths:{type:"object",patternProperties:{"^\\/":{$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0}},patternProperties:{"^(get|put|post|delete|options|head|patch|trace)$":{$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{type:"object",required:["responses"],properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{type:"string"},parameters:{type:"array",items:{oneOf:[{$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},callbacks:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{type:"boolean",default:!1},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,additionalProperties:!1},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},ExampleXORExamples:{description:"Example and examples are mutually exclusive",not:{required:["example","examples"]}},SchemaXORContent:{description:"Schema and content are mutually exclusive, at least one is required",not:{required:["schema","content"]},oneOf:[{required:["schema"]},{required:["content"],description:"Some properties are not allowed if content is present",allOf:[{not:{required:["style"]}},{not:{required:["explode"]}},{not:{required:["allowReserved"]}},{not:{required:["example"]}},{not:{required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{type:"string"},in:{type:"string"},description:{type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},examples:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},additionalProperties:!1,required:["name","in"],allOf:[{$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{description:"Parameter location",oneOf:[{description:"Parameter in path",required:["required"],properties:{in:{enum:["path"]},style:{enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{description:"Parameter in query",properties:{in:{enum:["query"]},style:{enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{description:"Parameter in header",properties:{in:{enum:["header"]},style:{enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},RequestBody:{type:"object",required:["content"],properties:{description:{type:"string"},content:{type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{$ref:"#/definitions/APIKeySecurityScheme"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/OAuth2SecurityScheme"},{$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{description:"Bearer",properties:{scheme:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}}},{description:"Non Bearer",not:{required:["bearerFormat"]},properties:{scheme:{not:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}}}}]},OAuth2SecurityScheme:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{type:"string",format:"uri-reference"},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},additionalProperties:!1},ImplicitOAuthFlow:{type:"object",required:["authorizationUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},PasswordOAuthFlow:{type:"object",required:["tokenUrl","scopes"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},ClientCredentialsFlow:{type:"object",required:["tokenUrl","scopes"],properties:{tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},AuthorizationCodeOAuthFlow:{type:"object",required:["authorizationUrl","tokenUrl","scopes"],properties:{authorizationUrl:{type:"string",format:"uri-reference"},tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},additionalProperties:!1,not:{description:"Operation Id and Operation Ref are mutually exclusive",required:["operationId","operationRef"]}},Callback:{type:"object",additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{$ref:"#/definitions/Reference"}]}},style:{type:"string",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean",default:!1}},patternProperties:{"^x-":{}},additionalProperties:!1}}},v31:{$id:"https://spec.openapis.org/oas/3.1/schema/2022-10-07",$schema:"https://json-schema.org/draft/2020-12/schema",description:"The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{type:"string",format:"uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"},default:[{url:"/"}]},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{$comment:"https://spec.openapis.org/oas/v3.1.0#info-object",type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{$comment:"https://spec.openapis.org/oas/v3.1.0#contact-object",type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{$comment:"https://spec.openapis.org/oas/v3.1.0#license-object",type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{type:"string",format:"uri"}},required:["name"],dependentSchemas:{identifier:{not:{required:["url"]}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{$comment:"https://spec.openapis.org/oas/v3.1.0#server-object",type:"object",properties:{url:{type:"string",format:"uri-reference"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{$comment:"https://spec.openapis.org/oas/v3.1.0#server-variable-object",type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},description:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{$comment:"https://spec.openapis.org/oas/v3.1.0#components-object",type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{$comment:"https://spec.openapis.org/oas/v3.1.0#paths-object",type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{$comment:"https://spec.openapis.org/oas/v3.1.0#path-item-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},get:{$ref:"#/$defs/operation"},put:{$ref:"#/$defs/operation"},post:{$ref:"#/$defs/operation"},delete:{$ref:"#/$defs/operation"},options:{$ref:"#/$defs/operation"},head:{$ref:"#/$defs/operation"},patch:{$ref:"#/$defs/operation"},trace:{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{$comment:"https://spec.openapis.org/oas/v3.1.0#operation-object",type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{$comment:"https://spec.openapis.org/oas/v3.1.0#external-documentation-object",type:"object",properties:{description:{type:"string"},url:{type:"string",format:"uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{$comment:"https://spec.openapis.org/oas/v3.1.0#parameter-object",type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},required:["name","in"],oneOf:[{required:["schema"]},{required:["content"]}],if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{allowEmptyValue:{default:!1,type:"boolean"}}},dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",const:"simple"}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},allowReserved:{default:!1,type:"boolean"}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",const:"form"}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{$comment:"https://spec.openapis.org/oas/v3.1.0#request-body-object",type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{$comment:"https://spec.openapis.org/oas/v3.1.0#fixed-fields-10",type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{$comment:"https://spec.openapis.org/oas/v3.1.0#media-type-object",type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{$comment:"https://spec.openapis.org/oas/v3.1.0#encoding-object",type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/styles-for-form"}],unevaluatedProperties:!1},responses:{$comment:"https://spec.openapis.org/oas/v3.1.0#responses-object",type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":{$ref:"#/$defs/response-or-reference"}},minProperties:1,$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,if:{$comment:"either default, or at least one response code property must exist",patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":!1}},then:{required:["default"]}},response:{$comment:"https://spec.openapis.org/oas/v3.1.0#response-object",type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{$comment:"https://spec.openapis.org/oas/v3.1.0#callback-object",type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{$comment:"https://spec.openapis.org/oas/v3.1.0#example-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{type:"string",format:"uri"}},not:{required:["value","externalValue"]},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{$comment:"https://spec.openapis.org/oas/v3.1.0#link-object",type:"object",properties:{operationRef:{type:"string",format:"uri-reference"},operationId:{type:"string"},parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{$comment:"https://spec.openapis.org/oas/v3.1.0#header-object",type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{default:"simple",const:"simple"},explode:{default:!1,type:"boolean"}},$ref:"#/$defs/examples"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{$comment:"https://spec.openapis.org/oas/v3.1.0#tag-object",type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{$comment:"https://spec.openapis.org/oas/v3.1.0#reference-object",type:"object",properties:{$ref:{type:"string",format:"uri-reference"},summary:{type:"string"},description:{type:"string"}}},schema:{$comment:"https://spec.openapis.org/oas/v3.1.0#schema-object",$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-scheme-object",type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}}}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{type:"string",format:"uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-requirement-object",type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{$comment:"https://spec.openapis.org/oas/v3.1.0#specification-extensions",patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},"map-of-strings":{type:"object",additionalProperties:{type:"string"}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}},v31legacy:{$id:"https://spec.openapis.org/oas/3.1/schema/2022-10-07",$schema:"https://json-schema.org/draft/2020-12/schema",description:"The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0",type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{type:"string",format:"uri",default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",items:{$ref:"#/$defs/server"},default:[{url:"/"}]},paths:{$ref:"#/$defs/paths"},webhooks:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{required:["paths"]},{required:["components"]},{required:["webhooks"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{$comment:"https://spec.openapis.org/oas/v3.1.0#info-object",type:"object",properties:{title:{type:"string"},summary:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:{$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}},required:["title","version"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},contact:{$comment:"https://spec.openapis.org/oas/v3.1.0#contact-object",type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},license:{$comment:"https://spec.openapis.org/oas/v3.1.0#license-object",type:"object",properties:{name:{type:"string"},identifier:{type:"string"},url:{type:"string",format:"uri"}},required:["name"],dependentSchemas:{identifier:{not:{required:["url"]}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},server:{$comment:"https://spec.openapis.org/oas/v3.1.0#server-object",type:"object",properties:{url:{type:"string",format:"uri-reference"},description:{type:"string"},variables:{type:"object",additionalProperties:{$ref:"#/$defs/server-variable"}}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"server-variable":{$comment:"https://spec.openapis.org/oas/v3.1.0#server-variable-object",type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},default:{type:"string"},description:{type:"string"}},required:["default"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{$comment:"https://spec.openapis.org/oas/v3.1.0#components-object",type:"object",properties:{schemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"}},responses:{type:"object",additionalProperties:{$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},requestBodies:{type:"object",additionalProperties:{$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},patternProperties:{"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{$comment:"https://spec.openapis.org/oas/v3.1.0#paths-object",type:"object",patternProperties:{"^/":{$ref:"#/$defs/path-item"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{$comment:"https://spec.openapis.org/oas/v3.1.0#path-item-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},servers:{type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},get:{$ref:"#/$defs/operation"},put:{$ref:"#/$defs/operation"},post:{$ref:"#/$defs/operation"},delete:{$ref:"#/$defs/operation"},options:{$ref:"#/$defs/operation"},head:{$ref:"#/$defs/operation"},patch:{$ref:"#/$defs/operation"},trace:{$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/path-item"}},operation:{$comment:"https://spec.openapis.org/oas/v3.1.0#operation-object",type:"object",properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"},operationId:{type:"string"},parameters:{type:"array",items:{$ref:"#/$defs/parameter-or-reference"}},requestBody:{$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},callbacks:{type:"object",additionalProperties:{$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{type:"array",items:{$ref:"#/$defs/server"}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"external-documentation":{$comment:"https://spec.openapis.org/oas/v3.1.0#external-documentation-object",type:"object",properties:{description:{type:"string"},url:{type:"string",format:"uri"}},required:["url"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},parameter:{$comment:"https://spec.openapis.org/oas/v3.1.0#parameter-object",type:"object",properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{$dynamicRef:"#meta"},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},required:["name","in"],oneOf:[{required:["schema"]},{required:["content"]}],if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{allowEmptyValue:{default:!1,type:"boolean"}}},dependentSchemas:{schema:{properties:{style:{type:"string"},explode:{type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{$ref:"#/$defs/styles-for-form"}],$defs:{"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{properties:{style:{default:"simple",enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},then:{properties:{style:{default:"simple",const:"simple"}}}},"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{properties:{style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},allowReserved:{default:!1,type:"boolean"}}}},"styles-for-cookie":{if:{properties:{in:{const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",const:"form"}}}}}}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"parameter-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/parameter"}},"request-body":{$comment:"https://spec.openapis.org/oas/v3.1.0#request-body-object",type:"object",properties:{description:{type:"string"},content:{$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},required:["content"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"request-body-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/request-body"}},content:{$comment:"https://spec.openapis.org/oas/v3.1.0#fixed-fields-10",type:"object",additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{format:"media-range"}},"media-type":{$comment:"https://spec.openapis.org/oas/v3.1.0#media-type-object",type:"object",properties:{schema:{$dynamicRef:"#meta"},encoding:{type:"object",additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],unevaluatedProperties:!1},encoding:{$comment:"https://spec.openapis.org/oas/v3.1.0#encoding-object",type:"object",properties:{contentType:{type:"string",format:"media-range"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/styles-for-form"}],unevaluatedProperties:!1},responses:{$comment:"https://spec.openapis.org/oas/v3.1.0#responses-object",type:"object",properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":{$ref:"#/$defs/response-or-reference"}},minProperties:1,$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,if:{$comment:"either default, or at least one response code property must exist",patternProperties:{"^[1-5](?:[0-9]{2}|XX)$":!1}},then:{required:["default"]}},response:{$comment:"https://spec.openapis.org/oas/v3.1.0#response-object",type:"object",properties:{description:{type:"string"},headers:{type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}},required:["description"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"response-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{$comment:"https://spec.openapis.org/oas/v3.1.0#callback-object",type:"object",$ref:"#/$defs/specification-extensions",additionalProperties:{$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/callbacks"}},example:{$comment:"https://spec.openapis.org/oas/v3.1.0#example-object",type:"object",properties:{summary:{type:"string"},description:{type:"string"},value:!0,externalValue:{type:"string",format:"uri"}},not:{required:["value","externalValue"]},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"example-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}},link:{$comment:"https://spec.openapis.org/oas/v3.1.0#link-object",type:"object",properties:{operationRef:{type:"string",format:"uri-reference"},operationId:{type:"string"},parameters:{$ref:"#/$defs/map-of-strings"},requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},oneOf:[{required:["operationRef"]},{required:["operationId"]}],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"link-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{$comment:"https://spec.openapis.org/oas/v3.1.0#header-object",type:"object",properties:{description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{default:!1,type:"boolean"},schema:{type:["object","boolean"]},content:{$ref:"#/$defs/content",minProperties:1,maxProperties:1}},oneOf:[{required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{properties:{style:{default:"simple",const:"simple"},explode:{default:!1,type:"boolean"}},$ref:"#/$defs/examples"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"header-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{$comment:"https://spec.openapis.org/oas/v3.1.0#tag-object",type:"object",properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"}},required:["name"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{$comment:"https://spec.openapis.org/oas/v3.1.0#reference-object",type:"object",properties:{$ref:{type:"string",format:"uri-reference"},summary:{type:"string"},description:{type:"string"}}},schema:{$comment:"https://spec.openapis.org/oas/v3.1.0#schema-object",$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-scheme-object",type:"object",properties:{type:{enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{type:"string"}},required:["type"],allOf:[{$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/security-scheme/$defs/type-apikey"},{$ref:"#/$defs/security-scheme/$defs/type-http"},{$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}},required:["type","scheme"]},then:{properties:{bearerFormat:{type:"string"}}}},"type-oauth2":{if:{properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{type:{const:"openIdConnect"}},required:["type"]},then:{properties:{openIdConnectUrl:{type:"string",format:"uri"}},required:["openIdConnectUrl"]}}}},"security-scheme-or-reference":{if:{type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{implicit:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{type:"object",properties:{tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}},required:["authorizationUrl","tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},"security-requirement":{$comment:"https://spec.openapis.org/oas/v3.1.0#security-requirement-object",type:"object",additionalProperties:{type:"array",items:{type:"string"}}},"specification-extensions":{$comment:"https://spec.openapis.org/oas/v3.1.0#specification-extensions",patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},"map-of-strings":{type:"object",additionalProperties:{type:"string"}},"styles-for-form":{if:{properties:{style:{const:"form"}},required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}}}}}};return dist$3.openapi=e,dist$3}var _2020={exports:{}},core$2={},validate$1={},boolSchema={},errors={},codegen={},code$1={},hasRequiredCode$1;function requireCode$1(){return hasRequiredCode$1||(hasRequiredCode$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function i(e,...t){const n=[e[0]];let i=0;for(;i{if(void 0===n.scopePath)throw new Error(`CodeGen: name "${n}" has no value`);return t._`${e}${n.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(i,o,s={},a){let c=t.nil;for(const l in i){const u=i[l];if(!u)continue;const d=s[l]=s[l]||new Map;u.forEach((i=>{if(d.has(i))return;d.set(i,r.Started);let s=o(i);if(s){const n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=t._`${c}${n} ${i} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(i)))throw new n(i);c=t._`${c}${s}${this.opts._n}`}d.set(i,r.Completed)}))}return c}}}(scope)),scope}function requireCodegen(){return hasRequiredCodegen||(hasRequiredCodegen=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=requireCode$1(),n=requireScope();var r=requireCode$1();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=requireScope();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(e,t){return this}}class s extends o{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind,i=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,n),this}get names(){return w(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class c extends a{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class l extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends o{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends o{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=I(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class f extends o{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(T(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>D(e,t.names)),{})}}class _ extends f{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends f{}class h extends _{}h.kind="else";class g extends _{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new h(e):e}return t?!1===e?t instanceof g?t:t.nodes:this.nodes.length?this:new g(F(e),t instanceof g?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){const e=super.names;return w(e,this.condition),this.else&&D(e,this.else.names),e}}g.kind="if";class A extends _{}A.kind="for";class y extends A{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=I(this.iteration,e,t),this}get names(){return D(super.names,this.iteration.names)}}class v extends A{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:o}=this;return`for(${t} ${r}=${i}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){const e=w(super.names,this.from);return w(e,this.to)}}class b extends A{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=I(this.iterable,e,t),this}get names(){return D(super.names,this.iterable.names)}}class C extends _{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}C.kind="func";class E extends f{render(e){return"return "+super.render(e)}}E.kind="return";class x extends _{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&D(e,this.catch.names),this.finally&&D(e,this.finally.names),e}}class S extends _{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}S.kind="catch";class k extends _{render(e){return"finally"+super.render(e)}}k.kind="finally";function D(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function w(e,n){return n instanceof t._CodeOrName?D(e,n.names):e}function I(e,n,r){return e instanceof t.Name?o(e):(i=e)instanceof t._Code&&i._items.some((e=>e instanceof t.Name&&1===n[e.str]&&void 0!==r[e.str]))?new t._Code(e._items.reduce(((e,n)=>(n instanceof t.Name&&(n=o(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e)),[])):e;var i;function o(e){const t=r[e.str];return void 0===t||1!==n[e.str]?e:(delete n[e.str],t)}}function T(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function F(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${B(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new s(e,i,n)),i}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new a(e,t,n))}add(t,n){return this._leafNode(new c(t,e.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new p(e)),this}object(...e){const n=["{"];for(const[r,i]of e)n.length>1&&n.push(","),n.push(r),(r!==i||this.opts.es5)&&(n.push(":"),(0,t.addCodeArg)(n,i));return n.push("}"),new t._Code(n)}if(e,t,n){if(this._blockNode(new g(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new g(e))}else(){return this._elseNode(new h)}endIf(){return this._endBlockNode(g,h)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new y(e),t)}forRange(e,t,r,i,o=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const s=this._scope.toName(e);return this._for(new v(o,s,t,r),(()=>i(s)))}forOf(e,r,i,o=n.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=r instanceof t.Name?r:this.var("_arr",r);return this.forRange("_i",0,t._`${e}.length`,(n=>{this.var(s,t._`${e}[${n}]`),i(s)}))}return this._for(new b("of",o,s,r),(()=>i(s)))}forIn(e,r,i,o=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${r})`,i);const s=this._scope.toName(e);return this._for(new b("in",o,s,r),(()=>i(s)))}endFor(){return this._endBlockNode(A)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new u(e))}return(e){const t=new E;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new x;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new S(e),t(e)}return n&&(this._currNode=r.finally=new k,this.code(n)),this._endBlockNode(S,k)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,i){return this._blockNode(new C(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(C)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=F;const R=N(e.operators.AND);e.and=function(...e){return e.reduce(R)};const P=N(e.operators.OR);function N(e){return(n,r)=>n===t.nil?r:r===t.nil?n:t._`${B(n)} ${e} ${B(r)}`}function B(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(P)}}(codegen)),codegen}var util={},hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;hasRequiredUtil=1,Object.defineProperty(util,"__esModule",{value:!0}),util.checkStrictMode=util.getErrorPath=util.Type=util.useFunc=util.setEvaluated=util.evaluatedPropsToName=util.mergeEvaluated=util.eachItem=util.unescapeJsonPointer=util.escapeJsonPointer=util.escapeFragment=util.unescapeFragment=util.schemaRefOrVal=util.schemaHasRulesButRef=util.schemaHasRules=util.checkUnknownRules=util.alwaysValidSchema=util.toHash=void 0;const e=requireCodegen(),t=requireCode$1();function n(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||d(e,`unknown keyword: "${n}"`)}function r(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function i(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:t,mergeToName:n,mergeValues:r,resultToName:i}){return(o,s,a,c)=>{const l=void 0===a?s:a instanceof e.Name?(s instanceof e.Name?t(o,s,a):n(o,s,a),a):s instanceof e.Name?(n(o,a,s),s):r(s,a);return c!==e.Name||l instanceof e.Name?l:i(o,l)}}function a(t,n){if(!0===n)return t.var("props",!0);const r=t.var("props",e._`{}`);return void 0!==n&&c(t,r,n),r}function c(t,n,r){Object.keys(r).forEach((r=>t.assign(e._`${n}${(0,e.getProperty)(r)}`,!0)))}util.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},util.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!r(t,e.self.RULES.all))},util.checkUnknownRules=n,util.schemaHasRules=r,util.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},util.schemaRefOrVal=function({topSchemaRef:t,schemaPath:n},r,i,o){if(!o){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return e._`${r}`}return e._`${t}${n}${(0,e.getProperty)(i)}`},util.unescapeFragment=function(e){return o(decodeURIComponent(e))},util.escapeFragment=function(e){return encodeURIComponent(i(e))},util.escapeJsonPointer=i,util.unescapeJsonPointer=o,util.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},util.mergeEvaluated={props:s({mergeNames:(t,n,r)=>t.if(e._`${r} !== true && ${n} !== undefined`,(()=>{t.if(e._`${n} === true`,(()=>t.assign(r,!0)),(()=>t.assign(r,e._`${r} || {}`).code(e._`Object.assign(${r}, ${n})`)))})),mergeToName:(t,n,r)=>t.if(e._`${r} !== true`,(()=>{!0===n?t.assign(r,!0):(t.assign(r,e._`${r} || {}`),c(t,r,n))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:a}),items:s({mergeNames:(t,n,r)=>t.if(e._`${r} !== true && ${n} !== undefined`,(()=>t.assign(r,e._`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`))),mergeToName:(t,n,r)=>t.if(e._`${r} !== true`,(()=>t.assign(r,!0===n||e._`${r} > ${n} ? ${r} : ${n}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},util.evaluatedPropsToName=a,util.setEvaluated=c;const l={};var u;function d(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}return util.useFunc=function(e,n){return e.scopeValue("func",{ref:n,code:l[n.code]||(l[n.code]=new t._Code(n.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(u||(util.Type=u={})),util.getErrorPath=function(t,n,r){if(t instanceof e.Name){const i=n===u.Num;return r?i?e._`"[" + ${t} + "]"`:e._`"['" + ${t} + "']"`:i?e._`"/" + ${t}`:e._`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,e.getProperty)(t).toString():"/"+i(t)},util.checkStrictMode=d,util}var names={},hasRequiredNames,hasRequiredErrors,hasRequiredBoolSchema;function requireNames(){if(hasRequiredNames)return names;hasRequiredNames=1,Object.defineProperty(names,"__esModule",{value:!0});const e=requireCodegen(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return names.default=t,names}function requireErrors(){return hasRequiredErrors||(hasRequiredErrors=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=requireCodegen(),n=requireUtil(),r=requireNames();function i(e,n){const i=e.const("err",n);e.if(t._`${r.default.vErrors} === null`,(()=>e.assign(r.default.vErrors,t._`[${i}]`)),t._`${r.default.vErrors}.push(${i})`),e.code(t._`${r.default.errors}++`)}function o(e,n){const{gen:r,validateName:i,schemaEnv:o}=e;o.$async?r.throw(t._`new ${e.ValidationError}(${n})`):(r.assign(t._`${i}.errors`,n),r.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?t.str`"${e}" keyword must be ${n} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(n,r=e.keywordError,s,c){const{it:l}=n,{gen:u,compositeRule:d,allErrors:p}=l,f=a(n,r,s);(null!=c?c:d||p)?i(u,f):o(l,t._`[${f}]`)},e.reportExtraError=function(t,n=e.keywordError,s){const{it:c}=t,{gen:l,compositeRule:u,allErrors:d}=c;i(l,a(t,n,s)),u||d||o(c,r.default.vErrors)},e.resetErrorsCount=function(e,n){e.assign(r.default.errors,n),e.if(t._`${r.default.vErrors} !== null`,(()=>e.if(n,(()=>e.assign(t._`${r.default.vErrors}.length`,n)),(()=>e.assign(r.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:n,schemaValue:i,data:o,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,r.default.errors,(s=>{e.const(c,t._`${r.default.vErrors}[${s}]`),e.if(t._`${c}.instancePath === undefined`,(()=>e.assign(t._`${c}.instancePath`,(0,t.strConcat)(r.default.instancePath,a.errorPath)))),e.assign(t._`${c}.schemaPath`,t.str`${a.errSchemaPath}/${n}`),a.opts.verbose&&(e.assign(t._`${c}.schema`,i),e.assign(t._`${c}.data`,o))}))};const s={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function a(e,n,i){const{createErrors:o}=e.it;return!1===o?t._`{}`:function(e,n,i={}){const{gen:o,it:a}=e,u=[c(a,i),l(e,i)];return function(e,{params:n,message:i},o){const{keyword:a,data:c,schemaValue:l,it:u}=e,{opts:d,propertyName:p,topSchemaRef:f,schemaPath:_}=u;o.push([s.keyword,a],[s.params,"function"==typeof n?n(e):n||t._`{}`]),d.messages&&o.push([s.message,"function"==typeof i?i(e):i]);d.verbose&&o.push([s.schema,l],[s.parentSchema,t._`${f}${_}`],[r.default.data,c]);p&&o.push([s.propertyName,p])}(e,n,u),o.object(...u)}(e,n,i)}function c({errorPath:e},{instancePath:i}){const o=i?t.str`${e}${(0,n.getErrorPath)(i,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,o)]}function l({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:o}){let a=o?r:t.str`${r}/${e}`;return i&&(a=t.str`${a}${(0,n.getErrorPath)(i,n.Type.Str)}`),[s.schemaPath,a]}}(errors)),errors}function requireBoolSchema(){if(hasRequiredBoolSchema)return boolSchema;hasRequiredBoolSchema=1,Object.defineProperty(boolSchema,"__esModule",{value:!0}),boolSchema.boolOrEmptySchema=boolSchema.topBoolOrEmptySchema=void 0;const e=requireErrors(),t=requireCodegen(),n=requireNames(),r={message:"boolean schema is false"};function i(t,n){const{gen:i,data:o}=t,s={gen:i,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(s,r,void 0,n)}return boolSchema.topBoolOrEmptySchema=function(e){const{gen:r,schema:o,validateName:s}=e;!1===o?i(e,!1):"object"==typeof o&&!0===o.$async?r.return(n.default.data):(r.assign(t._`${s}.errors`,null),r.return(!0))},boolSchema.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),i(e)):n.var(t,!0)},boolSchema}var dataType={},rules={},hasRequiredRules;function requireRules(){if(hasRequiredRules)return rules;hasRequiredRules=1,Object.defineProperty(rules,"__esModule",{value:!0}),rules.getRules=rules.isJSONType=void 0;const e=new Set(["string","number","integer","boolean","null","object","array"]);return rules.isJSONType=function(t){return"string"==typeof t&&e.has(t)},rules.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}},rules}var applicability={},hasRequiredApplicability,hasRequiredDataType;function requireApplicability(){if(hasRequiredApplicability)return applicability;function e(e,n){return n.rules.some((n=>t(e,n)))}function t(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}return hasRequiredApplicability=1,Object.defineProperty(applicability,"__esModule",{value:!0}),applicability.shouldUseRule=applicability.shouldUseGroup=applicability.schemaHasRulesForType=void 0,applicability.schemaHasRulesForType=function({schema:t,self:n},r){const i=n.RULES.types[r];return i&&!0!==i&&e(t,i)},applicability.shouldUseGroup=e,applicability.shouldUseRule=t,applicability}function requireDataType(){if(hasRequiredDataType)return dataType;hasRequiredDataType=1,Object.defineProperty(dataType,"__esModule",{value:!0}),dataType.reportTypeError=dataType.checkDataTypes=dataType.checkDataType=dataType.coerceAndCheckDataType=dataType.getJSONTypes=dataType.getSchemaTypes=dataType.DataType=void 0;const e=requireRules(),t=requireApplicability(),n=requireErrors(),r=requireCodegen(),i=requireUtil();var o;function s(t){const n=Array.isArray(t)?t:t?[t]:[];if(n.every(e.isJSONType))return n;throw new Error("type must be JSONType or JSONType[]: "+n.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(o||(dataType.DataType=o={})),dataType.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},dataType.getJSONTypes=s,dataType.coerceAndCheckDataType=function(e,n){const{gen:i,data:s,opts:c}=e,u=function(e,t){return t?e.filter((e=>a.has(e)||"array"===t&&"array"===e)):[]}(n,c.coerceTypes),p=n.length>0&&!(0===u.length&&1===n.length&&(0,t.schemaHasRulesForType)(e,n[0]));if(p){const t=l(n,s,c.strictNumbers,o.Wrong);i.if(t,(()=>{u.length?function(e,t,n){const{gen:i,data:o,opts:s}=e,c=i.let("dataType",r._`typeof ${o}`),u=i.let("coerced",r._`undefined`);"array"===s.coerceTypes&&i.if(r._`${c} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>i.assign(o,r._`${o}[0]`).assign(c,r._`typeof ${o}`).if(l(t,o,s.strictNumbers),(()=>i.assign(u,o)))));i.if(r._`${u} !== undefined`);for(const e of n)(a.has(e)||"array"===e&&"array"===s.coerceTypes)&&p(e);function p(e){switch(e){case"string":return void i.elseIf(r._`${c} == "number" || ${c} == "boolean"`).assign(u,r._`"" + ${o}`).elseIf(r._`${o} === null`).assign(u,r._`""`);case"number":return void i.elseIf(r._`${c} == "boolean" || ${o} === null || (${c} == "string" && ${o} && ${o} == +${o})`).assign(u,r._`+${o}`);case"integer":return void i.elseIf(r._`${c} === "boolean" || ${o} === null || (${c} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(u,r._`+${o}`);case"boolean":return void i.elseIf(r._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(u,!1).elseIf(r._`${o} === "true" || ${o} === 1`).assign(u,!0);case"null":return i.elseIf(r._`${o} === "" || ${o} === 0 || ${o} === false`),void i.assign(u,null);case"array":i.elseIf(r._`${c} === "string" || ${c} === "number" diff --git a/package-lock.json b/package-lock.json index f618592b3..d701686dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "rdme", - "version": "9.0.2-next.1", + "version": "9.0.2-next.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rdme", - "version": "9.0.2-next.1", + "version": "9.0.2-next.2", "license": "MIT", "dependencies": { "@actions/core": "^1.6.0", diff --git a/package.json b/package.json index f2a40dcc3..b67adf9fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rdme", - "version": "9.0.2-next.1", + "version": "9.0.2-next.2", "description": "ReadMe's official CLI and GitHub Action.", "license": "MIT", "author": "ReadMe (https://readme.com)",