@redocly/replay 0.30.0-next.0 → 0.30.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-AiChatProvider-D7Pa4BSi.js → replay-AiChatProvider-0MlUvuGe.js} +6 -6
- package/dist/{replay-AiChatProvider--LgX8A8I.js → replay-AiChatProvider-B2P9I5ug.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-CFle7AkQ.js → replay-AiChatSqliteDBStorage-B6euQ3b3.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-BtTQLkOQ.js → replay-AiChatSqliteDBStorage-DN3HPpIj.js} +1 -1
- package/dist/{replay-AiPanel-DKOom3XE.js → replay-AiPanel-B1UfwbH9.js} +4 -4
- package/dist/{replay-AiPanel-MAf1O3X7.js → replay-AiPanel-DLwB7Rrw.js} +1 -1
- package/dist/{replay-FileWatcher-D3vYo_rm.js → replay-FileWatcher-BezlpQyJ.js} +1 -1
- package/dist/{replay-FileWatcher-Bi1Awm1g.js → replay-FileWatcher-CVKLX2eZ.js} +2 -2
- package/dist/{replay-SemanticSearchService-4RHUNPxQ.js → replay-SemanticSearchService-BLyt9-0h.js} +2 -2
- package/dist/{replay-SemanticSearchService-CEwTcXh1.js → replay-SemanticSearchService-ZR8AVcxo.js} +1 -1
- package/dist/{replay-SqliteDBStorage-Ckb4-uGs.js → replay-SqliteDBStorage-B0H2-Lz2.js} +1 -1
- package/dist/{replay-SqliteDBStorage-npzhoUbx.js → replay-SqliteDBStorage-DHHzPb7X.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-hBzFy5dq.js → replay-TauriFileSystemAdapter-COpUfLCW.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-BVKa-J8G.js → replay-TauriFileSystemAdapter-CkaGV5Gd.js} +1 -1
- package/dist/{replay-TauriRootStorage-C8nZhzW9.js → replay-TauriRootStorage-BkeH9lMX.js} +1 -1
- package/dist/{replay-TauriRootStorage-BSBhzg4_.js → replay-TauriRootStorage-CnE5o2PW.js} +3 -3
- package/dist/{replay-agent-loop-BClVMyB_.js → replay-agent-loop-D5KhxDSr.js} +3 -3
- package/dist/{replay-agent-loop-D0ooRyaR.js → replay-agent-loop-Z0kCw9Qe.js} +1 -1
- package/dist/{replay-ai-chat-mappers-DSJXgXDi.js → replay-ai-chat-mappers-C0-fByZi.js} +1 -1
- package/dist/{replay-ai-chat-mappers-BaS0SBBN.js → replay-ai-chat-mappers-DWTYtRox.js} +1 -1
- package/dist/{replay-create-model-dCrhNa4v.js → replay-create-model-Ct4zmmz0.js} +3 -3
- package/dist/{replay-create-model-B16cfxY1.js → replay-create-model-DF1ANReX.js} +3 -3
- package/dist/{replay-db-C0Ufsv6d.js → replay-db-DC9n1TUO.js} +1 -1
- package/dist/{replay-db-BcTQQjOZ.js → replay-db-z-hahA_U.js} +1 -1
- package/dist/{replay-external-resolver-BUSmyZ4o.js → replay-external-resolver-DKDcfTBb.js} +1 -1
- package/dist/{replay-external-resolver-lsrzcHGV.js → replay-external-resolver-zilF6Y7i.js} +2 -2
- package/dist/{replay-index-ClCfKhUI.js → replay-index-AdklFuB4.js} +5 -5
- package/dist/{replay-index-CaM9uKKg.js → replay-index-BG6d2dGi.js} +1 -1
- package/dist/{replay-index-CrWBueeN.js → replay-index-Bd9z2h9g.js} +1 -1
- package/dist/{replay-index-CS_msisY.js → replay-index-CJwhVhXZ.js} +1 -1
- package/dist/{replay-index-BykL_Zfq.js → replay-index-CbF5pwt2.js} +1 -1
- package/dist/{replay-index-BOCfRuh5.js → replay-index-D4p_CBhN.js} +1 -1
- package/dist/{replay-index-_vrprcIj.js → replay-index-DHAWtsCb.js} +1 -1
- package/dist/{replay-index-HnPW_cXS.js → replay-index-DVkfkNqt.js} +1144 -1138
- package/dist/{replay-index-NC0f8Qjs.js → replay-index-DXD-sXPY.js} +1 -1
- package/dist/replay-index-Snh4Z-N1.js +4 -0
- package/dist/{replay-index-0jSH5fMy.js → replay-index-hKq2X34E.js} +1 -1
- package/dist/{replay-index-C2w9vpTi.js → replay-index-lU_aszzK.js} +19922 -19672
- package/dist/{replay-lint-D8bDzG-0.js → replay-lint-BPlv1-Rm.js} +5 -4
- package/dist/{replay-lint-mRsw2YBg.js → replay-lint-BpueGyWj.js} +4 -4
- package/dist/{replay-lint-graphql-icJF6g0k.js → replay-lint-graphql-C0_JMlpO.js} +1 -1
- package/dist/{replay-lint-graphql-DTEuN3l4.js → replay-lint-graphql-pK-1R8VS.js} +2 -2
- package/dist/{replay-periodic-revalidation-Cnqp6anx.js → replay-periodic-revalidation-Bu_KusjB.js} +1 -1
- package/dist/{replay-periodic-revalidation-CvEqq27n.js → replay-periodic-revalidation-DIONsjKq.js} +1 -1
- package/dist/replay-promise-map-limit-DDfN3Ygo.js +1 -0
- package/dist/replay-promise-map-limit-DglaAlWc.js +18 -0
- package/dist/{replay-resolve-DiS3OBIs.js → replay-resolve-D5HsOgyB.js} +1 -1
- package/dist/{replay-resolve-DNzrSK76.js → replay-resolve-DDmWLwbh.js} +1 -1
- package/dist/{replay-respect-run-BJ_mc6pJ.js → replay-respect-run-ClSyJINq.js} +1 -1
- package/dist/{replay-respect-run-DVK6Dxvo.js → replay-respect-run-Dy7mWOei.js} +3 -3
- package/dist/{replay-tauri-path-BQXBIioc.js → replay-tauri-path-Dch_ayrN.js} +1 -1
- package/dist/{replay-tauri-path-AxOlEPjw.js → replay-tauri-path-rJ8_CtSa.js} +2 -2
- package/dist/{replay-useAiChatQueries-BPdWvgNH.js → replay-useAiChatQueries-CCBaQcYH.js} +4 -4
- package/dist/{replay-useAiChatQueries-CYKuFusQ.js → replay-useAiChatQueries-DMTs6IZT.js} +1 -1
- package/dist/{replay-validate-key-BP9xVq6g.js → replay-validate-key--x5qy2Rk.js} +2 -2
- package/dist/{replay-validate-key-BZyaia8o.js → replay-validate-key-DbIGv2l3.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +10 -1
- package/dist/replay.js +1 -1
- package/package.json +4 -4
- package/dist/replay-index-3nHwbL4Q.js +0 -4
- package/dist/replay-promise-map-limit-DRDkHc-b.js +0 -1
- package/dist/replay-promise-map-limit-Db_42GvV.js +0 -14
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const Y=require("./replay-index-HnPW_cXS.js"),j=require("./replay-resolve-DNzrSK76.js");var Tt=typeof document<"u"?document.currentScript:null;function Dt(e,t){let r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Dt(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n&&!Object.prototype.hasOwnProperty.call(t,r)||!(r in t)||!Dt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function hr(e){return Y.isPlainObject(e)&&Object.keys(e).length===0}function Fr(e){return Array.isArray(e)&&e.length>0}function it(e){return typeof e=="string"}function Hs(e){return e?Object.keys(e):[]}function fy(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ei={exports:{}},my=Ei.exports,ac;function hy(){return ac||(ac=1,(function(e,t){(function(r,n){typeof fy=="function"?e.exports=n():r.pluralize=n()})(my,function(){var r=[],n=[],i={},o={},s={};function c(x){return typeof x=="string"?new RegExp("^"+x+"$","i"):x}function p(x,P){return x===P?P:x===x.toLowerCase()?P.toLowerCase():x===x.toUpperCase()?P.toUpperCase():x[0]===x[0].toUpperCase()?P.charAt(0).toUpperCase()+P.substr(1).toLowerCase():P.toLowerCase()}function l(x,P){return x.replace(/\$(\d{1,2})/g,function(A,S){return P[S]||""})}function d(x,P){return x.replace(P[0],function(A,S){var v=l(P[1],arguments);return p(A===""?x[S-1]:A,v)})}function h(x,P,A){if(!x.length||i.hasOwnProperty(x))return P;for(var S=A.length;S--;){var v=A[S];if(v[0].test(P))return d(P,v)}return P}function y(x,P,A){return function(S){var v=S.toLowerCase();return P.hasOwnProperty(v)?p(S,v):x.hasOwnProperty(v)?p(S,x[v]):h(v,S,A)}}function g(x,P,A,S){return function(v){var O=v.toLowerCase();return P.hasOwnProperty(O)?!0:x.hasOwnProperty(O)?!1:h(O,O,A)===O}}function $(x,P,A){var S=P===1?$.singular(x):$.plural(x);return(A?P+" ":"")+S}return $.plural=y(s,o,r),$.isPlural=g(s,o,r),$.singular=y(o,s,n),$.isSingular=g(o,s,n),$.addPluralRule=function(x,P){r.push([c(x),P])},$.addSingularRule=function(x,P){n.push([c(x),P])},$.addUncountableRule=function(x){if(typeof x=="string"){i[x.toLowerCase()]=!0;return}$.addPluralRule(x,"$0"),$.addSingularRule(x,"$0")},$.addIrregularRule=function(x,P){P=P.toLowerCase(),x=x.toLowerCase(),s[x]=P,o[P]=x},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(x){return $.addIrregularRule(x[0],x[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(x){return $.addPluralRule(x[0],x[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(x){return $.addSingularRule(x[0],x[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach($.addUncountableRule),$})})(Ei)),Ei.exports}var yy=hy();const xu=Y.getDefaultExportFromCjs(yy);function gy(e,t,r){return e.split(" ").map(n=>xu(n,t,r)).join(" ")}function Ks(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function Lr(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}const by=/^[0-9][0-9Xx]{2}$/,vy={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},wy={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},xy={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},Sy={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Py={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},$y={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},Ay={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},Ey={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},Oy={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Ry={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},_y={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},Ty={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(e){return!e||!e.in?["name","in"]:e.in==="body"?["name","in","schema"]:e.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},ky={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return e&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},Iy={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>by.test(t)?"Response":void 0},qy={properties:{description:{type:"string"},schema:"Schema",headers:j.mapOf("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Cy={properties:{},additionalProperties:{isExample:!0}},jy={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return Y.isPlainObject(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},My={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Dy={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},Ny={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?j.listOf("Schema"):"Schema",allOf:j.listOf("Schema"),properties:"SchemaProperties",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},Ly={properties:{},additionalProperties:{type:"string"}},Uy={properties:{},additionalProperties:"Schema"},Fy={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},zy={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},By={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:"Scopes","x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(e){switch(e?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},Vy={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Hy={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},Su={Root:vy,Tag:My,TagList:j.listOf("Tag"),TagGroups:j.listOf("TagGroup"),TagGroup:Dy,ExternalDocs:_y,Example:Hy,ExamplesMap:j.mapOf("Example"),EnumDescriptions:Ly,SecurityRequirement:Vy,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:wy,Contact:Sy,License:Py,Logo:xy,Paths:$y,PathItem:Ay,Parameter:Ty,ParameterItems:ky,ParameterList:j.listOf("Parameter"),Operation:Ey,Examples:Cy,Header:jy,Responses:Iy,Response:qy,Schema:Ny,Xml:Fy,SchemaProperties:Uy,NamedSchemas:j.mapOf("Schema"),NamedResponses:j.mapOf("Response"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),SecurityScheme:By,Scopes:zy,XCodeSample:Oy,XCodeSampleList:j.listOf("XCodeSample"),XServerList:j.listOf("XServer"),XServer:Ry},Ky=/^[0-9][0-9Xx]{2}$/,Wy={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},Qy={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A description for the tag."},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-",description:"The Tag Object represents a tag used by the OAS. It is not mandatory to have a tag object per tag used by the OAS but each tag object can contain additional metadata."},Gy={properties:{name:{type:"string",description:"The display name for the tag, used in the navigation bar and as a section heading."},tags:{type:"array",description:"List of tags to include in this group.",items:{type:"string"}}},extensionsPrefix:"x-",description:"The x-tagGroups extension is used at the top level of an OpenAPI description.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-tag-groups#taggroup-object"},Yy={properties:{description:{type:"string",description:"A description of the target documentation. Used as the link anchor text in Redocly. If not provided, the url is used as the link anchor text."},url:{type:"string",description:"REQUIRED. The URL for the target documentation."}},required:["url"],extensionsPrefix:"x-",description:"Additional external documentation for this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/external-docs"},Jy={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenAPI document is being served. Variable substitutions are made when a variable is named in { curly braces }."},description:{type:"string",description:"An optional string describing the host designated by the URL."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"A server object to be used by the target operation."},Xy={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. If defined, the array MUST contain the default value."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object's treatment of default values, because in those cases parameter values are optional. If the enum is defined, the value MUST exist in the enum's values."},description:{type:"string",description:"An optional description for the server variable."}},required:["default"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/server-variables#server-variables",description:"Server variables are used when you need to make a substitution into the server URL such as when the subdomain is unique per tenant."},Zy={properties:{},additionalProperties:{type:"array",items:{type:"string"}},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/security#security-requirement-object",description:"A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. To make security optional, an empty security requirement ({}) can be included in the array."},eg={properties:{title:{type:"string",description:"REQUIRED. The title of the API."},version:{type:"string",description:"REQUIRED. The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version)."},description:{type:"string",description:"RECOMMENDED. A description of the API (Markdown may be used)."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API."},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/info#info"},tg={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},documentationLink:"https://redocly.com/docs-legacy/api-reference-docs/specification-extensions/x-logo#x-logo",description:"A commonly used specification extension containing the information about the API logo."},rg={properties:{name:{type:"string",description:"The identifying name of the contact person or organization."},url:{type:"string",description:"The URL pointing to the contact information."},email:{type:"string",description:"The email address of the contact person or organization."}},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/contact",description:"The contact information for the exposed API."},ng={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"The URL pointing to the contact information."}},required:["name"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/license#license",description:"The license information for the exposed API."},ig={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0,description:"The Paths Object is a map of a paths to the path item object. A path starts with a /.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/paths#paths-object"},og={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},sg={properties:{$ref:{type:"string",description:"Allows for a referenced definition of this path item. The referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/reference"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string",description:"An optional, string summary, intended to apply to all operations in this path."},description:{type:"string",description:"An optional, string description, intended to apply to all operations in this path."},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation","x-query":"Operation"},extensionsPrefix:"x-",description:"Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/path-item#path-item-object"},ag={properties:{name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},in:{enum:["query","header","path","cookie"],description:'REQUIRED. The location of the parameter. Possible values are "query", "header", "path", or "cookie".'},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use."},required:{type:"boolean",description:'Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.'},deprecated:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},allowEmptyValue:{type:"boolean",description:"Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is likely to be removed in a later revision."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how the parameter value will be serialized depending on the type of the parameter value. Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form."},explode:{type:"boolean",description:"When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding. This property only applies to parameters with an in value of query. The default value is false."},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-",description:"Describes a request parameter, which excludes the request body. A unique parameter is defined by a unique combination of the name and in values.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/parameter"},cg={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation"},pg={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}},documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-code-samples",description:"Code samples are snippets of code shown alongside API operations in reference documentation, giving users a quick way to start to interact with an API from their own code. The x-codeSamples addition to OpenAPI allows you to add or override any existing code samples for a particular language or endpoint."},lg={properties:{description:{type:"string",description:"A brief description of the request body. This could contain examples of use."},required:{type:"boolean",description:"Determines if the request body is required in the request. Defaults to false."},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/request-body",description:"The request body is defined inside of operations (including paths and webhooks). The request body can also be defined inside of the named requestBodies object in components."},ug={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},dg={properties:{schema:"Schema",example:{isExample:!0,description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema."},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-",description:"The Media Type Object is one of the important building blocks of OpenAPI.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type"},fg={properties:{value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary."},summary:{type:"string"},description:{type:"string",description:"Long description for the example."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/example"},mg={properties:{contentType:{type:"string",description:"The Content-Type for encoding a specific property. Default value depends on the property type: for string with format being binary – application/octet-stream; for other primitive types – text/plain; for object - application/json; for array – the default is defined based on the inner type. The value can be a specific media type (e.g. application/json), a wildcard media type (e.g. image/*), or a comma-separated list of the two types."},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how a specific property value will be serialized depending on its type. See Parameter Object for details on the style property. The behavior follows the same values as query parameters, including default values. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},explode:{type:"boolean",description:"When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] Section 2.2 :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."}},extensionsPrefix:"x-",description:"A single encoding definition applied to a single schema property.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/encoding#types"},hg={properties:{},additionalProperties:{type:"string"},description:'The enum (short for "enumeration") fields in OpenAPI allow you to restrict the value of a field to a list of allowed values. These values need to be short and machine-readable, but that can make them harder for humans to parse and work with.',documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-enum-descriptions"},yg={properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines whether this parameter is mandatory. Its default value is false."},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0,description:"Example of the header's potential value. The example SHOULD match the specified schema and encoding properties if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema that contains an example, the example value SHALL override the example provided by the schema. To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary."},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/header#header-object",description:"The header object is used to describe a response header in the headers map."},gg={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Ky.test(t)?"Response":void 0,description:"The list of possible responses as they are returned from executing this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/named-responses"},bg={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-summary#openapi-extension-x-summary",description:"Use x-summary to add a short custom text to describe the response in the API documentation."}},required:["description"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/response",description:"The response object describes a single response in the Responses Map."},vg={properties:{operationRef:{type:"string",description:"A relative or absolute reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI definition."},operationId:{type:"string",description:"The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field."},parameters:null,requestBody:null,description:{type:"string",description:"A description of the link."},server:"Server"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/links",description:"The Link object represents a possible design-time link for a response. The presence of a link does not guarantee the caller’s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations."},Ws="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",Pu=j.listOf("Schema",{name:"AllOf",description:Ws}),$u=j.listOf("Schema",{name:"AnyOf",description:Ws}),Au=j.listOf("Schema",{name:"OneOf",description:Ws}),wg={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string",description:"Value MUST be a string. Multiple types via an array are not supported."},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string",description:"(This string SHOULD be a valid regular expression, according to the Ecma-262 Edition 5.1 regular expression dialect)"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"],description:"Value MUST be a string. Multiple types via an array are not supported."},allOf:Pu,anyOf:$u,oneOf:Au,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?j.listOf("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string",description:"CommonMark syntax MAY be used for rich text representation."},format:{type:"string",description:"See Data Type Formats for further details. While relying on JSON Schema's defined formats, the OAS offers a few additional predefined formats."},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-",description:"The schema defining the content of the request, response, or parameter.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/schemas"},xg={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-",description:"This MAY be used only on properties schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property."},Sg={properties:{},additionalProperties:"Schema"},Pg={properties:{},additionalProperties:e=>typeof e=="string"&&j.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},$g={properties:{propertyName:{type:"string",description:"REQUIRED. The name of the property in the payload that will hold the discriminator value."},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#discriminator-object",description:"When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the document of an alternative schema based on the value associated with it."},Ag={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/components#components"},Eg={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Implicit flow."},Og={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Object Configuration for the OAuth Resource Owner Password flow."},Rg={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0."},_g={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":e=>typeof e=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0."},Tg={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},kg={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"],description:'REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "oauth2", "openIdConnect".'},description:{type:"string",description:"A short description for security scheme."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie"],description:'REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie".'},scheme:{type:"string",description:"A short description for security scheme."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"OAuth2Flows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL."},"x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},Ig={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}},description:"The x-usePkce allows you to enable Proof Key for Code Exchange (PKCE) for the Oauth2 or OpenID Connect authorization code flow in the Replay.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-use-pkce#openapi-extension-x-usepkce"},Pt={Root:Wy,Tag:Qy,TagList:j.listOf("Tag",{documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/tags",description:"A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique."}),TagGroups:j.listOf("TagGroup"),TagGroup:Gy,ExternalDocs:Yy,Server:Jy,ServerList:j.listOf("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:Xy,ServerVariablesMap:j.mapOf("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:Zy,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:eg,Contact:rg,License:ng,Paths:ig,PathItem:sg,Parameter:ag,ParameterList:j.listOf("Parameter",{description:"A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object’s components/parameters."}),Operation:cg,Callback:j.mapOf("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:j.mapOf("Callback"),RequestBody:lg,MediaTypesMap:ug,MediaType:dg,Example:fg,ExamplesMap:j.mapOf("Example"),Encoding:mg,EncodingMap:j.mapOf("Encoding"),EnumDescriptions:hg,Header:yg,HeadersMap:j.mapOf("Header"),Responses:gg,Response:bg,Link:vg,Logo:tg,Schema:wg,AllOf:Pu,AnyOf:$u,OneOf:Au,Xml:xg,SchemaProperties:Sg,DiscriminatorMapping:Pg,Discriminator:$g,Components:Ag,LinksMap:j.mapOf("Link"),NamedSchemas:j.mapOf("Schema"),NamedResponses:j.mapOf("Response"),NamedParameters:j.mapOf("Parameter"),NamedExamples:j.mapOf("Example"),NamedRequestBodies:j.mapOf("RequestBody"),NamedHeaders:j.mapOf("Header"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedLinks:j.mapOf("Link"),NamedCallbacks:j.mapOf("Callback"),ImplicitFlow:Eg,PasswordFlow:Og,ClientCredentials:Rg,AuthorizationCode:_g,OAuth2Flows:Tg,SecurityScheme:kg,XCodeSample:pg,XCodeSampleList:j.listOf("XCodeSample"),XUsePkce:Ig,WebhooksMap:og},qg={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string",description:"The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI."}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},Cg={...Pt.License,properties:{...Pt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},jg={...Pt.Info,properties:{...Pt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Mg={...Pt.Components,properties:{...Pt.Components.properties,pathItems:"NamedPathItems"}},Dg={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed."},Ng={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:j.listOf("Schema",{name:"AllOf"}),anyOf:j.listOf("Schema",{name:"AnyOf"}),oneOf:j.listOf("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:j.mapOf("Schema"),dependentRequired:"DependentRequired",prefixItems:j.listOf("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},cc={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Lg={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},Ug={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Fe={...Pt,Info:jg,Root:qg,Schema:Ng,SchemaProperties:cc,PatternProperties:cc,License:Cg,Components:Mg,NamedPathItems:j.mapOf("PathItem"),SecurityScheme:Lg,Operation:Dg,DependentRequired:Ug},Fg={...Fe.Root,properties:{...Fe.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1. Implementations MUST support identifying the targets of API description URIs using the URI defined by this field when it is present. See Establishing the Base URI for the base URI behavior when $self is absent or relative, and see Appendix F for examples of using $self to resolve references."}}},zg={...Fe.Tag,properties:{...Fe.Tag.properties,kind:{type:"string",description:"A machine-readable string to categorize what sort of tag it is. Any string value can be used; common uses are nav for Navigation, badge for visible badges, audience for APIs used by different groups. A registry of the most commonly used values is available."},parent:{type:"string",description:"The name of a tag that this tag is nested under. The named tag MUST exist in the API description, and circular references between parent and child tags MUST NOT be used."},summary:{type:"string",description:"A short summary of the tag, used for display purposes."}},description:"Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances."},Bg={...Fe.Server,properties:{...Fe.Server.properties,name:{type:"string",description:"An optional unique string to refer to the host designated by the URL."}},description:"An object representing a Server."},Vg={...Fe.SecurityScheme,properties:{...Fe.SecurityScheme.properties,deprecated:{type:"boolean",description:"Declares this security scheme to be deprecated. Consumers SHOULD refrain from usage of the declared scheme. Default value is false."},oauth2MetadataUrl:{type:"string",description:"URL to the OAuth2 authorization server metadata [RFC8414]. TLS is required."}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description","deprecated"];case"http":return["type","scheme","bearerFormat","description","deprecated"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"deviceAuthorization":return["type","flows","deviceAuthorizationUrl","tokenUrl"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"]}case"openIdConnect":return["type","openIdConnectUrl","description","deprecated"];case"mutualTLS":return["type","description","deprecated"];default:return["type","description","deprecated"]}},description:"Defines a security scheme that can be used by the operations."},Hg={...Fe.OAuth2Flows,properties:{...Fe.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Kg={properties:{deviceAuthorizationUrl:{type:"string",description:"REQUIRED. The device authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},tokenUrl:{type:"string",description:"REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},refreshUrl:{type:"string",description:"The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},scopes:j.mapOf("string",{description:"REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."})},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Device Authorization flow."},Wg={...Pt.PathItem,properties:{...Pt.PathItem.properties,query:"Operation",additionalOperations:j.mapOf("Operation")}},Qg={...Fe.Parameter,properties:{...Fe.Parameter.properties,in:{description:'REQUIRED. The location of the parameter. Possible values are "query", "querystring", "header", "path" or "cookie".',enum:["query","header","path","cookie","querystring"]}}},Gg={...Fe.Response,properties:{...Fe.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},Yg={...Fe.MediaType,properties:{...Fe.MediaType.properties,itemSchema:"Schema",prefixEncoding:j.listOf("Encoding",{description:"A map between a property name and its encoding information, as defined under Encoding By Name. The encoding field SHALL only apply when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. This field MUST NOT be present if prefixEncoding or itemEncoding are present."}),itemEncoding:"Encoding"}},Jg={...Fe.Discriminator,properties:{...Fe.Discriminator.properties,defaultMapping:e=>{const t="The schema name or URI reference to a schema that is expected to validate the structure of the model when the discriminating property is not present in the payload or contains a value for which there is no explicit or implicit mapping.";return j.isMappingRef(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},Xg={extensionsPrefix:"x-",properties:{...Fe.Components.properties,mediaTypes:"NamedMediaTypes"}},Zg={...Fe.Example,properties:{...Fe.Example.properties,dataValue:{resolvable:!1,description:"An example of the data structure that MUST be valid according to the relevant Schema Object. If this field is present, value MUST be absent."},serializedValue:{type:"string",description:"An example of the serialized form of the value, including encoding and escaping as described under Validating Examples. If dataValue is present, then this field SHOULD contain the serialization of the given data. Otherwise, it SHOULD be the valid serialization of a data value that itself MUST be valid as described for dataValue. This field SHOULD NOT be used if the serialization format is JSON, as the data form is easier to work with. If this field is present, value, and externalValue MUST be absent."}}},eb={properties:{nodeType:{type:"string",enum:["element","attribute","text","cdata","none"],description:'One of element, attribute, text, cdata, or none, as explained under XML Node Types. The default value is none if $ref, $dynamicRef, or type: "array" is present in the Schema Object containing the XML Object, and element otherwise.'},name:{type:"string",description:"Sets the name of the element/attribute corresponding to the schema, replacing the name that was inferred as described under XML Node Names. This field SHALL be ignored if the nodeType is text, cdata, or none."},namespace:{type:"string",description:"The IRI ([RFC3987]) of the namespace definition. Value MUST be in the form of a non-relative IRI."},prefix:{type:"string",description:"The prefix to be used for the name."},attribute:{type:"boolean",description:'Declares whether the property definition translates to an attribute instead of an element. Default value is false. If nodeType is present, this field MUST NOT be present.Deprecated: Use nodeType: "attribute" instead of attribute: true.'},wrapped:{type:"boolean",description:'MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). If nodeType is present, this field MUST NOT be present. Deprecated: Use nodeType: "element" instead of wrapped: true.'}},extensionsPrefix:"x-",description:"A metadata object that allows for more fine-tuned XML model definitions. When using a Schema Object with XML, if no XML Object is present, the behavior is determined by the XML Object’s default field values."},tb={...Fe.Schema,properties:{...Fe.Schema.properties,xml:"Xml"}},nt={...Fe,Root:Fg,Tag:zg,Server:Bg,SecurityScheme:Vg,OAuth2Flows:Hg,DeviceAuthorization:Kg,PathItem:Wg,Parameter:Qg,Response:Gg,MediaType:Yg,Discriminator:Jg,Example:Zg,Xml:eb,Schema:tb,Components:Xg,NamedMediaTypes:j.mapOf("MediaTypesMap")},rb={properties:{},description:"Protocol-specific information for an HTTP channel."},nb={properties:{},description:"Protocol-specific information for an HTTP server."},ib={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},ob={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP operation."},sb={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},ab={properties:{},description:"Protocol-specific information for a WebSockets server."},cb={properties:{},description:"Protocol-specific information for a WebSockets message."},pb={properties:{},description:"Protocol-specific information for a WebSockets operation."},lb={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"},"confluent.key.schema.validation":{type:"boolean"},"confluent.key.subject.name.strategy":{type:"string"},"confluent.value.schema.validation":{type:"boolean"},"confluent.value.subject.name.strategy":{type:"string"}}},ub={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},db={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},fb={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},mb={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},hb={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},yb={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},gb={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},bb={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},vb={properties:{name:{type:"string"},type:{type:"string",enum:["topic","direct","fanout","default","headers"]},durable:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP exchange the channel is bound to."},wb={properties:{name:{type:"string"},durable:{type:"boolean"},exclusive:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP queue the channel is bound to."},xb={properties:{is:{type:"string",enum:["queue","routingKey"]},exchange:"AmqpChannelExchange",queue:"AmqpChannelQueue",bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 channel."},Sb={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},Pb={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},$b={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 operation."},Ab={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},Eb={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},Ob={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},Rb={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},_b={properties:{},description:"Protocol-specific information for an MQTT channel."},Tb={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},kb={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},maximumPacketSize:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},Ib={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>Y.isPlainObject(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},qb={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},Cb={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},jb={properties:{sessionExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},Mb={properties:{},description:"Protocol-specific information for an MQTT 5 message."},Db={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},Nb={properties:{},description:"Protocol-specific information for a NATS channel."},Lb={properties:{},description:"Protocol-specific information for a NATS server."},Ub={properties:{},description:"Protocol-specific information for a NATS message."},Fb={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},zb={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},Bb={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},Vb={properties:{jmsConnectionFactory:{type:"string"},properties:j.listOf("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Hb={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Kb={properties:{},description:"Protocol-specific information for a JMS operation."},Wb={properties:{},description:"Protocol-specific information for a Solace channel."},Qb={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Gb={properties:{},description:"Protocol-specific information for a Solace message."},Yb={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxMsgSpoolUsage":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},Jb={properties:{bindingVersion:{type:"string"},destinations:j.listOf("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},Xb={properties:{url:{type:"string"},email:{type:"string"},phone:{type:"string"},arn:{type:"string"},name:{type:"string"}},description:"Identifies an SNS resource: exactly one of url, email, phone, arn, or name."},Zb={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},ev={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},tv={properties:{statements:j.listOf("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},rv={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},nv={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},iv={properties:{minDelayTarget:{type:"integer"},maxDelayTarget:{type:"integer"},numRetries:{type:"integer"},numNoDelayRetries:{type:"integer"},numMinDelayRetries:{type:"integer"},numMaxDelayRetries:{type:"integer"},backoffFunction:{type:"string",enum:["arithmetic","exponential","geometric","linear"]},maxReceivesPerSecond:{type:"integer"}},description:"Defines how SNS retries the delivery of messages to a subscription endpoint."},ov={properties:{protocol:{type:"string",enum:["http","https","email","email-json","sms","sqs","application","lambda","firehose"]},endpoint:"SnsIdentifier",filterPolicy:{type:"object"},filterPolicyScope:{type:"string",enum:["MessageAttributes","MessageBody"]},rawMessageDelivery:{type:"boolean"},redrivePolicy:"SnsRedrivePolicy",deliveryPolicy:"SnsDeliveryPolicy",displayName:{type:"string"}},required:["protocol","endpoint","rawMessageDelivery"],description:"Describes an SNS subscription consuming messages from a topic."},sv={properties:{topic:"SnsIdentifier",consumers:j.listOf("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},av={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},cv={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},pv={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},lv={properties:{statements:j.listOf("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},Eu={properties:{name:{type:"string"},fifoQueue:{type:"boolean"},deduplicationScope:{type:"string",enum:["queue","messageGroup"]},fifoThroughputLimit:{type:"string",enum:["perQueue","perMessageGroupId"]},deliveryDelay:{type:"integer"},visibilityTimeout:{type:"integer"},receiveMessageWaitTime:{type:"integer"},messageRetentionPeriod:{type:"integer"},redrivePolicy:"SqsRedrivePolicy",policy:"SqsPolicy",tags:{type:"object"}},required:["name","fifoQueue"],description:"Describes an SQS queue (channel-level definition)."},uv={...Eu,required:["name"],description:"Describes an SQS queue (operation-level definition)."},dv={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},fv={properties:{queues:j.listOf("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},mv={properties:{},description:"Protocol-specific information for a STOMP channel."},hv={properties:{},description:"Protocol-specific information for a STOMP server."},yv={properties:{},description:"Protocol-specific information for a STOMP message."},gv={properties:{},description:"Protocol-specific information for a STOMP operation."},bv={properties:{},description:"Protocol-specific information for a Redis channel."},vv={properties:{},description:"Protocol-specific information for a Redis server."},wv={properties:{},description:"Protocol-specific information for a Redis message."},xv={properties:{},description:"Protocol-specific information for a Redis operation."},Sv={properties:{},description:"Protocol-specific information for a Mercure channel."},Pv={properties:{},description:"Protocol-specific information for a Mercure server."},$v={properties:{},description:"Protocol-specific information for a Mercure message."},Av={properties:{},description:"Protocol-specific information for a Mercure operation."},Ev={properties:{groupId:{type:"string"},ccdtQueueManagerName:{type:"string"},cipherSpec:{type:"string"},multiEndpointServer:{type:"boolean"},heartBeatInterval:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ server."},Ov={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},Rv={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},_v={properties:{destinationType:{type:"string",enum:["topic","queue"]},queue:"IbmmqChannelQueue",topic:"IbmmqChannelTopic",maxMsgLength:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ channel."},Tv={properties:{type:{type:"string",enum:["string","jms","binary"]},headers:{type:"string"},description:{type:"string"},expiry:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ message."},kv={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},Iv={properties:{encoding:{type:"string"},firstRevisionId:{type:"string"},lastRevisionId:{type:"string"},name:{type:"string"}},required:["encoding","name"],description:"Settings for validating Google Cloud Pub/Sub messages against a schema."},qv={properties:{labels:{type:"object"},messageRetentionDuration:{type:"string"},messageStoragePolicy:"GooglepubsubMessageStoragePolicy",schemaSettings:"GooglepubsubSchemaSettings",topic:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub channel."},Cv={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},jv={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},Mv={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},Dv={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},Nv={properties:{namespace:{type:"string"},persistence:{type:"string",enum:["persistent","non-persistent"]},compaction:{type:"integer"},"geo-replication":{type:"array",items:{type:"string"}},retention:"PulsarRetention",ttl:{type:"integer"},deduplication:{type:"boolean"},bindingVersion:{type:"string"}},required:["namespace","persistence"],description:"Protocol-specific information for a Pulsar channel."},Lv={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},Uv={properties:{},description:"Protocol-specific information for a ROS 2 channel."},Fv={properties:{reliability:{type:"string",enum:["best_effort","reliable"]},history:{type:"string",enum:["keep_last","keep_all","unknown"]},durability:{type:"string",enum:["transient_local","volatile"]},lifespan:{type:"integer"},deadline:{type:"integer"},liveliness:{type:"string",enum:["automatic","manual"]},leaseDuration:{type:"integer"}},description:"Quality of Service settings for a ROS 2 operation."},zv={properties:{role:{type:"string",enum:["publisher","subscriber","service_client","service_server","action_client","action_server"]},node:{type:"string"},qosPolicies:"Ros2QosPolicies",bindingVersion:{type:"string"}},description:"Protocol-specific information for a ROS 2 operation."},Bv={properties:{},description:"Protocol-specific information for a ROS 2 message."},Vv={extensionsPrefix:"x-",properties:{http:"HttpServerBinding",ws:"WsServerBinding",kafka:"KafkaServerBinding",anypointmq:"AnypointmqServerBinding",amqp:"AmqpServerBinding",amqp1:"Amqp1ServerBinding",mqtt:"MqttServerBinding",mqtt5:"Mqtt5ServerBinding",nats:"NatsServerBinding",jms:"JmsServerBinding",solace:"SolaceServerBinding",stomp:"StompServerBinding",redis:"RedisServerBinding",mercure:"MercureServerBinding",ibmmq:"IbmmqServerBinding",pulsar:"PulsarServerBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a server."},Hv={extensionsPrefix:"x-",properties:{http:"HttpChannelBinding",ws:"WsChannelBinding",kafka:"KafkaChannelBinding",anypointmq:"AnypointmqChannelBinding",amqp:"AmqpChannelBinding",amqp1:"Amqp1ChannelBinding",mqtt:"MqttChannelBinding",mqtt5:"Mqtt5ChannelBinding",nats:"NatsChannelBinding",jms:"JmsChannelBinding",solace:"SolaceChannelBinding",stomp:"StompChannelBinding",redis:"RedisChannelBinding",mercure:"MercureChannelBinding",sns:"SnsChannelBinding",sqs:"SqsChannelBinding",ibmmq:"IbmmqChannelBinding",googlepubsub:"GooglepubsubChannelBinding",pulsar:"PulsarChannelBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a channel."},Kv={extensionsPrefix:"x-",properties:{http:"HttpOperationBinding",ws:"WsOperationBinding",kafka:"KafkaOperationBinding",anypointmq:"AnypointmqOperationBinding",amqp:"AmqpOperationBinding",amqp1:"Amqp1OperationBinding",mqtt:"MqttOperationBinding",mqtt5:"Mqtt5OperationBinding",nats:"NatsOperationBinding",jms:"JmsOperationBinding",solace:"SolaceOperationBinding",stomp:"StompOperationBinding",redis:"RedisOperationBinding",mercure:"MercureOperationBinding",sns:"SnsOperationBinding",sqs:"SqsOperationBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for an operation."},Wv={extensionsPrefix:"x-",properties:{http:"HttpMessageBinding",ws:"WsMessageBinding",kafka:"KafkaMessageBinding",anypointmq:"AnypointmqMessageBinding",amqp:"AmqpMessageBinding",amqp1:"Amqp1MessageBinding",mqtt:"MqttMessageBinding",mqtt5:"Mqtt5MessageBinding",nats:"NatsMessageBinding",jms:"JmsMessageBinding",solace:"SolaceMessageBinding",stomp:"StompMessageBinding",redis:"RedisMessageBinding",mercure:"MercureMessageBinding",ibmmq:"IbmmqMessageBinding",googlepubsub:"GooglepubsubMessageBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a message."},Ot={HttpServerBinding:nb,HttpChannelBinding:rb,HttpMessageBinding:ib,HttpOperationBinding:ob,WsServerBinding:ab,WsChannelBinding:sb,WsMessageBinding:cb,WsOperationBinding:pb,KafkaServerBinding:db,KafkaTopicConfiguration:lb,KafkaChannelBinding:ub,KafkaMessageBinding:fb,KafkaOperationBinding:mb,AnypointmqServerBinding:yb,AnypointmqChannelBinding:hb,AnypointmqMessageBinding:gb,AnypointmqOperationBinding:bb,AmqpServerBinding:Sb,AmqpChannelExchange:vb,AmqpChannelQueue:wb,AmqpChannelBinding:xb,AmqpMessageBinding:Pb,AmqpOperationBinding:$b,Amqp1ServerBinding:Eb,Amqp1ChannelBinding:Ab,Amqp1MessageBinding:Ob,Amqp1OperationBinding:Rb,MqttServerBindingLastWill:Tb,MqttServerBinding:kb,MqttChannelBinding:_b,MqttMessageBinding:Ib,MqttOperationBinding:qb,Mqtt5ServerBinding:jb,Mqtt5ChannelBinding:Cb,Mqtt5MessageBinding:Mb,Mqtt5OperationBinding:Db,NatsServerBinding:Lb,NatsChannelBinding:Nb,NatsMessageBinding:Ub,NatsOperationBinding:Fb,JmsServerBindingProperty:Bb,JmsServerBinding:Vb,JmsChannelBinding:zb,JmsMessageBinding:Hb,JmsOperationBinding:Kb,SolaceServerBinding:Qb,SolaceChannelBinding:Wb,SolaceMessageBinding:Gb,SolaceDestination:Yb,SolaceOperationBinding:Jb,StompServerBinding:hv,StompChannelBinding:mv,StompMessageBinding:yv,StompOperationBinding:gv,RedisServerBinding:vv,RedisChannelBinding:bv,RedisMessageBinding:wv,RedisOperationBinding:xv,MercureServerBinding:Pv,MercureChannelBinding:Sv,MercureMessageBinding:$v,MercureOperationBinding:Av,SnsIdentifier:Xb,SnsOrdering:Zb,SnsStatement:ev,SnsPolicy:tv,SnsChannelBinding:rv,SnsRedrivePolicy:nv,SnsDeliveryPolicy:iv,SnsConsumer:ov,SnsOperationBinding:sv,SqsIdentifier:av,SqsRedrivePolicy:cv,SqsStatement:pv,SqsPolicy:lv,SqsQueue:Eu,SqsOperationQueue:uv,SqsChannelBinding:dv,SqsOperationBinding:fv,IbmmqServerBinding:Ev,IbmmqChannelQueue:Ov,IbmmqChannelTopic:Rv,IbmmqChannelBinding:_v,IbmmqMessageBinding:Tv,GooglepubsubMessageStoragePolicy:kv,GooglepubsubSchemaSettings:Iv,GooglepubsubChannelBinding:qv,GooglepubsubSchema:Cv,GooglepubsubMessageBinding:jv,PulsarServerBinding:Mv,PulsarRetention:Dv,PulsarChannelBinding:Nv,ServerBindings:Vv,ChannelBindings:Hv,MessageBindings:Wv,OperationBindings:Kv},Qv={Ros2ServerBinding:Lv,Ros2ChannelBinding:Uv,Ros2OperationBinding:zv,Ros2QosPolicies:Fv,Ros2MessageBinding:Bv},Qs={extensionsPrefix:"x-",properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:j.listOf("Schema"),anyOf:j.listOf("Schema"),oneOf:j.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?j.listOf("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},Gs={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Ys={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},Js={properties:{},additionalProperties:e=>typeof e=="string"&&j.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Xs={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Gv={extensionsPrefix:"x-",properties:{asyncapi:null,info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},Yv={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description of this channel item. CommonMark syntax can be used for rich text representation."},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"},description:"The servers on which this channel is available, specified as an optional unordered list of names (string keys) of Server Objects defined in the Servers Object (a map)."}},description:"Describes the operations available on a single channel."},Jv={properties:{},additionalProperties:"Channel"},Ou={extensionsPrefix:"x-",properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A short description for the tag. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],description:"Allows adding meta data to a single tag."},Ru={extensionsPrefix:"x-",properties:{description:{type:"string",description:"A short description of the target documentation. CommonMark syntax can be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL."}},required:["url"],description:"Allows referencing an external resource for extended documentation."},Xv={properties:{},additionalProperties:{type:"array",items:{type:"string"}},description:"Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object."},Zv={extensionsPrefix:"x-",properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the AsyncAPI document is being served. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this URL supports for connection. Supported protocol include, but are not limited to: amqp, amqps, http, https, ibmmq, jms, kafka, kafka-secure, anypointmq, mqtt, secure-mqtt, solace, stomp, stomps, ws, wss, mercure, googlepubsub, pulsar."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},_u={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},Tu={extensionsPrefix:"x-",properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},description:{type:"string",description:"An optional description for the server variable. CommonMark syntax MAY be used for rich text representation."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the server variable."}},required:[],description:"An object representing a Server Variable for server URL template substitution."},e0={extensionsPrefix:"x-",properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},ku={extensionsPrefix:"x-",properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. This MUST be in the form of an absolute URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},description:"Contact information for the exposed API."},Iu={extensionsPrefix:"x-",properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. This MUST be in the form of an absolute URL."}},required:["name"],description:"License information for the exposed API."},t0={extensionsPrefix:"x-",properties:{description:{type:"string",description:"A verbose explanation of the parameter. CommonMark syntax can be used for rich text representation."},schema:"Schema",location:{type:"string",description:"A runtime expression that specifies the location of the parameter value. Even when a definition for the target field exists, it MUST NOT be used to validate this parameter but, instead, the schema property MUST be used."}},description:"Describes a parameter included in a channel name."},qu={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description of the identifier. CommonMark syntax can be used for rich text representation."},location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the correlation ID."}},required:["location"],description:"An object that specifies an identifier at design time that can used for message tracing and correlation."},r0={extensionsPrefix:"x-",properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format used to define the message payload. If omitted, implementations should parse the payload as a Schema object. When the payload is defined using a $ref to a remote file, it is RECOMMENDED the schema format includes the file encoding type to allow implementations to parse the file correctly."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{},description:"Describes a message received on a given channel and operation."},n0={extensionsPrefix:"x-",properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except message and traits."},i0={extensionsPrefix:"x-",properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format/language used to define the message payload. If omitted, implementations should parse the payload as a Schema object."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},o0={extensionsPrefix:"x-",properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[],description:"Describes a publish or a subscribe operation. This provides a place to document how and why messages are sent and received."},Cu={extensionsPrefix:"x-",properties:{payload:{isExample:!0,description:"The value of this field MUST validate against the Message Object's payload field."},summary:{type:"string",description:"A short summary of what the example is about."},name:{type:"string",description:"A machine-friendly name."},headers:{type:"object",description:"The value of this field MUST validate against the Message Object's headers field."}},description:"Message Example Object represents an example of a Message Object and MUST contain either headers and/or payload fields."},s0={extensionsPrefix:"x-",properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},a0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],description:"Configuration for the OAuth Implicit flow."},c0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Password flow."},p0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Client Credentials flow."},l0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"],description:"Configuration for the OAuth Authorization Code flow."},ju={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},u0={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."}},required(e){switch(e?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-",description:"Defines a security scheme that can be used by the operations."},Mu={...Ot,Root:Gv,Tag:Ou,TagList:j.listOf("Tag"),ServerMap:_u,ExternalDocs:Ru,Server:Zv,ServerVariable:Tu,ServerVariablesMap:j.mapOf("ServerVariable"),SecurityRequirement:Xv,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:e0,Contact:ku,License:Iu,ChannelMap:Jv,Channel:Yv,Parameter:t0,ParametersMap:j.mapOf("Parameter"),Operation:o0,Schema:Qs,MessageExample:Cu,SchemaProperties:Gs,DiscriminatorMapping:Js,Discriminator:Xs,Components:s0,NamedSchemas:j.mapOf("Schema"),NamedMessages:j.mapOf("Message"),NamedMessageTraits:j.mapOf("MessageTrait"),NamedOperationTraits:j.mapOf("OperationTrait"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedCorrelationIds:j.mapOf("CorrelationId"),ImplicitFlow:a0,PasswordFlow:c0,ClientCredentials:p0,AuthorizationCode:l0,SecuritySchemeFlows:ju,SecurityScheme:u0,Message:r0,OperationTrait:n0,OperationTraitList:j.listOf("OperationTrait"),MessageTrait:i0,MessageTraitList:j.listOf("MessageTrait"),MessageExampleList:j.listOf("MessageExample"),CorrelationId:qu,Dependencies:Ys},d0={extensionsPrefix:"x-",properties:{asyncapi:{type:"string",description:"REQUIRED. Specifies the AsyncAPI Specification version being used. It can be used by tooling Specifications and clients to interpret the version. The structure shall be major.minor.patch, where patch versions must be compatible with the existing major.minor tooling. Typically patch versions will be introduced to address errors in the documentation, and tooling should typically be compatible with the corresponding major.minor (1.0.*). Patch versions will correspond to patches of this document."},info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string",description:"Default content type to use when encoding/decoding a message's payload."}},required:["asyncapi","info"],description:"This is the root document object for the API specification. It combines resource listing and API declaration together into one document."},f0={extensionsPrefix:"x-",properties:{address:{type:"string",description:`An optional string representation of this channel's address. The address is typically the "topic name", "routing key", "event type", or "path". When null or absent, it MUST be interpreted as unknown. This is useful when the address is generated dynamically at runtime or can't be known upfront. It MAY contain Channel Address Expressions. Query parameters and fragments SHALL NOT be used, instead use bindings to define them.`},messages:"NamedMessages",title:{type:"string",description:"A human-friendly title for the channel."},summary:{type:"string",description:"A short summary of the channel."},description:{type:"string",description:"An optional description of this channel. CommonMark syntax can be used for rich text representation."},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"},description:"Describes a shared communication channel."},m0={extensionsPrefix:"x-",properties:{host:{type:"string",description:"REQUIRED. The server host name. It MAY include the port. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},pathname:{type:"string",description:"The path to a resource in the host. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this server supports for connection."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the server. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},h0={extensionsPrefix:"x-",properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},y0={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description for the parameter. CommonMark syntax MAY be used for rich text representation."},enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the parameter value."},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value."}},description:"Describes a parameter included in a channel address."},g0={extensionsPrefix:"x-",properties:{headers:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},description:"Describes a message received on a given channel and operation."},b0={extensionsPrefix:"x-",properties:{tags:"TagList",title:{type:"string",description:"A human-friendly title for the operation."},summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except the action, channel, messages and traits ones."},v0={extensionsPrefix:"x-",properties:{headers:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},w0={extensionsPrefix:"x-",properties:{action:{type:"string",enum:["send","receive"],description:"Required. Use send when it's expected that the application will send a message to the given channel, and receive when the application should expect receiving messages from the given channel."},channel:"Channel",title:{type:"string",description:"A human-friendly title for the operation."},tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},x0={extensionsPrefix:"x-",properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"},description:"Describes the reply part that MAY be applied to an Operation Object. If an operation implements the request/reply pattern, the reply object represents the response message."},S0={extensionsPrefix:"x-",properties:{location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the reply address."},description:{type:"string",description:"An optional description of the address. CommonMark syntax can be used for rich text representation."}},required:["location"],description:"An object that specifies where an operation has to send the reply."},P0={extensionsPrefix:"x-",properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"},description:"Holds a set of reusable objects for different aspects of the AsyncAPI specification. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},$0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"],description:"Configuration for the OAuth Implicit flow."},A0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Resource Owner Protected Credentials flow."},E0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Client Credentials flow."},O0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"],description:"Configuration for the OAuth Authorization Code flow."},R0={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"],description:'REQUIRED. The type of the security scheme. Valid values are "userPassword", "apiKey", "X509", "symmetricEncryption", "asymmetricEncryption", "httpApiKey", "http", "oauth2", "openIdConnect", "plain", "scramSha256", "scramSha512", and "gssapi".'},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."},scopes:{type:"array",items:{type:"string"},description:"List of the needed scope names. An empty array means no scopes are needed."}},required(e){switch(e?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-",description:"Defines a security scheme that can be used by the operations."},_0={...Ot.ServerBindings,properties:{...Ot.ServerBindings.properties,ros2:"Ros2ServerBinding"}},T0={...Ot.ChannelBindings,properties:{...Ot.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},k0={...Ot.OperationBindings,properties:{...Ot.OperationBindings.properties,ros2:"Ros2OperationBinding"}},I0={...Ot.MessageBindings,properties:{...Ot.MessageBindings.properties,ros2:"Ros2MessageBinding"}},q0={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},C0={properties:{},additionalProperties:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema"},Du={...Ot,...Qv,ServerBindings:_0,ChannelBindings:T0,OperationBindings:k0,MessageBindings:I0,CorrelationId:qu,SecuritySchemeFlows:ju,ServerVariable:Tu,Contact:ku,License:Iu,MessageExample:Cu,Tag:Ou,Dependencies:Ys,Schema:Qs,MultiFormatSchema:q0,Discriminator:Xs,DiscriminatorMapping:Js,SchemaProperties:Gs,ServerMap:_u,ExternalDocs:Ru,Root:d0,Channel:f0,Parameter:y0,Info:h0,Server:m0,MessageTrait:v0,Operation:w0,OperationReply:x0,OperationReplyAddress:S0,Components:P0,ImplicitFlow:$0,PasswordFlow:A0,ClientCredentials:E0,AuthorizationCode:O0,SecurityScheme:R0,Message:g0,OperationTrait:b0,ServerVariablesMap:j.mapOf("ServerVariable"),NamedTags:j.mapOf("Tag"),NamedExternalDocs:j.mapOf("ExternalDocs"),NamedChannels:j.mapOf("Channel"),ParametersMap:j.mapOf("Parameter"),NamedOperations:j.mapOf("Operation"),NamedOperationReplies:j.mapOf("OperationReply"),NamedOperationRelyAddresses:j.mapOf("OperationReplyAddress"),NamedSchemas:C0,NamedMessages:j.mapOf("Message"),NamedMessageTraits:j.mapOf("MessageTrait"),NamedOperationTraits:j.mapOf("OperationTrait"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedCorrelationIds:j.mapOf("CorrelationId"),ServerList:j.listOf("Server"),SecuritySchemeList:j.listOf("SecurityScheme"),MessageList:j.listOf("Message"),OperationTraitList:j.listOf("OperationTrait"),MessageTraitList:j.listOf("MessageTrait"),MessageExampleList:j.listOf("MessageExample"),TagList:j.listOf("Tag")},j0={properties:{arazzo:{type:"string",description:"REQUIRED. This string MUST be the version number of the Arazzo Specification that the Arazzo Description uses. The arazzo field MUST be used by tooling to interpret the Arazzo Description."},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},M0={properties:{},additionalProperties:"Parameter"},D0={properties:{},additionalProperties:"SuccessActionObject"},N0={properties:{},additionalProperties:"FailureActionObject"},L0={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},U0=j.mapOf("Schema"),F0={properties:{title:{type:"string",description:"REQUIRED. A human readable title of the Arazzo Description."},description:{type:"string",description:"A description of the purpose of the workflows defined. CommonMark syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of the Arazzo Description."},version:{type:"string",description:"REQUIRED. The version identifier of the Arazzo document (which is distinct from the Arazzo Specification version)."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about API workflows defined in this Arazzo document. The metadata MAY be used by the clients if needed."},z0={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},B0={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["openapi"],description:'The type of source description. Possible values are "openapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},V0={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["arazzo"],description:'The type of source description. Possible values are "arazzo".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},H0={properties:{reference:{type:"string",description:"REQUIRED. A Runtime Expression used to reference the desired object."},value:{}},required:["reference"],extensionsPrefix:"x-",description:"A simple object to allow referencing of objects contained within the Components Object. It can be used from locations within steps or workflows in the Arazzo Description. Note - Input Objects MUST use standard JSON Schema referencing via the $ref keyword while all non JSON Schema objects use this object and its expression based referencing mechanism."},K0={properties:{in:{type:"string",enum:["header","query","path","cookie"],description:'The location of the parameter. Possible values are "path", "query", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'},name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},value:{}},required:["name","value"],extensionsPrefix:"x-",description:"Describes a single step parameter. A unique parameter is defined by the combination of a name and in fields."},W0={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},Q0={properties:{workflowId:{type:"string",description:"REQUIRED. The unique identifier of the workflow."},summary:{type:"string",description:"A short summary of what the workflow does."},description:{type:"string",description:"A verbose explanation of the workflow behavior. CommonMark syntax MAY be used for rich text representation."},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"},description:"A list of workflows that MUST be completed before this workflow can be processed. Each value provided MUST be a workflowId."},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-",description:"Describes the steps to be taken across one or more APIs to achieve an objective. The workflow object MAY define inputs needed in order to execute workflow steps, where the defined steps represent a call to an API operation or another workflow, and a set of outputs."},G0=j.listOf("Workflow"),Y0=j.listOf("Step"),J0={properties:{stepId:{type:"string",description:"REQUIRED. Unique string to represent the step. The stepId MUST be unique amongst all steps described in the workflow. The stepId value is case-sensitive. Tools and libraries MAY use the stepId to uniquely identify a workflow step, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},description:{type:"string",description:"A description of the step. CommonMark syntax MAY be used for rich text representation."},operationId:{type:"string",description:"The name of an existing, resolvable operation, as defined with a unique operationId and existing within one of the sourceDescriptions. The referenced operation will be invoked by this workflow step. If multiple (non arazzo type) sourceDescriptions are defined, then the operationId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<operationId>) to avoid ambiguity or potential clashes. This field is mutually exclusive of the operationPath and workflowId fields respectively."},operationPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an operation. This field is mutually exclusive of the operationId and workflowId fields respectively. The operation being referenced MUST be described within one of the sourceDescriptions descriptions. A Runtime Expression syntax MUST be used to identify the source description document. If the referenced operation has an operationId defined then the operationId SHOULD be preferred over the operationPath."},workflowId:{type:"string",description:"The workflowId referencing an existing workflow within the Arazzo Description. If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. The field is mutually exclusive of the operationId and operationPath fields respectively."},parameters:"Parameters",successCriteria:j.listOf("CriterionObject",{description:"A list of assertions to determine the success of the step. Each assertion is described using a Criterion Object. All assertions MUST be satisfied for the step to be deemed successful."}),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-",description:"Describes a single workflow step which MAY be a call to an API operation (OpenAPI Operation Object) or another Workflow Object."},X0={properties:{},additionalProperties:{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},Z0={properties:{contentType:{type:"string",description:"The Content-Type for the request content. If omitted then refer to Content-Type specified at the targeted operation to understand serialization requirements."},payload:{},replacements:j.listOf("Replacement",{description:"A list of locations and values to set within a payload."})},required:["payload"],extensionsPrefix:"x-",description:"A single request body describing the Content-Type and request body content to be passed by a step to an operation."},ew={properties:{target:{type:"string",description:"REQUIRED. A JSON Pointer or XPath Expression which MUST be resolved against the request body. Used to identify the location to inject the value."},value:{}},required:["target","value"],extensionsPrefix:"x-",description:"Describes a location within a payload (e.g., a request body) and a value to set within the location."},tw={properties:{schemeName:{type:"string",description:"REQUIRED. Name of the security scheme from your OpenAPI specification. Use with operationId or operationPath at the step level."},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"],description:"Use the x-security extension to define authorization flows based on OpenAPI security schemes. Respect automatically constructs appropriate authorization headers, queries, or cookies based on your parameters."},rw={properties:{url:{type:"string",description:"REQUIRED. A valid url including the protocol (such as http://localhost:4000/my-api or https://example.com/api/my-api)."},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"],description:"REQUIRED. HTTP operation method. Possible values: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, TRACE. You can also use their lowercase equivalents."}},required:["url","method"],description:"x-operation enables you to specify a URL and HTTP method for an operation that is not described in the Arazzo sourceDescriptions section. The primary application of the x-operation extension is to facilitate calls to third-party APIs or other endpoints that are needed in a sequence of API calls."},nw={properties:{condition:{type:"string",description:"REQUIRED. The condition to apply. Conditions can be simple (e.g. $statusCode == 200 which applies an operator on a value obtained from a runtime expression), or a regex, or a JSONPath expression. For regex or JSONPath, the type and context MUST be specified."},context:{type:"string",description:"A Runtime Expression used to set the context for the condition to be applied on. If type is specified, then the context MUST be provided (e.g. $response.body would set the context that a JSONPath query expression could be applied to)."},type:e=>{if(e)return typeof e=="string"?{enum:["regex","jsonpath","simple","xpath"],description:"The type of condition to be applied."}:e?.type==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"],description:"An object used to specify the context, conditions, and condition types that can be used to prove or satisfy assertions specified in Step Object successCriteria, Success Action Object criteria, and Failure Action Object criteria."},iw={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},ow={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},sw={properties:{name:{type:"string",description:"REQUIRED. The name of the success action. Names are case sensitive."},type:{type:"string",enum:["goto","end"],description:'REQUIRED. The type of action to take. Possible values are "end" or "goto".'},stepId:{type:"string",description:'The stepId to transfer to upon success of the step. This field is only relevant when the type field value is "goto". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId.'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon success of the step. This field is only relevant when the type field value is "goto". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId.'},criteria:j.listOf("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object. All criteria assertions MUST be satisfied for the action to be executed."})},required:["type","name"],description:"A single success action which describes an action to take upon success of a workflow step."},aw={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},cw={properties:{name:{type:"string",description:"REQUIRED. The name of the failure action. Names are case sensitive."},type:{type:"string",enum:["goto","retry","end"],description:'REQUIRED. The type of action to take. Possible values are "end", "retry", or "goto".'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId. When used with "retry", context transfers back upon completion of the specified workflow.'},stepId:{type:"string",description:'The stepId to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId. When used with "retry", context transfers back upon completion of the specified step.'},retryAfter:{type:"number",minimum:0,description:'A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made. Note: if an HTTP Retry-After response header was returned to a step from a targeted operation, then it SHOULD overrule this particular field value. This field only applies when the type field value is "retry".'},retryLimit:{type:"number",minimum:0,description:'A non-negative integer indicating how many attempts to retry the step MAY be attempted before failing the overall step. If not specified then a single retry SHALL be attempted. This field only applies when the type field value is "retry". The retryLimit MUST be exhausted prior to executing subsequent failure actions.'},criteria:j.listOf("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object."})},required:["type","name"],description:"A single failure action which describes an action to take upon failure of a workflow step."},pw={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},ot={Root:j0,Info:F0,SourceDescriptions:z0,OpenAPISourceDescription:B0,ArazzoSourceDescription:V0,Parameters:W0,Parameter:K0,ReusableObject:H0,Workflows:G0,Workflow:Q0,Steps:Y0,Step:J0,RequestBody:Z0,Replacement:ew,ExtendedOperation:rw,ExtendedSecurityList:j.listOf("ExtendedSecurity"),ExtendedSecurity:tw,Outputs:X0,CriterionObject:nw,XPathCriterion:ow,JSONPathCriterion:iw,SuccessActionObject:sw,OnSuccessActionList:aw,FailureActionObject:cw,OnFailureActionList:pw,Schema:nt.Schema,NamedSchemas:j.mapOf("Schema"),ExternalDocs:nt.ExternalDocs,DiscriminatorMapping:nt.DiscriminatorMapping,Discriminator:nt.Discriminator,DependentRequired:nt.DependentRequired,SchemaProperties:nt.SchemaProperties,PatternProperties:nt.SchemaProperties,Components:L0,NamedInputs:U0,NamedParameters:M0,NamedSuccessActions:D0,NamedFailureActions:N0,Xml:nt.Xml,SecurityScheme:nt.SecurityScheme,OAuth2Flows:nt.OAuth2Flows,ImplicitFlow:nt.ImplicitFlow,PasswordFlow:nt.PasswordFlow,ClientCredentials:nt.ClientCredentials,AuthorizationCode:nt.AuthorizationCode,DeviceAuthorization:nt.DeviceAuthorization},lw={...ot.Root,properties:{...ot.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1."}}},uw={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},dw={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["asyncapi"],description:'The type of source description. Possible values are "asyncapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an AsyncAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},fw={...ot.Parameter,properties:{...ot.Parameter.properties,in:{type:"string",enum:["header","query","path","cookie","querystring"],description:'The location of the parameter. Possible values are "path", "query", "querystring", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'}}},mw={...ot.Step,properties:{...ot.Step.properties,channelPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an AsyncAPI channel. This field is mutually exclusive of the operationId, operationPath, and workflowId fields respectively. A Runtime Expression syntax MUST be used to identify the source description document."},action:{type:"string",enum:["send","receive"],description:'Describes the intent of the message flow for an AsyncAPI operation. Possible values are "send" or "receive".'},correlationId:{type:"string",description:'A Runtime Expression used to correlate a request with a response when interacting with asynchronous APIs. Applies to "receive" steps.'},timeout:{type:"integer",minimum:0,description:"A non-negative integer indicating the maximum amount of time (in milliseconds) to wait before timing out."},dependsOn:{type:"array",items:{type:"string"},description:"A list of steps that MUST be completed before this step can be executed. Each value provided MUST be a stepId."}},requiredOneOf:["x-operation","operationId","operationPath","channelPath","workflowId"]},hw={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},yw={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},gw={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},bw={properties:{type:{type:"string",enum:["jsonpath","xpath","jsonpointer"],description:"REQUIRED. The selector type. The options allowed are jsonpath, xpath, or jsonpointer."},version:{type:"string",description:"REQUIRED. A short hand string representing the version of the expression type being used."}},required:["type","version"]},vw=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",Zs=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:vw(n)},ww={...ot.CriterionObject,properties:{...ot.CriterionObject.properties,type:Zs(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},xw={properties:{context:{type:"string",description:"REQUIRED. A Runtime Expression that evaluates to structured data (e.g., $response.body) the selector is applied to."},selector:{type:"string",description:"REQUIRED. The selector expression (JSONPath, XPath, or JSON Pointer) used to extract data from the context."},type:Zs(["jsonpath","xpath","jsonpointer"],"The type of selector to be applied.",{optional:!1})},required:["context","selector","type"],extensionsPrefix:"x-",description:"An object used to extract specific data from structured content using JSONPath, XPath, or JSON Pointer expressions."},Sw={properties:{},additionalProperties:e=>Y.isPlainObject(e)?"SelectorObject":{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression or a Selector Object. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},Pw={...ot.Replacement,properties:{...ot.Replacement.properties,value:e=>Y.isPlainObject(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:Zs(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},$w={...ot.SuccessActionObject,properties:{...ot.SuccessActionObject.properties,parameters:"Parameters"}},Aw={...ot.FailureActionObject,properties:{...ot.FailureActionObject.properties,parameters:"Parameters"}},Nu={...ot,Root:lw,SourceDescriptions:uw,AsyncAPISourceDescription:dw,Parameter:fw,Step:mw,CriterionObject:ww,JSONPathExpression:hw,XPathExpression:yw,JSONPointerExpression:gw,ExpressionType:bw,SelectorObject:xw,Outputs:Sw,Replacement:Pw,SuccessActionObject:$w,FailureActionObject:Aw};function ea(e,t){const r={...e};return t.forEach(n=>{delete r[n]}),r}const Ew={properties:{overlay:{type:"string",description:"REQUIRED. This string MUST be the version number of the Overlay Specification that the Overlay document uses. The overlay field SHOULD be used by tooling to interpret the Overlay document."},$self:{type:"string",description:"A URI-reference for the Overlay document. It is also the base URI for resolving relative references within this document."},info:"Info",extends:{type:"string",description:"URI reference that identifies the target document (such as an [OpenAPI] document) this overlay applies to."},actions:"Actions",components:"Components"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},Ow={properties:{title:{type:"string",description:"REQUIRED. A human readable description of the purpose of the overlay."},version:{type:"string",description:"REQUIRED. A version identifer for indicating changes to the Overlay document."},description:{type:"string",description:"A description of the Overlay. [CommonMark] syntax MAY be used for rich text representation."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},Rw={properties:{},items:e=>j.isRef(e)?"ReusableAction":"Action"},Lu={properties:{target:{type:"string",description:"REQUIRED A JSONPath expression selecting nodes in the target document."},description:{type:"string",description:"A description of the action. [CommonMark] syntax MAY be used for rich text representation."},update:{},copy:{type:"string",description:"A JSONPath expression selecting a single node to copy into the target nodes. The copied value is merged with the target nodes like an `update` value."},remove:{type:"boolean",description:"A boolean value that indicates that the target object or array MUST be removed from the the map or array it is contained in. The default value is false."}},required:["target"],extensionsPrefix:"x-",description:"This object represents one or more changes to be applied to the target document at the location defined by the target JSONPath expression"},_w={properties:{actions:"ReusableActions"},extensionsPrefix:"x-",description:"A set of components to reuse across the Overlay document."},Tw=j.mapOf("ReusableAction"),kw={properties:{description:{type:"string",description:"A description of the reusable action. [CommonMark] syntax MAY be used for rich text representation."},fields:"ReusableActionFields"},extensionsPrefix:"x-",description:"A reusable action. An action in `actions` references it with `$ref` and supplies the `target`."},Iw={properties:ea(Lu.properties,["target"]),extensionsPrefix:"x-",description:"The fields of a reusable action: an action without a `target`."},ta={Root:Ew,Info:Ow,Actions:Rw,Action:Lu,Components:_w,ReusableActions:Tw,ReusableAction:kw,ReusableActionFields:Iw},qw={properties:{openrpc:{type:"string",description:"REQUIRED. This string MUST be the semantic version number of the OpenRPC Specification version that the OpenRPC document uses. The openrpc field SHOULD be used by tooling specifications and clients to interpret the OpenRPC document. This is not related to the API info.version string."},info:"Info",servers:"ServerList",methods:"MethodList",components:"Components",externalDocs:"ExternalDocs"},required:["openrpc","info","methods"],extensionsPrefix:"x-",description:"This is the root object of the OpenRPC document. The contents of this object represent a whole OpenRPC document. How this object is constructed or stored is outside the scope of the OpenRPC Specification."},Cw={properties:{title:{type:"string",description:"REQUIRED. The title of the application."},description:{type:"string",description:"A verbose description of the application. GitHub Flavored Markdown syntax MAY be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL."},contact:"Contact",license:"License",version:{type:"string",description:"REQUIRED. The version of the OpenRPC document (which is distinct from the OpenRPC Specification version or the API implementation version)."}},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required."},jw={properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. MUST be in the format of a URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},extensionsPrefix:"x-",description:"Contact information for the exposed API."},Mw={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. MUST be in the format of a URL."}},required:["name"],extensionsPrefix:"x-",description:"License information for the exposed API."},Dw={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenRPC document is being served. Server Variables are passed into the Runtime Expression to produce a server URL."},name:{type:"string",description:"REQUIRED. A name to be used as the canonical name for the server."},description:{type:"string",description:"An optional string describing the host designated by the URL. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of what the server is."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"An object representing a Server."},Nw={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object’s treatment of default values, because in those cases parameter values are optional."},description:{type:"string",description:"An optional description for the server variable. GitHub Flavored Markdown syntax MAY be used for rich text representation."}},required:["default"],extensionsPrefix:"x-",description:"An object representing a Server Variable for server URL template substitution."},Lw={properties:{name:{type:"string",description:"REQUIRED. The cannonical name for the method. The name MUST be unique within the methods array."},tags:"TagList",summary:{type:"string",description:"A short summary of what the method does."},description:{type:"string",description:"A verbose explanation of the method behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs",params:"ContentDescriptorList",result:"ContentDescriptor",deprecated:{type:"boolean",description:"Declares this method to be deprecated. Consumers SHOULD refrain from usage of the declared method. Default value is false."},servers:"ServerList",errors:"ErrorList",links:"LinkList",paramStructure:{enum:["by-name","by-position","either"]},examples:"ExamplePairingList"},required:["name","params"],extensionsPrefix:"x-",description:"Describes the interface for the given method name. The method name is used as the method field of the JSON-RPC body. It therefore MUST be unique."},Uw={properties:{name:{type:"string",description:"REQUIRED. Name of the content that is being described. If the content described is a method parameter assignable by-name, this field SHALL define the parameter’s key (ie name)."},summary:{type:"string",description:"A short summary of the content that is being described."},description:{type:"string",description:"A verbose explanation of the content descriptor behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines if the content is a required field. Default value is false."},schema:"Schema",deprecated:{type:"boolean",description:"Specifies that the content is deprecated and SHOULD be transitioned out of usage. Default value is false."}},required:["name","schema"],extensionsPrefix:"x-",description:"Content Descriptors are objects that do just as they suggest - describe content. They are reusable ways of describing either parameters or result. They MUST have a schema."},Fw={properties:{name:{type:"string",description:"REQUIRED Name for the example pairing."},description:{type:"string",description:"A verbose explanation of the example pairing."},summary:{type:"string",description:"Short description for the example pairing."},params:"ExampleList",result:"Example"},extensionsPrefix:"x-",description:"The Example Pairing object consists of a set of example params and result. The result is what you can expect from the JSON-RPC service given the exact params."},zw={properties:{name:{type:"string",description:"Cannonical name of the example."},summary:{type:"string",description:"Short description for the example."},description:{type:"string",description:"A verbose explanation of the example. GitHub Flavored Markdown syntax MAY be used for rich text representation."},value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON, use a string value to contain the example, escaping where necessary."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"The Example object is an object that defines an example that is intended to match the schema of a given Content Descriptor."},Bw={properties:{name:{type:"string",description:"REQUIRED. Canonical name of the link."},description:{type:"string",description:"A description of the link. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"Short description for the link."},method:{type:"string",description:"The name of an existing, resolvable OpenRPC method, as defined with a unique method. This field MUST resolve to a unique Method Object. As opposed to Open Api, Relative method values ARE NOT permitted."},params:{type:"object",description:"A map representing parameters to pass to a method as specified with method. The key is the parameter name to be used, whereas the value can be a constant or a runtime expression to be evaluated and passed to the linked method."},server:"Server"},required:["name"],extensionsPrefix:"x-",description:"The Link object represents a possible design-time link for a result. The presence of a link does not guarantee the caller’s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between results and other methods."},Vw={properties:{code:{type:"integer",description:"REQUIRED. A Number that indicates the error type that occurred. This MUST be an integer. The error codes from and including -32768 to -32000 are reserved for pre-defined errors. These pre-defined errors SHOULD be assumed to be returned from any JSON-RPC api."},message:{type:"string",description:"REQUIRED. A String providing a short description of the error. The message SHOULD be limited to a concise single sentence."},data:{resolvable:!1,description:"A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.)."}},required:["code","message"],extensionsPrefix:"x-",description:"Defines an application level error."},Hw={properties:{contentDescriptors:"NamedContentDescriptors",schemas:"NamedSchemas",examples:"NamedExamples",links:"NamedLinks",errors:"NamedErrors",examplePairingObjects:"NamedExamplePairingObjects",tags:"NamedTags"},extensionsPrefix:"x-",description:"Holds a set of reusable objects for different aspects of the OpenRPC. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},Kw={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},summary:{type:"string",description:"A short summary of the tag."},description:{type:"string",description:"A verbose explanation for the tag. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],extensionsPrefix:"x-",description:"Adds metadata to a single tag that is used by the Method Object. It is not mandatory to have a Tag Object per tag defined in the Method Object instances."},Ww={properties:{description:{type:"string",description:"A verbose explanation of the target documentation. GitHub Flavored Markdown syntax MAY be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. Value MUST be in the format of a URL."}},required:["url"],extensionsPrefix:"x-",description:"Allows referencing an external resource for extended documentation."},Uu={Root:qw,Info:Cw,Contact:jw,License:Mw,Server:Dw,ServerList:j.listOf("Server"),ServerVariable:Nw,ServerVariablesMap:j.mapOf("ServerVariable"),Method:Lw,MethodList:j.listOf("Method"),ContentDescriptor:Uw,ContentDescriptorList:j.listOf("ContentDescriptor"),ExamplePairing:Fw,ExamplePairingList:j.listOf("ExamplePairing"),Example:zw,ExampleList:j.listOf("Example"),Link:Bw,LinkList:j.listOf("Link"),ErrorObject:Vw,ErrorList:j.listOf("ErrorObject"),Components:Hw,Tag:Kw,TagList:j.listOf("Tag"),ExternalDocs:Ww,Schema:Qs,SchemaProperties:Gs,Dependencies:Ys,DiscriminatorMapping:Js,Discriminator:Xs,NamedContentDescriptors:j.mapOf("ContentDescriptor"),NamedSchemas:j.mapOf("Schema"),NamedExamples:j.mapOf("Example"),NamedLinks:j.mapOf("Link"),NamedErrors:j.mapOf("ErrorObject"),NamedExamplePairingObjects:j.mapOf("ExamplePairing"),NamedTags:j.mapOf("Tag")};var Fu={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},_r={type:"object",properties:Fu,additionalProperties:!1},Qw={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Yr={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...Fu,like:_r,dislike:_r,satisfied:_r,neutral:_r,dissatisfied:_r},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Qw},additionalProperties:!1}},additionalProperties:!1},Gw={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},ra={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Es={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:Yr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ra,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Gw,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},ze={type:"string",uiHint:"color"},ft={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"},Yw={rules:ft,oas2Rules:ft,oas3_0Rules:ft,oas3_1Rules:ft,oas3_2Rules:ft,async2Rules:ft,async3Rules:ft,arazzo1Rules:ft,arazzo1_1Rules:ft,overlay1Rules:ft,openrpc1Rules:ft,graphqlRules:ft},yt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Jw={preprocessors:yt,oas2Preprocessors:yt,oas3_0Preprocessors:yt,oas3_1Preprocessors:yt,oas3_2Preprocessors:yt,async2Preprocessors:yt,async3Preprocessors:yt,arazzo1Preprocessors:yt,arazzo1_1Preprocessors:yt,overlay1Preprocessors:yt,openrpc1Preprocessors:yt},gt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Xw={decorators:gt,oas2Decorators:gt,oas3_0Decorators:gt,oas3_1Decorators:gt,oas3_2Decorators:gt,async2Decorators:gt,async3Decorators:gt,arazzo1Decorators:gt,arazzo1_1Decorators:gt,overlay1Decorators:gt,openrpc1Decorators:gt},Zw={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},Zi={...Yw,...Xw,...Jw,extends:Zw},ir={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},ex={type:"object",properties:{name:{type:"string"},items:ir,queries:ir,mutations:ir,subscriptions:ir,types:ir,directives:ir},required:["name"],additionalProperties:!1},tx={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:ex},otherItemsGroupName:{type:"string"}}},rx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},nx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},ix={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string",uiHint:"textarea"},termsOfService:{type:"string",format:"uri"},contact:rx,license:nx},additionalProperties:!1},ki={type:"object",properties:{menu:{type:"object",properties:{...tx.properties},additionalProperties:!1},downloadUrls:ra,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:ze}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Yr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:ix},additionalProperties:!1},na={type:"object",properties:{downloadUrls:ra,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:Yr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},ox={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},sx={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},pc={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},ax={type:"object",properties:{beforeInfo:{type:"array",items:pc},end:{type:"array",items:pc}}},Yt={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},dn={type:"object",properties:{backgroundColor:ze,borderColor:ze,color:ze,tabTextColor:ze}},cx={type:"object",properties:eo(Yt.properties,["light","dark"])},px={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},lx={type:"object",properties:{error:dn,info:dn,redirect:dn,success:dn}},ux={type:"object",properties:vr(Yt.properties,["dark"])},dx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},fx={type:"object",properties:{accent:Yt,border:cx,error:Yt,http:px,primary:Yt,responses:lx,secondary:ux,success:Yt,text:dx,tonalOffset:{type:"number"},warning:Yt}},fn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},mx={type:"object",properties:{small:fn,medium:fn,large:fn,xlarge:fn}},Rt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},hx={type:"object",properties:{...vr(Rt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:mx}},lc={type:"object",properties:eo(Rt.properties,["fontSize","lineHeight"])},yx={type:"object",properties:{medium:lc,small:lc}},gx={type:"object",properties:{...vr(Rt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:ze,sizes:yx}},bx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},vx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:ze}},uc={type:"object",properties:{fullWidth:{type:"boolean"}}},wx={type:"object",properties:{buttons:hx,httpBadges:gx,layoutControls:bx,panels:vx,tryItButton:uc,tryItSendButton:uc}},Ii={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},xx={type:"object",properties:{maxWidth:Ii}},Sx={type:"object",properties:{maxWidth:Ii,middlePanelMaxWidth:Ii}},Px={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:xx,"three-panel":Sx}},dc={type:"object",properties:{backgroundColor:ze,border:{type:"string"}}},$x={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:ze,caretSize:{type:"string"},constraints:dc,defaultDetailsWidth:{type:"string"},examples:dc,labelsTextSize:{type:"string"},linesColor:ze,nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:ze,typeNameColor:ze,typeTitleColor:ze}},zu={type:"object",properties:{subItemsColor:ze,textTransform:{type:"string"},fontWeight:{type:"string"}}},Ax={type:"object",properties:eo(zu.properties,["textTransform"])},Ex={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Ox={type:"object",properties:{...vr(Rt.properties,["fontWeight","lineHeight"]),activeBgColor:ze,activeTextColor:ze,backgroundColor:ze,borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:ze,caretSize:{type:"string"},groupItems:zu,level1items:Ax,rightLineColor:ze,separatorLabelColor:ze,showAtBreakpoint:{type:"string"},spacing:Ex,textColor:ze,width:{type:"string"}}},mn={type:"object",properties:{...Rt.properties,color:ze,transform:{type:"string"}}},Rx={type:"object",properties:{...Rt.properties,backgroundColor:ze,color:ze,wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},_x={type:"object",properties:vr(Rt.properties,["fontSize"])},Tx={type:"object",properties:{color:ze,hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},kx={type:"object",properties:{code:Rx,fieldName:Rt,...eo(Rt.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:mn,heading2:mn,heading3:mn,headings:_x,lineHeight:{type:"string"},links:Tx,optimizeSpeed:{type:"boolean"},rightPanelHeading:mn,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Ix={type:"object",properties:{color:ze,...vr(Rt.properties,["fontWeight"])}},qx={type:"object",properties:{backgroundColor:ze,borderRadius:{type:"string"},tokens:Ix}},Cx={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},jx={type:"object",properties:{backgroundColor:ze,color:ze}},fc={type:"object",properties:{custom:{type:"string"}}},Mx={type:"object",properties:{DownloadButton:fc,NextSectionButton:fc}},Dx={type:"object",properties:{backgroundColor:ze,panelBackgroundColor:ze,panelControlsBackgroundColor:ze,showAtBreakpoint:{type:"string"},textColor:ze,width:{type:"string"}}},Nx={type:"object",properties:{borderRadius:{type:"string"}}},Lx={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Ux={type:"object",properties:{breakpoints:Ii,codeBlock:qx,colors:fx,components:wx,layout:Px,logo:Cx,fab:jx,overrides:Mx,rightPanel:Dx,schema:$x,shape:Nx,sidebar:Ox,spacing:Lx,typography:kx,links:{type:"object",properties:{color:ze}},codeSample:{type:"object",properties:{backgroundColor:ze}}}},Fx={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:ox}},required:["languages"]},zx={properties:{theme:Ux,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:Fx,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:sx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:ax,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}}};function eo(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function vr(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Bu=e=>e,ct=Bu({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),tt={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},mc={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"},consent:{type:"string",enum:["analytics","marketing"]}},required:["src"],additionalProperties:!0},_o={type:"object",properties:{page:{type:"string",uiHint:"file"},directory:{type:"string",uiHint:"file"},disconnect:{type:"boolean"},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},ia={type:"array",items:{..._o,properties:{..._o.properties,items:{type:"array",items:_o}}}},Bx={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Vx={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Hx={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},Kx={type:"object",properties:{facets:Hx,...tt.properties},additionalProperties:!1},Wx={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Vu={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},Hu={type:"object",properties:{items:ia,...tt.properties},additionalProperties:!1},Ku={type:"object",additionalProperties:Bx},Wu={type:"object",properties:{items:ia,copyrightText:{type:"string",uiHint:"textarea"},logo:tt,...tt.properties},additionalProperties:!1},Qu={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...tt.properties},additionalProperties:!1},Gu={type:"object",properties:{head:{type:"array",items:mc},body:{type:"array",items:mc}},additionalProperties:!1},Yu={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},Ju={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Vx,filters:Kx,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Wx},...tt.properties},additionalProperties:!1},Xu={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string",uiHint:"textarea"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},Zu={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...tt.properties},additionalProperties:!1},ed={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Qx={type:"object",properties:{...tt.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode","docs-mcp-claude"]}}},additionalProperties:!1},td={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...tt.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...tt.properties},additionalProperties:!1},actions:Qx},additionalProperties:!1},rd={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...tt.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...tt.properties},additionalProperties:!1},expand:{type:"object",properties:{...tt.properties},additionalProperties:!1},collapse:{type:"object",properties:{...tt.properties},additionalProperties:!1}},additionalProperties:!1},nd={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...tt.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...tt.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...tt.properties},additionalProperties:!1},template:{type:"object",uiHint:"list",additionalProperties:{type:"string"}}},additionalProperties:!1},qi={...Es,properties:{...Es.properties,...zx.properties}};({...Es.properties});var Gx={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Yx={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},Jx={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Xx={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Zx={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},eS={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},tS={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},rS={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},nS={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:rS}},additionalProperties:!1,required:["trackingId"]},id={type:"object",properties:{adobe:Gx,amplitude:Yx,fullstory:Jx,heap:Xx,rudderstack:Zx,segment:eS,gtm:tS,ga:nS}},iS={type:"object",properties:{mode:{type:"string",enum:["auto","opt-in","opt-out","none","onetrust","cookiebot","trustarc","tcf"]},privacyPolicyUrl:{type:"string"},expires:{type:"number"},settingsLink:{type:"string",enum:["auto","footer","none"]}},additionalProperties:!1},od={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...tt.properties},additionalProperties:!1},sd={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},ad={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1}}},additionalProperties:!1},oS={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},sS={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:oS},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ia,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ci={type:"object",patternProperties:{".*":sS}},ji={nodeTypeName:ct.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:ct.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:ct.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:ct.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Zi},additionalProperties:!1}},targets:{nodeTypeName:ct.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:ct.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:ct.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:ct.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string",uiHint:"file"}},fromProjectUrl:{type:"string",format:"uri"}}},aS={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},cS={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},pS={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},kt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:cS},excludes:{type:"array",items:aS},filters:{type:"array",items:pS},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},lS={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},uS={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:lS},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},dS={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:uS,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},fS={type:"object",additionalProperties:dS},cd={type:"object",properties:{show:{type:"boolean"},entityTypes:fS,catalogs:{type:"object",properties:{all:kt,services:kt,domains:kt,teams:kt,users:kt,apiDescriptions:kt,dataSchemas:kt,apiOperations:kt},additionalProperties:kt}},additionalProperties:!1},hc={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},oa={type:"string",enum:["and","or"]},Os={type:"object",properties:{field:{type:"string"},operator:hc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:hc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},mS={type:"object",properties:{operator:oa,conditions:{type:"array",items:Os}},required:["operator","conditions"],additionalProperties:!1},yc={type:"array",items:{oneOf:[Os,{type:"object",properties:{operator:oa,conditions:{type:"array",items:{oneOf:[Os,mS]}}},required:["operator","conditions"],additionalProperties:!1}]}},pd={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},hS={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:pd},required:["subject","assertions"],additionalProperties:!1}},yS={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:pd,where:hS,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},gS={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},yS]}},bS={type:"object",properties:{name:{type:"string"},extends:Zi.extends,rules:gS},required:["name"],additionalProperties:!1},gc={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},vS={oneOf:[gc,{type:"array",items:gc}]},wS={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[yc,{type:"object",properties:{operator:oa,conditions:yc},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:bS,minItems:1},trigger:vS},required:["name","key","entities","levels"],additionalProperties:!1},ld={type:"array",items:wS},Et={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Vu,navbar:Hu,products:Ku,footer:Wu,sidebar:Qu,scripts:Gu,links:Yu,feedback:Yr,search:Ju,aiAssistant:Xu,colorMode:Zu,palette:ed,navigation:td,codeSnippet:rd,markdown:nd,openapi:qi,asyncapi:na,graphql:ki,analytics:id,userMenu:od,versionPicker:sd,breadcrumbs:ad,catalog:Ci,entitiesCatalog:cd,catalogClassic:Ci,scorecard:ji,scorecardClassic:ji,scorecards:ld},additionalProperties:!0},xS=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(xS||{}),SS=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(SS||{}),PS=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(PS||{}),$S="^[a-z0-9]+(?:-[a-z0-9]+)*$",ud="redocly",AS=[ud,"corporate","guest"],bc=["REDOCLY","CORPORATE","GUEST"],ES={type:"object",additionalProperties:{type:"string"}},OS={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},hn={type:"string",enum:["error","warn","off"]},RS={type:"object",additionalProperties:!1,properties:{schemaCheck:hn,statusCodeCheck:hn,contentTypeCheck:hn,successCriteriaCheck:hn}},_S={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},TS={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},kS={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},IS={type:"object",additionalProperties:{type:"object",properties:{type:{type:"string",enum:["http"]},url:{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"},description:{type:"string"},headers:{type:"object",additionalProperties:{type:"string"}}},required:["url"],additionalProperties:!1}},qS={type:"object",properties:{provider:{type:"string",minLength:1},repository:{type:"string",minLength:1},branch:{type:"string",minLength:1},path:{type:"string"}},required:["provider","repository"],additionalProperties:!1},CS={type:"object",properties:{name:{type:"string",enum:["feedback","discovery","followUpOnPullRequest","updateFromCodeChanges"]},enabled:{type:"boolean"}},required:["name"],additionalProperties:!1},jS={type:"object",properties:{name:{type:"string",enum:["review"]},enabled:{type:"boolean"},rules:{type:"string"},sourceRepositories:{oneOf:[{type:"string",enum:["none","all"]},{type:"array",items:qS}]},specialists:{type:"array",items:{type:"object",properties:{name:{type:"string",enum:["config","apiDescription","owasp","docs"]},enabled:{type:"boolean"}},required:["name","enabled"],additionalProperties:!1}}},required:["name"],additionalProperties:!1},MS={type:"object",properties:{enabled:{type:"boolean"},defaultReviewers:{type:"array",items:{type:"string",minLength:1}},rules:{type:"object",properties:{custom:{type:"string"},style:{type:"string"}},additionalProperties:!1},duties:{type:"array",items:{oneOf:[CS,jS]}},mcpServers:IS},additionalProperties:!1},DS={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[_S,TS]},inputs:ES,servers:OS,severity:RS,slo:kS},required:["path","trigger","agent"],additionalProperties:!1}},agent:MS},additionalProperties:!1},dd={type:"string",enum:["off","info","warn","error"]},Tr={type:"array",items:{type:"string"}},NS={type:"object",properties:{severity:dd,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Tr,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Tr,excludes:Tr,exceptions:{type:"object",properties:{files:Tr,lines:Tr},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},LS={oneOf:[dd,NS]},vc={type:"object",additionalProperties:LS},US={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},FS={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:US}},additionalProperties:!1},zS={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:FS},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},BS={oneOf:[{type:"boolean"},zS]},VS={type:"object",properties:{rules:vc,excludes:{type:"array",items:{type:"string",minLength:1}},markdoc:BS,apiDescriptions:{type:"object",properties:{rules:vc},additionalProperties:!1}},additionalProperties:!1},HS={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},KS={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:HS,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},WS={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},QS={oneOf:[KS,WS],discriminator:{propertyName:"type"}},GS={type:"object",additionalProperties:QS},fd={oneOf:[{type:"array",items:{type:"string",enum:bc},uniqueItems:!0},{type:"string",enum:bc}]},wc={type:"string",pattern:$S,not:{enum:AS.filter(e=>e!==ud)}},md={oneOf:[{type:"array",items:wc,uniqueItems:!0},wc]},hd={type:"boolean"},yd={type:"string",pattern:"^https?://.*"},gd={type:"string",pattern:"^https?://.*"},YS={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:ct.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},JS={type:"object",additionalProperties:YS,nodeTypeName:ct.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},XS={type:"string",enum:["info","success","warning","error"]},We={type:"object",uiHint:"list",additionalProperties:{type:"string"}},ZS={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:XS,rbac:We,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},eP={type:"array",items:ZS},tP={type:"object",properties:{root:{type:"string",uiHint:"file"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:We,openapi:qi,graphql:ki,asyncapi:na,theme:{type:"object",properties:{openapi:qi,graphql:ki},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Zi},required:["root"]},rP={type:"object",additionalProperties:!0},nP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},iP={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string",uiHint:"textarea"},details:{type:"object",properties:{path:{type:"string",uiHint:"file"},content:{type:"string",uiHint:"textarea"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string",uiHint:"file"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string",uiHint:"file"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},oP={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string",uiHint:"textarea"},siteUrl:{type:"string"},image:{type:"string",uiHint:"file"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:iP},additionalProperties:!1},sP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},aP={type:"object",properties:{catalogs:{type:"object",properties:{all:We,services:We,domains:We,teams:We,users:We,apiDescriptions:We,dataSchemas:We,apiOperations:We},additionalProperties:We},entitiesTypes:{type:"object",properties:{service:We,domain:We,team:We,user:We,apiDescription:We,apiOperation:We,dataSchema:We},additionalProperties:We},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:We},additionalProperties:!1}},entities:{type:"object",properties:{"**":We},additionalProperties:We}},additionalProperties:!1},bd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:We,cms:We,reunite:We,features:{type:"object",properties:{aiSearch:We,mcp:We},additionalProperties:!1},content:{type:"object",properties:{"**":We},additionalProperties:We},entitiesCatalog:aP},additionalProperties:We},cP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},pP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},lP={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[cP,pP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},uP={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},dP={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Rs={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[uP,dP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},fP={...Rs,properties:{...Rs.properties,type:{type:"string",const:"APIGEE_EDGE"}}},mP={type:"object",oneOf:[Rs,fP,lP],discriminator:{propertyName:"type"}},hP={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:mP}}},xc={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},yP={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},gP={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},bP={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},vP={type:"object",properties:{requiresLogin:hd,logoutReturnUrl:yd,residency:gd,sso:fd,idps:md,rbac:bd},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Mi={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:JS,seo:oP,rbac:bd,apiFunctions:sP,requiresLogin:hd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:yP}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",uiHint:"list",additionalProperties:tP},...Zi,ssoDirect:GS,sso:fd,idps:md,residency:gd,logoutReturnUrl:yd,access:vP,developerOnboarding:hP,removeAttribution:{type:"boolean"},i18n:xc,l10n:xc,metadata:rP,metadataGlobs:nP,ignore:{type:"array",items:{type:"string"}},theme:Et,reunite:DS,logo:Vu,navbar:Hu,products:Ku,footer:Wu,sidebar:Qu,scripts:Gu,links:Yu,feedback:Yr,search:Ju,aiAssistant:Xu,colorMode:Zu,palette:ed,navigation:td,codeSnippet:rd,markdown:nd,openapi:qi,graphql:ki,asyncapi:na,analytics:id,consent:iS,userMenu:od,versionPicker:sd,breadcrumbs:ad,catalog:Ci,entitiesCatalog:cd,catalogClassic:Ci,scorecard:ji,scorecardClassic:ji,scorecards:ld,mcp:gP,skills:bP,recheck:VS,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:eP},not:{required:["sso","idps"]},additionalProperties:!0},wP={...Mi,additionalProperties:!1},to={$id:"root-redocly-config",...Mi,properties:{plugins:{type:"array",items:{type:"string"}},...Mi.properties,env:{type:"object",additionalProperties:wP}},additionalProperties:!1};Et.properties.logo,Et.properties.navbar,Et.properties.footer,Et.properties.sidebar,Et.properties.search,Et.properties.codeSnippet,Et.properties.breadcrumbs,Et.properties.openapi,Et.properties.feedback,Mi.properties.mockServer;var xP=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],Ze=Bu({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),SP={type:"object",nodeTypeName:Ze.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},PP={type:"object",nodeTypeName:Ze.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},$P={type:"object",nodeTypeName:Ze.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},AP={type:"object",nodeTypeName:Ze.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},EP={type:"object",properties:{},nodeTypeName:Ze.EntityMetadata,additionalProperties:!0},OP={type:"object",nodeTypeName:Ze.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},RP={type:"object",nodeTypeName:Ze.EntitySlackContact,properties:{channels:{type:"array",items:OP}},required:["channels"],additionalProperties:!1},_P={type:"object",nodeTypeName:Ze.EntityContact,properties:{slack:RP},additionalProperties:!1},TP={type:"object",nodeTypeName:Ze.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},kP={type:"object",nodeTypeName:Ze.EntityRelation,properties:{type:{type:"string",enum:xP},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},zt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:_P,links:{type:"array",nodeTypeName:Ze.EntityLinkList,items:TP},relations:{type:"array",nodeTypeName:Ze.EntityRelationList,items:kP},metadata:EP},IP={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...zt,type:{type:"string",const:"user"},metadata:SP},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ze.UserEntity},{type:"object",nodeTypeName:Ze.ApiOperationEntity,properties:{...zt,type:{type:"string",const:"api-operation"},metadata:$P},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.DataSchemaEntity,properties:{...zt,type:{type:"string",const:"data-schema"},metadata:AP},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.ApiDescriptionEntity,properties:{...zt,type:{type:"string",const:"api-description"},metadata:PP},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.ServiceEntity,properties:{...zt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.DomainEntity,properties:{...zt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.TeamEntity,properties:{...zt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},qP={type:"object",nodeTypeName:Ze.Entity,properties:{...zt},required:["key","title","type"],additionalProperties:!1};const CP=["Name","Document","OperationDefinition","VariableDefinition","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","Variable","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","DirectiveExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","TypeCoordinate","MemberCoordinate","ArgumentCoordinate","DirectiveCoordinate","DirectiveArgumentCoordinate"],Oi=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],vd="a-zA-Z0-9\\.\\-_",jP={oas2:Su,oas3_0:Pt,oas3_1:Fe,oas3_2:nt,async2:Mu,async3:Du,arazzo1:ot,arazzo1_1:Nu,overlay1:ta,openrpc1:Uu};function Jr(e){return e==="graphql"?{}:jP[e]}function sa(e){return e.includes("/")}var yn={exports:{}},To={},It={},Ht={},ko={},Io={},qo={},Sc;function Di(){return Sc||(Sc=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 r extends t{constructor(S){if(super(),!e.IDENTIFIER.test(S))throw new Error("CodeGen: name must be a valid identifier");this.str=S}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(S){super(),this._items=typeof S=="string"?[S]:S}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const S=this._items[0];return S===""||S==='""'}get str(){var S;return(S=this._str)!==null&&S!==void 0?S:this._str=this._items.reduce((v,O)=>`${v}${O}`,"")}get names(){var S;return(S=this._names)!==null&&S!==void 0?S:this._names=this._items.reduce((v,O)=>(O instanceof r&&(v[O.str]=(v[O.str]||0)+1),v),{})}}e._Code=n,e.nil=new n("");function i(A,...S){const v=[A[0]];let O=0;for(;O<S.length;)c(v,S[O]),v.push(A[++O]);return new n(v)}e._=i;const o=new n("+");function s(A,...S){const v=[g(A[0])];let O=0;for(;O<S.length;)v.push(o),c(v,S[O]),v.push(o,g(A[++O]));return p(v),new n(v)}e.str=s;function c(A,S){S instanceof n?A.push(...S._items):S instanceof r?A.push(S):A.push(h(S))}e.addCodeArg=c;function p(A){let S=1;for(;S<A.length-1;){if(A[S]===o){const v=l(A[S-1],A[S+1]);if(v!==void 0){A.splice(S-1,3,v);continue}A[S++]="+"}S++}}function l(A,S){if(S==='""')return A;if(A==='""')return S;if(typeof A=="string")return S instanceof r||A[A.length-1]!=='"'?void 0:typeof S!="string"?`${A.slice(0,-1)}${S}"`:S[0]==='"'?A.slice(0,-1)+S.slice(1):void 0;if(typeof S=="string"&&S[0]==='"'&&!(A instanceof r))return`"${A}${S.slice(1)}`}function d(A,S){return S.emptyStr()?A:A.emptyStr()?S:s`${A}${S}`}e.strConcat=d;function h(A){return typeof A=="number"||typeof A=="boolean"||A===null?A:g(Array.isArray(A)?A.join(","):A)}function y(A){return new n(g(A))}e.stringify=y;function g(A){return JSON.stringify(A).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=g;function $(A){return typeof A=="string"&&e.IDENTIFIER.test(A)?new n(`.${A}`):i`[${A}]`}e.getProperty=$;function x(A){if(typeof A=="string"&&e.IDENTIFIER.test(A))return new n(`${A}`);throw new Error(`CodeGen: invalid export name: ${A}, use explicit $id name mapping`)}e.getEsmExportName=x;function P(A){return new n(A.toString())}e.regexpCode=P})(qo)),qo}var Co={},Pc;function $c(){return Pc||(Pc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Di();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(p){p[p.Started=0]="Started",p[p.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:d}={}){this._names={},this._prefixes=l,this._parent=d}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const d=this._names[l]||this._nameGroup(l);return`${l}${d.index++}`}_nameGroup(l){var d,h;if(!((h=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||h===void 0)&&h.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class o extends t.Name{constructor(l,d){super(d),this.prefix=l}setValue(l,{property:d,itemIndex:h}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(d)}[${h}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class c extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,d){var h;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(l),{prefix:g}=y,$=(h=d.key)!==null&&h!==void 0?h:d.ref;let x=this._values[g];if(x){const S=x.get($);if(S)return S}else x=this._values[g]=new Map;x.set($,y);const P=this._scope[g]||(this._scope[g]=[]),A=P.length;return P[A]=d.ref,y.setValue(d,{property:g,itemIndex:A}),y}getValue(l,d){const h=this._values[l];if(h)return h.get(d)}scopeRefs(l,d=this._values){return this._reduceValues(d,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${l}${h.scopePath}`})}scopeCode(l=this._values,d,h){return this._reduceValues(l,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},d,h)}_reduceValues(l,d,h={},y){let g=t.nil;for(const $ in l){const x=l[$];if(!x)continue;const P=h[$]=h[$]||new Map;x.forEach(A=>{if(P.has(A))return;P.set(A,n.Started);let S=d(A);if(S){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;g=(0,t._)`${g}${v} ${A} = ${S};${this.opts._n}`}else if(S=y?.(A))g=(0,t._)`${g}${S}${this.opts._n}`;else throw new r(A);P.set(A,n.Completed)})}return g}}e.ValueScope=c})(Co)),Co}var Ac;function ke(){return Ac||(Ac=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=Di(),r=$c();var n=Di();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=$c();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(w,D){return this}}class s extends o{constructor(w,D,K){super(),this.varKind=w,this.name=D,this.rhs=K}render({es5:w,_n:D}){const K=w?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${K} ${this.name}${V};`+D}optimizeNames(w,D){if(w[this.name.str])return this.rhs&&(this.rhs=ie(this.rhs,w,D)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends o{constructor(w,D,K){super(),this.lhs=w,this.rhs=D,this.sideEffects=K}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,D){if(!(this.lhs instanceof t.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=ie(this.rhs,w,D),this}get names(){const w=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ee(w,this.rhs)}}class p extends c{constructor(w,D,K,V){super(w,K,V),this.op=D}render({_n:w}){return`${this.lhs} ${this.op}= ${this.rhs};`+w}}class l extends o{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class d extends o{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class h extends o{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class y extends o{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code};`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,D){return this.code=ie(this.code,w,D),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class g extends o{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((D,K)=>D+K.render(w),"")}optimizeNodes(){const{nodes:w}=this;let D=w.length;for(;D--;){const K=w[D].optimizeNodes();Array.isArray(K)?w.splice(D,1,...K):K?w[D]=K:w.splice(D,1)}return w.length>0?this:void 0}optimizeNames(w,D){const{nodes:K}=this;let V=K.length;for(;V--;){const re=K[V];re.optimizeNames(w,D)||(Pe(w,re.names),K.splice(V,1))}return K.length>0?this:void 0}get names(){return this.nodes.reduce((w,D)=>de(w,D.names),{})}}class $ extends g{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class x extends g{}class P extends ${}P.kind="else";class A extends ${constructor(w,D){super(D),this.condition=w}render(w){let D=`if(${this.condition})`+super.render(w);return this.else&&(D+="else "+this.else.render(w)),D}optimizeNodes(){super.optimizeNodes();const w=this.condition;if(w===!0)return this.nodes;let D=this.else;if(D){const K=D.optimizeNodes();D=this.else=Array.isArray(K)?new P(K):K}if(D)return w===!1?D instanceof A?D:D.nodes:this.nodes.length?this:new A(Ie(w),D instanceof A?[D]:D.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,D){var K;if(this.else=(K=this.else)===null||K===void 0?void 0:K.optimizeNames(w,D),!!(super.optimizeNames(w,D)||this.else))return this.condition=ie(this.condition,w,D),this}get names(){const w=super.names;return ee(w,this.condition),this.else&&de(w,this.else.names),w}}A.kind="if";class S extends ${}S.kind="for";class v extends S{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,D){if(super.optimizeNames(w,D))return this.iteration=ie(this.iteration,w,D),this}get names(){return de(super.names,this.iteration.names)}}class O extends S{constructor(w,D,K,V){super(),this.varKind=w,this.name=D,this.from=K,this.to=V}render(w){const D=w.es5?r.varKinds.var:this.varKind,{name:K,from:V,to:re}=this;return`for(${D} ${K}=${V}; ${K}<${re}; ${K}++)`+super.render(w)}get names(){const w=ee(super.names,this.from);return ee(w,this.to)}}class b extends S{constructor(w,D,K,V){super(),this.loop=w,this.varKind=D,this.name=K,this.iterable=V}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,D){if(super.optimizeNames(w,D))return this.iterable=ie(this.iterable,w,D),this}get names(){return de(super.names,this.iterable.names)}}class k extends ${constructor(w,D,K){super(),this.name=w,this.args=D,this.async=K}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}k.kind="func";class M extends g{render(w){return"return "+super.render(w)}}M.kind="return";class H extends ${render(w){let D="try"+super.render(w);return this.catch&&(D+=this.catch.render(w)),this.finally&&(D+=this.finally.render(w)),D}optimizeNodes(){var w,D;return super.optimizeNodes(),(w=this.catch)===null||w===void 0||w.optimizeNodes(),(D=this.finally)===null||D===void 0||D.optimizeNodes(),this}optimizeNames(w,D){var K,V;return super.optimizeNames(w,D),(K=this.catch)===null||K===void 0||K.optimizeNames(w,D),(V=this.finally)===null||V===void 0||V.optimizeNames(w,D),this}get names(){const w=super.names;return this.catch&&de(w,this.catch.names),this.finally&&de(w,this.finally.names),w}}class G extends ${constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.render(w)}}G.kind="catch";class Z extends ${render(w){return"finally"+super.render(w)}}Z.kind="finally";class te{constructor(w,D={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...D,_n:D.lines?`
|
|
1
|
+
"use strict";const Y=require("./replay-index-DVkfkNqt.js"),j=require("./replay-resolve-DDmWLwbh.js");var Tt=typeof document<"u"?document.currentScript:null;function Dt(e,t){let r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Dt(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n&&!Object.prototype.hasOwnProperty.call(t,r)||!(r in t)||!Dt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function hr(e){return Y.isPlainObject(e)&&Object.keys(e).length===0}function Fr(e){return Array.isArray(e)&&e.length>0}function it(e){return typeof e=="string"}function Hs(e){return e?Object.keys(e):[]}function fy(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ei={exports:{}},my=Ei.exports,ac;function hy(){return ac||(ac=1,(function(e,t){(function(r,n){typeof fy=="function"?e.exports=n():r.pluralize=n()})(my,function(){var r=[],n=[],i={},o={},s={};function c(x){return typeof x=="string"?new RegExp("^"+x+"$","i"):x}function p(x,P){return x===P?P:x===x.toLowerCase()?P.toLowerCase():x===x.toUpperCase()?P.toUpperCase():x[0]===x[0].toUpperCase()?P.charAt(0).toUpperCase()+P.substr(1).toLowerCase():P.toLowerCase()}function l(x,P){return x.replace(/\$(\d{1,2})/g,function(A,S){return P[S]||""})}function d(x,P){return x.replace(P[0],function(A,S){var v=l(P[1],arguments);return p(A===""?x[S-1]:A,v)})}function h(x,P,A){if(!x.length||i.hasOwnProperty(x))return P;for(var S=A.length;S--;){var v=A[S];if(v[0].test(P))return d(P,v)}return P}function y(x,P,A){return function(S){var v=S.toLowerCase();return P.hasOwnProperty(v)?p(S,v):x.hasOwnProperty(v)?p(S,x[v]):h(v,S,A)}}function g(x,P,A,S){return function(v){var O=v.toLowerCase();return P.hasOwnProperty(O)?!0:x.hasOwnProperty(O)?!1:h(O,O,A)===O}}function $(x,P,A){var S=P===1?$.singular(x):$.plural(x);return(A?P+" ":"")+S}return $.plural=y(s,o,r),$.isPlural=g(s,o,r),$.singular=y(o,s,n),$.isSingular=g(o,s,n),$.addPluralRule=function(x,P){r.push([c(x),P])},$.addSingularRule=function(x,P){n.push([c(x),P])},$.addUncountableRule=function(x){if(typeof x=="string"){i[x.toLowerCase()]=!0;return}$.addPluralRule(x,"$0"),$.addSingularRule(x,"$0")},$.addIrregularRule=function(x,P){P=P.toLowerCase(),x=x.toLowerCase(),s[x]=P,o[P]=x},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(x){return $.addIrregularRule(x[0],x[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(x){return $.addPluralRule(x[0],x[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(x){return $.addSingularRule(x[0],x[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach($.addUncountableRule),$})})(Ei)),Ei.exports}var yy=hy();const xu=Y.getDefaultExportFromCjs(yy);function gy(e,t,r){return e.split(" ").map(n=>xu(n,t,r)).join(" ")}function Ks(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function Lr(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}const by=/^[0-9][0-9Xx]{2}$/,vy={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},wy={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},xy={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},Sy={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Py={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},$y={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},Ay={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},Ey={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},Oy={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Ry={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},_y={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},Ty={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(e){return!e||!e.in?["name","in"]:e.in==="body"?["name","in","schema"]:e.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},ky={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return e&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},Iy={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>by.test(t)?"Response":void 0},qy={properties:{description:{type:"string"},schema:"Schema",headers:j.mapOf("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Cy={properties:{},additionalProperties:{isExample:!0}},jy={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return Y.isPlainObject(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},My={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Dy={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},Ny={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?j.listOf("Schema"):"Schema",allOf:j.listOf("Schema"),properties:"SchemaProperties",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},Ly={properties:{},additionalProperties:{type:"string"}},Uy={properties:{},additionalProperties:"Schema"},Fy={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},zy={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},By={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:"Scopes","x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(e){switch(e?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},Vy={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Hy={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},Su={Root:vy,Tag:My,TagList:j.listOf("Tag"),TagGroups:j.listOf("TagGroup"),TagGroup:Dy,ExternalDocs:_y,Example:Hy,ExamplesMap:j.mapOf("Example"),EnumDescriptions:Ly,SecurityRequirement:Vy,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:wy,Contact:Sy,License:Py,Logo:xy,Paths:$y,PathItem:Ay,Parameter:Ty,ParameterItems:ky,ParameterList:j.listOf("Parameter"),Operation:Ey,Examples:Cy,Header:jy,Responses:Iy,Response:qy,Schema:Ny,Xml:Fy,SchemaProperties:Uy,NamedSchemas:j.mapOf("Schema"),NamedResponses:j.mapOf("Response"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),SecurityScheme:By,Scopes:zy,XCodeSample:Oy,XCodeSampleList:j.listOf("XCodeSample"),XServerList:j.listOf("XServer"),XServer:Ry},Ky=/^[0-9][0-9Xx]{2}$/,Wy={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},Qy={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A description for the tag."},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-",description:"The Tag Object represents a tag used by the OAS. It is not mandatory to have a tag object per tag used by the OAS but each tag object can contain additional metadata."},Gy={properties:{name:{type:"string",description:"The display name for the tag, used in the navigation bar and as a section heading."},tags:{type:"array",description:"List of tags to include in this group.",items:{type:"string"}}},extensionsPrefix:"x-",description:"The x-tagGroups extension is used at the top level of an OpenAPI description.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-tag-groups#taggroup-object"},Yy={properties:{description:{type:"string",description:"A description of the target documentation. Used as the link anchor text in Redocly. If not provided, the url is used as the link anchor text."},url:{type:"string",description:"REQUIRED. The URL for the target documentation."}},required:["url"],extensionsPrefix:"x-",description:"Additional external documentation for this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/external-docs"},Jy={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenAPI document is being served. Variable substitutions are made when a variable is named in { curly braces }."},description:{type:"string",description:"An optional string describing the host designated by the URL."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"A server object to be used by the target operation."},Xy={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. If defined, the array MUST contain the default value."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object's treatment of default values, because in those cases parameter values are optional. If the enum is defined, the value MUST exist in the enum's values."},description:{type:"string",description:"An optional description for the server variable."}},required:["default"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/server-variables#server-variables",description:"Server variables are used when you need to make a substitution into the server URL such as when the subdomain is unique per tenant."},Zy={properties:{},additionalProperties:{type:"array",items:{type:"string"}},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/security#security-requirement-object",description:"A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. To make security optional, an empty security requirement ({}) can be included in the array."},eg={properties:{title:{type:"string",description:"REQUIRED. The title of the API."},version:{type:"string",description:"REQUIRED. The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version)."},description:{type:"string",description:"RECOMMENDED. A description of the API (Markdown may be used)."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API."},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/info#info"},tg={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},documentationLink:"https://redocly.com/docs-legacy/api-reference-docs/specification-extensions/x-logo#x-logo",description:"A commonly used specification extension containing the information about the API logo."},rg={properties:{name:{type:"string",description:"The identifying name of the contact person or organization."},url:{type:"string",description:"The URL pointing to the contact information."},email:{type:"string",description:"The email address of the contact person or organization."}},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/contact",description:"The contact information for the exposed API."},ng={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"The URL pointing to the contact information."}},required:["name"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/license#license",description:"The license information for the exposed API."},ig={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0,description:"The Paths Object is a map of a paths to the path item object. A path starts with a /.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/paths#paths-object"},og={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},sg={properties:{$ref:{type:"string",description:"Allows for a referenced definition of this path item. The referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/reference"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string",description:"An optional, string summary, intended to apply to all operations in this path."},description:{type:"string",description:"An optional, string description, intended to apply to all operations in this path."},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation","x-query":"Operation"},extensionsPrefix:"x-",description:"Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/path-item#path-item-object"},ag={properties:{name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},in:{enum:["query","header","path","cookie"],description:'REQUIRED. The location of the parameter. Possible values are "query", "header", "path", or "cookie".'},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use."},required:{type:"boolean",description:'Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.'},deprecated:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},allowEmptyValue:{type:"boolean",description:"Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is likely to be removed in a later revision."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how the parameter value will be serialized depending on the type of the parameter value. Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form."},explode:{type:"boolean",description:"When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding. This property only applies to parameters with an in value of query. The default value is false."},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-",description:"Describes a request parameter, which excludes the request body. A unique parameter is defined by a unique combination of the name and in values.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/parameter"},cg={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation"},pg={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}},documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-code-samples",description:"Code samples are snippets of code shown alongside API operations in reference documentation, giving users a quick way to start to interact with an API from their own code. The x-codeSamples addition to OpenAPI allows you to add or override any existing code samples for a particular language or endpoint."},lg={properties:{description:{type:"string",description:"A brief description of the request body. This could contain examples of use."},required:{type:"boolean",description:"Determines if the request body is required in the request. Defaults to false."},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/request-body",description:"The request body is defined inside of operations (including paths and webhooks). The request body can also be defined inside of the named requestBodies object in components."},ug={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},dg={properties:{schema:"Schema",example:{isExample:!0,description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema."},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-",description:"The Media Type Object is one of the important building blocks of OpenAPI.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type"},fg={properties:{value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary."},summary:{type:"string"},description:{type:"string",description:"Long description for the example."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/example"},mg={properties:{contentType:{type:"string",description:"The Content-Type for encoding a specific property. Default value depends on the property type: for string with format being binary – application/octet-stream; for other primitive types – text/plain; for object - application/json; for array – the default is defined based on the inner type. The value can be a specific media type (e.g. application/json), a wildcard media type (e.g. image/*), or a comma-separated list of the two types."},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how a specific property value will be serialized depending on its type. See Parameter Object for details on the style property. The behavior follows the same values as query parameters, including default values. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},explode:{type:"boolean",description:"When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] Section 2.2 :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."}},extensionsPrefix:"x-",description:"A single encoding definition applied to a single schema property.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/encoding#types"},hg={properties:{},additionalProperties:{type:"string"},description:'The enum (short for "enumeration") fields in OpenAPI allow you to restrict the value of a field to a list of allowed values. These values need to be short and machine-readable, but that can make them harder for humans to parse and work with.',documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-enum-descriptions"},yg={properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines whether this parameter is mandatory. Its default value is false."},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0,description:"Example of the header's potential value. The example SHOULD match the specified schema and encoding properties if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema that contains an example, the example value SHALL override the example provided by the schema. To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary."},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/header#header-object",description:"The header object is used to describe a response header in the headers map."},gg={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Ky.test(t)?"Response":void 0,description:"The list of possible responses as they are returned from executing this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/named-responses"},bg={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-summary#openapi-extension-x-summary",description:"Use x-summary to add a short custom text to describe the response in the API documentation."}},required:["description"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/response",description:"The response object describes a single response in the Responses Map."},vg={properties:{operationRef:{type:"string",description:"A relative or absolute reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI definition."},operationId:{type:"string",description:"The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field."},parameters:null,requestBody:null,description:{type:"string",description:"A description of the link."},server:"Server"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/links",description:"The Link object represents a possible design-time link for a response. The presence of a link does not guarantee the caller’s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations."},Ws="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",Pu=j.listOf("Schema",{name:"AllOf",description:Ws}),$u=j.listOf("Schema",{name:"AnyOf",description:Ws}),Au=j.listOf("Schema",{name:"OneOf",description:Ws}),wg={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string",description:"Value MUST be a string. Multiple types via an array are not supported."},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string",description:"(This string SHOULD be a valid regular expression, according to the Ecma-262 Edition 5.1 regular expression dialect)"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"],description:"Value MUST be a string. Multiple types via an array are not supported."},allOf:Pu,anyOf:$u,oneOf:Au,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?j.listOf("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string",description:"CommonMark syntax MAY be used for rich text representation."},format:{type:"string",description:"See Data Type Formats for further details. While relying on JSON Schema's defined formats, the OAS offers a few additional predefined formats."},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-",description:"The schema defining the content of the request, response, or parameter.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/schemas"},xg={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-",description:"This MAY be used only on properties schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property."},Sg={properties:{},additionalProperties:"Schema"},Pg={properties:{},additionalProperties:e=>typeof e=="string"&&j.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},$g={properties:{propertyName:{type:"string",description:"REQUIRED. The name of the property in the payload that will hold the discriminator value."},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#discriminator-object",description:"When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the document of an alternative schema based on the value associated with it."},Ag={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/components#components"},Eg={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Implicit flow."},Og={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Object Configuration for the OAuth Resource Owner Password flow."},Rg={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0."},_g={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":e=>typeof e=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0."},Tg={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},kg={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"],description:'REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "oauth2", "openIdConnect".'},description:{type:"string",description:"A short description for security scheme."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie"],description:'REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie".'},scheme:{type:"string",description:"A short description for security scheme."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"OAuth2Flows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL."},"x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},Ig={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}},description:"The x-usePkce allows you to enable Proof Key for Code Exchange (PKCE) for the Oauth2 or OpenID Connect authorization code flow in the Replay.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-use-pkce#openapi-extension-x-usepkce"},Pt={Root:Wy,Tag:Qy,TagList:j.listOf("Tag",{documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/tags",description:"A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique."}),TagGroups:j.listOf("TagGroup"),TagGroup:Gy,ExternalDocs:Yy,Server:Jy,ServerList:j.listOf("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:Xy,ServerVariablesMap:j.mapOf("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:Zy,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:eg,Contact:rg,License:ng,Paths:ig,PathItem:sg,Parameter:ag,ParameterList:j.listOf("Parameter",{description:"A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object’s components/parameters."}),Operation:cg,Callback:j.mapOf("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:j.mapOf("Callback"),RequestBody:lg,MediaTypesMap:ug,MediaType:dg,Example:fg,ExamplesMap:j.mapOf("Example"),Encoding:mg,EncodingMap:j.mapOf("Encoding"),EnumDescriptions:hg,Header:yg,HeadersMap:j.mapOf("Header"),Responses:gg,Response:bg,Link:vg,Logo:tg,Schema:wg,AllOf:Pu,AnyOf:$u,OneOf:Au,Xml:xg,SchemaProperties:Sg,DiscriminatorMapping:Pg,Discriminator:$g,Components:Ag,LinksMap:j.mapOf("Link"),NamedSchemas:j.mapOf("Schema"),NamedResponses:j.mapOf("Response"),NamedParameters:j.mapOf("Parameter"),NamedExamples:j.mapOf("Example"),NamedRequestBodies:j.mapOf("RequestBody"),NamedHeaders:j.mapOf("Header"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedLinks:j.mapOf("Link"),NamedCallbacks:j.mapOf("Callback"),ImplicitFlow:Eg,PasswordFlow:Og,ClientCredentials:Rg,AuthorizationCode:_g,OAuth2Flows:Tg,SecurityScheme:kg,XCodeSample:pg,XCodeSampleList:j.listOf("XCodeSample"),XUsePkce:Ig,WebhooksMap:og},qg={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string",description:"The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI."}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},Cg={...Pt.License,properties:{...Pt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},jg={...Pt.Info,properties:{...Pt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Mg={...Pt.Components,properties:{...Pt.Components.properties,pathItems:"NamedPathItems"}},Dg={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed."},Ng={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:j.listOf("Schema",{name:"AllOf"}),anyOf:j.listOf("Schema",{name:"AnyOf"}),oneOf:j.listOf("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:j.mapOf("Schema"),dependentRequired:"DependentRequired",prefixItems:j.listOf("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},cc={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Lg={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},Ug={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Fe={...Pt,Info:jg,Root:qg,Schema:Ng,SchemaProperties:cc,PatternProperties:cc,License:Cg,Components:Mg,NamedPathItems:j.mapOf("PathItem"),SecurityScheme:Lg,Operation:Dg,DependentRequired:Ug},Fg={...Fe.Root,properties:{...Fe.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1. Implementations MUST support identifying the targets of API description URIs using the URI defined by this field when it is present. See Establishing the Base URI for the base URI behavior when $self is absent or relative, and see Appendix F for examples of using $self to resolve references."}}},zg={...Fe.Tag,properties:{...Fe.Tag.properties,kind:{type:"string",description:"A machine-readable string to categorize what sort of tag it is. Any string value can be used; common uses are nav for Navigation, badge for visible badges, audience for APIs used by different groups. A registry of the most commonly used values is available."},parent:{type:"string",description:"The name of a tag that this tag is nested under. The named tag MUST exist in the API description, and circular references between parent and child tags MUST NOT be used."},summary:{type:"string",description:"A short summary of the tag, used for display purposes."}},description:"Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances."},Bg={...Fe.Server,properties:{...Fe.Server.properties,name:{type:"string",description:"An optional unique string to refer to the host designated by the URL."}},description:"An object representing a Server."},Vg={...Fe.SecurityScheme,properties:{...Fe.SecurityScheme.properties,deprecated:{type:"boolean",description:"Declares this security scheme to be deprecated. Consumers SHOULD refrain from usage of the declared scheme. Default value is false."},oauth2MetadataUrl:{type:"string",description:"URL to the OAuth2 authorization server metadata [RFC8414]. TLS is required."}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description","deprecated"];case"http":return["type","scheme","bearerFormat","description","deprecated"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"deviceAuthorization":return["type","flows","deviceAuthorizationUrl","tokenUrl"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"]}case"openIdConnect":return["type","openIdConnectUrl","description","deprecated"];case"mutualTLS":return["type","description","deprecated"];default:return["type","description","deprecated"]}},description:"Defines a security scheme that can be used by the operations."},Hg={...Fe.OAuth2Flows,properties:{...Fe.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Kg={properties:{deviceAuthorizationUrl:{type:"string",description:"REQUIRED. The device authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},tokenUrl:{type:"string",description:"REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},refreshUrl:{type:"string",description:"The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},scopes:j.mapOf("string",{description:"REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."})},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Device Authorization flow."},Wg={...Pt.PathItem,properties:{...Pt.PathItem.properties,query:"Operation",additionalOperations:j.mapOf("Operation")}},Qg={...Fe.Parameter,properties:{...Fe.Parameter.properties,in:{description:'REQUIRED. The location of the parameter. Possible values are "query", "querystring", "header", "path" or "cookie".',enum:["query","header","path","cookie","querystring"]}}},Gg={...Fe.Response,properties:{...Fe.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},Yg={...Fe.MediaType,properties:{...Fe.MediaType.properties,itemSchema:"Schema",prefixEncoding:j.listOf("Encoding",{description:"A map between a property name and its encoding information, as defined under Encoding By Name. The encoding field SHALL only apply when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. This field MUST NOT be present if prefixEncoding or itemEncoding are present."}),itemEncoding:"Encoding"}},Jg={...Fe.Discriminator,properties:{...Fe.Discriminator.properties,defaultMapping:e=>{const t="The schema name or URI reference to a schema that is expected to validate the structure of the model when the discriminating property is not present in the payload or contains a value for which there is no explicit or implicit mapping.";return j.isMappingRef(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},Xg={extensionsPrefix:"x-",properties:{...Fe.Components.properties,mediaTypes:"NamedMediaTypes"}},Zg={...Fe.Example,properties:{...Fe.Example.properties,dataValue:{resolvable:!1,description:"An example of the data structure that MUST be valid according to the relevant Schema Object. If this field is present, value MUST be absent."},serializedValue:{type:"string",description:"An example of the serialized form of the value, including encoding and escaping as described under Validating Examples. If dataValue is present, then this field SHOULD contain the serialization of the given data. Otherwise, it SHOULD be the valid serialization of a data value that itself MUST be valid as described for dataValue. This field SHOULD NOT be used if the serialization format is JSON, as the data form is easier to work with. If this field is present, value, and externalValue MUST be absent."}}},eb={properties:{nodeType:{type:"string",enum:["element","attribute","text","cdata","none"],description:'One of element, attribute, text, cdata, or none, as explained under XML Node Types. The default value is none if $ref, $dynamicRef, or type: "array" is present in the Schema Object containing the XML Object, and element otherwise.'},name:{type:"string",description:"Sets the name of the element/attribute corresponding to the schema, replacing the name that was inferred as described under XML Node Names. This field SHALL be ignored if the nodeType is text, cdata, or none."},namespace:{type:"string",description:"The IRI ([RFC3987]) of the namespace definition. Value MUST be in the form of a non-relative IRI."},prefix:{type:"string",description:"The prefix to be used for the name."},attribute:{type:"boolean",description:'Declares whether the property definition translates to an attribute instead of an element. Default value is false. If nodeType is present, this field MUST NOT be present.Deprecated: Use nodeType: "attribute" instead of attribute: true.'},wrapped:{type:"boolean",description:'MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). If nodeType is present, this field MUST NOT be present. Deprecated: Use nodeType: "element" instead of wrapped: true.'}},extensionsPrefix:"x-",description:"A metadata object that allows for more fine-tuned XML model definitions. When using a Schema Object with XML, if no XML Object is present, the behavior is determined by the XML Object’s default field values."},tb={...Fe.Schema,properties:{...Fe.Schema.properties,xml:"Xml"}},nt={...Fe,Root:Fg,Tag:zg,Server:Bg,SecurityScheme:Vg,OAuth2Flows:Hg,DeviceAuthorization:Kg,PathItem:Wg,Parameter:Qg,Response:Gg,MediaType:Yg,Discriminator:Jg,Example:Zg,Xml:eb,Schema:tb,Components:Xg,NamedMediaTypes:j.mapOf("MediaTypesMap")},rb={properties:{},description:"Protocol-specific information for an HTTP channel."},nb={properties:{},description:"Protocol-specific information for an HTTP server."},ib={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},ob={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP operation."},sb={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},ab={properties:{},description:"Protocol-specific information for a WebSockets server."},cb={properties:{},description:"Protocol-specific information for a WebSockets message."},pb={properties:{},description:"Protocol-specific information for a WebSockets operation."},lb={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"},"confluent.key.schema.validation":{type:"boolean"},"confluent.key.subject.name.strategy":{type:"string"},"confluent.value.schema.validation":{type:"boolean"},"confluent.value.subject.name.strategy":{type:"string"}}},ub={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},db={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},fb={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},mb={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},hb={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},yb={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},gb={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},bb={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},vb={properties:{name:{type:"string"},type:{type:"string",enum:["topic","direct","fanout","default","headers"]},durable:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP exchange the channel is bound to."},wb={properties:{name:{type:"string"},durable:{type:"boolean"},exclusive:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP queue the channel is bound to."},xb={properties:{is:{type:"string",enum:["queue","routingKey"]},exchange:"AmqpChannelExchange",queue:"AmqpChannelQueue",bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 channel."},Sb={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},Pb={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},$b={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 operation."},Ab={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},Eb={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},Ob={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},Rb={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},_b={properties:{},description:"Protocol-specific information for an MQTT channel."},Tb={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},kb={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},maximumPacketSize:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},Ib={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>Y.isPlainObject(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},qb={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},Cb={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},jb={properties:{sessionExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},Mb={properties:{},description:"Protocol-specific information for an MQTT 5 message."},Db={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},Nb={properties:{},description:"Protocol-specific information for a NATS channel."},Lb={properties:{},description:"Protocol-specific information for a NATS server."},Ub={properties:{},description:"Protocol-specific information for a NATS message."},Fb={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},zb={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},Bb={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},Vb={properties:{jmsConnectionFactory:{type:"string"},properties:j.listOf("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Hb={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Kb={properties:{},description:"Protocol-specific information for a JMS operation."},Wb={properties:{},description:"Protocol-specific information for a Solace channel."},Qb={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Gb={properties:{},description:"Protocol-specific information for a Solace message."},Yb={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxMsgSpoolUsage":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},Jb={properties:{bindingVersion:{type:"string"},destinations:j.listOf("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},Xb={properties:{url:{type:"string"},email:{type:"string"},phone:{type:"string"},arn:{type:"string"},name:{type:"string"}},description:"Identifies an SNS resource: exactly one of url, email, phone, arn, or name."},Zb={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},ev={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},tv={properties:{statements:j.listOf("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},rv={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},nv={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},iv={properties:{minDelayTarget:{type:"integer"},maxDelayTarget:{type:"integer"},numRetries:{type:"integer"},numNoDelayRetries:{type:"integer"},numMinDelayRetries:{type:"integer"},numMaxDelayRetries:{type:"integer"},backoffFunction:{type:"string",enum:["arithmetic","exponential","geometric","linear"]},maxReceivesPerSecond:{type:"integer"}},description:"Defines how SNS retries the delivery of messages to a subscription endpoint."},ov={properties:{protocol:{type:"string",enum:["http","https","email","email-json","sms","sqs","application","lambda","firehose"]},endpoint:"SnsIdentifier",filterPolicy:{type:"object"},filterPolicyScope:{type:"string",enum:["MessageAttributes","MessageBody"]},rawMessageDelivery:{type:"boolean"},redrivePolicy:"SnsRedrivePolicy",deliveryPolicy:"SnsDeliveryPolicy",displayName:{type:"string"}},required:["protocol","endpoint","rawMessageDelivery"],description:"Describes an SNS subscription consuming messages from a topic."},sv={properties:{topic:"SnsIdentifier",consumers:j.listOf("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},av={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},cv={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},pv={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},lv={properties:{statements:j.listOf("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},Eu={properties:{name:{type:"string"},fifoQueue:{type:"boolean"},deduplicationScope:{type:"string",enum:["queue","messageGroup"]},fifoThroughputLimit:{type:"string",enum:["perQueue","perMessageGroupId"]},deliveryDelay:{type:"integer"},visibilityTimeout:{type:"integer"},receiveMessageWaitTime:{type:"integer"},messageRetentionPeriod:{type:"integer"},redrivePolicy:"SqsRedrivePolicy",policy:"SqsPolicy",tags:{type:"object"}},required:["name","fifoQueue"],description:"Describes an SQS queue (channel-level definition)."},uv={...Eu,required:["name"],description:"Describes an SQS queue (operation-level definition)."},dv={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},fv={properties:{queues:j.listOf("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},mv={properties:{},description:"Protocol-specific information for a STOMP channel."},hv={properties:{},description:"Protocol-specific information for a STOMP server."},yv={properties:{},description:"Protocol-specific information for a STOMP message."},gv={properties:{},description:"Protocol-specific information for a STOMP operation."},bv={properties:{},description:"Protocol-specific information for a Redis channel."},vv={properties:{},description:"Protocol-specific information for a Redis server."},wv={properties:{},description:"Protocol-specific information for a Redis message."},xv={properties:{},description:"Protocol-specific information for a Redis operation."},Sv={properties:{},description:"Protocol-specific information for a Mercure channel."},Pv={properties:{},description:"Protocol-specific information for a Mercure server."},$v={properties:{},description:"Protocol-specific information for a Mercure message."},Av={properties:{},description:"Protocol-specific information for a Mercure operation."},Ev={properties:{groupId:{type:"string"},ccdtQueueManagerName:{type:"string"},cipherSpec:{type:"string"},multiEndpointServer:{type:"boolean"},heartBeatInterval:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ server."},Ov={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},Rv={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},_v={properties:{destinationType:{type:"string",enum:["topic","queue"]},queue:"IbmmqChannelQueue",topic:"IbmmqChannelTopic",maxMsgLength:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ channel."},Tv={properties:{type:{type:"string",enum:["string","jms","binary"]},headers:{type:"string"},description:{type:"string"},expiry:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ message."},kv={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},Iv={properties:{encoding:{type:"string"},firstRevisionId:{type:"string"},lastRevisionId:{type:"string"},name:{type:"string"}},required:["encoding","name"],description:"Settings for validating Google Cloud Pub/Sub messages against a schema."},qv={properties:{labels:{type:"object"},messageRetentionDuration:{type:"string"},messageStoragePolicy:"GooglepubsubMessageStoragePolicy",schemaSettings:"GooglepubsubSchemaSettings",topic:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub channel."},Cv={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},jv={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},Mv={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},Dv={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},Nv={properties:{namespace:{type:"string"},persistence:{type:"string",enum:["persistent","non-persistent"]},compaction:{type:"integer"},"geo-replication":{type:"array",items:{type:"string"}},retention:"PulsarRetention",ttl:{type:"integer"},deduplication:{type:"boolean"},bindingVersion:{type:"string"}},required:["namespace","persistence"],description:"Protocol-specific information for a Pulsar channel."},Lv={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},Uv={properties:{},description:"Protocol-specific information for a ROS 2 channel."},Fv={properties:{reliability:{type:"string",enum:["best_effort","reliable"]},history:{type:"string",enum:["keep_last","keep_all","unknown"]},durability:{type:"string",enum:["transient_local","volatile"]},lifespan:{type:"integer"},deadline:{type:"integer"},liveliness:{type:"string",enum:["automatic","manual"]},leaseDuration:{type:"integer"}},description:"Quality of Service settings for a ROS 2 operation."},zv={properties:{role:{type:"string",enum:["publisher","subscriber","service_client","service_server","action_client","action_server"]},node:{type:"string"},qosPolicies:"Ros2QosPolicies",bindingVersion:{type:"string"}},description:"Protocol-specific information for a ROS 2 operation."},Bv={properties:{},description:"Protocol-specific information for a ROS 2 message."},Vv={extensionsPrefix:"x-",properties:{http:"HttpServerBinding",ws:"WsServerBinding",kafka:"KafkaServerBinding",anypointmq:"AnypointmqServerBinding",amqp:"AmqpServerBinding",amqp1:"Amqp1ServerBinding",mqtt:"MqttServerBinding",mqtt5:"Mqtt5ServerBinding",nats:"NatsServerBinding",jms:"JmsServerBinding",solace:"SolaceServerBinding",stomp:"StompServerBinding",redis:"RedisServerBinding",mercure:"MercureServerBinding",ibmmq:"IbmmqServerBinding",pulsar:"PulsarServerBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a server."},Hv={extensionsPrefix:"x-",properties:{http:"HttpChannelBinding",ws:"WsChannelBinding",kafka:"KafkaChannelBinding",anypointmq:"AnypointmqChannelBinding",amqp:"AmqpChannelBinding",amqp1:"Amqp1ChannelBinding",mqtt:"MqttChannelBinding",mqtt5:"Mqtt5ChannelBinding",nats:"NatsChannelBinding",jms:"JmsChannelBinding",solace:"SolaceChannelBinding",stomp:"StompChannelBinding",redis:"RedisChannelBinding",mercure:"MercureChannelBinding",sns:"SnsChannelBinding",sqs:"SqsChannelBinding",ibmmq:"IbmmqChannelBinding",googlepubsub:"GooglepubsubChannelBinding",pulsar:"PulsarChannelBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a channel."},Kv={extensionsPrefix:"x-",properties:{http:"HttpOperationBinding",ws:"WsOperationBinding",kafka:"KafkaOperationBinding",anypointmq:"AnypointmqOperationBinding",amqp:"AmqpOperationBinding",amqp1:"Amqp1OperationBinding",mqtt:"MqttOperationBinding",mqtt5:"Mqtt5OperationBinding",nats:"NatsOperationBinding",jms:"JmsOperationBinding",solace:"SolaceOperationBinding",stomp:"StompOperationBinding",redis:"RedisOperationBinding",mercure:"MercureOperationBinding",sns:"SnsOperationBinding",sqs:"SqsOperationBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for an operation."},Wv={extensionsPrefix:"x-",properties:{http:"HttpMessageBinding",ws:"WsMessageBinding",kafka:"KafkaMessageBinding",anypointmq:"AnypointmqMessageBinding",amqp:"AmqpMessageBinding",amqp1:"Amqp1MessageBinding",mqtt:"MqttMessageBinding",mqtt5:"Mqtt5MessageBinding",nats:"NatsMessageBinding",jms:"JmsMessageBinding",solace:"SolaceMessageBinding",stomp:"StompMessageBinding",redis:"RedisMessageBinding",mercure:"MercureMessageBinding",ibmmq:"IbmmqMessageBinding",googlepubsub:"GooglepubsubMessageBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a message."},Ot={HttpServerBinding:nb,HttpChannelBinding:rb,HttpMessageBinding:ib,HttpOperationBinding:ob,WsServerBinding:ab,WsChannelBinding:sb,WsMessageBinding:cb,WsOperationBinding:pb,KafkaServerBinding:db,KafkaTopicConfiguration:lb,KafkaChannelBinding:ub,KafkaMessageBinding:fb,KafkaOperationBinding:mb,AnypointmqServerBinding:yb,AnypointmqChannelBinding:hb,AnypointmqMessageBinding:gb,AnypointmqOperationBinding:bb,AmqpServerBinding:Sb,AmqpChannelExchange:vb,AmqpChannelQueue:wb,AmqpChannelBinding:xb,AmqpMessageBinding:Pb,AmqpOperationBinding:$b,Amqp1ServerBinding:Eb,Amqp1ChannelBinding:Ab,Amqp1MessageBinding:Ob,Amqp1OperationBinding:Rb,MqttServerBindingLastWill:Tb,MqttServerBinding:kb,MqttChannelBinding:_b,MqttMessageBinding:Ib,MqttOperationBinding:qb,Mqtt5ServerBinding:jb,Mqtt5ChannelBinding:Cb,Mqtt5MessageBinding:Mb,Mqtt5OperationBinding:Db,NatsServerBinding:Lb,NatsChannelBinding:Nb,NatsMessageBinding:Ub,NatsOperationBinding:Fb,JmsServerBindingProperty:Bb,JmsServerBinding:Vb,JmsChannelBinding:zb,JmsMessageBinding:Hb,JmsOperationBinding:Kb,SolaceServerBinding:Qb,SolaceChannelBinding:Wb,SolaceMessageBinding:Gb,SolaceDestination:Yb,SolaceOperationBinding:Jb,StompServerBinding:hv,StompChannelBinding:mv,StompMessageBinding:yv,StompOperationBinding:gv,RedisServerBinding:vv,RedisChannelBinding:bv,RedisMessageBinding:wv,RedisOperationBinding:xv,MercureServerBinding:Pv,MercureChannelBinding:Sv,MercureMessageBinding:$v,MercureOperationBinding:Av,SnsIdentifier:Xb,SnsOrdering:Zb,SnsStatement:ev,SnsPolicy:tv,SnsChannelBinding:rv,SnsRedrivePolicy:nv,SnsDeliveryPolicy:iv,SnsConsumer:ov,SnsOperationBinding:sv,SqsIdentifier:av,SqsRedrivePolicy:cv,SqsStatement:pv,SqsPolicy:lv,SqsQueue:Eu,SqsOperationQueue:uv,SqsChannelBinding:dv,SqsOperationBinding:fv,IbmmqServerBinding:Ev,IbmmqChannelQueue:Ov,IbmmqChannelTopic:Rv,IbmmqChannelBinding:_v,IbmmqMessageBinding:Tv,GooglepubsubMessageStoragePolicy:kv,GooglepubsubSchemaSettings:Iv,GooglepubsubChannelBinding:qv,GooglepubsubSchema:Cv,GooglepubsubMessageBinding:jv,PulsarServerBinding:Mv,PulsarRetention:Dv,PulsarChannelBinding:Nv,ServerBindings:Vv,ChannelBindings:Hv,MessageBindings:Wv,OperationBindings:Kv},Qv={Ros2ServerBinding:Lv,Ros2ChannelBinding:Uv,Ros2OperationBinding:zv,Ros2QosPolicies:Fv,Ros2MessageBinding:Bv},Qs={extensionsPrefix:"x-",properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:j.listOf("Schema"),anyOf:j.listOf("Schema"),oneOf:j.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?j.listOf("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},Gs={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Ys={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},Js={properties:{},additionalProperties:e=>typeof e=="string"&&j.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Xs={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Gv={extensionsPrefix:"x-",properties:{asyncapi:null,info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},Yv={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description of this channel item. CommonMark syntax can be used for rich text representation."},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"},description:"The servers on which this channel is available, specified as an optional unordered list of names (string keys) of Server Objects defined in the Servers Object (a map)."}},description:"Describes the operations available on a single channel."},Jv={properties:{},additionalProperties:"Channel"},Ou={extensionsPrefix:"x-",properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A short description for the tag. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],description:"Allows adding meta data to a single tag."},Ru={extensionsPrefix:"x-",properties:{description:{type:"string",description:"A short description of the target documentation. CommonMark syntax can be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL."}},required:["url"],description:"Allows referencing an external resource for extended documentation."},Xv={properties:{},additionalProperties:{type:"array",items:{type:"string"}},description:"Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object."},Zv={extensionsPrefix:"x-",properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the AsyncAPI document is being served. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this URL supports for connection. Supported protocol include, but are not limited to: amqp, amqps, http, https, ibmmq, jms, kafka, kafka-secure, anypointmq, mqtt, secure-mqtt, solace, stomp, stomps, ws, wss, mercure, googlepubsub, pulsar."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},_u={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},Tu={extensionsPrefix:"x-",properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},description:{type:"string",description:"An optional description for the server variable. CommonMark syntax MAY be used for rich text representation."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the server variable."}},required:[],description:"An object representing a Server Variable for server URL template substitution."},e0={extensionsPrefix:"x-",properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},ku={extensionsPrefix:"x-",properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. This MUST be in the form of an absolute URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},description:"Contact information for the exposed API."},Iu={extensionsPrefix:"x-",properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. This MUST be in the form of an absolute URL."}},required:["name"],description:"License information for the exposed API."},t0={extensionsPrefix:"x-",properties:{description:{type:"string",description:"A verbose explanation of the parameter. CommonMark syntax can be used for rich text representation."},schema:"Schema",location:{type:"string",description:"A runtime expression that specifies the location of the parameter value. Even when a definition for the target field exists, it MUST NOT be used to validate this parameter but, instead, the schema property MUST be used."}},description:"Describes a parameter included in a channel name."},qu={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description of the identifier. CommonMark syntax can be used for rich text representation."},location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the correlation ID."}},required:["location"],description:"An object that specifies an identifier at design time that can used for message tracing and correlation."},r0={extensionsPrefix:"x-",properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format used to define the message payload. If omitted, implementations should parse the payload as a Schema object. When the payload is defined using a $ref to a remote file, it is RECOMMENDED the schema format includes the file encoding type to allow implementations to parse the file correctly."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{},description:"Describes a message received on a given channel and operation."},n0={extensionsPrefix:"x-",properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except message and traits."},i0={extensionsPrefix:"x-",properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format/language used to define the message payload. If omitted, implementations should parse the payload as a Schema object."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},o0={extensionsPrefix:"x-",properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[],description:"Describes a publish or a subscribe operation. This provides a place to document how and why messages are sent and received."},Cu={extensionsPrefix:"x-",properties:{payload:{isExample:!0,description:"The value of this field MUST validate against the Message Object's payload field."},summary:{type:"string",description:"A short summary of what the example is about."},name:{type:"string",description:"A machine-friendly name."},headers:{type:"object",description:"The value of this field MUST validate against the Message Object's headers field."}},description:"Message Example Object represents an example of a Message Object and MUST contain either headers and/or payload fields."},s0={extensionsPrefix:"x-",properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},a0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],description:"Configuration for the OAuth Implicit flow."},c0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Password flow."},p0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Client Credentials flow."},l0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"],description:"Configuration for the OAuth Authorization Code flow."},ju={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},u0={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."}},required(e){switch(e?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-",description:"Defines a security scheme that can be used by the operations."},Mu={...Ot,Root:Gv,Tag:Ou,TagList:j.listOf("Tag"),ServerMap:_u,ExternalDocs:Ru,Server:Zv,ServerVariable:Tu,ServerVariablesMap:j.mapOf("ServerVariable"),SecurityRequirement:Xv,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:e0,Contact:ku,License:Iu,ChannelMap:Jv,Channel:Yv,Parameter:t0,ParametersMap:j.mapOf("Parameter"),Operation:o0,Schema:Qs,MessageExample:Cu,SchemaProperties:Gs,DiscriminatorMapping:Js,Discriminator:Xs,Components:s0,NamedSchemas:j.mapOf("Schema"),NamedMessages:j.mapOf("Message"),NamedMessageTraits:j.mapOf("MessageTrait"),NamedOperationTraits:j.mapOf("OperationTrait"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedCorrelationIds:j.mapOf("CorrelationId"),ImplicitFlow:a0,PasswordFlow:c0,ClientCredentials:p0,AuthorizationCode:l0,SecuritySchemeFlows:ju,SecurityScheme:u0,Message:r0,OperationTrait:n0,OperationTraitList:j.listOf("OperationTrait"),MessageTrait:i0,MessageTraitList:j.listOf("MessageTrait"),MessageExampleList:j.listOf("MessageExample"),CorrelationId:qu,Dependencies:Ys},d0={extensionsPrefix:"x-",properties:{asyncapi:{type:"string",description:"REQUIRED. Specifies the AsyncAPI Specification version being used. It can be used by tooling Specifications and clients to interpret the version. The structure shall be major.minor.patch, where patch versions must be compatible with the existing major.minor tooling. Typically patch versions will be introduced to address errors in the documentation, and tooling should typically be compatible with the corresponding major.minor (1.0.*). Patch versions will correspond to patches of this document."},info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string",description:"Default content type to use when encoding/decoding a message's payload."}},required:["asyncapi","info"],description:"This is the root document object for the API specification. It combines resource listing and API declaration together into one document."},f0={extensionsPrefix:"x-",properties:{address:{type:"string",description:`An optional string representation of this channel's address. The address is typically the "topic name", "routing key", "event type", or "path". When null or absent, it MUST be interpreted as unknown. This is useful when the address is generated dynamically at runtime or can't be known upfront. It MAY contain Channel Address Expressions. Query parameters and fragments SHALL NOT be used, instead use bindings to define them.`},messages:"NamedMessages",title:{type:"string",description:"A human-friendly title for the channel."},summary:{type:"string",description:"A short summary of the channel."},description:{type:"string",description:"An optional description of this channel. CommonMark syntax can be used for rich text representation."},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"},description:"Describes a shared communication channel."},m0={extensionsPrefix:"x-",properties:{host:{type:"string",description:"REQUIRED. The server host name. It MAY include the port. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},pathname:{type:"string",description:"The path to a resource in the host. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this server supports for connection."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the server. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},h0={extensionsPrefix:"x-",properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},y0={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description for the parameter. CommonMark syntax MAY be used for rich text representation."},enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the parameter value."},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value."}},description:"Describes a parameter included in a channel address."},g0={extensionsPrefix:"x-",properties:{headers:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},description:"Describes a message received on a given channel and operation."},b0={extensionsPrefix:"x-",properties:{tags:"TagList",title:{type:"string",description:"A human-friendly title for the operation."},summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except the action, channel, messages and traits ones."},v0={extensionsPrefix:"x-",properties:{headers:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},w0={extensionsPrefix:"x-",properties:{action:{type:"string",enum:["send","receive"],description:"Required. Use send when it's expected that the application will send a message to the given channel, and receive when the application should expect receiving messages from the given channel."},channel:"Channel",title:{type:"string",description:"A human-friendly title for the operation."},tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},x0={extensionsPrefix:"x-",properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"},description:"Describes the reply part that MAY be applied to an Operation Object. If an operation implements the request/reply pattern, the reply object represents the response message."},S0={extensionsPrefix:"x-",properties:{location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the reply address."},description:{type:"string",description:"An optional description of the address. CommonMark syntax can be used for rich text representation."}},required:["location"],description:"An object that specifies where an operation has to send the reply."},P0={extensionsPrefix:"x-",properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"},description:"Holds a set of reusable objects for different aspects of the AsyncAPI specification. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},$0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"],description:"Configuration for the OAuth Implicit flow."},A0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Resource Owner Protected Credentials flow."},E0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Client Credentials flow."},O0={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"],description:"Configuration for the OAuth Authorization Code flow."},R0={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"],description:'REQUIRED. The type of the security scheme. Valid values are "userPassword", "apiKey", "X509", "symmetricEncryption", "asymmetricEncryption", "httpApiKey", "http", "oauth2", "openIdConnect", "plain", "scramSha256", "scramSha512", and "gssapi".'},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."},scopes:{type:"array",items:{type:"string"},description:"List of the needed scope names. An empty array means no scopes are needed."}},required(e){switch(e?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-",description:"Defines a security scheme that can be used by the operations."},_0={...Ot.ServerBindings,properties:{...Ot.ServerBindings.properties,ros2:"Ros2ServerBinding"}},T0={...Ot.ChannelBindings,properties:{...Ot.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},k0={...Ot.OperationBindings,properties:{...Ot.OperationBindings.properties,ros2:"Ros2OperationBinding"}},I0={...Ot.MessageBindings,properties:{...Ot.MessageBindings.properties,ros2:"Ros2MessageBinding"}},q0={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},C0={properties:{},additionalProperties:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema"},Du={...Ot,...Qv,ServerBindings:_0,ChannelBindings:T0,OperationBindings:k0,MessageBindings:I0,CorrelationId:qu,SecuritySchemeFlows:ju,ServerVariable:Tu,Contact:ku,License:Iu,MessageExample:Cu,Tag:Ou,Dependencies:Ys,Schema:Qs,MultiFormatSchema:q0,Discriminator:Xs,DiscriminatorMapping:Js,SchemaProperties:Gs,ServerMap:_u,ExternalDocs:Ru,Root:d0,Channel:f0,Parameter:y0,Info:h0,Server:m0,MessageTrait:v0,Operation:w0,OperationReply:x0,OperationReplyAddress:S0,Components:P0,ImplicitFlow:$0,PasswordFlow:A0,ClientCredentials:E0,AuthorizationCode:O0,SecurityScheme:R0,Message:g0,OperationTrait:b0,ServerVariablesMap:j.mapOf("ServerVariable"),NamedTags:j.mapOf("Tag"),NamedExternalDocs:j.mapOf("ExternalDocs"),NamedChannels:j.mapOf("Channel"),ParametersMap:j.mapOf("Parameter"),NamedOperations:j.mapOf("Operation"),NamedOperationReplies:j.mapOf("OperationReply"),NamedOperationRelyAddresses:j.mapOf("OperationReplyAddress"),NamedSchemas:C0,NamedMessages:j.mapOf("Message"),NamedMessageTraits:j.mapOf("MessageTrait"),NamedOperationTraits:j.mapOf("OperationTrait"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedCorrelationIds:j.mapOf("CorrelationId"),ServerList:j.listOf("Server"),SecuritySchemeList:j.listOf("SecurityScheme"),MessageList:j.listOf("Message"),OperationTraitList:j.listOf("OperationTrait"),MessageTraitList:j.listOf("MessageTrait"),MessageExampleList:j.listOf("MessageExample"),TagList:j.listOf("Tag")},j0={properties:{arazzo:{type:"string",description:"REQUIRED. This string MUST be the version number of the Arazzo Specification that the Arazzo Description uses. The arazzo field MUST be used by tooling to interpret the Arazzo Description."},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},M0={properties:{},additionalProperties:"Parameter"},D0={properties:{},additionalProperties:"SuccessActionObject"},N0={properties:{},additionalProperties:"FailureActionObject"},L0={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},U0=j.mapOf("Schema"),F0={properties:{title:{type:"string",description:"REQUIRED. A human readable title of the Arazzo Description."},description:{type:"string",description:"A description of the purpose of the workflows defined. CommonMark syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of the Arazzo Description."},version:{type:"string",description:"REQUIRED. The version identifier of the Arazzo document (which is distinct from the Arazzo Specification version)."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about API workflows defined in this Arazzo document. The metadata MAY be used by the clients if needed."},z0={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},B0={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["openapi"],description:'The type of source description. Possible values are "openapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},V0={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["arazzo"],description:'The type of source description. Possible values are "arazzo".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},H0={properties:{reference:{type:"string",description:"REQUIRED. A Runtime Expression used to reference the desired object."},value:{}},required:["reference"],extensionsPrefix:"x-",description:"A simple object to allow referencing of objects contained within the Components Object. It can be used from locations within steps or workflows in the Arazzo Description. Note - Input Objects MUST use standard JSON Schema referencing via the $ref keyword while all non JSON Schema objects use this object and its expression based referencing mechanism."},K0={properties:{in:{type:"string",enum:["header","query","path","cookie"],description:'The location of the parameter. Possible values are "path", "query", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'},name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},value:{}},required:["name","value"],extensionsPrefix:"x-",description:"Describes a single step parameter. A unique parameter is defined by the combination of a name and in fields."},W0={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},Q0={properties:{workflowId:{type:"string",description:"REQUIRED. The unique identifier of the workflow."},summary:{type:"string",description:"A short summary of what the workflow does."},description:{type:"string",description:"A verbose explanation of the workflow behavior. CommonMark syntax MAY be used for rich text representation."},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"},description:"A list of workflows that MUST be completed before this workflow can be processed. Each value provided MUST be a workflowId."},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-",description:"Describes the steps to be taken across one or more APIs to achieve an objective. The workflow object MAY define inputs needed in order to execute workflow steps, where the defined steps represent a call to an API operation or another workflow, and a set of outputs."},G0=j.listOf("Workflow"),Y0=j.listOf("Step"),J0={properties:{stepId:{type:"string",description:"REQUIRED. Unique string to represent the step. The stepId MUST be unique amongst all steps described in the workflow. The stepId value is case-sensitive. Tools and libraries MAY use the stepId to uniquely identify a workflow step, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},description:{type:"string",description:"A description of the step. CommonMark syntax MAY be used for rich text representation."},operationId:{type:"string",description:"The name of an existing, resolvable operation, as defined with a unique operationId and existing within one of the sourceDescriptions. The referenced operation will be invoked by this workflow step. If multiple (non arazzo type) sourceDescriptions are defined, then the operationId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<operationId>) to avoid ambiguity or potential clashes. This field is mutually exclusive of the operationPath and workflowId fields respectively."},operationPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an operation. This field is mutually exclusive of the operationId and workflowId fields respectively. The operation being referenced MUST be described within one of the sourceDescriptions descriptions. A Runtime Expression syntax MUST be used to identify the source description document. If the referenced operation has an operationId defined then the operationId SHOULD be preferred over the operationPath."},workflowId:{type:"string",description:"The workflowId referencing an existing workflow within the Arazzo Description. If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. The field is mutually exclusive of the operationId and operationPath fields respectively."},parameters:"Parameters",successCriteria:j.listOf("CriterionObject",{description:"A list of assertions to determine the success of the step. Each assertion is described using a Criterion Object. All assertions MUST be satisfied for the step to be deemed successful."}),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-",description:"Describes a single workflow step which MAY be a call to an API operation (OpenAPI Operation Object) or another Workflow Object."},X0={properties:{},additionalProperties:{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},Z0={properties:{contentType:{type:"string",description:"The Content-Type for the request content. If omitted then refer to Content-Type specified at the targeted operation to understand serialization requirements."},payload:{},replacements:j.listOf("Replacement",{description:"A list of locations and values to set within a payload."})},required:["payload"],extensionsPrefix:"x-",description:"A single request body describing the Content-Type and request body content to be passed by a step to an operation."},ew={properties:{target:{type:"string",description:"REQUIRED. A JSON Pointer or XPath Expression which MUST be resolved against the request body. Used to identify the location to inject the value."},value:{}},required:["target","value"],extensionsPrefix:"x-",description:"Describes a location within a payload (e.g., a request body) and a value to set within the location."},tw={properties:{schemeName:{type:"string",description:"REQUIRED. Name of the security scheme from your OpenAPI specification. Use with operationId or operationPath at the step level."},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"],description:"Use the x-security extension to define authorization flows based on OpenAPI security schemes. Respect automatically constructs appropriate authorization headers, queries, or cookies based on your parameters."},rw={properties:{url:{type:"string",description:"REQUIRED. A valid url including the protocol (such as http://localhost:4000/my-api or https://example.com/api/my-api)."},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"],description:"REQUIRED. HTTP operation method. Possible values: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, TRACE. You can also use their lowercase equivalents."}},required:["url","method"],description:"x-operation enables you to specify a URL and HTTP method for an operation that is not described in the Arazzo sourceDescriptions section. The primary application of the x-operation extension is to facilitate calls to third-party APIs or other endpoints that are needed in a sequence of API calls."},nw={properties:{condition:{type:"string",description:"REQUIRED. The condition to apply. Conditions can be simple (e.g. $statusCode == 200 which applies an operator on a value obtained from a runtime expression), or a regex, or a JSONPath expression. For regex or JSONPath, the type and context MUST be specified."},context:{type:"string",description:"A Runtime Expression used to set the context for the condition to be applied on. If type is specified, then the context MUST be provided (e.g. $response.body would set the context that a JSONPath query expression could be applied to)."},type:e=>{if(e)return typeof e=="string"?{enum:["regex","jsonpath","simple","xpath"],description:"The type of condition to be applied."}:e?.type==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"],description:"An object used to specify the context, conditions, and condition types that can be used to prove or satisfy assertions specified in Step Object successCriteria, Success Action Object criteria, and Failure Action Object criteria."},iw={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},ow={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},sw={properties:{name:{type:"string",description:"REQUIRED. The name of the success action. Names are case sensitive."},type:{type:"string",enum:["goto","end"],description:'REQUIRED. The type of action to take. Possible values are "end" or "goto".'},stepId:{type:"string",description:'The stepId to transfer to upon success of the step. This field is only relevant when the type field value is "goto". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId.'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon success of the step. This field is only relevant when the type field value is "goto". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId.'},criteria:j.listOf("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object. All criteria assertions MUST be satisfied for the action to be executed."})},required:["type","name"],description:"A single success action which describes an action to take upon success of a workflow step."},aw={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},cw={properties:{name:{type:"string",description:"REQUIRED. The name of the failure action. Names are case sensitive."},type:{type:"string",enum:["goto","retry","end"],description:'REQUIRED. The type of action to take. Possible values are "end", "retry", or "goto".'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId. When used with "retry", context transfers back upon completion of the specified workflow.'},stepId:{type:"string",description:'The stepId to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId. When used with "retry", context transfers back upon completion of the specified step.'},retryAfter:{type:"number",minimum:0,description:'A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made. Note: if an HTTP Retry-After response header was returned to a step from a targeted operation, then it SHOULD overrule this particular field value. This field only applies when the type field value is "retry".'},retryLimit:{type:"number",minimum:0,description:'A non-negative integer indicating how many attempts to retry the step MAY be attempted before failing the overall step. If not specified then a single retry SHALL be attempted. This field only applies when the type field value is "retry". The retryLimit MUST be exhausted prior to executing subsequent failure actions.'},criteria:j.listOf("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object."})},required:["type","name"],description:"A single failure action which describes an action to take upon failure of a workflow step."},pw={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},ot={Root:j0,Info:F0,SourceDescriptions:z0,OpenAPISourceDescription:B0,ArazzoSourceDescription:V0,Parameters:W0,Parameter:K0,ReusableObject:H0,Workflows:G0,Workflow:Q0,Steps:Y0,Step:J0,RequestBody:Z0,Replacement:ew,ExtendedOperation:rw,ExtendedSecurityList:j.listOf("ExtendedSecurity"),ExtendedSecurity:tw,Outputs:X0,CriterionObject:nw,XPathCriterion:ow,JSONPathCriterion:iw,SuccessActionObject:sw,OnSuccessActionList:aw,FailureActionObject:cw,OnFailureActionList:pw,Schema:nt.Schema,NamedSchemas:j.mapOf("Schema"),ExternalDocs:nt.ExternalDocs,DiscriminatorMapping:nt.DiscriminatorMapping,Discriminator:nt.Discriminator,DependentRequired:nt.DependentRequired,SchemaProperties:nt.SchemaProperties,PatternProperties:nt.SchemaProperties,Components:L0,NamedInputs:U0,NamedParameters:M0,NamedSuccessActions:D0,NamedFailureActions:N0,Xml:nt.Xml,SecurityScheme:nt.SecurityScheme,OAuth2Flows:nt.OAuth2Flows,ImplicitFlow:nt.ImplicitFlow,PasswordFlow:nt.PasswordFlow,ClientCredentials:nt.ClientCredentials,AuthorizationCode:nt.AuthorizationCode,DeviceAuthorization:nt.DeviceAuthorization},lw={...ot.Root,properties:{...ot.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1."}}},uw={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},dw={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["asyncapi"],description:'The type of source description. Possible values are "asyncapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an AsyncAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},fw={...ot.Parameter,properties:{...ot.Parameter.properties,in:{type:"string",enum:["header","query","path","cookie","querystring"],description:'The location of the parameter. Possible values are "path", "query", "querystring", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'}}},mw={...ot.Step,properties:{...ot.Step.properties,channelPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an AsyncAPI channel. This field is mutually exclusive of the operationId, operationPath, and workflowId fields respectively. A Runtime Expression syntax MUST be used to identify the source description document."},action:{type:"string",enum:["send","receive"],description:'Describes the intent of the message flow for an AsyncAPI operation. Possible values are "send" or "receive".'},correlationId:{type:"string",description:'A Runtime Expression used to correlate a request with a response when interacting with asynchronous APIs. Applies to "receive" steps.'},timeout:{type:"integer",minimum:0,description:"A non-negative integer indicating the maximum amount of time (in milliseconds) to wait before timing out."},dependsOn:{type:"array",items:{type:"string"},description:"A list of steps that MUST be completed before this step can be executed. Each value provided MUST be a stepId."}},requiredOneOf:["x-operation","operationId","operationPath","channelPath","workflowId"]},hw={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},yw={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},gw={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},bw={properties:{type:{type:"string",enum:["jsonpath","xpath","jsonpointer"],description:"REQUIRED. The selector type. The options allowed are jsonpath, xpath, or jsonpointer."},version:{type:"string",description:"REQUIRED. A short hand string representing the version of the expression type being used."}},required:["type","version"]},vw=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",Zs=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:vw(n)},ww={...ot.CriterionObject,properties:{...ot.CriterionObject.properties,type:Zs(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},xw={properties:{context:{type:"string",description:"REQUIRED. A Runtime Expression that evaluates to structured data (e.g., $response.body) the selector is applied to."},selector:{type:"string",description:"REQUIRED. The selector expression (JSONPath, XPath, or JSON Pointer) used to extract data from the context."},type:Zs(["jsonpath","xpath","jsonpointer"],"The type of selector to be applied.",{optional:!1})},required:["context","selector","type"],extensionsPrefix:"x-",description:"An object used to extract specific data from structured content using JSONPath, XPath, or JSON Pointer expressions."},Sw={properties:{},additionalProperties:e=>Y.isPlainObject(e)?"SelectorObject":{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression or a Selector Object. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},Pw={...ot.Replacement,properties:{...ot.Replacement.properties,value:e=>Y.isPlainObject(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:Zs(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},$w={...ot.SuccessActionObject,properties:{...ot.SuccessActionObject.properties,parameters:"Parameters"}},Aw={...ot.FailureActionObject,properties:{...ot.FailureActionObject.properties,parameters:"Parameters"}},Nu={...ot,Root:lw,SourceDescriptions:uw,AsyncAPISourceDescription:dw,Parameter:fw,Step:mw,CriterionObject:ww,JSONPathExpression:hw,XPathExpression:yw,JSONPointerExpression:gw,ExpressionType:bw,SelectorObject:xw,Outputs:Sw,Replacement:Pw,SuccessActionObject:$w,FailureActionObject:Aw};function ea(e,t){const r={...e};return t.forEach(n=>{delete r[n]}),r}const Ew={properties:{overlay:{type:"string",description:"REQUIRED. This string MUST be the version number of the Overlay Specification that the Overlay document uses. The overlay field SHOULD be used by tooling to interpret the Overlay document."},$self:{type:"string",description:"A URI-reference for the Overlay document. It is also the base URI for resolving relative references within this document."},info:"Info",extends:{type:"string",description:"URI reference that identifies the target document (such as an [OpenAPI] document) this overlay applies to."},actions:"Actions",components:"Components"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},Ow={properties:{title:{type:"string",description:"REQUIRED. A human readable description of the purpose of the overlay."},version:{type:"string",description:"REQUIRED. A version identifer for indicating changes to the Overlay document."},description:{type:"string",description:"A description of the Overlay. [CommonMark] syntax MAY be used for rich text representation."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},Rw={properties:{},items:e=>j.isRef(e)?"ReusableAction":"Action"},Lu={properties:{target:{type:"string",description:"REQUIRED A JSONPath expression selecting nodes in the target document."},description:{type:"string",description:"A description of the action. [CommonMark] syntax MAY be used for rich text representation."},update:{},copy:{type:"string",description:"A JSONPath expression selecting a single node to copy into the target nodes. The copied value is merged with the target nodes like an `update` value."},remove:{type:"boolean",description:"A boolean value that indicates that the target object or array MUST be removed from the the map or array it is contained in. The default value is false."}},required:["target"],extensionsPrefix:"x-",description:"This object represents one or more changes to be applied to the target document at the location defined by the target JSONPath expression"},_w={properties:{actions:"ReusableActions"},extensionsPrefix:"x-",description:"A set of components to reuse across the Overlay document."},Tw=j.mapOf("ReusableAction"),kw={properties:{description:{type:"string",description:"A description of the reusable action. [CommonMark] syntax MAY be used for rich text representation."},fields:"ReusableActionFields"},extensionsPrefix:"x-",description:"A reusable action. An action in `actions` references it with `$ref` and supplies the `target`."},Iw={properties:ea(Lu.properties,["target"]),extensionsPrefix:"x-",description:"The fields of a reusable action: an action without a `target`."},ta={Root:Ew,Info:Ow,Actions:Rw,Action:Lu,Components:_w,ReusableActions:Tw,ReusableAction:kw,ReusableActionFields:Iw},qw={properties:{openrpc:{type:"string",description:"REQUIRED. This string MUST be the semantic version number of the OpenRPC Specification version that the OpenRPC document uses. The openrpc field SHOULD be used by tooling specifications and clients to interpret the OpenRPC document. This is not related to the API info.version string."},info:"Info",servers:"ServerList",methods:"MethodList",components:"Components",externalDocs:"ExternalDocs"},required:["openrpc","info","methods"],extensionsPrefix:"x-",description:"This is the root object of the OpenRPC document. The contents of this object represent a whole OpenRPC document. How this object is constructed or stored is outside the scope of the OpenRPC Specification."},Cw={properties:{title:{type:"string",description:"REQUIRED. The title of the application."},description:{type:"string",description:"A verbose description of the application. GitHub Flavored Markdown syntax MAY be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL."},contact:"Contact",license:"License",version:{type:"string",description:"REQUIRED. The version of the OpenRPC document (which is distinct from the OpenRPC Specification version or the API implementation version)."}},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required."},jw={properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. MUST be in the format of a URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},extensionsPrefix:"x-",description:"Contact information for the exposed API."},Mw={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. MUST be in the format of a URL."}},required:["name"],extensionsPrefix:"x-",description:"License information for the exposed API."},Dw={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenRPC document is being served. Server Variables are passed into the Runtime Expression to produce a server URL."},name:{type:"string",description:"REQUIRED. A name to be used as the canonical name for the server."},description:{type:"string",description:"An optional string describing the host designated by the URL. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of what the server is."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"An object representing a Server."},Nw={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object’s treatment of default values, because in those cases parameter values are optional."},description:{type:"string",description:"An optional description for the server variable. GitHub Flavored Markdown syntax MAY be used for rich text representation."}},required:["default"],extensionsPrefix:"x-",description:"An object representing a Server Variable for server URL template substitution."},Lw={properties:{name:{type:"string",description:"REQUIRED. The cannonical name for the method. The name MUST be unique within the methods array."},tags:"TagList",summary:{type:"string",description:"A short summary of what the method does."},description:{type:"string",description:"A verbose explanation of the method behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs",params:"ContentDescriptorList",result:"ContentDescriptor",deprecated:{type:"boolean",description:"Declares this method to be deprecated. Consumers SHOULD refrain from usage of the declared method. Default value is false."},servers:"ServerList",errors:"ErrorList",links:"LinkList",paramStructure:{enum:["by-name","by-position","either"]},examples:"ExamplePairingList"},required:["name","params"],extensionsPrefix:"x-",description:"Describes the interface for the given method name. The method name is used as the method field of the JSON-RPC body. It therefore MUST be unique."},Uw={properties:{name:{type:"string",description:"REQUIRED. Name of the content that is being described. If the content described is a method parameter assignable by-name, this field SHALL define the parameter’s key (ie name)."},summary:{type:"string",description:"A short summary of the content that is being described."},description:{type:"string",description:"A verbose explanation of the content descriptor behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines if the content is a required field. Default value is false."},schema:"Schema",deprecated:{type:"boolean",description:"Specifies that the content is deprecated and SHOULD be transitioned out of usage. Default value is false."}},required:["name","schema"],extensionsPrefix:"x-",description:"Content Descriptors are objects that do just as they suggest - describe content. They are reusable ways of describing either parameters or result. They MUST have a schema."},Fw={properties:{name:{type:"string",description:"REQUIRED Name for the example pairing."},description:{type:"string",description:"A verbose explanation of the example pairing."},summary:{type:"string",description:"Short description for the example pairing."},params:"ExampleList",result:"Example"},extensionsPrefix:"x-",description:"The Example Pairing object consists of a set of example params and result. The result is what you can expect from the JSON-RPC service given the exact params."},zw={properties:{name:{type:"string",description:"Cannonical name of the example."},summary:{type:"string",description:"Short description for the example."},description:{type:"string",description:"A verbose explanation of the example. GitHub Flavored Markdown syntax MAY be used for rich text representation."},value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON, use a string value to contain the example, escaping where necessary."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"The Example object is an object that defines an example that is intended to match the schema of a given Content Descriptor."},Bw={properties:{name:{type:"string",description:"REQUIRED. Canonical name of the link."},description:{type:"string",description:"A description of the link. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"Short description for the link."},method:{type:"string",description:"The name of an existing, resolvable OpenRPC method, as defined with a unique method. This field MUST resolve to a unique Method Object. As opposed to Open Api, Relative method values ARE NOT permitted."},params:{type:"object",description:"A map representing parameters to pass to a method as specified with method. The key is the parameter name to be used, whereas the value can be a constant or a runtime expression to be evaluated and passed to the linked method."},server:"Server"},required:["name"],extensionsPrefix:"x-",description:"The Link object represents a possible design-time link for a result. The presence of a link does not guarantee the caller’s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between results and other methods."},Vw={properties:{code:{type:"integer",description:"REQUIRED. A Number that indicates the error type that occurred. This MUST be an integer. The error codes from and including -32768 to -32000 are reserved for pre-defined errors. These pre-defined errors SHOULD be assumed to be returned from any JSON-RPC api."},message:{type:"string",description:"REQUIRED. A String providing a short description of the error. The message SHOULD be limited to a concise single sentence."},data:{resolvable:!1,description:"A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.)."}},required:["code","message"],extensionsPrefix:"x-",description:"Defines an application level error."},Hw={properties:{contentDescriptors:"NamedContentDescriptors",schemas:"NamedSchemas",examples:"NamedExamples",links:"NamedLinks",errors:"NamedErrors",examplePairingObjects:"NamedExamplePairingObjects",tags:"NamedTags"},extensionsPrefix:"x-",description:"Holds a set of reusable objects for different aspects of the OpenRPC. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},Kw={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},summary:{type:"string",description:"A short summary of the tag."},description:{type:"string",description:"A verbose explanation for the tag. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],extensionsPrefix:"x-",description:"Adds metadata to a single tag that is used by the Method Object. It is not mandatory to have a Tag Object per tag defined in the Method Object instances."},Ww={properties:{description:{type:"string",description:"A verbose explanation of the target documentation. GitHub Flavored Markdown syntax MAY be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. Value MUST be in the format of a URL."}},required:["url"],extensionsPrefix:"x-",description:"Allows referencing an external resource for extended documentation."},Uu={Root:qw,Info:Cw,Contact:jw,License:Mw,Server:Dw,ServerList:j.listOf("Server"),ServerVariable:Nw,ServerVariablesMap:j.mapOf("ServerVariable"),Method:Lw,MethodList:j.listOf("Method"),ContentDescriptor:Uw,ContentDescriptorList:j.listOf("ContentDescriptor"),ExamplePairing:Fw,ExamplePairingList:j.listOf("ExamplePairing"),Example:zw,ExampleList:j.listOf("Example"),Link:Bw,LinkList:j.listOf("Link"),ErrorObject:Vw,ErrorList:j.listOf("ErrorObject"),Components:Hw,Tag:Kw,TagList:j.listOf("Tag"),ExternalDocs:Ww,Schema:Qs,SchemaProperties:Gs,Dependencies:Ys,DiscriminatorMapping:Js,Discriminator:Xs,NamedContentDescriptors:j.mapOf("ContentDescriptor"),NamedSchemas:j.mapOf("Schema"),NamedExamples:j.mapOf("Example"),NamedLinks:j.mapOf("Link"),NamedErrors:j.mapOf("ErrorObject"),NamedExamplePairingObjects:j.mapOf("ExamplePairing"),NamedTags:j.mapOf("Tag")};var Fu={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},_r={type:"object",properties:Fu,additionalProperties:!1},Qw={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Yr={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...Fu,like:_r,dislike:_r,satisfied:_r,neutral:_r,dissatisfied:_r},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Qw},additionalProperties:!1}},additionalProperties:!1},Gw={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},ra={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Es={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:Yr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ra,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Gw,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},ze={type:"string",uiHint:"color"},ft={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"},Yw={rules:ft,oas2Rules:ft,oas3_0Rules:ft,oas3_1Rules:ft,oas3_2Rules:ft,async2Rules:ft,async3Rules:ft,arazzo1Rules:ft,arazzo1_1Rules:ft,overlay1Rules:ft,openrpc1Rules:ft,graphqlRules:ft},yt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Jw={preprocessors:yt,oas2Preprocessors:yt,oas3_0Preprocessors:yt,oas3_1Preprocessors:yt,oas3_2Preprocessors:yt,async2Preprocessors:yt,async3Preprocessors:yt,arazzo1Preprocessors:yt,arazzo1_1Preprocessors:yt,overlay1Preprocessors:yt,openrpc1Preprocessors:yt},gt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Xw={decorators:gt,oas2Decorators:gt,oas3_0Decorators:gt,oas3_1Decorators:gt,oas3_2Decorators:gt,async2Decorators:gt,async3Decorators:gt,arazzo1Decorators:gt,arazzo1_1Decorators:gt,overlay1Decorators:gt,openrpc1Decorators:gt},Zw={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},Zi={...Yw,...Xw,...Jw,extends:Zw},ir={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},ex={type:"object",properties:{name:{type:"string"},items:ir,queries:ir,mutations:ir,subscriptions:ir,types:ir,directives:ir},required:["name"],additionalProperties:!1},tx={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:ex},otherItemsGroupName:{type:"string"}}},rx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},nx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},ix={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string",uiHint:"textarea"},termsOfService:{type:"string",format:"uri"},contact:rx,license:nx},additionalProperties:!1},ki={type:"object",properties:{menu:{type:"object",properties:{...tx.properties},additionalProperties:!1},downloadUrls:ra,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:ze}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Yr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:ix},additionalProperties:!1},na={type:"object",properties:{downloadUrls:ra,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:Yr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},ox={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},sx={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},pc={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},ax={type:"object",properties:{beforeInfo:{type:"array",items:pc},end:{type:"array",items:pc}}},Yt={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},dn={type:"object",properties:{backgroundColor:ze,borderColor:ze,color:ze,tabTextColor:ze}},cx={type:"object",properties:eo(Yt.properties,["light","dark"])},px={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},lx={type:"object",properties:{error:dn,info:dn,redirect:dn,success:dn}},ux={type:"object",properties:vr(Yt.properties,["dark"])},dx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},fx={type:"object",properties:{accent:Yt,border:cx,error:Yt,http:px,primary:Yt,responses:lx,secondary:ux,success:Yt,text:dx,tonalOffset:{type:"number"},warning:Yt}},fn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},mx={type:"object",properties:{small:fn,medium:fn,large:fn,xlarge:fn}},Rt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},hx={type:"object",properties:{...vr(Rt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:mx}},lc={type:"object",properties:eo(Rt.properties,["fontSize","lineHeight"])},yx={type:"object",properties:{medium:lc,small:lc}},gx={type:"object",properties:{...vr(Rt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:ze,sizes:yx}},bx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},vx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:ze}},uc={type:"object",properties:{fullWidth:{type:"boolean"}}},wx={type:"object",properties:{buttons:hx,httpBadges:gx,layoutControls:bx,panels:vx,tryItButton:uc,tryItSendButton:uc}},Ii={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},xx={type:"object",properties:{maxWidth:Ii}},Sx={type:"object",properties:{maxWidth:Ii,middlePanelMaxWidth:Ii}},Px={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:xx,"three-panel":Sx}},dc={type:"object",properties:{backgroundColor:ze,border:{type:"string"}}},$x={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:ze,caretSize:{type:"string"},constraints:dc,defaultDetailsWidth:{type:"string"},examples:dc,labelsTextSize:{type:"string"},linesColor:ze,nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:ze,typeNameColor:ze,typeTitleColor:ze}},zu={type:"object",properties:{subItemsColor:ze,textTransform:{type:"string"},fontWeight:{type:"string"}}},Ax={type:"object",properties:eo(zu.properties,["textTransform"])},Ex={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Ox={type:"object",properties:{...vr(Rt.properties,["fontWeight","lineHeight"]),activeBgColor:ze,activeTextColor:ze,backgroundColor:ze,borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:ze,caretSize:{type:"string"},groupItems:zu,level1items:Ax,rightLineColor:ze,separatorLabelColor:ze,showAtBreakpoint:{type:"string"},spacing:Ex,textColor:ze,width:{type:"string"}}},mn={type:"object",properties:{...Rt.properties,color:ze,transform:{type:"string"}}},Rx={type:"object",properties:{...Rt.properties,backgroundColor:ze,color:ze,wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},_x={type:"object",properties:vr(Rt.properties,["fontSize"])},Tx={type:"object",properties:{color:ze,hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},kx={type:"object",properties:{code:Rx,fieldName:Rt,...eo(Rt.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:mn,heading2:mn,heading3:mn,headings:_x,lineHeight:{type:"string"},links:Tx,optimizeSpeed:{type:"boolean"},rightPanelHeading:mn,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Ix={type:"object",properties:{color:ze,...vr(Rt.properties,["fontWeight"])}},qx={type:"object",properties:{backgroundColor:ze,borderRadius:{type:"string"},tokens:Ix}},Cx={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},jx={type:"object",properties:{backgroundColor:ze,color:ze}},fc={type:"object",properties:{custom:{type:"string"}}},Mx={type:"object",properties:{DownloadButton:fc,NextSectionButton:fc}},Dx={type:"object",properties:{backgroundColor:ze,panelBackgroundColor:ze,panelControlsBackgroundColor:ze,showAtBreakpoint:{type:"string"},textColor:ze,width:{type:"string"}}},Nx={type:"object",properties:{borderRadius:{type:"string"}}},Lx={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Ux={type:"object",properties:{breakpoints:Ii,codeBlock:qx,colors:fx,components:wx,layout:Px,logo:Cx,fab:jx,overrides:Mx,rightPanel:Dx,schema:$x,shape:Nx,sidebar:Ox,spacing:Lx,typography:kx,links:{type:"object",properties:{color:ze}},codeSample:{type:"object",properties:{backgroundColor:ze}}}},Fx={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:ox}},required:["languages"]},zx={properties:{theme:Ux,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:Fx,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:sx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:ax,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}}};function eo(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function vr(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Bu=e=>e,ct=Bu({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),tt={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},mc={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"},consent:{type:"string",enum:["analytics","marketing"]}},required:["src"],additionalProperties:!0},_o={type:"object",properties:{page:{type:"string",uiHint:"file"},directory:{type:"string",uiHint:"file"},disconnect:{type:"boolean"},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},ia={type:"array",items:{..._o,properties:{..._o.properties,items:{type:"array",items:_o}}}},Bx={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Vx={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Hx={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},Kx={type:"object",properties:{facets:Hx,...tt.properties},additionalProperties:!1},Wx={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Vu={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},Hu={type:"object",properties:{items:ia,...tt.properties},additionalProperties:!1},Ku={type:"object",additionalProperties:Bx},Wu={type:"object",properties:{items:ia,copyrightText:{type:"string",uiHint:"textarea"},logo:tt,...tt.properties},additionalProperties:!1},Qu={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...tt.properties},additionalProperties:!1},Gu={type:"object",properties:{head:{type:"array",items:mc},body:{type:"array",items:mc}},additionalProperties:!1},Yu={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},Ju={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Vx,filters:Kx,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Wx},...tt.properties},additionalProperties:!1},Xu={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string",uiHint:"textarea"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},Zu={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...tt.properties},additionalProperties:!1},ed={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Qx={type:"object",properties:{...tt.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode","docs-mcp-claude"]}}},additionalProperties:!1},td={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...tt.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...tt.properties},additionalProperties:!1},actions:Qx},additionalProperties:!1},rd={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...tt.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...tt.properties},additionalProperties:!1},expand:{type:"object",properties:{...tt.properties},additionalProperties:!1},collapse:{type:"object",properties:{...tt.properties},additionalProperties:!1}},additionalProperties:!1},nd={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...tt.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...tt.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...tt.properties},additionalProperties:!1},template:{type:"object",uiHint:"list",additionalProperties:{type:"string"}}},additionalProperties:!1},qi={...Es,properties:{...Es.properties,...zx.properties}};({...Es.properties});var Gx={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Yx={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},Jx={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Xx={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Zx={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},eS={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},tS={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},rS={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},nS={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:rS}},additionalProperties:!1,required:["trackingId"]},id={type:"object",properties:{adobe:Gx,amplitude:Yx,fullstory:Jx,heap:Xx,rudderstack:Zx,segment:eS,gtm:tS,ga:nS}},iS={type:"object",properties:{mode:{type:"string",enum:["auto","opt-in","opt-out","none","onetrust","cookiebot","trustarc","tcf"]},privacyPolicyUrl:{type:"string"},expires:{type:"number"},settingsLink:{type:"string",enum:["auto","footer","none"]}},additionalProperties:!1},od={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...tt.properties},additionalProperties:!1},sd={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},ad={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1}}},additionalProperties:!1},oS={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},sS={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:oS},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ia,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ci={type:"object",patternProperties:{".*":sS}},ji={nodeTypeName:ct.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:ct.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:ct.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:ct.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Zi},additionalProperties:!1}},targets:{nodeTypeName:ct.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:ct.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:ct.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:ct.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string",uiHint:"file"}},fromProjectUrl:{type:"string",format:"uri"}}},aS={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},cS={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},pS={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},kt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:cS},excludes:{type:"array",items:aS},filters:{type:"array",items:pS},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},lS={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},uS={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:lS},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},dS={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:uS,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},fS={type:"object",additionalProperties:dS},cd={type:"object",properties:{show:{type:"boolean"},entityTypes:fS,catalogs:{type:"object",properties:{all:kt,services:kt,domains:kt,teams:kt,users:kt,apiDescriptions:kt,dataSchemas:kt,apiOperations:kt},additionalProperties:kt}},additionalProperties:!1},hc={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},oa={type:"string",enum:["and","or"]},Os={type:"object",properties:{field:{type:"string"},operator:hc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:hc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},mS={type:"object",properties:{operator:oa,conditions:{type:"array",items:Os}},required:["operator","conditions"],additionalProperties:!1},yc={type:"array",items:{oneOf:[Os,{type:"object",properties:{operator:oa,conditions:{type:"array",items:{oneOf:[Os,mS]}}},required:["operator","conditions"],additionalProperties:!1}]}},pd={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},hS={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:pd},required:["subject","assertions"],additionalProperties:!1}},yS={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:pd,where:hS,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},gS={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},yS]}},bS={type:"object",properties:{name:{type:"string"},extends:Zi.extends,rules:gS},required:["name"],additionalProperties:!1},gc={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},vS={oneOf:[gc,{type:"array",items:gc}]},wS={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[yc,{type:"object",properties:{operator:oa,conditions:yc},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:bS,minItems:1},trigger:vS},required:["name","key","entities","levels"],additionalProperties:!1},ld={type:"array",items:wS},Et={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Vu,navbar:Hu,products:Ku,footer:Wu,sidebar:Qu,scripts:Gu,links:Yu,feedback:Yr,search:Ju,aiAssistant:Xu,colorMode:Zu,palette:ed,navigation:td,codeSnippet:rd,markdown:nd,openapi:qi,asyncapi:na,graphql:ki,analytics:id,userMenu:od,versionPicker:sd,breadcrumbs:ad,catalog:Ci,entitiesCatalog:cd,catalogClassic:Ci,scorecard:ji,scorecardClassic:ji,scorecards:ld},additionalProperties:!0},xS=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(xS||{}),SS=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(SS||{}),PS=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(PS||{}),$S="^[a-z0-9]+(?:-[a-z0-9]+)*$",ud="redocly",AS=[ud,"corporate","guest"],bc=["REDOCLY","CORPORATE","GUEST"],ES={type:"object",additionalProperties:{type:"string"}},OS={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},hn={type:"string",enum:["error","warn","off"]},RS={type:"object",additionalProperties:!1,properties:{schemaCheck:hn,statusCodeCheck:hn,contentTypeCheck:hn,successCriteriaCheck:hn}},_S={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},TS={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},kS={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},IS={type:"object",additionalProperties:{type:"object",properties:{type:{type:"string",enum:["http"]},url:{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"},description:{type:"string"},headers:{type:"object",additionalProperties:{type:"string"}}},required:["url"],additionalProperties:!1}},qS={type:"object",properties:{provider:{type:"string",minLength:1},repository:{type:"string",minLength:1},branch:{type:"string",minLength:1},path:{type:"string"}},required:["provider","repository"],additionalProperties:!1},CS={type:"object",properties:{name:{type:"string",enum:["feedback","discovery","followUpOnPullRequest","updateFromCodeChanges"]},enabled:{type:"boolean"}},required:["name"],additionalProperties:!1},jS={type:"object",properties:{name:{type:"string",enum:["review"]},enabled:{type:"boolean"},rules:{type:"string"},sourceRepositories:{oneOf:[{type:"string",enum:["none","all"]},{type:"array",items:qS}]},specialists:{type:"array",items:{type:"object",properties:{name:{type:"string",enum:["config","apiDescription","owasp","docs"]},enabled:{type:"boolean"}},required:["name","enabled"],additionalProperties:!1}}},required:["name"],additionalProperties:!1},MS={type:"object",properties:{enabled:{type:"boolean"},defaultReviewers:{type:"array",items:{type:"string",minLength:1}},rules:{type:"object",properties:{custom:{type:"string"},style:{type:"string"}},additionalProperties:!1},duties:{type:"array",items:{oneOf:[CS,jS]}},mcpServers:IS},additionalProperties:!1},DS={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[_S,TS]},inputs:ES,servers:OS,severity:RS,slo:kS},required:["path","trigger","agent"],additionalProperties:!1}},agent:MS},additionalProperties:!1},dd={type:"string",enum:["off","info","warn","error"]},Tr={type:"array",items:{type:"string"}},NS={type:"object",properties:{severity:dd,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Tr,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Tr,excludes:Tr,exceptions:{type:"object",properties:{files:Tr,lines:Tr},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},LS={oneOf:[dd,NS]},vc={type:"object",additionalProperties:LS},US={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},FS={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:US}},additionalProperties:!1},zS={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:FS},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},BS={oneOf:[{type:"boolean"},zS]},VS={type:"object",properties:{rules:vc,excludes:{type:"array",items:{type:"string",minLength:1}},markdoc:BS,apiDescriptions:{type:"object",properties:{rules:vc},additionalProperties:!1}},additionalProperties:!1},HS={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},KS={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:HS,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},WS={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},QS={oneOf:[KS,WS],discriminator:{propertyName:"type"}},GS={type:"object",additionalProperties:QS},fd={oneOf:[{type:"array",items:{type:"string",enum:bc},uniqueItems:!0},{type:"string",enum:bc}]},wc={type:"string",pattern:$S,not:{enum:AS.filter(e=>e!==ud)}},md={oneOf:[{type:"array",items:wc,uniqueItems:!0},wc]},hd={type:"boolean"},yd={type:"string",pattern:"^https?://.*"},gd={type:"string",pattern:"^https?://.*"},YS={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:ct.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},JS={type:"object",additionalProperties:YS,nodeTypeName:ct.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},XS={type:"string",enum:["info","success","warning","error"]},We={type:"object",uiHint:"list",additionalProperties:{type:"string"}},ZS={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:XS,rbac:We,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},eP={type:"array",items:ZS},tP={type:"object",properties:{root:{type:"string",uiHint:"file"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:We,openapi:qi,graphql:ki,asyncapi:na,theme:{type:"object",properties:{openapi:qi,graphql:ki},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Zi},required:["root"]},rP={type:"object",additionalProperties:!0},nP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},iP={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string",uiHint:"textarea"},details:{type:"object",properties:{path:{type:"string",uiHint:"file"},content:{type:"string",uiHint:"textarea"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string",uiHint:"file"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string",uiHint:"file"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},oP={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string",uiHint:"textarea"},siteUrl:{type:"string"},image:{type:"string",uiHint:"file"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:iP},additionalProperties:!1},sP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},aP={type:"object",properties:{catalogs:{type:"object",properties:{all:We,services:We,domains:We,teams:We,users:We,apiDescriptions:We,dataSchemas:We,apiOperations:We},additionalProperties:We},entitiesTypes:{type:"object",properties:{service:We,domain:We,team:We,user:We,apiDescription:We,apiOperation:We,dataSchema:We},additionalProperties:We},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:We},additionalProperties:!1}},entities:{type:"object",properties:{"**":We},additionalProperties:We}},additionalProperties:!1},bd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:We,cms:We,reunite:We,features:{type:"object",properties:{aiSearch:We,mcp:We},additionalProperties:!1},content:{type:"object",properties:{"**":We},additionalProperties:We},entitiesCatalog:aP},additionalProperties:We},cP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},pP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},lP={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[cP,pP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},uP={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},dP={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Rs={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[uP,dP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},fP={...Rs,properties:{...Rs.properties,type:{type:"string",const:"APIGEE_EDGE"}}},mP={type:"object",oneOf:[Rs,fP,lP],discriminator:{propertyName:"type"}},hP={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:mP}}},xc={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},yP={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},gP={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},bP={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},vP={type:"object",properties:{requiresLogin:hd,logoutReturnUrl:yd,residency:gd,sso:fd,idps:md,rbac:bd},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Mi={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:JS,seo:oP,rbac:bd,apiFunctions:sP,requiresLogin:hd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:yP}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",uiHint:"list",additionalProperties:tP},...Zi,ssoDirect:GS,sso:fd,idps:md,residency:gd,logoutReturnUrl:yd,access:vP,developerOnboarding:hP,removeAttribution:{type:"boolean"},i18n:xc,l10n:xc,metadata:rP,metadataGlobs:nP,ignore:{type:"array",items:{type:"string"}},theme:Et,reunite:DS,logo:Vu,navbar:Hu,products:Ku,footer:Wu,sidebar:Qu,scripts:Gu,links:Yu,feedback:Yr,search:Ju,aiAssistant:Xu,colorMode:Zu,palette:ed,navigation:td,codeSnippet:rd,markdown:nd,openapi:qi,graphql:ki,asyncapi:na,analytics:id,consent:iS,userMenu:od,versionPicker:sd,breadcrumbs:ad,catalog:Ci,entitiesCatalog:cd,catalogClassic:Ci,scorecard:ji,scorecardClassic:ji,scorecards:ld,mcp:gP,skills:bP,recheck:VS,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:eP},not:{required:["sso","idps"]},additionalProperties:!0},wP={...Mi,additionalProperties:!1},to={$id:"root-redocly-config",...Mi,properties:{plugins:{type:"array",items:{type:"string"}},...Mi.properties,env:{type:"object",additionalProperties:wP}},additionalProperties:!1};Et.properties.logo,Et.properties.navbar,Et.properties.footer,Et.properties.sidebar,Et.properties.search,Et.properties.codeSnippet,Et.properties.breadcrumbs,Et.properties.openapi,Et.properties.feedback,Mi.properties.mockServer;var xP=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],Ze=Bu({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),SP={type:"object",nodeTypeName:Ze.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},PP={type:"object",nodeTypeName:Ze.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},$P={type:"object",nodeTypeName:Ze.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},AP={type:"object",nodeTypeName:Ze.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},EP={type:"object",properties:{},nodeTypeName:Ze.EntityMetadata,additionalProperties:!0},OP={type:"object",nodeTypeName:Ze.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},RP={type:"object",nodeTypeName:Ze.EntitySlackContact,properties:{channels:{type:"array",items:OP}},required:["channels"],additionalProperties:!1},_P={type:"object",nodeTypeName:Ze.EntityContact,properties:{slack:RP},additionalProperties:!1},TP={type:"object",nodeTypeName:Ze.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},kP={type:"object",nodeTypeName:Ze.EntityRelation,properties:{type:{type:"string",enum:xP},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},zt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:_P,links:{type:"array",nodeTypeName:Ze.EntityLinkList,items:TP},relations:{type:"array",nodeTypeName:Ze.EntityRelationList,items:kP},metadata:EP},IP={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...zt,type:{type:"string",const:"user"},metadata:SP},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ze.UserEntity},{type:"object",nodeTypeName:Ze.ApiOperationEntity,properties:{...zt,type:{type:"string",const:"api-operation"},metadata:$P},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.DataSchemaEntity,properties:{...zt,type:{type:"string",const:"data-schema"},metadata:AP},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.ApiDescriptionEntity,properties:{...zt,type:{type:"string",const:"api-description"},metadata:PP},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.ServiceEntity,properties:{...zt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.DomainEntity,properties:{...zt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.TeamEntity,properties:{...zt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},qP={type:"object",nodeTypeName:Ze.Entity,properties:{...zt},required:["key","title","type"],additionalProperties:!1};const CP=["Name","Document","OperationDefinition","VariableDefinition","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","Variable","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","DirectiveExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","TypeCoordinate","MemberCoordinate","ArgumentCoordinate","DirectiveCoordinate","DirectiveArgumentCoordinate"],Oi=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],vd="a-zA-Z0-9\\.\\-_",jP={oas2:Su,oas3_0:Pt,oas3_1:Fe,oas3_2:nt,async2:Mu,async3:Du,arazzo1:ot,arazzo1_1:Nu,overlay1:ta,openrpc1:Uu};function Jr(e){return e==="graphql"?{}:jP[e]}function sa(e){return e.includes("/")}var yn={exports:{}},To={},It={},Ht={},ko={},Io={},qo={},Sc;function Di(){return Sc||(Sc=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 r extends t{constructor(S){if(super(),!e.IDENTIFIER.test(S))throw new Error("CodeGen: name must be a valid identifier");this.str=S}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(S){super(),this._items=typeof S=="string"?[S]:S}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const S=this._items[0];return S===""||S==='""'}get str(){var S;return(S=this._str)!==null&&S!==void 0?S:this._str=this._items.reduce((v,O)=>`${v}${O}`,"")}get names(){var S;return(S=this._names)!==null&&S!==void 0?S:this._names=this._items.reduce((v,O)=>(O instanceof r&&(v[O.str]=(v[O.str]||0)+1),v),{})}}e._Code=n,e.nil=new n("");function i(A,...S){const v=[A[0]];let O=0;for(;O<S.length;)c(v,S[O]),v.push(A[++O]);return new n(v)}e._=i;const o=new n("+");function s(A,...S){const v=[g(A[0])];let O=0;for(;O<S.length;)v.push(o),c(v,S[O]),v.push(o,g(A[++O]));return p(v),new n(v)}e.str=s;function c(A,S){S instanceof n?A.push(...S._items):S instanceof r?A.push(S):A.push(h(S))}e.addCodeArg=c;function p(A){let S=1;for(;S<A.length-1;){if(A[S]===o){const v=l(A[S-1],A[S+1]);if(v!==void 0){A.splice(S-1,3,v);continue}A[S++]="+"}S++}}function l(A,S){if(S==='""')return A;if(A==='""')return S;if(typeof A=="string")return S instanceof r||A[A.length-1]!=='"'?void 0:typeof S!="string"?`${A.slice(0,-1)}${S}"`:S[0]==='"'?A.slice(0,-1)+S.slice(1):void 0;if(typeof S=="string"&&S[0]==='"'&&!(A instanceof r))return`"${A}${S.slice(1)}`}function d(A,S){return S.emptyStr()?A:A.emptyStr()?S:s`${A}${S}`}e.strConcat=d;function h(A){return typeof A=="number"||typeof A=="boolean"||A===null?A:g(Array.isArray(A)?A.join(","):A)}function y(A){return new n(g(A))}e.stringify=y;function g(A){return JSON.stringify(A).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=g;function $(A){return typeof A=="string"&&e.IDENTIFIER.test(A)?new n(`.${A}`):i`[${A}]`}e.getProperty=$;function x(A){if(typeof A=="string"&&e.IDENTIFIER.test(A))return new n(`${A}`);throw new Error(`CodeGen: invalid export name: ${A}, use explicit $id name mapping`)}e.getEsmExportName=x;function P(A){return new n(A.toString())}e.regexpCode=P})(qo)),qo}var Co={},Pc;function $c(){return Pc||(Pc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Di();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(p){p[p.Started=0]="Started",p[p.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:d}={}){this._names={},this._prefixes=l,this._parent=d}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const d=this._names[l]||this._nameGroup(l);return`${l}${d.index++}`}_nameGroup(l){var d,h;if(!((h=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||h===void 0)&&h.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class o extends t.Name{constructor(l,d){super(d),this.prefix=l}setValue(l,{property:d,itemIndex:h}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(d)}[${h}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class c extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,d){var h;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(l),{prefix:g}=y,$=(h=d.key)!==null&&h!==void 0?h:d.ref;let x=this._values[g];if(x){const S=x.get($);if(S)return S}else x=this._values[g]=new Map;x.set($,y);const P=this._scope[g]||(this._scope[g]=[]),A=P.length;return P[A]=d.ref,y.setValue(d,{property:g,itemIndex:A}),y}getValue(l,d){const h=this._values[l];if(h)return h.get(d)}scopeRefs(l,d=this._values){return this._reduceValues(d,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${l}${h.scopePath}`})}scopeCode(l=this._values,d,h){return this._reduceValues(l,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},d,h)}_reduceValues(l,d,h={},y){let g=t.nil;for(const $ in l){const x=l[$];if(!x)continue;const P=h[$]=h[$]||new Map;x.forEach(A=>{if(P.has(A))return;P.set(A,n.Started);let S=d(A);if(S){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;g=(0,t._)`${g}${v} ${A} = ${S};${this.opts._n}`}else if(S=y?.(A))g=(0,t._)`${g}${S}${this.opts._n}`;else throw new r(A);P.set(A,n.Completed)})}return g}}e.ValueScope=c})(Co)),Co}var Ac;function ke(){return Ac||(Ac=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=Di(),r=$c();var n=Di();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=$c();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(w,D){return this}}class s extends o{constructor(w,D,K){super(),this.varKind=w,this.name=D,this.rhs=K}render({es5:w,_n:D}){const K=w?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${K} ${this.name}${V};`+D}optimizeNames(w,D){if(w[this.name.str])return this.rhs&&(this.rhs=ie(this.rhs,w,D)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends o{constructor(w,D,K){super(),this.lhs=w,this.rhs=D,this.sideEffects=K}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,D){if(!(this.lhs instanceof t.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=ie(this.rhs,w,D),this}get names(){const w=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ee(w,this.rhs)}}class p extends c{constructor(w,D,K,V){super(w,K,V),this.op=D}render({_n:w}){return`${this.lhs} ${this.op}= ${this.rhs};`+w}}class l extends o{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class d extends o{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class h extends o{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class y extends o{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code};`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,D){return this.code=ie(this.code,w,D),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class g extends o{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((D,K)=>D+K.render(w),"")}optimizeNodes(){const{nodes:w}=this;let D=w.length;for(;D--;){const K=w[D].optimizeNodes();Array.isArray(K)?w.splice(D,1,...K):K?w[D]=K:w.splice(D,1)}return w.length>0?this:void 0}optimizeNames(w,D){const{nodes:K}=this;let V=K.length;for(;V--;){const re=K[V];re.optimizeNames(w,D)||(Pe(w,re.names),K.splice(V,1))}return K.length>0?this:void 0}get names(){return this.nodes.reduce((w,D)=>de(w,D.names),{})}}class $ extends g{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class x extends g{}class P extends ${}P.kind="else";class A extends ${constructor(w,D){super(D),this.condition=w}render(w){let D=`if(${this.condition})`+super.render(w);return this.else&&(D+="else "+this.else.render(w)),D}optimizeNodes(){super.optimizeNodes();const w=this.condition;if(w===!0)return this.nodes;let D=this.else;if(D){const K=D.optimizeNodes();D=this.else=Array.isArray(K)?new P(K):K}if(D)return w===!1?D instanceof A?D:D.nodes:this.nodes.length?this:new A(Ie(w),D instanceof A?[D]:D.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,D){var K;if(this.else=(K=this.else)===null||K===void 0?void 0:K.optimizeNames(w,D),!!(super.optimizeNames(w,D)||this.else))return this.condition=ie(this.condition,w,D),this}get names(){const w=super.names;return ee(w,this.condition),this.else&&de(w,this.else.names),w}}A.kind="if";class S extends ${}S.kind="for";class v extends S{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,D){if(super.optimizeNames(w,D))return this.iteration=ie(this.iteration,w,D),this}get names(){return de(super.names,this.iteration.names)}}class O extends S{constructor(w,D,K,V){super(),this.varKind=w,this.name=D,this.from=K,this.to=V}render(w){const D=w.es5?r.varKinds.var:this.varKind,{name:K,from:V,to:re}=this;return`for(${D} ${K}=${V}; ${K}<${re}; ${K}++)`+super.render(w)}get names(){const w=ee(super.names,this.from);return ee(w,this.to)}}class b extends S{constructor(w,D,K,V){super(),this.loop=w,this.varKind=D,this.name=K,this.iterable=V}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,D){if(super.optimizeNames(w,D))return this.iterable=ie(this.iterable,w,D),this}get names(){return de(super.names,this.iterable.names)}}class k extends ${constructor(w,D,K){super(),this.name=w,this.args=D,this.async=K}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}k.kind="func";class M extends g{render(w){return"return "+super.render(w)}}M.kind="return";class H extends ${render(w){let D="try"+super.render(w);return this.catch&&(D+=this.catch.render(w)),this.finally&&(D+=this.finally.render(w)),D}optimizeNodes(){var w,D;return super.optimizeNodes(),(w=this.catch)===null||w===void 0||w.optimizeNodes(),(D=this.finally)===null||D===void 0||D.optimizeNodes(),this}optimizeNames(w,D){var K,V;return super.optimizeNames(w,D),(K=this.catch)===null||K===void 0||K.optimizeNames(w,D),(V=this.finally)===null||V===void 0||V.optimizeNames(w,D),this}get names(){const w=super.names;return this.catch&&de(w,this.catch.names),this.finally&&de(w,this.finally.names),w}}class G extends ${constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.render(w)}}G.kind="catch";class Z extends ${render(w){return"finally"+super.render(w)}}Z.kind="finally";class te{constructor(w,D={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...D,_n:D.lines?`
|
|
2
2
|
`:""},this._extScope=w,this._scope=new r.Scope({parent:w}),this._nodes=[new x]}toString(){return this._root.render(this.opts)}name(w){return this._scope.name(w)}scopeName(w){return this._extScope.name(w)}scopeValue(w,D){const K=this._extScope.value(w,D);return(this._values[K.prefix]||(this._values[K.prefix]=new Set)).add(K),K}getScopeValue(w,D){return this._extScope.getValue(w,D)}scopeRefs(w){return this._extScope.scopeRefs(w,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(w,D,K,V){const re=this._scope.toName(D);return K!==void 0&&V&&(this._constants[re.str]=K),this._leafNode(new s(w,re,K)),re}const(w,D,K){return this._def(r.varKinds.const,w,D,K)}let(w,D,K){return this._def(r.varKinds.let,w,D,K)}var(w,D,K){return this._def(r.varKinds.var,w,D,K)}assign(w,D,K){return this._leafNode(new c(w,D,K))}add(w,D){return this._leafNode(new p(w,e.operators.ADD,D))}code(w){return typeof w=="function"?w():w!==t.nil&&this._leafNode(new y(w)),this}object(...w){const D=["{"];for(const[K,V]of w)D.length>1&&D.push(","),D.push(K),(K!==V||this.opts.es5)&&(D.push(":"),(0,t.addCodeArg)(D,V));return D.push("}"),new t._Code(D)}if(w,D,K){if(this._blockNode(new A(w)),D&&K)this.code(D).else().code(K).endIf();else if(D)this.code(D).endIf();else if(K)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(w){return this._elseNode(new A(w))}else(){return this._elseNode(new P)}endIf(){return this._endBlockNode(A,P)}_for(w,D){return this._blockNode(w),D&&this.code(D).endFor(),this}for(w,D){return this._for(new v(w),D)}forRange(w,D,K,V,re=this.opts.es5?r.varKinds.var:r.varKinds.let){const we=this._scope.toName(w);return this._for(new O(re,we,D,K),()=>V(we))}forOf(w,D,K,V=r.varKinds.const){const re=this._scope.toName(w);if(this.opts.es5){const we=D instanceof t.Name?D:this.var("_arr",D);return this.forRange("_i",0,(0,t._)`${we}.length`,$e=>{this.var(re,(0,t._)`${we}[${$e}]`),K(re)})}return this._for(new b("of",V,re,D),()=>K(re))}forIn(w,D,K,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(w,(0,t._)`Object.keys(${D})`,K);const re=this._scope.toName(w);return this._for(new b("in",V,re,D),()=>K(re))}endFor(){return this._endBlockNode(S)}label(w){return this._leafNode(new l(w))}break(w){return this._leafNode(new d(w))}return(w){const D=new M;if(this._blockNode(D),this.code(w),D.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(M)}try(w,D,K){if(!D&&!K)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new H;if(this._blockNode(V),this.code(w),D){const re=this.name("e");this._currNode=V.catch=new G(re),D(re)}return K&&(this._currNode=V.finally=new Z,this.code(K)),this._endBlockNode(G,Z)}throw(w){return this._leafNode(new h(w))}block(w,D){return this._blockStarts.push(this._nodes.length),w&&this.code(w).endBlock(D),this}endBlock(w){const D=this._blockStarts.pop();if(D===void 0)throw new Error("CodeGen: not in self-balancing block");const K=this._nodes.length-D;if(K<0||w!==void 0&&K!==w)throw new Error(`CodeGen: wrong number of nodes: ${K} vs ${w} expected`);return this._nodes.length=D,this}func(w,D=t.nil,K,V){return this._blockNode(new k(w,D,K)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(w=1){for(;w-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(w){return this._currNode.nodes.push(w),this}_blockNode(w){this._currNode.nodes.push(w),this._nodes.push(w)}_endBlockNode(w,D){const K=this._currNode;if(K instanceof w||D&&K instanceof D)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${D?`${w.kind}/${D.kind}`:w.kind}"`)}_elseNode(w){const D=this._currNode;if(!(D instanceof A))throw new Error('CodeGen: "else" without "if"');return this._currNode=D.else=w,this}get _root(){return this._nodes[0]}get _currNode(){const w=this._nodes;return w[w.length-1]}set _currNode(w){const D=this._nodes;D[D.length-1]=w}}e.CodeGen=te;function de(q,w){for(const D in w)q[D]=(q[D]||0)+(w[D]||0);return q}function ee(q,w){return w instanceof t._CodeOrName?de(q,w.names):q}function ie(q,w,D){if(q instanceof t.Name)return K(q);if(!V(q))return q;return new t._Code(q._items.reduce((re,we)=>(we instanceof t.Name&&(we=K(we)),we instanceof t._Code?re.push(...we._items):re.push(we),re),[]));function K(re){const we=D[re.str];return we===void 0||w[re.str]!==1?re:(delete w[re.str],we)}function V(re){return re instanceof t._Code&&re._items.some(we=>we instanceof t.Name&&w[we.str]===1&&D[we.str]!==void 0)}}function Pe(q,w){for(const D in w)q[D]=(q[D]||0)-(w[D]||0)}function Ie(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${C(q)}`}e.not=Ie;const Le=R(e.operators.AND);function Se(...q){return q.reduce(Le)}e.and=Se;const qe=R(e.operators.OR);function _(...q){return q.reduce(qe)}e.or=_;function R(q){return(w,D)=>w===t.nil?D:D===t.nil?w:(0,t._)`${C(w)} ${q} ${C(D)}`}function C(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Io)),Io}var je={},Ec;function Ne(){if(Ec)return je;Ec=1,Object.defineProperty(je,"__esModule",{value:!0}),je.checkStrictMode=je.getErrorPath=je.Type=je.useFunc=je.setEvaluated=je.evaluatedPropsToName=je.mergeEvaluated=je.eachItem=je.unescapeJsonPointer=je.escapeJsonPointer=je.escapeFragment=je.unescapeFragment=je.schemaRefOrVal=je.schemaHasRulesButRef=je.schemaHasRules=je.checkUnknownRules=je.alwaysValidSchema=je.toHash=void 0;const e=ke(),t=Di();function r(b){const k={};for(const M of b)k[M]=!0;return k}je.toHash=r;function n(b,k){return typeof k=="boolean"?k:Object.keys(k).length===0?!0:(i(b,k),!o(k,b.self.RULES.all))}je.alwaysValidSchema=n;function i(b,k=b.schema){const{opts:M,self:H}=b;if(!M.strictSchema||typeof k=="boolean")return;const G=H.RULES.keywords;for(const Z in k)G[Z]||O(b,`unknown keyword: "${Z}"`)}je.checkUnknownRules=i;function o(b,k){if(typeof b=="boolean")return!b;for(const M in b)if(k[M])return!0;return!1}je.schemaHasRules=o;function s(b,k){if(typeof b=="boolean")return!b;for(const M in b)if(M!=="$ref"&&k.all[M])return!0;return!1}je.schemaHasRulesButRef=s;function c({topSchemaRef:b,schemaPath:k},M,H,G){if(!G){if(typeof M=="number"||typeof M=="boolean")return M;if(typeof M=="string")return(0,e._)`${M}`}return(0,e._)`${b}${k}${(0,e.getProperty)(H)}`}je.schemaRefOrVal=c;function p(b){return h(decodeURIComponent(b))}je.unescapeFragment=p;function l(b){return encodeURIComponent(d(b))}je.escapeFragment=l;function d(b){return typeof b=="number"?`${b}`:b.replace(/~/g,"~0").replace(/\//g,"~1")}je.escapeJsonPointer=d;function h(b){return b.replace(/~1/g,"/").replace(/~0/g,"~")}je.unescapeJsonPointer=h;function y(b,k){if(Array.isArray(b))for(const M of b)k(M);else k(b)}je.eachItem=y;function g({mergeNames:b,mergeToName:k,mergeValues:M,resultToName:H}){return(G,Z,te,de)=>{const ee=te===void 0?Z:te instanceof e.Name?(Z instanceof e.Name?b(G,Z,te):k(G,Z,te),te):Z instanceof e.Name?(k(G,te,Z),Z):M(Z,te);return de===e.Name&&!(ee instanceof e.Name)?H(G,ee):ee}}je.mergeEvaluated={props:g({mergeNames:(b,k,M)=>b.if((0,e._)`${M} !== true && ${k} !== undefined`,()=>{b.if((0,e._)`${k} === true`,()=>b.assign(M,!0),()=>b.assign(M,(0,e._)`${M} || {}`).code((0,e._)`Object.assign(${M}, ${k})`))}),mergeToName:(b,k,M)=>b.if((0,e._)`${M} !== true`,()=>{k===!0?b.assign(M,!0):(b.assign(M,(0,e._)`${M} || {}`),x(b,M,k))}),mergeValues:(b,k)=>b===!0?!0:{...b,...k},resultToName:$}),items:g({mergeNames:(b,k,M)=>b.if((0,e._)`${M} !== true && ${k} !== undefined`,()=>b.assign(M,(0,e._)`${k} === true ? true : ${M} > ${k} ? ${M} : ${k}`)),mergeToName:(b,k,M)=>b.if((0,e._)`${M} !== true`,()=>b.assign(M,k===!0?!0:(0,e._)`${M} > ${k} ? ${M} : ${k}`)),mergeValues:(b,k)=>b===!0?!0:Math.max(b,k),resultToName:(b,k)=>b.var("items",k)})};function $(b,k){if(k===!0)return b.var("props",!0);const M=b.var("props",(0,e._)`{}`);return k!==void 0&&x(b,M,k),M}je.evaluatedPropsToName=$;function x(b,k,M){Object.keys(M).forEach(H=>b.assign((0,e._)`${k}${(0,e.getProperty)(H)}`,!0))}je.setEvaluated=x;const P={};function A(b,k){return b.scopeValue("func",{ref:k,code:P[k.code]||(P[k.code]=new t._Code(k.code))})}je.useFunc=A;var S;(function(b){b[b.Num=0]="Num",b[b.Str=1]="Str"})(S||(je.Type=S={}));function v(b,k,M){if(b instanceof e.Name){const H=k===S.Num;return M?H?(0,e._)`"[" + ${b} + "]"`:(0,e._)`"['" + ${b} + "']"`:H?(0,e._)`"/" + ${b}`:(0,e._)`"/" + ${b}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return M?(0,e.getProperty)(b).toString():"/"+d(b)}je.getErrorPath=v;function O(b,k,M=b.opts.strictSchema){if(M){if(k=`strict mode: ${k}`,M===!0)throw new Error(k);b.self.logger.warn(k)}}return je.checkStrictMode=O,je}var gn={},Oc;function lt(){if(Oc)return gn;Oc=1,Object.defineProperty(gn,"__esModule",{value:!0});const e=ke(),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"),isAllOfVariant:new e.Name("isAllOfVariant"),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 gn.default=t,gn}var Rc;function ro(){return Rc||(Rc=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=ke(),r=Ne(),n=lt();e.keywordError={message:({keyword:P})=>(0,t.str)`must pass "${P}" keyword validation`},e.keyword$DataError={message:({keyword:P,schemaType:A})=>A?(0,t.str)`"${P}" keyword must be ${A} ($data)`:(0,t.str)`"${P}" keyword is invalid ($data)`};function i(P,A=e.keywordError,S,v){const{it:O}=P,{gen:b,compositeRule:k,allErrors:M}=O,H=h(P,A,S);v??(k||M)?p(b,H):l(O,(0,t._)`[${H}]`)}e.reportError=i;function o(P,A=e.keywordError,S){const{it:v}=P,{gen:O,compositeRule:b,allErrors:k}=v,M=h(P,A,S);p(O,M),b||k||l(v,n.default.vErrors)}e.reportExtraError=o;function s(P,A){P.assign(n.default.errors,A),P.if((0,t._)`${n.default.vErrors} !== null`,()=>P.if(A,()=>P.assign((0,t._)`${n.default.vErrors}.length`,A),()=>P.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function c({gen:P,keyword:A,schemaValue:S,data:v,errsCount:O,it:b}){if(O===void 0)throw new Error("ajv implementation error");const k=P.name("err");P.forRange("i",O,n.default.errors,M=>{P.const(k,(0,t._)`${n.default.vErrors}[${M}]`),P.if((0,t._)`${k}.instancePath === undefined`,()=>P.assign((0,t._)`${k}.instancePath`,(0,t.strConcat)(n.default.instancePath,b.errorPath))),P.assign((0,t._)`${k}.schemaPath`,(0,t.str)`${b.errSchemaPath}/${A}`),b.opts.verbose&&(P.assign((0,t._)`${k}.schema`,S),P.assign((0,t._)`${k}.data`,v))})}e.extendErrors=c;function p(P,A){const S=P.const("err",A);P.if((0,t._)`${n.default.vErrors} === null`,()=>P.assign(n.default.vErrors,(0,t._)`[${S}]`),(0,t._)`${n.default.vErrors}.push(${S})`),P.code((0,t._)`${n.default.errors}++`)}function l(P,A){const{gen:S,validateName:v,schemaEnv:O}=P;O.$async?S.throw((0,t._)`new ${P.ValidationError}(${A})`):(S.assign((0,t._)`${v}.errors`,A),S.return(!1))}const d={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 h(P,A,S){const{createErrors:v}=P.it;return v===!1?(0,t._)`{}`:y(P,A,S)}function y(P,A,S={}){const{gen:v,it:O}=P,b=[g(O,S),$(P,S)];return x(P,A,b),v.object(...b)}function g({errorPath:P},{instancePath:A}){const S=A?(0,t.str)`${P}${(0,r.getErrorPath)(A,r.Type.Str)}`:P;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,S)]}function $({keyword:P,it:{errSchemaPath:A}},{schemaPath:S,parentSchema:v}){let O=v?A:(0,t.str)`${A}/${P}`;return S&&(O=(0,t.str)`${O}${(0,r.getErrorPath)(S,r.Type.Str)}`),[d.schemaPath,O]}function x(P,{params:A,message:S},v){const{keyword:O,data:b,schemaValue:k,it:M}=P,{opts:H,propertyName:G,topSchemaRef:Z,schemaPath:te}=M;v.push([d.keyword,O],[d.params,typeof A=="function"?A(P):A||(0,t._)`{}`]),H.messages&&v.push([d.message,typeof S=="function"?S(P):S]),H.verbose&&v.push([d.schema,k],[d.parentSchema,(0,t._)`${Z}${te}`],[n.default.data,b]),G&&v.push([d.propertyName,G])}})(ko)),ko}var _c;function MP(){if(_c)return Ht;_c=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.boolOrEmptySchema=Ht.topBoolOrEmptySchema=void 0;const e=ro(),t=ke(),r=lt(),n={message:"boolean schema is false"};function i(c){const{gen:p,schema:l,validateName:d}=c;l===!1?s(c,!1):typeof l=="object"&&l.$async===!0?p.return(r.default.data):(p.assign((0,t._)`${d}.errors`,null),p.return(!0))}Ht.topBoolOrEmptySchema=i;function o(c,p){const{gen:l,schema:d}=c;d===!1?(l.var(p,!1),s(c)):l.var(p,!0)}Ht.boolOrEmptySchema=o;function s(c,p){const{gen:l,data:d}=c,h={gen:l,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(h,n,void 0,p)}return Ht}var rt={},Kt={},Tc;function wd(){if(Tc)return Kt;Tc=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.getRules=Kt.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}Kt.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return Kt.getRules=n,Kt}var qt={},kc;function xd(){if(kc)return qt;kc=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.shouldUseRule=qt.shouldUseGroup=qt.schemaHasRulesForType=void 0;function e({schema:n,self:i},o){const s=i.RULES.types[o];return s&&s!==!0&&t(n,s)}qt.schemaHasRulesForType=e;function t(n,i){return i.rules.some(o=>r(n,o))}qt.shouldUseGroup=t;function r(n,i){var o;return n[i.keyword]!==void 0||((o=i.definition.implements)===null||o===void 0?void 0:o.some(s=>n[s]!==void 0))}return qt.shouldUseRule=r,qt}var Ic;function Ni(){if(Ic)return rt;Ic=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.reportTypeError=rt.checkDataTypes=rt.checkDataType=rt.coerceAndCheckDataType=rt.getJSONTypes=rt.getSchemaTypes=rt.DataType=void 0;const e=wd(),t=xd(),r=ro(),n=ke(),i=Ne();var o;(function(S){S[S.Correct=0]="Correct",S[S.Wrong=1]="Wrong"})(o||(rt.DataType=o={}));function s(S){const v=c(S.type);if(v.includes("null")){if(S.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!v.length&&S.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');S.nullable===!0&&v.push("null")}return v}rt.getSchemaTypes=s;function c(S){const v=Array.isArray(S)?S:S?[S]:[];if(v.every(e.isJSONType))return v;throw new Error("type must be JSONType or JSONType[]: "+v.join(","))}rt.getJSONTypes=c;function p(S,v){const{gen:O,data:b,opts:k}=S,M=d(v,k.coerceTypes),H=v.length>0&&!(M.length===0&&v.length===1&&(0,t.schemaHasRulesForType)(S,v[0]));if(H){const G=$(v,b,k.strictNumbers,o.Wrong);O.if(G,()=>{M.length?h(S,v,M):P(S)})}return H}rt.coerceAndCheckDataType=p;const l=new Set(["string","number","integer","boolean","null"]);function d(S,v){return v?S.filter(O=>l.has(O)||v==="array"&&O==="array"):[]}function h(S,v,O){const{gen:b,data:k,opts:M}=S,H=b.let("dataType",(0,n._)`typeof ${k}`),G=b.let("coerced",(0,n._)`undefined`);M.coerceTypes==="array"&&b.if((0,n._)`${H} == 'object' && Array.isArray(${k}) && ${k}.length == 1`,()=>b.assign(k,(0,n._)`${k}[0]`).assign(H,(0,n._)`typeof ${k}`).if($(v,k,M.strictNumbers),()=>b.assign(G,k))),b.if((0,n._)`${G} !== undefined`);for(const te of O)(l.has(te)||te==="array"&&M.coerceTypes==="array")&&Z(te);b.else(),P(S),b.endIf(),b.if((0,n._)`${G} !== undefined`,()=>{b.assign(k,G),y(S,G)});function Z(te){switch(te){case"string":b.elseIf((0,n._)`${H} == "number" || ${H} == "boolean"`).assign(G,(0,n._)`"" + ${k}`).elseIf((0,n._)`${k} === null`).assign(G,(0,n._)`""`);return;case"number":b.elseIf((0,n._)`${H} == "boolean" || ${k} === null
|
|
3
3
|
|| (${H} == "string" && ${k} && ${k} == +${k})`).assign(G,(0,n._)`+${k}`);return;case"integer":b.elseIf((0,n._)`${H} === "boolean" || ${k} === null
|
|
4
4
|
|| (${H} === "string" && ${k} && ${k} == +${k} && !(${k} % 1))`).assign(G,(0,n._)`+${k}`);return;case"boolean":b.elseIf((0,n._)`${k} === "false" || ${k} === 0 || ${k} === null`).assign(G,!1).elseIf((0,n._)`${k} === "true" || ${k} === 1`).assign(G,!0);return;case"null":b.elseIf((0,n._)`${k} === "" || ${k} === 0 || ${k} === false`),b.assign(G,null);return;case"array":b.elseIf((0,n._)`${H} === "string" || ${H} === "number"
|
|
5
5
|
|| ${H} === "boolean" || ${k} === null`).assign(G,(0,n._)`[${k}]`)}}}function y({gen:S,parentData:v,parentDataProperty:O},b){S.if((0,n._)`${v} !== undefined`,()=>S.assign((0,n._)`${v}[${O}]`,b))}function g(S,v,O,b=o.Correct){const k=b===o.Correct?n.operators.EQ:n.operators.NEQ;let M;switch(S){case"null":return(0,n._)`${v} ${k} null`;case"array":M=(0,n._)`Array.isArray(${v})`;break;case"object":M=(0,n._)`${v} && typeof ${v} == "object" && !Array.isArray(${v})`;break;case"integer":M=H((0,n._)`!(${v} % 1) && !isNaN(${v})`);break;case"number":M=H();break;default:return(0,n._)`typeof ${v} ${k} ${S}`}return b===o.Correct?M:(0,n.not)(M);function H(G=n.nil){return(0,n.and)((0,n._)`typeof ${v} == "number"`,G,O?(0,n._)`isFinite(${v})`:n.nil)}}rt.checkDataType=g;function $(S,v,O,b){if(S.length===1)return g(S[0],v,O,b);let k;const M=(0,i.toHash)(S);if(M.array&&M.object){const H=(0,n._)`typeof ${v} != "object"`;k=M.null?H:(0,n._)`!${v} || ${H}`,delete M.null,delete M.array,delete M.object}else k=n.nil;M.number&&delete M.integer;for(const H in M)k=(0,n.and)(k,g(H,v,O,b));return k}rt.checkDataTypes=$;const x={message:({schema:S})=>`must be ${S}`,params:({schema:S,schemaValue:v})=>typeof S=="string"?(0,n._)`{type: ${S}}`:(0,n._)`{type: ${v}}`};function P(S){const v=A(S);(0,r.reportError)(v,x)}rt.reportTypeError=P;function A(S){const{gen:v,data:O,schema:b}=S,k=(0,i.schemaRefOrVal)(S,b,"type");return{gen:v,keyword:"type",data:O,schema:b.type,schemaCode:k,schemaValue:k,parentSchema:b,params:{},it:S}}return rt}var kr={},qc;function DP(){if(qc)return kr;qc=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.assignDefaults=void 0;const e=ke(),t=Ne();function r(i,o){const{properties:s,items:c}=i.schema;if(o==="object"&&s)for(const p in s)n(i,p,s[p].default);else o==="array"&&Array.isArray(c)&&c.forEach((p,l)=>n(i,l,p.default))}kr.assignDefaults=r;function n(i,o,s){const{gen:c,compositeRule:p,data:l,opts:d}=i;if(s===void 0)return;const h=(0,e._)`${l}${(0,e.getProperty)(o)}`;if(p){(0,t.checkStrictMode)(i,`default is ignored for: ${h}`);return}let y=(0,e._)`${h} === undefined`;d.useDefaults==="empty"&&(y=(0,e._)`${y} || ${h} === null || ${h} === ""`),c.if(y,(0,e._)`${h} = ${(0,e.stringify)(s)}`)}return kr}var bt={},Ge={},Ir={},Cc;function Sd(){if(Cc)return Ir;Cc=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.getSkipCondition=void 0;const e=ke(),t=lt();function r(n,i){var o;const s=(o=n.properties)===null||o===void 0?void 0:o[i];if(!s)return;const c=s.readOnly===!0,p=s.writeOnly===!0;if(!c&&!p)return;const l=[],d=(0,e._)`typeof ${t.default.this} == "object" && ${t.default.this} && ${t.default.this}.apiContext`;return c&&l.push((0,e._)`${d} === "request"`),p&&l.push((0,e._)`${d} === "response"`),(0,e.or)(...l)}return Ir.getSkipCondition=r,Ir}var jc;function At(){if(jc)return Ge;jc=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.validateUnion=Ge.validateArray=Ge.usePattern=Ge.callValidateCode=Ge.schemaProperties=Ge.allSchemaProperties=Ge.noPropertyInData=Ge.propertyInData=Ge.isOwnProperty=Ge.hasPropFunc=Ge.reportMissingProp=Ge.checkMissingProp=Ge.checkReportMissingProp=void 0;const e=ke(),t=Ne(),r=lt(),n=Ne(),i=Sd();function o(v,O){const{gen:b,data:k,it:M}=v;b.if(h(b,k,O,M.opts.ownProperties),()=>{v.setParams({missingProperty:(0,e._)`${O}`},!0),v.error()})}Ge.checkReportMissingProp=o;function s({gen:v,data:O,it:{opts:b},parentSchema:k},M,H){return(0,e.or)(...M.map(G=>{var Z;return(0,e.and)((0,e.not)((Z=(0,i.getSkipCondition)(k,G))!==null&&Z!==void 0?Z:(0,e._)`false`),h(v,O,G,b.ownProperties),(0,e._)`${H} = ${G}`)}))}Ge.checkMissingProp=s;function c(v,O){v.setParams({missingProperty:O},!0),v.error()}Ge.reportMissingProp=c;function p(v){return v.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ge.hasPropFunc=p;function l(v,O,b){return(0,e._)`${p(v)}.call(${O}, ${b})`}Ge.isOwnProperty=l;function d(v,O,b,k){const M=(0,e._)`${O}${(0,e.getProperty)(b)} !== undefined`;return k?(0,e._)`${M} && ${l(v,O,b)}`:M}Ge.propertyInData=d;function h(v,O,b,k){const M=(0,e._)`${O}${(0,e.getProperty)(b)} === undefined`;return k?(0,e.or)(M,(0,e.not)(l(v,O,b))):M}Ge.noPropertyInData=h;function y(v){return v?Object.keys(v).filter(O=>O!=="__proto__"):[]}Ge.allSchemaProperties=y;function g(v,O){return y(O).filter(b=>!(0,t.alwaysValidSchema)(v,O[b]))}Ge.schemaProperties=g;function $({schemaCode:v,data:O,it:{gen:b,topSchemaRef:k,schemaPath:M,errorPath:H},it:G},Z,te,de){const ee=de?(0,e._)`${v}, ${O}, ${k}${M}`:O,ie=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,H)],[r.default.parentData,G.parentData],[r.default.parentDataProperty,G.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,G.isAllOfVariant?1:0]];G.opts.dynamicRef&&ie.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const Pe=(0,e._)`${ee}, ${b.object(...ie)}`;return te!==e.nil?(0,e._)`${Z}.call(${te}, ${Pe})`:(0,e._)`${Z}(${Pe})`}Ge.callValidateCode=$;const x=(0,e._)`new RegExp`;function P({gen:v,it:{opts:O}},b){const k=O.unicodeRegExp?"u":"",{regExp:M}=O.code,H=M(b,k);return v.scopeValue("pattern",{key:H.toString(),ref:H,code:(0,e._)`${M.code==="new RegExp"?x:(0,n.useFunc)(v,M)}(${b}, ${k})`})}Ge.usePattern=P;function A(v){const{gen:O,data:b,keyword:k,it:M}=v,H=O.name("valid");if(M.allErrors){const Z=O.let("valid",!0);return G(()=>O.assign(Z,!1)),Z}return O.var(H,!0),G(()=>O.break()),H;function G(Z){const te=O.const("len",(0,e._)`${b}.length`);O.forRange("i",0,te,de=>{v.subschema({keyword:k,dataProp:de,dataPropType:t.Type.Num},H),O.if((0,e.not)(H),Z)})}}Ge.validateArray=A;function S(v){const{gen:O,schema:b,keyword:k,parentSchema:M,it:H}=v;if(!Array.isArray(b))throw new Error("ajv implementation error");if(H.opts.discriminator&&M.discriminator||b.some(de=>(0,t.alwaysValidSchema)(H,de))&&!H.opts.unevaluated)return;const Z=O.let("valid",!1),te=O.name("_valid");O.block(()=>b.forEach((de,ee)=>{const ie=v.subschema({keyword:k,schemaProp:ee,compositeRule:!0},te);O.assign(Z,(0,e._)`${Z} || ${te}`),v.mergeValidEvaluated(ie,te)||O.if((0,e.not)(Z))})),v.result(Z,()=>v.reset(),()=>v.error(!0))}return Ge.validateUnion=S,Ge}var Mc;function NP(){if(Mc)return bt;Mc=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.validateKeywordUsage=bt.validSchemaType=bt.funcKeywordCode=bt.macroKeywordCode=void 0;const e=ke(),t=lt(),r=At(),n=ro();function i(y,g){const{gen:$,keyword:x,schema:P,parentSchema:A,it:S}=y,v=g.macro.call(S.self,P,A,S),O=l($,x,v);S.opts.validateSchema!==!1&&S.self.validateSchema(v,!0);const b=$.name("valid");y.subschema({schema:v,schemaPath:e.nil,errSchemaPath:`${S.errSchemaPath}/${x}`,topSchemaRef:O,compositeRule:!0},b),y.pass(b,()=>y.error(!0))}bt.macroKeywordCode=i;function o(y,g){var $;const{gen:x,keyword:P,schema:A,parentSchema:S,$data:v,it:O}=y;p(O,g);const b=!v&&g.compile?g.compile.call(O.self,A,S,O):g.validate,k=l(x,P,b),M=x.let("valid");y.block$data(M,H),y.ok(($=g.valid)!==null&&$!==void 0?$:M);function H(){if(g.errors===!1)te(),g.modifying&&s(y),de(()=>y.error());else{const ee=g.async?G():Z();g.modifying&&s(y),de(()=>c(y,ee))}}function G(){const ee=x.let("ruleErrs",null);return x.try(()=>te((0,e._)`await `),ie=>x.assign(M,!1).if((0,e._)`${ie} instanceof ${O.ValidationError}`,()=>x.assign(ee,(0,e._)`${ie}.errors`),()=>x.throw(ie))),ee}function Z(){const ee=(0,e._)`${k}.errors`;return x.assign(ee,null),te(e.nil),ee}function te(ee=g.async?(0,e._)`await `:e.nil){const ie=O.opts.passContext?t.default.this:t.default.self,Pe=!("compile"in g&&!v||g.schema===!1);x.assign(M,(0,e._)`${ee}${(0,r.callValidateCode)(y,k,ie,Pe)}`,g.modifying)}function de(ee){var ie;x.if((0,e.not)((ie=g.valid)!==null&&ie!==void 0?ie:M),ee)}}bt.funcKeywordCode=o;function s(y){const{gen:g,data:$,it:x}=y;g.if(x.parentData,()=>g.assign($,(0,e._)`${x.parentData}[${x.parentDataProperty}]`))}function c(y,g){const{gen:$}=y;$.if((0,e._)`Array.isArray(${g})`,()=>{$.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${g} : ${t.default.vErrors}.concat(${g})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(y)},()=>y.error())}function p({schemaEnv:y},g){if(g.async&&!y.$async)throw new Error("async keyword in sync schema")}function l(y,g,$){if($===void 0)throw new Error(`keyword "${g}" failed to compile`);return y.scopeValue("keyword",typeof $=="function"?{ref:$}:{ref:$,code:(0,e.stringify)($)})}function d(y,g,$=!1){return!g.length||g.some(x=>x==="array"?Array.isArray(y):x==="object"?y&&typeof y=="object"&&!Array.isArray(y):typeof y==x||$&&typeof y>"u")}bt.validSchemaType=d;function h({schema:y,opts:g,self:$,errSchemaPath:x},P,A){if(Array.isArray(P.keyword)?!P.keyword.includes(A):P.keyword!==A)throw new Error("ajv implementation error");const S=P.dependencies;if(S?.some(v=>!Object.prototype.hasOwnProperty.call(y,v)))throw new Error(`parent schema must have dependencies of ${A}: ${S.join(",")}`);if(P.validateSchema&&!P.validateSchema(y[A])){const O=`keyword "${A}" value is invalid at path "${x}": `+$.errorsText(P.validateSchema.errors);if(g.validateSchema==="log")$.logger.error(O);else throw new Error(O)}}return bt.validateKeywordUsage=h,bt}var Ct={},Dc;function LP(){if(Dc)return Ct;Dc=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.extendSubschemaMode=Ct.extendSubschemaData=Ct.getSubschema=void 0;const e=ke(),t=Ne();function r(o,{keyword:s,schemaProp:c,schema:p,schemaPath:l,errSchemaPath:d,topSchemaRef:h}){if(s!==void 0&&p!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const y=o.schema[s];return c===void 0?{schema:y,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${s}`}:{schema:y[c],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(c)}`,errSchemaPath:`${o.errSchemaPath}/${s}/${(0,t.escapeFragment)(c)}`}}if(p!==void 0){if(l===void 0||d===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:p,schemaPath:l,topSchemaRef:h,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}Ct.getSubschema=r;function n(o,s,{dataProp:c,dataPropType:p,data:l,dataTypes:d,propertyName:h}){if(l!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:y}=s;if(c!==void 0){const{errorPath:$,dataPathArr:x,opts:P}=s,A=y.let("data",(0,e._)`${s.data}${(0,e.getProperty)(c)}`,!0);g(A),o.errorPath=(0,e.str)`${$}${(0,t.getErrorPath)(c,p,P.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${c}`,o.dataPathArr=[...x,o.parentDataProperty]}if(l!==void 0){const $=l instanceof e.Name?l:y.let("data",l,!0);g($),h!==void 0&&(o.propertyName=h)}d&&(o.dataTypes=d);function g($){o.data=$,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,$]}}Ct.extendSubschemaData=n;function i(o,{jtdDiscriminator:s,jtdMetadata:c,compositeRule:p,createErrors:l,allErrors:d}){p!==void 0&&(o.compositeRule=p),l!==void 0&&(o.createErrors=l),d!==void 0&&(o.allErrors=d),o.jtdDiscriminator=s,o.jtdMetadata=c}return Ct.extendSubschemaMode=i,Ct}var at={},jo={exports:{}},Nc;function UP(){if(Nc)return jo.exports;Nc=1;var e=jo.exports=function(n,i,o){typeof i=="function"&&(o=i,i={}),o=i.cb||o;var s=typeof o=="function"?o:o.pre||function(){},c=o.post||function(){};t(i,s,c,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(n,i,o,s,c,p,l,d,h,y){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,c,p,l,d,h,y);for(var g in s){var $=s[g];if(Array.isArray($)){if(g in e.arrayKeywords)for(var x=0;x<$.length;x++)t(n,i,o,$[x],c+"/"+g+"/"+x,p,c,g,s,x)}else if(g in e.propsKeywords){if($&&typeof $=="object")for(var P in $)t(n,i,o,$[P],c+"/"+g+"/"+r(P),p,c,g,s,P)}else(g in e.keywords||n.allKeys&&!(g in e.skipKeywords))&&t(n,i,o,$,c+"/"+g,p,c,g,s)}o(s,c,p,l,d,h,y)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return jo.exports}var Lc;function no(){if(Lc)return at;Lc=1,Object.defineProperty(at,"__esModule",{value:!0}),at.getSchemaRefs=at.resolveUrl=at.normalizeId=at._getFullPath=at.getFullPath=at.inlineRef=void 0;const e=Ne(),t=Y.requireFastDeepEqual(),r=UP(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(x,P=!0){return typeof x=="boolean"?!0:P===!0?!s(x):P?c(x)<=P:!1}at.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(x){for(const P in x){if(o.has(P))return!0;const A=x[P];if(Array.isArray(A)&&A.some(s)||typeof A=="object"&&s(A))return!0}return!1}function c(x){let P=0;for(const A in x){if(A==="$ref")return 1/0;if(P++,!n.has(A)&&(typeof x[A]=="object"&&(0,e.eachItem)(x[A],S=>P+=c(S)),P===1/0))return 1/0}return P}function p(x,P="",A){A!==!1&&(P=h(P));const S=x.parse(P);return l(x,S)}at.getFullPath=p;function l(x,P){return x.serialize(P).split("#")[0]+"#"}at._getFullPath=l;const d=/#\/?$/;function h(x){return x?x.replace(d,""):""}at.normalizeId=h;function y(x,P,A){return A=h(A),x.resolve(P,A)}at.resolveUrl=y;const g=/^[a-z_][-a-z0-9._]*$/i;function $(x,P){if(typeof x=="boolean")return{};const{schemaId:A,uriResolver:S}=this.opts,v=h(x[A]||P),O={"":v},b=p(S,v,!1),k={},M=new Set;return r(x,{allKeys:!0},(Z,te,de,ee)=>{if(ee===void 0)return;const ie=b+te;let Pe=O[ee];typeof Z[A]=="string"&&(Pe=Ie.call(this,Z[A])),Le.call(this,Z.$anchor),Le.call(this,Z.$dynamicAnchor),O[te]=Pe;function Ie(Se){const qe=this.opts.uriResolver.resolve;if(Se=h(Pe?qe(Pe,Se):Se),M.has(Se))throw G(Se);M.add(Se);let _=this.refs[Se];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?H(Z,_.schema,Se):Se!==h(ie)&&(Se[0]==="#"?(H(Z,k[Se],Se),k[Se]=Z):this.refs[Se]=ie),Se}function Le(Se){if(typeof Se=="string"){if(!g.test(Se))throw new Error(`invalid anchor "${Se}"`);Ie.call(this,`#${Se}`)}}}),k;function H(Z,te,de){if(te!==void 0&&!t(Z,te))throw G(de)}function G(Z){return new Error(`reference "${Z}" resolves to more than one schema`)}}return at.getSchemaRefs=$,at}var Uc;function wr(){if(Uc)return It;Uc=1,Object.defineProperty(It,"__esModule",{value:!0}),It.getData=It.KeywordCxt=It.validateFunctionCode=void 0;const e=MP(),t=Ni(),r=xd(),n=Ni(),i=DP(),o=NP(),s=LP(),c=ke(),p=lt(),l=no(),d=Ne(),h=ro();function y(z){if(b(z)&&(M(z),O(z))){P(z);return}g(z,()=>(0,e.topBoolOrEmptySchema)(z))}It.validateFunctionCode=y;function g({gen:z,validateName:W,schema:J,schemaEnv:oe,opts:me},Ae){me.code.es5?z.func(W,(0,c._)`${p.default.data}, ${p.default.valCxt}`,oe.$async,()=>{z.code((0,c._)`"use strict"; ${S(J,me)}`),x(z,me),z.code(Ae)}):z.func(W,(0,c._)`${p.default.data}, ${$(me)}`,oe.$async,()=>z.code(S(J,me)).code(Ae))}function $(z){return(0,c._)`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${z.dynamicRef?(0,c._)`, ${p.default.dynamicAnchors}={}`:c.nil}, ${p.default.isAllOfVariant} = 0}={}`}function x(z,W){z.if(p.default.valCxt,()=>{z.var(p.default.instancePath,(0,c._)`${p.default.valCxt}.${p.default.instancePath}`),z.var(p.default.parentData,(0,c._)`${p.default.valCxt}.${p.default.parentData}`),z.var(p.default.parentDataProperty,(0,c._)`${p.default.valCxt}.${p.default.parentDataProperty}`),z.var(p.default.rootData,(0,c._)`${p.default.valCxt}.${p.default.rootData}`),z.var(p.default.isAllOfVariant,(0,c._)`${p.default.valCxt}.${p.default.isAllOfVariant}`),W.dynamicRef&&z.var(p.default.dynamicAnchors,(0,c._)`${p.default.valCxt}.${p.default.dynamicAnchors}`)},()=>{z.var(p.default.instancePath,(0,c._)`""`),z.var(p.default.parentData,(0,c._)`undefined`),z.var(p.default.parentDataProperty,(0,c._)`undefined`),z.var(p.default.rootData,p.default.data),z.var(p.default.isAllOfVariant,(0,c._)`0`),W.dynamicRef&&z.var(p.default.dynamicAnchors,(0,c._)`{}`)})}function P(z){const{schema:W,opts:J,gen:oe}=z;g(z,()=>{J.$comment&&W.$comment&&ee(z),Z(z),oe.let(p.default.vErrors,null),oe.let(p.default.errors,0),J.unevaluated&&A(z),H(z),ie(z)})}function A(z){const{gen:W,validateName:J}=z;z.evaluated=W.const("evaluated",(0,c._)`${J}.evaluated`),W.if((0,c._)`${z.evaluated}.dynamicProps`,()=>W.assign((0,c._)`${z.evaluated}.props`,(0,c._)`undefined`)),W.if((0,c._)`${z.evaluated}.dynamicItems`,()=>W.assign((0,c._)`${z.evaluated}.items`,(0,c._)`undefined`))}function S(z,W){const J=typeof z=="object"&&z[W.schemaId];return J&&(W.code.source||W.code.process)?(0,c._)`/*# sourceURL=${J} */`:c.nil}function v(z,W){if(b(z)&&(M(z),O(z))){k(z,W);return}(0,e.boolOrEmptySchema)(z,W)}function O({schema:z,self:W}){if(typeof z=="boolean")return!z;for(const J in z)if(W.RULES.all[J])return!0;return!1}function b(z){return typeof z.schema!="boolean"}function k(z,W){const{schema:J,gen:oe,opts:me}=z;me.$comment&&J.$comment&&ee(z),te(z),de(z);const Ae=oe.const("_errs",p.default.errors);H(z,Ae),oe.var(W,(0,c._)`${Ae} === ${p.default.errors}`)}function M(z){(0,d.checkUnknownRules)(z),G(z)}function H(z,W){if(z.opts.jtd)return Ie(z,[],!1,W);const J=(0,t.getSchemaTypes)(z.schema),oe=(0,t.coerceAndCheckDataType)(z,J);Ie(z,J,!oe,W)}function G(z){const{schema:W,errSchemaPath:J,opts:oe,self:me}=z;W.$ref&&oe.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(W,me.RULES)&&me.logger.warn(`$ref: keywords ignored in schema at path "${J}"`)}function Z(z){const{schema:W,opts:J}=z;W.default!==void 0&&J.useDefaults&&J.strictSchema&&(0,d.checkStrictMode)(z,"default is ignored in the schema root")}function te(z){const W=z.schema[z.opts.schemaId];W&&(z.baseId=(0,l.resolveUrl)(z.opts.uriResolver,z.baseId,W))}function de(z){if(z.schema.$async&&!z.schemaEnv.$async)throw new Error("async schema in sync schema")}function ee({gen:z,schemaEnv:W,schema:J,errSchemaPath:oe,opts:me}){const Ae=J.$comment;if(me.$comment===!0)z.code((0,c._)`${p.default.self}.logger.log(${Ae})`);else if(typeof me.$comment=="function"){const F=(0,c.str)`${oe}/$comment`,X=z.scopeValue("root",{ref:W.root});z.code((0,c._)`${p.default.self}.opts.$comment(${Ae}, ${F}, ${X}.schema)`)}}function ie(z){const{gen:W,schemaEnv:J,validateName:oe,ValidationError:me,opts:Ae}=z;J.$async?W.if((0,c._)`${p.default.errors} === 0`,()=>W.return(p.default.data),()=>W.throw((0,c._)`new ${me}(${p.default.vErrors})`)):(W.assign((0,c._)`${oe}.errors`,p.default.vErrors),Ae.unevaluated&&Pe(z),W.return((0,c._)`${p.default.errors} === 0`))}function Pe({gen:z,evaluated:W,props:J,items:oe}){J instanceof c.Name&&z.assign((0,c._)`${W}.props`,J),oe instanceof c.Name&&z.assign((0,c._)`${W}.items`,oe)}function Ie(z,W,J,oe){const{gen:me,schema:Ae,data:F,allErrors:X,opts:pe,self:ae}=z,{RULES:ce}=ae;if(Ae.$ref&&(pe.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(Ae,ce))){me.block(()=>V(z,"$ref",ce.all.$ref.definition));return}pe.jtd||Se(z,W),me.block(()=>{for(const ye of ce.rules)he(ye);he(ce.post)});function he(ye){(0,r.shouldUseGroup)(Ae,ye)&&(ye.type?(me.if((0,n.checkDataType)(ye.type,F,pe.strictNumbers)),Le(z,ye),W.length===1&&W[0]===ye.type&&J&&(me.else(),(0,n.reportTypeError)(z)),me.endIf()):Le(z,ye),X||me.if((0,c._)`${p.default.errors} === ${oe||0}`))}}function Le(z,W){const{gen:J,schema:oe,opts:{useDefaults:me}}=z;me&&(0,i.assignDefaults)(z,W.type),J.block(()=>{for(const F of W.rules)((0,r.shouldUseRule)(oe,F)||Ae(oe,F))&&V(z,F.keyword,F.definition,W.type)});function Ae(F,X){return!!(X.keyword==="unevaluatedProperties"&&(F.properties||F.patternProperties)&&!z.isAllOfVariant&&z.opts.defaultUnevaluatedProperties===!1)}}function Se(z,W){z.schemaEnv.meta||!z.opts.strictTypes||(qe(z,W),z.opts.allowUnionTypes||_(z,W),R(z,z.dataTypes))}function qe(z,W){if(W.length){if(!z.dataTypes.length){z.dataTypes=W;return}W.forEach(J=>{q(z.dataTypes,J)||D(z,`type "${J}" not allowed by context "${z.dataTypes.join(",")}"`)}),w(z,W)}}function _(z,W){W.length>1&&!(W.length===2&&W.includes("null"))&&D(z,"use allowUnionTypes to allow union type keyword")}function R(z,W){const J=z.self.RULES.all;for(const oe in J){const me=J[oe];if(typeof me=="object"&&(0,r.shouldUseRule)(z.schema,me)){const{type:Ae}=me.definition;Ae.length&&!Ae.some(F=>C(W,F))&&D(z,`missing type "${Ae.join(",")}" for keyword "${oe}"`)}}}function C(z,W){return z.includes(W)||W==="number"&&z.includes("integer")}function q(z,W){return z.includes(W)||W==="integer"&&z.includes("number")}function w(z,W){const J=[];for(const oe of z.dataTypes)q(W,oe)?J.push(oe):W.includes("integer")&&oe==="number"&&J.push("integer");z.dataTypes=J}function D(z,W){const J=z.schemaEnv.baseId+z.errSchemaPath;W+=` at "${J}" (strictTypes)`,(0,d.checkStrictMode)(z,W,z.opts.strictTypes)}class K{constructor(W,J,oe){if((0,o.validateKeywordUsage)(W,J,oe),this.gen=W.gen,this.allErrors=W.allErrors,this.keyword=oe,this.data=W.data,this.schema=W.schema[oe],this.$data=J.$data&&W.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(W,this.schema,oe,this.$data),this.schemaType=J.schemaType,this.parentSchema=W.schema,this.params={},this.it=W,this.def=J,this.$data)this.schemaCode=W.gen.const("vSchema",$e(this.$data,W));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error(`${oe} value must be ${JSON.stringify(J.schemaType)}`);("code"in J?J.trackErrors:J.errors!==!1)&&(this.errsCount=W.gen.const("_errs",p.default.errors))}result(W,J,oe){this.failResult((0,c.not)(W),J,oe)}failResult(W,J,oe){this.gen.if(W),oe?oe():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(W,J){this.failResult((0,c.not)(W),void 0,J)}fail(W){if(W===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(W),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(W){if(!this.$data)return this.fail(W);const{schemaCode:J}=this;this.fail((0,c._)`${J} !== undefined && (${(0,c.or)(this.invalid$data(),W)})`)}error(W,J,oe){if(J){this.setParams(J),this._error(W,oe),this.setParams({});return}this._error(W,oe)}_error(W,J){(W?h.reportExtraError:h.reportError)(this,this.def.error,J)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(W){this.allErrors||this.gen.if(W)}setParams(W,J){J?Object.assign(this.params,W):this.params=W}block$data(W,J,oe=c.nil){this.gen.block(()=>{this.check$data(W,oe),J()})}check$data(W=c.nil,J=c.nil){if(!this.$data)return;const{gen:oe,schemaCode:me,schemaType:Ae,def:F}=this;oe.if((0,c.or)((0,c._)`${me} === undefined`,J)),W!==c.nil&&oe.assign(W,!0),(Ae.length||F.validateSchema)&&(oe.elseIf(this.invalid$data()),this.$dataError(),W!==c.nil&&oe.assign(W,!1)),oe.else()}invalid$data(){const{gen:W,schemaCode:J,schemaType:oe,def:me,it:Ae}=this;return(0,c.or)(F(),X());function F(){if(oe.length){if(!(J instanceof c.Name))throw new Error("ajv implementation error");const pe=Array.isArray(oe)?oe:[oe];return(0,c._)`${(0,n.checkDataTypes)(pe,J,Ae.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function X(){if(me.validateSchema){const pe=W.scopeValue("validate$data",{ref:me.validateSchema});return(0,c._)`!${pe}(${J})`}return c.nil}}subschema(W,J,oe){const me=(0,s.getSubschema)(this.it,W);(0,s.extendSubschemaData)(me,this.it,W),(0,s.extendSubschemaMode)(me,W);const Ae={...this.it,...me,items:void 0,props:void 0,isAllOfVariant:oe};return v(Ae,J),Ae}mergeEvaluated(W,J){const{it:oe,gen:me}=this;oe.opts.unevaluated&&(oe.props!==!0&&W.props!==void 0&&(oe.props=d.mergeEvaluated.props(me,W.props,oe.props,J)),oe.items!==!0&&W.items!==void 0&&(oe.items=d.mergeEvaluated.items(me,W.items,oe.items,J)))}mergeValidEvaluated(W,J){const{it:oe,gen:me}=this;if(oe.opts.unevaluated&&(oe.props!==!0||oe.items!==!0))return me.if(J,()=>this.mergeEvaluated(W,c.Name)),!0}}It.KeywordCxt=K;function V(z,W,J,oe){const me=new K(z,J,W);"code"in J?J.code(me,oe):me.$data&&J.validate?(0,o.funcKeywordCode)(me,J):"macro"in J?(0,o.macroKeywordCode)(me,J):(J.compile||J.validate)&&(0,o.funcKeywordCode)(me,J)}const re=/^\/(?:[^~]|~0|~1)*$/,we=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $e(z,{dataLevel:W,dataNames:J,dataPathArr:oe}){let me,Ae;if(z==="")return p.default.rootData;if(z[0]==="/"){if(!re.test(z))throw new Error(`Invalid JSON-pointer: ${z}`);me=z,Ae=p.default.rootData}else{const ae=we.exec(z);if(!ae)throw new Error(`Invalid JSON-pointer: ${z}`);const ce=+ae[1];if(me=ae[2],me==="#"){if(ce>=W)throw new Error(pe("property/index",ce));return oe[W-ce]}if(ce>W)throw new Error(pe("data",ce));if(Ae=J[W-ce],!me)return Ae}let F=Ae;const X=me.split("/");for(const ae of X)ae&&(Ae=(0,c._)`${Ae}${(0,c.getProperty)((0,d.unescapeJsonPointer)(ae))}`,F=(0,c._)`${F} && ${Ae}`);return F;function pe(ae,ce){return`Cannot access ${ae} ${ce} levels up, current level is ${W}`}}return It.getData=$e,It}var bn={},Fc;function Xr(){if(Fc)return bn;Fc=1,Object.defineProperty(bn,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return bn.default=e,bn}var vn={},zc;function xr(){if(zc)return vn;zc=1,Object.defineProperty(vn,"__esModule",{value:!0});const e=no();class t extends Error{constructor(n,i,o,s){super(s||`can't resolve reference ${o} from id ${i}`),this.missingRef=(0,e.resolveUrl)(n,i,o),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return vn.default=t,vn}var dt={},Bc;function io(){if(Bc)return dt;Bc=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.resolveSchema=dt.getCompilingSchema=dt.resolveRef=dt.compileSchema=dt.SchemaEnv=void 0;const e=ke(),t=Xr(),r=lt(),n=no(),i=Ne(),o=wr();class s{constructor(A){var S;this.refs={},this.dynamicAnchors={};let v;typeof A.schema=="object"&&(v=A.schema),this.schema=A.schema,this.schemaId=A.schemaId,this.root=A.root||this,this.baseId=(S=A.baseId)!==null&&S!==void 0?S:(0,n.normalizeId)(v?.[A.schemaId||"$id"]),this.schemaPath=A.schemaPath,this.localRefs=A.localRefs,this.meta=A.meta,this.$async=v?.$async,this.refs={}}}dt.SchemaEnv=s;function c(P){const A=d.call(this,P);if(A)return A;const S=(0,n.getFullPath)(this.opts.uriResolver,P.root.baseId),{es5:v,lines:O}=this.opts.code,{ownProperties:b}=this.opts,k=new e.CodeGen(this.scope,{es5:v,lines:O,ownProperties:b});let M;P.$async&&(M=k.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const H=k.scopeName("validate");P.validateName=H;const G={gen:k,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:k.scopeValue("schema",this.opts.code.source===!0?{ref:P.schema,code:(0,e.stringify)(P.schema)}:{ref:P.schema}),validateName:H,ValidationError:M,schema:P.schema,schemaEnv:P,rootId:S,baseId:P.baseId||S,schemaPath:e.nil,errSchemaPath:P.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let Z;try{this._compilations.add(P),(0,o.validateFunctionCode)(G),k.optimize(this.opts.code.optimize);const te=k.toString();Z=`const visitedNodesForRef = new WeakMap(); ${k.scopeRefs(r.default.scope)}return ${te}`,this.opts.code.process&&(Z=this.opts.code.process(Z,P));const ee=new Function(`${r.default.self}`,`${r.default.scope}`,Z)(this,this.scope.get());if(this.scope.value(H,{ref:ee}),ee.errors=null,ee.schema=P.schema,ee.schemaEnv=P,P.$async&&(ee.$async=!0),this.opts.code.source===!0&&(ee.source={validateName:H,validateCode:te,scopeValues:k._values}),this.opts.unevaluated){const{props:ie,items:Pe}=G;ee.evaluated={props:ie instanceof e.Name?void 0:ie,items:Pe instanceof e.Name?void 0:Pe,dynamicProps:ie instanceof e.Name,dynamicItems:Pe instanceof e.Name},ee.source&&(ee.source.evaluated=(0,e.stringify)(ee.evaluated))}return P.validate=ee,P}catch(te){throw delete P.validate,delete P.validateName,Z&&this.logger.error("Error compiling schema, function code:",Z),te}finally{this._compilations.delete(P)}}dt.compileSchema=c;function p(P,A,S){var v;const O=(0,n.resolveUrl)(this.opts.uriResolver,A,S),b=P.refs[O];if(b)return b;let k=y.call(this,P,O);if(k===void 0){const M=(v=P.localRefs)===null||v===void 0?void 0:v[O],{schemaId:H}=this.opts;M&&(k=new s({schema:M,schemaId:H,root:P,baseId:A}))}if(k===void 0&&this.opts.loadSchemaSync){const M=this.opts.loadSchemaSync(A,S,O);M&&!(this.refs[O]||this.schemas[O])&&(this.addSchema(M,O,void 0),k=y.call(this,P,O))}if(k!==void 0)return P.refs[O]=l.call(this,k)}dt.resolveRef=p;function l(P){return(0,n.inlineRef)(P.schema,this.opts.inlineRefs)?P.schema:P.validate?P:c.call(this,P)}function d(P){for(const A of this._compilations)if(h(A,P))return A}dt.getCompilingSchema=d;function h(P,A){return P.schema===A.schema&&P.root===A.root&&P.baseId===A.baseId}function y(P,A){let S;for(;typeof(S=this.refs[A])=="string";)A=S;return S||this.schemas[A]||g.call(this,P,A)}function g(P,A){const S=this.opts.uriResolver.parse(A),v=(0,n._getFullPath)(this.opts.uriResolver,S);let O=(0,n.getFullPath)(this.opts.uriResolver,P.baseId,void 0);if(Object.keys(P.schema).length>0&&v===O)return x.call(this,S,P);const b=(0,n.normalizeId)(v),k=this.refs[b]||this.schemas[b];if(typeof k=="string"){const M=g.call(this,P,k);return typeof M?.schema!="object"?void 0:x.call(this,S,M)}if(typeof k?.schema=="object"){if(k.validate||c.call(this,k),b===(0,n.normalizeId)(A)){const{schema:M}=k,{schemaId:H}=this.opts,G=M[H];return G&&(O=(0,n.resolveUrl)(this.opts.uriResolver,O,G)),new s({schema:M,schemaId:H,root:P,baseId:O})}return x.call(this,S,k)}}dt.resolveSchema=g;const $=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function x(P,{baseId:A,schema:S,root:v}){var O;if(((O=P.fragment)===null||O===void 0?void 0:O[0])!=="/")return;for(const M of P.fragment.slice(1).split("/")){if(typeof S=="boolean")return;const H=S[(0,i.unescapeFragment)(M)];if(H===void 0)return;S=H;const G=typeof S=="object"&&S[this.opts.schemaId];!$.has(M)&&G&&(A=(0,n.resolveUrl)(this.opts.uriResolver,A,G))}let b;if(typeof S!="boolean"&&S.$ref&&!(0,i.schemaHasRulesButRef)(S,this.RULES)){const M=(0,n.resolveUrl)(this.opts.uriResolver,A,S.$ref);b=g.call(this,v,M)}const{schemaId:k}=this.opts;if(b=b||new s({schema:S,schemaId:k,root:v,baseId:A}),b.schema!==b.root.schema)return b}return dt}const FP="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",zP="Meta-schema for $data reference (JSON AnySchema extension proposal)",BP="object",VP=["$data"],HP={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},KP=!1,WP={$id:FP,description:zP,type:BP,required:VP,properties:HP,additionalProperties:KP};var wn={},qr={exports:{}},Mo,Vc;function Pd(){if(Vc)return Mo;Vc=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^\d*$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),s=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),c=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),p=new Array(256);{const _="0123456789ABCDEF";for(let R=0;R<256;R++)p[R]="%"+_[R>>4]+_[R&15]}function l(_){return _<2048?p[192|_>>6]+p[128|_&63]:_<65536?p[224|_>>12]+p[128|_>>6&63]+p[128|_&63]:p[240|_>>18]+p[128|_>>12&63]+p[128|_>>6&63]+p[128|_&63]}function d(_){let R="",C=0,q=0;for(q=0;q<_.length;q++)if(C=_[q].charCodeAt(0),C!==48){if(!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";R+=_[q];break}for(q+=1;q<_.length;q++){if(C=_[q].charCodeAt(0),!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";R+=_[q]}return R}const h=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),y=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),g=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),$=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function x(_){if(_.length===0)return!1;for(let R=0;R<_.length;R++)if(!g(_[R])){if(_[R]==="%"&&R+2<_.length&&n(_.slice(R+1,R+3))){R+=2;continue}return!1}return!0}function P(_){let R=-1,C=0,q=-1,w=0;for(let V=0;V<_.length;V++)_[V]==="0"?(q===-1&&(q=V),w++,w>C&&(C=w,R=q)):(q=-1,w=0);if(C<2)return _.join(":");const D=_.slice(0,R).join(":"),K=_.slice(R+C).join(":");return D+"::"+K}function A(_){const R=_.indexOf("::");if(R!==-1&&_.indexOf("::",R+1)!==-1)return;const C=R===-1?_.split(":"):_.slice(0,R).split(":"),q=R===-1?[]:_.slice(R+2).split(":");R!==-1&&(C.length===1&&C[0]===""&&(C.length=0),q.length===1&&q[0]===""&&(q.length=0));const w=C.concat(q);let D=0;for(let V=0;V<w.length;V++){const re=w[V];if(re==="")return;if(re.indexOf(".")!==-1){if(V!==w.length-1||R!==-1&&q.length===0||!t(re))return;D+=2;continue}if(!h(re))return;w[V]=parseInt(re,16).toString(16),D++}if(R===-1)return D!==8?void 0:P(w);if(D>=8)return;const K=w.slice(0,C.length);for(let V=D;V<8;V++)K.push("0");for(let V=C.length;V<w.length;V++)K.push(w[V]);return P(K)}function S(_){const R=_[0]==="["&&_[_.length-1]==="]";if((_[0]==="["||_[_.length-1]==="]")&&!R)return{host:_,isIPV6:!1,error:!0};let q=R?_.slice(1,-1):_;if(R&&y(q))return q=q.toLowerCase(),{host:`[${q}]`,escapedHost:q,isIPV6:!1,isIPVFuture:!0};if(v(q,":")<2)return{host:_,isIPV6:!1,error:R};let w="";const D=q.indexOf("%");if(D!==-1){const V=q.slice(D,D+3).toLowerCase()==="%25"?3:1;if(w=q.slice(D+V),!x(w))return{host:_,isIPV6:!1,error:!0};q=q.slice(0,D)}const K=A(q);return K===void 0?{host:_,isIPV6:!1,error:!0}:{host:K+(w?"%"+w:""),escapedHost:K+(w?"%25"+w:""),isIPV6:!0}}function v(_,R){let C=0;for(let q=0;q<_.length;q++)_[q]===R&&C++;return C}function O(_){let R=_;const C=[];let q=-1,w=0;for(;w=R.length;){if(w===1){if(R===".")break;if(R==="/"){C.push("/");break}else{C.push(R);break}}else if(w===2){if(R[0]==="."){if(R[1]===".")break;if(R[1]==="/"){R=R.slice(2);continue}}else if(R[0]==="/"&&(R[1]==="."||R[1]==="/")){C.push("/");break}}else if(w===3&&R==="/.."){C.length!==0&&C.pop(),C.push("/");break}if(R[0]==="."){if(R[1]==="."){if(R[2]==="/"){R=R.slice(3);continue}}else if(R[1]==="/"){R=R.slice(2);continue}}else if(R[0]==="/"&&R[1]==="."){if(R[2]==="/"){R=R.slice(2);continue}else if(R[2]==="."&&R[3]==="/"){R=R.slice(3),C.length!==0&&C.pop();continue}}if((q=R.indexOf("/",1))===-1){C.push(R);break}else C.push(R.slice(0,q)),R=R.slice(q)}return C.join("")}const b={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,M=/[@/?#]/g;function H(_,R){const C=R?M:k;return C.lastIndex=0,_.replace(C,q=>b[q])}function G(_,R=!1){if(_.indexOf("%")===-1)return _;let C="";for(let q=0;q<_.length;q++){if(_[q]==="%"&&q+2<_.length){const w=_.slice(q+1,q+3);if(n(w)){const D=w.toUpperCase(),K=String.fromCharCode(parseInt(D,16));R&&i(K)?C+=K:C+="%"+D,q+=2;continue}}C+=_[q]}return C}function Z(_){let R="";for(let C=0;C<_.length;C++){const q=_[C];if(q==="%"&&C+2<_.length){const w=_.slice(C+1,C+3);if(n(w)){const D=w.toUpperCase(),K=String.fromCharCode(parseInt(D,16));K!=="."&&i(K)?R+=K:R+="%"+D,C+=2;continue}}if(o(q))R+=q;else{const w=_.charCodeAt(C);if(w<128)R+=Ie(w)?q:p[w];else if(w<55296||w>57343)R+=l(w);else if(w<=56319&&C+1<_.length){const D=_.charCodeAt(C+1);D>=56320&&D<=57343?(R+=l(65536+(w-55296<<10)+(D-56320)),C++):R+=l(65533)}else R+=l(65533)}}return R}function te(_,R=!1){let C="",q=R&&_[0]!=="/";for(let w=0;w<_.length;w++){const D=_[w];if(D==="%"&&w+2<_.length){const K=_.slice(w+1,w+3);if(n(K)){C+="%"+K.toUpperCase(),w+=2;continue}}if(D==="/"&&(q=!1),o(D)&&(D!==":"||!q))C+=D;else{const K=_.charCodeAt(w);if(K<128)C+=p[K];else if(K<55296||K>57343)C+=l(K);else if(K<=56319&&w+1<_.length){const V=_.charCodeAt(w+1);V>=56320&&V<=57343?(C+=l(65536+(K-55296<<10)+(V-56320)),w++):C+=l(65533)}else C+=l(65533)}}return C}function de(_,R){let C="";for(let q=0;q<_.length;q++){const w=_[q];if(w==="%"&&q+2<_.length){const D=_.slice(q+1,q+3);if(n(D)){C+="%"+D.toUpperCase(),q+=2;continue}}if(R(w))C+=w;else{const D=_.charCodeAt(q);if(D<128)C+=p[D];else if(D<55296||D>57343)C+=l(D);else if(D<=56319&&q+1<_.length){const K=_.charCodeAt(q+1);K>=56320&&K<=57343?(C+=l(65536+(D-55296<<10)+(K-56320)),q++):C+=l(65533)}else C+=l(65533)}}return C}function ee(_){return de(_,c)}function ie(_){return de(_,s)}function Pe(_){return de(_,s)}function Ie(_){return _>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||_===42||_===43||_===45||_===46||_===47||_===64||_===95}function Le(_){let R="";for(let C=0;C<_.length;C++){const q=_[C];if(q==="%"&&C+2<_.length){const w=_.slice(C+1,C+3);if(n(w)){const D=w.toUpperCase(),K=String.fromCharCode(parseInt(D,16));i(K)?R+=K:R+="%"+D,C+=2;continue}}if(s(q))R+=q;else{const w=_.charCodeAt(C);if(w<128)R+=Ie(w)?q:p[w];else if(w<55296||w>57343)R+=l(w);else if(w<=56319&&C+1<_.length){const D=_.charCodeAt(C+1);D>=56320&&D<=57343?(R+=l(65536+(w-55296<<10)+(D-56320)),C++):R+=l(65533)}else R+=l(65533)}}return R}function Se(_){let R="";for(let C=0;C<_.length;C++){if(_[C]==="%"&&C+2<_.length){const q=_.slice(C+1,C+3);if(n(q)){R+="%"+q.toUpperCase(),C+=2;continue}}R+=escape(_[C])}return R}function qe(_){const R=[];if(_.userinfo!==void 0&&(R.push(ee(_.userinfo)),R.push("@")),_.host!==void 0){let C=_.host;if(!t(C)){let q=S(C);q.isIPV6!==!0&&q.isIPVFuture!==!0&&(C=G(C,!0),q=S(C)),q.isIPV6===!0||q.isIPVFuture===!0?C=`[${q.escapedHost}]`:C=H(C,!1)}R.push(C)}if(typeof _.port=="number"||typeof _.port=="string"){const C=String(_.port);if(!r(C))throw new TypeError("URI port is malformed.");R.push(":"),R.push(C)}return R.length?R.join(""):void 0}return Mo={nonSimpleDomain:$,recomposeAuthority:qe,reescapeHostDelimiters:H,normalizePercentEncoding:G,normalizePathEncoding:Z,serializePathEncoding:te,normalizeQueryFragmentEncoding:Le,encodeUserinfo:ee,encodeQuery:ie,encodeFragment:Pe,escapePreservingEscapes:Se,removeDotSegments:O,isIPv4:t,isUUID:e,normalizeIPv6:S,stringArrayToHexStripped:d},Mo}var Do,Hc;function QP(){if(Hc)return Do;Hc=1;const{isUUID:e}=Pd(),t=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(b){return r.indexOf(b)!==-1}function i(b){return b.secure===!0?!0:b.secure===!1?!1:b.scheme?b.scheme.length===3&&(b.scheme[0]==="w"||b.scheme[0]==="W")&&(b.scheme[1]==="s"||b.scheme[1]==="S")&&(b.scheme[2]==="s"||b.scheme[2]==="S"):!1}function o(b){return b.host||(b.error=b.error||"HTTP URIs must have a host."),b}function s(b){const k=String(b.scheme).toLowerCase()==="https";return(b.port===(k?443:80)||b.port==="")&&(b.port=void 0),b.path||(b.path="/"),b}function c(b){return b.secure=i(b),b.resourceName=(b.path||"/")+(b.query?"?"+b.query:""),b.path=void 0,b.query=void 0,b}function p(b){if((b.port===(i(b)?443:80)||b.port==="")&&(b.port=void 0),typeof b.secure=="boolean"&&(b.scheme=b.secure?"wss":"ws",b.secure=void 0),b.resourceName){const k=b.resourceName.indexOf("?"),M=k===-1?b.resourceName:b.resourceName.slice(0,k);b.path=M&&M!=="/"?M:void 0,b.query=k===-1?void 0:b.resourceName.slice(k+1),b.resourceName=void 0}return b.fragment=void 0,b}function l(b,k){if(!b.path)return b.error="URN can not be parsed",b;const M=b.path.match(t);if(M&&M[0]===b.path){const H=k.scheme||b.scheme||"urn";b.nid=M[1].toLowerCase(),b.nss=M[2];const G=`${H}:${k.nid||b.nid}`,Z=O(G);b.path=void 0,Z&&(b=Z.parse(b,k))}else b.error=b.error||"URN can not be parsed.";return b}function d(b,k){if(b.nid===void 0)throw new Error("URN without nid cannot be serialized");const M=k.scheme||b.scheme||"urn",H=b.nid.toLowerCase(),G=`${M}:${k.nid||H}`,Z=O(G);Z&&(b=Z.serialize(b,k));const te=b,de=b.nss;return te.path=`${H||k.nid}:${de}`,k.skipEscape=!0,te}function h(b,k){const M=b;return M.uuid=M.nss,M.nss=void 0,!k.tolerant&&(!M.uuid||!e(M.uuid))&&(M.error=M.error||"UUID is not valid."),M}function y(b){const k=b;return k.nss=(b.uuid||"").toLowerCase(),k}const g={scheme:"http",domainHost:!0,parse:o,serialize:s},$={scheme:"https",domainHost:g.domainHost,parse:o,serialize:s},x={scheme:"ws",domainHost:!0,parse:c,serialize:p},P={scheme:"wss",domainHost:x.domainHost,parse:x.parse,serialize:x.serialize},v={http:g,https:$,ws:x,wss:P,urn:{scheme:"urn",parse:l,serialize:d,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:y,skipNormalize:!0}};Object.setPrototypeOf(v,null);function O(b){return b&&(v[b]||v[b.toLowerCase()])||void 0}return Do={wsIsSecure:i,SCHEMES:v,isValidSchemeName:n,getSchemeHandler:O},Do}var Kc;function GP(){if(Kc)return qr.exports;Kc=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:i,serializePathEncoding:o,normalizeQueryFragmentEncoding:s,encodeQuery:c,encodeFragment:p,reescapeHostDelimiters:l,isIPv4:d,nonSimpleDomain:h}=Pd(),{SCHEMES:y,getSchemeHandler:g}=QP(),$=/^[A-Za-z][A-Za-z0-9+.-]*$/u,x="URI scheme is malformed.";function P(_){const R=unescape(String(_));if(!$.test(R))throw new TypeError(x);return R}function A(_,R){return typeof _=="string"?_=Ie(_,R):typeof _=="object"&&(_=Pe(b(_,R),R)),_}function S(_,R,C){const q=C?Object.assign({scheme:"null"},C):{scheme:"null"},{parsed:w,malformedAuthorityOrPort:D,malformedPercentEncoding:K,malformedSchemeSpecific:V,malformedHost:re,malformedScheme:we}=ie(_,q),{parsed:$e,malformedAuthorityOrPort:z,malformedPercentEncoding:W,malformedSchemeSpecific:J,malformedHost:oe,malformedScheme:me}=ie(R,q);if(D||z||K||W||V||J||re||oe||we||me)throw new Error(w.error||$e.error||"URI is malformed.");const Ae=v(w,$e,q,!0),F=g(C&&C.scheme||Ae.scheme),X=Ae.host,pe=X!==void 0&&X!==""&&(d(X)||e(X).isIPV6);ee(Ae,C||{},F,pe);const ae=X&&X.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(X);if(Ae.error&&!ae)throw new Error(Ae.error);return q.skipEscape=!0,b(Ae,q)}function v(_,R,C,q){const w={};return q||(_=Pe(b(_,C),C),R=Pe(b(R,C),C)),C=C||{},!C.tolerant&&R.scheme?(w.scheme=R.scheme,w.userinfo=R.userinfo,w.host=R.host,w.port=R.port,w.path=t(R.path||""),w.query=R.query):(R.userinfo!==void 0||R.host!==void 0||R.port!==void 0?(w.userinfo=R.userinfo,w.host=R.host,w.port=R.port,w.path=t(R.path||""),w.query=R.query):(R.path?(R.path[0]==="/"?w.path=t(R.path):((_.userinfo!==void 0||_.host!==void 0||_.port!==void 0)&&!_.path?w.path="/"+R.path:_.path?w.path=_.path.slice(0,_.path.lastIndexOf("/")+1)+R.path:w.path=R.path,w.path=t(w.path)),w.query=R.query):(w.path=_.path,R.query!==void 0?w.query=R.query:w.query=_.query),w.userinfo=_.userinfo,w.host=_.host,w.port=_.port),w.scheme=_.scheme),w.fragment=R.fragment,w}function O(_,R,C){const q=Se(_,C),w=Se(R,C);return q!==void 0&&w!==void 0&&q===w}function b(_,R){const C={host:_.host,scheme:_.scheme,userinfo:_.userinfo,port:_.port,path:_.path,query:_.query,nid:_.nid,nss:_.nss,uuid:_.uuid,fragment:_.fragment,reference:_.reference,resourceName:_.resourceName,secure:_.secure,error:""},q=Object.assign({},R),w=[];C.scheme&&(C.scheme=P(C.scheme));const D=g(q.scheme||C.scheme);D&&D.serialize&&D.serialize(C,q);const K=C.userinfo!==void 0||C.host!==void 0||C.port!==void 0,V=!q.skipEscape&&C.scheme===void 0&&!K;C.path!==void 0&&(q.skipEscape?C.path=n(C.path):C.path=o(C.path,V)),q.reference!=="suffix"&&C.scheme&&(C.scheme=P(C.scheme),w.push(C.scheme,":"));const re=r(C);if(re!==void 0&&(q.reference!=="suffix"&&w.push("//"),w.push(re),C.path&&C.path[0]!=="/"&&w.push("/")),C.path!==void 0){let we=C.path;!q.absolutePath&&(!D||!D.absolutePath)&&(we=t(we)),V&&(we=o(we,!0)),re===void 0&&we[0]==="/"&&we[1]==="/"&&(we="/%2F"+we.slice(2)),w.push(we)}return C.query!==void 0&&w.push("?",c(C.query)),C.fragment!==void 0&&w.push("#",p(C.fragment)),w.join("")}const k=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,M=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,H=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function G(_,R){if(R[2]!==void 0&&_.path&&_.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof _.port=="number"&&(_.port<0||_.port>65535))return"URI port is malformed."}function Z(_){if(_===void 0)return!1;let R=_.indexOf("%");for(;R!==-1;){if(R+2>=_.length||!/^[\da-f]{2}$/iu.test(_.slice(R+1,R+3)))return!0;R=_.indexOf("%",R+3)}return!1}function te(_){return _[0]==="["&&_[_.length-1]==="]"}function de(_){const R=_[4];return Z(_[3])||R!==void 0&&!te(R)&&Z(R)||Z(_[6])||Z(_[7])||Z(_[8])}function ee(_,R,C,q){if(!R.unicodeSupport&&(!C||!C.unicodeSupport)&&_.host&&!te(_.host)&&(R.domainHost||C&&C.domainHost)&&q===!1&&h(_.host))try{_.host=new URL("http://"+_.host).hostname}catch(w){return _.error=_.error||"Host's domain name can not be converted to ASCII: "+w,!0}return!1}function ie(_,R){const C=Object.assign({},R),q={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let w=!1,D=!1,K=!1,V=!1,re=!1,we=!1,$e=!1;C.reference==="suffix"&&(C.scheme?_=C.scheme+":"+_:_="//"+_);const z=_.match(M);z!==null&&z[1].indexOf("\\")!==-1&&(q.error="URI authority must not contain a literal backslash.",w=!0);const W=_.match(H);if(W!==null){const oe=W[1],me=oe.replace(/[\t\n\r]/g,"");me.length>=2&&(me.slice(0,2)!=="//"?(q.error=q.error||"URI authority must not contain a literal backslash.",w=!0):oe.length!==me.length&&(q.error=q.error||"URI authority introducer must not contain whitespace.",w=!0))}const J=_.match(k);if(J){if(q.scheme=J[1],q.userinfo=J[3],q.host=J[4],q.port=parseInt(J[5],10),q.path=J[6]||"",q.query=J[7],q.fragment=J[8],q.scheme!==void 0){const Ae=unescape(q.scheme);$.test(Ae)?q.scheme=Ae.toLowerCase():(q.error=q.error||x,we=!0)}D=de(J),D&&(q.error=q.error||"URI contains malformed percent-encoding."),isNaN(q.port)&&(q.port=J[5]);const oe=G(q,J);if(oe!==void 0&&(q.error=q.error||oe,w=!0),q.host)if(d(q.host)===!1){const F=te(q.host),X=q.host.indexOf("[")!==-1||q.host.indexOf("]")!==-1,pe=e(q.host);$e=pe.isIPV6||pe.isIPVFuture===!0,re=X&&(!F||pe.error===!0),q.host=$e?pe.host:pe.host.toLowerCase(),re&&(q.error=q.error||"URI host is malformed.",w=!0)}else $e=!0;q.scheme===void 0&&q.userinfo===void 0&&q.host===void 0&&q.port===void 0&&q.query===void 0&&!q.path?q.reference="same-document":q.scheme===void 0?q.reference="relative":q.fragment===void 0?q.reference="absolute":q.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==q.reference&&(q.error=q.error||"URI is not a "+C.reference+" reference.");const me=g(C.scheme||q.scheme);if(re||(V=ee(q,C,me,$e)),_.indexOf("%")!==-1&&q.host!==void 0&&!re){let Ae=$e?q.host:n(q.host,!0);$e||(Ae=n(Ae.toLowerCase())),q.host=l(Ae,$e)}(!me||me&&!me.skipNormalize)&&(q.path&&(q.path=i(q.path)),q.query&&(q.query=s(q.query)),q.fragment&&(q.fragment=s(q.fragment))),me&&me.parse&&(me.parse(q,C),me===y.urn&&q.nid===void 0&&(K=!0))}else q.error=q.error||"URI can not be parsed.";return{parsed:q,malformedAuthorityOrPort:w,malformedPercentEncoding:D,malformedSchemeSpecific:K,malformedHost:V,malformedScheme:we}}function Pe(_,R){return ie(_,R).parsed}function Ie(_,R){return Le(_,R).normalized}function Le(_,R){const{parsed:C,malformedAuthorityOrPort:q,malformedPercentEncoding:w,malformedSchemeSpecific:D,malformedHost:K,malformedScheme:V}=ie(_,R);return{normalized:q||w||D||K||V?_:b(C,R),malformedAuthorityOrPort:q,malformedPercentEncoding:w,malformedSchemeSpecific:D,malformedHost:K,malformedScheme:V}}function Se(_,R){if(typeof _!="string"&&typeof _!="object")return;let C;try{C=typeof _=="string"?_:b(_,R)}catch{return}const{normalized:q,malformedAuthorityOrPort:w,malformedPercentEncoding:D,malformedSchemeSpecific:K,malformedHost:V,malformedScheme:re}=Le(C,R);return w||D||K||V||re?void 0:q}const qe={SCHEMES:y,normalize:A,resolve:S,resolveComponent:v,equal:O,serialize:b,parse:Pe};return qr.exports=qe,qr.exports.default=qe,qr.exports.fastUri=qe,qr.exports}var Wc;function YP(){if(Wc)return wn;Wc=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=GP();return e.code='require("ajv/dist/runtime/uri").default',wn.default=e,wn}var Qc;function aa(){return Qc||(Qc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=wr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ke();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Xr(),i=xr(),o=wd(),s=io(),c=ke(),p=no(),l=Ni(),d=Ne(),h=WP,y=YP(),g=(_,R)=>new RegExp(_,R);g.code="new RegExp";const $=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],x=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),P={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},A={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},S=200;function v(_){var R,C,q,w,D,K,V,re,we,$e,z,W,J,oe,me,Ae,F,X,pe,ae,ce,he,ye,ge,Ee;const Qe=_.strict,a=(R=_.code)===null||R===void 0?void 0:R.optimize,u=a===!0||a===void 0?1:a||0,f=(q=(C=_.code)===null||C===void 0?void 0:C.regExp)!==null&&q!==void 0?q:g,T=(w=_.uriResolver)!==null&&w!==void 0?w:y.default;return{strictSchema:(K=(D=_.strictSchema)!==null&&D!==void 0?D:Qe)!==null&&K!==void 0?K:!0,strictNumbers:(re=(V=_.strictNumbers)!==null&&V!==void 0?V:Qe)!==null&&re!==void 0?re:!0,strictTypes:($e=(we=_.strictTypes)!==null&&we!==void 0?we:Qe)!==null&&$e!==void 0?$e:"log",strictTuples:(W=(z=_.strictTuples)!==null&&z!==void 0?z:Qe)!==null&&W!==void 0?W:"log",strictRequired:(oe=(J=_.strictRequired)!==null&&J!==void 0?J:Qe)!==null&&oe!==void 0?oe:!1,code:_.code?{..._.code,optimize:u,regExp:f}:{optimize:u,regExp:f},loopRequired:(me=_.loopRequired)!==null&&me!==void 0?me:S,loopEnum:(Ae=_.loopEnum)!==null&&Ae!==void 0?Ae:S,meta:(F=_.meta)!==null&&F!==void 0?F:!0,messages:(X=_.messages)!==null&&X!==void 0?X:!0,inlineRefs:(pe=_.inlineRefs)!==null&&pe!==void 0?pe:!0,schemaId:(ae=_.schemaId)!==null&&ae!==void 0?ae:"$id",addUsedSchema:(ce=_.addUsedSchema)!==null&&ce!==void 0?ce:!0,validateSchema:(he=_.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(ye=_.validateFormats)!==null&&ye!==void 0?ye:!0,unicodeRegExp:(ge=_.unicodeRegExp)!==null&&ge!==void 0?ge:!0,int32range:(Ee=_.int32range)!==null&&Ee!==void 0?Ee:!0,uriResolver:T}}class O{constructor(R={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,R=this.opts={...R,...v(R)};const{es5:C,lines:q}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:x,es5:C,lines:q}),this.logger=de(R.logger);const w=R.validateFormats;R.validateFormats=!1,this.RULES=(0,o.getRules)(),b.call(this,P,R,"NOT SUPPORTED"),b.call(this,A,R,"DEPRECATED","warn"),this._metaOpts=Z.call(this),R.formats&&H.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),R.keywords&&G.call(this,R.keywords),typeof R.meta=="object"&&this.addMetaSchema(R.meta),M.call(this),R.validateFormats=w}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:R,meta:C,schemaId:q}=this.opts;let w=h;q==="id"&&(w={...h},w.id=w.$id,delete w.$id),C&&R&&this.addMetaSchema(w,w[q],!1)}defaultMeta(){const{meta:R,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof R=="object"?R[C]||R:void 0}setDefaultUnevaluatedProperties(R){this.opts.defaultUnevaluatedProperties=R}validate(R,C){let q;if(typeof R=="string"){if(q=this.getSchema(R),!q)throw new Error(`no schema with key or ref "${R}"`)}else q=this.compile(R);const w=q(C);return"$async"in q||(this.errors=q.errors),w}compile(R,C){const q=this._addSchema(R,C);return q.validate||this._compileSchemaEnv(q)}compileAsync(R,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return w.call(this,R,C);async function w($e,z){await D.call(this,$e.$schema);const W=this._addSchema($e,z);return W.validate||K.call(this,W)}async function D($e){$e&&!this.getSchema($e)&&await w.call(this,{$ref:$e},!0)}async function K($e){try{return this._compileSchemaEnv($e)}catch(z){if(!(z instanceof i.default))throw z;return V.call(this,z),await re.call(this,z.missingSchema),K.call(this,$e)}}function V({missingSchema:$e,missingRef:z}){if(this.refs[$e])throw new Error(`AnySchema ${$e} is loaded but ${z} cannot be resolved`)}async function re($e){const z=await we.call(this,$e);this.refs[$e]||await D.call(this,z.$schema),this.refs[$e]||this.addSchema(z,$e,C)}async function we($e){const z=this._loading[$e];if(z)return z;try{return await(this._loading[$e]=q($e))}finally{delete this._loading[$e]}}}addSchema(R,C,q,w=this.opts.validateSchema){if(Array.isArray(R)){for(const K of R)this.addSchema(K,void 0,q,w);return this}let D;if(typeof R=="object"){const{schemaId:K}=this.opts;if(D=R[K],D!==void 0&&typeof D!="string")throw new Error(`schema ${K} must be string`)}return C=(0,p.normalizeId)(C||D),this._checkUnique(C),this.schemas[C]=this._addSchema(R,q,C,w,!0),this}addMetaSchema(R,C,q=this.opts.validateSchema){return this.addSchema(R,C,!0,q),this}validateSchema(R,C){if(typeof R=="boolean")return!0;let q;if(q=R.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const w=this.validate(q,R);if(!w&&C){const D="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(D);else throw new Error(D)}return w}getSchema(R){let C;for(;typeof(C=k.call(this,R))=="string";)R=C;if(C===void 0){const{schemaId:q}=this.opts,w=new s.SchemaEnv({schema:{},schemaId:q});if(C=s.resolveSchema.call(this,w,R),!C)return;this.refs[R]=C}return C.validate||this._compileSchemaEnv(C)}removeSchema(R){if(R instanceof RegExp)return this._removeAllSchemas(this.schemas,R),this._removeAllSchemas(this.refs,R),this;switch(typeof R){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const C=k.call(this,R);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[R],delete this.refs[R],this}case"object":{const C=R;this._cache.delete(C);let q=R[this.opts.schemaId];return q&&(q=(0,p.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(R){for(const C of R)this.addKeyword(C);return this}addKeyword(R,C){let q;if(typeof R=="string")q=R,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=q);else if(typeof R=="object"&&C===void 0){if(C=R,q=C.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(ie.call(this,q,C),!C)return(0,d.eachItem)(q,D=>Pe.call(this,D)),this;Le.call(this,C);const w={...C,type:(0,l.getJSONTypes)(C.type),schemaType:(0,l.getJSONTypes)(C.schemaType)};return(0,d.eachItem)(q,w.type.length===0?D=>Pe.call(this,D,w):D=>w.type.forEach(K=>Pe.call(this,D,w,K))),this}getKeyword(R){const C=this.RULES.all[R];return typeof C=="object"?C.definition:!!C}removeKeyword(R){const{RULES:C}=this;delete C.keywords[R],delete C.all[R];for(const q of C.rules){const w=q.rules.findIndex(D=>D.keyword===R);w>=0&&q.rules.splice(w,1)}return this}addFormat(R,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[R]=C,this}errorsText(R=this.errors,{separator:C=", ",dataVar:q="data"}={}){return!R||R.length===0?"No errors":R.map(w=>`${q}${w.instancePath} ${w.message}`).reduce((w,D)=>w+C+D)}$dataMetaSchema(R,C){const q=this.RULES.all;R=JSON.parse(JSON.stringify(R));for(const w of C){const D=w.split("/").slice(1);let K=R;for(const V of D)K=K[V];for(const V in q){const re=q[V];if(typeof re!="object")continue;const{$data:we}=re.definition,$e=K[V];we&&$e&&(K[V]=qe($e))}}return R}_removeAllSchemas(R,C){for(const q in R){const w=R[q];(!C||C.test(q))&&(typeof w=="string"?delete R[q]:w&&!w.meta&&(this._cache.delete(w.schema),delete R[q]))}}_addSchema(R,C,q,w=this.opts.validateSchema,D=this.opts.addUsedSchema){let K;const{schemaId:V}=this.opts;if(typeof R=="object")K=R[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof R!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(R);if(re!==void 0)return re;q=(0,p.normalizeId)(K||q);const we=p.getSchemaRefs.call(this,R,q);return re=new s.SchemaEnv({schema:R,schemaId:V,meta:C,baseId:q,localRefs:we}),this._cache.set(re.schema,re),D&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),w&&this.validateSchema(R,!0),re}_checkUnique(R){if(this.schemas[R]||this.refs[R])throw new Error(`schema with key or id "${R}" already exists`)}_compileSchemaEnv(R){if(R.meta?this._compileMetaSchema(R):s.compileSchema.call(this,R),!R.validate)throw new Error("ajv implementation error");return R.validate}_compileMetaSchema(R){const C=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,R)}finally{this.opts=C}}}O.ValidationError=n.default,O.MissingRefError=i.default,e.default=O;function b(_,R,C,q="error"){for(const w in _){const D=w;D in R&&this.logger[q](`${C}: option ${w}. ${_[D]}`)}}function k(_){return _=(0,p.normalizeId)(_),this.schemas[_]||this.refs[_]}function M(){const _=this.opts.schemas;if(_)if(Array.isArray(_))this.addSchema(_);else for(const R in _)this.addSchema(_[R],R)}function H(){for(const _ in this.opts.formats){const R=this.opts.formats[_];R&&this.addFormat(_,R)}}function G(_){if(Array.isArray(_)){this.addVocabulary(_);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const R in _){const C=_[R];C.keyword||(C.keyword=R),this.addKeyword(C)}}function Z(){const _={...this.opts};for(const R of $)delete _[R];return _}const te={log(){},warn(){},error(){}};function de(_){if(_===!1)return te;if(_===void 0)return console;if(_.log&&_.warn&&_.error)return _;throw new Error("logger must implement log, warn and error methods")}const ee=/^[a-z_$][a-z0-9_$:-]*$/i;function ie(_,R){const{RULES:C}=this;if((0,d.eachItem)(_,q=>{if(C.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!ee.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!R&&R.$data&&!("code"in R||"validate"in R))throw new Error('$data keyword must have "code" or "validate" function')}function Pe(_,R,C){var q;const w=R?.post;if(C&&w)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:D}=this;let K=w?D.post:D.rules.find(({type:re})=>re===C);if(K||(K={type:C,rules:[]},D.rules.push(K)),D.keywords[_]=!0,!R)return;const V={keyword:_,definition:{...R,type:(0,l.getJSONTypes)(R.type),schemaType:(0,l.getJSONTypes)(R.schemaType)}};R.before?Ie.call(this,K,V,R.before):K.rules.push(V),D.all[_]=V,(q=R.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Ie(_,R,C){const q=_.rules.findIndex(w=>w.keyword===C);q>=0?_.rules.splice(q,0,R):(_.rules.push(R),this.logger.warn(`rule ${C} is not defined`))}function Le(_){let{metaSchema:R}=_;R!==void 0&&(_.$data&&this.opts.$data&&(R=qe(R)),_.validateSchema=this.compile(R,!0))}const Se={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function qe(_){return{anyOf:[_,Se]}}})(To)),To}var xn={},Sn={},Pn={},Gc;function JP(){if(Gc)return Pn;Gc=1,Object.defineProperty(Pn,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Pn.default=e,Pn}var Ft={},Yc;function oo(){if(Yc)return Ft;Yc=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.callRef=Ft.getValidate=void 0;const e=xr(),t=At(),r=ke(),n=lt(),i=io(),o=Ne(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:d,schema:h,it:y}=l,{baseId:g,schemaEnv:$,validateName:x,opts:P,self:A}=y,{root:S}=$;if((h==="#"||h==="#/")&&g===S.baseId)return O();const v=i.resolveRef.call(A,S,g,h);if(v===void 0)throw new e.default(y.opts.uriResolver,g,h);if(v instanceof i.SchemaEnv)return b(v);return k(v);function O(){if($===S)return p(l,x,$,$.$async);const M=d.scopeValue("root",{ref:S});return p(l,(0,r._)`${M}.validate`,S,S.$async)}function b(M){const H=c(l,M);p(l,H,M,M.$async)}function k(M){const H=d.scopeValue("schema",P.code.source===!0?{ref:M,code:(0,r.stringify)(M)}:{ref:M}),G=d.name("valid"),Z=l.subschema({schema:M,dataTypes:[],schemaPath:r.nil,topSchemaRef:H,errSchemaPath:h},G,y.isAllOfVariant);l.mergeEvaluated(Z),l.ok(G)}}};function c(l,d){const{gen:h}=l;return d.validate?h.scopeValue("validate",{ref:d.validate}):(0,r._)`${h.scopeValue("wrapper",{ref:d})}.validate`}Ft.getValidate=c;function p(l,d,h,y){const{gen:g,it:$}=l,{allErrors:x,schemaEnv:P,opts:A}=$,S=A.passContext?n.default.this:r.nil;y?v():O();function v(){if(!P.$async)throw new Error("async schema referenced by sync schema");const M=g.let("valid");g.try(()=>{g.code((0,r._)`await ${(0,t.callValidateCode)(l,d,S)}`),k(d),x||g.assign(M,!0)},H=>{g.if((0,r._)`!(${H} instanceof ${$.ValidationError})`,()=>g.throw(H)),b(H),x||g.assign(M,!1)}),l.ok(M)}function O(){const M=g.name("visitedNodes");g.code((0,r._)`const ${M} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${d}) || new Set()`),g.if((0,r._)`!${M}.has(${l.data})`,()=>{g.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${d}, ${M})`),g.code((0,r._)`const dataNode = ${l.data}`),g.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${M}.add(dataNode)`);const H=l.result((0,t.callValidateCode)(l,d,S),()=>k(d),()=>b(d));return g.code((0,r._)`${M}.delete(dataNode)`),H})}function b(M){const H=(0,r._)`${M}.errors`;g.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${H} : ${n.default.vErrors}.concat(${H})`),g.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function k(M){var H;if(!$.opts.unevaluated)return;const G=(H=h?.validate)===null||H===void 0?void 0:H.evaluated;if($.props!==!0)if(G&&!G.dynamicProps)G.props!==void 0&&($.props=o.mergeEvaluated.props(g,G.props,$.props));else{const Z=g.var("props",(0,r._)`${M}.evaluated.props`);$.props=o.mergeEvaluated.props(g,Z,$.props,r.Name)}if($.items!==!0)if(G&&!G.dynamicItems)G.items!==void 0&&($.items=o.mergeEvaluated.items(g,G.items,$.items));else{const Z=g.var("items",(0,r._)`${M}.evaluated.items`);$.items=o.mergeEvaluated.items(g,Z,$.items,r.Name)}}}return Ft.callRef=p,Ft.default=s,Ft}var Jc;function $d(){if(Jc)return Sn;Jc=1,Object.defineProperty(Sn,"__esModule",{value:!0});const e=JP(),t=oo(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Sn.default=r,Sn}var $n={},An={},Xc;function XP(){if(Xc)return An;Xc=1,Object.defineProperty(An,"__esModule",{value:!0});const e=ke(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:o,schemaCode:s})=>(0,e.str)`must be ${r[o].okStr} ${s}`,params:({keyword:o,schemaCode:s})=>(0,e._)`{comparison: ${r[o].okStr}, limit: ${s}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(o){const{keyword:s,data:c,schemaCode:p}=o;o.fail$data((0,e._)`${c} ${r[s].fail} ${p} || isNaN(${c})`)}};return An.default=i,An}var En={},Zc;function ZP(){if(Zc)return En;Zc=1,Object.defineProperty(En,"__esModule",{value:!0});const e=ke(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:o,schemaCode:s,it:c}=n,p=c.opts.multipleOfPrecision,l=i.let("res"),d=p?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${p}`:(0,e._)`${l} !== parseInt(${l})`;n.fail$data((0,e._)`(${s} === 0 || (${l} = ${o}/${s}, ${d}))`)}};return En.default=r,En}var On={},Rn={},ep;function e$(){if(ep)return Rn;ep=1,Object.defineProperty(Rn,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,i=0,o;for(;i<r;)n++,o=t.charCodeAt(i++),o>=55296&&o<=56319&&i<r&&(o=t.charCodeAt(i),(o&64512)===56320&&i++);return n}return Rn.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Rn}var tp;function t$(){if(tp)return On;tp=1,Object.defineProperty(On,"__esModule",{value:!0});const e=ke(),t=Ne(),r=e$(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const c=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${s} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:c,schemaCode:p,it:l}=o,d=s==="maxLength"?e.operators.GT:e.operators.LT,h=l.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${c})`;o.fail$data((0,e._)`${h} ${d} ${p}`)}};return On.default=i,On}var _n={},rp;function r$(){if(rp)return _n;rp=1,Object.defineProperty(_n,"__esModule",{value:!0});const e=At(),t=Ne(),r=ke(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,r.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,r._)`{pattern: ${o}}`},code(o){const{gen:s,data:c,$data:p,schema:l,schemaCode:d,it:h}=o,y=h.opts.unicodeRegExp?"u":"";if(p){const{regExp:g}=h.opts.code,$=g.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,g),x=s.let("valid");s.try(()=>s.assign(x,(0,r._)`${$}(${d}, ${y}).test(${c})`),()=>s.assign(x,!1)),o.fail$data((0,r._)`!${x}`)}else{const g=(0,e.usePattern)(o,l);o.fail$data((0,r._)`!${g}.test(${c})`)}}};return _n.default=i,_n}var Tn={},np;function n$(){if(np)return Tn;np=1,Object.defineProperty(Tn,"__esModule",{value:!0});const e=ke(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const o=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:o,schemaCode:s}=n,c=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${o}).length ${c} ${s}`)}};return Tn.default=r,Tn}var kn={},ip;function i$(){if(ip)return kn;ip=1,Object.defineProperty(kn,"__esModule",{value:!0});const e=At(),t=Sd(),r=ke(),n=Ne(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,r.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,r._)`{missingProperty: ${s}}`},code(s){const{gen:c,schema:p,schemaCode:l,data:d,$data:h,it:y}=s,{opts:g}=y;if(!h&&p.length===0)return;const $=p.length>=g.loopRequired;if(y.allErrors?x():P(),g.strictRequired){const v=s.parentSchema.properties,{definedProperties:O}=s.it;for(const b of p)if(v?.[b]===void 0&&!O.has(b)){const k=y.schemaEnv.baseId+y.errSchemaPath,M=`required property "${b}" is not defined at "${k}" (strictRequired)`;(0,n.checkStrictMode)(y,M,y.opts.strictRequired)}}function x(){var v;if($||h)s.block$data(r.nil,A);else for(const O of p){const b=(v=(0,t.getSkipCondition)(s.parentSchema,O))!==null&&v!==void 0?v:(0,r._)`false`;c.if((0,r.not)(b),()=>(0,e.checkReportMissingProp)(s,O))}}function P(){const v=c.let("missing");if($||h){const O=c.let("valid",!0);s.block$data(O,()=>S(v,O)),s.ok(O)}else c.if((0,e.checkMissingProp)(s,p,v)),(0,e.reportMissingProp)(s,v),c.else()}function A(){c.forOf("prop",l,v=>{s.setParams({missingProperty:v}),c.if((0,e.noPropertyInData)(c,d,v,g.ownProperties),()=>s.error())})}function S(v,O){s.setParams({missingProperty:v}),c.forOf(v,l,()=>{c.assign(O,(0,e.propertyInData)(c,d,v,g.ownProperties)),c.if((0,r.not)(O),()=>{s.error(),c.break()})},r.nil)}}};return kn.default=o,kn}var In={},op;function o$(){if(op)return In;op=1,Object.defineProperty(In,"__esModule",{value:!0});const e=ke(),t=lt(),n={keyword:"readOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in request context`},code(i){if(i.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;i.fail((0,e._)`${o} === "request"`)}};return In.default=n,In}var qn={},sp;function s$(){if(sp)return qn;sp=1,Object.defineProperty(qn,"__esModule",{value:!0});const e=ke(),t=lt(),n={keyword:"writeOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in response context`},code(i){if(i.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;i.fail((0,e._)`${o} === "response"`)}};return qn.default=n,qn}var Cn={},ap;function a$(){if(ap)return Cn;ap=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=ke(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const o=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:o,schemaCode:s}=n,c=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${o}.length ${c} ${s}`)}};return Cn.default=r,Cn}var jn={},Mn={},cp;function ca(){if(cp)return Mn;cp=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=Y.requireFastDeepEqual();return e.code='require("ajv/dist/runtime/equal").default',Mn.default=e,Mn}var pp;function c$(){if(pp)return jn;pp=1,Object.defineProperty(jn,"__esModule",{value:!0});const e=Ni(),t=ke(),r=Ne(),n=ca(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:c}})=>(0,t.str)`must NOT have duplicate items (items ## ${c} and ${s} are identical)`,params:({params:{i:s,j:c}})=>(0,t._)`{i: ${s}, j: ${c}}`},code(s){const{gen:c,data:p,$data:l,schema:d,parentSchema:h,schemaCode:y,it:g}=s;if(!l&&!d)return;const $=c.let("valid"),x=h.items?(0,e.getSchemaTypes)(h.items):[];s.block$data($,P,(0,t._)`${y} === false`),s.ok($);function P(){const O=c.let("i",(0,t._)`${p}.length`),b=c.let("j");s.setParams({i:O,j:b}),c.assign($,!0),c.if((0,t._)`${O} > 1`,()=>(A()?S:v)(O,b))}function A(){return x.length>0&&!x.some(O=>O==="object"||O==="array")}function S(O,b){const k=c.name("item"),M=(0,e.checkDataTypes)(x,k,g.opts.strictNumbers,e.DataType.Wrong),H=c.const("indices",(0,t._)`{}`);c.for((0,t._)`;${O}--;`,()=>{c.let(k,(0,t._)`${p}[${O}]`),c.if(M,(0,t._)`continue`),x.length>1&&c.if((0,t._)`typeof ${k} == "string"`,(0,t._)`${k} += "_"`),c.if((0,t._)`typeof ${H}[${k}] == "number"`,()=>{c.assign(b,(0,t._)`${H}[${k}]`),s.error(),c.assign($,!1).break()}).code((0,t._)`${H}[${k}] = ${O}`)})}function v(O,b){const k=(0,r.useFunc)(c,n.default),M=c.name("outer");c.label(M).for((0,t._)`;${O}--;`,()=>c.for((0,t._)`${b} = ${O}; ${b}--;`,()=>c.if((0,t._)`${k}(${p}[${O}], ${p}[${b}])`,()=>{s.error(),c.assign($,!1).break(M)})))}}};return jn.default=o,jn}var Dn={},lp;function p$(){if(lp)return Dn;lp=1,Object.defineProperty(Dn,"__esModule",{value:!0});const e=ke(),t=Ne(),r=ca(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:s,data:c,$data:p,schemaCode:l,schema:d}=o;p||d&&typeof d=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${c}, ${l})`):o.fail((0,e._)`${d} !== ${c}`)}};return Dn.default=i,Dn}var Nn={},up;function l$(){if(up)return Nn;up=1,Object.defineProperty(Nn,"__esModule",{value:!0});const e=ke(),t=Ne(),r=ca(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},code(o){const{gen:s,data:c,$data:p,schema:l,schemaCode:d,it:h}=o;if(!p&&l.length===0)throw new Error("enum must have non-empty array");const y=l.length>=h.opts.loopEnum;let g;const $=()=>g??(g=(0,t.useFunc)(s,r.default));let x;if(y||p)x=s.let("valid"),o.block$data(x,P);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const S=s.const("vSchema",d);x=(0,e.or)(...l.map((v,O)=>A(S,O)))}o.pass(x);function P(){s.assign(x,!1),s.forOf("v",d,S=>s.if((0,e._)`${$()}(${c}, ${S})`,()=>s.assign(x,!0).break()))}function A(S,v){const O=l[v];return typeof O=="object"&&O!==null?(0,e._)`${$()}(${c}, ${S}[${v}])`:(0,e._)`${c} === ${O}`}}};return Nn.default=i,Nn}var dp;function pa(){if(dp)return $n;dp=1,Object.defineProperty($n,"__esModule",{value:!0});const e=XP(),t=ZP(),r=t$(),n=r$(),i=n$(),o=i$(),s=o$(),c=s$(),p=a$(),l=c$(),d=p$(),h=l$(),y=[e.default,t.default,r.default,n.default,i.default,o.default,s.default,c.default,p.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,h.default];return $n.default=y,$n}var Ln={},or={},fp;function Ad(){if(fp)return or;fp=1,Object.defineProperty(or,"__esModule",{value:!0}),or.validateAdditionalItems=void 0;const e=ke(),t=Ne(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{parentSchema:s,it:c}=o,{items:p}=s;if(!Array.isArray(p)){(0,t.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(o,p)}};function i(o,s){const{gen:c,schema:p,data:l,keyword:d,it:h}=o;h.items=!0;const y=c.const("len",(0,e._)`${l}.length`);if(p===!1)o.setParams({len:s.length}),o.pass((0,e._)`${y} <= ${s.length}`);else if(typeof p=="object"&&!(0,t.alwaysValidSchema)(h,p)){const $=c.var("valid",(0,e._)`${y} <= ${s.length}`);c.if((0,e.not)($),()=>g($)),o.ok($)}function g($){c.forRange("i",s.length,y,x=>{o.subschema({keyword:d,dataProp:x,dataPropType:t.Type.Num},$),h.allErrors||c.if((0,e.not)($),()=>c.break())})}}return or.validateAdditionalItems=i,or.default=n,or}var Un={},sr={},mp;function Ed(){if(mp)return sr;mp=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.validateTuple=void 0;const e=ke(),t=Ne(),r=At(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:s,it:c}=o;if(Array.isArray(s))return i(o,"additionalItems",s);c.items=!0,!(0,t.alwaysValidSchema)(c,s)&&o.ok((0,r.validateArray)(o))}};function i(o,s,c=o.schema){const{gen:p,parentSchema:l,data:d,keyword:h,it:y}=o;x(l),y.opts.unevaluated&&c.length&&y.items!==!0&&(y.items=t.mergeEvaluated.items(p,c.length,y.items));const g=p.name("valid"),$=p.const("len",(0,e._)`${d}.length`);c.forEach((P,A)=>{(0,t.alwaysValidSchema)(y,P)||(p.if((0,e._)`${$} > ${A}`,()=>o.subschema({keyword:h,schemaProp:A,dataProp:A},g)),o.ok(g))});function x(P){const{opts:A,errSchemaPath:S}=y,v=c.length,O=v===P.minItems&&(v===P.maxItems||P[s]===!1);if(A.strictTuples&&!O){const b=`"${h}" is ${v}-tuple, but minItems or maxItems/${s} are not specified or different at path "${S}"`;(0,t.checkStrictMode)(y,b,A.strictTuples)}}}return sr.validateTuple=i,sr.default=n,sr}var hp;function u$(){if(hp)return Un;hp=1,Object.defineProperty(Un,"__esModule",{value:!0});const e=Ed(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Un.default=t,Un}var Fn={},yp;function d$(){if(yp)return Fn;yp=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=ke(),t=Ne(),r=At(),n=Ad(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:c,parentSchema:p,it:l}=s,{prefixItems:d}=p;l.items=!0,!(0,t.alwaysValidSchema)(l,c)&&(d?(0,n.validateAdditionalItems)(s,d):s.ok((0,r.validateArray)(s)))}};return Fn.default=o,Fn}var zn={},gp;function f$(){if(gp)return zn;gp=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:o}})=>o===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${o} valid item(s)`,params:({params:{min:i,max:o}})=>o===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${o}}`},code(i){const{gen:o,schema:s,parentSchema:c,data:p,it:l}=i;let d,h;const{minContains:y,maxContains:g}=c;l.opts.next?(d=y===void 0?1:y,h=g):d=1;const $=o.const("len",(0,e._)`${p}.length`);if(i.setParams({min:d,max:h}),h===void 0&&d===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&d>h){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,s)){let v=(0,e._)`${$} >= ${d}`;h!==void 0&&(v=(0,e._)`${v} && ${$} <= ${h}`),i.pass(v);return}l.items=!0;const x=o.name("valid");h===void 0&&d===1?A(x,()=>o.if(x,()=>o.break())):d===0?(o.let(x,!0),h!==void 0&&o.if((0,e._)`${p}.length > 0`,P)):(o.let(x,!1),P()),i.result(x,()=>i.reset());function P(){const v=o.name("_valid"),O=o.let("count",0);A(v,()=>o.if(v,()=>S(O)))}function A(v,O){o.forRange("i",0,$,b=>{i.subschema({keyword:"contains",dataProp:b,dataPropType:t.Type.Num,compositeRule:!0},v),O()})}function S(v){o.code((0,e._)`${v}++`),h===void 0?o.if((0,e._)`${v} >= ${d}`,()=>o.assign(x,!0).break()):(o.if((0,e._)`${v} > ${h}`,()=>o.assign(x,!1).break()),d===1?o.assign(x,!0):o.if((0,e._)`${v} >= ${d}`,()=>o.assign(x,!0)))}}};return zn.default=n,zn}var No={},bp;function la(){return bp||(bp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ke(),r=Ne(),n=At();e.error={message:({params:{property:p,depsCount:l,deps:d}})=>{const h=l===1?"property":"properties";return(0,t.str)`must have ${h} ${d} when property ${p} is present`},params:({params:{property:p,depsCount:l,deps:d,missingProperty:h}})=>(0,t._)`{property: ${p},
|
|
6
6
|
missingProperty: ${h},
|
|
7
7
|
depsCount: ${l},
|
|
8
|
-
deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(p){const[l,d]=o(p);s(p,l),c(p,d)}};function o({schema:p}){const l={},d={};for(const h in p){if(h==="__proto__")continue;const y=Array.isArray(p[h])?l:d;y[h]=p[h]}return[l,d]}function s(p,l=p.schema){const{gen:d,data:h,it:y}=p;if(Object.keys(l).length===0)return;const g=d.let("missing");for(const $ in l){const x=l[$];if(x.length===0)continue;const P=(0,n.propertyInData)(d,h,$,y.opts.ownProperties);p.setParams({property:$,depsCount:x.length,deps:x.join(", ")}),y.allErrors?d.if(P,()=>{for(const A of x)(0,n.checkReportMissingProp)(p,A)}):(d.if((0,t._)`${P} && (${(0,n.checkMissingProp)(p,x,g)})`),(0,n.reportMissingProp)(p,g),d.else())}}e.validatePropertyDeps=s;function c(p,l=p.schema){const{gen:d,data:h,keyword:y,it:g}=p,$=d.name("valid");for(const x in l)(0,r.alwaysValidSchema)(g,l[x])||(d.if((0,n.propertyInData)(d,h,x,g.opts.ownProperties),()=>{const P=p.subschema({keyword:y,schemaProp:x},$);p.mergeValidEvaluated(P,$)},()=>d.var($,!0)),p.ok($))}e.validateSchemaDeps=c,e.default=i})(No)),No}var Bn={},vp;function m$(){if(vp)return Bn;vp=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:o,schema:s,data:c,it:p}=i;if((0,t.alwaysValidSchema)(p,s))return;const l=o.name("valid");o.forIn("key",c,d=>{i.setParams({propertyName:d}),i.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},l),o.if((0,e.not)(l),()=>{i.error(!0),p.allErrors||o.break()})}),i.ok(l)}};return Bn.default=n,Bn}var Vn={},wp;function Od(){if(wp)return Vn;wp=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=At(),t=ke(),r=lt(),n=Ne(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:c,parentSchema:p,data:l,errsCount:d,it:h}=s,{schema:y=h.opts.defaultAdditionalProperties}=s;if(!d)throw new Error("ajv implementation error");const{allErrors:g,opts:$}=h;if(h.props=!0,$.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,y))return;const x=(0,e.allSchemaProperties)(p.properties),P=(0,e.allSchemaProperties)(p.patternProperties);A(),s.ok((0,t._)`${d} === ${r.default.errors}`);function A(){c.forIn("key",l,k=>{!x.length&&!P.length?O(k):c.if(S(k),()=>O(k))})}function S(k){let M;if(x.length>8){const H=(0,n.schemaRefOrVal)(h,p.properties,"properties");M=(0,e.isOwnProperty)(c,H,k)}else x.length?M=(0,t.or)(...x.map(H=>(0,t._)`${k} === ${H}`)):M=t.nil;return P.length&&(M=(0,t.or)(M,...P.map(H=>(0,t._)`${(0,e.usePattern)(s,H)}.test(${k})`))),(0,t.not)(M)}function v(k){c.code((0,t._)`delete ${l}[${k}]`)}function O(k){if($.removeAdditional==="all"||$.removeAdditional&&y===!1){v(k);return}if(y===!1){s.setParams({additionalProperty:k}),s.error(),g||c.break();return}if(typeof y=="object"&&!(0,n.alwaysValidSchema)(h,y)){const M=c.name("valid");$.removeAdditional==="failing"?(b(k,M,!1),c.if((0,t.not)(M),()=>{s.reset(),v(k)})):(b(k,M),g||c.if((0,t.not)(M),()=>c.break()))}}function b(k,M,H){const G={keyword:"additionalProperties",dataProp:k,dataPropType:n.Type.Str};H===!1&&Object.assign(G,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(G,M)}}};return Vn.default=o,Vn}var Hn={},xp;function h$(){if(xp)return Hn;xp=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=wr(),t=At(),r=Ne(),n=Od(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:s,schema:c,parentSchema:p,data:l,it:d}=o;(d.opts.removeAdditional==="all"&&p.additionalProperties===void 0||d.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(d,n.default,"additionalProperties"));const h=(0,t.allSchemaProperties)(c);for(const P of h)d.definedProperties.add(P);d.opts.unevaluated&&h.length&&d.props!==!0&&(d.props=r.mergeEvaluated.props(s,(0,r.toHash)(h),d.props));const y=h.filter(P=>!(0,r.alwaysValidSchema)(d,c[P]));if(y.length===0)return;const g=s.name("valid");for(const P of y)$(P)?x(P):(s.if((0,t.propertyInData)(s,l,P,d.opts.ownProperties)),x(P),d.allErrors||s.else().var(g,!0),s.endIf()),o.it.definedProperties.add(P),o.ok(g);function $(P){return d.opts.useDefaults&&!d.compositeRule&&c[P].default!==void 0}function x(P){o.subschema({keyword:"properties",schemaProp:P,dataProp:P},g)}}};return Hn.default=i,Hn}var Kn={},Sp;function y$(){if(Sp)return Kn;Sp=1,Object.defineProperty(Kn,"__esModule",{value:!0});const e=At(),t=ke(),r=Ne(),n=Ne(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:s,schema:c,data:p,parentSchema:l,it:d}=o,{opts:h}=d,y=(0,e.allSchemaProperties)(c),g=y.filter(O=>(0,r.alwaysValidSchema)(d,c[O]));if(y.length===0||g.length===y.length&&(!d.opts.unevaluated||d.props===!0))return;const $=h.strictSchema&&!h.allowMatchingProperties&&l.properties,x=s.name("valid");d.props!==!0&&!(d.props instanceof t.Name)&&(d.props=(0,n.evaluatedPropsToName)(s,d.props));const{props:P}=d;A();function A(){for(const O of y)$&&S(O),d.allErrors?v(O):(s.var(x,!0),v(O),s.if(x))}function S(O){for(const b in $)new RegExp(O).test(b)&&(0,r.checkStrictMode)(d,`property ${b} matches pattern ${O} (use allowMatchingProperties)`)}function v(O){s.forIn("key",p,b=>{s.if((0,t._)`${(0,e.usePattern)(o,O)}.test(${b})`,()=>{const k=g.includes(O);k||o.subschema({keyword:"patternProperties",schemaProp:O,dataProp:b,dataPropType:n.Type.Str},x),d.opts.unevaluated&&P!==!0?s.assign((0,t._)`${P}[${b}]`,!0):!k&&!d.allErrors&&s.if((0,t.not)(x),()=>s.break())})})}}};return Kn.default=i,Kn}var Wn={},Pp;function g$(){if(Pp)return Wn;Pp=1,Object.defineProperty(Wn,"__esModule",{value:!0});const e=Ne(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:o}=r;if((0,e.alwaysValidSchema)(o,i)){r.fail();return}const s=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Wn.default=t,Wn}var Qn={},$p;function b$(){if($p)return Qn;$p=1,Object.defineProperty(Qn,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:At().validateUnion,error:{message:"must match a schema in anyOf"}};return Qn.default=t,Qn}var Gn={},Ap;function v$(){if(Ap)return Gn;Ap=1,Object.defineProperty(Gn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:o,schema:s,parentSchema:c,it:p}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(p.opts.discriminator&&c.discriminator)return;const l=s,d=o.let("valid",!1),h=o.let("passing",null),y=o.name("_valid");i.setParams({passing:h}),o.block(g),i.result(d,()=>i.reset(),()=>i.error(!0));function g(){l.forEach(($,x)=>{let P;(0,t.alwaysValidSchema)(p,$)?o.var(y,!0):P=i.subschema({keyword:"oneOf",schemaProp:x,compositeRule:!0},y),x>0&&o.if((0,e._)`${y} && ${d}`).assign(d,!1).assign(h,(0,e._)`[${h}, ${x}]`).else(),o.if(y,()=>{o.assign(d,!0),o.assign(h,x),P&&i.mergeEvaluated(P,e.Name)})})}}};return Gn.default=n,Gn}var Yn={},Ep;function w$(){if(Ep)return Yn;Ep=1,Object.defineProperty(Yn,"__esModule",{value:!0});const e=Ne(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:o}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=n.name("valid");i.forEach((c,p)=>{if((0,e.alwaysValidSchema)(o,c))return;const l=r.subschema({keyword:"allOf",schemaProp:p},s,!0);r.ok(s),r.mergeEvaluated(l)})}};return Yn.default=t,Yn}var Jn={},Op;function x$(){if(Op)return Jn;Op=1,Object.defineProperty(Jn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:s,parentSchema:c,it:p}=o;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(p,'"if" without "then" and "else" is ignored');const l=i(p,"then"),d=i(p,"else");if(!l&&!d)return;const h=s.let("valid",!0),y=s.name("_valid");if(g(),o.reset(),l&&d){const x=s.let("ifClause");o.setParams({ifClause:x}),s.if(y,$("then",x),$("else",x))}else l?s.if(y,$("then")):s.if((0,e.not)(y),$("else"));o.pass(h,()=>o.error(!0));function g(){const x=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},y);o.mergeEvaluated(x)}function $(x,P){return()=>{const A=o.subschema({keyword:x},y);s.assign(h,y),o.mergeValidEvaluated(A,h),P?s.assign(P,(0,e._)`${x}`):o.setParams({ifClause:x})}}}};function i(o,s){const c=o.schema[s];return c!==void 0&&!(0,t.alwaysValidSchema)(o,c)}return Jn.default=n,Jn}var Xn={},Rp;function S$(){if(Rp)return Xn;Rp=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=Ne(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Xn.default=t,Xn}var _p;function ua(){if(_p)return Ln;_p=1,Object.defineProperty(Ln,"__esModule",{value:!0});const e=Ad(),t=u$(),r=Ed(),n=d$(),i=f$(),o=la(),s=m$(),c=Od(),p=h$(),l=y$(),d=g$(),h=b$(),y=v$(),g=w$(),$=x$(),x=S$();function P(A=!1){const S=[d.default,h.default,y.default,g.default,$.default,x.default,s.default,c.default,o.default,p.default,l.default];return A?S.push(t.default,n.default):S.push(e.default,r.default),S.push(i.default),S}return Ln.default=P,Ln}var Zn={},ar={},Tp;function Rd(){if(Tp)return ar;Tp=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.dynamicAnchor=void 0;const e=ke(),t=lt(),r=io(),n=oo(),i={keyword:"$dynamicAnchor",schemaType:"string",code:c=>o(c,c.schema)};function o(c,p){const{gen:l,it:d}=c;d.schemaEnv.root.dynamicAnchors[p]=!0;const h=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(p)}`,y=d.errSchemaPath==="#"?d.validateName:s(c);l.if((0,e._)`!${h}`,()=>l.assign(h,y))}ar.dynamicAnchor=o;function s(c){const{schemaEnv:p,schema:l,self:d}=c.it,{root:h,baseId:y,localRefs:g,meta:$}=p.root,{schemaId:x}=d.opts,P=new r.SchemaEnv({schema:l,schemaId:x,root:h,baseId:y,localRefs:g,meta:$});return r.compileSchema.call(d,P),(0,n.getValidate)(c,P)}return ar.default=i,ar}var cr={},kp;function _d(){if(kp)return cr;kp=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.dynamicRef=void 0;const e=ke(),t=lt(),r=oo(),n={keyword:"$dynamicRef",schemaType:"string",code:o=>i(o,o.schema)};function i(o,s){const{gen:c,keyword:p,it:l}=o;if(s[0]!=="#")throw new Error(`"${p}" only supports hash fragment reference`);const d=s.slice(1);if(l.allErrors)h();else{const g=c.let("valid",!1);h(g),o.ok(g)}function h(g){if(l.schemaEnv.root.dynamicAnchors[d]){const $=c.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(d)}`);c.if($,y($,g),y(l.validateName,g))}else y(l.validateName,g)()}function y(g,$){return $?()=>c.block(()=>{(0,r.callRef)(o,g),c.let($,!0)}):()=>(0,r.callRef)(o,g)}}return cr.dynamicRef=i,cr.default=n,cr}var ei={},Ip;function P$(){if(Ip)return ei;Ip=1,Object.defineProperty(ei,"__esModule",{value:!0});const e=Rd(),t=Ne(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,e.dynamicAnchor)(n,""):(0,t.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return ei.default=r,ei}var ti={},qp;function $$(){if(qp)return ti;qp=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=_d(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return ti.default=t,ti}var Cp;function A$(){if(Cp)return Zn;Cp=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e=Rd(),t=_d(),r=P$(),n=$$(),i=[e.default,t.default,r.default,n.default];return Zn.default=i,Zn}var ri={},ni={},jp;function E$(){if(jp)return ni;jp=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=la(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return ni.default=t,ni}var ii={},Mp;function O$(){if(Mp)return ii;Mp=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=la(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return ii.default=t,ii}var oi={},Dp;function R$(){if(Dp)return oi;Dp=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=Ne(),t={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:n,it:i}){n.contains===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "contains" is ignored`)}};return oi.default=t,oi}var Np;function _$(){if(Np)return ri;Np=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=E$(),t=O$(),r=R$(),n=[e.default,t.default,r.default];return ri.default=n,ri}var si={},ai={},Lp;function T$(){if(Lp)return ai;Lp=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=ke(),t=Ne(),r=lt(),i={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:o})=>(0,e._)`{unevaluatedProperty: ${o.unevaluatedProperty}}`},code(o){const{gen:s,schema:c=o.it.opts.defaultUnevaluatedProperties,data:p,errsCount:l,it:d}=o,h=o.schema===void 0&&o.it.opts.defaultUnevaluatedProperties===!1;if(!l)throw new Error("ajv implementation error");const{allErrors:y,props:g}=d;if(g instanceof e.Name)s.if((0,e._)`${g} !== true`,()=>s.forIn("key",p,A=>s.if(x(g,A),()=>$(A))));else if(g!==!0){const A=()=>s.forIn("key",p,S=>g===void 0?$(S):s.if(P(g,S),()=>$(S)));h&&d.errorPath.emptyStr()&&!d.compositeRule?s.if((0,e._)`${r.default.isAllOfVariant} === 0`,A):(!d.compositeRule||o.schema!==void 0)&&A()}h||(d.props=!0),o.ok((0,e._)`${l} === ${r.default.errors}`);function $(A){if(c===!1){o.setParams({unevaluatedProperty:A}),o.error(),y||s.break();return}if(!(0,t.alwaysValidSchema)(d,c)){const S=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:A,dataPropType:t.Type.Str},S),y||s.if((0,e.not)(S),()=>s.break())}}function x(A,S){return(0,e._)`!${A} || !${A}[${S}]`}function P(A,S){const v=[];for(const O in A)A[O]===!0&&v.push((0,e._)`${S} !== ${O}`);return(0,e.and)(...v)}}};return ai.default=i,ai}var ci={},Up;function k$(){if(Up)return ci;Up=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{gen:o,schema:s,data:c,it:p}=i,l=p.items||0;if(l===!0)return;const d=o.const("len",(0,e._)`${c}.length`);if(s===!1)i.setParams({len:l}),i.fail((0,e._)`${d} > ${l}`);else if(typeof s=="object"&&!(0,t.alwaysValidSchema)(p,s)){const y=o.var("valid",(0,e._)`${d} <= ${l}`);o.if((0,e.not)(y),()=>h(y,l)),i.ok(y)}p.items=!0;function h(y,g){o.forRange("i",g,d,$=>{i.subschema({keyword:"unevaluatedItems",dataProp:$,dataPropType:t.Type.Num},y),p.allErrors||o.if((0,e.not)(y),()=>o.break())})}}};return ci.default=n,ci}var Fp;function Td(){if(Fp)return si;Fp=1,Object.defineProperty(si,"__esModule",{value:!0});const e=T$(),t=k$(),r=[e.default,t.default];return si.default=r,si}var pi={},li={},zp;function I$(){if(zp)return li;zp=1,Object.defineProperty(li,"__esModule",{value:!0});const e=ke(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:o,data:s,$data:c,schema:p,schemaCode:l,it:d}=n,{opts:h,errSchemaPath:y,schemaEnv:g,self:$}=d;if(!h.validateFormats)return;c?x():P();function x(){const A=o.scopeValue("formats",{ref:$.formats,code:h.code.formats}),S=o.const("fDef",(0,e._)`${A}[${l}]`),v=o.let("fType"),O=o.let("format");o.if((0,e._)`typeof ${S} == "object" && !(${S} instanceof RegExp)`,()=>o.assign(v,(0,e._)`${S}.type || "string"`).assign(O,(0,e._)`${S}.validate`),()=>o.assign(v,(0,e._)`"string"`).assign(O,S)),n.fail$data((0,e.or)(b(),k()));function b(){return h.strictSchema===!1?e.nil:(0,e._)`${l} && !${O}`}function k(){const M=g.$async?(0,e._)`(${S}.async ? await ${O}(${s}) : ${O}(${s}))`:(0,e._)`${O}(${s})`,H=(0,e._)`(typeof ${O} == "function" ? ${M} : ${O}.test(${s}))`;return(0,e._)`${O} && ${O} !== true && ${v} === ${i} && !${H}`}}function P(){const A=$.formats[p];if(!A){b();return}if(A===!0)return;const[S,v,O]=k(A);S===i&&n.pass(M());function b(){if(h.strictSchema===!1){$.logger.warn(H());return}throw new Error(H());function H(){return`unknown format "${p}" ignored in schema at path "${y}"`}}function k(H){const G=H instanceof RegExp?(0,e.regexpCode)(H):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(p)}`:void 0,Z=o.scopeValue("formats",{key:p,ref:H,code:G});return typeof H=="object"&&!(H instanceof RegExp)?[H.type||"string",H.validate,(0,e._)`${Z}.validate`]:["string",H,Z]}function M(){if(typeof A=="object"&&!(A instanceof RegExp)&&A.async){if(!g.$async)throw new Error("async format in sync schema");return(0,e._)`await ${O}(${s})`}return typeof v=="function"?(0,e._)`${O}(${s})`:(0,e._)`${O}.test(${s})`}}}};return li.default=r,li}var Bp;function da(){if(Bp)return pi;Bp=1,Object.defineProperty(pi,"__esModule",{value:!0});const t=[I$().default];return pi.default=t,pi}var Wt={},Vp;function kd(){return Vp||(Vp=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.contentVocabulary=Wt.metadataVocabulary=void 0,Wt.metadataVocabulary=["title","description","default","deprecated","examples"],Wt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Wt}var Hp;function q$(){if(Hp)return xn;Hp=1,Object.defineProperty(xn,"__esModule",{value:!0});const e=$d(),t=pa(),r=ua(),n=A$(),i=_$(),o=Td(),s=da(),c=kd(),p=[n.default,e.default,t.default,(0,r.default)(!0),s.default,c.metadataVocabulary,c.contentVocabulary,i.default,o.default];return xn.default=p,xn}var ui={},Cr={},Kp;function C$(){if(Kp)return Cr;Kp=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Cr.DiscrError=e={})),Cr}var Wp;function fa(){if(Wp)return ui;Wp=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=ke(),t=C$(),r=io(),n=xr(),i=Ne(),o={message:({params:{discrError:p,tagName:l}})=>p===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf or anyOf`,params:({params:{discrError:p,tag:l,tagName:d}})=>(0,e._)`{error: ${p}, tag: ${d}, tagValue: ${l}}`};function s(p,l){var d;if(!(!p.allOf||!Array.isArray(p.allOf))){for(const h of p.allOf)if(!((d=h?.properties)===null||d===void 0)&&d[l])return h.properties[l]}}const c={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(p){const{gen:l,data:d,schema:h,parentSchema:y,it:g}=p,$=y.oneOf?"oneOf":y.anyOf?"anyOf":void 0;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const x=h.propertyName;if(typeof x!="string")throw new Error("discriminator: requires propertyName");if(!$)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const P=y[$],A=l.let("valid",!1),S=l.const("tag",(0,e._)`${d}${(0,e.getProperty)(x)}`);l.if((0,e._)`typeof ${S} == "string"`,()=>v(),()=>p.error(!1,{discrError:t.DiscrError.Tag,tag:S,tagName:x})),p.ok(A);function v(){const k=b();l.if(!1);for(const M in k)l.elseIf((0,e._)`${S} === ${M}`),l.assign(A,O(k[M]));l.else(),p.error(!1,{discrError:t.DiscrError.Mapping,tag:S,tagName:x}),l.endIf()}function O(k){const M=l.name("valid"),H=p.subschema({keyword:$,schemaProp:k},M);return p.mergeEvaluated(H,e.Name),M}function b(){var k;const M={},H=Z(y);let G=!0;for(let ee=0;ee<P.length;ee++){let ie=P[ee];const Pe=ie?.$ref;if(Pe&&h.mapping){const{mapping:Le}=h,Se=Object.keys(Le).filter(qe=>Le[qe]===ie.$ref);if(Se.length){for(const qe of Se)de(qe,ee);continue}}if(Pe&&!(0,i.schemaHasRulesButRef)(ie,g.self.RULES)&&(ie=r.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,Pe),ie instanceof r.SchemaEnv&&(ie=ie.schema),ie===void 0))throw new n.default(g.opts.uriResolver,g.baseId,Pe);let Ie=(k=ie?.properties)===null||k===void 0?void 0:k[x];if(!Ie&&ie?.allOf&&(Ie=s(ie,x)),typeof Ie!="object")throw new Error(`discriminator: ${$} subschemas (or referenced schemas) must have "properties/${x}" or match mapping`);G=G&&(H||Z(ie)),te(Ie,ee)}if(!G)throw new Error(`discriminator: "${x}" must be required`);return M;function Z(ee){if(Array.isArray(ee.required)&&ee.required.includes(x))return!0;if(ee.allOf&&Array.isArray(ee.allOf))for(const ie of ee.allOf){const Pe=ie;if(Array.isArray(Pe.required)&&Pe.required.includes(x))return!0}return!1}function te(ee,ie){if(ee.const)de(ee.const,ie);else if(ee.enum)for(const Pe of ee.enum)de(Pe,ie);else throw new Error(`discriminator: "properties/${x}" must have "const" or "enum"`)}function de(ee,ie){if(typeof ee!="string"||ee in M)throw new Error(`discriminator: "${x}" values must be unique strings`);M[ee]=ie}}}};return ui.default=c,ui}var di={};const j$="https://json-schema.org/draft/2020-12/schema",M$="https://json-schema.org/draft/2020-12/schema",D$={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},N$="meta",L$="Core and Validation specifications meta-schema",U$=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],F$=["object","boolean"],z$="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",B$={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},V$={$schema:j$,$id:M$,$vocabulary:D$,$dynamicAnchor:N$,title:L$,allOf:U$,type:F$,$comment:z$,properties:B$},H$="https://json-schema.org/draft/2020-12/schema",K$="https://json-schema.org/draft/2020-12/meta/applicator",W$={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Q$="meta",G$="Applicator vocabulary meta-schema",Y$=["object","boolean"],J$={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},X$={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Z$={$schema:H$,$id:K$,$vocabulary:W$,$dynamicAnchor:Q$,title:G$,type:Y$,properties:J$,$defs:X$},eA="https://json-schema.org/draft/2020-12/schema",tA="https://json-schema.org/draft/2020-12/meta/unevaluated",rA={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},nA="meta",iA="Unevaluated applicator vocabulary meta-schema",oA=["object","boolean"],sA={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},aA={$schema:eA,$id:tA,$vocabulary:rA,$dynamicAnchor:nA,title:iA,type:oA,properties:sA},cA="https://json-schema.org/draft/2020-12/schema",pA="https://json-schema.org/draft/2020-12/meta/content",lA={"https://json-schema.org/draft/2020-12/vocab/content":!0},uA="meta",dA="Content vocabulary meta-schema",fA=["object","boolean"],mA={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},hA={$schema:cA,$id:pA,$vocabulary:lA,$dynamicAnchor:uA,title:dA,type:fA,properties:mA},yA="https://json-schema.org/draft/2020-12/schema",gA="https://json-schema.org/draft/2020-12/meta/core",bA={"https://json-schema.org/draft/2020-12/vocab/core":!0},vA="meta",wA="Core vocabulary meta-schema",xA=["object","boolean"],SA={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},PA={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},$A={$schema:yA,$id:gA,$vocabulary:bA,$dynamicAnchor:vA,title:wA,type:xA,properties:SA,$defs:PA},AA="https://json-schema.org/draft/2020-12/schema",EA="https://json-schema.org/draft/2020-12/meta/format-annotation",OA={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},RA="meta",_A="Format vocabulary meta-schema for annotation results",TA=["object","boolean"],kA={format:{type:"string"}},IA={$schema:AA,$id:EA,$vocabulary:OA,$dynamicAnchor:RA,title:_A,type:TA,properties:kA},qA="https://json-schema.org/draft/2020-12/schema",CA="https://json-schema.org/draft/2020-12/meta/meta-data",jA={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},MA="meta",DA="Meta-data vocabulary meta-schema",NA=["object","boolean"],LA={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},UA={$schema:qA,$id:CA,$vocabulary:jA,$dynamicAnchor:MA,title:DA,type:NA,properties:LA},FA="https://json-schema.org/draft/2020-12/schema",zA="https://json-schema.org/draft/2020-12/meta/validation",BA={"https://json-schema.org/draft/2020-12/vocab/validation":!0},VA="meta",HA="Validation vocabulary meta-schema",KA=["object","boolean"],WA={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},QA={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},GA={$schema:FA,$id:zA,$vocabulary:BA,$dynamicAnchor:VA,title:HA,type:KA,properties:WA,$defs:QA};var Qp;function YA(){if(Qp)return di;Qp=1,Object.defineProperty(di,"__esModule",{value:!0});const e=V$,t=Z$,r=aA,n=hA,i=$A,o=IA,s=UA,c=GA,p=["/properties"];function l(d){return[e,t,r,n,i,h(this,o),s,h(this,c)].forEach(y=>this.addMetaSchema(y,void 0,!1)),this;function h(y,g){return d?y.$dataMetaSchema(g,p):g}}return di.default=l,di}var Gp;function JA(){return Gp||(Gp=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const r=aa(),n=q$(),i=fa(),o=YA(),s="https://json-schema.org/draft/2020-12/schema";class c extends r.default{constructor(g={}){super({...g,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:g,meta:$}=this.opts;$&&(o.default.call(this,g),this.refs["http://json-schema.org/schema"]=s)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv2020=c,e.exports=t=c,e.exports.Ajv2020=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var p=wr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var l=ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=Xr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var h=xr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(yn,yn.exports)),yn.exports}var Id=JA();const qd=Y.getDefaultExportFromCjs(Id);let Lo;function XA(){return Lo||(Lo=new Id.Ajv2020({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0})),Lo}function Yp(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>XA().validate(i,r));return n===-1&&(n=0),t[n]}}function dr(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);if(t.type==="string"||t.type==="number"||t.type==="integer"||t.type==="boolean"){const{default:n,format:i,...o}=t;return o}if(t.type==="object"&&!t.properties&&!t.oneOf){if(t.additionalProperties===void 0||t.additionalProperties===!0)return{type:"object"};if(t.additionalProperties===!1)return{type:"object",properties:{}}}if(t.allOf)throw new Error(`Unexpected allOf in ${e}.`);if(t.anyOf)throw new Error(`Unexpected anyOf in ${e}.`);if(Y.isPlainObject(t.properties)||Y.isPlainObject(t.additionalProperties)||Y.isPlainObject(t.items)&&(Y.isPlainObject(t.items.properties)||Y.isPlainObject(t.items.additionalProperties)||t.items.oneOf))return ZA(e,t,r);if(t.oneOf)if(t.discriminator){const n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);const i={},o=t.oneOf.map((s,c)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${c} in oneOf.`);const p=s?.properties?.[n];if(!p||typeof p=="boolean")throw new Error(`Unexpected property '${p}' schema in ${e} at position ${c} in oneOf.`);const l=p.const,d=dr(l,s,r);return typeof d=="string"&&(i[l]=d),d});return(s,c)=>{if(Y.isPlainObject(s)){const p=s[n];if(typeof p=="string"){const l=i[p];if(l&&r[l])return l}}return Yp(t.oneOf,o)(s,c)}}else{const n=t.oneOf.map((i,o)=>dr(e+"_"+o,i,r));return Yp(t.oneOf,n)}return t}function ZA(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);const n=t.nodeTypeName??e,i={};for(const[p,l]of Object.entries(t.properties||{}))i[p]=dr(n+"."+p,l,r);let o;Y.isPlainObject(t.additionalProperties)&&(o=dr(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(o={});let s;Y.isPlainObject(t.items)&&(Y.isPlainObject(t.items.properties)||Y.isPlainObject(t.items.additionalProperties)||t.items.oneOf)&&(s=dr(e+"_items",t.items,r));let c=t.required;return t.oneOf&&t.oneOf.every(p=>!!p.required)&&(c=p=>{const l=t.oneOf.map(h=>[...t.required||[],...h.required]);let d=l.findIndex(h=>h.every(y=>p[y]!==void 0));return d===-1&&(d=0),l[d]}),r[n]={properties:i,additionalProperties:o,items:s,required:c,description:t.description,documentationLink:t.documentationLink},n}function Cd(e,t){const r={},n=dr(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const eE=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type","no-duplicated-tag-names","spec-ref-siblings"],tE=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-illogical-composition-keywords","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","no-mixed-number-range-constraints","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization","no-duplicated-tag-names","nullable-type-sibling","spec-no-invalid-tag-parents","spec-no-invalid-encoding-combinations","spec-discriminator-defaultMapping","spec-example-values","spec-querystring-parameters","spec-ref-siblings"],rE=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],nE=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],iE=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","spec-step-mutually-exclusive-fields","workflow-dependsOn","outputs-defined","parameters-unique","step-onSuccess-unique","step-onFailure-unique","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-both-scheme-and-scheme-name","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","x-security-scheme-name-reference"],oE=["info-contact","spec-ref-siblings"],sE=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],aE=["no-unused-types","type-description"],cE=["struct","no-unresolved-refs"],pE=[...eE,...tE,...rE,...nE,...iE,...oE,...sE,...aE,...cE],lE=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],uE=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","media-type-examples-override","remove-unused-components"],jd=[...uE,...lE],Md={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!j.isAbsoluteUrl(e)&&!Y.path.extname(e)?{type:"string"}:{...zr,directResolveAs:{name:"ConfigGovernance",...zr}},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends#extends"},plugins:{type:"array",items:{type:"string"}},rules:"Rules",oas2Rules:"Rules",oas3_0Rules:"Rules",oas3_1Rules:"Rules",oas3_2Rules:"Rules",async2Rules:"Rules",async3Rules:"Rules",arazzo1Rules:"Rules",arazzo1_1Rules:"Rules",overlay1Rules:"Rules",openrpc1Rules:"Rules",graphqlRules:"Rules",preprocessors:"Preprocessors",oas2Preprocessors:"Preprocessors",oas3_0Preprocessors:"Preprocessors",oas3_1Preprocessors:"Preprocessors",oas3_2Preprocessors:"Preprocessors",async2Preprocessors:"Preprocessors",async3Preprocessors:"Preprocessors",arazzo1Preprocessors:"Preprocessors",arazzo1_1Preprocessors:"Preprocessors",overlay1Preprocessors:"Preprocessors",openrpc1Preprocessors:"Preprocessors",decorators:"Decorators",oas2Decorators:"Decorators",oas3_0Decorators:"Decorators",oas3_1Decorators:"Decorators",oas3_2Decorators:"Decorators",async2Decorators:"Decorators",async3Decorators:"Decorators",arazzo1Decorators:"Decorators",arazzo1_1Decorators:"Decorators",overlay1Decorators:"Decorators",openrpc1Decorators:"Decorators"},zr={properties:Md},dE=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...zr.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),fE={properties:{},additionalProperties:"ConfigApisProperties",description:"The `apis` configuration section is used when a project contains multiple API descriptions to set up different rules and settings for individual APIs. It allows defining specific configurations for each API, which must be identified by a unique name.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/apis"},mE=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...ea(zr.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),hE={properties:{headers:{type:"array",items:{type:"string"}}}},yE={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:j.mapOf("ClientGeneratorOptions"),pagination:"ClientPagination"}},gE={properties:{},additionalProperties:{}},Dd={properties:{style:{enum:["cursor","offset","page","link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},bE={properties:{...Dd.properties,exclude:{type:"array",items:{type:"string"}},operations:j.mapOf("ClientPaginationRule")}},vE={properties:{},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules",additionalProperties:(e,t)=>{if(t.startsWith("rule/"))return typeof e=="string"?{enum:["error","warn","off"]}:"ConfigurableRule";if(pE.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(sa(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},wE={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Built-in rules are the default linting rules included with Redocly CLI. They enforce widely accepted API design standards and best practices. Each built-in rule has a default severity of error, but you can change the severity or turn off any built-in rule in your configuration file.",documentationLink:"https://redocly.com/docs/cli/rules/built-in-rules"},xE={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Custom rules are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-rules"},SE={properties:{},description:"Decorators define transformations that can be applied to the API document during the bundle step.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/decorators",additionalProperties:(e,t)=>{if(jd.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(sa(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},PE={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},$E={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},AE={properties:{},description:"Preprocessors define transformations that can be applied to the API document before bundling.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/preprocessors",additionalProperties:(e,t)=>{if(jd.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(sa(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},EE={properties:{},additionalProperties:{},description:"Built-in preprocessors are the default preprocessors included with Redocly CLI. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},OE={properties:{},additionalProperties:{},description:"Custom preprocessors are defined by users via plugins. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"};function RE(e){return{properties:{type:{enum:[...new Set(["any",...e,"SpecExtension"])],description:"REQUIRED. Locates the API node type that the lint command evaluates.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"},property:t=>Array.isArray(t)?{type:"array",items:{type:"string"},description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"}:t===null?null:{type:"string",description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"},filterInParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that locates where assertions run. An example value given the subject Operation could be filterInParentKeys: [get, put] means that only GET and PUT operations are evaluated for the assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},filterOutParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that excludes where assertions run. An example value given the subject Operation could be filterOutParentKeys: [delete] means that all operations except DELETE operations are evaluated for the assertions."},matchParentKeys:{type:"string",description:"Applies a regex pattern to the subject's parent keys to determine where assertions run. An example value given the subject Operation could be matchParentKeys: /^p/ means that POST, PUT, and PATCH operations are evaluated for the assertions."}},required:["type"],description:"REQUIRED. Narrows the subject further by specifying its type, and optionally property, filterParentKeys, etc.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"}}function _E(e){return{...e[ct.ScorecardClassicLevel],properties:{...e[ct.ScorecardClassicLevel]?.properties,...Md}}}const TE={properties:{enum:{type:"array",items:{type:"string"},description:"Asserts a value is within a predefined list of values. Providing a single value in a list is an equality check.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#enum-example"},pattern:{type:"string",description:"Asserts a value matches a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#pattern-example"},notPattern:{type:"string",description:"Asserts a value doesn't match a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#notpattern-example"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"],description:"Asserts a casing style. Supported styles are: camelCase, kebab-case, snake_case, PascalCase, MACRO_CASE, COBOL-CASE, flatcase.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#casing-example"},mutuallyExclusive:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually exclusive.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyexclusive-example"},mutuallyRequired:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually required.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},required:{type:"array",items:{type:"string"},description:"Asserts all listed values are defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#required-example"},requireAny:{type:"array",items:{type:"string"},description:"Asserts that at least one of the listed properties (key names only) is defined. ",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#requireany-example"},contains:{type:"array",items:{type:"string"},description:"Asserts that all listed strings are included in the value array.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#contains-example"},disallowed:{type:"array",items:{type:"string"},description:"Asserts all listed values are not defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#disallowed-example"},defined:{type:"boolean",description:"Asserts a property is defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#defined-example"},nonEmpty:{type:"boolean",description:"Asserts a property is not empty.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#nonempty-example"},minLength:{type:"integer",description:"Asserts a minimum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#minlength-example"},maxLength:{type:"integer",description:"Asserts a maximum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#maxlength-example"},schema:"Schema",ref:e=>typeof e=="string"?{type:"string",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"}:{type:"boolean",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"},const:e=>{if(typeof e=="string")return{type:"string",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="number")return{type:"number",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="boolean")return{type:"boolean",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"}}},additionalProperties:(e,t)=>{if(/^\w+\/\w+$/.test(t))return{}},description:"A minimum of one assertion property is required to be defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#assertion-object"},kE={properties:{subject:"Subject",assertions:"Assertions"},required:["subject","assertions"],description:"The where object is part of a where list which must be defined in order from the root node. Each node can only be used in one where object for each assertion. Each subsequent node must be a descendant of the previous one. Rules that use multiple where objects must target each one on a different node. However, the same node could be used in the last where object and in the root subject object. Nodes may be skipped in between the subject node types of the where list and those defined in the root subject type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#where-object"},IE={properties:{subject:"Subject",assertions:"Assertions",where:j.listOf("Where"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},reference:{type:"string"},severity:{enum:["error","warn","off"]}},required:["subject","assertions"],description:"Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object"};function ma(e,t){const r=Oi.flatMap(i=>{const o=Jr(i),s=t?t.extendTypes(o,i):o;return Object.keys(s)}),{ctx:n}=Cd("rootRedoclyConfigSchema",e);return{...qE,ConfigRoot:dE(n),ConfigApisProperties:mE(n),Subject:RE([...r,...CP]),...n,[ct.ScorecardClassicLevel]:_E(n)}}const qE={ConfigurableRule:IE,ConfigApis:fE,ConfigGovernance:zr,ConfigHTTP:hE,Client:yE,ClientGeneratorOptions:gE,ClientPagination:bE,ClientPaginationRule:Dd,Where:kE,BuiltinRule:wE,CustomRule:xE,BuiltinDecorator:PE,CustomDecorator:$E,BuiltinPreprocessor:EE,CustomPreprocessor:OE,Schema:Fe.Schema,SchemaProperties:Fe.SchemaProperties,PatternProperties:Fe.PatternProperties,NamedSchemas:Fe.NamedSchemas,DependentRequired:Fe.DependentRequired,Discriminator:Fe.Discriminator,DiscriminatorMapping:Fe.DiscriminatorMapping,ExternalDocs:Fe.ExternalDocs,Xml:Fe.Xml,Rules:vE,Decorators:SE,Preprocessors:AE,Assertions:TE},{theme:wk,...CE}=to.properties,jE={...to,properties:CE},Nd=ma(jE),Zr=j.normalizeTypes(Nd),_s="redocly.yaml",Ld={extends:["recommended"]},Li=".redocly.lint-ignore.yaml",Ud=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
8
|
+
deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(p){const[l,d]=o(p);s(p,l),c(p,d)}};function o({schema:p}){const l={},d={};for(const h in p){if(h==="__proto__")continue;const y=Array.isArray(p[h])?l:d;y[h]=p[h]}return[l,d]}function s(p,l=p.schema){const{gen:d,data:h,it:y}=p;if(Object.keys(l).length===0)return;const g=d.let("missing");for(const $ in l){const x=l[$];if(x.length===0)continue;const P=(0,n.propertyInData)(d,h,$,y.opts.ownProperties);p.setParams({property:$,depsCount:x.length,deps:x.join(", ")}),y.allErrors?d.if(P,()=>{for(const A of x)(0,n.checkReportMissingProp)(p,A)}):(d.if((0,t._)`${P} && (${(0,n.checkMissingProp)(p,x,g)})`),(0,n.reportMissingProp)(p,g),d.else())}}e.validatePropertyDeps=s;function c(p,l=p.schema){const{gen:d,data:h,keyword:y,it:g}=p,$=d.name("valid");for(const x in l)(0,r.alwaysValidSchema)(g,l[x])||(d.if((0,n.propertyInData)(d,h,x,g.opts.ownProperties),()=>{const P=p.subschema({keyword:y,schemaProp:x},$);p.mergeValidEvaluated(P,$)},()=>d.var($,!0)),p.ok($))}e.validateSchemaDeps=c,e.default=i})(No)),No}var Bn={},vp;function m$(){if(vp)return Bn;vp=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:o,schema:s,data:c,it:p}=i;if((0,t.alwaysValidSchema)(p,s))return;const l=o.name("valid");o.forIn("key",c,d=>{i.setParams({propertyName:d}),i.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},l),o.if((0,e.not)(l),()=>{i.error(!0),p.allErrors||o.break()})}),i.ok(l)}};return Bn.default=n,Bn}var Vn={},wp;function Od(){if(wp)return Vn;wp=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=At(),t=ke(),r=lt(),n=Ne(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:c,parentSchema:p,data:l,errsCount:d,it:h}=s,{schema:y=h.opts.defaultAdditionalProperties}=s;if(!d)throw new Error("ajv implementation error");const{allErrors:g,opts:$}=h;if(h.props=!0,$.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,y))return;const x=(0,e.allSchemaProperties)(p.properties),P=(0,e.allSchemaProperties)(p.patternProperties);A(),s.ok((0,t._)`${d} === ${r.default.errors}`);function A(){c.forIn("key",l,k=>{!x.length&&!P.length?O(k):c.if(S(k),()=>O(k))})}function S(k){let M;if(x.length>8){const H=(0,n.schemaRefOrVal)(h,p.properties,"properties");M=(0,e.isOwnProperty)(c,H,k)}else x.length?M=(0,t.or)(...x.map(H=>(0,t._)`${k} === ${H}`)):M=t.nil;return P.length&&(M=(0,t.or)(M,...P.map(H=>(0,t._)`${(0,e.usePattern)(s,H)}.test(${k})`))),(0,t.not)(M)}function v(k){c.code((0,t._)`delete ${l}[${k}]`)}function O(k){if($.removeAdditional==="all"||$.removeAdditional&&y===!1){v(k);return}if(y===!1){s.setParams({additionalProperty:k}),s.error(),g||c.break();return}if(typeof y=="object"&&!(0,n.alwaysValidSchema)(h,y)){const M=c.name("valid");$.removeAdditional==="failing"?(b(k,M,!1),c.if((0,t.not)(M),()=>{s.reset(),v(k)})):(b(k,M),g||c.if((0,t.not)(M),()=>c.break()))}}function b(k,M,H){const G={keyword:"additionalProperties",dataProp:k,dataPropType:n.Type.Str};H===!1&&Object.assign(G,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(G,M)}}};return Vn.default=o,Vn}var Hn={},xp;function h$(){if(xp)return Hn;xp=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=wr(),t=At(),r=Ne(),n=Od(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:s,schema:c,parentSchema:p,data:l,it:d}=o;(d.opts.removeAdditional==="all"&&p.additionalProperties===void 0||d.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(d,n.default,"additionalProperties"));const h=(0,t.allSchemaProperties)(c);for(const P of h)d.definedProperties.add(P);d.opts.unevaluated&&h.length&&d.props!==!0&&(d.props=r.mergeEvaluated.props(s,(0,r.toHash)(h),d.props));const y=h.filter(P=>!(0,r.alwaysValidSchema)(d,c[P]));if(y.length===0)return;const g=s.name("valid");for(const P of y)$(P)?x(P):(s.if((0,t.propertyInData)(s,l,P,d.opts.ownProperties)),x(P),d.allErrors||s.else().var(g,!0),s.endIf()),o.it.definedProperties.add(P),o.ok(g);function $(P){return d.opts.useDefaults&&!d.compositeRule&&c[P].default!==void 0}function x(P){o.subschema({keyword:"properties",schemaProp:P,dataProp:P},g)}}};return Hn.default=i,Hn}var Kn={},Sp;function y$(){if(Sp)return Kn;Sp=1,Object.defineProperty(Kn,"__esModule",{value:!0});const e=At(),t=ke(),r=Ne(),n=Ne(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:s,schema:c,data:p,parentSchema:l,it:d}=o,{opts:h}=d,y=(0,e.allSchemaProperties)(c),g=y.filter(O=>(0,r.alwaysValidSchema)(d,c[O]));if(y.length===0||g.length===y.length&&(!d.opts.unevaluated||d.props===!0))return;const $=h.strictSchema&&!h.allowMatchingProperties&&l.properties,x=s.name("valid");d.props!==!0&&!(d.props instanceof t.Name)&&(d.props=(0,n.evaluatedPropsToName)(s,d.props));const{props:P}=d;A();function A(){for(const O of y)$&&S(O),d.allErrors?v(O):(s.var(x,!0),v(O),s.if(x))}function S(O){for(const b in $)new RegExp(O).test(b)&&(0,r.checkStrictMode)(d,`property ${b} matches pattern ${O} (use allowMatchingProperties)`)}function v(O){s.forIn("key",p,b=>{s.if((0,t._)`${(0,e.usePattern)(o,O)}.test(${b})`,()=>{const k=g.includes(O);k||o.subschema({keyword:"patternProperties",schemaProp:O,dataProp:b,dataPropType:n.Type.Str},x),d.opts.unevaluated&&P!==!0?s.assign((0,t._)`${P}[${b}]`,!0):!k&&!d.allErrors&&s.if((0,t.not)(x),()=>s.break())})})}}};return Kn.default=i,Kn}var Wn={},Pp;function g$(){if(Pp)return Wn;Pp=1,Object.defineProperty(Wn,"__esModule",{value:!0});const e=Ne(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:o}=r;if((0,e.alwaysValidSchema)(o,i)){r.fail();return}const s=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Wn.default=t,Wn}var Qn={},$p;function b$(){if($p)return Qn;$p=1,Object.defineProperty(Qn,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:At().validateUnion,error:{message:"must match a schema in anyOf"}};return Qn.default=t,Qn}var Gn={},Ap;function v$(){if(Ap)return Gn;Ap=1,Object.defineProperty(Gn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:o,schema:s,parentSchema:c,it:p}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(p.opts.discriminator&&c.discriminator)return;const l=s,d=o.let("valid",!1),h=o.let("passing",null),y=o.name("_valid");i.setParams({passing:h}),o.block(g),i.result(d,()=>i.reset(),()=>i.error(!0));function g(){l.forEach(($,x)=>{let P;(0,t.alwaysValidSchema)(p,$)?o.var(y,!0):P=i.subschema({keyword:"oneOf",schemaProp:x,compositeRule:!0},y),x>0&&o.if((0,e._)`${y} && ${d}`).assign(d,!1).assign(h,(0,e._)`[${h}, ${x}]`).else(),o.if(y,()=>{o.assign(d,!0),o.assign(h,x),P&&i.mergeEvaluated(P,e.Name)})})}}};return Gn.default=n,Gn}var Yn={},Ep;function w$(){if(Ep)return Yn;Ep=1,Object.defineProperty(Yn,"__esModule",{value:!0});const e=Ne(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:o}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=n.name("valid");i.forEach((c,p)=>{if((0,e.alwaysValidSchema)(o,c))return;const l=r.subschema({keyword:"allOf",schemaProp:p},s,!0);r.ok(s),r.mergeEvaluated(l)})}};return Yn.default=t,Yn}var Jn={},Op;function x$(){if(Op)return Jn;Op=1,Object.defineProperty(Jn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:s,parentSchema:c,it:p}=o;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(p,'"if" without "then" and "else" is ignored');const l=i(p,"then"),d=i(p,"else");if(!l&&!d)return;const h=s.let("valid",!0),y=s.name("_valid");if(g(),o.reset(),l&&d){const x=s.let("ifClause");o.setParams({ifClause:x}),s.if(y,$("then",x),$("else",x))}else l?s.if(y,$("then")):s.if((0,e.not)(y),$("else"));o.pass(h,()=>o.error(!0));function g(){const x=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},y);o.mergeEvaluated(x)}function $(x,P){return()=>{const A=o.subschema({keyword:x},y);s.assign(h,y),o.mergeValidEvaluated(A,h),P?s.assign(P,(0,e._)`${x}`):o.setParams({ifClause:x})}}}};function i(o,s){const c=o.schema[s];return c!==void 0&&!(0,t.alwaysValidSchema)(o,c)}return Jn.default=n,Jn}var Xn={},Rp;function S$(){if(Rp)return Xn;Rp=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=Ne(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Xn.default=t,Xn}var _p;function ua(){if(_p)return Ln;_p=1,Object.defineProperty(Ln,"__esModule",{value:!0});const e=Ad(),t=u$(),r=Ed(),n=d$(),i=f$(),o=la(),s=m$(),c=Od(),p=h$(),l=y$(),d=g$(),h=b$(),y=v$(),g=w$(),$=x$(),x=S$();function P(A=!1){const S=[d.default,h.default,y.default,g.default,$.default,x.default,s.default,c.default,o.default,p.default,l.default];return A?S.push(t.default,n.default):S.push(e.default,r.default),S.push(i.default),S}return Ln.default=P,Ln}var Zn={},ar={},Tp;function Rd(){if(Tp)return ar;Tp=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.dynamicAnchor=void 0;const e=ke(),t=lt(),r=io(),n=oo(),i={keyword:"$dynamicAnchor",schemaType:"string",code:c=>o(c,c.schema)};function o(c,p){const{gen:l,it:d}=c;d.schemaEnv.root.dynamicAnchors[p]=!0;const h=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(p)}`,y=d.errSchemaPath==="#"?d.validateName:s(c);l.if((0,e._)`!${h}`,()=>l.assign(h,y))}ar.dynamicAnchor=o;function s(c){const{schemaEnv:p,schema:l,self:d}=c.it,{root:h,baseId:y,localRefs:g,meta:$}=p.root,{schemaId:x}=d.opts,P=new r.SchemaEnv({schema:l,schemaId:x,root:h,baseId:y,localRefs:g,meta:$});return r.compileSchema.call(d,P),(0,n.getValidate)(c,P)}return ar.default=i,ar}var cr={},kp;function _d(){if(kp)return cr;kp=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.dynamicRef=void 0;const e=ke(),t=lt(),r=oo(),n={keyword:"$dynamicRef",schemaType:"string",code:o=>i(o,o.schema)};function i(o,s){const{gen:c,keyword:p,it:l}=o;if(s[0]!=="#")throw new Error(`"${p}" only supports hash fragment reference`);const d=s.slice(1);if(l.allErrors)h();else{const g=c.let("valid",!1);h(g),o.ok(g)}function h(g){if(l.schemaEnv.root.dynamicAnchors[d]){const $=c.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(d)}`);c.if($,y($,g),y(l.validateName,g))}else y(l.validateName,g)()}function y(g,$){return $?()=>c.block(()=>{(0,r.callRef)(o,g),c.let($,!0)}):()=>(0,r.callRef)(o,g)}}return cr.dynamicRef=i,cr.default=n,cr}var ei={},Ip;function P$(){if(Ip)return ei;Ip=1,Object.defineProperty(ei,"__esModule",{value:!0});const e=Rd(),t=Ne(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,e.dynamicAnchor)(n,""):(0,t.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return ei.default=r,ei}var ti={},qp;function $$(){if(qp)return ti;qp=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=_d(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return ti.default=t,ti}var Cp;function A$(){if(Cp)return Zn;Cp=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e=Rd(),t=_d(),r=P$(),n=$$(),i=[e.default,t.default,r.default,n.default];return Zn.default=i,Zn}var ri={},ni={},jp;function E$(){if(jp)return ni;jp=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=la(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return ni.default=t,ni}var ii={},Mp;function O$(){if(Mp)return ii;Mp=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=la(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return ii.default=t,ii}var oi={},Dp;function R$(){if(Dp)return oi;Dp=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=Ne(),t={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:n,it:i}){n.contains===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "contains" is ignored`)}};return oi.default=t,oi}var Np;function _$(){if(Np)return ri;Np=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=E$(),t=O$(),r=R$(),n=[e.default,t.default,r.default];return ri.default=n,ri}var si={},ai={},Lp;function T$(){if(Lp)return ai;Lp=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=ke(),t=Ne(),r=lt(),i={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:o})=>(0,e._)`{unevaluatedProperty: ${o.unevaluatedProperty}}`},code(o){const{gen:s,schema:c=o.it.opts.defaultUnevaluatedProperties,data:p,errsCount:l,it:d}=o,h=o.schema===void 0&&o.it.opts.defaultUnevaluatedProperties===!1;if(!l)throw new Error("ajv implementation error");const{allErrors:y,props:g}=d;if(g instanceof e.Name)s.if((0,e._)`${g} !== true`,()=>s.forIn("key",p,A=>s.if(x(g,A),()=>$(A))));else if(g!==!0){const A=()=>s.forIn("key",p,S=>g===void 0?$(S):s.if(P(g,S),()=>$(S)));h&&d.errorPath.emptyStr()&&!d.compositeRule?s.if((0,e._)`${r.default.isAllOfVariant} === 0`,A):(!d.compositeRule||o.schema!==void 0)&&A()}h||(d.props=!0),o.ok((0,e._)`${l} === ${r.default.errors}`);function $(A){if(c===!1){o.setParams({unevaluatedProperty:A}),o.error(),y||s.break();return}if(!(0,t.alwaysValidSchema)(d,c)){const S=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:A,dataPropType:t.Type.Str},S),y||s.if((0,e.not)(S),()=>s.break())}}function x(A,S){return(0,e._)`!${A} || !${A}[${S}]`}function P(A,S){const v=[];for(const O in A)A[O]===!0&&v.push((0,e._)`${S} !== ${O}`);return(0,e.and)(...v)}}};return ai.default=i,ai}var ci={},Up;function k$(){if(Up)return ci;Up=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{gen:o,schema:s,data:c,it:p}=i,l=p.items||0;if(l===!0)return;const d=o.const("len",(0,e._)`${c}.length`);if(s===!1)i.setParams({len:l}),i.fail((0,e._)`${d} > ${l}`);else if(typeof s=="object"&&!(0,t.alwaysValidSchema)(p,s)){const y=o.var("valid",(0,e._)`${d} <= ${l}`);o.if((0,e.not)(y),()=>h(y,l)),i.ok(y)}p.items=!0;function h(y,g){o.forRange("i",g,d,$=>{i.subschema({keyword:"unevaluatedItems",dataProp:$,dataPropType:t.Type.Num},y),p.allErrors||o.if((0,e.not)(y),()=>o.break())})}}};return ci.default=n,ci}var Fp;function Td(){if(Fp)return si;Fp=1,Object.defineProperty(si,"__esModule",{value:!0});const e=T$(),t=k$(),r=[e.default,t.default];return si.default=r,si}var pi={},li={},zp;function I$(){if(zp)return li;zp=1,Object.defineProperty(li,"__esModule",{value:!0});const e=ke(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:o,data:s,$data:c,schema:p,schemaCode:l,it:d}=n,{opts:h,errSchemaPath:y,schemaEnv:g,self:$}=d;if(!h.validateFormats)return;c?x():P();function x(){const A=o.scopeValue("formats",{ref:$.formats,code:h.code.formats}),S=o.const("fDef",(0,e._)`${A}[${l}]`),v=o.let("fType"),O=o.let("format");o.if((0,e._)`typeof ${S} == "object" && !(${S} instanceof RegExp)`,()=>o.assign(v,(0,e._)`${S}.type || "string"`).assign(O,(0,e._)`${S}.validate`),()=>o.assign(v,(0,e._)`"string"`).assign(O,S)),n.fail$data((0,e.or)(b(),k()));function b(){return h.strictSchema===!1?e.nil:(0,e._)`${l} && !${O}`}function k(){const M=g.$async?(0,e._)`(${S}.async ? await ${O}(${s}) : ${O}(${s}))`:(0,e._)`${O}(${s})`,H=(0,e._)`(typeof ${O} == "function" ? ${M} : ${O}.test(${s}))`;return(0,e._)`${O} && ${O} !== true && ${v} === ${i} && !${H}`}}function P(){const A=$.formats[p];if(!A){b();return}if(A===!0)return;const[S,v,O]=k(A);S===i&&n.pass(M());function b(){if(h.strictSchema===!1){$.logger.warn(H());return}throw new Error(H());function H(){return`unknown format "${p}" ignored in schema at path "${y}"`}}function k(H){const G=H instanceof RegExp?(0,e.regexpCode)(H):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(p)}`:void 0,Z=o.scopeValue("formats",{key:p,ref:H,code:G});return typeof H=="object"&&!(H instanceof RegExp)?[H.type||"string",H.validate,(0,e._)`${Z}.validate`]:["string",H,Z]}function M(){if(typeof A=="object"&&!(A instanceof RegExp)&&A.async){if(!g.$async)throw new Error("async format in sync schema");return(0,e._)`await ${O}(${s})`}return typeof v=="function"?(0,e._)`${O}(${s})`:(0,e._)`${O}.test(${s})`}}}};return li.default=r,li}var Bp;function da(){if(Bp)return pi;Bp=1,Object.defineProperty(pi,"__esModule",{value:!0});const t=[I$().default];return pi.default=t,pi}var Wt={},Vp;function kd(){return Vp||(Vp=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.contentVocabulary=Wt.metadataVocabulary=void 0,Wt.metadataVocabulary=["title","description","default","deprecated","examples"],Wt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Wt}var Hp;function q$(){if(Hp)return xn;Hp=1,Object.defineProperty(xn,"__esModule",{value:!0});const e=$d(),t=pa(),r=ua(),n=A$(),i=_$(),o=Td(),s=da(),c=kd(),p=[n.default,e.default,t.default,(0,r.default)(!0),s.default,c.metadataVocabulary,c.contentVocabulary,i.default,o.default];return xn.default=p,xn}var ui={},Cr={},Kp;function C$(){if(Kp)return Cr;Kp=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Cr.DiscrError=e={})),Cr}var Wp;function fa(){if(Wp)return ui;Wp=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=ke(),t=C$(),r=io(),n=xr(),i=Ne(),o={message:({params:{discrError:p,tagName:l}})=>p===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf or anyOf`,params:({params:{discrError:p,tag:l,tagName:d}})=>(0,e._)`{error: ${p}, tag: ${d}, tagValue: ${l}}`};function s(p,l){var d;if(!(!p.allOf||!Array.isArray(p.allOf))){for(const h of p.allOf)if(!((d=h?.properties)===null||d===void 0)&&d[l])return h.properties[l]}}const c={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(p){const{gen:l,data:d,schema:h,parentSchema:y,it:g}=p,$=y.oneOf?"oneOf":y.anyOf?"anyOf":void 0;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const x=h.propertyName;if(typeof x!="string")throw new Error("discriminator: requires propertyName");if(!$)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const P=y[$],A=l.let("valid",!1),S=l.const("tag",(0,e._)`${d}${(0,e.getProperty)(x)}`);l.if((0,e._)`typeof ${S} == "string"`,()=>v(),()=>p.error(!1,{discrError:t.DiscrError.Tag,tag:S,tagName:x})),p.ok(A);function v(){const k=b();l.if(!1);for(const M in k)l.elseIf((0,e._)`${S} === ${M}`),l.assign(A,O(k[M]));l.else(),p.error(!1,{discrError:t.DiscrError.Mapping,tag:S,tagName:x}),l.endIf()}function O(k){const M=l.name("valid"),H=p.subschema({keyword:$,schemaProp:k},M);return p.mergeEvaluated(H,e.Name),M}function b(){var k;const M={},H=Z(y);let G=!0;for(let ee=0;ee<P.length;ee++){let ie=P[ee];const Pe=ie?.$ref;if(Pe&&h.mapping){const{mapping:Le}=h,Se=Object.keys(Le).filter(qe=>Le[qe]===ie.$ref);if(Se.length){for(const qe of Se)de(qe,ee);continue}}if(Pe&&!(0,i.schemaHasRulesButRef)(ie,g.self.RULES)&&(ie=r.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,Pe),ie instanceof r.SchemaEnv&&(ie=ie.schema),ie===void 0))throw new n.default(g.opts.uriResolver,g.baseId,Pe);let Ie=(k=ie?.properties)===null||k===void 0?void 0:k[x];if(!Ie&&ie?.allOf&&(Ie=s(ie,x)),typeof Ie!="object")throw new Error(`discriminator: ${$} subschemas (or referenced schemas) must have "properties/${x}" or match mapping`);G=G&&(H||Z(ie)),te(Ie,ee)}if(!G)throw new Error(`discriminator: "${x}" must be required`);return M;function Z(ee){if(Array.isArray(ee.required)&&ee.required.includes(x))return!0;if(ee.allOf&&Array.isArray(ee.allOf))for(const ie of ee.allOf){const Pe=ie;if(Array.isArray(Pe.required)&&Pe.required.includes(x))return!0}return!1}function te(ee,ie){if(ee.const)de(ee.const,ie);else if(ee.enum)for(const Pe of ee.enum)de(Pe,ie);else throw new Error(`discriminator: "properties/${x}" must have "const" or "enum"`)}function de(ee,ie){if(typeof ee!="string"||ee in M)throw new Error(`discriminator: "${x}" values must be unique strings`);M[ee]=ie}}}};return ui.default=c,ui}var di={};const j$="https://json-schema.org/draft/2020-12/schema",M$="https://json-schema.org/draft/2020-12/schema",D$={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},N$="meta",L$="Core and Validation specifications meta-schema",U$=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],F$=["object","boolean"],z$="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",B$={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},V$={$schema:j$,$id:M$,$vocabulary:D$,$dynamicAnchor:N$,title:L$,allOf:U$,type:F$,$comment:z$,properties:B$},H$="https://json-schema.org/draft/2020-12/schema",K$="https://json-schema.org/draft/2020-12/meta/applicator",W$={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Q$="meta",G$="Applicator vocabulary meta-schema",Y$=["object","boolean"],J$={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},X$={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Z$={$schema:H$,$id:K$,$vocabulary:W$,$dynamicAnchor:Q$,title:G$,type:Y$,properties:J$,$defs:X$},eA="https://json-schema.org/draft/2020-12/schema",tA="https://json-schema.org/draft/2020-12/meta/unevaluated",rA={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},nA="meta",iA="Unevaluated applicator vocabulary meta-schema",oA=["object","boolean"],sA={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},aA={$schema:eA,$id:tA,$vocabulary:rA,$dynamicAnchor:nA,title:iA,type:oA,properties:sA},cA="https://json-schema.org/draft/2020-12/schema",pA="https://json-schema.org/draft/2020-12/meta/content",lA={"https://json-schema.org/draft/2020-12/vocab/content":!0},uA="meta",dA="Content vocabulary meta-schema",fA=["object","boolean"],mA={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},hA={$schema:cA,$id:pA,$vocabulary:lA,$dynamicAnchor:uA,title:dA,type:fA,properties:mA},yA="https://json-schema.org/draft/2020-12/schema",gA="https://json-schema.org/draft/2020-12/meta/core",bA={"https://json-schema.org/draft/2020-12/vocab/core":!0},vA="meta",wA="Core vocabulary meta-schema",xA=["object","boolean"],SA={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},PA={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},$A={$schema:yA,$id:gA,$vocabulary:bA,$dynamicAnchor:vA,title:wA,type:xA,properties:SA,$defs:PA},AA="https://json-schema.org/draft/2020-12/schema",EA="https://json-schema.org/draft/2020-12/meta/format-annotation",OA={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},RA="meta",_A="Format vocabulary meta-schema for annotation results",TA=["object","boolean"],kA={format:{type:"string"}},IA={$schema:AA,$id:EA,$vocabulary:OA,$dynamicAnchor:RA,title:_A,type:TA,properties:kA},qA="https://json-schema.org/draft/2020-12/schema",CA="https://json-schema.org/draft/2020-12/meta/meta-data",jA={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},MA="meta",DA="Meta-data vocabulary meta-schema",NA=["object","boolean"],LA={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},UA={$schema:qA,$id:CA,$vocabulary:jA,$dynamicAnchor:MA,title:DA,type:NA,properties:LA},FA="https://json-schema.org/draft/2020-12/schema",zA="https://json-schema.org/draft/2020-12/meta/validation",BA={"https://json-schema.org/draft/2020-12/vocab/validation":!0},VA="meta",HA="Validation vocabulary meta-schema",KA=["object","boolean"],WA={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},QA={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},GA={$schema:FA,$id:zA,$vocabulary:BA,$dynamicAnchor:VA,title:HA,type:KA,properties:WA,$defs:QA};var Qp;function YA(){if(Qp)return di;Qp=1,Object.defineProperty(di,"__esModule",{value:!0});const e=V$,t=Z$,r=aA,n=hA,i=$A,o=IA,s=UA,c=GA,p=["/properties"];function l(d){return[e,t,r,n,i,h(this,o),s,h(this,c)].forEach(y=>this.addMetaSchema(y,void 0,!1)),this;function h(y,g){return d?y.$dataMetaSchema(g,p):g}}return di.default=l,di}var Gp;function JA(){return Gp||(Gp=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const r=aa(),n=q$(),i=fa(),o=YA(),s="https://json-schema.org/draft/2020-12/schema";class c extends r.default{constructor(g={}){super({...g,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:g,meta:$}=this.opts;$&&(o.default.call(this,g),this.refs["http://json-schema.org/schema"]=s)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv2020=c,e.exports=t=c,e.exports.Ajv2020=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var p=wr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var l=ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=Xr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var h=xr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(yn,yn.exports)),yn.exports}var Id=JA();const qd=Y.getDefaultExportFromCjs(Id);let Lo;function XA(){return Lo||(Lo=new Id.Ajv2020({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0})),Lo}function Yp(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>XA().validate(i,r));return n===-1&&(n=0),t[n]}}function dr(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);if(t.type==="string"||t.type==="number"||t.type==="integer"||t.type==="boolean"){const{default:n,format:i,...o}=t;return o}if(t.type==="object"&&!t.properties&&!t.oneOf){if(t.additionalProperties===void 0||t.additionalProperties===!0)return{type:"object"};if(t.additionalProperties===!1)return{type:"object",properties:{}}}if(t.allOf)throw new Error(`Unexpected allOf in ${e}.`);if(t.anyOf)throw new Error(`Unexpected anyOf in ${e}.`);if(Y.isPlainObject(t.properties)||Y.isPlainObject(t.additionalProperties)||Y.isPlainObject(t.items)&&(Y.isPlainObject(t.items.properties)||Y.isPlainObject(t.items.additionalProperties)||t.items.oneOf))return ZA(e,t,r);if(t.oneOf)if(t.discriminator){const n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);const i={},o=t.oneOf.map((s,c)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${c} in oneOf.`);const p=s?.properties?.[n];if(!p||typeof p=="boolean")throw new Error(`Unexpected property '${p}' schema in ${e} at position ${c} in oneOf.`);const l=p.const,d=dr(l,s,r);return typeof d=="string"&&(i[l]=d),d});return(s,c)=>{if(Y.isPlainObject(s)){const p=s[n];if(typeof p=="string"){const l=i[p];if(l&&r[l])return l}}return Yp(t.oneOf,o)(s,c)}}else{const n=t.oneOf.map((i,o)=>dr(e+"_"+o,i,r));return Yp(t.oneOf,n)}return t}function ZA(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);const n=t.nodeTypeName??e,i={};for(const[p,l]of Object.entries(t.properties||{}))i[p]=dr(n+"."+p,l,r);let o;Y.isPlainObject(t.additionalProperties)&&(o=dr(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(o={});let s;Y.isPlainObject(t.items)&&(Y.isPlainObject(t.items.properties)||Y.isPlainObject(t.items.additionalProperties)||t.items.oneOf)&&(s=dr(e+"_items",t.items,r));let c=t.required;return t.oneOf&&t.oneOf.every(p=>!!p.required)&&(c=p=>{const l=t.oneOf.map(h=>[...t.required||[],...h.required]);let d=l.findIndex(h=>h.every(y=>p[y]!==void 0));return d===-1&&(d=0),l[d]}),r[n]={properties:i,additionalProperties:o,items:s,required:c,description:t.description,documentationLink:t.documentationLink},n}function Cd(e,t){const r={},n=dr(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const eE=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type","no-duplicated-tag-names","spec-ref-siblings"],tE=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-illogical-composition-keywords","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","no-mixed-number-range-constraints","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization","no-duplicated-tag-names","nullable-type-sibling","spec-no-invalid-tag-parents","spec-no-invalid-encoding-combinations","spec-discriminator-defaultMapping","spec-example-values","spec-querystring-parameters","spec-ref-siblings"],rE=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],nE=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],iE=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","spec-step-mutually-exclusive-fields","workflow-dependsOn","outputs-defined","parameters-unique","step-onSuccess-unique","step-onFailure-unique","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-both-scheme-and-scheme-name","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","x-security-scheme-name-reference"],oE=["info-contact","spec-ref-siblings"],sE=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],aE=["no-unused-types","type-description"],cE=["struct","no-unresolved-refs"],pE=[...eE,...tE,...rE,...nE,...iE,...oE,...sE,...aE,...cE],lE=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],uE=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","media-type-examples-override","remove-unused-components"],jd=[...uE,...lE],Md={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!j.isAbsoluteUrl(e)&&!Y.path.extname(e)?{type:"string"}:{...zr,directResolveAs:{name:"ConfigGovernance",...zr}},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends#extends"},plugins:{type:"array",items:{type:"string"}},rules:"Rules",oas2Rules:"Rules",oas3_0Rules:"Rules",oas3_1Rules:"Rules",oas3_2Rules:"Rules",async2Rules:"Rules",async3Rules:"Rules",arazzo1Rules:"Rules",arazzo1_1Rules:"Rules",overlay1Rules:"Rules",openrpc1Rules:"Rules",graphqlRules:"Rules",preprocessors:"Preprocessors",oas2Preprocessors:"Preprocessors",oas3_0Preprocessors:"Preprocessors",oas3_1Preprocessors:"Preprocessors",oas3_2Preprocessors:"Preprocessors",async2Preprocessors:"Preprocessors",async3Preprocessors:"Preprocessors",arazzo1Preprocessors:"Preprocessors",arazzo1_1Preprocessors:"Preprocessors",overlay1Preprocessors:"Preprocessors",openrpc1Preprocessors:"Preprocessors",decorators:"Decorators",oas2Decorators:"Decorators",oas3_0Decorators:"Decorators",oas3_1Decorators:"Decorators",oas3_2Decorators:"Decorators",async2Decorators:"Decorators",async3Decorators:"Decorators",arazzo1Decorators:"Decorators",arazzo1_1Decorators:"Decorators",overlay1Decorators:"Decorators",openrpc1Decorators:"Decorators"},zr={properties:Md},dE=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...zr.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),fE={properties:{},additionalProperties:"ConfigApisProperties",description:"The `apis` configuration section is used when a project contains multiple API descriptions to set up different rules and settings for individual APIs. It allows defining specific configurations for each API, which must be identified by a unique name.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/apis"},mE=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...ea(zr.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),hE={properties:{headers:{type:"array",items:{type:"string"}}}},yE={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:j.mapOf("ClientGeneratorOptions"),pagination:"ClientPagination"}},gE={properties:{},additionalProperties:{}},Dd={properties:{style:{enum:["cursor","offset","page","link","body-link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},nextLink:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},bE={properties:{...Dd.properties,exclude:{type:"array",items:{type:"string"}},operations:j.mapOf("ClientPaginationRule")}},vE={properties:{},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules",additionalProperties:(e,t)=>{if(t.startsWith("rule/"))return typeof e=="string"?{enum:["error","warn","off"]}:"ConfigurableRule";if(pE.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(sa(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},wE={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Built-in rules are the default linting rules included with Redocly CLI. They enforce widely accepted API design standards and best practices. Each built-in rule has a default severity of error, but you can change the severity or turn off any built-in rule in your configuration file.",documentationLink:"https://redocly.com/docs/cli/rules/built-in-rules"},xE={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Custom rules are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-rules"},SE={properties:{},description:"Decorators define transformations that can be applied to the API document during the bundle step.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/decorators",additionalProperties:(e,t)=>{if(jd.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(sa(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},PE={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},$E={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},AE={properties:{},description:"Preprocessors define transformations that can be applied to the API document before bundling.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/preprocessors",additionalProperties:(e,t)=>{if(jd.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(sa(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},EE={properties:{},additionalProperties:{},description:"Built-in preprocessors are the default preprocessors included with Redocly CLI. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},OE={properties:{},additionalProperties:{},description:"Custom preprocessors are defined by users via plugins. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"};function RE(e){return{properties:{type:{enum:[...new Set(["any",...e,"SpecExtension"])],description:"REQUIRED. Locates the API node type that the lint command evaluates.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"},property:t=>Array.isArray(t)?{type:"array",items:{type:"string"},description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"}:t===null?null:{type:"string",description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"},filterInParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that locates where assertions run. An example value given the subject Operation could be filterInParentKeys: [get, put] means that only GET and PUT operations are evaluated for the assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},filterOutParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that excludes where assertions run. An example value given the subject Operation could be filterOutParentKeys: [delete] means that all operations except DELETE operations are evaluated for the assertions."},matchParentKeys:{type:"string",description:"Applies a regex pattern to the subject's parent keys to determine where assertions run. An example value given the subject Operation could be matchParentKeys: /^p/ means that POST, PUT, and PATCH operations are evaluated for the assertions."}},required:["type"],description:"REQUIRED. Narrows the subject further by specifying its type, and optionally property, filterParentKeys, etc.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"}}function _E(e){return{...e[ct.ScorecardClassicLevel],properties:{...e[ct.ScorecardClassicLevel]?.properties,...Md}}}const TE={properties:{enum:{type:"array",items:{type:"string"},description:"Asserts a value is within a predefined list of values. Providing a single value in a list is an equality check.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#enum-example"},pattern:{type:"string",description:"Asserts a value matches a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#pattern-example"},notPattern:{type:"string",description:"Asserts a value doesn't match a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#notpattern-example"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"],description:"Asserts a casing style. Supported styles are: camelCase, kebab-case, snake_case, PascalCase, MACRO_CASE, COBOL-CASE, flatcase.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#casing-example"},mutuallyExclusive:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually exclusive.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyexclusive-example"},mutuallyRequired:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually required.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},required:{type:"array",items:{type:"string"},description:"Asserts all listed values are defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#required-example"},requireAny:{type:"array",items:{type:"string"},description:"Asserts that at least one of the listed properties (key names only) is defined. ",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#requireany-example"},contains:{type:"array",items:{type:"string"},description:"Asserts that all listed strings are included in the value array.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#contains-example"},disallowed:{type:"array",items:{type:"string"},description:"Asserts all listed values are not defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#disallowed-example"},defined:{type:"boolean",description:"Asserts a property is defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#defined-example"},nonEmpty:{type:"boolean",description:"Asserts a property is not empty.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#nonempty-example"},minLength:{type:"integer",description:"Asserts a minimum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#minlength-example"},maxLength:{type:"integer",description:"Asserts a maximum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#maxlength-example"},schema:"Schema",ref:e=>typeof e=="string"?{type:"string",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"}:{type:"boolean",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"},const:e=>{if(typeof e=="string")return{type:"string",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="number")return{type:"number",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="boolean")return{type:"boolean",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"}}},additionalProperties:(e,t)=>{if(/^\w+\/\w+$/.test(t))return{}},description:"A minimum of one assertion property is required to be defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#assertion-object"},kE={properties:{subject:"Subject",assertions:"Assertions"},required:["subject","assertions"],description:"The where object is part of a where list which must be defined in order from the root node. Each node can only be used in one where object for each assertion. Each subsequent node must be a descendant of the previous one. Rules that use multiple where objects must target each one on a different node. However, the same node could be used in the last where object and in the root subject object. Nodes may be skipped in between the subject node types of the where list and those defined in the root subject type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#where-object"},IE={properties:{subject:"Subject",assertions:"Assertions",where:j.listOf("Where"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},reference:{type:"string"},severity:{enum:["error","warn","off"]}},required:["subject","assertions"],description:"Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object"};function ma(e,t){const r=Oi.flatMap(i=>{const o=Jr(i),s=t?t.extendTypes(o,i):o;return Object.keys(s)}),{ctx:n}=Cd("rootRedoclyConfigSchema",e);return{...qE,ConfigRoot:dE(n),ConfigApisProperties:mE(n),Subject:RE([...r,...CP]),...n,[ct.ScorecardClassicLevel]:_E(n)}}const qE={ConfigurableRule:IE,ConfigApis:fE,ConfigGovernance:zr,ConfigHTTP:hE,Client:yE,ClientGeneratorOptions:gE,ClientPagination:bE,ClientPaginationRule:Dd,Where:kE,BuiltinRule:wE,CustomRule:xE,BuiltinDecorator:PE,CustomDecorator:$E,BuiltinPreprocessor:EE,CustomPreprocessor:OE,Schema:Fe.Schema,SchemaProperties:Fe.SchemaProperties,PatternProperties:Fe.PatternProperties,NamedSchemas:Fe.NamedSchemas,DependentRequired:Fe.DependentRequired,Discriminator:Fe.Discriminator,DiscriminatorMapping:Fe.DiscriminatorMapping,ExternalDocs:Fe.ExternalDocs,Xml:Fe.Xml,Rules:vE,Decorators:SE,Preprocessors:AE,Assertions:TE},{theme:wk,...CE}=to.properties,jE={...to,properties:CE},Nd=ma(jE),Zr=j.normalizeTypes(Nd),_s="redocly.yaml",Ld={extends:["recommended"]},Li=".redocly.lint-ignore.yaml",Ud=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
9
9
|
# See https://redocly.com/docs/cli/ for more information.
|
|
10
10
|
`,ha="configBundler",ya="pluginsCollector",Fd=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function zd(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function fi(e,t){const r=new Set(t);let n=0;for(const i of e)r.has(i)&&n++;return n}function ME(e,t){const r=t.direction||t,n=t.property;for(let i=1;i<e.length;i++){let o=e[i],s=e[i-1];if(n){const p=e[i][n],l=e[i-1][n];if(!p||!l)return!1;o=p,s=l}if(typeof o=="string"&&typeof s=="string"&&(o=o.toLowerCase(),s=s.toLowerCase()),!(r==="asc"?o>=s:o<=s))return!1}return!0}var mi={exports:{}},hi={},yi={},Jp;function DE(){if(Jp)return yi;Jp=1,Object.defineProperty(yi,"__esModule",{value:!0});const e=ke(),t=e.operators,r={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:t.LTE,fail:t.GT},{okStr:"<",ok:t.LT,fail:t.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:t.GTE,fail:t.LT},{okStr:">",ok:t.GT,fail:t.LTE}]}},n={message:s=>(0,e.str)`must be ${o(s).okStr} ${s.schemaCode}`,params:s=>(0,e._)`{comparison: ${o(s).okStr}, limit: ${s.schemaCode}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(s){const{data:c,schemaCode:p}=s;s.fail$data((0,e._)`${c} ${o(s).fail} ${p} || isNaN(${c})`)}};function o(s){var c;const p=s.keyword,l=!((c=s.parentSchema)===null||c===void 0)&&c[r[p].exclusive]?1:0;return r[p].ops[l]}return yi.default=i,yi}var gi={},Xp;function NE(){if(Xp)return gi;Xp=1,Object.defineProperty(gi,"__esModule",{value:!0});const e={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},t={keyword:Object.keys(e),type:"number",schemaType:"boolean",code({keyword:r,parentSchema:n}){const i=e[r];if(n[i]===void 0)throw new Error(`${r} can only be used with ${i}`)}};return gi.default=t,gi}var Zp;function LE(){if(Zp)return hi;Zp=1,Object.defineProperty(hi,"__esModule",{value:!0});const e=oo(),t=ua(),r=Td(),n=da(),i=pa(),o=DE(),s=NE(),c=["title","description","default"],p=["$schema","id","$defs",{keyword:"$comment"},"definitions",e.default],l=[...i.default.slice(1),o.default,s.default],d=[p,l,(0,t.default)(),n.default,c,r.default];return hi.default=d,hi}const UE="http://json-schema.org/draft-04/schema#",FE="http://json-schema.org/draft-04/schema#",zE="Core schema meta-schema",BE={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},VE="object",HE={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},KE={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},WE={id:UE,$schema:FE,description:zE,definitions:BE,type:VE,properties:HE,dependencies:KE,default:{}};var el;function QE(){return el||(el=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=aa(),n=LE(),i=fa(),o=WE,s=["/properties"],c="http://json-schema.org/draft-04/schema";class p extends r.default{constructor($={}){super({...$,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach($=>this.addVocabulary($)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const $=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema($,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=p,e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=wr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var d=ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=Xr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var y=xr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(mi,mi.exports)),mi.exports}var GE=QE();const YE=Y.getDefaultExportFromCjs(GE);var bi={exports:{}},Uo={},tl;function JE(){return tl||(tl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(te,de){return{validate:te,compare:de}}e.fullFormats={date:t(o,s),time:t(p(!0),l),"date-time":t(y(!0),g),"iso-time":t(p(),d),"iso-date-time":t(y(),$),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:A,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Z,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:v,int32:{type:"number",validate:k},int64:{type:"number",validate:M},float:{type:"number",validate:H},double:{type:"number",validate:H},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,g),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,$),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(te){return te%4===0&&(te%100!==0||te%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(te){const de=n.exec(te);if(!de)return!1;const ee=+de[1],ie=+de[2],Pe=+de[3];return ie>=1&&ie<=12&&Pe>=1&&Pe<=(ie===2&&r(ee)?29:i[ie])}function s(te,de){if(te&&de)return te>de?1:te<de?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function p(te){return function(ee){const ie=c.exec(ee);if(!ie)return!1;const Pe=+ie[1],Ie=+ie[2],Le=+ie[3],Se=ie[4],qe=ie[5]==="-"?-1:1,_=+(ie[6]||0),R=+(ie[7]||0);if(_>23||R>59||te&&!Se)return!1;if(Pe<=23&&Ie<=59&&Le<60)return!0;const C=Ie-R*qe,q=Pe-_*qe-(C<0?1:0);return(q===23||q===-1)&&(C===59||C===-1)&&Le<61}}function l(te,de){if(!(te&&de))return;const ee=new Date("2020-01-01T"+te).valueOf(),ie=new Date("2020-01-01T"+de).valueOf();if(ee&&ie)return ee-ie}function d(te,de){if(!(te&&de))return;const ee=c.exec(te),ie=c.exec(de);if(ee&&ie)return te=ee[1]+ee[2]+ee[3],de=ie[1]+ie[2]+ie[3],te>de?1:te<de?-1:0}const h=/t|\s/i;function y(te){const de=p(te);return function(ie){const Pe=ie.split(h);return Pe.length===2&&o(Pe[0])&&de(Pe[1])}}function g(te,de){if(!(te&&de))return;const ee=new Date(te).valueOf(),ie=new Date(de).valueOf();if(ee&&ie)return ee-ie}function $(te,de){if(!(te&&de))return;const[ee,ie]=te.split(h),[Pe,Ie]=de.split(h),Le=s(ee,Pe);if(Le!==void 0)return Le||l(ie,Ie)}const x=/\/|:/,P=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function A(te){return x.test(te)&&P.test(te)}const S=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function v(te){return S.lastIndex=0,S.test(te)}const O=-2147483648,b=2**31-1;function k(te){return Number.isInteger(te)&&te<=b&&te>=O}function M(te){return Number.isInteger(te)}function H(){return!0}const G=/[^\\]\\Z/;function Z(te){if(G.test(te))return!1;try{return new RegExp(te),!0}catch{return!1}}})(Uo)),Uo}var Fo={},vi={exports:{}},wi={},rl;function XE(){if(rl)return wi;rl=1,Object.defineProperty(wi,"__esModule",{value:!0});const e=$d(),t=pa(),r=ua(),n=da(),i=kd(),o=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return wi.default=o,wi}const ZE="http://json-schema.org/draft-07/schema#",eO="http://json-schema.org/draft-07/schema#",tO="Core schema meta-schema",rO={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},nO=["object","boolean"],iO={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},oO={$schema:ZE,$id:eO,title:tO,definitions:rO,type:nO,properties:iO,default:!0};var nl;function sO(){return nl||(nl=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=aa(),n=XE(),i=fa(),o=oO,s=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach($=>this.addVocabulary($)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const $=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema($,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=p,e.exports=t=p,e.exports.Ajv=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=wr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var d=ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=Xr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var y=xr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(vi,vi.exports)),vi.exports}var il;function aO(){return il||(il=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=sO(),r=ke(),n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},o={message:({keyword:c,schemaCode:p})=>(0,r.str)`should be ${i[c].okStr} ${p}`,params:({keyword:c,schemaCode:p})=>(0,r._)`{comparison: ${i[c].okStr}, limit: ${p}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(c){const{gen:p,data:l,schemaCode:d,keyword:h,it:y}=c,{opts:g,self:$}=y;if(!g.validateFormats)return;const x=new t.KeywordCxt(y,$.RULES.all.format.definition,"format");x.$data?P():A();function P(){const v=p.scopeValue("formats",{ref:$.formats,code:g.code.formats}),O=p.const("fmt",(0,r._)`${v}[${x.schemaCode}]`);c.fail$data((0,r.or)((0,r._)`typeof ${O} != "object"`,(0,r._)`${O} instanceof RegExp`,(0,r._)`typeof ${O}.compare != "function"`,S(O)))}function A(){const v=x.schema,O=$.formats[v];if(!O||O===!0)return;if(typeof O!="object"||O instanceof RegExp||typeof O.compare!="function")throw new Error(`"${h}": format "${v}" does not define "compare" function`);const b=p.scopeValue("formats",{key:v,ref:O,code:g.code.formats?(0,r._)`${g.code.formats}${(0,r.getProperty)(v)}`:void 0});c.fail$data(S(b))}function S(v){return(0,r._)`${v}.compare(${l}, ${d}) ${i[h].fail} 0`}},dependencies:["format"]};const s=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=s})(Fo)),Fo}var ol;function cO(){return ol||(ol=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=JE(),n=aO(),i=ke(),o=new i.Name("fullFormats"),s=new i.Name("fastFormats"),c=(l,d={keywords:!0})=>{if(Array.isArray(d))return p(l,d,r.fullFormats,o),l;const[h,y]=d.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,o],g=d.formats||r.formatNames;return p(l,g,h,y),d.keywords&&(0,n.default)(l),l};c.get=(l,d="full")=>{const y=(d==="fast"?r.fastFormats:r.fullFormats)[l];if(!y)throw new Error(`Unknown format "${l}"`);return y};function p(l,d,h,y){var g,$;(g=($=l.opts.code).formats)!==null&&g!==void 0||($.formats=(0,i._)`require("ajv-formats/dist/formats").${y}`);for(const x of d)l.addFormat(x,h[x])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(bi,bi.exports)),bi.exports}var pO=cO();const lO=Y.getDefaultExportFromCjs(pO),uO=["title","description","example","examples","default","deprecated"];function sl(e){return e==="draft4"?"id":"$id"}function dO(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class so{instances={};sharedValidators=new Map;validate(t,r,n){const{schemaLoc:i,instancePath:o,resolve:s,allowAdditionalProperties:c,ajvContext:p,specVersion:l}=n,d=dO(l),h=this.getValidator(r,i,s,c,d);if(!h)return{valid:!0,errors:[]};const y={instancePath:o,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!h.call(p??{},t,y),errors:(h.errors||[]).map($)};function $(x){let P=x.message;const A=x.keyword==="enum"?x.params.allowedValues:void 0;A&&(P+=` ${A.map(O=>`"${O}"`).join(", ")}`),x.keyword==="type"&&(P=`type ${P}`);const S=x.instancePath.substring(o.length+1),v=S.substring(S.lastIndexOf("/")+1);if(v&&(P=`\`${v}\` property ${P}`),x.keyword==="additionalProperties"||x.keyword==="unevaluatedProperties"){const O=x.params.additionalProperty||x.params.unevaluatedProperty;P=`${P} \`${O}\``,x.instancePath+="/"+j.escapePointerFragment(O)}return{...x,message:P,suggest:A}}}getAjv(t,r){if(!this.instances[r]){const n=sl(r),i={schemaId:n,meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,passContext:!0,logger:!1,loadSchemaSync(o,s,c){const p=decodeURI(o.split("#")[0]),l=t({$ref:s},p);return!l||!l.location?!1:{[n]:encodeURI(l.location.source.absoluteRef)+"#"+c,...l.node}}};this.instances[r]=r==="2020"?new qd(i):new YE(i),lO(this.instances[r])}return this.instances[r]}getValidator(t,r,n,i,o){const s=this.getAjv(n,o);if(j.isRef(t)&&!j.isRefWithSiblings(t)){const d=n(t,r.source.absoluteRef);d.location&&Y.isPlainObject(d.node)&&(t=d.node,r=d.location)}const c=Y.isPlainObject(t)?fO(t,o):void 0;if(c){const d=this.sharedValidators.get(c);if(d)return d;s.setDefaultUnevaluatedProperties(i);const h=s.compile(t);return this.sharedValidators.set(c,h),h}const p=encodeURI(r.absolutePointer),l=sl(o);return s.getSchema(p)||(s.setDefaultUnevaluatedProperties(i),s.addSchema({[l]:p,...t},p)),s.getSchema(p)}}function fO(e,t){const r={...e};for(const i of uO)delete r[i];const n=JSON.stringify(r);if(!n.includes('"$ref"'))return`${t}:${n}`}const Bd=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),Vd=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),al=new WeakMap,mO=new j.Location(new j.Source("assertion",""),"#/schema"),Zt={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||Y.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Lr(t);return i.map(s=>!o?.test(s)&&{message:`${JSON.stringify(s)} should match a regex ${t}`,location:it(e)?r:Y.isPlainObject(n)?r.child(s).key():r.key()}).filter(j.isTruthy)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||Y.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Lr(t);return i.map(s=>o?.test(s)&&{message:`${JSON.stringify(s)} should not match a regex ${t}`,location:it(e)?r:Y.isPlainObject(n)?r.child(s).key():r.key()}).filter(j.isTruthy)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||Y.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>!t.includes(i)&&{message:`${JSON.stringify(i)} should be one of the predefined values`,location:it(e)?r:r.child(i).key()}).filter(j.isTruthy),defined:(e,t=!0,{baseLocation:r})=>{const n=typeof e<"u";return(t?n:!n)?[]:[{message:t?"Should be defined":"Should be not defined",location:r}]},required:(e,t,{baseLocation:r})=>t.map(n=>!e.includes(n)&&{message:`${n} is required`,location:r.key()}).filter(j.isTruthy),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||Y.isPlainObject(e))return[];const n=Array.isArray(e)?e:[e];return t.map(i=>!n.includes(i)&&{message:`${i} should be in the list`,location:r}).filter(j.isTruthy)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||Y.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>t.includes(i)&&{message:`${JSON.stringify(i)} is disallowed`,location:it(e)?r:r.child(i).key()}).filter(j.isTruthy),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`${JSON.stringify(n)} should be equal ${JSON.stringify(t)}`,location:it(e)?r:r.child(n).key()}).filter(j.isTruthy):e!==t?[{message:`${JSON.stringify(e)} should be equal ${JSON.stringify(t)}`,location:r}]:[],nonEmpty:(e,t=!0,{baseLocation:r})=>{const n=typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0;return(t?!n:n)?[]:[{message:t?"Should not be empty":"Should be empty",location:r}]},minLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length>=t?[]:[{message:`Should have at least ${t} characters`,location:r}],maxLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length<=t?[]:[{message:`Should have at most ${t} characters`,location:r}],casing:(e,t,{baseLocation:r})=>{if(typeof e>"u"||Y.isPlainObject(e))return[];const n=Array.isArray(e)?e:[e],i={camelCase:/^[a-z][a-zA-Z0-9]*$/g,"kebab-case":/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/g,snake_case:/^([a-z][a-z0-9]*)(_[a-z0-9]+)*$/g,PascalCase:/^[A-Z][a-zA-Z0-9]+$/g,MACRO_CASE:/^([A-Z][A-Z0-9]*)(_[A-Z0-9]+)*$/g,"COBOL-CASE":/^([A-Z][A-Z0-9]*)(-[A-Z0-9]+)*$/g,flatcase:/^[a-z][a-z0-9]+$/g};return n.map(o=>!o.match(i[t])&&{message:`${JSON.stringify(o)} should use ${t}`,location:it(e)?r:r.child(o).key()}).filter(j.isTruthy)},sortOrder:(e,t,{baseLocation:r})=>{const n=t.direction||t,i=t.property;return Array.isArray(e)&&e.length>0&&Y.isPlainObject(e[0])&&!i?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||ME(e,t)?[]:[{message:`Should be sorted in ${n==="asc"?"an ascending":"a descending"} order${i?` by property ${i}`:""}`,location:r}]},mutuallyExclusive:(e,t,{baseLocation:r})=>fi(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(fi(e,t)>0?fi(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>fi(e,t)>=1?[]:[{message:`Should have any of ${t.join(", ")}`,location:r.key()}],ref:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof n>"u")return[];const i=n.hasOwnProperty("$ref");if(typeof t=="boolean")return(t?i:!i)?[]:[{message:t?"should use $ref":"should not use $ref",location:i?r:r.key()}];const o=Lr(t);return i&&o?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:i?r:r.key()}]},schema:(e,t,{baseLocation:r,rawValue:n,resolve:i})=>{if(typeof e>"u")return[];if(typeof t=="boolean")return t?[]:[{message:"boolean schema is false",location:r}];let o=al.get(t);o||(o=new so,al.set(t,o));const s=j.isRef(n)&&i(n)?.location||r;let c;try{({errors:c}=o.validate(e,t,{schemaLoc:mO,instancePath:"",resolve:i,allowAdditionalProperties:!1,specVersion:"oas3_1"}))}catch(p){throw new Error(`the 'schema' assertion has an invalid schema: ${p.message}`)}return c.map(p=>{const l=p.instancePath?j.joinPointer(s.pointer,p.instancePath.slice(1)):s.pointer,d=new j.Location(s.source,l),h=p.keyword==="additionalProperties"||p.keyword==="unevaluatedProperties";return{message:p.message,location:h?d.key():d}})}};function hO(e){return(t,r,n)=>e.call(null,t,r,n)}function yO(e,t){if(!e.rules)return{};const r={},n=[];for(const[i,o]of Object.entries(e.rules))if(i.startsWith("rule/")&&Y.isPlainObject(o)){const s=o;if(t){cl(t,s);for(const c of s.where||[])cl(t,c)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function cl(e,t){for(const r of Object.keys(t.assertions||{})){const[n,i]=r.split("/");if(!n||!i)continue;const o=e.find(s=>s.id===n);if(!o)throw Error(`Plugin ${n} isn't found.`);if(!o.assertions||!o.assertions[i])throw Error(`Plugin ${n} doesn't export assertions function with name ${i}.`);Zt[r]=hO(o.assertions[i])}}class en{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;recheck;_usedRules=new Set;_usedVersions=new Set;constructor(t,r={}){this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=zd(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const n=i=>yO({rules:i},this.plugins);this.rules={oas2:n({...t.rules,...t.oas2Rules}),oas3_0:n({...t.rules,...t.oas3_0Rules}),oas3_1:n({...t.rules,...t.oas3_1Rules}),oas3_2:n({...t.rules,...t.oas3_2Rules}),async2:n({...t.rules,...t.async2Rules}),async3:n({...t.rules,...t.async3Rules}),arazzo1:n({...t.rules,...t.arazzo1Rules}),arazzo1_1:n({...t.rules,...t.arazzo1_1Rules}),overlay1:n({...t.rules,...t.overlay1Rules}),openrpc1:n({...t.rules,...t.openrpc1Rules}),graphql:n({...ea(t.rules??{},["no-unresolved-refs"]),...t.graphqlRules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},arazzo1_1:{...t.preprocessors,...t.arazzo1_1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors},openrpc1:{...t.preprocessors,...t.openrpc1Preprocessors},graphql:{}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},arazzo1_1:{...t.decorators,...t.arazzo1_1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators},openrpc1:{...t.decorators,...t.openrpc1Decorators},graphql:{}},this.recheck=t.recheck??{rules:{}},this.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!Y.isPlainObject(this.resolvedConfig?.apis?.[t]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[t];return new en({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}clearIgnoreForRef(t){const r=this.configPath?Y.pathBrowserifyExports.dirname(this.configPath):process.cwd(),n=j.isAbsoluteUrl(t)?t:Y.pathBrowserifyExports.resolve(r,t);delete this.ignore[n]}saveIgnore(){const t=this.configPath?Y.pathBrowserifyExports.dirname(this.configPath):process.cwd(),r=Y.pathBrowserifyExports.join(t,Li),n={};for(const i of Object.keys(this.ignore)){const o=j.isAbsoluteUrl(i)?i:Ks(Y.pathBrowserifyExports.relative(t,i)),s=n[o]=this.ignore[i];for(const c of Object.keys(s))s[c]=Array.from(s[c])}(void 0)(r,Ud+j.stringifyYaml(n))}addIgnore(t){const r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;const i=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(i[t.ruleId]=i[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){const r=t.location[0];if(r.pointer===void 0)return t;const i=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],o=i&&i.has(r.pointer);return o?{...t,ignored:o}:t}extendTypes(t,r){let n=t;for(const i of this.plugins)if(i.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!i.typeExtension.oas3)continue;n=i.typeExtension.oas3(n,r);break;case"oas2":if(!i.typeExtension.oas2)continue;n=i.typeExtension.oas2(n,r);break;case"async2":if(!i.typeExtension.async2)continue;n=i.typeExtension.async2(n,r);break;case"async3":if(!i.typeExtension.async3)continue;n=i.typeExtension.async3(n,r);break;case"arazzo1":case"arazzo1_1":if(!i.typeExtension.arazzo1)continue;n=i.typeExtension.arazzo1(n,r);break;case"overlay1":if(!i.typeExtension.overlay1)continue;n=i.typeExtension.overlay1(n,r);break;case"openrpc1":if(!i.typeExtension.openrpc1)continue;n=i.typeExtension.openrpc1(n,r);break;case"graphql":break;default:throw new Error("Not implemented")}return n}getRuleSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);const n=this.rules[r][t]||"off";return typeof n=="string"?{severity:n}:{severity:"error",...n}}getPreprocessorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);const n=this.preprocessors[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getDecoratorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);const n=this.decorators[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){const t=[],r=[],n=[];for(const i of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[i]).filter(o=>!this._usedRules.has(o))),r.push(...Object.keys(this.decorators[i]).filter(o=>!this._usedRules.has(o))),n.push(...Object.keys(this.preprocessors[i]).filter(o=>!this._usedRules.has(o)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.oas3&&r.push(n.preprocessors.oas3)),this.plugins.forEach(n=>n.rules?.oas3&&r.push(n.rules.oas3)),this.plugins.forEach(n=>n.decorators?.oas3&&r.push(n.decorators.oas3)),r}case"oas2":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.oas2&&r.push(n.preprocessors.oas2)),this.plugins.forEach(n=>n.rules?.oas2&&r.push(n.rules.oas2)),this.plugins.forEach(n=>n.decorators?.oas2&&r.push(n.decorators.oas2)),r}case"async2":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.async2&&r.push(n.preprocessors.async2)),this.plugins.forEach(n=>n.rules?.async2&&r.push(n.rules.async2)),this.plugins.forEach(n=>n.decorators?.async2&&r.push(n.decorators.async2)),r}case"async3":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.async3&&r.push(n.preprocessors.async3)),this.plugins.forEach(n=>n.rules?.async3&&r.push(n.rules.async3)),this.plugins.forEach(n=>n.decorators?.async3&&r.push(n.decorators.async3)),r}case"arazzo1":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1&&r.push(n.preprocessors.arazzo1)),this.plugins.forEach(n=>n.rules?.arazzo1&&r.push(n.rules.arazzo1)),this.plugins.forEach(n=>n.decorators?.arazzo1&&r.push(n.decorators.arazzo1)),r}case"arazzo1_1":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1_1&&r.push(n.preprocessors.arazzo1_1)),this.plugins.forEach(n=>n.rules?.arazzo1_1&&r.push(n.rules.arazzo1_1)),this.plugins.forEach(n=>n.decorators?.arazzo1_1&&r.push(n.decorators.arazzo1_1)),r}case"overlay1":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.overlay1&&r.push(n.preprocessors.overlay1)),this.plugins.forEach(n=>n.rules?.overlay1&&r.push(n.rules.overlay1)),this.plugins.forEach(n=>n.decorators?.overlay1&&r.push(n.decorators.overlay1)),r}case"openrpc1":{const r=[];return this.plugins.forEach(n=>n.preprocessors?.openrpc1&&r.push(n.preprocessors.openrpc1)),this.plugins.forEach(n=>n.rules?.openrpc1&&r.push(n.rules.openrpc1)),this.plugins.forEach(n=>n.decorators?.openrpc1&&r.push(n.decorators.openrpc1)),r}case"graphql":{const r=[];return this.plugins.forEach(n=>n.rules?.graphql&&r.push(n.rules.graphql)),r}}}skipRules(t){for(const r of t||[])for(const n of Oi)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(const i of this.rules[n].assertions)i.assertionId===r&&(i.severity="off")}skipPreprocessors(t){for(const r of t||[])for(const n of Oi)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(const r of t||[])for(const n of Oi)this.decorators[n][r]&&(this.decorators[n][r]="off")}}function mt(e){return e!==void 0}function Br(e,t,r,n){return e.flatMap(i=>Object.keys(i).map(o=>{const s=i[o],c=r==="rules"?t.getRuleSettings(o,n):r==="preprocessors"?t.getPreprocessorSettings(o,n):t.getDecoratorSettings(o,n);if(c.severity==="off")return;const p=c.severity,l=c.message,d=s(c);return Array.isArray(d)?d.map(h=>({severity:p,ruleId:o,message:l,visitor:h})):{severity:p,message:l,ruleId:o,visitor:d}})).flatMap(i=>i).filter(mt)}const gO={},bO={},vO={};function Hd(e){return Array.isArray(e)&&e.length===0}function Kd(e,t,r){const{parent:n,key:i}=t;let o=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(j.isRef(e[s])){const c=t.resolve(e[s]);r(c.node)&&(e.splice(s,1),o=!0,s--)}r(e[s])&&(e.splice(s,1),o=!0,s--)}else if(Y.isPlainObject(e))for(const s of Object.keys(e)){if(j.isRef(e[s])){const c=t.resolve(e[s]);r(c.node)&&(delete e[s],o=!0)}r(e[s])&&(delete e[s],o=!0)}o&&(hr(e)||Hd(e))&&delete n[i]}function fr(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=pl(t),e=pl(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function pl(e){return Array.isArray(e)?e:[e]}const wO="any",Wd=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||wO;if(n!==void 0){if(n==="Operation"){const s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,p){for(const d of s){const h=j.isRef(c[d])?p.resolve(c[d]).node:c[d];if(Y.isPlainObject(h)){const y=h[e];fr(y,t,i)||delete c[d]}}s.some(d=>c[d])||c.additionalOperations||delete p.parent[p.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,c){const p=s[e];fr(p,t,i)||delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>s?.[e]&&!fr(s?.[e],t,i);return{any:{enter:(s,c)=>{Kd(s,c,o)}}}},xO="any",Qd=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||xO;if(n!==void 0){if(n==="Operation"){const s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,p){for(const d of s){const h=j.isRef(c[d])?p.resolve(c[d]).node:c[d];if(Y.isPlainObject(h)){const y=h[e];fr(y,t,i)&&delete c[d]}}s.some(d=>c[d])||c.additionalOperations||delete p.parent[p.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,c){const p=s[e];fr(p,t,i)&&delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>fr(s?.[e],t,i);return{any:{enter:(s,c)=>{Kd(s,c,o)}}}};function ll(e){const t=(void 0)(e,"utf-8");return j.parseYaml(t)}function Vr(e,t){return j.isAbsoluteUrl(e)||t===void 0?e:Y.pathBrowserifyExports.resolve(Y.pathBrowserifyExports.dirname(t),e)}function ga(e){return(void 0)(e,"utf-8")}const Gd=({filePath:e})=>({Info:{leave(t,{report:r,location:n,config:i}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=ga(Vr(e,i?.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
|
|
11
11
|
${o.message}`,location:n.child("description")})}}}}),Yd=e=>({Info:{leave(t){if(!Y.isPlainObject(e))throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=e;Object.assign(t,n)}}}),Jd=({operationIds:e})=>({Operation:{leave(t,{report:r,location:n,config:i}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');const o=t.operationId;if(e[o])try{const s=e[o];t.description=ga(Vr(s,i?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${o}".
|
|
@@ -30,7 +30,7 @@ ${JSON.stringify(n,null,2)}`);Ve(r.rules,n.rules),Ve(r.oas2Rules,n.oas2Rules),Ke
|
|
|
30
30
|
`;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return m.slice(1)}},Ia=function(m,E){return E},hh=function(m,E){return E.length===0?m:{type:"LogicalOrExpr",left:m,right:E.length===1?E[0]:E.slice(1).reduce((U,Q)=>({type:"LogicalOrExpr",left:U,right:Q}),E[0])}},qa=function(m,E){return E},yh=function(m,E){return[m,...E]},gh=function(m){return m.length===1?m[0]:{type:"LogicalAndExpr",left:m[0],right:m.length===2?m[1]:m.slice(2).reduce((E,U)=>({type:"LogicalOrExpr",left:E,right:U}),m[1])}},bh=function(){return String.fromCharCode(Number.parseInt(Lh(),16))},vh=function(m,E){return String.fromCharCode(Number.parseInt(m,16))+String.fromCharCode(Number.parseInt(E,16))},wh=function(m){return m},xh=function(m,E){return m!==null?{type:"LogicalNotExpr",expression:E}:E},Sh=function(m,E,U){return{type:"ComparisonExpr",left:m,op:E,right:U}},Ph=function(m,E){return m!==null?{type:"LogicalNotExpr",expression:{type:"TestExpr",expression:E}}:{type:"TestExpr",expression:E}},$h=function(m){return{type:"FilterQuery",value:m}},Ca=function(m,E,U){return U},Ah=function(m,E,U){return[E,...U]},Eh=function(m,E){return{type:"FunctionExpr",name:m,arguments:E}},Oh=function(m){return{type:"Literal",value:m}},Rh=function(m){return{type:"RelQuery",segments:m}},_h=function(m){return Number(m)},Th=function(){return!0},kh=function(){return!1},Ih=function(){return null},qh=function(m){return{type:"RelSingularQuery",segments:m}},Ch=function(m){return{type:"AbsSingularQuery",segments:m}},ja=function(m){return{type:"SingularQuerySegment",node:m}},jh=function(m){return m},Mh=function(m){return m},Dh=function(m){return m},Nh=function(m){return{type:"IndexSelector",selector:m}},I=t.peg$currPos|0,Oe=I,nr=[{line:1,column:1}],ht=I,ln=t.peg$maxFailExpected||[],ve=t.peg$silentFails|0,Or;if(t.startRule){if(!(t.startRule in i))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');o=i[t.startRule]}function Lh(){return e.substring(Oe,I)}function He(m,E){return{type:"literal",text:m,ignoreCase:E}}function et(m,E,U){return{type:"class",parts:m,inverted:E,ignoreCase:U}}function Uh(){return{type:"end"}}function Ma(m){var E=nr[m],U;if(E)return E;if(m>=nr.length)U=nr.length-1;else for(U=m;!nr[--U];);for(E=nr[U],E={line:E.line,column:E.column};U<m;)e.charCodeAt(U)===10?(E.line++,E.column=1):E.column++,U++;return nr[m]=E,E}function Da(m,E,U){var Q=Ma(m),ne=Ma(E),ue={source:n,start:{offset:m,line:Q.line,column:Q.column},end:{offset:E,line:ne.line,column:ne.column}};return ue}function be(m){I<ht||(I>ht&&(ht=I,ln=[]),ln.push(m))}function Fh(m,E,U){return new gr(gr.buildMessage(m,E),m,E,U)}function wo(){var m,E,U;return m=I,E=Na(),E!==r?(U=La(),Oe=m,m=Qm(U)):(I=m,m=r),m}function Na(){var m;return e.charCodeAt(I)===36?(m=s,I++):(m=r,ve===0&&be(pe)),m}function La(){var m,E,U;for(m=[],E=I,Ue(),U=Ua(),U!==r?(Oe=E,E=Ta(U)):(I=E,E=r);E!==r;)m.push(E),E=I,Ue(),U=Ua(),U!==r?(Oe=E,E=Ta(U)):(I=E,E=r);return m}function Ue(){var m,E;for(m=[],E=Fa();E!==r;)m.push(E),E=Fa();return m}function Ua(){var m;return m=zh(),m===r&&(m=Bh()),m}function Fa(){var m;return m=e.charAt(I),R.test(m)?I++:(m=r,ve===0&&be(ae)),m}function zh(){var m,E,U,Q;return m=I,E=za(),E===r&&(E=I,e.charCodeAt(I)===46?(U=c,I++):(U=r,ve===0&&be(ce)),U!==r?(Q=xo(),Q===r&&(Q=So()),Q!==r?(Oe=E,E=Gm(Q)):(I=E,E=r)):(I=E,E=r)),E!==r&&(Oe=m,E=Ym(E)),m=E,m}function Bh(){var m,E,U;return m=I,e.substr(I,2)===p?(E=p,I+=2):(E=r,ve===0&&be(he)),E!==r?(U=za(),U===r&&(U=xo(),U===r&&(U=So())),U!==r?(Oe=m,m=Jm(U)):(I=m,m=r)):(I=m,m=r),m}function za(){var m,E,U,Q,ne,ue,Te,Je;if(m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r){if(U=I,Ue(),Q=Po(),Q!==r){for(ne=[],ue=I,Ue(),e.charCodeAt(I)===44?(Te=d,I++):(Te=r,ve===0&&be(ge)),Te!==r?(Ue(),Je=Po(),Je!==r?(Oe=ue,ue=ka(Q,Je)):(I=ue,ue=r)):(I=ue,ue=r);ue!==r;)ne.push(ue),ue=I,Ue(),e.charCodeAt(I)===44?(Te=d,I++):(Te=r,ve===0&&be(ge)),Te!==r?(Ue(),Je=Po(),Je!==r?(Oe=ue,ue=ka(Q,Je)):(I=ue,ue=r)):(I=ue,ue=r);Oe=U,U=Xm(Q,ne)}else I=U,U=r;U!==r?(Ue(),e.charCodeAt(I)===93?(Q=h,I++):(Q=r,ve===0&&be(Ee)),Q!==r?(Oe=m,m=Zm(U)):(I=m,m=r)):(I=m,m=r)}else I=m,m=r;return m}function xo(){var m,E;return m=I,e.charCodeAt(I)===42?(E=y,I++):(E=r,ve===0&&be(Qe)),E!==r&&(Oe=m,E=eh()),m=E,m}function So(){var m,E,U,Q,ne,ue;if(m=I,E=I,U=I,Q=Ba(),Q!==r){for(ne=[],ue=Va();ue!==r;)ne.push(ue),ue=Va();Q=[Q,ne],U=Q}else I=U,U=r;return U!==r?E=e.substring(E,I):E=U,E!==r&&(Oe=m,E=th(E)),m=E,m}function Po(){var m;return m=Ha(),m===r&&(m=xo(),m===r&&(m=Vh(),m===r&&(m=Ka(),m===r&&(m=Hh())))),m}function Ba(){var m,E,U;return m=e.charAt(I),C.test(m)?I++:(m=r,ve===0&&be(a)),m===r&&(m=I,E=e.charAt(I),q.test(E)?I++:(E=r,ve===0&&be(u)),E!==r?(U=e.charAt(I),w.test(U)?I++:(U=r,ve===0&&be(f)),U!==r?(E=[E,U],m=E):(I=m,m=r)):(I=m,m=r)),m}function Va(){var m;return m=Ba(),m===r&&(m=_t()),m}function Ha(){var m,E;return m=I,E=Wa(),E!==r&&(Oe=m,E=rh(E)),m=E,m}function Vh(){var m,E,U,Q,ne,ue,Te,Je,ut;return m=I,E=I,U=I,Q=I,ne=Rr(),ne!==r?(ue=Ue(),ne=[ne,ue],Q=ne):(I=Q,Q=r),Q===r&&(Q=null),U=e.substring(U,I),e.charCodeAt(I)===58?(Q=g,I++):(Q=r,ve===0&&be(T)),Q!==r?(ne=Ue(),ue=I,Te=I,Je=Rr(),Je!==r?(ut=Ue(),Je=[Je,ut],Te=Je):(I=Te,Te=r),Te===r&&(Te=null),ue=e.substring(ue,I),Te=I,e.charCodeAt(I)===58?(Je=g,I++):(Je=r,ve===0&&be(T)),Je!==r?(ut=I,Ue(),Rr(),ut=e.substring(ut,I),Oe=Te,Te=nh(U,ue,ut)):(I=Te,Te=r),Te===r&&(Te=null),Oe=E,E=ih(U,ue,Te)):(I=E,E=r),E!==r&&(Oe=m,E=oh(E)),m=E,m}function Ka(){var m,E,U;return m=I,E=I,U=Rr(),U!==r?E=e.substring(E,I):E=U,E!==r&&(Oe=m,E=sh(E)),m=E,m}function Hh(){var m,E,U;return m=I,e.charCodeAt(I)===63?(E=$,I++):(E=r,ve===0&&be(N)),E!==r?(Ue(),U=$o(),U!==r?(Oe=m,m=ah(U)):(I=m,m=r)):(I=m,m=r),m}function _t(){var m;return m=e.charAt(I),D.test(m)?I++:(m=r,ve===0&&be(L)),m}function Wa(){var m,E,U,Q,ne;if(m=I,E=I,e.charCodeAt(I)===34?(U=x,I++):(U=r,ve===0&&be(B)),U!==r){for(Q=[],ne=Qa();ne!==r;)Q.push(ne),ne=Qa();e.charCodeAt(I)===34?(ne=x,I++):(ne=r,ve===0&&be(B)),ne!==r?(Oe=E,E=ch(Q)):(I=E,E=r)}else I=E,E=r;if(E===r)if(E=I,e.charCodeAt(I)===39?(U=P,I++):(U=r,ve===0&&be(se)),U!==r){for(Q=[],ne=Ga();ne!==r;)Q.push(ne),ne=Ga();e.charCodeAt(I)===39?(ne=P,I++):(ne=r,ve===0&&be(se)),ne!==r?(Oe=E,E=ph(Q)):(I=E,E=r)}else I=E,E=r;return E!==r&&(Oe=m,E=lh(E)),m=E,m}function Rr(){var m,E,U,Q,ne;if(e.charCodeAt(I)===48?(m=A,I++):(m=r,ve===0&&be(le)),m===r)if(m=I,e.charCodeAt(I)===45?(E=S,I++):(E=r,ve===0&&be(Re)),E===r&&(E=null),U=Kh(),U!==r){for(Q=[],ne=_t();ne!==r;)Q.push(ne),ne=_t();E=[E,U,Q],m=E}else I=m,m=r;return m}function Qa(){var m,E,U;return m=I,E=Ya(),E!==r?m=e.substring(m,I):m=E,m===r&&(e.charCodeAt(I)===39?(m=P,I++):(m=r,ve===0&&be(se)),m===r&&(m=I,E=un(),E!==r?(e.charCodeAt(I)===34?(U=x,I++):(U=r,ve===0&&be(B)),U!==r?(Oe=m,m=uh()):(I=m,m=r)):(I=m,m=r),m===r&&(m=I,E=un(),E!==r?(U=Ja(),U!==r?(Oe=m,m=dh(U)):(I=m,m=r)):(I=m,m=r)))),m}function Ga(){var m,E,U;return m=I,E=Ya(),E!==r?m=e.substring(m,I):m=E,m===r&&(e.charCodeAt(I)===34?(m=x,I++):(m=r,ve===0&&be(B)),m===r&&(m=I,E=un(),E!==r?(e.charCodeAt(I)===39?(U=P,I++):(U=r,ve===0&&be(se)),U!==r?(Oe=m,m=fh()):(I=m,m=r)):(I=m,m=r),m===r&&(m=I,E=un(),E!==r?(U=Ja(),U!==r?(Oe=m,m=mh(U)):(I=m,m=r)):(I=m,m=r)))),m}function Kh(){var m;return m=e.charAt(I),K.test(m)?I++:(m=r,ve===0&&be(fe)),m}function $o(){var m,E,U,Q,ne,ue;if(m=I,E=Ao(),E!==r){for(U=[],Q=I,Ue(),e.substr(I,2)===v?(ne=v,I+=2):(ne=r,ve===0&&be(xe)),ne!==r?(Ue(),ue=Ao(),ue!==r?(Oe=Q,Q=Ia(E,ue)):(I=Q,Q=r)):(I=Q,Q=r);Q!==r;)U.push(Q),Q=I,Ue(),e.substr(I,2)===v?(ne=v,I+=2):(ne=r,ve===0&&be(xe)),ne!==r?(Ue(),ue=Ao(),ue!==r?(Oe=Q,Q=Ia(E,ue)):(I=Q,Q=r)):(I=Q,Q=r);Oe=m,m=hh(E,U)}else I=m,m=r;return m}function Ya(){var m,E,U;return m=e.charAt(I),V.test(m)?I++:(m=r,ve===0&&be(Be)),m===r&&(m=I,E=e.charAt(I),q.test(E)?I++:(E=r,ve===0&&be(u)),E!==r?(U=e.charAt(I),w.test(U)?I++:(U=r,ve===0&&be(f)),U!==r?(E=[E,U],m=E):(I=m,m=r)):(I=m,m=r)),m}function un(){var m;return e.charCodeAt(I)===92?(m=O,I++):(m=r,ve===0&&be(_e)),m}function Ja(){var m,E,U;return m=e.charAt(I),re.test(m)?I++:(m=r,ve===0&&be(Ce)),m===r&&(m=I,e.charCodeAt(I)===117?(E=b,I++):(E=r,ve===0&&be(Ye)),E!==r?(U=Wh(),U!==r?(E=[E,U],m=E):(I=m,m=r)):(I=m,m=r)),m}function Ao(){var m,E,U,Q,ne,ue,Te;if(m=I,E=I,U=Eo(),U!==r){for(Q=[],ne=I,Ue(),e.substr(I,2)===k?(ue=k,I+=2):(ue=r,ve===0&&be(tr)),ue!==r?(Ue(),Te=Eo(),Te!==r?(Oe=ne,ne=qa(U,Te)):(I=ne,ne=r)):(I=ne,ne=r);ne!==r;)Q.push(ne),ne=I,Ue(),e.substr(I,2)===k?(ue=k,I+=2):(ue=r,ve===0&&be(tr)),ue!==r?(Ue(),Te=Eo(),Te!==r?(Oe=ne,ne=qa(U,Te)):(I=ne,ne=r)):(I=ne,ne=r);Oe=E,E=yh(U,Q)}else I=E,E=r;return E!==r&&(Oe=m,E=gh(E)),m=E,m}function Wh(){var m,E,U,Q,ne,ue,Te;return m=I,E=I,U=Qh(),U!==r&&(Oe=E,U=bh()),E=U,E===r&&(E=I,U=I,Q=Gh(),Q!==r?U=e.substring(U,I):U=Q,U!==r?(e.charCodeAt(I)===92?(Q=O,I++):(Q=r,ve===0&&be(_e)),Q!==r?(e.charCodeAt(I)===117?(ne=b,I++):(ne=r,ve===0&&be(Ye)),ne!==r?(ue=I,Te=Yh(),Te!==r?ue=e.substring(ue,I):ue=Te,ue!==r?(Oe=E,E=vh(U,ue)):(I=E,E=r)):(I=E,E=r)):(I=E,E=r)):(I=E,E=r)),E!==r&&(Oe=m,E=wh(E)),m=E,m}function Eo(){var m;return m=Jh(),m===r&&(m=Xh(),m===r&&(m=Zh())),m}function Qh(){var m,E,U,Q,ne,ue;if(m=I,E=_t(),E===r&&(E=e.charAt(I),we.test(E)?I++:(E=r,ve===0&&be(rr))),E!==r){for(U=I,Q=[],ne=Ut();ne!==r;)Q.push(ne),Q.length>=3?ne=r:ne=Ut();Q.length<3?(I=U,U=r):U=Q,U!==r?(E=[E,U],m=E):(I=m,m=r)}else I=m,m=r;if(m===r)if(m=I,E=e.charAt(I),E.toLowerCase()===M?I++:(E=r,ve===0&&be(vo)),E!==r)if(U=e.charAt(I),$e.test(U)?I++:(U=r,ve===0&&be(Rm)),U!==r){for(Q=I,ne=[],ue=Ut();ue!==r;)ne.push(ue),ne.length>=2?ue=r:ue=Ut();ne.length<2?(I=Q,Q=r):Q=ne,Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function Gh(){var m,E,U,Q,ne,ue;if(m=I,E=e.charAt(I),E.toLowerCase()===M?I++:(E=r,ve===0&&be(vo)),E!==r)if(U=e.charAt(I),z.test(U)?I++:(U=r,ve===0&&be(_m)),U===r&&(U=e.charAt(I),W.test(U)?I++:(U=r,ve===0&&be(Tm))),U!==r){for(Q=I,ne=[],ue=Ut();ue!==r;)ne.push(ue),ne.length>=2?ue=r:ue=Ut();ne.length<2?(I=Q,Q=r):Q=ne,Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function Yh(){var m,E,U,Q,ne,ue;if(m=I,E=e.charAt(I),E.toLowerCase()===M?I++:(E=r,ve===0&&be(vo)),E!==r)if(U=e.charAt(I),J.test(U)?I++:(U=r,ve===0&&be(km)),U!==r){for(Q=I,ne=[],ue=Ut();ue!==r;)ne.push(ue),ne.length>=2?ue=r:ue=Ut();ne.length<2?(I=Q,Q=r):Q=ne,Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function Jh(){var m,E,U,Q,ne,ue;return m=I,E=I,U=Xa(),U!==r?(Q=Ue(),U=[U,Q],E=U):(I=E,E=r),E===r&&(E=null),e.charCodeAt(I)===40?(U=H,I++):(U=r,ve===0&&be(Ra)),U!==r?(Q=Ue(),ne=$o(),ne!==r?(Ue(),e.charCodeAt(I)===41?(ue=G,I++):(ue=r,ve===0&&be(_a)),ue!==r?(Oe=m,m=xh(E,ne)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m}function Xh(){var m,E,U,Q;return m=I,E=Za(),E!==r?(Ue(),U=ey(),U!==r?(Ue(),Q=Za(),Q!==r?(Oe=m,m=Sh(E,U,Q)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m}function Zh(){var m,E,U,Q;return m=I,E=I,U=Xa(),U!==r?(Q=Ue(),U=[U,Q],E=U):(I=E,E=r),E===r&&(E=null),U=ec(),U===r&&(U=Oo()),U!==r?(Oe=m,m=Ph(E,U)):(I=m,m=r),m}function Ut(){var m;return m=_t(),m===r&&(m=e.charAt(I),oe.test(m)?I++:(m=r,ve===0&&be(Im))),m}function Xa(){var m;return e.charCodeAt(I)===33?(m=Z,I++):(m=r,ve===0&&be(qm)),m}function Za(){var m;return m=tc(),m===r&&(m=ty(),m===r&&(m=Oo())),m}function ey(){var m;return e.substr(I,2)===te?(m=te,I+=2):(m=r,ve===0&&be(Cm)),m===r&&(e.substr(I,2)===de?(m=de,I+=2):(m=r,ve===0&&be(jm)),m===r&&(e.substr(I,2)===ee?(m=ee,I+=2):(m=r,ve===0&&be(Mm)),m===r&&(e.substr(I,2)===ie?(m=ie,I+=2):(m=r,ve===0&&be(Dm)),m===r&&(m=e.charAt(I),me.test(m)?I++:(m=r,ve===0&&be(Nm)))))),m}function ec(){var m,E;return m=I,E=ry(),E===r&&(E=wo()),E!==r&&(Oe=m,E=$h(E)),m=E,m}function Oo(){var m,E,U,Q,ne,ue,Te,Je,ut;if(m=I,E=ny(),E!==r)if(e.charCodeAt(I)===40?(U=H,I++):(U=r,ve===0&&be(Ra)),U!==r){if(Ue(),Q=I,ne=Ro(),ne!==r){for(ue=[],Te=I,Ue(),e.charCodeAt(I)===44?(Je=d,I++):(Je=r,ve===0&&be(ge)),Je!==r?(Ue(),ut=Ro(),ut!==r?(Oe=Te,Te=Ca(E,ne,ut)):(I=Te,Te=r)):(I=Te,Te=r);Te!==r;)ue.push(Te),Te=I,Ue(),e.charCodeAt(I)===44?(Je=d,I++):(Je=r,ve===0&&be(ge)),Je!==r?(Ue(),ut=Ro(),ut!==r?(Oe=Te,Te=Ca(E,ne,ut)):(I=Te,Te=r)):(I=Te,Te=r);Oe=Q,Q=Ah(E,ne,ue)}else I=Q,Q=r;Q===r&&(Q=null),ne=Ue(),e.charCodeAt(I)===41?(ue=G,I++):(ue=r,ve===0&&be(_a)),ue!==r?(Oe=m,m=Eh(E,Q)):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function tc(){var m,E;return m=I,E=iy(),E===r&&(E=Wa(),E===r&&(E=oy(),E===r&&(E=sy(),E===r&&(E=ay())))),E!==r&&(Oe=m,E=Oh(E)),m=E,m}function ty(){var m;return m=cy(),m===r&&(m=py()),m}function ry(){var m,E,U;return m=I,E=rc(),E!==r?(U=La(),U!==r?(Oe=m,m=Rh(U)):(I=m,m=r)):(I=m,m=r),m}function ny(){var m,E,U,Q,ne;if(m=I,E=I,U=dy(),U!==r){for(Q=[],ne=nc();ne!==r;)Q.push(ne),ne=nc();U=[U,Q],E=U}else I=E,E=r;return E!==r?m=e.substring(m,I):m=E,m}function Ro(){var m;return m=tc(),m===r&&(m=ec(),m===r&&(m=Oo(),m===r&&(m=$o()))),m}function iy(){var m,E,U,Q,ne,ue;return m=I,E=I,U=I,Q=Rr(),Q===r&&(e.substr(I,2)===Pe?(Q=Pe,I+=2):(Q=r,ve===0&&be(Lm))),Q!==r?(ne=ly(),ne===r&&(ne=null),ue=uy(),ue===r&&(ue=null),Q=[Q,ne,ue],U=Q):(I=U,U=r),U!==r?E=e.substring(E,I):E=U,E!==r&&(Oe=m,E=_h(E)),m=E,m}function oy(){var m,E;return m=I,e.substr(I,4)===Ie?(E=Ie,I+=4):(E=r,ve===0&&be(Um)),E!==r&&(Oe=m,E=Th()),m=E,m}function sy(){var m,E;return m=I,e.substr(I,5)===Le?(E=Le,I+=5):(E=r,ve===0&&be(Fm)),E!==r&&(Oe=m,E=kh()),m=E,m}function ay(){var m,E;return m=I,e.substr(I,4)===Se?(E=Se,I+=4):(E=r,ve===0&&be(zm)),E!==r&&(Oe=m,E=Ih()),m=E,m}function cy(){var m,E,U;return m=I,E=rc(),E!==r?(U=ic(),Oe=m,m=qh(U)):(I=m,m=r),m}function py(){var m,E,U;return m=I,E=Na(),E!==r?(U=ic(),Oe=m,m=Ch(U)):(I=m,m=r),m}function rc(){var m;return e.charCodeAt(I)===64?(m=qe,I++):(m=r,ve===0&&be(Bm)),m}function nc(){var m;return m=e.charAt(I),Ae.test(m)?I++:(m=r,ve===0&&be(Vm)),m}function ly(){var m,E,U,Q;if(m=I,e.charCodeAt(I)===46?(E=c,I++):(E=r,ve===0&&be(ce)),E!==r){if(U=[],Q=_t(),Q!==r)for(;Q!==r;)U.push(Q),Q=_t();else U=r;U!==r?(E=[E,U],m=E):(I=m,m=r)}else I=m,m=r;return m}function uy(){var m,E,U,Q,ne;if(m=I,E=e.charAt(I),E.toLowerCase()===_?I++:(E=r,ve===0&&be(Hm)),E!==r){if(U=e.charAt(I),F.test(U)?I++:(U=r,ve===0&&be(Km)),U===r&&(U=null),Q=[],ne=_t(),ne!==r)for(;ne!==r;)Q.push(ne),ne=_t();else Q=r;Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;return m}function ic(){var m,E,U,Q;for(m=I,E=[],U=I,Ue(),Q=oc(),Q===r&&(Q=sc()),Q!==r?(Oe=U,U=ja(Q)):(I=U,U=r);U!==r;)E.push(U),U=I,Ue(),Q=oc(),Q===r&&(Q=sc()),Q!==r?(Oe=U,U=ja(Q)):(I=U,U=r);return Oe=m,E=jh(E),m=E,m}function dy(){var m;return m=e.charAt(I),X.test(m)?I++:(m=r,ve===0&&be(Wm)),m}function oc(){var m,E,U,Q;return m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r?(U=Ha(),U!==r?(e.charCodeAt(I)===93?(Q=h,I++):(Q=r,ve===0&&be(Ee)),Q!==r?(Oe=m,m=Mh(U)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m===r&&(m=I,e.charCodeAt(I)===46?(E=c,I++):(E=r,ve===0&&be(ce)),E!==r?(U=So(),U!==r?(Oe=m,m=Dh(U)):(I=m,m=r)):(I=m,m=r)),m}function sc(){var m,E,U,Q;return m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r?(U=Ka(),U!==r?(e.charCodeAt(I)===93?(Q=h,I++):(Q=r,ve===0&&be(Ee)),Q!==r?(Oe=m,m=Nh(U)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m}if(Or=o(),t.peg$library)return{peg$result:Or,peg$currPos:I,peg$FAILED:r,peg$maxFailExpected:ln,peg$maxFailPos:ht};if(Or!==r&&I===e.length)return Or;throw Or!==r&&I<e.length&&be(Uh()),Fh(ln,ht<e.length?e.charAt(ht):null,ht<e.length?Da(ht,ht+1):Da(ht,ht))}function em(e){return S_(e)}class P_{head=null;tail=null;size=0;push(t){const r={value:t,next:null};this.tail!==null&&(this.tail.next=r),this.tail=r,this.head===null&&(this.head=r),this.size++}pop(){if(this.head===null)return;const t=this.head.value;return this.head=this.head.next,this.head===null&&(this.tail=null),this.size--,t}}function an(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}const Ri=e=>Array.isArray(e.value),Ki=e=>an(e.value),tm=new WeakSet,pt=e=>typeof e=="object"&&e!==null&&tm.has(e),$_=e=>{switch(typeof e){case"string":case"number":case"boolean":return!0;case"object":return e===null||an(e)||rm(e);default:return!1}},rm=e=>Array.isArray(e)&&!pt(e),nm=()=>{const e=[];return tm.add(e),e},Ar=Symbol("Nothing"),A_={declaration:function(t,r){return pt(r)?r.length:0},definition:{parameters:["NodesType"],returnType:"ValueType"}};function E_(e){let t=0;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);(n>=0&&n<=55295||n>=57344&&n<=1114111)&&t++}return t}const O_={declaration:function(t,r){return typeof r=="string"?E_(r):Array.isArray(r)?r.length:an(r)?Object.keys(r).length:Ar},definition:{parameters:["ValueType"],returnType:"ValueType"}};function im(e){return e===92}function R_(e,t){let r=!1,n=t;for(;n<e.length;){const i=e.charCodeAt(n);if(n++,im(i)){r=!0;continue}if(i===93){if(!r)break;r=!1}}return n}function __(e){let t=e;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);im(n)?r++:n===91?r=R_(e,r):n===46&&(t=`${e.slice(0,r)}[^
|
|
31
31
|
\r]${e.slice(r+1)}`)}return t}function om({cache:e},t){const r=e.get("regexps")??{};if(e.has("regexps")||e.set("regexps",r),Object.hasOwn(r,t))return r[t];try{const n=RegExp(__(t),"u");return r[t]=n,n}catch{return r[t]=null,null}}const T_={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:om(t,`^${n}$`)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}},k_={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:om(t,n)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}},I_={declaration:function(t,r){return r.length===1?r[0]:Ar},definition:{parameters:["NodesType"],returnType:"ValueType"}},Ds=[];function $t(e,t){return e===Ds?Ds:typeof t=="number"?[...e,t]:[...e,M_(t)]}function q_(e){return e?[]:Ds}const C_=/[\u0000-\u001f'\\]/g;function j_(e){const t=e.charCodeAt(0);switch(t){case 8:return"\\b";case 12:return"\\f";case 10:return"\\n";case 13:return"\\r";case 9:return"\\t";case 39:return"\\'";case 92:return"\\\\";default:return`\\u${t.toString(16).padStart(4,"0")}`}}function M_(e){return e.replace(C_,j_)}function D_(e){let t="$";for(const r of e)typeof r=="number"?t+=`[${r}]`:t+=`['${r}']`;return t}function er(e){throw new TypeError(`Unexpected node type: ${e.type}`)}function Vt(e){throw new TypeError(`Unexpected comparison operator: ${e}`)}function sm(e,t){throw new Error(t)}function _i(e){switch(typeof e){case"object":if(e===null)return"null";if(pt(e))return"NodeList";if(rm(e))return"array";if(an(e))return"object";throw new TypeError(`Unknown type: ${e}`);case"string":return"string";case"number":return"number";case"boolean":return"boolean";default:if(e===Ar)return"Nothing";throw new TypeError(`Unknown type: ${e}`)}}function N_(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!br(e[r],t[r]))return!1;return!0}function L_(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r)if(!Object.hasOwn(t,i)||!br(e[i],t[i]))return!1;return!0}function br(e,t){if(_i(e)!==_i(t))return!1;switch(_i(e)){case"string":case"number":case"boolean":case"null":return e===t;case"object":return L_(e,t);case"array":case"NodeList":return N_(e,t);default:return!1}}function am(e,t,r){switch(r){case"==":case">=":case"<=":return!pt(e)&&!pt(t)&&br(e,t);case"<":case">":return!1;case"!=":return!am(e,t,"==");default:Vt(r)}}function cm(e,t,r){switch(r){case"==":case"<=":case">=":return pt(e)&&(pt(t)&&br(e,t)||t===Ar);case"<":case">":return!1;case"!=":return!cm(e,t,"==");default:Vt(r)}}function pm(e,t,r){switch(r){case"==":case"<=":case">=":return t===Ar||pt(t)&&t.length===0;case"<":case">":return!1;case"!=":return!pm(e,t,"==");default:Vt(r)}}function Gt(e,t,r){switch(r){case"==":return e===t;case"<":return typeof t=="number"&&e<t;case"!=":return!Gt(e,t,"==");case"<=":return Gt(e,t,"<")||Gt(e,t,"==");case">":return typeof t=="number"&&Gt(t,e,"<");case">=":return typeof t=="number"&&Gt(t,e,"<")||Gt(e,t,"==");default:Vt(r)}}function U_(e,t,r){switch(r){case"==":case"<=":case">=":return br(e,t);case"<":case">":return!1;case"!=":return!br(e,t);default:Vt(r)}}function lm(e,t,r){switch(r){case"==":case"<=":case">=":return e===t;case"<":case">":return!1;case"!=":return!lm(e,t,"==");default:Vt(r)}}function Qt(e,t,r){if(typeof e!="string"||typeof t!="string")return!1;switch(r){case"==":return e===t;case"<":{let n=0;for(;e.length>n&&t.length>n;){const i=e.charCodeAt(n),o=t.charCodeAt(n);if(i===o){n++;continue}return e.charCodeAt(n)<t.charCodeAt(n)}return e.length<t.length}default:Vt(r)}}function F_(e,t,r){switch(r){case"==":case"<":return Qt(e,t,r);case"!=":return!Qt(e,t,"==");case"<=":return Qt(e,t,"<")||Qt(e,t,"==");case">":return Qt(t,e,"<");case">=":return Qt(t,e,"<")||Qt(e,t,"==");default:Vt(r)}}function z_(e,t,r){const n=pt(e)&&e.length===1?e[0]:e,i=_i(n),o=pt(t)&&t.length===1?t[0]:t;switch(i){case"string":return F_(n,o,r);case"number":return Gt(n,o,r);case"boolean":case"null":return lm(n,o,r);case"object":return U_(n,o,r);case"array":return am(n,o,r);case"Nothing":return pm(n,o,r);case"NodeList":return cm(n,o,r);default:sm(i,"Unknown type")}}function um(e,t,r){const n=nm();switch(r.value.type){case"RelQuery":Qi(e,t.root,t.value,r.value,i=>{n.push(i)});break;case"JsonPathQuery":Qi(e,t.root,t.root,r.value,i=>{n.push(i)});break;default:er(r.value)}return n}function B_(e,t,r){switch(r.expression.type){case"FilterQuery":return um(e,t,r.expression).length>0;case"FunctionExpr":return Sa(e,t,r.expression)===!0;default:er(r.expression)}}function Jt(e,t,r){switch(r.type){case"LogicalNotExpr":return!Jt(e,t,r.expression);case"LogicalAndExpr":return Jt(e,t,r.left)&&Jt(e,t,r.right);case"LogicalOrExpr":return Jt(e,t,r.left)||Jt(e,t,r.right);case"TestExpr":return B_(e,t,r);case"ComparisonExpr":return dm(e,t,r);default:er(r)}}function V_(e,t,r){switch(r.type){case"FunctionExpr":return Sa(e,t,r);case"FilterQuery":return um(e,t,r);case"LogicalNotExpr":case"LogicalAndExpr":case"LogicalOrExpr":case"TestExpr":return Jt(e,t,r);case"Literal":return r.value;default:er(r)}}function H_(e){return pt(e)?e.length===1?e[0]:Ar:e}function Sa(e,t,r){if(!K_(e.functions,r.name))return!1;const n=e.functions[r.name];if(n.definition.parameters.length!==r.arguments.length)return!1;const i=[];for(let o=0;o<r.arguments.length;o++){const s=V_(e,t,r.arguments[o]),c=n.definition.parameters[o];switch(c){case"ValueType":if(!pt(s)&&!$_(s))return!1;i.push(H_(s));break;case"NodesType":if(!pt(s))return!1;i.push(s);break;case"LogicalType":if(typeof s=="boolean")i.push(s);else if(pt(s))i.push(s.length>0);else return!1;break;default:sm(c,"Unknown function argument type")}}return n.declaration(e,...i)}function K_(e,t){return Object.hasOwn(e,t)}function Cl(e,t,r){switch(r.type){case"Literal":return r.value;case"RelSingularQuery":case"AbsSingularQuery":{const n=r.type==="RelSingularQuery"?t.value:t.root;if(r.segments.length===0)return n;const i=nm();return Qi(e,t.root,n,r,o=>{i.push(o)}),i}case"FunctionExpr":return Sa(e,t,r);default:er(r)}}function dm(e,t,r){const n=Cl(e,t,r.left),i=Cl(e,t,r.right);return z_(n,i,r.op)}function fm(e,t,r){if(r.value.type==="ComparisonExpr"){if(!dm(e,t,r.value))return}else if(!Jt(e,t,r.value))return;e.stack.push({root:t.root,path:t.path,value:t.value,index:t.index+1})}function W_(e,t){return e<0?t+e:e}function mm(e,t,r){const n=W_(r.value,t.value.length);n>=0&&n<t.value.length&&e.stack.push({root:t.root,path:$t(t.path,n),value:t.value[n],index:t.index+1})}function hm(e,{root:t,path:r,value:n,index:i},o){Object.hasOwn(n,o.value)&&e.stack.push({root:t,path:$t(r,o.value),value:n[o.value],index:i+1})}function Wi(e,t){return e>=0?e:t+e}function Q_(e,t,r,n){const i=Wi(e,n),o=Wi(t,n);if(r>=0){const p=Math.min(Math.max(i,0),n),l=Math.min(Math.max(o,0),n);return[p,l]}const s=Math.min(Math.max(i,-1),n-1);return[Math.min(Math.max(o,-1),n-1),s]}function G_(e,{root:t,path:r,value:n,index:i},o){const s=o.step??1,c=s>=0?0:n.length-1,p=s>=0?n.length:-n.length-1,l=o.start===null?c:Wi(o.start,n.length),d=o.end===null?p:Wi(o.end,n.length),[h,y]=Q_(l,d,s,n.length);if(s>0){let g=h;for(;g<y;)e.stack.push({root:t,path:$t(r,g),value:n[g],index:i+1}),g+=s}else if(s<0){let g=y;for(;h<g;)e.stack.push({root:t,path:$t(r,g),value:n[g],index:i+1}),g+=s}}function ym(e,{root:t,path:r,value:n,index:i}){if(Array.isArray(n))for(let o=0;o<n.length;o++)e.stack.push({root:t,path:$t(r,o),value:n[o],index:i+1});else if(an(n))for(const o of Object.keys(n))e.stack.push({root:t,path:$t(r,o),value:n[o],index:i+1})}function Y_(e,t,r){for(const n of r.selectors)switch(n.type){case"NameSelector":Ki(t)&&hm(e,t,n);break;case"SliceSelector":Ri(t)&&G_(e,t,n);break;case"IndexSelector":{Ri(t)&&mm(e,t,n);break}case"WildcardSelector":ym(e,t);break;case"FilterSelector":{Ri(t)?J_(e,t,n):Ki(t)&&X_(e,t,n);break}default:er(n)}}function J_(e,{root:t,path:r,value:n,index:i},o){for(let s=0;s<n.length;s++)fm(e,{root:t,path:$t(r,s),value:n[s],index:i},o)}function X_(e,{root:t,path:r,value:n,index:i},o){for(const s of Object.keys(n))fm(e,{root:t,path:$t(r,s),value:n[s],index:i},o)}function Z_(e,{root:t,path:r,value:n,index:i},o){Object.hasOwn(n,o.value)&&e.stack.push({root:t,path:$t(r,o.value),value:n[o.value],index:i+1})}function eT(e,t,r){switch(r.type){case"BracketedSelection":return Y_(e,t,r);case"WildcardSelector":return ym(e,t);case"MemberNameShorthand":Ki(t)&&Z_(e,t,r);break;case"NameSelector":Ki(t)&&hm(e,t,r);break;case"IndexSelector":Ri(t)&&mm(e,t,r);break;default:er(r)}}function Qi(e,t,r,n,i){const o=new P_;o.push({root:t,path:q_(e.capturePaths),value:r,index:0});const s={cache:e.cache,capturePaths:!1,functions:e.functions,regexp:e.regexp,stack:o};for(;o.size>0;){const c=o.pop();if(c.index===n.segments.length){i(c.value,c.path);continue}const{path:p,value:l,index:d}=c,h=n.segments[d];if(eT(s,c,h.node),h.type==="DescendantSegment"){if(Array.isArray(l))for(let y=0;y<l.length;y++)o.push({root:t,path:$t(p,y),value:l[y],index:d});else if(l!==null&&typeof l=="object")for(const y of Object.keys(l))o.push({root:t,path:$t(p,y),value:l[y],index:d})}}}function gm(e,t,r,n){const i={cache:new Map,capturePaths:r.capturePaths,functions:{count:A_,search:k_,value:I_,match:T_,length:O_},regexp:"i-regexp"};Qi(i,e,e,em(t),n)}const tT={capturePaths:!0};function rT(e,t){const r=[];return gm(e,t,{capturePaths:!1},n=>{r.push(n)}),r}function nT(e,t){const r=[];return gm(e,t,tT,(n,i)=>{r.push(D_(i))}),r}const jl="#/components/actions/";function iT(e,t,r){const n=j.normalizeTypes(ta),i={problems:[],specVersion:"overlay1",visitorsData:{}},o=new Set,{$self:s,components:c}=t.parsed,p=typeof s=="string"?r.resolveExternalRef(t.source.absoluteRef,s):t.source.absoluteRef,l=(h,y,g)=>{const $=v=>{const O=h[v];if(typeof O!="string"){g({message:`The \`${v}\` field must be a JSONPath expression.`,location:y.child([v])});return}try{return oT(e.parsed,O)}catch(b){g({message:`Invalid JSONPath expression: ${b.message}`,location:y.child([v])});return}},x=$("target");if(!x)return;if(h.remove===!0){if(x.some(({keys:v})=>v.length===0)){g({message:"Cannot remove the root of the document.",location:y.child(["target"])});return}aT(e.parsed,x,o);return}if(h.update!==void 0&&h.copy!==void 0){g({message:"An action can't have both `update` and `copy`.",location:y});return}let P,A;if(h.copy===void 0)P=structuredClone(h.update),A="update",Ns(P,v=>{const O=r.resolveExternalRef(p,v),b=e.source.absoluteRef;return j.isAbsoluteUrl(O)||j.isAbsoluteUrl(b)?O:Ks(Y.pathBrowserifyExports.relative(Y.pathBrowserifyExports.dirname(b),O))});else{const v=$("copy");if(!v)return;if(v.length!==1){g({message:`The copy expression must select exactly one node, but it selected ${v.length}.`,location:y.child(["copy"])});return}P=Ls(e.parsed,v[0].keys),A="copy"}if(P===void 0)return;if(new Set(x.map(({keys:v})=>{const O=Ls(e.parsed,v);return Array.isArray(O)?"array":Y.isPlainObject(O)?"object":"primitive"})).size>1){g({message:"The target must select only objects, only arrays, or only primitive values.",location:y.child(["target"])});return}for(const v of x){const O=sT(e.parsed,v,P,o);if(O){g({message:O,location:y.child([A])});return}}},d={Root({actions:h},{report:y,location:g}){if(!Array.isArray(h)){y({message:"The overlay must have a list of `actions`.",location:g.child(["actions"])});return}h.forEach(($,x)=>{const P=g.child(["actions",x]);if(!Y.isPlainObject($)){y({message:"An action must be an object.",location:P});return}if(!j.isRef($)){l($,P,y);return}const{$ref:A,target:S,description:v,...O}=$,b=Object.keys(O).find(M=>!M.startsWith("x-"));if(b){y({message:`Property \`${b}\` is not expected here because it is defined alongside \`$ref\`.`,location:P.child([b]).key()});return}const k=A.startsWith(jl)?j.getOwn(c?.actions??{},j.unescapePointerFragment(A.slice(jl.length))):void 0;if(!k){y({message:`Can't find the reusable action \`${A}\`.`,location:P.child(["$ref"])});return}l({...k.fields,target:S},P,y)})}};return St({document:t,rootType:n.Root,normalizedVisitors:xt([{severity:"error",ruleId:"overlay",visitor:d}],n),resolvedRefMap:new Map,ctx:i}),i.problems}function Ns(e,t){if(Array.isArray(e))for(const r of e)Ns(r,t);else if(Y.isPlainObject(e))for(const[r,n]of Object.entries(e))if(r==="$ref"&&typeof n=="string"){const[i,...o]=n.split("#");i!==""&&(e.$ref=[t(i),...o].join("#"))}else Ns(n,t)}function oT(e,t){return[...new Set(nT(e,t))].map(r=>({jsonPath:r,keys:em(r).segments.flatMap(({node:n})=>n.type==="BracketedSelection"?n.selectors.flatMap(i=>i.type==="NameSelector"||i.type==="IndexSelector"?[i.value]:[]):[])}))}function sT(e,{jsonPath:t,keys:r},n,i){const o=Ls(e,r);if(Yi(o)){if(!Yi(n))return Us(n,o,t);Gi(e,r.slice(0,-1),i)[r[r.length-1]]=n;return}const s=Gi(e,r,i);if(Array.isArray(s)){s.push(...Array.isArray(n)?structuredClone(n):[structuredClone(n)]);return}return Y.isPlainObject(n)?bm(s,n,t,i):Us(n,s,t)}function bm(e,t,r,n){for(const[i,o]of Object.entries(t)){const s=e[i];if(!Object.hasOwn(e,i))e[i]=structuredClone(o);else if(Y.isPlainObject(s)&&Y.isPlainObject(o)){const c=bm(Gi(e,[i],n),o,`${r}['${i}']`,n);if(c)return c}else if(Array.isArray(s)&&Array.isArray(o))e[i]=[...s,...structuredClone(o)];else if(Yi(s)&&Yi(o))e[i]=o;else return Us(o,s,`${r}['${i}']`)}}function aT(e,t,r){const n=t.map(({keys:o})=>({parent:Gi(e,o.slice(0,-1),r),key:o[o.length-1]})),i=o=>typeof o=="number"?o:-1;n.sort((o,s)=>i(s.key)-i(o.key));for(const{parent:o,key:s}of n)Array.isArray(o)?o.splice(s,1):delete o[s]}function Ls(e,t){return t.reduce((r,n)=>r[n],e)}function Gi(e,t,r){let n=e;for(const i of t){if(!r.has(n[i])){const o=Object.assign(Array.isArray(n[i])?[]:{},n[i]);r.add(o),n[i]=o}n=n[i]}return n}function Yi(e){return!Y.isPlainObject(e)&&!Array.isArray(e)}function Us(e,t,r){const n=i=>i===null?"null":Array.isArray(i)?"array":typeof i;return`Cannot apply ${n(e)} to ${n(t)} at ${r}.`}function Fs(e,t){switch(t){case"oas3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";case"MediaTypesMap":return"mediaTypes";default:return null}case"oas2":switch(e){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(e){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null;case"openrpc1":switch(e){case"ContentDescriptor":return"contentDescriptors";case"Schema":return"schemas";case"Example":return"examples";case"Link":return"links";case"ErrorObject":return"errors";case"ExamplePairing":return"examplePairingObjects";case"Tag":return"tags";default:return null}default:return null}}function cT({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:i,componentRenamingConflicts:o="warn",componentNamesStrategy:s="basename"}){let c,p;const l=new Map,d=Fs("Schema",e),h={ref:{leave(S,v,O){if(!O.location||O.node===void 0){ur(O,v.report,v.location);return}const b=Dr(O);if(b.location.source===r.source&&b.location.source===v.location.source&&v.type.name!=="scalar"&&!t){j.parseRef(S.$ref).uri!==null&&S.$ref!==b.location.pointer&&(S.$ref=b.location.pointer);return}if(i&&j.isAbsoluteUrl(S.$ref))return;const k=Fs(v.type.name,e);k?t?(g(k,b,v),j.replaceRef(S,b,v)):(S.$ref=g(k,b,v),y(S,O,v)):j.replaceRef(S,b,v)}},Example:{leave(S,v){if(j.isExternalValue(S)&&S.value===void 0){const O=v.resolve({$ref:S.externalValue});if(!O.location||O.node===void 0){ur(O,v.report,v.location);return}if(i&&j.isAbsoluteUrl(S.externalValue))return;S.value=v.resolve({$ref:S.externalValue}).node,delete S.externalValue}}},Root:{enter(S,v){p=v.location,e==="oas3"?c=S.components=S.components||{}:e==="oas2"?c=S:e==="async2"?c=S.components=S.components||{}:e==="async3"?c=S.components=S.components||{}:e==="arazzo1"?c=S.components=S.components||{}:e==="openrpc1"&&(c=S.components=S.components||{})}}};e==="oas3"&&(h.Discriminator={leave(S,v){if(typeof S.defaultMapping!="string"||!j.isMappingRef(S.defaultMapping))return;const O=v.resolve({$ref:S.defaultMapping});if(!O.location||O.node===void 0){ur(O,v.report,v.location.child("defaultMapping"));return}S.defaultMapping=g(d,Dr(O),v)},DiscriminatorMapping:{leave(S,v){for(const O of Object.keys(S)){const b=S[O];if(!j.isMappingRef(b))continue;const k=v.resolve({$ref:b});if(!k.location||k.node===void 0){ur(k,v.report,v.location.child(O));return}S[O]=g(d,Dr(k),v)}}}});function y(S,v,O){const b={resolved:!0,isRemote:!1,node:v.node,chain:v.chain,document:r,nodePointer:S.$ref};n.set(j.makeRefId(O.location.source.absoluteRef,S.$ref),b),n.set(j.makeRefId(r.source.absoluteRef,S.$ref),b)}function g(S,v,O){c[S]=c[S]||{};const b=A(v,S,O);return c[S][b]=v.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${S}/${b}`:`#/${S}/${b}`}function $(S,v,O){if(j.isRef(S)){const b=O.resolve(S,p.absolutePointer);if((b.location&&Dr(b).location)?.absolutePointer===v.location.absolutePointer)return!0}return Dt(S,v.node)}function x(S,v,O){const{title:b,name:k}=Qf(S.node),M=S.location.child("title");return b===""?{key:k,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:S.location,forceSeverity:"error"}}:v[k]&&!$(v[k],S,O)?{key:k,problem:{message:`Title "${b}" maps to component name \`${k}\`, already used by another schema. Rename one of the titles.`,location:M,from:l.get(k),forceSeverity:o}}:{key:k}}function P(S,v,O){const b=j.pointerBaseName(S.location.pointer)||j.refBaseName(S.location.source.absoluteRef);let k=b;for(let M=2;v[k]&&!$(v[k],S,O);M++)k=`${b}-${M}`;return{name:k,prevName:b}}function A(S,v,O){const b=c[v];if(s==="title"&&v===d){const{key:H,problem:G}=x(S,b,O);if(!G)return l.set(H,S.location.child("title")),H;const{name:Z}=P(S,b,O);return b[Z]||(O.report(G),l.set(Z,S.location)),Z}const{name:k,prevName:M}=P(S,b,O);return!b[k]&&M!==k&&O.report({message:`Two schemas are referenced with the same name but different content. Renamed ${M} to ${k}.`,location:O.location,forceSeverity:o}),k}return h}class zs extends Error{}class pT extends Error{}async function Pa(e){const{document:t,config:r,types:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:c=!1,componentRenamingConflicts:p,componentNamesStrategy:l="basename",overlays:d=[]}=e,h=$r(t.parsed),y=ba(h),g=r.getRulesForSpecVersion(y),$=j.normalizeTypes(r.extendTypes(n,h),r),x=Br(g,r,"preprocessors",h),P=Br(g,r,"decorators",h),A={problems:[],specVersion:h,config:r,refTypes:new Map,visitorsData:{}};let S=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i});x.length>0&&(St({document:t,rootType:$.Root,normalizedVisitors:xt(x,$),resolvedRefMap:S,ctx:A}),S=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i}));const v=(b,k)=>({severity:"error",ruleId:"bundler",visitor:cT({version:y,dereference:k,rootDocument:t,resolvedRefMap:b,keepUrlRefs:c,componentRenamingConflicts:p,componentNamesStrategy:l})}),O=P.filter(b=>b.ruleId!=="remove-unused-components");if(St({document:t,rootType:$.Root,normalizedVisitors:xt(d.length>0?[v(S,!1)]:[v(S,o),...O],$),resolvedRefMap:S,ctx:A}),d.length>0){for(const H of d){const G=await i.resolveDocument(null,H,!0).catch(te=>{throw new zs(`Failed to load overlay at ${H}: ${te.message}`)});if(G instanceof Error)throw G;const Z=Y.isPlainObject(G.parsed)?G.parsed.overlay:void 0;if(typeof Z!="string"||!df.test(Z))throw new zs(`${H} is not an Overlay 1.0, 1.1, or 1.2 document.`);A.problems.push(...iT(t,G,i))}const b=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i}),k={...A,problems:[]};St({document:t,rootType:$.Root,normalizedVisitors:xt([v(b,o),...O],$),resolvedRefMap:b,ctx:k});const M=new Set(A.problems.map(({ruleId:H,message:G})=>`${H}:${G}`));A.problems.push(...k.problems.filter(({ruleId:H,message:G})=>!M.has(`${H}:${G}`)))}if(s||r.getDecoratorSettings("remove-unused-components",h).severity!=="off"){const b=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i}),k=xt([{severity:"error",ruleId:"remove-unused-components",visitor:y==="oas2"?ef():tf()}],$);St({document:t,rootType:$.Root,normalizedVisitors:k,resolvedRefMap:b,ctx:A})}return{bundle:t,problems:A.problems.map(b=>r.addProblemToIgnore(b)),fileDependencies:i.getFiles(),rootType:$.Root,refTypes:A.refTypes,visitorsData:A.visitorsData}}function lT(e,t,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[ya]:n}};return St({document:e,rootType:Zr.ConfigRoot,normalizedVisitors:g_,resolvedRefMap:t,ctx:i}),n.plugins}function uT(e,t,r,n=!1){const i={plugins:r,skipPluginEval:n},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[ha]:i}};return St({document:e,rootType:Zr.ConfigRoot,normalizedVisitors:b_,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function dT(e){const{ref:t,doc:r,externalRefResolver:n=new j.BaseResolver(e.config.resolve),base:i=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
|
|
32
32
|
`);const o=r===void 0?await n.resolveDocument(i,t,!0):r;if(o instanceof Error)throw o;return e.collectSpecData?.(o),Pa({document:o,...e,externalRefResolver:n,types:Jr($r(o.parsed))})}async function fT(e){const{source:t,absoluteRef:r,externalRefResolver:n=new j.BaseResolver(e.config.resolve)}=e,i=j.makeDocumentFromString(t,r||"/");return Pa({document:i,...e,externalRefResolver:n,types:Jr($r(i.parsed))})}function Xo(e){return!it(e)}const Gr=new Map,Ti="v";let $a=0,Ml=!1;function mT(){Y.module.registerHooks({resolve(e,t,r){const n=r(e,t);if(!n.url.startsWith("file:")||!t.parentURL)return n;const i=new URL(t.parentURL).searchParams.get(Ti);if(!i)return n;const o=new URL(n.url);return o.pathname.includes("/node_modules/")||o.searchParams.has(Ti)?n:(o.searchParams.set(Ti,i),{...n,url:o.href})}})}function hT(){if(!Ml){if(Ml=!0,typeof Y.module.registerHooks!="function"){Me.warn(`Redocly plugin reload requires Node.js >= 22.15 (current: ${process.version}). ESM plugins will not pick up edits until the process restarts.
|
|
33
|
-
`);return}mT()}}function yT(e){return Gr.has(e)}function gT(e){return Gr.get(e)}function bT(e,t){Gr.set(e,t)}function vT(){return $a}function wT(e){const t=Y.module.createRequire(e),r=new Set,n=i=>{if(r.has(i))return;r.add(i);const o=t.cache[i];if(o){for(const s of o.children)/[/\\]node_modules[/\\]/.test(s.id)||n(s.id);delete t.cache[i]}};n(e)}const xT=()=>{const e=[...Gr.keys()];for(const t of e)wT(t);Gr.clear(),$a+=1,hT()};async function ST(e){const t=(void 0)(e);return t.searchParams.set(Ti,String($a)),import(t.href)}async function vm({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:i,plugins:o=[]}){const s=e===void 0?Ld:e.parsed;if(n!==void 0&&Y.isPlainObject(s)&&(s.extends=n),Y.isPlainObject(s)&&(s?.extends?.some(Xo)||s?.scorecardClassic?.levels?.some($=>$?.extends?.some(Xo))||s?.scorecard?.levels?.some($=>$?.extends?.some(Xo))))throw new Error("Configuration format not detected in extends: values must be strings.");const c=e??{source:new j.Source(t??"",JSON.stringify(s)),parsed:s},p=await j.resolveDocument({rootDocument:c,rootType:Zr.ConfigRoot,externalRefResolver:r??new j.BaseResolver(zd(s?.resolve))});let l=[],d,h="";j.isBrowser?d=[...(s?.plugins||[]).filter(x=>!it(x)),Tl,...o]:(h=Y.pathBrowserifyExports.dirname(t??""),l=lT(c,p,h),d=[...await wm(l.map(x=>Dl(x)?x.absolutePath:x),h,i),Tl,...o]);const y=uT(c,h_(p),d,i);y.apis&&!i&&(y.apis=Object.fromEntries(Object.entries(y.apis).map(([$,x])=>{const P=Xf([y,x]);return[$,{...x,...P}]})));const g=l.length?l.map($=>Dl($)&&$.isModule?$.rawPath:$.absolutePath&&Y.pathBrowserifyExports.relative(h,$.absolutePath)).filter(mt):void 0;return{resolvedConfig:{...y,plugins:g},resolvedRefMap:p,plugins:d}}function PT(e){for(const t of Fd)(void 0)(Y.pathBrowserifyExports.resolve(e,t))}function Dl(e){return"isModule"in e}const Bs=(e,t,r)=>{if(!it(e))return e;(void 0)(Y.pathBrowserifyExports.resolve(Y.pathBrowserifyExports.dirname(t),e));try{return{absolutePath:Y.module.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Tt&&Tt.tagName.toUpperCase()==="SCRIPT"&&Tt.src||new URL("replay-lint-
|
|
33
|
+
`);return}mT()}}function yT(e){return Gr.has(e)}function gT(e){return Gr.get(e)}function bT(e,t){Gr.set(e,t)}function vT(){return $a}function wT(e){const t=Y.module.createRequire(e),r=new Set,n=i=>{if(r.has(i))return;r.add(i);const o=t.cache[i];if(o){for(const s of o.children)/[/\\]node_modules[/\\]/.test(s.id)||n(s.id);delete t.cache[i]}};n(e)}const xT=()=>{const e=[...Gr.keys()];for(const t of e)wT(t);Gr.clear(),$a+=1,hT()};async function ST(e){const t=(void 0)(e);return t.searchParams.set(Ti,String($a)),import(t.href)}async function vm({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:i,plugins:o=[]}){const s=e===void 0?Ld:e.parsed;if(n!==void 0&&Y.isPlainObject(s)&&(s.extends=n),Y.isPlainObject(s)&&(s?.extends?.some(Xo)||s?.scorecardClassic?.levels?.some($=>$?.extends?.some(Xo))||s?.scorecard?.levels?.some($=>$?.extends?.some(Xo))))throw new Error("Configuration format not detected in extends: values must be strings.");const c=e??{source:new j.Source(t??"",JSON.stringify(s)),parsed:s},p=await j.resolveDocument({rootDocument:c,rootType:Zr.ConfigRoot,externalRefResolver:r??new j.BaseResolver(zd(s?.resolve))});let l=[],d,h="";j.isBrowser?d=[...(s?.plugins||[]).filter(x=>!it(x)),Tl,...o]:(h=Y.pathBrowserifyExports.dirname(t??""),l=lT(c,p,h),d=[...await wm(l.map(x=>Dl(x)?x.absolutePath:x),h,i),Tl,...o]);const y=uT(c,h_(p),d,i);y.apis&&!i&&(y.apis=Object.fromEntries(Object.entries(y.apis).map(([$,x])=>{const P=Xf([y,x]);return[$,{...x,...P}]})));const g=l.length?l.map($=>Dl($)&&$.isModule?$.rawPath:$.absolutePath&&Y.pathBrowserifyExports.relative(h,$.absolutePath)).filter(mt):void 0;return{resolvedConfig:{...y,plugins:g},resolvedRefMap:p,plugins:d}}function PT(e){for(const t of Fd)(void 0)(Y.pathBrowserifyExports.resolve(e,t))}function Dl(e){return"isModule"in e}const Bs=(e,t,r)=>{if(!it(e))return e;(void 0)(Y.pathBrowserifyExports.resolve(Y.pathBrowserifyExports.dirname(t),e));try{return{absolutePath:Y.module.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Tt&&Tt.tagName.toUpperCase()==="SCRIPT"&&Tt.src||new URL("replay-lint-BpueGyWj.js",document.baseURI).href)??__dirname).resolve(e,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:Tt&&Tt.tagName.toUpperCase()==="SCRIPT"&&Tt.src||new URL("replay-lint-BpueGyWj.js",document.baseURI).href)?Y.pathBrowserifyExports.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:Tt&&Tt.tagName.toUpperCase()==="SCRIPT"&&Tt.src||new URL("replay-lint-BpueGyWj.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function wm(e,t,r=!1){if(!e)return[];const n=async p=>{if(!it(p))return p;try{const l=Y.pathBrowserifyExports.isAbsolute(p)?p:Bs(p,Y.pathBrowserifyExports.join(t,_s),t).absolutePath;if(!yT(l)){const d=await ST(l),h=d.default||d,y={contentDir:t},g=Array.isArray(h)?h:[h];for(const P of g)P?.id&&kl(P)&&Me.info(`Deprecated plugin format detected: ${P.id}
|
|
34
34
|
`);const $=kl(h)?h:y_(h)?await h(y):await h?.default?.(y),x=Array.isArray($)?$:[$];$&&bT(l,x.map(P=>({...P,path:p,absolutePath:l})))}return gT(l)}catch(l){throw new Error(`Failed to load plugin "${p}": ${l.message}
|
|
35
35
|
|
|
36
36
|
${l.stack}`)}},i=new Map,o=PT(t);o&&e.push(o);const s=new Set;if(r){const p=[];for(const l of e){if(!it(l)){p.push(l);continue}const d=Y.pathBrowserifyExports.isAbsolute(l)?l:Bs(l,Y.pathBrowserifyExports.join(t,_s),t).absolutePath;s.has(d)||(s.add(d),p.push({absolutePath:d}))}return p}return(await Promise.all(e.map(async p=>{if(it(p)){if(j.isAbsoluteUrl(p))throw new Error(De.red("We don't support remote plugins yet."));if(s.has(p))return;s.add(p)}const l=await n(p);if(!l)return;const d=Array.isArray(l)?l:[l];return(await Promise.all(d.map(async h=>{if(!h)return;const y=h.id;if(typeof y!="string")throw new Error(De.red(`Plugin must define \`id\` property in ${De.blue(p.toString())}.`));if(y===xa)throw new Error(`Plugin id "${y}" is reserved for Recheck presets.`);const g=h.absolutePath??p.toString(),$=i.get(y);if($){if(g!==$)throw new Error(De.red(`Plugin "id" must be unique. Plugin ${De.blue(g)} uses id "${De.blue(y)}" already seen in ${De.blue(g)}`));return}i.set(y,g);const x={id:y,...h.configs?{configs:h.configs}:{},...h.typeExtension?{typeExtension:h.typeExtension}:{}};if(h.rules){if(!h.rules.oas3&&!h.rules.oas2&&!h.rules.async2&&!h.rules.async3&&!h.rules.arazzo1&&!h.rules.overlay1&&!h.rules.openrpc1&&!h.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${p}.`);x.rules={},h.rules.oas3&&(x.rules.oas3=Xe(h.rules.oas3,y)),h.rules.oas2&&(x.rules.oas2=Xe(h.rules.oas2,y)),h.rules.async2&&(x.rules.async2=Xe(h.rules.async2,y)),h.rules.async3&&(x.rules.async3=Xe(h.rules.async3,y)),h.rules.arazzo1&&(x.rules.arazzo1=Xe(h.rules.arazzo1,y)),h.rules.overlay1&&(x.rules.overlay1=Xe(h.rules.overlay1,y)),h.rules.openrpc1&&(x.rules.openrpc1=Xe(h.rules.openrpc1,y)),h.rules.graphql&&(x.rules.graphql=Xe(h.rules.graphql,y))}if(h.preprocessors){if(!h.preprocessors.oas3&&!h.preprocessors.oas2&&!h.preprocessors.async2&&!h.preprocessors.async3&&!h.preprocessors.arazzo1&&!h.preprocessors.overlay1&&!h.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${p}.`);x.preprocessors={},h.preprocessors.oas3&&(x.preprocessors.oas3=Xe(h.preprocessors.oas3,y)),h.preprocessors.oas2&&(x.preprocessors.oas2=Xe(h.preprocessors.oas2,y)),h.preprocessors.async2&&(x.preprocessors.async2=Xe(h.preprocessors.async2,y)),h.preprocessors.async3&&(x.preprocessors.async3=Xe(h.preprocessors.async3,y)),h.preprocessors.arazzo1&&(x.preprocessors.arazzo1=Xe(h.preprocessors.arazzo1,y)),h.preprocessors.overlay1&&(x.preprocessors.overlay1=Xe(h.preprocessors.overlay1,y)),h.preprocessors.openrpc1&&(x.preprocessors.openrpc1=Xe(h.preprocessors.openrpc1,y))}if(h.decorators){if(!h.decorators.oas3&&!h.decorators.oas2&&!h.decorators.async2&&!h.decorators.async3&&!h.decorators.arazzo1&&!h.decorators.overlay1&&!h.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${p}.`);x.decorators={},h.decorators.oas3&&(x.decorators.oas3=Xe(h.decorators.oas3,y)),h.decorators.oas2&&(x.decorators.oas2=Xe(h.decorators.oas2,y)),h.decorators.async2&&(x.decorators.async2=Xe(h.decorators.async2,y)),h.decorators.async3&&(x.decorators.async3=Xe(h.decorators.async3,y)),h.decorators.arazzo1&&(x.decorators.arazzo1=Xe(h.decorators.arazzo1,y)),h.decorators.overlay1&&(x.decorators.overlay1=Xe(h.decorators.overlay1,y)),h.decorators.openrpc1&&(x.decorators.openrpc1=Xe(h.decorators.openrpc1,y))}return h.assertions&&(x.assertions=h.assertions),{...h,...x}}))).filter(mt)}))).filter(mt).flat()}function $T(e,t){const{pluginId:r,configName:n}=f_(e),i=t.find(s=>s.id===r);if(!i)throw new Error(`Invalid config ${De.red(e)}: plugin ${r} is not included.`);const o=i.configs?.[n];if(!o)throw new Error(r?`Invalid config ${De.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${De.red(e)}: there is no such built-in config.`);return o}function AT(e,t){const r=Object.create(null);for(const n of Object.keys(e)){const i=e[n],o=j.isAbsoluteUrl(n)?n:j.resolvePath(t,n);r[o]=Object.create(null);for(const s of Object.keys(i))r[o][s]=new Set(i[s])}return r}async function xm(e,t){const r=e?j.getDir(e):j.isBrowser?"":process.cwd(),n=r?j.resolvePath(r,Li):Li,i=await t.resolveDocument(null,n,!0);return i instanceof Error||!i.parsed?{}:AT(i.parsed||{},r)}async function ET(e={}){const{configPath:t=void 0,customExtends:r,externalRefResolver:n,skipPluginEval:i,plugins:o}=e,s=n??new j.BaseResolver,c=t?await s.resolveDocument(null,t,!0):void 0;if(c instanceof Error)throw c;const{resolvedConfig:p,resolvedRefMap:l,plugins:d}=await vm({rawConfigDocument:c?Sm(c):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:i,plugins:o}),h=await xm(t,s);return new en(p,{configPath:t,document:c,resolvedRefMap:l,plugins:d,ignore:h})}function OT(e){}async function RT(e,{configPath:t,externalRefResolver:r,ignore:n,plugins:i}={}){const o=typeof e=="string"?e:"",s=j.makeDocumentFromString(o,t??"");typeof e!="string"&&e&&(s.parsed=e);const{resolvedConfig:c,resolvedRefMap:p,plugins:l}=await vm({rawConfigDocument:Sm(s),configPath:t,externalRefResolver:r,plugins:i});return new en(c,{configPath:t,document:s,resolvedRefMap:p,plugins:l,ignore:n})}function Sm(e){if(!e.parsed)return e;const{plugins:t,resolve:r,...n}=e.parsed,i={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:i}}var Zo={},vt={},es={},Nl;function bo(){return Nl||(Nl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t;(function(p){p[p.SCALAR=0]="SCALAR",p[p.MAPPING=1]="MAPPING",p[p.MAP=2]="MAP",p[p.SEQ=3]="SEQ",p[p.ANCHOR_REF=4]="ANCHOR_REF",p[p.INCLUDE_REF=5]="INCLUDE_REF"})(t=e.Kind||(e.Kind={}));function r(p,l){var d=l?l.endPosition:p.endPosition+1,h={key:p,value:l,startPosition:p.startPosition,endPosition:d,kind:t.MAPPING,parent:null,errors:[]};return h}e.newMapping=r;function n(p,l,d,h){return{errors:[],referencesAnchor:p,value:h,startPosition:l,endPosition:d,kind:t.ANCHOR_REF,parent:null}}e.newAnchorRef=n;function i(p){p===void 0&&(p="");var l={errors:[],startPosition:-1,endPosition:-1,value:""+p,kind:t.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+p};return typeof p!="string"&&(l.valueObject=p),l}e.newScalar=i;function o(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:t.SEQ,parent:null}}e.newItems=o;function s(){return o()}e.newSeq=s;function c(p){return{errors:[],startPosition:-1,endPosition:-1,mappings:p||[],kind:t.MAP,parent:null}}e.newMap=c})(es)),es}var jt={},Ll;function Er(){if(Ll)return jt;Ll=1,Object.defineProperty(jt,"__esModule",{value:!0});function e(s){return typeof s>"u"||s===null}jt.isNothing=e;function t(s){return typeof s=="object"&&s!==null}jt.isObject=t;function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}jt.toArray=r;function n(s,c){var p,l,d,h;if(c)for(h=Object.keys(c),p=0,l=h.length;p<l;p+=1)d=h[p],s[d]=c[d];return s}jt.extend=n;function i(s,c){var p="",l;for(l=0;l<c;l+=1)p+=s;return p}jt.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return jt.isNegativeZero=o,jt}var ts,Ul;function cn(){if(Ul)return ts;Ul=1;var e=(function(){function t(r,n,i){n===void 0&&(n=null),i===void 0&&(i=!1),this.name="YAMLException",this.reason=r,this.mark=n,this.message=this.toString(!1),this.isWarning=i}return t.isInstance=function(r){if(r!=null&&r.getClassIdentifier&&typeof r.getClassIdentifier=="function")for(var n=0,i=r.getClassIdentifier();n<i.length;n++){var o=i[n];if(o==t.CLASS_IDENTIFIER)return!0}return!1},t.prototype.getClassIdentifier=function(){var r=[];return r.concat(t.CLASS_IDENTIFIER)},t.prototype.toString=function(r){r===void 0&&(r=!1);var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!r&&this.mark&&(n+=" "+this.mark.toString()),n},t.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",t})();return ts=e,ts}var rs,Fl;function _T(){if(Fl)return rs;Fl=1;var e=Er(),t=(function(){function r(n,i,o,s,c){this.name=n,this.buffer=i,this.position=o,this.line=s,this.column=c}return r.prototype.getSnippet=function(n,i){n===void 0&&(n=0),i===void 0&&(i=75);var o,s,c,p,l;if(!this.buffer)return null;for(n=n||4,i=i||75,o="",s=this.position;s>0&&`\0\r
|
|
@@ -127,4 +127,4 @@ ${v.message}
|
|
|
127
127
|
`:"",h=s.message+(l!==""||d!==""?`
|
|
128
128
|
|
|
129
129
|
`:"")+l+d,y={title:s.ruleId,file:j.isAbsoluteUrl(c.source.absoluteRef)?c.source.absoluteRef:Y.pathBrowserifyExports.relative(t,c.source.absoluteRef),line:c.start.line,col:c.start.col,endLine:c.end?.line,endColumn:c.end?.col};Me.output(`::${p} ${r(y)}::${i(h)}
|
|
130
|
-
`)}function r(s){return Object.entries(s).filter(([,c])=>c!=null).map(([c,p])=>`${c}=${o(p)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:Sk,...hk}=to.properties,yk={...to,properties:hk};async function gk(e){const{ref:t,externalRefResolver:r=new j.BaseResolver(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Oa({document:n,...e,externalRefResolver:r})}async function bk(e){const{source:t,absoluteRef:r,externalRefResolver:n=new j.BaseResolver(e.config.resolve)}=e,i=j.makeDocumentFromString(t,r||"/");return Oa({document:i,...e,externalRefResolver:n})}async function Oa(e){const{document:t,customTypes:r,externalRefResolver:n,config:i}=e;if(j.isGraphqlRef(t.source.absoluteRef)){const{lintGraphqlDocument:g}=await Promise.resolve().then(()=>require("./replay-lint-graphql-
|
|
130
|
+
`)}function r(s){return Object.entries(s).filter(([,c])=>c!=null).map(([c,p])=>`${c}=${o(p)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:Sk,...hk}=to.properties,yk={...to,properties:hk};async function gk(e){const{ref:t,externalRefResolver:r=new j.BaseResolver(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Oa({document:n,...e,externalRefResolver:r})}async function bk(e){const{source:t,absoluteRef:r,externalRefResolver:n=new j.BaseResolver(e.config.resolve)}=e,i=j.makeDocumentFromString(t,r||"/");return Oa({document:i,...e,externalRefResolver:n})}async function Oa(e){const{document:t,customTypes:r,externalRefResolver:n,config:i}=e;if(j.isGraphqlRef(t.source.absoluteRef)){const{lintGraphqlDocument:g}=await Promise.resolve().then(()=>require("./replay-lint-graphql-C0_JMlpO.js"));return g({document:t,config:i})}const o=$r(t.parsed),s=i.getRulesForSpecVersion(ba(o)),c=j.normalizeTypes(i.extendTypes(r??Jr(o),o),i),p={problems:[],specVersion:o,config:i,visitorsData:{}},l=Br(s,i,"preprocessors",o),d=Br(s,i,"rules",o);let h=await j.resolveDocument({rootDocument:t,rootType:c.Root,externalRefResolver:n});l.length>0&&(St({document:t,rootType:c.Root,normalizedVisitors:xt(l,c),resolvedRefMap:h,ctx:p}),h=await j.resolveDocument({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const y=xt(d,c);return St({document:t,rootType:c.Root,normalizedVisitors:y,resolvedRefMap:h,ctx:p}),p.problems.map(g=>i.addProblemToIgnore(g))}async function vk(e){const{severity:t,externalRefResolver:r=new j.BaseResolver,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const i={problems:[],specVersion:"config",config:n,visitorsData:{}},o=j.normalizeTypes(e.externalConfigTypes||ma(yk,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:Lt()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Nt()}],c=xt(s,o),p=n.resolvedRefMap||await j.resolveDocument({rootDocument:n.document,rootType:o.ConfigRoot,externalRefResolver:r});return St({document:n.document,rootType:o.ConfigRoot,normalizedVisitors:c,resolvedRefMap:p,ctx:i}),i.problems}exports.AbortFlowError=pT;exports.Ajv=qd;exports.Arazzo1Types=ot;exports.Arazzo1_1Types=Nu;exports.As=qP;exports.Assertions=Bt;exports.AsyncApi2Types=Mu;exports.AsyncApi3Types=Du;exports.CONFIG_BUNDLER_VISITOR_ID=ha;exports.CONFIG_FILE_NAME=_s;exports.Config=en;exports.ConfigTypes=Nd;exports.ConfigValidationError=m_;exports.DEFAULT_CONFIG=Ld;exports.DEFAULT_PROJECT_PLUGIN_PATHS=Fd;exports.Ds=IP;exports.HandledError=zs;exports.IGNORE_BANNER=Ud;exports.IGNORE_FILE=Li;exports.NoUnresolvedRefs=Nt;exports.Oas2Types=Su;exports.Oas3Types=Pt;exports.Oas3_1Types=Fe;exports.Oas3_2Types=nt;exports.OpenRpcTypes=Uu;exports.Overlay1Types=ta;exports.PLUGINS_COLLECTOR_VISITOR_ID=ya;exports.Struct=Lt;exports.bundle=dT;exports.bundleDocument=Pa;exports.bundleFromString=fT;exports.clearPluginsCache=xT;exports.createConfig=RT;exports.createConfigTypes=ma;exports.dequal=Dt;exports.detectSpec=$r;exports.findConfig=OT;exports.formatProblems=uk;exports.getAstNodeByPointer=$m;exports.getCodeframe=Vs;exports.getLineColLocation=Mt;exports.getMajorSpecVersion=ba;exports.getNodeTypesFromJSONSchema=Cd;exports.getPluginCacheVersion=vT;exports.getTotals=Em;exports.getTypes=Jr;exports.initRules=Br;exports.isEmptyObject=hr;exports.isNotEmptyArray=Fr;exports.isString=it;exports.keysOf=Hs;exports.lint=gk;exports.lintConfig=vk;exports.lintDocument=Oa;exports.lintFromString=bk;exports.loadConfig=ET;exports.loadIgnoreConfig=xm;exports.logger=Me;exports.mapTypeToComponent=Fs;exports.normalizeVisitors=xt;exports.o=Ze;exports.pluralize=gy;exports.query=rT;exports.regexFromString=Lr;exports.resolvePlugins=wm;exports.slash=Ks;exports.walkDocument=St;exports.xmlEscape=wt;
|