@redocly/replay 0.27.0-next.7 → 0.27.0-next.8
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-Dub7iVgM.js → replay-AiChatProvider-DHIxHTKX.js} +6 -6
- package/dist/{replay-AiChatProvider-e4PWUCRp.js → replay-AiChatProvider-O8HHQobN.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-DbxNU-ot.js → replay-AiChatSqliteDBStorage-DNMrzkJg.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-CpjwxLnF.js → replay-AiChatSqliteDBStorage-DjUq9VX3.js} +1 -1
- package/dist/{replay-AiPanel-DuRA2zAt.js → replay-AiPanel-CR815YqV.js} +3 -3
- package/dist/{replay-AiPanel-B_zDmo55.js → replay-AiPanel-CfYBCkrN.js} +1 -1
- package/dist/{replay-SqliteDBStorage-CafBNNLB.js → replay-SqliteDBStorage-B3oYWXem.js} +1 -1
- package/dist/{replay-SqliteDBStorage-BrNleq7S.js → replay-SqliteDBStorage-CC9kLioX.js} +1 -1
- package/dist/{replay-agent-loop-CV0s4022.js → replay-agent-loop-CCYOzyHo.js} +3 -3
- package/dist/{replay-agent-loop-CzV79Gr1.js → replay-agent-loop-CTq5eJ4u.js} +1 -1
- package/dist/{replay-ai-chat-mappers-BWeZN6p_.js → replay-ai-chat-mappers-B_wovMvG.js} +1 -1
- package/dist/{replay-ai-chat-mappers-BNsR30dS.js → replay-ai-chat-mappers-C8y5UhCq.js} +1 -1
- package/dist/{replay-create-model-CEDEaJC8.js → replay-create-model-C5yvtnXA.js} +2 -2
- package/dist/{replay-create-model-CmRk68RD.js → replay-create-model-CBCmuEKC.js} +2 -2
- package/dist/{replay-db-BfSnfWcb.js → replay-db-CCBQadnT.js} +1 -1
- package/dist/{replay-db-CM8OLcFK.js → replay-db-DfOjLqsq.js} +1 -1
- package/dist/{replay-external-resolver-bdSEZsNk.js → replay-external-resolver-B6tpqUZt.js} +1 -1
- package/dist/{replay-external-resolver-G86hjAvS.js → replay-external-resolver-BRouROm6.js} +2 -2
- package/dist/{replay-index-DYtNY0OY.js → replay-index-B_OHqSlS.js} +5 -5
- package/dist/{replay-index-D58Mg6_y.js → replay-index-Bzttek8l.js} +1 -1
- package/dist/{replay-index-Cd9LaUVx.js → replay-index-BzzBKjHm.js} +12191 -12184
- package/dist/{replay-index-Bsag-eKM.js → replay-index-Cpkh9r0X.js} +1 -1
- package/dist/{replay-index-BmotNqNI.js → replay-index-Dfnqt_IZ.js} +977 -977
- package/dist/{replay-index-C_eJVbPZ.js → replay-index-Xq6K7XSm.js} +1 -1
- package/dist/{replay-lint-YfaLafO6.js → replay-lint-DlDmPTBV.js} +6950 -6653
- package/dist/{replay-lint-graphql-BRrk1UK5.js → replay-lint-graphql-BQJ00lU4.js} +1 -1
- package/dist/{replay-lint-graphql-GtbZklco.js → replay-lint-graphql-DHOq8lRT.js} +1 -1
- package/dist/replay-lint-gtuMJgII.js +184 -0
- package/dist/{replay-resolve-Bza6lozO.js → replay-resolve-DqFS69S_.js} +1 -1
- package/dist/{replay-resolve-Rb3XjiUd.js → replay-resolve-DsgcWnjC.js} +1 -1
- package/dist/{replay-respect-run-Pkoy4Q3P.js → replay-respect-run-7Cwe1_ri.js} +23 -23
- package/dist/{replay-respect-run-BB0VXCz-.js → replay-respect-run-D1zyh-5j.js} +297 -295
- package/dist/{replay-tauri-path-B8tT4cGY.js → replay-tauri-path-BAY3g5sW.js} +2 -2
- package/dist/{replay-tauri-path-yOFqWleH.js → replay-tauri-path-CaVeI3a-.js} +1 -1
- package/dist/{replay-useAiChatQueries-B7ZcWDmG.js → replay-useAiChatQueries-CxZNLVje.js} +3 -3
- package/dist/{replay-useAiChatQueries-1fqZwVTj.js → replay-useAiChatQueries-D99tAUpY.js} +1 -1
- package/dist/{replay-validate-key-C8-nF61w.js → replay-validate-key-Cv0mvYDS.js} +1 -1
- package/dist/{replay-validate-key-qJOuAQJK.js → replay-validate-key-Di8MCBz7.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +4 -4
- package/dist/replay-lint-CxwKILeF.js +0 -184
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";const se=require("./replay-index-Dfnqt_IZ.js"),M=require("./replay-resolve-DqFS69S_.js");var Bt=typeof document<"u"?document.currentScript:null;function Yo(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--&&Yo(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)||!Yo(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Kr(e){return se.isPlainObject(e)&&Object.keys(e).length===0}function Ba(e){return Array.isArray(e)&&e.length>0}function ot(e){return typeof e=="string"}function mc(e){return e?Object.keys(e):[]}function mg(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 Bo={exports:{}},hg=Bo.exports,ol;function yg(){return ol||(ol=1,(function(e,t){(function(r,n){typeof mg=="function"?e.exports=n():r.pluralize=n()})(hg,function(){var r=[],n=[],i={},o={},s={};function a(_){return typeof _=="string"?new RegExp("^"+_+"$","i"):_}function c(_,$){return _===$?$:_===_.toLowerCase()?$.toLowerCase():_===_.toUpperCase()?$.toUpperCase():_[0]===_[0].toUpperCase()?$.charAt(0).toUpperCase()+$.substr(1).toLowerCase():$.toLowerCase()}function l(_,$){return _.replace(/\$(\d{1,2})/g,function(T,w){return $[w]||""})}function p(_,$){return _.replace($[0],function(T,w){var y=l($[1],arguments);return c(T===""?_[w-1]:T,y)})}function d(_,$,T){if(!_.length||i.hasOwnProperty(_))return $;for(var w=T.length;w--;){var y=T[w];if(y[0].test($))return p($,y)}return $}function g(_,$,T){return function(w){var y=w.toLowerCase();return $.hasOwnProperty(y)?c(w,y):_.hasOwnProperty(y)?c(w,_[y]):d(y,w,T)}}function m(_,$,T,w){return function(y){var S=y.toLowerCase();return $.hasOwnProperty(S)?!0:_.hasOwnProperty(S)?!1:d(S,S,T)===S}}function E(_,$,T){var w=$===1?E.singular(_):E.plural(_);return(T?$+" ":"")+w}return E.plural=g(s,o,r),E.isPlural=m(s,o,r),E.singular=g(o,s,n),E.isSingular=m(o,s,n),E.addPluralRule=function(_,$){r.push([a(_),$])},E.addSingularRule=function(_,$){n.push([a(_),$])},E.addUncountableRule=function(_){if(typeof _=="string"){i[_.toLowerCase()]=!0;return}E.addPluralRule(_,"$0"),E.addSingularRule(_,"$0")},E.addIrregularRule=function(_,$){$=$.toLowerCase(),_=_.toLowerCase(),s[_]=$,o[$]=_},[["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(_){return E.addIrregularRule(_[0],_[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(_){return E.addPluralRule(_[0],_[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(_){return E.addSingularRule(_[0],_[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(E.addUncountableRule),E})})(Bo)),Bo.exports}var gg=yg();const Df=se.getDefaultExportFromCjs(gg);function vg(e,t,r){return e.split(" ").map(n=>Df(n,t,r)).join(" ")}function jf(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function mn(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}const bg=/^[0-9][0-9Xx]{2}$/,wg={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-"},Sg={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-"},_g={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},Eg={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},$g={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},Tg={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},Pg={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},Og={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-"},Ig={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},xg={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},Rg={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},Ag={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-"},Ng={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-"},kg={properties:{default:"Response"},additionalProperties:(e,t)=>bg.test(t)?"Response":void 0},qg={properties:{description:{type:"string"},schema:"Schema",headers:M.mapOf("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Cg={properties:{},additionalProperties:{isExample:!0}},Dg={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 se.isPlainObject(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},jg={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Mg={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},Lg={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)?M.listOf("Schema"):"Schema",allOf:M.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-"},Ug={properties:{},additionalProperties:{type:"string"}},Fg={properties:{},additionalProperties:"Schema"},Vg={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},Bg={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:{type:"object",additionalProperties:{type:"string"}},"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-"},zg={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Kg={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},Mf={Root:wg,Tag:jg,TagList:M.listOf("Tag"),TagGroups:M.listOf("TagGroup"),TagGroup:Mg,ExternalDocs:Rg,Example:Kg,ExamplesMap:M.mapOf("Example"),EnumDescriptions:Ug,SecurityRequirement:zg,SecurityRequirementList:M.listOf("SecurityRequirement"),Info:Sg,Contact:Eg,License:$g,Logo:_g,Paths:Tg,PathItem:Pg,Parameter:Ag,ParameterItems:Ng,ParameterList:M.listOf("Parameter"),Operation:Og,Examples:Cg,Header:Dg,Responses:kg,Response:qg,Schema:Lg,Xml:Vg,SchemaProperties:Fg,NamedSchemas:M.mapOf("Schema"),NamedResponses:M.mapOf("Response"),NamedParameters:M.mapOf("Parameter"),NamedSecuritySchemes:M.mapOf("SecurityScheme"),SecurityScheme:Bg,XCodeSample:Ig,XCodeSampleList:M.listOf("XCodeSample"),XServerList:M.listOf("XServer"),XServer:xg},Gg=/^[0-9][0-9Xx]{2}$/,Hg={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."},Yg={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."},Qg={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"},Jg={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"},Wg={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."},Xg={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."},Zg={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."},ev={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"},tv={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."},rv={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."},nv={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."},iv={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"},ov={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},sv={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"},av={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"},cv={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"},lv={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."},uv={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."},pv={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},dv={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"},fv={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"},mv={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"},hv={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"},yv={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."},gv={properties:{default:"Response"},additionalProperties:(e,t)=>Gg.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"},vv={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."},bv={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."},wv={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:M.listOf("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),anyOf:M.listOf("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),oneOf:M.listOf("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?M.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"},Sv={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."},_v={properties:{},additionalProperties:"Schema"},Ev={properties:{},additionalProperties:e=>typeof e=="string"&&M.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},$v={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."},Tv={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"},Pv={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."},Ov={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."},Iv={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."},xv={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."},Rv={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},Av={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-"},Nv={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"},At={Root:Hg,Tag:Yg,TagList:M.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:M.listOf("TagGroup"),TagGroup:Qg,ExternalDocs:Jg,Server:Wg,ServerList:M.listOf("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:Xg,ServerVariablesMap:M.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:Zg,SecurityRequirementList:M.listOf("SecurityRequirement"),Info:ev,Contact:rv,License:nv,Paths:iv,PathItem:sv,Parameter:av,ParameterList:M.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:cv,Callback:M.mapOf("PathItem",{description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:M.mapOf("Callback"),RequestBody:uv,MediaTypesMap:pv,MediaType:dv,Example:fv,ExamplesMap:M.mapOf("Example"),Encoding:mv,EncodingMap:M.mapOf("Encoding"),EnumDescriptions:hv,Header:yv,HeadersMap:M.mapOf("Header"),Responses:gv,Response:vv,Link:bv,Logo:tv,Schema:wv,Xml:Sv,SchemaProperties:_v,DiscriminatorMapping:Ev,Discriminator:$v,Components:Tv,LinksMap:M.mapOf("Link"),NamedSchemas:M.mapOf("Schema"),NamedResponses:M.mapOf("Response"),NamedParameters:M.mapOf("Parameter"),NamedExamples:M.mapOf("Example"),NamedRequestBodies:M.mapOf("RequestBody"),NamedHeaders:M.mapOf("Header"),NamedSecuritySchemes:M.mapOf("SecurityScheme"),NamedLinks:M.mapOf("Link"),NamedCallbacks:M.mapOf("Callback"),ImplicitFlow:Pv,PasswordFlow:Ov,ClientCredentials:Iv,AuthorizationCode:xv,OAuth2Flows:Rv,SecurityScheme:Av,XCodeSample:lv,XCodeSampleList:M.listOf("XCodeSample"),XUsePkce:Nv,WebhooksMap:ov},kv={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."},qv={...At.License,properties:{...At.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},Cv={...At.Info,properties:{...At.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Dv={...At.Components,properties:{...At.Components.properties,pathItems:"NamedPathItems"}},jv={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."},Mv={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:M.listOf("Schema"),anyOf:M.listOf("Schema"),oneOf:M.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:M.mapOf("Schema"),dependentRequired:"DependentRequired",prefixItems:M.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-"},sl={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Lv={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-"},Uv={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Ge={...At,Info:Cv,Root:kv,Schema:Mv,SchemaProperties:sl,PatternProperties:sl,License:qv,Components:Dv,NamedPathItems:M.mapOf("PathItem"),SecurityScheme:Lv,Operation:jv,DependentRequired:Uv},Fv={...Ge.Root,properties:{...Ge.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."}}},Vv={...Ge.Tag,properties:{...Ge.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."},Bv={...Ge.Server,properties:{...Ge.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."},zv={...Ge.SecurityScheme,properties:{...Ge.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."},Kv={...Ge.OAuth2Flows,properties:{...Ge.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Gv={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:M.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."},Hv={...At.PathItem,properties:{...At.PathItem.properties,query:"Operation",additionalOperations:M.mapOf("Operation")}},Yv={...Ge.Parameter,properties:{...Ge.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"]}}},Qv={...Ge.Response,properties:{...Ge.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},Jv={...Ge.MediaType,properties:{...Ge.MediaType.properties,itemSchema:"Schema",prefixEncoding:M.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"}},Wv={...Ge.Discriminator,properties:{...Ge.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 M.isMappingRef(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},Xv={properties:{...Ge.Components.properties,mediaTypes:"NamedMediaTypes"}},Zv={...Ge.Example,properties:{...Ge.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={...Ge.Schema,properties:{...Ge.Schema.properties,xml:"Xml"}},it={...Ge,Root:Fv,Tag:Vv,Server:Bv,SecurityScheme:zv,OAuth2Flows:Kv,DeviceAuthorization:Gv,PathItem:Hv,Parameter:Yv,Response:Qv,MediaType:Jv,Discriminator:Wv,Example:Zv,Xml:eb,Schema:tb,Components:Xv,NamedMediaTypes:M.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."},lb={properties:{},description:"Protocol-specific information for a WebSockets operation."},ub={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"}}},pb={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."},vb={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},bb={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."},Sb={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."},_b={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},Eb={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."},Tb={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},Pb={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},Ob={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},Ib={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},xb={properties:{},description:"Protocol-specific information for an MQTT channel."},Rb={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},Ab={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>se.isPlainObject(e)?"Schema":{type:"integer"},maximumPacketSize:e=>se.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},Nb={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>se.isPlainObject(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},kb={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>se.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},qb={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},Cb={properties:{sessionExpiryInterval:e=>se.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},Db={properties:{},description:"Protocol-specific information for an MQTT 5 message."},jb={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},Mb={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."},Vb={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."},zb={properties:{jmsConnectionFactory:{type:"string"},properties:M.listOf("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Kb={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Gb={properties:{},description:"Protocol-specific information for a JMS operation."},Hb={properties:{},description:"Protocol-specific information for a Solace channel."},Yb={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Qb={properties:{},description:"Protocol-specific information for a Solace message."},Jb={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"}}}},Wb={properties:{bindingVersion:{type:"string"},destinations:M.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."},e0={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},t0={properties:{statements:M.listOf("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},r0={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},n0={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},i0={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."},o0={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."},s0={properties:{topic:"SnsIdentifier",consumers:M.listOf("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},a0={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},c0={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},l0={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},u0={properties:{statements:M.listOf("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},Lf={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)."},p0={...Lf,required:["name"],description:"Describes an SQS queue (operation-level definition)."},d0={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},f0={properties:{queues:M.listOf("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},m0={properties:{},description:"Protocol-specific information for a STOMP channel."},h0={properties:{},description:"Protocol-specific information for a STOMP server."},y0={properties:{},description:"Protocol-specific information for a STOMP message."},g0={properties:{},description:"Protocol-specific information for a STOMP operation."},v0={properties:{},description:"Protocol-specific information for a Redis channel."},b0={properties:{},description:"Protocol-specific information for a Redis server."},w0={properties:{},description:"Protocol-specific information for a Redis message."},S0={properties:{},description:"Protocol-specific information for a Redis operation."},_0={properties:{},description:"Protocol-specific information for a Mercure channel."},E0={properties:{},description:"Protocol-specific information for a Mercure server."},$0={properties:{},description:"Protocol-specific information for a Mercure message."},T0={properties:{},description:"Protocol-specific information for a Mercure operation."},P0={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."},O0={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},I0={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},x0={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."},R0={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."},A0={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},N0={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."},k0={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."},q0={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},C0={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},D0={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},j0={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},M0={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."},L0={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},U0={properties:{},description:"Protocol-specific information for a ROS 2 channel."},F0={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."},V0={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."},B0={properties:{},description:"Protocol-specific information for a ROS 2 message."},z0={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."},K0={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."},G0={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."},H0={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."},Ut={HttpServerBinding:nb,HttpChannelBinding:rb,HttpMessageBinding:ib,HttpOperationBinding:ob,WsServerBinding:ab,WsChannelBinding:sb,WsMessageBinding:cb,WsOperationBinding:lb,KafkaServerBinding:db,KafkaTopicConfiguration:ub,KafkaChannelBinding:pb,KafkaMessageBinding:fb,KafkaOperationBinding:mb,AnypointmqServerBinding:yb,AnypointmqChannelBinding:hb,AnypointmqMessageBinding:gb,AnypointmqOperationBinding:vb,AmqpServerBinding:_b,AmqpChannelExchange:bb,AmqpChannelQueue:wb,AmqpChannelBinding:Sb,AmqpMessageBinding:Eb,AmqpOperationBinding:$b,Amqp1ServerBinding:Pb,Amqp1ChannelBinding:Tb,Amqp1MessageBinding:Ob,Amqp1OperationBinding:Ib,MqttServerBindingLastWill:Rb,MqttServerBinding:Ab,MqttChannelBinding:xb,MqttMessageBinding:Nb,MqttOperationBinding:kb,Mqtt5ServerBinding:Cb,Mqtt5ChannelBinding:qb,Mqtt5MessageBinding:Db,Mqtt5OperationBinding:jb,NatsServerBinding:Lb,NatsChannelBinding:Mb,NatsMessageBinding:Ub,NatsOperationBinding:Fb,JmsServerBindingProperty:Bb,JmsServerBinding:zb,JmsChannelBinding:Vb,JmsMessageBinding:Kb,JmsOperationBinding:Gb,SolaceServerBinding:Yb,SolaceChannelBinding:Hb,SolaceMessageBinding:Qb,SolaceDestination:Jb,SolaceOperationBinding:Wb,StompServerBinding:h0,StompChannelBinding:m0,StompMessageBinding:y0,StompOperationBinding:g0,RedisServerBinding:b0,RedisChannelBinding:v0,RedisMessageBinding:w0,RedisOperationBinding:S0,MercureServerBinding:E0,MercureChannelBinding:_0,MercureMessageBinding:$0,MercureOperationBinding:T0,SnsIdentifier:Xb,SnsOrdering:Zb,SnsStatement:e0,SnsPolicy:t0,SnsChannelBinding:r0,SnsRedrivePolicy:n0,SnsDeliveryPolicy:i0,SnsConsumer:o0,SnsOperationBinding:s0,SqsIdentifier:a0,SqsRedrivePolicy:c0,SqsStatement:l0,SqsPolicy:u0,SqsQueue:Lf,SqsOperationQueue:p0,SqsChannelBinding:d0,SqsOperationBinding:f0,IbmmqServerBinding:P0,IbmmqChannelQueue:O0,IbmmqChannelTopic:I0,IbmmqChannelBinding:x0,IbmmqMessageBinding:R0,GooglepubsubMessageStoragePolicy:A0,GooglepubsubSchemaSettings:N0,GooglepubsubChannelBinding:k0,GooglepubsubSchema:q0,GooglepubsubMessageBinding:C0,PulsarServerBinding:D0,PulsarRetention:j0,PulsarChannelBinding:M0,ServerBindings:z0,ChannelBindings:K0,MessageBindings:H0,OperationBindings:G0},Y0={Ros2ServerBinding:L0,Ros2ChannelBinding:U0,Ros2OperationBinding:V0,Ros2QosPolicies:F0,Ros2MessageBinding:B0},hc={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:M.listOf("Schema"),anyOf:M.listOf("Schema"),oneOf:M.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?M.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"}},yc={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},gc={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},vc={properties:{},additionalProperties:e=>typeof e=="string"&&M.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},bc={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Q0={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"]},J0={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."},W0={properties:{},additionalProperties:"Channel"},Uf={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."},Ff={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."},X0={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."},Z0={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."},Vf={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},Bf={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."},ew={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."},zf={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."},Kf={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."},tw={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."},Gf={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."},rw={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."},nw={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."},iw={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."},ow={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."},Hf={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."},sw={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"}},aw={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],description:"Configuration for the OAuth Implicit flow."},cw={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Password flow."},lw={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Client Credentials flow."},uw={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."},Yf={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},pw={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."},Qf={...Ut,Root:Q0,Tag:Uf,TagList:M.listOf("Tag"),ServerMap:Vf,ExternalDocs:Ff,Server:Z0,ServerVariable:Bf,ServerVariablesMap:M.mapOf("ServerVariable"),SecurityRequirement:X0,SecurityRequirementList:M.listOf("SecurityRequirement"),Info:ew,Contact:zf,License:Kf,ChannelMap:W0,Channel:J0,Parameter:tw,ParametersMap:M.mapOf("Parameter"),Operation:ow,Schema:hc,MessageExample:Hf,SchemaProperties:yc,DiscriminatorMapping:vc,Discriminator:bc,Components:sw,NamedSchemas:M.mapOf("Schema"),NamedMessages:M.mapOf("Message"),NamedMessageTraits:M.mapOf("MessageTrait"),NamedOperationTraits:M.mapOf("OperationTrait"),NamedParameters:M.mapOf("Parameter"),NamedSecuritySchemes:M.mapOf("SecurityScheme"),NamedCorrelationIds:M.mapOf("CorrelationId"),ImplicitFlow:aw,PasswordFlow:cw,ClientCredentials:lw,AuthorizationCode:uw,SecuritySchemeFlows:Yf,SecurityScheme:pw,Message:rw,OperationTrait:nw,OperationTraitList:M.listOf("OperationTrait"),MessageTrait:iw,MessageTraitList:M.listOf("MessageTrait"),MessageExampleList:M.listOf("MessageExample"),CorrelationId:Gf,Dependencies:gc},dw={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."},fw={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."},mw={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."},hw={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."},yw={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."},gw={properties:{headers:"Schema",payload:e=>e&&e?.schemaFormat?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"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"},additionalProperties:{},description:"Describes a message received on a given channel and operation."},vw={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."},bw={properties:{headers:e=>typeof e=="function"||se.isPlainObject(e)?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"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"},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."},ww={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"]},Sw={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."},_w={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."},Ew={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."},$w={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"],description:"Configuration for the OAuth Implicit flow."},Tw={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."},Pw={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Client Credentials flow."},Ow={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."},Iw={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."},xw={...Ut.ServerBindings,properties:{...Ut.ServerBindings.properties,ros2:"Ros2ServerBinding"}},Rw={...Ut.ChannelBindings,properties:{...Ut.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},Aw={...Ut.OperationBindings,properties:{...Ut.OperationBindings.properties,ros2:"Ros2OperationBinding"}},Nw={...Ut.MessageBindings,properties:{...Ut.MessageBindings.properties,ros2:"Ros2MessageBinding"}},Jf={...Ut,...Y0,ServerBindings:xw,ChannelBindings:Rw,OperationBindings:Aw,MessageBindings:Nw,CorrelationId:Gf,SecuritySchemeFlows:Yf,ServerVariable:Bf,Contact:zf,License:Kf,MessageExample:Hf,Tag:Uf,Dependencies:gc,Schema:hc,Discriminator:bc,DiscriminatorMapping:vc,SchemaProperties:yc,ServerMap:Vf,ExternalDocs:Ff,Root:dw,Channel:fw,Parameter:yw,Info:hw,Server:mw,MessageTrait:bw,Operation:ww,OperationReply:Sw,OperationReplyAddress:_w,Components:Ew,ImplicitFlow:$w,PasswordFlow:Tw,ClientCredentials:Pw,AuthorizationCode:Ow,SecurityScheme:Iw,Message:gw,OperationTrait:vw,ServerVariablesMap:M.mapOf("ServerVariable"),NamedTags:M.mapOf("Tag"),NamedExternalDocs:M.mapOf("ExternalDocs"),NamedChannels:M.mapOf("Channel"),ParametersMap:M.mapOf("Parameter"),NamedOperations:M.mapOf("Operation"),NamedOperationReplies:M.mapOf("OperationReply"),NamedOperationRelyAddresses:M.mapOf("OperationReplyAddress"),NamedSchemas:M.mapOf("Schema"),NamedMessages:M.mapOf("Message"),NamedMessageTraits:M.mapOf("MessageTrait"),NamedOperationTraits:M.mapOf("OperationTrait"),NamedParameters:M.mapOf("Parameter"),NamedSecuritySchemes:M.mapOf("SecurityScheme"),NamedCorrelationIds:M.mapOf("CorrelationId"),ServerList:M.listOf("Server"),SecuritySchemeList:M.listOf("SecurityScheme"),MessageList:M.listOf("Message"),OperationTraitList:M.listOf("OperationTrait"),MessageTraitList:M.listOf("MessageTrait"),MessageExampleList:M.listOf("MessageExample"),TagList:M.listOf("Tag")},kw={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-"},qw={properties:{},additionalProperties:"Parameter"},Cw={properties:{},additionalProperties:"SuccessActionObject"},Dw={properties:{},additionalProperties:"FailureActionObject"},jw={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},Mw=M.mapOf("Schema"),Lw={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."},Uw={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},Fw={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."},Vw={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."},Bw={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."},zw={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."},Kw={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},Gw={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."},Hw=M.listOf("Workflow"),Yw=M.listOf("Step"),Qw={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:M.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."},Jw={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_.-]+$."},Ww={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:M.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."},Xw={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."},Zw={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."},eS={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."},tS={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."},rS={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},nS={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},iS={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:M.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."},oS={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},sS={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:M.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."},aS={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},at={Root:kw,Info:Lw,SourceDescriptions:Uw,OpenAPISourceDescription:Fw,ArazzoSourceDescription:Vw,Parameters:Kw,Parameter:zw,ReusableObject:Bw,Workflows:Hw,Workflow:Gw,Steps:Yw,Step:Qw,RequestBody:Ww,Replacement:Xw,ExtendedOperation:eS,ExtendedSecurityList:M.listOf("ExtendedSecurity"),ExtendedSecurity:Zw,Outputs:Jw,CriterionObject:tS,XPathCriterion:nS,JSONPathCriterion:rS,SuccessActionObject:iS,OnSuccessActionList:oS,FailureActionObject:sS,OnFailureActionList:aS,Schema:it.Schema,NamedSchemas:M.mapOf("Schema"),ExternalDocs:it.ExternalDocs,DiscriminatorMapping:it.DiscriminatorMapping,Discriminator:it.Discriminator,DependentRequired:it.DependentRequired,SchemaProperties:it.SchemaProperties,PatternProperties:it.SchemaProperties,Components:jw,NamedInputs:Mw,NamedParameters:qw,NamedSuccessActions:Cw,NamedFailureActions:Dw,Xml:it.Xml,SecurityScheme:it.SecurityScheme,OAuth2Flows:it.OAuth2Flows,ImplicitFlow:it.ImplicitFlow,PasswordFlow:it.PasswordFlow,ClientCredentials:it.ClientCredentials,AuthorizationCode:it.AuthorizationCode,DeviceAuthorization:it.DeviceAuthorization},cS={...at.Root,properties:{...at.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."}}},lS={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},uS={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."},pS={...at.Parameter,properties:{...at.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.'}}},dS={...at.Step,properties:{...at.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"]},fS={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},mS={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},hS={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},yS={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"]},gS=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",wc=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:gS(n)},vS={...at.CriterionObject,properties:{...at.CriterionObject.properties,type:wc(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},bS={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:wc(["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."},wS={properties:{},additionalProperties:e=>se.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_.-]+$."},SS={...at.Replacement,properties:{...at.Replacement.properties,value:e=>se.isPlainObject(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:wc(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},_S={...at.SuccessActionObject,properties:{...at.SuccessActionObject.properties,parameters:"Parameters"}},ES={...at.FailureActionObject,properties:{...at.FailureActionObject.properties,parameters:"Parameters"}},Wf={...at,Root:cS,SourceDescriptions:lS,AsyncAPISourceDescription:uS,Parameter:pS,Step:dS,CriterionObject:vS,JSONPathExpression:fS,XPathExpression:mS,JSONPointerExpression:hS,ExpressionType:yS,SelectorObject:bS,Outputs:wS,Replacement:SS,SuccessActionObject:_S,FailureActionObject:ES},$S={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."},info:"Info",extends:{type:"string",description:"URI reference that identifies the target document (such as an [OpenAPI] document) this overlay applies to."},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},TS={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."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},PS=M.listOf("Action"),OS={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:{},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"},Xf={Root:$S,Info:TS,Actions:PS,Action:OS},IS={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."},xS={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."},RS={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."},AS={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."},NS={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."},kS={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."},qS={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."},CS={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."},DS={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."},jS={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."},MS={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."},LS={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."},US={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."},FS={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."},VS={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."},Zf={Root:IS,Info:xS,Contact:RS,License:AS,Server:NS,ServerList:M.listOf("Server"),ServerVariable:kS,ServerVariablesMap:M.mapOf("ServerVariable"),Method:qS,MethodList:M.listOf("Method"),ContentDescriptor:CS,ContentDescriptorList:M.listOf("ContentDescriptor"),ExamplePairing:DS,ExamplePairingList:M.listOf("ExamplePairing"),Example:jS,ExampleList:M.listOf("Example"),Link:MS,LinkList:M.listOf("Link"),ErrorObject:LS,ErrorList:M.listOf("ErrorObject"),Components:US,Tag:FS,TagList:M.listOf("Tag"),ExternalDocs:VS,Schema:hc,SchemaProperties:yc,Dependencies:gc,DiscriminatorMapping:vc,Discriminator:bc,NamedContentDescriptors:M.mapOf("ContentDescriptor"),NamedSchemas:M.mapOf("Schema"),NamedExamples:M.mapOf("Example"),NamedLinks:M.mapOf("Link"),NamedErrors:M.mapOf("ErrorObject"),NamedExamplePairingObjects:M.mapOf("ExamplePairing"),NamedTags:M.mapOf("Tag")};var em={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},en={type:"object",properties:em,additionalProperties:!1},BS={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},$n={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:{...em,like:en,dislike:en,satisfied:en,neutral:en,dissatisfied:en},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:BS},additionalProperties:!1}},additionalProperties:!1},zS={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},Sc={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},za={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:$n,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Sc,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:zS,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Rr={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},KS={type:"object",properties:{name:{type:"string"},items:Rr,queries:Rr,mutations:Rr,subscriptions:Rr,types:Rr,directives:Rr},required:["name"],additionalProperties:!1},GS={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:KS},otherItemsGroupName:{type:"string"}}},HS={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},YS={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},QS={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:HS,license:YS},additionalProperties:!1},Qo={type:"object",properties:{menu:{type:"object",properties:{...GS.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:Sc,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},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:$n,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:QS},additionalProperties:!1},JS={type:"object",properties:{downloadUrls:Sc,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:$n,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},WS={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"]},XS={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"}}},al={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},ZS={type:"object",properties:{beforeInfo:{type:"array",items:al},end:{type:"array",items:al}}},Sr={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Vn={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},e_={type:"object",properties:gs(Sr.properties,["light","dark"])},t_={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"}}},r_={type:"object",properties:{error:Vn,info:Vn,redirect:Vn,success:Vn}},n_={type:"object",properties:Yr(Sr.properties,["dark"])},i_={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},o_={type:"object",properties:{accent:Sr,border:e_,error:Sr,http:t_,primary:Sr,responses:r_,secondary:n_,success:Sr,text:i_,tonalOffset:{type:"number"},warning:Sr}},Bn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},s_={type:"object",properties:{small:Bn,medium:Bn,large:Bn,xlarge:Bn}},Ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},a_={type:"object",properties:{...Yr(Ft.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:s_}},cl={type:"object",properties:gs(Ft.properties,["fontSize","lineHeight"])},c_={type:"object",properties:{medium:cl,small:cl}},l_={type:"object",properties:{...Yr(Ft.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:c_}},u_={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},p_={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},ll={type:"object",properties:{fullWidth:{type:"boolean"}}},d_={type:"object",properties:{buttons:a_,httpBadges:l_,layoutControls:u_,panels:p_,tryItButton:ll,tryItSendButton:ll}},Jo={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},f_={type:"object",properties:{maxWidth:Jo}},m_={type:"object",properties:{maxWidth:Jo,middlePanelMaxWidth:Jo}},h_={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:f_,"three-panel":m_}},ul={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},y_={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:ul,defaultDetailsWidth:{type:"string"},examples:ul,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},tm={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},g_={type:"object",properties:gs(tm.properties,["textTransform"])},v_={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},b_={type:"object",properties:{...Yr(Ft.properties,["fontWeight","lineHeight"]),activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:tm,level1items:g_,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:v_,textColor:{type:"string"},width:{type:"string"}}},zn={type:"object",properties:{...Ft.properties,color:{type:"string"},transform:{type:"string"}}},w_={type:"object",properties:{...Ft.properties,backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},S_={type:"object",properties:Yr(Ft.properties,["fontSize"])},__={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},E_={type:"object",properties:{code:w_,fieldName:Ft,...gs(Ft.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:zn,heading2:zn,heading3:zn,headings:S_,lineHeight:{type:"string"},links:__,optimizeSpeed:{type:"boolean"},rightPanelHeading:zn,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},$_={type:"object",properties:{color:{type:"string"},...Yr(Ft.properties,["fontWeight"])}},T_={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:$_}},P_={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},O_={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},pl={type:"object",properties:{custom:{type:"string"}}},I_={type:"object",properties:{DownloadButton:pl,NextSectionButton:pl}},x_={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},R_={type:"object",properties:{borderRadius:{type:"string"}}},A_={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},N_={type:"object",properties:{breakpoints:Jo,codeBlock:T_,colors:o_,components:d_,layout:h_,logo:P_,fab:O_,overrides:I_,rightPanel:x_,schema:y_,shape:R_,sidebar:b_,spacing:A_,typography:E_,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},k_={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:WS}},required:["languages"]},q_={properties:{theme:N_,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:k_,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:XS,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:ZS,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 gs(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function Yr(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var vt={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"},C_={rules:vt,oas2Rules:vt,oas3_0Rules:vt,oas3_1Rules:vt,oas3_2Rules:vt,async2Rules:vt,async3Rules:vt,arazzo1Rules:vt,arazzo1_1Rules:vt,overlay1Rules:vt,openrpc1Rules:vt,graphqlRules:vt},_t={nodeTypeName:void 0,type:"object",additionalProperties:!0},D_={preprocessors:_t,oas2Preprocessors:_t,oas3_0Preprocessors:_t,oas3_1Preprocessors:_t,oas3_2Preprocessors:_t,async2Preprocessors:_t,async3Preprocessors:_t,arazzo1Preprocessors:_t,arazzo1_1Preprocessors:_t,overlay1Preprocessors:_t,openrpc1Preprocessors:_t},Et={nodeTypeName:void 0,type:"object",additionalProperties:!0},j_={decorators:Et,oas2Decorators:Et,oas3_0Decorators:Et,oas3_1Decorators:Et,oas3_2Decorators:Et,async2Decorators:Et,async3Decorators:Et,arazzo1Decorators:Et,arazzo1_1Decorators:Et,overlay1Decorators:Et,openrpc1Decorators:Et},M_={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"},vs={...C_,...j_,...D_,extends:M_},rm=e=>e,pt=rm({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),et={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},dl={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"}},required:["src"],additionalProperties:!0},Vs={type:"object",properties:{page:{type:"string"},directory:{type:"string"},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}}},_c={type:"array",items:{...Vs,properties:{...Vs.properties,items:{type:"array",items:Vs}}}},L_={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},U_={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},F_={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}},V_={type:"object",properties:{facets:F_,...et.properties},additionalProperties:!1},B_={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},nm={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},im={type:"object",properties:{items:_c,...et.properties},additionalProperties:!1},om={type:"object",additionalProperties:L_},sm={type:"object",properties:{items:_c,copyrightText:{type:"string"},logo:et,...et.properties},additionalProperties:!1},am={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...et.properties},additionalProperties:!1},cm={type:"object",properties:{head:{type:"array",items:dl},body:{type:"array",items:dl}},additionalProperties:!1},lm={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}},um={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:U_,filters:V_,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:B_},...et.properties},additionalProperties:!1},pm={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},dm={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...et.properties},additionalProperties:!1},fm={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},z_={type:"object",properties:{...et.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},mm={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...et.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...et.properties},additionalProperties:!1},actions:z_},additionalProperties:!1},hm={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...et.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...et.properties},additionalProperties:!1},expand:{type:"object",properties:{...et.properties},additionalProperties:!1},collapse:{type:"object",properties:{...et.properties},additionalProperties:!1}},additionalProperties:!1},ym={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"},...et.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...et.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...et.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Wo={...za,properties:{...za.properties,...q_.properties}};({...za.properties});var K_={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},G_={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"]},H_={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Y_={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Q_={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"]},J_={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},W_={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"]},X_={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"]},Z_={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:X_}},additionalProperties:!1,required:["trackingId"]},gm={type:"object",properties:{adobe:K_,amplitude:G_,fullstory:H_,heap:Y_,rudderstack:Q_,segment:J_,gtm:W_,ga:Z_}},vm={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"},...et.properties},additionalProperties:!1},bm={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},wm={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},eE={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"}}}},tE={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:eE},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:_c,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Xo={type:"object",patternProperties:{".*":tE}},Zo={nodeTypeName:pt.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:pt.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:pt.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:pt.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...vs},additionalProperties:!1}},targets:{nodeTypeName:pt.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:pt.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:pt.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:pt.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},rE={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},nE={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},iE={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},zt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:nE},excludes:{type:"array",items:rE},filters:{type:"array",items:iE},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},oE={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},sE={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:oE},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},aE={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:sE,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},cE={type:"object",additionalProperties:aE},Sm={type:"object",properties:{show:{type:"boolean"},entityTypes:cE,catalogs:{type:"object",properties:{all:zt,services:zt,domains:zt,teams:zt,users:zt,apiDescriptions:zt,dataSchemas:zt,apiOperations:zt},additionalProperties:zt}},additionalProperties:!1},fl={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Ec={type:"string",enum:["and","or"]},Ka={type:"object",properties:{field:{type:"string"},operator:fl,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:fl,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},lE={type:"object",properties:{operator:Ec,conditions:{type:"array",items:Ka}},required:["operator","conditions"],additionalProperties:!1},ml={type:"array",items:{oneOf:[Ka,{type:"object",properties:{operator:Ec,conditions:{type:"array",items:{oneOf:[Ka,lE]}}},required:["operator","conditions"],additionalProperties:!1}]}},_m={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},uE={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:_m},required:["subject","assertions"],additionalProperties:!1}},pE={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:_m,where:uE,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},dE={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},pE]}},fE={type:"object",properties:{name:{type:"string"},extends:vs.extends,rules:dE},required:["name"],additionalProperties:!1},hl={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},mE={oneOf:[hl,{type:"array",items:hl}]},hE={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[ml,{type:"object",properties:{operator:Ec,conditions:ml},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:fE,minItems:1},trigger:mE},required:["name","key","entities","levels"],additionalProperties:!1},Em={type:"array",items:hE},jt={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:nm,navbar:im,products:om,footer:sm,sidebar:am,scripts:cm,links:lm,feedback:$n,search:um,aiAssistant:pm,colorMode:dm,palette:fm,navigation:mm,codeSnippet:hm,markdown:ym,openapi:Wo,asyncapi:JS,graphql:Qo,analytics:gm,userMenu:vm,versionPicker:bm,breadcrumbs:wm,catalog:Xo,entitiesCatalog:Sm,catalogClassic:Xo,scorecard:Zo,scorecardClassic:Zo,scorecards:Em},additionalProperties:!0},yE=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(yE||{}),gE=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(gE||{}),vE=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(vE||{}),bE="^[a-z0-9]+(?:-[a-z0-9]+)*$",$m="redocly",wE=[$m,"corporate","guest"],yl=["REDOCLY","CORPORATE","GUEST"],SE={type:"object",additionalProperties:{type:"string"}},_E={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Kn={type:"string",enum:["error","warn","off"]},EE={type:"object",additionalProperties:!1,properties:{schemaCheck:Kn,statusCodeCheck:Kn,contentTypeCheck:Kn,successCriteriaCheck:Kn}},$E={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},TE={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},PE={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},OE={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:[$E,TE]},inputs:SE,servers:_E,severity:EE,slo:PE},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},IE={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},xE={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:IE,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},RE={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"]},AE={oneOf:[xE,RE],discriminator:{propertyName:"type"}},NE={type:"object",additionalProperties:AE},Tm={oneOf:[{type:"array",items:{type:"string",enum:yl},uniqueItems:!0},{type:"string",enum:yl}]},gl={type:"string",pattern:bE,not:{enum:wE.filter(e=>e!==$m)}},Pm={oneOf:[{type:"array",items:gl,uniqueItems:!0},gl]},Om={type:"boolean"},Im={type:"string",pattern:"^https?://.*"},xm={type:"string",pattern:"^https?://.*"},kE={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:pt.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},qE={type:"object",additionalProperties:kE,nodeTypeName:pt.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"},CE={type:"string",enum:["info","success","warning","error"]},Fe={type:"object",additionalProperties:{type:"string"}},DE={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:CE,rbac:Fe,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},jE={type:"array",items:DE},ME={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Fe,openapi:Wo,graphql:Qo,theme:{type:"object",properties:{openapi:Wo,graphql:Qo},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...vs},required:["root"]},LE={type:"object",additionalProperties:!0},UE={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},FE={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},VE={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},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:FE},additionalProperties:!1},BE={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},zE={type:"object",properties:{catalogs:{type:"object",properties:{all:Fe,services:Fe,domains:Fe,teams:Fe,users:Fe,apiDescriptions:Fe,dataSchemas:Fe,apiOperations:Fe},additionalProperties:Fe},entitiesTypes:{type:"object",properties:{service:Fe,domain:Fe,team:Fe,user:Fe,apiDescription:Fe,apiOperation:Fe,dataSchema:Fe},additionalProperties:Fe},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Fe},additionalProperties:!1}},entities:{type:"object",properties:{"**":Fe},additionalProperties:Fe}},additionalProperties:!1},Rm={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Fe,cms:Fe,reunite:Fe,features:{type:"object",properties:{aiSearch:Fe,mcp:Fe},additionalProperties:!1},content:{type:"object",properties:{"**":Fe},additionalProperties:Fe},entitiesCatalog:zE},additionalProperties:Fe},KE={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},GE={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},HE={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[KE,GE]}},additionalProperties:!1,required:["type","apiBaseUrl"]},YE={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},QE={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Ga={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:[YE,QE],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},JE={...Ga,properties:{...Ga.properties,type:{type:"string",const:"APIGEE_EDGE"}}},WE={type:"object",oneOf:[Ga,JE,HE],discriminator:{propertyName:"type"}},XE={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:WE}}},vl={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"]},ZE={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},e$={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1},t$={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},r$={type:"object",properties:{requiresLogin:Om,logoutReturnUrl:Im,residency:xm,sso:Tm,idps:Pm,rbac:Rm},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},es={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:qE,seo:VE,rbac:Rm,apiFunctions:BE,requiresLogin:Om,responseHeaders:{type:"object",additionalProperties:{type:"array",items:ZE}},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",additionalProperties:ME},...vs,ssoDirect:NE,sso:Tm,idps:Pm,residency:xm,logoutReturnUrl:Im,access:r$,developerOnboarding:XE,removeAttribution:{type:"boolean"},i18n:vl,l10n:vl,metadata:LE,metadataGlobs:UE,ignore:{type:"array",items:{type:"string"}},theme:jt,reunite:OE,logo:nm,navbar:im,products:om,footer:sm,sidebar:am,scripts:cm,links:lm,feedback:$n,search:um,aiAssistant:pm,colorMode:dm,palette:fm,navigation:mm,codeSnippet:hm,markdown:ym,openapi:Wo,graphql:Qo,analytics:gm,userMenu:vm,versionPicker:bm,breadcrumbs:wm,catalog:Xo,entitiesCatalog:Sm,catalogClassic:Xo,scorecard:Zo,scorecardClassic:Zo,scorecards:Em,mcp:e$,skills:t$,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:jE},not:{required:["sso","idps"]},additionalProperties:!0},n$={...es,additionalProperties:!1},bs={$id:"root-redocly-config",...es,properties:{plugins:{type:"array",items:{type:"string"}},...es.properties,env:{type:"object",additionalProperties:n$}},additionalProperties:!1};jt.properties.logo,jt.properties.navbar,jt.properties.footer,jt.properties.sidebar,jt.properties.search,jt.properties.codeSnippet,jt.properties.breadcrumbs,jt.properties.openapi,jt.properties.feedback,es.properties.mockServer;var i$=["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"],We=rm({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"}),o$={type:"object",nodeTypeName:We.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},s$={type:"object",nodeTypeName:We.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},a$={type:"object",nodeTypeName:We.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},c$={type:"object",nodeTypeName:We.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},l$={type:"object",properties:{},nodeTypeName:We.EntityMetadata,additionalProperties:!0},u$={type:"object",nodeTypeName:We.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},p$={type:"object",nodeTypeName:We.EntitySlackContact,properties:{channels:{type:"array",items:u$}},required:["channels"],additionalProperties:!1},d$={type:"object",nodeTypeName:We.EntityContact,properties:{slack:p$},additionalProperties:!1},f$={type:"object",nodeTypeName:We.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},m$={type:"object",nodeTypeName:We.EntityRelation,properties:{type:{type:"string",enum:i$},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},ar={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:d$,links:{type:"array",nodeTypeName:We.EntityLinkList,items:f$},relations:{type:"array",nodeTypeName:We.EntityRelationList,items:m$},metadata:l$},h$={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...ar,type:{type:"string",const:"user"},metadata:o$},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:We.UserEntity},{type:"object",nodeTypeName:We.ApiOperationEntity,properties:{...ar,type:{type:"string",const:"api-operation"},metadata:a$},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:We.DataSchemaEntity,properties:{...ar,type:{type:"string",const:"data-schema"},metadata:c$},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:We.ApiDescriptionEntity,properties:{...ar,type:{type:"string",const:"api-description"},metadata:s$},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:We.ServiceEntity,properties:{...ar,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:We.DomainEntity,properties:{...ar,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:We.TeamEntity,properties:{...ar,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},y$={type:"object",nodeTypeName:We.Entity,properties:{...ar},required:["key","title","type"],additionalProperties:!1};const g$=["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"],zo=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],Am="a-zA-Z0-9\\.\\-_",v$={oas2:Mf,oas3_0:At,oas3_1:Ge,oas3_2:it,async2:Qf,async3:Jf,arazzo1:at,arazzo1_1:Wf,overlay1:Xf,openrpc1:Zf};function Tn(e){return e==="graphql"?{}:v$[e]}function $c(e){return e.includes("/")}function Nm(e,t){const r={...e};return t.forEach(n=>{delete r[n]}),r}var Gn={exports:{}},Bs={},Kt={},fr={},zs={},Ks={},Gs={},bl;function ts(){return bl||(bl=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(w){if(super(),!e.IDENTIFIER.test(w))throw new Error("CodeGen: name must be a valid identifier");this.str=w}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(w){super(),this._items=typeof w=="string"?[w]:w}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const w=this._items[0];return w===""||w==='""'}get str(){var w;return(w=this._str)!==null&&w!==void 0?w:this._str=this._items.reduce((y,S)=>`${y}${S}`,"")}get names(){var w;return(w=this._names)!==null&&w!==void 0?w:this._names=this._items.reduce((y,S)=>(S instanceof r&&(y[S.str]=(y[S.str]||0)+1),y),{})}}e._Code=n,e.nil=new n("");function i(T,...w){const y=[T[0]];let S=0;for(;S<w.length;)a(y,w[S]),y.push(T[++S]);return new n(y)}e._=i;const o=new n("+");function s(T,...w){const y=[m(T[0])];let S=0;for(;S<w.length;)y.push(o),a(y,w[S]),y.push(o,m(T[++S]));return c(y),new n(y)}e.str=s;function a(T,w){w instanceof n?T.push(...w._items):w instanceof r?T.push(w):T.push(d(w))}e.addCodeArg=a;function c(T){let w=1;for(;w<T.length-1;){if(T[w]===o){const y=l(T[w-1],T[w+1]);if(y!==void 0){T.splice(w-1,3,y);continue}T[w++]="+"}w++}}function l(T,w){if(w==='""')return T;if(T==='""')return w;if(typeof T=="string")return w instanceof r||T[T.length-1]!=='"'?void 0:typeof w!="string"?`${T.slice(0,-1)}${w}"`:w[0]==='"'?T.slice(0,-1)+w.slice(1):void 0;if(typeof w=="string"&&w[0]==='"'&&!(T instanceof r))return`"${T}${w.slice(1)}`}function p(T,w){return w.emptyStr()?T:T.emptyStr()?w:s`${T}${w}`}e.strConcat=p;function d(T){return typeof T=="number"||typeof T=="boolean"||T===null?T:m(Array.isArray(T)?T.join(","):T)}function g(T){return new n(m(T))}e.stringify=g;function m(T){return JSON.stringify(T).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function E(T){return typeof T=="string"&&e.IDENTIFIER.test(T)?new n(`.${T}`):i`[${T}]`}e.getProperty=E;function _(T){if(typeof T=="string"&&e.IDENTIFIER.test(T))return new n(`${T}`);throw new Error(`CodeGen: invalid export name: ${T}, use explicit $id name mapping`)}e.getEsmExportName=_;function $(T){return new n(T.toString())}e.regexpCode=$})(Gs)),Gs}var Hs={},wl;function Sl(){return wl||(wl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ts();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(c){c[c.Started=0]="Started",c[c.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:p}={}){this._names={},this._prefixes=l,this._parent=p}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const p=this._names[l]||this._nameGroup(l);return`${l}${p.index++}`}_nameGroup(l){var p,d;if(!((d=(p=this._parent)===null||p===void 0?void 0:p._prefixes)===null||d===void 0)&&d.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,p){super(p),this.prefix=l}setValue(l,{property:p,itemIndex:d}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(p)}[${d}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class a 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,p){var d;if(p.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const g=this.toName(l),{prefix:m}=g,E=(d=p.key)!==null&&d!==void 0?d:p.ref;let _=this._values[m];if(_){const w=_.get(E);if(w)return w}else _=this._values[m]=new Map;_.set(E,g);const $=this._scope[m]||(this._scope[m]=[]),T=$.length;return $[T]=p.ref,g.setValue(p,{property:m,itemIndex:T}),g}getValue(l,p){const d=this._values[l];if(d)return d.get(p)}scopeRefs(l,p=this._values){return this._reduceValues(p,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${l}${d.scopePath}`})}scopeCode(l=this._values,p,d){return this._reduceValues(l,g=>{if(g.value===void 0)throw new Error(`CodeGen: name "${g}" has no value`);return g.value.code},p,d)}_reduceValues(l,p,d={},g){let m=t.nil;for(const E in l){const _=l[E];if(!_)continue;const $=d[E]=d[E]||new Map;_.forEach(T=>{if($.has(T))return;$.set(T,n.Started);let w=p(T);if(w){const y=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${y} ${T} = ${w};${this.opts._n}`}else if(w=g?.(T))m=(0,t._)`${m}${w}${this.opts._n}`;else throw new r(T);$.set(T,n.Completed)})}return m}}e.ValueScope=a})(Hs)),Hs}var _l;function Pe(){return _l||(_l=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=ts(),r=Sl();var n=ts();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=Sl();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(P,I){return this}}class s extends o{constructor(P,I,x){super(),this.varKind=P,this.name=I,this.rhs=x}render({es5:P,_n:I}){const x=P?r.varKinds.var:this.varKind,H=this.rhs===void 0?"":` = ${this.rhs}`;return`${x} ${this.name}${H};`+I}optimizeNames(P,I){if(P[this.name.str])return this.rhs&&(this.rhs=W(this.rhs,P,I)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(P,I,x){super(),this.lhs=P,this.rhs=I,this.sideEffects=x}render({_n:P}){return`${this.lhs} = ${this.rhs};`+P}optimizeNames(P,I){if(!(this.lhs instanceof t.Name&&!P[this.lhs.str]&&!this.sideEffects))return this.rhs=W(this.rhs,P,I),this}get names(){const P=this.lhs instanceof t.Name?{}:{...this.lhs.names};return V(P,this.rhs)}}class c extends a{constructor(P,I,x,H){super(P,x,H),this.op=I}render({_n:P}){return`${this.lhs} ${this.op}= ${this.rhs};`+P}}class l extends o{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`${this.label}:`+P}}class p extends o{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`break${this.label?` ${this.label}`:""};`+P}}class d extends o{constructor(P){super(),this.error=P}render({_n:P}){return`throw ${this.error};`+P}get names(){return this.error.names}}class g extends o{constructor(P){super(),this.code=P}render({_n:P}){return`${this.code};`+P}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(P,I){return this.code=W(this.code,P,I),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends o{constructor(P=[]){super(),this.nodes=P}render(P){return this.nodes.reduce((I,x)=>I+x.render(P),"")}optimizeNodes(){const{nodes:P}=this;let I=P.length;for(;I--;){const x=P[I].optimizeNodes();Array.isArray(x)?P.splice(I,1,...x):x?P[I]=x:P.splice(I,1)}return P.length>0?this:void 0}optimizeNames(P,I){const{nodes:x}=this;let H=x.length;for(;H--;){const Y=x[H];Y.optimizeNames(P,I)||(ie(P,Y.names),x.splice(H,1))}return x.length>0?this:void 0}get names(){return this.nodes.reduce((P,I)=>J(P,I.names),{})}}class E extends m{render(P){return"{"+P._n+super.render(P)+"}"+P._n}}class _ extends m{}class $ extends E{}$.kind="else";class T extends E{constructor(P,I){super(I),this.condition=P}render(P){let I=`if(${this.condition})`+super.render(P);return this.else&&(I+="else "+this.else.render(P)),I}optimizeNodes(){super.optimizeNodes();const P=this.condition;if(P===!0)return this.nodes;let I=this.else;if(I){const x=I.optimizeNodes();I=this.else=Array.isArray(x)?new $(x):x}if(I)return P===!1?I instanceof T?I:I.nodes:this.nodes.length?this:new T(ae(P),I instanceof T?[I]:I.nodes);if(!(P===!1||!this.nodes.length))return this}optimizeNames(P,I){var x;if(this.else=(x=this.else)===null||x===void 0?void 0:x.optimizeNames(P,I),!!(super.optimizeNames(P,I)||this.else))return this.condition=W(this.condition,P,I),this}get names(){const P=super.names;return V(P,this.condition),this.else&&J(P,this.else.names),P}}T.kind="if";class w extends E{}w.kind="for";class y extends w{constructor(P){super(),this.iteration=P}render(P){return`for(${this.iteration})`+super.render(P)}optimizeNames(P,I){if(super.optimizeNames(P,I))return this.iteration=W(this.iteration,P,I),this}get names(){return J(super.names,this.iteration.names)}}class S extends w{constructor(P,I,x,H){super(),this.varKind=P,this.name=I,this.from=x,this.to=H}render(P){const I=P.es5?r.varKinds.var:this.varKind,{name:x,from:H,to:Y}=this;return`for(${I} ${x}=${H}; ${x}<${Y}; ${x}++)`+super.render(P)}get names(){const P=V(super.names,this.from);return V(P,this.to)}}class h extends w{constructor(P,I,x,H){super(),this.loop=P,this.varKind=I,this.name=x,this.iterable=H}render(P){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(P)}optimizeNames(P,I){if(super.optimizeNames(P,I))return this.iterable=W(this.iterable,P,I),this}get names(){return J(super.names,this.iterable.names)}}class v extends E{constructor(P,I,x){super(),this.name=P,this.args=I,this.async=x}render(P){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(P)}}v.kind="func";class O extends m{render(P){return"return "+super.render(P)}}O.kind="return";class k extends E{render(P){let I="try"+super.render(P);return this.catch&&(I+=this.catch.render(P)),this.finally&&(I+=this.finally.render(P)),I}optimizeNodes(){var P,I;return super.optimizeNodes(),(P=this.catch)===null||P===void 0||P.optimizeNodes(),(I=this.finally)===null||I===void 0||I.optimizeNodes(),this}optimizeNames(P,I){var x,H;return super.optimizeNames(P,I),(x=this.catch)===null||x===void 0||x.optimizeNames(P,I),(H=this.finally)===null||H===void 0||H.optimizeNames(P,I),this}get names(){const P=super.names;return this.catch&&J(P,this.catch.names),this.finally&&J(P,this.finally.names),P}}class D extends E{constructor(P){super(),this.error=P}render(P){return`catch(${this.error})`+super.render(P)}}D.kind="catch";class B extends E{render(P){return"finally"+super.render(P)}}B.kind="finally";class G{constructor(P,I={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...I,_n:I.lines?`
|
|
2
|
+
`:""},this._extScope=P,this._scope=new r.Scope({parent:P}),this._nodes=[new _]}toString(){return this._root.render(this.opts)}name(P){return this._scope.name(P)}scopeName(P){return this._extScope.name(P)}scopeValue(P,I){const x=this._extScope.value(P,I);return(this._values[x.prefix]||(this._values[x.prefix]=new Set)).add(x),x}getScopeValue(P,I){return this._extScope.getValue(P,I)}scopeRefs(P){return this._extScope.scopeRefs(P,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(P,I,x,H){const Y=this._scope.toName(I);return x!==void 0&&H&&(this._constants[Y.str]=x),this._leafNode(new s(P,Y,x)),Y}const(P,I,x){return this._def(r.varKinds.const,P,I,x)}let(P,I,x){return this._def(r.varKinds.let,P,I,x)}var(P,I,x){return this._def(r.varKinds.var,P,I,x)}assign(P,I,x){return this._leafNode(new a(P,I,x))}add(P,I){return this._leafNode(new c(P,e.operators.ADD,I))}code(P){return typeof P=="function"?P():P!==t.nil&&this._leafNode(new g(P)),this}object(...P){const I=["{"];for(const[x,H]of P)I.length>1&&I.push(","),I.push(x),(x!==H||this.opts.es5)&&(I.push(":"),(0,t.addCodeArg)(I,H));return I.push("}"),new t._Code(I)}if(P,I,x){if(this._blockNode(new T(P)),I&&x)this.code(I).else().code(x).endIf();else if(I)this.code(I).endIf();else if(x)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(P){return this._elseNode(new T(P))}else(){return this._elseNode(new $)}endIf(){return this._endBlockNode(T,$)}_for(P,I){return this._blockNode(P),I&&this.code(I).endFor(),this}for(P,I){return this._for(new y(P),I)}forRange(P,I,x,H,Y=this.opts.es5?r.varKinds.var:r.varKinds.let){const Z=this._scope.toName(P);return this._for(new S(Y,Z,I,x),()=>H(Z))}forOf(P,I,x,H=r.varKinds.const){const Y=this._scope.toName(P);if(this.opts.es5){const Z=I instanceof t.Name?I:this.var("_arr",I);return this.forRange("_i",0,(0,t._)`${Z}.length`,oe=>{this.var(Y,(0,t._)`${Z}[${oe}]`),x(Y)})}return this._for(new h("of",H,Y,I),()=>x(Y))}forIn(P,I,x,H=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(P,(0,t._)`Object.keys(${I})`,x);const Y=this._scope.toName(P);return this._for(new h("in",H,Y,I),()=>x(Y))}endFor(){return this._endBlockNode(w)}label(P){return this._leafNode(new l(P))}break(P){return this._leafNode(new p(P))}return(P){const I=new O;if(this._blockNode(I),this.code(P),I.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(O)}try(P,I,x){if(!I&&!x)throw new Error('CodeGen: "try" without "catch" and "finally"');const H=new k;if(this._blockNode(H),this.code(P),I){const Y=this.name("e");this._currNode=H.catch=new D(Y),I(Y)}return x&&(this._currNode=H.finally=new B,this.code(x)),this._endBlockNode(D,B)}throw(P){return this._leafNode(new d(P))}block(P,I){return this._blockStarts.push(this._nodes.length),P&&this.code(P).endBlock(I),this}endBlock(P){const I=this._blockStarts.pop();if(I===void 0)throw new Error("CodeGen: not in self-balancing block");const x=this._nodes.length-I;if(x<0||P!==void 0&&x!==P)throw new Error(`CodeGen: wrong number of nodes: ${x} vs ${P} expected`);return this._nodes.length=I,this}func(P,I=t.nil,x,H){return this._blockNode(new v(P,I,x)),H&&this.code(H).endFunc(),this}endFunc(){return this._endBlockNode(v)}optimize(P=1){for(;P-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(P){return this._currNode.nodes.push(P),this}_blockNode(P){this._currNode.nodes.push(P),this._nodes.push(P)}_endBlockNode(P,I){const x=this._currNode;if(x instanceof P||I&&x instanceof I)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${I?`${P.kind}/${I.kind}`:P.kind}"`)}_elseNode(P){const I=this._currNode;if(!(I instanceof T))throw new Error('CodeGen: "else" without "if"');return this._currNode=I.else=P,this}get _root(){return this._nodes[0]}get _currNode(){const P=this._nodes;return P[P.length-1]}set _currNode(P){const I=this._nodes;I[I.length-1]=P}}e.CodeGen=G;function J(C,P){for(const I in P)C[I]=(C[I]||0)+(P[I]||0);return C}function V(C,P){return P instanceof t._CodeOrName?J(C,P.names):C}function W(C,P,I){if(C instanceof t.Name)return x(C);if(!H(C))return C;return new t._Code(C._items.reduce((Y,Z)=>(Z instanceof t.Name&&(Z=x(Z)),Z instanceof t._Code?Y.push(...Z._items):Y.push(Z),Y),[]));function x(Y){const Z=I[Y.str];return Z===void 0||P[Y.str]!==1?Y:(delete P[Y.str],Z)}function H(Y){return Y instanceof t._Code&&Y._items.some(Z=>Z instanceof t.Name&&P[Z.str]===1&&I[Z.str]!==void 0)}}function ie(C,P){for(const I in P)C[I]=(C[I]||0)-(P[I]||0)}function ae(C){return typeof C=="boolean"||typeof C=="number"||C===null?!C:(0,t._)`!${z(C)}`}e.not=ae;const _e=N(e.operators.AND);function pe(...C){return C.reduce(_e)}e.and=pe;const le=N(e.operators.OR);function L(...C){return C.reduce(le)}e.or=L;function N(C){return(P,I)=>P===t.nil?I:I===t.nil?P:(0,t._)`${z(P)} ${C} ${z(I)}`}function z(C){return C instanceof t.Name?C:(0,t._)`(${C})`}})(Ks)),Ks}var xe={},El;function Ce(){if(El)return xe;El=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.checkStrictMode=xe.getErrorPath=xe.Type=xe.useFunc=xe.setEvaluated=xe.evaluatedPropsToName=xe.mergeEvaluated=xe.eachItem=xe.unescapeJsonPointer=xe.escapeJsonPointer=xe.escapeFragment=xe.unescapeFragment=xe.schemaRefOrVal=xe.schemaHasRulesButRef=xe.schemaHasRules=xe.checkUnknownRules=xe.alwaysValidSchema=xe.toHash=void 0;const e=Pe(),t=ts();function r(h){const v={};for(const O of h)v[O]=!0;return v}xe.toHash=r;function n(h,v){return typeof v=="boolean"?v:Object.keys(v).length===0?!0:(i(h,v),!o(v,h.self.RULES.all))}xe.alwaysValidSchema=n;function i(h,v=h.schema){const{opts:O,self:k}=h;if(!O.strictSchema||typeof v=="boolean")return;const D=k.RULES.keywords;for(const B in v)D[B]||S(h,`unknown keyword: "${B}"`)}xe.checkUnknownRules=i;function o(h,v){if(typeof h=="boolean")return!h;for(const O in h)if(v[O])return!0;return!1}xe.schemaHasRules=o;function s(h,v){if(typeof h=="boolean")return!h;for(const O in h)if(O!=="$ref"&&v.all[O])return!0;return!1}xe.schemaHasRulesButRef=s;function a({topSchemaRef:h,schemaPath:v},O,k,D){if(!D){if(typeof O=="number"||typeof O=="boolean")return O;if(typeof O=="string")return(0,e._)`${O}`}return(0,e._)`${h}${v}${(0,e.getProperty)(k)}`}xe.schemaRefOrVal=a;function c(h){return d(decodeURIComponent(h))}xe.unescapeFragment=c;function l(h){return encodeURIComponent(p(h))}xe.escapeFragment=l;function p(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}xe.escapeJsonPointer=p;function d(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}xe.unescapeJsonPointer=d;function g(h,v){if(Array.isArray(h))for(const O of h)v(O);else v(h)}xe.eachItem=g;function m({mergeNames:h,mergeToName:v,mergeValues:O,resultToName:k}){return(D,B,G,J)=>{const V=G===void 0?B:G instanceof e.Name?(B instanceof e.Name?h(D,B,G):v(D,B,G),G):B instanceof e.Name?(v(D,G,B),B):O(B,G);return J===e.Name&&!(V instanceof e.Name)?k(D,V):V}}xe.mergeEvaluated={props:m({mergeNames:(h,v,O)=>h.if((0,e._)`${O} !== true && ${v} !== undefined`,()=>{h.if((0,e._)`${v} === true`,()=>h.assign(O,!0),()=>h.assign(O,(0,e._)`${O} || {}`).code((0,e._)`Object.assign(${O}, ${v})`))}),mergeToName:(h,v,O)=>h.if((0,e._)`${O} !== true`,()=>{v===!0?h.assign(O,!0):(h.assign(O,(0,e._)`${O} || {}`),_(h,O,v))}),mergeValues:(h,v)=>h===!0?!0:{...h,...v},resultToName:E}),items:m({mergeNames:(h,v,O)=>h.if((0,e._)`${O} !== true && ${v} !== undefined`,()=>h.assign(O,(0,e._)`${v} === true ? true : ${O} > ${v} ? ${O} : ${v}`)),mergeToName:(h,v,O)=>h.if((0,e._)`${O} !== true`,()=>h.assign(O,v===!0?!0:(0,e._)`${O} > ${v} ? ${O} : ${v}`)),mergeValues:(h,v)=>h===!0?!0:Math.max(h,v),resultToName:(h,v)=>h.var("items",v)})};function E(h,v){if(v===!0)return h.var("props",!0);const O=h.var("props",(0,e._)`{}`);return v!==void 0&&_(h,O,v),O}xe.evaluatedPropsToName=E;function _(h,v,O){Object.keys(O).forEach(k=>h.assign((0,e._)`${v}${(0,e.getProperty)(k)}`,!0))}xe.setEvaluated=_;const $={};function T(h,v){return h.scopeValue("func",{ref:v,code:$[v.code]||($[v.code]=new t._Code(v.code))})}xe.useFunc=T;var w;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(w||(xe.Type=w={}));function y(h,v,O){if(h instanceof e.Name){const k=v===w.Num;return O?k?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:k?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return O?(0,e.getProperty)(h).toString():"/"+p(h)}xe.getErrorPath=y;function S(h,v,O=h.opts.strictSchema){if(O){if(v=`strict mode: ${v}`,O===!0)throw new Error(v);h.self.logger.warn(v)}}return xe.checkStrictMode=S,xe}var Hn={},$l;function ht(){if($l)return Hn;$l=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=Pe(),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 Hn.default=t,Hn}var Tl;function ws(){return Tl||(Tl=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=Pe(),r=Ce(),n=ht();e.keywordError={message:({keyword:$})=>(0,t.str)`must pass "${$}" keyword validation`},e.keyword$DataError={message:({keyword:$,schemaType:T})=>T?(0,t.str)`"${$}" keyword must be ${T} ($data)`:(0,t.str)`"${$}" keyword is invalid ($data)`};function i($,T=e.keywordError,w,y){const{it:S}=$,{gen:h,compositeRule:v,allErrors:O}=S,k=d($,T,w);y??(v||O)?c(h,k):l(S,(0,t._)`[${k}]`)}e.reportError=i;function o($,T=e.keywordError,w){const{it:y}=$,{gen:S,compositeRule:h,allErrors:v}=y,O=d($,T,w);c(S,O),h||v||l(y,n.default.vErrors)}e.reportExtraError=o;function s($,T){$.assign(n.default.errors,T),$.if((0,t._)`${n.default.vErrors} !== null`,()=>$.if(T,()=>$.assign((0,t._)`${n.default.vErrors}.length`,T),()=>$.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:$,keyword:T,schemaValue:w,data:y,errsCount:S,it:h}){if(S===void 0)throw new Error("ajv implementation error");const v=$.name("err");$.forRange("i",S,n.default.errors,O=>{$.const(v,(0,t._)`${n.default.vErrors}[${O}]`),$.if((0,t._)`${v}.instancePath === undefined`,()=>$.assign((0,t._)`${v}.instancePath`,(0,t.strConcat)(n.default.instancePath,h.errorPath))),$.assign((0,t._)`${v}.schemaPath`,(0,t.str)`${h.errSchemaPath}/${T}`),h.opts.verbose&&($.assign((0,t._)`${v}.schema`,w),$.assign((0,t._)`${v}.data`,y))})}e.extendErrors=a;function c($,T){const w=$.const("err",T);$.if((0,t._)`${n.default.vErrors} === null`,()=>$.assign(n.default.vErrors,(0,t._)`[${w}]`),(0,t._)`${n.default.vErrors}.push(${w})`),$.code((0,t._)`${n.default.errors}++`)}function l($,T){const{gen:w,validateName:y,schemaEnv:S}=$;S.$async?w.throw((0,t._)`new ${$.ValidationError}(${T})`):(w.assign((0,t._)`${y}.errors`,T),w.return(!1))}const p={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 d($,T,w){const{createErrors:y}=$.it;return y===!1?(0,t._)`{}`:g($,T,w)}function g($,T,w={}){const{gen:y,it:S}=$,h=[m(S,w),E($,w)];return _($,T,h),y.object(...h)}function m({errorPath:$},{instancePath:T}){const w=T?(0,t.str)`${$}${(0,r.getErrorPath)(T,r.Type.Str)}`:$;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,w)]}function E({keyword:$,it:{errSchemaPath:T}},{schemaPath:w,parentSchema:y}){let S=y?T:(0,t.str)`${T}/${$}`;return w&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(w,r.Type.Str)}`),[p.schemaPath,S]}function _($,{params:T,message:w},y){const{keyword:S,data:h,schemaValue:v,it:O}=$,{opts:k,propertyName:D,topSchemaRef:B,schemaPath:G}=O;y.push([p.keyword,S],[p.params,typeof T=="function"?T($):T||(0,t._)`{}`]),k.messages&&y.push([p.message,typeof w=="function"?w($):w]),k.verbose&&y.push([p.schema,v],[p.parentSchema,(0,t._)`${B}${G}`],[n.default.data,h]),D&&y.push([p.propertyName,D])}})(zs)),zs}var Pl;function b$(){if(Pl)return fr;Pl=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.boolOrEmptySchema=fr.topBoolOrEmptySchema=void 0;const e=ws(),t=Pe(),r=ht(),n={message:"boolean schema is false"};function i(a){const{gen:c,schema:l,validateName:p}=a;l===!1?s(a,!1):typeof l=="object"&&l.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${p}.errors`,null),c.return(!0))}fr.topBoolOrEmptySchema=i;function o(a,c){const{gen:l,schema:p}=a;p===!1?(l.var(c,!1),s(a)):l.var(c,!0)}fr.boolOrEmptySchema=o;function s(a,c){const{gen:l,data:p}=a,d={gen:l,keyword:"false schema",data:p,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(d,n,void 0,c)}return fr}var rt={},mr={},Ol;function km(){if(Ol)return mr;Ol=1,Object.defineProperty(mr,"__esModule",{value:!0}),mr.getRules=mr.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)}mr.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 mr.getRules=n,mr}var Gt={},Il;function qm(){if(Il)return Gt;Il=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.shouldUseRule=Gt.shouldUseGroup=Gt.schemaHasRulesForType=void 0;function e({schema:n,self:i},o){const s=i.RULES.types[o];return s&&s!==!0&&t(n,s)}Gt.schemaHasRulesForType=e;function t(n,i){return i.rules.some(o=>r(n,o))}Gt.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 Gt.shouldUseRule=r,Gt}var xl;function rs(){if(xl)return rt;xl=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=km(),t=qm(),r=ws(),n=Pe(),i=Ce();var o;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(o||(rt.DataType=o={}));function s(w){const y=a(w.type);if(y.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!y.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&y.push("null")}return y}rt.getSchemaTypes=s;function a(w){const y=Array.isArray(w)?w:w?[w]:[];if(y.every(e.isJSONType))return y;throw new Error("type must be JSONType or JSONType[]: "+y.join(","))}rt.getJSONTypes=a;function c(w,y){const{gen:S,data:h,opts:v}=w,O=p(y,v.coerceTypes),k=y.length>0&&!(O.length===0&&y.length===1&&(0,t.schemaHasRulesForType)(w,y[0]));if(k){const D=E(y,h,v.strictNumbers,o.Wrong);S.if(D,()=>{O.length?d(w,y,O):$(w)})}return k}rt.coerceAndCheckDataType=c;const l=new Set(["string","number","integer","boolean","null"]);function p(w,y){return y?w.filter(S=>l.has(S)||y==="array"&&S==="array"):[]}function d(w,y,S){const{gen:h,data:v,opts:O}=w,k=h.let("dataType",(0,n._)`typeof ${v}`),D=h.let("coerced",(0,n._)`undefined`);O.coerceTypes==="array"&&h.if((0,n._)`${k} == 'object' && Array.isArray(${v}) && ${v}.length == 1`,()=>h.assign(v,(0,n._)`${v}[0]`).assign(k,(0,n._)`typeof ${v}`).if(E(y,v,O.strictNumbers),()=>h.assign(D,v))),h.if((0,n._)`${D} !== undefined`);for(const G of S)(l.has(G)||G==="array"&&O.coerceTypes==="array")&&B(G);h.else(),$(w),h.endIf(),h.if((0,n._)`${D} !== undefined`,()=>{h.assign(v,D),g(w,D)});function B(G){switch(G){case"string":h.elseIf((0,n._)`${k} == "number" || ${k} == "boolean"`).assign(D,(0,n._)`"" + ${v}`).elseIf((0,n._)`${v} === null`).assign(D,(0,n._)`""`);return;case"number":h.elseIf((0,n._)`${k} == "boolean" || ${v} === null
|
|
3
|
+
|| (${k} == "string" && ${v} && ${v} == +${v})`).assign(D,(0,n._)`+${v}`);return;case"integer":h.elseIf((0,n._)`${k} === "boolean" || ${v} === null
|
|
4
|
+
|| (${k} === "string" && ${v} && ${v} == +${v} && !(${v} % 1))`).assign(D,(0,n._)`+${v}`);return;case"boolean":h.elseIf((0,n._)`${v} === "false" || ${v} === 0 || ${v} === null`).assign(D,!1).elseIf((0,n._)`${v} === "true" || ${v} === 1`).assign(D,!0);return;case"null":h.elseIf((0,n._)`${v} === "" || ${v} === 0 || ${v} === false`),h.assign(D,null);return;case"array":h.elseIf((0,n._)`${k} === "string" || ${k} === "number"
|
|
5
|
+
|| ${k} === "boolean" || ${v} === null`).assign(D,(0,n._)`[${v}]`)}}}function g({gen:w,parentData:y,parentDataProperty:S},h){w.if((0,n._)`${y} !== undefined`,()=>w.assign((0,n._)`${y}[${S}]`,h))}function m(w,y,S,h=o.Correct){const v=h===o.Correct?n.operators.EQ:n.operators.NEQ;let O;switch(w){case"null":return(0,n._)`${y} ${v} null`;case"array":O=(0,n._)`Array.isArray(${y})`;break;case"object":O=(0,n._)`${y} && typeof ${y} == "object" && !Array.isArray(${y})`;break;case"integer":O=k((0,n._)`!(${y} % 1) && !isNaN(${y})`);break;case"number":O=k();break;default:return(0,n._)`typeof ${y} ${v} ${w}`}return h===o.Correct?O:(0,n.not)(O);function k(D=n.nil){return(0,n.and)((0,n._)`typeof ${y} == "number"`,D,S?(0,n._)`isFinite(${y})`:n.nil)}}rt.checkDataType=m;function E(w,y,S,h){if(w.length===1)return m(w[0],y,S,h);let v;const O=(0,i.toHash)(w);if(O.array&&O.object){const k=(0,n._)`typeof ${y} != "object"`;v=O.null?k:(0,n._)`!${y} || ${k}`,delete O.null,delete O.array,delete O.object}else v=n.nil;O.number&&delete O.integer;for(const k in O)v=(0,n.and)(v,m(k,y,S,h));return v}rt.checkDataTypes=E;const _={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:y})=>typeof w=="string"?(0,n._)`{type: ${w}}`:(0,n._)`{type: ${y}}`};function $(w){const y=T(w);(0,r.reportError)(y,_)}rt.reportTypeError=$;function T(w){const{gen:y,data:S,schema:h}=w,v=(0,i.schemaRefOrVal)(w,h,"type");return{gen:y,keyword:"type",data:S,schema:h.type,schemaCode:v,schemaValue:v,parentSchema:h,params:{},it:w}}return rt}var tn={},Rl;function w$(){if(Rl)return tn;Rl=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.assignDefaults=void 0;const e=Pe(),t=Ce();function r(i,o){const{properties:s,items:a}=i.schema;if(o==="object"&&s)for(const c in s)n(i,c,s[c].default);else o==="array"&&Array.isArray(a)&&a.forEach((c,l)=>n(i,l,c.default))}tn.assignDefaults=r;function n(i,o,s){const{gen:a,compositeRule:c,data:l,opts:p}=i;if(s===void 0)return;const d=(0,e._)`${l}${(0,e.getProperty)(o)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${d}`);return}let g=(0,e._)`${d} === undefined`;p.useDefaults==="empty"&&(g=(0,e._)`${g} || ${d} === null || ${d} === ""`),a.if(g,(0,e._)`${d} = ${(0,e.stringify)(s)}`)}return tn}var $t={},Ve={},rn={},Al;function Cm(){if(Al)return rn;Al=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.getSkipCondition=void 0;const e=Pe(),t=ht();function r(n,i){var o;const s=(o=n.properties)===null||o===void 0?void 0:o[i];if(!s)return;const a=s.readOnly===!0,c=s.writeOnly===!0;if(!a&&!c)return;const l=[],p=(0,e._)`typeof ${t.default.this} == "object" && ${t.default.this} && ${t.default.this}.apiContext`;return a&&l.push((0,e._)`${p} === "request"`),c&&l.push((0,e._)`${p} === "response"`),(0,e.or)(...l)}return rn.getSkipCondition=r,rn}var Nl;function Nt(){if(Nl)return Ve;Nl=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.validateUnion=Ve.validateArray=Ve.usePattern=Ve.callValidateCode=Ve.schemaProperties=Ve.allSchemaProperties=Ve.noPropertyInData=Ve.propertyInData=Ve.isOwnProperty=Ve.hasPropFunc=Ve.reportMissingProp=Ve.checkMissingProp=Ve.checkReportMissingProp=void 0;const e=Pe(),t=Ce(),r=ht(),n=Ce(),i=Cm();function o(y,S){const{gen:h,data:v,it:O}=y;h.if(d(h,v,S,O.opts.ownProperties),()=>{y.setParams({missingProperty:(0,e._)`${S}`},!0),y.error()})}Ve.checkReportMissingProp=o;function s({gen:y,data:S,it:{opts:h},parentSchema:v},O,k){return(0,e.or)(...O.map(D=>{var B;return(0,e.and)((0,e.not)((B=(0,i.getSkipCondition)(v,D))!==null&&B!==void 0?B:(0,e._)`false`),d(y,S,D,h.ownProperties),(0,e._)`${k} = ${D}`)}))}Ve.checkMissingProp=s;function a(y,S){y.setParams({missingProperty:S},!0),y.error()}Ve.reportMissingProp=a;function c(y){return y.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ve.hasPropFunc=c;function l(y,S,h){return(0,e._)`${c(y)}.call(${S}, ${h})`}Ve.isOwnProperty=l;function p(y,S,h,v){const O=(0,e._)`${S}${(0,e.getProperty)(h)} !== undefined`;return v?(0,e._)`${O} && ${l(y,S,h)}`:O}Ve.propertyInData=p;function d(y,S,h,v){const O=(0,e._)`${S}${(0,e.getProperty)(h)} === undefined`;return v?(0,e.or)(O,(0,e.not)(l(y,S,h))):O}Ve.noPropertyInData=d;function g(y){return y?Object.keys(y).filter(S=>S!=="__proto__"):[]}Ve.allSchemaProperties=g;function m(y,S){return g(S).filter(h=>!(0,t.alwaysValidSchema)(y,S[h]))}Ve.schemaProperties=m;function E({schemaCode:y,data:S,it:{gen:h,topSchemaRef:v,schemaPath:O,errorPath:k},it:D},B,G,J){const V=J?(0,e._)`${y}, ${S}, ${v}${O}`:S,W=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,k)],[r.default.parentData,D.parentData],[r.default.parentDataProperty,D.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,D.isAllOfVariant?1:0]];D.opts.dynamicRef&&W.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const ie=(0,e._)`${V}, ${h.object(...W)}`;return G!==e.nil?(0,e._)`${B}.call(${G}, ${ie})`:(0,e._)`${B}(${ie})`}Ve.callValidateCode=E;const _=(0,e._)`new RegExp`;function $({gen:y,it:{opts:S}},h){const v=S.unicodeRegExp?"u":"",{regExp:O}=S.code,k=O(h,v);return y.scopeValue("pattern",{key:k.toString(),ref:k,code:(0,e._)`${O.code==="new RegExp"?_:(0,n.useFunc)(y,O)}(${h}, ${v})`})}Ve.usePattern=$;function T(y){const{gen:S,data:h,keyword:v,it:O}=y,k=S.name("valid");if(O.allErrors){const B=S.let("valid",!0);return D(()=>S.assign(B,!1)),B}return S.var(k,!0),D(()=>S.break()),k;function D(B){const G=S.const("len",(0,e._)`${h}.length`);S.forRange("i",0,G,J=>{y.subschema({keyword:v,dataProp:J,dataPropType:t.Type.Num},k),S.if((0,e.not)(k),B)})}}Ve.validateArray=T;function w(y){const{gen:S,schema:h,keyword:v,parentSchema:O,it:k}=y;if(!Array.isArray(h))throw new Error("ajv implementation error");if(k.opts.discriminator&&O.discriminator||h.some(J=>(0,t.alwaysValidSchema)(k,J))&&!k.opts.unevaluated)return;const B=S.let("valid",!1),G=S.name("_valid");S.block(()=>h.forEach((J,V)=>{const W=y.subschema({keyword:v,schemaProp:V,compositeRule:!0},G);S.assign(B,(0,e._)`${B} || ${G}`),y.mergeValidEvaluated(W,G)||S.if((0,e.not)(B))})),y.result(B,()=>y.reset(),()=>y.error(!0))}return Ve.validateUnion=w,Ve}var kl;function S$(){if(kl)return $t;kl=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.validateKeywordUsage=$t.validSchemaType=$t.funcKeywordCode=$t.macroKeywordCode=void 0;const e=Pe(),t=ht(),r=Nt(),n=ws();function i(g,m){const{gen:E,keyword:_,schema:$,parentSchema:T,it:w}=g,y=m.macro.call(w.self,$,T,w),S=l(E,_,y);w.opts.validateSchema!==!1&&w.self.validateSchema(y,!0);const h=E.name("valid");g.subschema({schema:y,schemaPath:e.nil,errSchemaPath:`${w.errSchemaPath}/${_}`,topSchemaRef:S,compositeRule:!0},h),g.pass(h,()=>g.error(!0))}$t.macroKeywordCode=i;function o(g,m){var E;const{gen:_,keyword:$,schema:T,parentSchema:w,$data:y,it:S}=g;c(S,m);const h=!y&&m.compile?m.compile.call(S.self,T,w,S):m.validate,v=l(_,$,h),O=_.let("valid");g.block$data(O,k),g.ok((E=m.valid)!==null&&E!==void 0?E:O);function k(){if(m.errors===!1)G(),m.modifying&&s(g),J(()=>g.error());else{const V=m.async?D():B();m.modifying&&s(g),J(()=>a(g,V))}}function D(){const V=_.let("ruleErrs",null);return _.try(()=>G((0,e._)`await `),W=>_.assign(O,!1).if((0,e._)`${W} instanceof ${S.ValidationError}`,()=>_.assign(V,(0,e._)`${W}.errors`),()=>_.throw(W))),V}function B(){const V=(0,e._)`${v}.errors`;return _.assign(V,null),G(e.nil),V}function G(V=m.async?(0,e._)`await `:e.nil){const W=S.opts.passContext?t.default.this:t.default.self,ie=!("compile"in m&&!y||m.schema===!1);_.assign(O,(0,e._)`${V}${(0,r.callValidateCode)(g,v,W,ie)}`,m.modifying)}function J(V){var W;_.if((0,e.not)((W=m.valid)!==null&&W!==void 0?W:O),V)}}$t.funcKeywordCode=o;function s(g){const{gen:m,data:E,it:_}=g;m.if(_.parentData,()=>m.assign(E,(0,e._)`${_.parentData}[${_.parentDataProperty}]`))}function a(g,m){const{gen:E}=g;E.if((0,e._)`Array.isArray(${m})`,()=>{E.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${m} : ${t.default.vErrors}.concat(${m})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(g)},()=>g.error())}function c({schemaEnv:g},m){if(m.async&&!g.$async)throw new Error("async keyword in sync schema")}function l(g,m,E){if(E===void 0)throw new Error(`keyword "${m}" failed to compile`);return g.scopeValue("keyword",typeof E=="function"?{ref:E}:{ref:E,code:(0,e.stringify)(E)})}function p(g,m,E=!1){return!m.length||m.some(_=>_==="array"?Array.isArray(g):_==="object"?g&&typeof g=="object"&&!Array.isArray(g):typeof g==_||E&&typeof g>"u")}$t.validSchemaType=p;function d({schema:g,opts:m,self:E,errSchemaPath:_},$,T){if(Array.isArray($.keyword)?!$.keyword.includes(T):$.keyword!==T)throw new Error("ajv implementation error");const w=$.dependencies;if(w?.some(y=>!Object.prototype.hasOwnProperty.call(g,y)))throw new Error(`parent schema must have dependencies of ${T}: ${w.join(",")}`);if($.validateSchema&&!$.validateSchema(g[T])){const S=`keyword "${T}" value is invalid at path "${_}": `+E.errorsText($.validateSchema.errors);if(m.validateSchema==="log")E.logger.error(S);else throw new Error(S)}}return $t.validateKeywordUsage=d,$t}var Ht={},ql;function _$(){if(ql)return Ht;ql=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.extendSubschemaMode=Ht.extendSubschemaData=Ht.getSubschema=void 0;const e=Pe(),t=Ce();function r(o,{keyword:s,schemaProp:a,schema:c,schemaPath:l,errSchemaPath:p,topSchemaRef:d}){if(s!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const g=o.schema[s];return a===void 0?{schema:g,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${s}`}:{schema:g[a],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(a)}`,errSchemaPath:`${o.errSchemaPath}/${s}/${(0,t.escapeFragment)(a)}`}}if(c!==void 0){if(l===void 0||p===void 0||d===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:d,errSchemaPath:p}}throw new Error('either "keyword" or "schema" must be passed')}Ht.getSubschema=r;function n(o,s,{dataProp:a,dataPropType:c,data:l,dataTypes:p,propertyName:d}){if(l!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:g}=s;if(a!==void 0){const{errorPath:E,dataPathArr:_,opts:$}=s,T=g.let("data",(0,e._)`${s.data}${(0,e.getProperty)(a)}`,!0);m(T),o.errorPath=(0,e.str)`${E}${(0,t.getErrorPath)(a,c,$.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${a}`,o.dataPathArr=[..._,o.parentDataProperty]}if(l!==void 0){const E=l instanceof e.Name?l:g.let("data",l,!0);m(E),d!==void 0&&(o.propertyName=d)}p&&(o.dataTypes=p);function m(E){o.data=E,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,E]}}Ht.extendSubschemaData=n;function i(o,{jtdDiscriminator:s,jtdMetadata:a,compositeRule:c,createErrors:l,allErrors:p}){c!==void 0&&(o.compositeRule=c),l!==void 0&&(o.createErrors=l),p!==void 0&&(o.allErrors=p),o.jtdDiscriminator=s,o.jtdMetadata=a}return Ht.extendSubschemaMode=i,Ht}var lt={},Ys={exports:{}},Cl;function Dm(){if(Cl)return Ys.exports;Cl=1;var e=Ys.exports=function(n,i,o){typeof i=="function"&&(o=i,i={}),o=i.cb||o;var s=typeof o=="function"?o:o.pre||function(){},a=o.post||function(){};t(i,s,a,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,a,c,l,p,d,g){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,a,c,l,p,d,g);for(var m in s){var E=s[m];if(Array.isArray(E)){if(m in e.arrayKeywords)for(var _=0;_<E.length;_++)t(n,i,o,E[_],a+"/"+m+"/"+_,c,a,m,s,_)}else if(m in e.propsKeywords){if(E&&typeof E=="object")for(var $ in E)t(n,i,o,E[$],a+"/"+m+"/"+r($),c,a,m,s,$)}else(m in e.keywords||n.allKeys&&!(m in e.skipKeywords))&&t(n,i,o,E,a+"/"+m,c,a,m,s)}o(s,a,c,l,p,d,g)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Ys.exports}var Dl;function Ss(){if(Dl)return lt;Dl=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.getSchemaRefs=lt.resolveUrl=lt.normalizeId=lt._getFullPath=lt.getFullPath=lt.inlineRef=void 0;const e=Ce(),t=se.requireFastDeepEqual(),r=Dm(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(_,$=!0){return typeof _=="boolean"?!0:$===!0?!s(_):$?a(_)<=$:!1}lt.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(_){for(const $ in _){if(o.has($))return!0;const T=_[$];if(Array.isArray(T)&&T.some(s)||typeof T=="object"&&s(T))return!0}return!1}function a(_){let $=0;for(const T in _){if(T==="$ref")return 1/0;if($++,!n.has(T)&&(typeof _[T]=="object"&&(0,e.eachItem)(_[T],w=>$+=a(w)),$===1/0))return 1/0}return $}function c(_,$="",T){T!==!1&&($=d($));const w=_.parse($);return l(_,w)}lt.getFullPath=c;function l(_,$){return _.serialize($).split("#")[0]+"#"}lt._getFullPath=l;const p=/#\/?$/;function d(_){return _?_.replace(p,""):""}lt.normalizeId=d;function g(_,$,T){return T=d(T),_.resolve($,T)}lt.resolveUrl=g;const m=/^[a-z_][-a-z0-9._]*$/i;function E(_,$){if(typeof _=="boolean")return{};const{schemaId:T,uriResolver:w}=this.opts,y=d(_[T]||$),S={"":y},h=c(w,y,!1),v={},O=new Set;return r(_,{allKeys:!0},(B,G,J,V)=>{if(V===void 0)return;const W=h+G;let ie=S[V];typeof B[T]=="string"&&(ie=ae.call(this,B[T])),_e.call(this,B.$anchor),_e.call(this,B.$dynamicAnchor),S[G]=ie;function ae(pe){const le=this.opts.uriResolver.resolve;if(pe=d(ie?le(ie,pe):pe),O.has(pe))throw D(pe);O.add(pe);let L=this.refs[pe];return typeof L=="string"&&(L=this.refs[L]),typeof L=="object"?k(B,L.schema,pe):pe!==d(W)&&(pe[0]==="#"?(k(B,v[pe],pe),v[pe]=B):this.refs[pe]=W),pe}function _e(pe){if(typeof pe=="string"){if(!m.test(pe))throw new Error(`invalid anchor "${pe}"`);ae.call(this,`#${pe}`)}}}),v;function k(B,G,J){if(G!==void 0&&!t(B,G))throw D(J)}function D(B){return new Error(`reference "${B}" resolves to more than one schema`)}}return lt.getSchemaRefs=E,lt}var jl;function Pn(){if(jl)return Kt;jl=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.getData=Kt.KeywordCxt=Kt.validateFunctionCode=void 0;const e=b$(),t=rs(),r=qm(),n=rs(),i=w$(),o=S$(),s=_$(),a=Pe(),c=ht(),l=Ss(),p=Ce(),d=ws();function g(A){if(h(A)&&(O(A),S(A))){$(A);return}m(A,()=>(0,e.topBoolOrEmptySchema)(A))}Kt.validateFunctionCode=g;function m({gen:A,validateName:q,schema:K,schemaEnv:X,opts:ee},ue){ee.code.es5?A.func(q,(0,a._)`${c.default.data}, ${c.default.valCxt}`,X.$async,()=>{A.code((0,a._)`"use strict"; ${w(K,ee)}`),_(A,ee),A.code(ue)}):A.func(q,(0,a._)`${c.default.data}, ${E(ee)}`,X.$async,()=>A.code(w(K,ee)).code(ue))}function E(A){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${A.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}, ${c.default.isAllOfVariant} = 0}={}`}function _(A,q){A.if(c.default.valCxt,()=>{A.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),A.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),A.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),A.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),A.var(c.default.isAllOfVariant,(0,a._)`${c.default.valCxt}.${c.default.isAllOfVariant}`),q.dynamicRef&&A.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{A.var(c.default.instancePath,(0,a._)`""`),A.var(c.default.parentData,(0,a._)`undefined`),A.var(c.default.parentDataProperty,(0,a._)`undefined`),A.var(c.default.rootData,c.default.data),A.var(c.default.isAllOfVariant,(0,a._)`0`),q.dynamicRef&&A.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function $(A){const{schema:q,opts:K,gen:X}=A;m(A,()=>{K.$comment&&q.$comment&&V(A),B(A),X.let(c.default.vErrors,null),X.let(c.default.errors,0),K.unevaluated&&T(A),k(A),W(A)})}function T(A){const{gen:q,validateName:K}=A;A.evaluated=q.const("evaluated",(0,a._)`${K}.evaluated`),q.if((0,a._)`${A.evaluated}.dynamicProps`,()=>q.assign((0,a._)`${A.evaluated}.props`,(0,a._)`undefined`)),q.if((0,a._)`${A.evaluated}.dynamicItems`,()=>q.assign((0,a._)`${A.evaluated}.items`,(0,a._)`undefined`))}function w(A,q){const K=typeof A=="object"&&A[q.schemaId];return K&&(q.code.source||q.code.process)?(0,a._)`/*# sourceURL=${K} */`:a.nil}function y(A,q){if(h(A)&&(O(A),S(A))){v(A,q);return}(0,e.boolOrEmptySchema)(A,q)}function S({schema:A,self:q}){if(typeof A=="boolean")return!A;for(const K in A)if(q.RULES.all[K])return!0;return!1}function h(A){return typeof A.schema!="boolean"}function v(A,q){const{schema:K,gen:X,opts:ee}=A;ee.$comment&&K.$comment&&V(A),G(A),J(A);const ue=X.const("_errs",c.default.errors);k(A,ue),X.var(q,(0,a._)`${ue} === ${c.default.errors}`)}function O(A){(0,p.checkUnknownRules)(A),D(A)}function k(A,q){if(A.opts.jtd)return ae(A,[],!1,q);const K=(0,t.getSchemaTypes)(A.schema),X=(0,t.coerceAndCheckDataType)(A,K);ae(A,K,!X,q)}function D(A){const{schema:q,errSchemaPath:K,opts:X,self:ee}=A;q.$ref&&X.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(q,ee.RULES)&&ee.logger.warn(`$ref: keywords ignored in schema at path "${K}"`)}function B(A){const{schema:q,opts:K}=A;q.default!==void 0&&K.useDefaults&&K.strictSchema&&(0,p.checkStrictMode)(A,"default is ignored in the schema root")}function G(A){const q=A.schema[A.opts.schemaId];q&&(A.baseId=(0,l.resolveUrl)(A.opts.uriResolver,A.baseId,q))}function J(A){if(A.schema.$async&&!A.schemaEnv.$async)throw new Error("async schema in sync schema")}function V({gen:A,schemaEnv:q,schema:K,errSchemaPath:X,opts:ee}){const ue=K.$comment;if(ee.$comment===!0)A.code((0,a._)`${c.default.self}.logger.log(${ue})`);else if(typeof ee.$comment=="function"){const U=(0,a.str)`${X}/$comment`,te=A.scopeValue("root",{ref:q.root});A.code((0,a._)`${c.default.self}.opts.$comment(${ue}, ${U}, ${te}.schema)`)}}function W(A){const{gen:q,schemaEnv:K,validateName:X,ValidationError:ee,opts:ue}=A;K.$async?q.if((0,a._)`${c.default.errors} === 0`,()=>q.return(c.default.data),()=>q.throw((0,a._)`new ${ee}(${c.default.vErrors})`)):(q.assign((0,a._)`${X}.errors`,c.default.vErrors),ue.unevaluated&&ie(A),q.return((0,a._)`${c.default.errors} === 0`))}function ie({gen:A,evaluated:q,props:K,items:X}){K instanceof a.Name&&A.assign((0,a._)`${q}.props`,K),X instanceof a.Name&&A.assign((0,a._)`${q}.items`,X)}function ae(A,q,K,X){const{gen:ee,schema:ue,data:U,allErrors:te,opts:de,self:ne}=A,{RULES:re}=ne;if(ue.$ref&&(de.ignoreKeywordsWithRef||!(0,p.schemaHasRulesButRef)(ue,re))){ee.block(()=>H(A,"$ref",re.all.$ref.definition));return}de.jtd||pe(A,q),ee.block(()=>{for(const me of re.rules)he(me);he(re.post)});function he(me){(0,r.shouldUseGroup)(ue,me)&&(me.type?(ee.if((0,n.checkDataType)(me.type,U,de.strictNumbers)),_e(A,me),q.length===1&&q[0]===me.type&&K&&(ee.else(),(0,n.reportTypeError)(A)),ee.endIf()):_e(A,me),te||ee.if((0,a._)`${c.default.errors} === ${X||0}`))}}function _e(A,q){const{gen:K,schema:X,opts:{useDefaults:ee}}=A;ee&&(0,i.assignDefaults)(A,q.type),K.block(()=>{for(const U of q.rules)((0,r.shouldUseRule)(X,U)||ue(X,U))&&H(A,U.keyword,U.definition,q.type)});function ue(U,te){return!!(te.keyword==="unevaluatedProperties"&&(U.properties||U.patternProperties)&&!A.isAllOfVariant&&A.opts.defaultUnevaluatedProperties===!1)}}function pe(A,q){A.schemaEnv.meta||!A.opts.strictTypes||(le(A,q),A.opts.allowUnionTypes||L(A,q),N(A,A.dataTypes))}function le(A,q){if(q.length){if(!A.dataTypes.length){A.dataTypes=q;return}q.forEach(K=>{C(A.dataTypes,K)||I(A,`type "${K}" not allowed by context "${A.dataTypes.join(",")}"`)}),P(A,q)}}function L(A,q){q.length>1&&!(q.length===2&&q.includes("null"))&&I(A,"use allowUnionTypes to allow union type keyword")}function N(A,q){const K=A.self.RULES.all;for(const X in K){const ee=K[X];if(typeof ee=="object"&&(0,r.shouldUseRule)(A.schema,ee)){const{type:ue}=ee.definition;ue.length&&!ue.some(U=>z(q,U))&&I(A,`missing type "${ue.join(",")}" for keyword "${X}"`)}}}function z(A,q){return A.includes(q)||q==="number"&&A.includes("integer")}function C(A,q){return A.includes(q)||q==="integer"&&A.includes("number")}function P(A,q){const K=[];for(const X of A.dataTypes)C(q,X)?K.push(X):q.includes("integer")&&X==="number"&&K.push("integer");A.dataTypes=K}function I(A,q){const K=A.schemaEnv.baseId+A.errSchemaPath;q+=` at "${K}" (strictTypes)`,(0,p.checkStrictMode)(A,q,A.opts.strictTypes)}class x{constructor(q,K,X){if((0,o.validateKeywordUsage)(q,K,X),this.gen=q.gen,this.allErrors=q.allErrors,this.keyword=X,this.data=q.data,this.schema=q.schema[X],this.$data=K.$data&&q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(q,this.schema,X,this.$data),this.schemaType=K.schemaType,this.parentSchema=q.schema,this.params={},this.it=q,this.def=K,this.$data)this.schemaCode=q.gen.const("vSchema",oe(this.$data,q));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,K.schemaType,K.allowUndefined))throw new Error(`${X} value must be ${JSON.stringify(K.schemaType)}`);("code"in K?K.trackErrors:K.errors!==!1)&&(this.errsCount=q.gen.const("_errs",c.default.errors))}result(q,K,X){this.failResult((0,a.not)(q),K,X)}failResult(q,K,X){this.gen.if(q),X?X():this.error(),K?(this.gen.else(),K(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(q,K){this.failResult((0,a.not)(q),void 0,K)}fail(q){if(q===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(q),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(q){if(!this.$data)return this.fail(q);const{schemaCode:K}=this;this.fail((0,a._)`${K} !== undefined && (${(0,a.or)(this.invalid$data(),q)})`)}error(q,K,X){if(K){this.setParams(K),this._error(q,X),this.setParams({});return}this._error(q,X)}_error(q,K){(q?d.reportExtraError:d.reportError)(this,this.def.error,K)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(q){this.allErrors||this.gen.if(q)}setParams(q,K){K?Object.assign(this.params,q):this.params=q}block$data(q,K,X=a.nil){this.gen.block(()=>{this.check$data(q,X),K()})}check$data(q=a.nil,K=a.nil){if(!this.$data)return;const{gen:X,schemaCode:ee,schemaType:ue,def:U}=this;X.if((0,a.or)((0,a._)`${ee} === undefined`,K)),q!==a.nil&&X.assign(q,!0),(ue.length||U.validateSchema)&&(X.elseIf(this.invalid$data()),this.$dataError(),q!==a.nil&&X.assign(q,!1)),X.else()}invalid$data(){const{gen:q,schemaCode:K,schemaType:X,def:ee,it:ue}=this;return(0,a.or)(U(),te());function U(){if(X.length){if(!(K instanceof a.Name))throw new Error("ajv implementation error");const de=Array.isArray(X)?X:[X];return(0,a._)`${(0,n.checkDataTypes)(de,K,ue.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function te(){if(ee.validateSchema){const de=q.scopeValue("validate$data",{ref:ee.validateSchema});return(0,a._)`!${de}(${K})`}return a.nil}}subschema(q,K,X){const ee=(0,s.getSubschema)(this.it,q);(0,s.extendSubschemaData)(ee,this.it,q),(0,s.extendSubschemaMode)(ee,q);const ue={...this.it,...ee,items:void 0,props:void 0,isAllOfVariant:X};return y(ue,K),ue}mergeEvaluated(q,K){const{it:X,gen:ee}=this;X.opts.unevaluated&&(X.props!==!0&&q.props!==void 0&&(X.props=p.mergeEvaluated.props(ee,q.props,X.props,K)),X.items!==!0&&q.items!==void 0&&(X.items=p.mergeEvaluated.items(ee,q.items,X.items,K)))}mergeValidEvaluated(q,K){const{it:X,gen:ee}=this;if(X.opts.unevaluated&&(X.props!==!0||X.items!==!0))return ee.if(K,()=>this.mergeEvaluated(q,a.Name)),!0}}Kt.KeywordCxt=x;function H(A,q,K,X){const ee=new x(A,K,q);"code"in K?K.code(ee,X):ee.$data&&K.validate?(0,o.funcKeywordCode)(ee,K):"macro"in K?(0,o.macroKeywordCode)(ee,K):(K.compile||K.validate)&&(0,o.funcKeywordCode)(ee,K)}const Y=/^\/(?:[^~]|~0|~1)*$/,Z=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function oe(A,{dataLevel:q,dataNames:K,dataPathArr:X}){let ee,ue;if(A==="")return c.default.rootData;if(A[0]==="/"){if(!Y.test(A))throw new Error(`Invalid JSON-pointer: ${A}`);ee=A,ue=c.default.rootData}else{const ne=Z.exec(A);if(!ne)throw new Error(`Invalid JSON-pointer: ${A}`);const re=+ne[1];if(ee=ne[2],ee==="#"){if(re>=q)throw new Error(de("property/index",re));return X[q-re]}if(re>q)throw new Error(de("data",re));if(ue=K[q-re],!ee)return ue}let U=ue;const te=ee.split("/");for(const ne of te)ne&&(ue=(0,a._)`${ue}${(0,a.getProperty)((0,p.unescapeJsonPointer)(ne))}`,U=(0,a._)`${U} && ${ue}`);return U;function de(ne,re){return`Cannot access ${ne} ${re} levels up, current level is ${q}`}}return Kt.getData=oe,Kt}var Yn={},Ml;function _s(){if(Ml)return Yn;Ml=1,Object.defineProperty(Yn,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Yn.default=e,Yn}var Qn={},Ll;function On(){if(Ll)return Qn;Ll=1,Object.defineProperty(Qn,"__esModule",{value:!0});const e=Ss();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 Qn.default=t,Qn}var yt={},Ul;function Es(){if(Ul)return yt;Ul=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.resolveSchema=yt.getCompilingSchema=yt.resolveRef=yt.compileSchema=yt.SchemaEnv=void 0;const e=Pe(),t=_s(),r=ht(),n=Ss(),i=Ce(),o=Pn();class s{constructor(T){var w;this.refs={},this.dynamicAnchors={};let y;typeof T.schema=="object"&&(y=T.schema),this.schema=T.schema,this.schemaId=T.schemaId,this.root=T.root||this,this.baseId=(w=T.baseId)!==null&&w!==void 0?w:(0,n.normalizeId)(y?.[T.schemaId||"$id"]),this.schemaPath=T.schemaPath,this.localRefs=T.localRefs,this.meta=T.meta,this.$async=y?.$async,this.refs={}}}yt.SchemaEnv=s;function a($){const T=p.call(this,$);if(T)return T;const w=(0,n.getFullPath)(this.opts.uriResolver,$.root.baseId),{es5:y,lines:S}=this.opts.code,{ownProperties:h}=this.opts,v=new e.CodeGen(this.scope,{es5:y,lines:S,ownProperties:h});let O;$.$async&&(O=v.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const k=v.scopeName("validate");$.validateName=k;const D={gen:v,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:v.scopeValue("schema",this.opts.code.source===!0?{ref:$.schema,code:(0,e.stringify)($.schema)}:{ref:$.schema}),validateName:k,ValidationError:O,schema:$.schema,schemaEnv:$,rootId:w,baseId:$.baseId||w,schemaPath:e.nil,errSchemaPath:$.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let B;try{this._compilations.add($),(0,o.validateFunctionCode)(D),v.optimize(this.opts.code.optimize);const G=v.toString();B=`const visitedNodesForRef = new WeakMap(); ${v.scopeRefs(r.default.scope)}return ${G}`,this.opts.code.process&&(B=this.opts.code.process(B,$));const V=new Function(`${r.default.self}`,`${r.default.scope}`,B)(this,this.scope.get());if(this.scope.value(k,{ref:V}),V.errors=null,V.schema=$.schema,V.schemaEnv=$,$.$async&&(V.$async=!0),this.opts.code.source===!0&&(V.source={validateName:k,validateCode:G,scopeValues:v._values}),this.opts.unevaluated){const{props:W,items:ie}=D;V.evaluated={props:W instanceof e.Name?void 0:W,items:ie instanceof e.Name?void 0:ie,dynamicProps:W instanceof e.Name,dynamicItems:ie instanceof e.Name},V.source&&(V.source.evaluated=(0,e.stringify)(V.evaluated))}return $.validate=V,$}catch(G){throw delete $.validate,delete $.validateName,B&&this.logger.error("Error compiling schema, function code:",B),G}finally{this._compilations.delete($)}}yt.compileSchema=a;function c($,T,w){var y;const S=(0,n.resolveUrl)(this.opts.uriResolver,T,w),h=$.refs[S];if(h)return h;let v=g.call(this,$,S);if(v===void 0){const O=(y=$.localRefs)===null||y===void 0?void 0:y[S],{schemaId:k}=this.opts;O&&(v=new s({schema:O,schemaId:k,root:$,baseId:T}))}if(v===void 0&&this.opts.loadSchemaSync){const O=this.opts.loadSchemaSync(T,w,S);O&&!(this.refs[S]||this.schemas[S])&&(this.addSchema(O,S,void 0),v=g.call(this,$,S))}if(v!==void 0)return $.refs[S]=l.call(this,v)}yt.resolveRef=c;function l($){return(0,n.inlineRef)($.schema,this.opts.inlineRefs)?$.schema:$.validate?$:a.call(this,$)}function p($){for(const T of this._compilations)if(d(T,$))return T}yt.getCompilingSchema=p;function d($,T){return $.schema===T.schema&&$.root===T.root&&$.baseId===T.baseId}function g($,T){let w;for(;typeof(w=this.refs[T])=="string";)T=w;return w||this.schemas[T]||m.call(this,$,T)}function m($,T){const w=this.opts.uriResolver.parse(T),y=(0,n._getFullPath)(this.opts.uriResolver,w);let S=(0,n.getFullPath)(this.opts.uriResolver,$.baseId,void 0);if(Object.keys($.schema).length>0&&y===S)return _.call(this,w,$);const h=(0,n.normalizeId)(y),v=this.refs[h]||this.schemas[h];if(typeof v=="string"){const O=m.call(this,$,v);return typeof O?.schema!="object"?void 0:_.call(this,w,O)}if(typeof v?.schema=="object"){if(v.validate||a.call(this,v),h===(0,n.normalizeId)(T)){const{schema:O}=v,{schemaId:k}=this.opts,D=O[k];return D&&(S=(0,n.resolveUrl)(this.opts.uriResolver,S,D)),new s({schema:O,schemaId:k,root:$,baseId:S})}return _.call(this,w,v)}}yt.resolveSchema=m;const E=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _($,{baseId:T,schema:w,root:y}){var S;if(((S=$.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const O of $.fragment.slice(1).split("/")){if(typeof w=="boolean")return;const k=w[(0,i.unescapeFragment)(O)];if(k===void 0)return;w=k;const D=typeof w=="object"&&w[this.opts.schemaId];!E.has(O)&&D&&(T=(0,n.resolveUrl)(this.opts.uriResolver,T,D))}let h;if(typeof w!="boolean"&&w.$ref&&!(0,i.schemaHasRulesButRef)(w,this.RULES)){const O=(0,n.resolveUrl)(this.opts.uriResolver,T,w.$ref);h=m.call(this,y,O)}const{schemaId:v}=this.opts;if(h=h||new s({schema:w,schemaId:v,root:y,baseId:T}),h.schema!==h.root.schema)return h}return yt}const E$="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",$$="Meta-schema for $data reference (JSON AnySchema extension proposal)",T$="object",P$=["$data"],O$={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},I$=!1,x$={$id:E$,description:$$,type:T$,required:P$,properties:O$,additionalProperties:I$};var Jn={},nn={exports:{}},Qs,Fl;function jm(){if(Fl)return Qs;Fl=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(/^[\da-f]{2}$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function o(h){let v="",O=0,k=0;for(k=0;k<h.length;k++)if(O=h[k].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";v+=h[k];break}for(k+=1;k<h.length;k++){if(O=h[k].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";v+=h[k]}return v}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(h){return h.length=0,!0}function c(h,v,O){if(h.length){const k=o(h);if(k!=="")v.push(k);else return O.error=!0,!1;h.length=0}return!0}function l(h){let v=0;const O={error:!1,address:"",zone:""},k=[],D=[];let B=!1,G=!1,J=c;for(let V=0;V<h.length;V++){const W=h[V];if(!(W==="["||W==="]"))if(W===":"){if(B===!0&&(G=!0),!J(D,k,O))break;if(++v>7){O.error=!0;break}V>0&&h[V-1]===":"&&(B=!0),k.push(":");continue}else if(W==="%"){if(!J(D,k,O))break;J=a}else{D.push(W);continue}}return D.length&&(J===a?O.zone=D.join(""):G?k.push(D.join("")):k.push(o(D))),O.address=k.join(""),O}function p(h){if(d(h,":")<2)return{host:h,isIPV6:!1};const v=l(h);if(v.error)return{host:h,isIPV6:!1};{let O=v.address,k=v.address;return v.zone&&(O+="%"+v.zone,k+="%25"+v.zone),{host:O,isIPV6:!0,escapedHost:k}}}function d(h,v){let O=0;for(let k=0;k<h.length;k++)h[k]===v&&O++;return O}function g(h){let v=h;const O=[];let k=-1,D=0;for(;D=v.length;){if(D===1){if(v===".")break;if(v==="/"){O.push("/");break}else{O.push(v);break}}else if(D===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){O.push("/");break}}else if(D===3&&v==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),O.length!==0&&O.pop();continue}}if((k=v.indexOf("/",1))===-1){O.push(v);break}else O.push(v.slice(0,k)),v=v.slice(k)}return O.join("")}const m={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},E=/[@/?#:]/g,_=/[@/?#]/g;function $(h,v){const O=v?_:E;return O.lastIndex=0,h.replace(O,k=>m[k])}function T(h,v=!1){if(h.indexOf("%")===-1)return h;let O="";for(let k=0;k<h.length;k++){if(h[k]==="%"&&k+2<h.length){const D=h.slice(k+1,k+3);if(r(D)){const B=D.toUpperCase(),G=String.fromCharCode(parseInt(B,16));v&&n(G)?O+=G:O+="%"+B,k+=2;continue}}O+=h[k]}return O}function w(h){let v="";for(let O=0;O<h.length;O++){if(h[O]==="%"&&O+2<h.length){const k=h.slice(O+1,O+3);if(r(k)){const D=k.toUpperCase(),B=String.fromCharCode(parseInt(D,16));B!=="."&&n(B)?v+=B:v+="%"+D,O+=2;continue}}i(h[O])?v+=h[O]:v+=escape(h[O])}return v}function y(h){let v="";for(let O=0;O<h.length;O++){if(h[O]==="%"&&O+2<h.length){const k=h.slice(O+1,O+3);if(r(k)){v+="%"+k.toUpperCase(),O+=2;continue}}v+=escape(h[O])}return v}function S(h){const v=[];if(h.userinfo!==void 0&&(v.push(h.userinfo),v.push("@")),h.host!==void 0){let O=unescape(h.host);if(!t(O)){const k=p(O);k.isIPV6===!0?O=`[${k.escapedHost}]`:O=$(O,!1)}v.push(O)}return(typeof h.port=="number"||typeof h.port=="string")&&(v.push(":"),v.push(String(h.port))),v.length?v.join(""):void 0}return Qs={nonSimpleDomain:s,recomposeAuthority:S,reescapeHostDelimiters:$,normalizePercentEncoding:T,normalizePathEncoding:w,escapePreservingEscapes:y,removeDotSegments:g,isIPv4:t,isUUID:e,normalizeIPv6:p,stringArrayToHexStripped:o},Qs}var Js,Vl;function R$(){if(Vl)return Js;Vl=1;const{isUUID:e}=jm(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(h){return r.indexOf(h)!==-1}function i(h){return h.secure===!0?!0:h.secure===!1?!1:h.scheme?h.scheme.length===3&&(h.scheme[0]==="w"||h.scheme[0]==="W")&&(h.scheme[1]==="s"||h.scheme[1]==="S")&&(h.scheme[2]==="s"||h.scheme[2]==="S"):!1}function o(h){return h.host||(h.error=h.error||"HTTP URIs must have a host."),h}function s(h){const v=String(h.scheme).toLowerCase()==="https";return(h.port===(v?443:80)||h.port==="")&&(h.port=void 0),h.path||(h.path="/"),h}function a(h){return h.secure=i(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h}function c(h){if((h.port===(i(h)?443:80)||h.port==="")&&(h.port=void 0),typeof h.secure=="boolean"&&(h.scheme=h.secure?"wss":"ws",h.secure=void 0),h.resourceName){const[v,O]=h.resourceName.split("?");h.path=v&&v!=="/"?v:void 0,h.query=O,h.resourceName=void 0}return h.fragment=void 0,h}function l(h,v){if(!h.path)return h.error="URN can not be parsed",h;const O=h.path.match(t);if(O){const k=v.scheme||h.scheme||"urn";h.nid=O[1].toLowerCase(),h.nss=O[2];const D=`${k}:${v.nid||h.nid}`,B=S(D);h.path=void 0,B&&(h=B.parse(h,v))}else h.error=h.error||"URN can not be parsed.";return h}function p(h,v){if(h.nid===void 0)throw new Error("URN without nid cannot be serialized");const O=v.scheme||h.scheme||"urn",k=h.nid.toLowerCase(),D=`${O}:${v.nid||k}`,B=S(D);B&&(h=B.serialize(h,v));const G=h,J=h.nss;return G.path=`${k||v.nid}:${J}`,v.skipEscape=!0,G}function d(h,v){const O=h;return O.uuid=O.nss,O.nss=void 0,!v.tolerant&&(!O.uuid||!e(O.uuid))&&(O.error=O.error||"UUID is not valid."),O}function g(h){const v=h;return v.nss=(h.uuid||"").toLowerCase(),v}const m={scheme:"http",domainHost:!0,parse:o,serialize:s},E={scheme:"https",domainHost:m.domainHost,parse:o,serialize:s},_={scheme:"ws",domainHost:!0,parse:a,serialize:c},$={scheme:"wss",domainHost:_.domainHost,parse:_.parse,serialize:_.serialize},y={http:m,https:E,ws:_,wss:$,urn:{scheme:"urn",parse:l,serialize:p,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:d,serialize:g,skipNormalize:!0}};Object.setPrototypeOf(y,null);function S(h){return h&&(y[h]||y[h.toLowerCase()])||void 0}return Js={wsIsSecure:i,SCHEMES:y,isValidSchemeName:n,getSchemeHandler:S},Js}var Bl;function Mm(){if(Bl)return nn.exports;Bl=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:i,escapePreservingEscapes:o,reescapeHostDelimiters:s,isIPv4:a,nonSimpleDomain:c}=jm(),{SCHEMES:l,getSchemeHandler:p}=R$();function d(D,B){return typeof D=="string"?D=h(D,B):typeof D=="object"&&(D=S(_(D,B),B)),D}function g(D,B,G){const J=G?Object.assign({scheme:"null"},G):{scheme:"null"},V=m(S(D,J),S(B,J),J,!0);return J.skipEscape=!0,_(V,J)}function m(D,B,G,J){const V={};return J||(D=S(_(D,G),G),B=S(_(B,G),G)),G=G||{},!G.tolerant&&B.scheme?(V.scheme=B.scheme,V.userinfo=B.userinfo,V.host=B.host,V.port=B.port,V.path=t(B.path||""),V.query=B.query):(B.userinfo!==void 0||B.host!==void 0||B.port!==void 0?(V.userinfo=B.userinfo,V.host=B.host,V.port=B.port,V.path=t(B.path||""),V.query=B.query):(B.path?(B.path[0]==="/"?V.path=t(B.path):((D.userinfo!==void 0||D.host!==void 0||D.port!==void 0)&&!D.path?V.path="/"+B.path:D.path?V.path=D.path.slice(0,D.path.lastIndexOf("/")+1)+B.path:V.path=B.path,V.path=t(V.path)),V.query=B.query):(V.path=D.path,B.query!==void 0?V.query=B.query:V.query=D.query),V.userinfo=D.userinfo,V.host=D.host,V.port=D.port),V.scheme=D.scheme),V.fragment=B.fragment,V}function E(D,B,G){const J=O(D,G),V=O(B,G);return J!==void 0&&V!==void 0&&J.toLowerCase()===V.toLowerCase()}function _(D,B){const G={host:D.host,scheme:D.scheme,userinfo:D.userinfo,port:D.port,path:D.path,query:D.query,nid:D.nid,nss:D.nss,uuid:D.uuid,fragment:D.fragment,reference:D.reference,resourceName:D.resourceName,secure:D.secure,error:""},J=Object.assign({},B),V=[],W=p(J.scheme||G.scheme);W&&W.serialize&&W.serialize(G,J),G.path!==void 0&&(J.skipEscape?G.path=n(G.path):(G.path=o(G.path),G.scheme!==void 0&&(G.path=G.path.split("%3A").join(":")))),J.reference!=="suffix"&&G.scheme&&V.push(G.scheme,":");const ie=r(G);if(ie!==void 0&&(J.reference!=="suffix"&&V.push("//"),V.push(ie),G.path&&G.path[0]!=="/"&&V.push("/")),G.path!==void 0){let ae=G.path;!J.absolutePath&&(!W||!W.absolutePath)&&(ae=t(ae)),ie===void 0&&ae[0]==="/"&&ae[1]==="/"&&(ae="/%2F"+ae.slice(2)),V.push(ae)}return G.query!==void 0&&V.push("?",G.query),G.fragment!==void 0&&V.push("#",G.fragment),V.join("")}const $=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,T=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/;function w(D,B){if(B[2]!==void 0&&D.path&&D.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof D.port=="number"&&(D.port<0||D.port>65535))return"URI port is malformed."}function y(D,B){const G=Object.assign({},B),J={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let V=!1,W=!1;G.reference==="suffix"&&(G.scheme?D=G.scheme+":"+D:D="//"+D);const ie=D.match(T);ie!==null&&ie[1].indexOf("\\")!==-1&&(J.error="URI authority must not contain a literal backslash.",V=!0);const ae=D.match($);if(ae){J.scheme=ae[1],J.userinfo=ae[3],J.host=ae[4],J.port=parseInt(ae[5],10),J.path=ae[6]||"",J.query=ae[7],J.fragment=ae[8],isNaN(J.port)&&(J.port=ae[5]);const _e=w(J,ae);if(_e!==void 0&&(J.error=J.error||_e,V=!0),J.host)if(a(J.host)===!1){const L=e(J.host);J.host=L.host.toLowerCase(),W=L.isIPV6}else W=!0;J.scheme===void 0&&J.userinfo===void 0&&J.host===void 0&&J.port===void 0&&J.query===void 0&&!J.path?J.reference="same-document":J.scheme===void 0?J.reference="relative":J.fragment===void 0?J.reference="absolute":J.reference="uri",G.reference&&G.reference!=="suffix"&&G.reference!==J.reference&&(J.error=J.error||"URI is not a "+G.reference+" reference.");const pe=p(G.scheme||J.scheme);if(!G.unicodeSupport&&(!pe||!pe.unicodeSupport)&&J.host&&(G.domainHost||pe&&pe.domainHost)&&W===!1&&c(J.host))try{J.host=new URL("http://"+J.host).hostname}catch(le){J.error=J.error||"Host's domain name can not be converted to ASCII: "+le}if((!pe||pe&&!pe.skipNormalize)&&(D.indexOf("%")!==-1&&(J.scheme!==void 0&&(J.scheme=unescape(J.scheme)),J.host!==void 0&&(J.host=s(unescape(J.host),W))),J.path&&(J.path=i(J.path)),J.fragment))try{J.fragment=encodeURI(decodeURIComponent(J.fragment))}catch{J.error=J.error||"URI malformed"}pe&&pe.parse&&pe.parse(J,G)}else J.error=J.error||"URI can not be parsed.";return{parsed:J,malformedAuthorityOrPort:V}}function S(D,B){return y(D,B).parsed}function h(D,B){return v(D,B).normalized}function v(D,B){const{parsed:G,malformedAuthorityOrPort:J}=y(D,B);return{normalized:J?D:_(G,B),malformedAuthorityOrPort:J}}function O(D,B){if(typeof D=="string"){const{normalized:G,malformedAuthorityOrPort:J}=v(D,B);return J?void 0:G}if(typeof D=="object")return _(D,B)}const k={SCHEMES:l,normalize:d,resolve:g,resolveComponent:m,equal:E,serialize:_,parse:S};return nn.exports=k,nn.exports.default=k,nn.exports.fastUri=k,nn.exports}var zl;function A$(){if(zl)return Jn;zl=1,Object.defineProperty(Jn,"__esModule",{value:!0});const e=Mm();return e.code='require("ajv/dist/runtime/uri").default',Jn.default=e,Jn}var Kl;function Lm(){return Kl||(Kl=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=Pn();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Pe();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=_s(),i=On(),o=km(),s=Es(),a=Pe(),c=Ss(),l=rs(),p=Ce(),d=x$,g=A$(),m=(L,N)=>new RegExp(L,N);m.code="new RegExp";const E=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],_=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),$={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."},T={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},w=200;function y(L){var N,z,C,P,I,x,H,Y,Z,oe,A,q,K,X,ee,ue,U,te,de,ne,re,he,me,ve,Ee;const je=L.strict,u=(N=L.code)===null||N===void 0?void 0:N.optimize,f=u===!0||u===void 0?1:u||0,b=(C=(z=L.code)===null||z===void 0?void 0:z.regExp)!==null&&C!==void 0?C:m,R=(P=L.uriResolver)!==null&&P!==void 0?P:g.default;return{strictSchema:(x=(I=L.strictSchema)!==null&&I!==void 0?I:je)!==null&&x!==void 0?x:!0,strictNumbers:(Y=(H=L.strictNumbers)!==null&&H!==void 0?H:je)!==null&&Y!==void 0?Y:!0,strictTypes:(oe=(Z=L.strictTypes)!==null&&Z!==void 0?Z:je)!==null&&oe!==void 0?oe:"log",strictTuples:(q=(A=L.strictTuples)!==null&&A!==void 0?A:je)!==null&&q!==void 0?q:"log",strictRequired:(X=(K=L.strictRequired)!==null&&K!==void 0?K:je)!==null&&X!==void 0?X:!1,code:L.code?{...L.code,optimize:f,regExp:b}:{optimize:f,regExp:b},loopRequired:(ee=L.loopRequired)!==null&&ee!==void 0?ee:w,loopEnum:(ue=L.loopEnum)!==null&&ue!==void 0?ue:w,meta:(U=L.meta)!==null&&U!==void 0?U:!0,messages:(te=L.messages)!==null&&te!==void 0?te:!0,inlineRefs:(de=L.inlineRefs)!==null&&de!==void 0?de:!0,schemaId:(ne=L.schemaId)!==null&&ne!==void 0?ne:"$id",addUsedSchema:(re=L.addUsedSchema)!==null&&re!==void 0?re:!0,validateSchema:(he=L.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(me=L.validateFormats)!==null&&me!==void 0?me:!0,unicodeRegExp:(ve=L.unicodeRegExp)!==null&&ve!==void 0?ve:!0,int32range:(Ee=L.int32range)!==null&&Ee!==void 0?Ee:!0,uriResolver:R}}class S{constructor(N={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts={...N,...y(N)};const{es5:z,lines:C}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:_,es5:z,lines:C}),this.logger=J(N.logger);const P=N.validateFormats;N.validateFormats=!1,this.RULES=(0,o.getRules)(),h.call(this,$,N,"NOT SUPPORTED"),h.call(this,T,N,"DEPRECATED","warn"),this._metaOpts=B.call(this),N.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&D.call(this,N.keywords),typeof N.meta=="object"&&this.addMetaSchema(N.meta),O.call(this),N.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:N,meta:z,schemaId:C}=this.opts;let P=d;C==="id"&&(P={...d},P.id=P.$id,delete P.$id),z&&N&&this.addMetaSchema(P,P[C],!1)}defaultMeta(){const{meta:N,schemaId:z}=this.opts;return this.opts.defaultMeta=typeof N=="object"?N[z]||N:void 0}setDefaultUnevaluatedProperties(N){this.opts.defaultUnevaluatedProperties=N}validate(N,z){let C;if(typeof N=="string"){if(C=this.getSchema(N),!C)throw new Error(`no schema with key or ref "${N}"`)}else C=this.compile(N);const P=C(z);return"$async"in C||(this.errors=C.errors),P}compile(N,z){const C=this._addSchema(N,z);return C.validate||this._compileSchemaEnv(C)}compileAsync(N,z){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:C}=this.opts;return P.call(this,N,z);async function P(oe,A){await I.call(this,oe.$schema);const q=this._addSchema(oe,A);return q.validate||x.call(this,q)}async function I(oe){oe&&!this.getSchema(oe)&&await P.call(this,{$ref:oe},!0)}async function x(oe){try{return this._compileSchemaEnv(oe)}catch(A){if(!(A instanceof i.default))throw A;return H.call(this,A),await Y.call(this,A.missingSchema),x.call(this,oe)}}function H({missingSchema:oe,missingRef:A}){if(this.refs[oe])throw new Error(`AnySchema ${oe} is loaded but ${A} cannot be resolved`)}async function Y(oe){const A=await Z.call(this,oe);this.refs[oe]||await I.call(this,A.$schema),this.refs[oe]||this.addSchema(A,oe,z)}async function Z(oe){const A=this._loading[oe];if(A)return A;try{return await(this._loading[oe]=C(oe))}finally{delete this._loading[oe]}}}addSchema(N,z,C,P=this.opts.validateSchema){if(Array.isArray(N)){for(const x of N)this.addSchema(x,void 0,C,P);return this}let I;if(typeof N=="object"){const{schemaId:x}=this.opts;if(I=N[x],I!==void 0&&typeof I!="string")throw new Error(`schema ${x} must be string`)}return z=(0,c.normalizeId)(z||I),this._checkUnique(z),this.schemas[z]=this._addSchema(N,C,z,P,!0),this}addMetaSchema(N,z,C=this.opts.validateSchema){return this.addSchema(N,z,!0,C),this}validateSchema(N,z){if(typeof N=="boolean")return!0;let C;if(C=N.$schema,C!==void 0&&typeof C!="string")throw new Error("$schema must be a string");if(C=C||this.opts.defaultMeta||this.defaultMeta(),!C)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(C,N);if(!P&&z){const I="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(I);else throw new Error(I)}return P}getSchema(N){let z;for(;typeof(z=v.call(this,N))=="string";)N=z;if(z===void 0){const{schemaId:C}=this.opts,P=new s.SchemaEnv({schema:{},schemaId:C});if(z=s.resolveSchema.call(this,P,N),!z)return;this.refs[N]=z}return z.validate||this._compileSchemaEnv(z)}removeSchema(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(typeof N){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const z=v.call(this,N);return typeof z=="object"&&this._cache.delete(z.schema),delete this.schemas[N],delete this.refs[N],this}case"object":{const z=N;this._cache.delete(z);let C=N[this.opts.schemaId];return C&&(C=(0,c.normalizeId)(C),delete this.schemas[C],delete this.refs[C]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(N){for(const z of N)this.addKeyword(z);return this}addKeyword(N,z){let C;if(typeof N=="string")C=N,typeof z=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),z.keyword=C);else if(typeof N=="object"&&z===void 0){if(z=N,C=z.keyword,Array.isArray(C)&&!C.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(W.call(this,C,z),!z)return(0,p.eachItem)(C,I=>ie.call(this,I)),this;_e.call(this,z);const P={...z,type:(0,l.getJSONTypes)(z.type),schemaType:(0,l.getJSONTypes)(z.schemaType)};return(0,p.eachItem)(C,P.type.length===0?I=>ie.call(this,I,P):I=>P.type.forEach(x=>ie.call(this,I,P,x))),this}getKeyword(N){const z=this.RULES.all[N];return typeof z=="object"?z.definition:!!z}removeKeyword(N){const{RULES:z}=this;delete z.keywords[N],delete z.all[N];for(const C of z.rules){const P=C.rules.findIndex(I=>I.keyword===N);P>=0&&C.rules.splice(P,1)}return this}addFormat(N,z){return typeof z=="string"&&(z=new RegExp(z)),this.formats[N]=z,this}errorsText(N=this.errors,{separator:z=", ",dataVar:C="data"}={}){return!N||N.length===0?"No errors":N.map(P=>`${C}${P.instancePath} ${P.message}`).reduce((P,I)=>P+z+I)}$dataMetaSchema(N,z){const C=this.RULES.all;N=JSON.parse(JSON.stringify(N));for(const P of z){const I=P.split("/").slice(1);let x=N;for(const H of I)x=x[H];for(const H in C){const Y=C[H];if(typeof Y!="object")continue;const{$data:Z}=Y.definition,oe=x[H];Z&&oe&&(x[H]=le(oe))}}return N}_removeAllSchemas(N,z){for(const C in N){const P=N[C];(!z||z.test(C))&&(typeof P=="string"?delete N[C]:P&&!P.meta&&(this._cache.delete(P.schema),delete N[C]))}}_addSchema(N,z,C,P=this.opts.validateSchema,I=this.opts.addUsedSchema){let x;const{schemaId:H}=this.opts;if(typeof N=="object")x=N[H];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof N!="boolean")throw new Error("schema must be object or boolean")}let Y=this._cache.get(N);if(Y!==void 0)return Y;C=(0,c.normalizeId)(x||C);const Z=c.getSchemaRefs.call(this,N,C);return Y=new s.SchemaEnv({schema:N,schemaId:H,meta:z,baseId:C,localRefs:Z}),this._cache.set(Y.schema,Y),I&&!C.startsWith("#")&&(C&&this._checkUnique(C),this.refs[C]=Y),P&&this.validateSchema(N,!0),Y}_checkUnique(N){if(this.schemas[N]||this.refs[N])throw new Error(`schema with key or id "${N}" already exists`)}_compileSchemaEnv(N){if(N.meta?this._compileMetaSchema(N):s.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}_compileMetaSchema(N){const z=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,N)}finally{this.opts=z}}}S.ValidationError=n.default,S.MissingRefError=i.default,e.default=S;function h(L,N,z,C="error"){for(const P in L){const I=P;I in N&&this.logger[C](`${z}: option ${P}. ${L[I]}`)}}function v(L){return L=(0,c.normalizeId)(L),this.schemas[L]||this.refs[L]}function O(){const L=this.opts.schemas;if(L)if(Array.isArray(L))this.addSchema(L);else for(const N in L)this.addSchema(L[N],N)}function k(){for(const L in this.opts.formats){const N=this.opts.formats[L];N&&this.addFormat(L,N)}}function D(L){if(Array.isArray(L)){this.addVocabulary(L);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const N in L){const z=L[N];z.keyword||(z.keyword=N),this.addKeyword(z)}}function B(){const L={...this.opts};for(const N of E)delete L[N];return L}const G={log(){},warn(){},error(){}};function J(L){if(L===!1)return G;if(L===void 0)return console;if(L.log&&L.warn&&L.error)return L;throw new Error("logger must implement log, warn and error methods")}const V=/^[a-z_$][a-z0-9_$:-]*$/i;function W(L,N){const{RULES:z}=this;if((0,p.eachItem)(L,C=>{if(z.keywords[C])throw new Error(`Keyword ${C} is already defined`);if(!V.test(C))throw new Error(`Keyword ${C} has invalid name`)}),!!N&&N.$data&&!("code"in N||"validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function ie(L,N,z){var C;const P=N?.post;if(z&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:I}=this;let x=P?I.post:I.rules.find(({type:Y})=>Y===z);if(x||(x={type:z,rules:[]},I.rules.push(x)),I.keywords[L]=!0,!N)return;const H={keyword:L,definition:{...N,type:(0,l.getJSONTypes)(N.type),schemaType:(0,l.getJSONTypes)(N.schemaType)}};N.before?ae.call(this,x,H,N.before):x.rules.push(H),I.all[L]=H,(C=N.implements)===null||C===void 0||C.forEach(Y=>this.addKeyword(Y))}function ae(L,N,z){const C=L.rules.findIndex(P=>P.keyword===z);C>=0?L.rules.splice(C,0,N):(L.rules.push(N),this.logger.warn(`rule ${z} is not defined`))}function _e(L){let{metaSchema:N}=L;N!==void 0&&(L.$data&&this.opts.$data&&(N=le(N)),L.validateSchema=this.compile(N,!0))}const pe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function le(L){return{anyOf:[L,pe]}}})(Bs)),Bs}var Wn={},Xn={},Zn={},Gl;function N$(){if(Gl)return Zn;Gl=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Zn.default=e,Zn}var or={},Hl;function $s(){if(Hl)return or;Hl=1,Object.defineProperty(or,"__esModule",{value:!0}),or.callRef=or.getValidate=void 0;const e=On(),t=Nt(),r=Pe(),n=ht(),i=Es(),o=Ce(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:p,schema:d,it:g}=l,{baseId:m,schemaEnv:E,validateName:_,opts:$,self:T}=g,{root:w}=E;if((d==="#"||d==="#/")&&m===w.baseId)return S();const y=i.resolveRef.call(T,w,m,d);if(y===void 0)throw new e.default(g.opts.uriResolver,m,d);if(y instanceof i.SchemaEnv)return h(y);return v(y);function S(){if(E===w)return c(l,_,E,E.$async);const O=p.scopeValue("root",{ref:w});return c(l,(0,r._)`${O}.validate`,w,w.$async)}function h(O){const k=a(l,O);c(l,k,O,O.$async)}function v(O){const k=p.scopeValue("schema",$.code.source===!0?{ref:O,code:(0,r.stringify)(O)}:{ref:O}),D=p.name("valid"),B=l.subschema({schema:O,dataTypes:[],schemaPath:r.nil,topSchemaRef:k,errSchemaPath:d},D,g.isAllOfVariant);l.mergeEvaluated(B),l.ok(D)}}};function a(l,p){const{gen:d}=l;return p.validate?d.scopeValue("validate",{ref:p.validate}):(0,r._)`${d.scopeValue("wrapper",{ref:p})}.validate`}or.getValidate=a;function c(l,p,d,g){const{gen:m,it:E}=l,{allErrors:_,schemaEnv:$,opts:T}=E,w=T.passContext?n.default.this:r.nil;g?y():S();function y(){if(!$.$async)throw new Error("async schema referenced by sync schema");const O=m.let("valid");m.try(()=>{m.code((0,r._)`await ${(0,t.callValidateCode)(l,p,w)}`),v(p),_||m.assign(O,!0)},k=>{m.if((0,r._)`!(${k} instanceof ${E.ValidationError})`,()=>m.throw(k)),h(k),_||m.assign(O,!1)}),l.ok(O)}function S(){const O=m.name("visitedNodes");m.code((0,r._)`const ${O} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${p}) || new Set()`),m.if((0,r._)`!${O}.has(${l.data})`,()=>{m.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${p}, ${O})`),m.code((0,r._)`const dataNode = ${l.data}`),m.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${O}.add(dataNode)`);const k=l.result((0,t.callValidateCode)(l,p,w),()=>v(p),()=>h(p));return m.code((0,r._)`${O}.delete(dataNode)`),k})}function h(O){const k=(0,r._)`${O}.errors`;m.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${k} : ${n.default.vErrors}.concat(${k})`),m.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function v(O){var k;if(!E.opts.unevaluated)return;const D=(k=d?.validate)===null||k===void 0?void 0:k.evaluated;if(E.props!==!0)if(D&&!D.dynamicProps)D.props!==void 0&&(E.props=o.mergeEvaluated.props(m,D.props,E.props));else{const B=m.var("props",(0,r._)`${O}.evaluated.props`);E.props=o.mergeEvaluated.props(m,B,E.props,r.Name)}if(E.items!==!0)if(D&&!D.dynamicItems)D.items!==void 0&&(E.items=o.mergeEvaluated.items(m,D.items,E.items));else{const B=m.var("items",(0,r._)`${O}.evaluated.items`);E.items=o.mergeEvaluated.items(m,B,E.items,r.Name)}}}return or.callRef=c,or.default=s,or}var Yl;function k$(){if(Yl)return Xn;Yl=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=N$(),t=$s(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Xn.default=r,Xn}var ei={},ti={},Ql;function q$(){if(Ql)return ti;Ql=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=Pe(),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:a,schemaCode:c}=o;o.fail$data((0,e._)`${a} ${r[s].fail} ${c} || isNaN(${a})`)}};return ti.default=i,ti}var ri={},Jl;function C$(){if(Jl)return ri;Jl=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=Pe(),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:a}=n,c=a.opts.multipleOfPrecision,l=i.let("res"),p=c?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,e._)`${l} !== parseInt(${l})`;n.fail$data((0,e._)`(${s} === 0 || (${l} = ${o}/${s}, ${p}))`)}};return ri.default=r,ri}var ni={},ii={},Wl;function D$(){if(Wl)return ii;Wl=1,Object.defineProperty(ii,"__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 ii.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',ii}var Xl;function j$(){if(Xl)return ni;Xl=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=Pe(),t=Ce(),r=D$(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const a=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${s} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:a,schemaCode:c,it:l}=o,p=s==="maxLength"?e.operators.GT:e.operators.LT,d=l.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${a})`;o.fail$data((0,e._)`${d} ${p} ${c}`)}};return ni.default=i,ni}var oi={},Zl;function M$(){if(Zl)return oi;Zl=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=Nt(),t=Ce(),r=Pe(),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:a,$data:c,schema:l,schemaCode:p,it:d}=o,g=d.opts.unicodeRegExp?"u":"";if(c){const{regExp:m}=d.opts.code,E=m.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,m),_=s.let("valid");s.try(()=>s.assign(_,(0,r._)`${E}(${p}, ${g}).test(${a})`),()=>s.assign(_,!1)),o.fail$data((0,r._)`!${_}`)}else{const m=(0,e.usePattern)(o,l);o.fail$data((0,r._)`!${m}.test(${a})`)}}};return oi.default=i,oi}var si={},eu;function L$(){if(eu)return si;eu=1,Object.defineProperty(si,"__esModule",{value:!0});const e=Pe(),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,a=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${o}).length ${a} ${s}`)}};return si.default=r,si}var ai={},tu;function U$(){if(tu)return ai;tu=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=Nt(),t=Cm(),r=Pe(),n=Ce(),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:a,schema:c,schemaCode:l,data:p,$data:d,it:g}=s,{opts:m}=g;if(!d&&c.length===0)return;const E=c.length>=m.loopRequired;if(g.allErrors?_():$(),m.strictRequired){const y=s.parentSchema.properties,{definedProperties:S}=s.it;for(const h of c)if(y?.[h]===void 0&&!S.has(h)){const v=g.schemaEnv.baseId+g.errSchemaPath,O=`required property "${h}" is not defined at "${v}" (strictRequired)`;(0,n.checkStrictMode)(g,O,g.opts.strictRequired)}}function _(){var y;if(E||d)s.block$data(r.nil,T);else for(const S of c){const h=(y=(0,t.getSkipCondition)(s.parentSchema,S))!==null&&y!==void 0?y:(0,r._)`false`;a.if((0,r.not)(h),()=>(0,e.checkReportMissingProp)(s,S))}}function $(){const y=a.let("missing");if(E||d){const S=a.let("valid",!0);s.block$data(S,()=>w(y,S)),s.ok(S)}else a.if((0,e.checkMissingProp)(s,c,y)),(0,e.reportMissingProp)(s,y),a.else()}function T(){a.forOf("prop",l,y=>{s.setParams({missingProperty:y}),a.if((0,e.noPropertyInData)(a,p,y,m.ownProperties),()=>s.error())})}function w(y,S){s.setParams({missingProperty:y}),a.forOf(y,l,()=>{a.assign(S,(0,e.propertyInData)(a,p,y,m.ownProperties)),a.if((0,r.not)(S),()=>{s.error(),a.break()})},r.nil)}}};return ai.default=o,ai}var ci={},ru;function F$(){if(ru)return ci;ru=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=Pe(),t=ht(),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 ci.default=n,ci}var li={},nu;function V$(){if(nu)return li;nu=1,Object.defineProperty(li,"__esModule",{value:!0});const e=Pe(),t=ht(),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 li.default=n,li}var ui={},iu;function B$(){if(iu)return ui;iu=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=Pe(),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,a=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${o}.length ${a} ${s}`)}};return ui.default=r,ui}var pi={},di={},ou;function Tc(){if(ou)return di;ou=1,Object.defineProperty(di,"__esModule",{value:!0});const e=se.requireFastDeepEqual();return e.code='require("ajv/dist/runtime/equal").default',di.default=e,di}var su;function z$(){if(su)return pi;su=1,Object.defineProperty(pi,"__esModule",{value:!0});const e=rs(),t=Pe(),r=Ce(),n=Tc(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${s} are identical)`,params:({params:{i:s,j:a}})=>(0,t._)`{i: ${s}, j: ${a}}`},code(s){const{gen:a,data:c,$data:l,schema:p,parentSchema:d,schemaCode:g,it:m}=s;if(!l&&!p)return;const E=a.let("valid"),_=d.items?(0,e.getSchemaTypes)(d.items):[];s.block$data(E,$,(0,t._)`${g} === false`),s.ok(E);function $(){const S=a.let("i",(0,t._)`${c}.length`),h=a.let("j");s.setParams({i:S,j:h}),a.assign(E,!0),a.if((0,t._)`${S} > 1`,()=>(T()?w:y)(S,h))}function T(){return _.length>0&&!_.some(S=>S==="object"||S==="array")}function w(S,h){const v=a.name("item"),O=(0,e.checkDataTypes)(_,v,m.opts.strictNumbers,e.DataType.Wrong),k=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${S}--;`,()=>{a.let(v,(0,t._)`${c}[${S}]`),a.if(O,(0,t._)`continue`),_.length>1&&a.if((0,t._)`typeof ${v} == "string"`,(0,t._)`${v} += "_"`),a.if((0,t._)`typeof ${k}[${v}] == "number"`,()=>{a.assign(h,(0,t._)`${k}[${v}]`),s.error(),a.assign(E,!1).break()}).code((0,t._)`${k}[${v}] = ${S}`)})}function y(S,h){const v=(0,r.useFunc)(a,n.default),O=a.name("outer");a.label(O).for((0,t._)`;${S}--;`,()=>a.for((0,t._)`${h} = ${S}; ${h}--;`,()=>a.if((0,t._)`${v}(${c}[${S}], ${c}[${h}])`,()=>{s.error(),a.assign(E,!1).break(O)})))}}};return pi.default=o,pi}var fi={},au;function K$(){if(au)return fi;au=1,Object.defineProperty(fi,"__esModule",{value:!0});const e=Pe(),t=Ce(),r=Tc(),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:a,$data:c,schemaCode:l,schema:p}=o;c||p&&typeof p=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${a}, ${l})`):o.fail((0,e._)`${p} !== ${a}`)}};return fi.default=i,fi}var mi={},cu;function G$(){if(cu)return mi;cu=1,Object.defineProperty(mi,"__esModule",{value:!0});const e=Pe(),t=Ce(),r=Tc(),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:a,$data:c,schema:l,schemaCode:p,it:d}=o;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const g=l.length>=d.opts.loopEnum;let m;const E=()=>m??(m=(0,t.useFunc)(s,r.default));let _;if(g||c)_=s.let("valid"),o.block$data(_,$);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const w=s.const("vSchema",p);_=(0,e.or)(...l.map((y,S)=>T(w,S)))}o.pass(_);function $(){s.assign(_,!1),s.forOf("v",p,w=>s.if((0,e._)`${E()}(${a}, ${w})`,()=>s.assign(_,!0).break()))}function T(w,y){const S=l[y];return typeof S=="object"&&S!==null?(0,e._)`${E()}(${a}, ${w}[${y}])`:(0,e._)`${a} === ${S}`}}};return mi.default=i,mi}var lu;function Um(){if(lu)return ei;lu=1,Object.defineProperty(ei,"__esModule",{value:!0});const e=q$(),t=C$(),r=j$(),n=M$(),i=L$(),o=U$(),s=F$(),a=V$(),c=B$(),l=z$(),p=K$(),d=G$(),g=[e.default,t.default,r.default,n.default,i.default,o.default,s.default,a.default,c.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},p.default,d.default];return ei.default=g,ei}var hi={},Ar={},uu;function Fm(){if(uu)return Ar;uu=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.validateAdditionalItems=void 0;const e=Pe(),t=Ce(),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:a}=o,{items:c}=s;if(!Array.isArray(c)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(o,c)}};function i(o,s){const{gen:a,schema:c,data:l,keyword:p,it:d}=o;d.items=!0;const g=a.const("len",(0,e._)`${l}.length`);if(c===!1)o.setParams({len:s.length}),o.pass((0,e._)`${g} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(d,c)){const E=a.var("valid",(0,e._)`${g} <= ${s.length}`);a.if((0,e.not)(E),()=>m(E)),o.ok(E)}function m(E){a.forRange("i",s.length,g,_=>{o.subschema({keyword:p,dataProp:_,dataPropType:t.Type.Num},E),d.allErrors||a.if((0,e.not)(E),()=>a.break())})}}return Ar.validateAdditionalItems=i,Ar.default=n,Ar}var yi={},Nr={},pu;function Vm(){if(pu)return Nr;pu=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.validateTuple=void 0;const e=Pe(),t=Ce(),r=Nt(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:s,it:a}=o;if(Array.isArray(s))return i(o,"additionalItems",s);a.items=!0,!(0,t.alwaysValidSchema)(a,s)&&o.ok((0,r.validateArray)(o))}};function i(o,s,a=o.schema){const{gen:c,parentSchema:l,data:p,keyword:d,it:g}=o;_(l),g.opts.unevaluated&&a.length&&g.items!==!0&&(g.items=t.mergeEvaluated.items(c,a.length,g.items));const m=c.name("valid"),E=c.const("len",(0,e._)`${p}.length`);a.forEach(($,T)=>{(0,t.alwaysValidSchema)(g,$)||(c.if((0,e._)`${E} > ${T}`,()=>o.subschema({keyword:d,schemaProp:T,dataProp:T},m)),o.ok(m))});function _($){const{opts:T,errSchemaPath:w}=g,y=a.length,S=y===$.minItems&&(y===$.maxItems||$[s]===!1);if(T.strictTuples&&!S){const h=`"${d}" is ${y}-tuple, but minItems or maxItems/${s} are not specified or different at path "${w}"`;(0,t.checkStrictMode)(g,h,T.strictTuples)}}}return Nr.validateTuple=i,Nr.default=n,Nr}var du;function H$(){if(du)return yi;du=1,Object.defineProperty(yi,"__esModule",{value:!0});const e=Vm(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return yi.default=t,yi}var gi={},fu;function Y$(){if(fu)return gi;fu=1,Object.defineProperty(gi,"__esModule",{value:!0});const e=Pe(),t=Ce(),r=Nt(),n=Fm(),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:a,parentSchema:c,it:l}=s,{prefixItems:p}=c;l.items=!0,!(0,t.alwaysValidSchema)(l,a)&&(p?(0,n.validateAdditionalItems)(s,p):s.ok((0,r.validateArray)(s)))}};return gi.default=o,gi}var vi={},mu;function Q$(){if(mu)return vi;mu=1,Object.defineProperty(vi,"__esModule",{value:!0});const e=Pe(),t=Ce(),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:a,data:c,it:l}=i;let p,d;const{minContains:g,maxContains:m}=a;l.opts.next?(p=g===void 0?1:g,d=m):p=1;const E=o.const("len",(0,e._)`${c}.length`);if(i.setParams({min:p,max:d}),d===void 0&&p===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(d!==void 0&&p>d){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,s)){let y=(0,e._)`${E} >= ${p}`;d!==void 0&&(y=(0,e._)`${y} && ${E} <= ${d}`),i.pass(y);return}l.items=!0;const _=o.name("valid");d===void 0&&p===1?T(_,()=>o.if(_,()=>o.break())):p===0?(o.let(_,!0),d!==void 0&&o.if((0,e._)`${c}.length > 0`,$)):(o.let(_,!1),$()),i.result(_,()=>i.reset());function $(){const y=o.name("_valid"),S=o.let("count",0);T(y,()=>o.if(y,()=>w(S)))}function T(y,S){o.forRange("i",0,E,h=>{i.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},y),S()})}function w(y){o.code((0,e._)`${y}++`),d===void 0?o.if((0,e._)`${y} >= ${p}`,()=>o.assign(_,!0).break()):(o.if((0,e._)`${y} > ${d}`,()=>o.assign(_,!1).break()),p===1?o.assign(_,!0):o.if((0,e._)`${y} >= ${p}`,()=>o.assign(_,!0)))}}};return vi.default=n,vi}var Ws={},hu;function Pc(){return hu||(hu=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Pe(),r=Ce(),n=Nt();e.error={message:({params:{property:c,depsCount:l,deps:p}})=>{const d=l===1?"property":"properties";return(0,t.str)`must have ${d} ${p} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:p,missingProperty:d}})=>(0,t._)`{property: ${c},
|
|
6
|
+
missingProperty: ${d},
|
|
7
|
+
depsCount: ${l},
|
|
8
|
+
deps: ${p}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,p]=o(c);s(c,l),a(c,p)}};function o({schema:c}){const l={},p={};for(const d in c){if(d==="__proto__")continue;const g=Array.isArray(c[d])?l:p;g[d]=c[d]}return[l,p]}function s(c,l=c.schema){const{gen:p,data:d,it:g}=c;if(Object.keys(l).length===0)return;const m=p.let("missing");for(const E in l){const _=l[E];if(_.length===0)continue;const $=(0,n.propertyInData)(p,d,E,g.opts.ownProperties);c.setParams({property:E,depsCount:_.length,deps:_.join(", ")}),g.allErrors?p.if($,()=>{for(const T of _)(0,n.checkReportMissingProp)(c,T)}):(p.if((0,t._)`${$} && (${(0,n.checkMissingProp)(c,_,m)})`),(0,n.reportMissingProp)(c,m),p.else())}}e.validatePropertyDeps=s;function a(c,l=c.schema){const{gen:p,data:d,keyword:g,it:m}=c,E=p.name("valid");for(const _ in l)(0,r.alwaysValidSchema)(m,l[_])||(p.if((0,n.propertyInData)(p,d,_,m.opts.ownProperties),()=>{const $=c.subschema({keyword:g,schemaProp:_},E);c.mergeValidEvaluated($,E)},()=>p.var(E,!0)),c.ok(E))}e.validateSchemaDeps=a,e.default=i})(Ws)),Ws}var bi={},yu;function J$(){if(yu)return bi;yu=1,Object.defineProperty(bi,"__esModule",{value:!0});const e=Pe(),t=Ce(),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:a,it:c}=i;if((0,t.alwaysValidSchema)(c,s))return;const l=o.name("valid");o.forIn("key",a,p=>{i.setParams({propertyName:p}),i.subschema({keyword:"propertyNames",data:p,dataTypes:["string"],propertyName:p,compositeRule:!0},l),o.if((0,e.not)(l),()=>{i.error(!0),c.allErrors||o.break()})}),i.ok(l)}};return bi.default=n,bi}var wi={},gu;function Bm(){if(gu)return wi;gu=1,Object.defineProperty(wi,"__esModule",{value:!0});const e=Nt(),t=Pe(),r=ht(),n=Ce(),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:a,parentSchema:c,data:l,errsCount:p,it:d}=s,{schema:g=d.opts.defaultAdditionalProperties}=s;if(!p)throw new Error("ajv implementation error");const{allErrors:m,opts:E}=d;if(d.props=!0,E.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(d,g))return;const _=(0,e.allSchemaProperties)(c.properties),$=(0,e.allSchemaProperties)(c.patternProperties);T(),s.ok((0,t._)`${p} === ${r.default.errors}`);function T(){a.forIn("key",l,v=>{!_.length&&!$.length?S(v):a.if(w(v),()=>S(v))})}function w(v){let O;if(_.length>8){const k=(0,n.schemaRefOrVal)(d,c.properties,"properties");O=(0,e.isOwnProperty)(a,k,v)}else _.length?O=(0,t.or)(..._.map(k=>(0,t._)`${v} === ${k}`)):O=t.nil;return $.length&&(O=(0,t.or)(O,...$.map(k=>(0,t._)`${(0,e.usePattern)(s,k)}.test(${v})`))),(0,t.not)(O)}function y(v){a.code((0,t._)`delete ${l}[${v}]`)}function S(v){if(E.removeAdditional==="all"||E.removeAdditional&&g===!1){y(v);return}if(g===!1){s.setParams({additionalProperty:v}),s.error(),m||a.break();return}if(typeof g=="object"&&!(0,n.alwaysValidSchema)(d,g)){const O=a.name("valid");E.removeAdditional==="failing"?(h(v,O,!1),a.if((0,t.not)(O),()=>{s.reset(),y(v)})):(h(v,O),m||a.if((0,t.not)(O),()=>a.break()))}}function h(v,O,k){const D={keyword:"additionalProperties",dataProp:v,dataPropType:n.Type.Str};k===!1&&Object.assign(D,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(D,O)}}};return wi.default=o,wi}var Si={},vu;function W$(){if(vu)return Si;vu=1,Object.defineProperty(Si,"__esModule",{value:!0});const e=Pn(),t=Nt(),r=Ce(),n=Bm(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,parentSchema:c,data:l,it:p}=o;(p.opts.removeAdditional==="all"&&c.additionalProperties===void 0||p.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(p,n.default,"additionalProperties"));const d=(0,t.allSchemaProperties)(a);for(const $ of d)p.definedProperties.add($);p.opts.unevaluated&&d.length&&p.props!==!0&&(p.props=r.mergeEvaluated.props(s,(0,r.toHash)(d),p.props));const g=d.filter($=>!(0,r.alwaysValidSchema)(p,a[$]));if(g.length===0)return;const m=s.name("valid");for(const $ of g)E($)?_($):(s.if((0,t.propertyInData)(s,l,$,p.opts.ownProperties)),_($),p.allErrors||s.else().var(m,!0),s.endIf()),o.it.definedProperties.add($),o.ok(m);function E($){return p.opts.useDefaults&&!p.compositeRule&&a[$].default!==void 0}function _($){o.subschema({keyword:"properties",schemaProp:$,dataProp:$},m)}}};return Si.default=i,Si}var _i={},bu;function X$(){if(bu)return _i;bu=1,Object.defineProperty(_i,"__esModule",{value:!0});const e=Nt(),t=Pe(),r=Ce(),n=Ce(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,data:c,parentSchema:l,it:p}=o,{opts:d}=p,g=(0,e.allSchemaProperties)(a),m=g.filter(S=>(0,r.alwaysValidSchema)(p,a[S]));if(g.length===0||m.length===g.length&&(!p.opts.unevaluated||p.props===!0))return;const E=d.strictSchema&&!d.allowMatchingProperties&&l.properties,_=s.name("valid");p.props!==!0&&!(p.props instanceof t.Name)&&(p.props=(0,n.evaluatedPropsToName)(s,p.props));const{props:$}=p;T();function T(){for(const S of g)E&&w(S),p.allErrors?y(S):(s.var(_,!0),y(S),s.if(_))}function w(S){for(const h in E)new RegExp(S).test(h)&&(0,r.checkStrictMode)(p,`property ${h} matches pattern ${S} (use allowMatchingProperties)`)}function y(S){s.forIn("key",c,h=>{s.if((0,t._)`${(0,e.usePattern)(o,S)}.test(${h})`,()=>{const v=m.includes(S);v||o.subschema({keyword:"patternProperties",schemaProp:S,dataProp:h,dataPropType:n.Type.Str},_),p.opts.unevaluated&&$!==!0?s.assign((0,t._)`${$}[${h}]`,!0):!v&&!p.allErrors&&s.if((0,t.not)(_),()=>s.break())})})}}};return _i.default=i,_i}var Ei={},wu;function Z$(){if(wu)return Ei;wu=1,Object.defineProperty(Ei,"__esModule",{value:!0});const e=Ce(),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 Ei.default=t,Ei}var $i={},Su;function eT(){if(Su)return $i;Su=1,Object.defineProperty($i,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Nt().validateUnion,error:{message:"must match a schema in anyOf"}};return $i.default=t,$i}var Ti={},_u;function tT(){if(_u)return Ti;_u=1,Object.defineProperty(Ti,"__esModule",{value:!0});const e=Pe(),t=Ce(),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:a,it:c}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const l=s,p=o.let("valid",!1),d=o.let("passing",null),g=o.name("_valid");i.setParams({passing:d}),o.block(m),i.result(p,()=>i.reset(),()=>i.error(!0));function m(){l.forEach((E,_)=>{let $;(0,t.alwaysValidSchema)(c,E)?o.var(g,!0):$=i.subschema({keyword:"oneOf",schemaProp:_,compositeRule:!0},g),_>0&&o.if((0,e._)`${g} && ${p}`).assign(p,!1).assign(d,(0,e._)`[${d}, ${_}]`).else(),o.if(g,()=>{o.assign(p,!0),o.assign(d,_),$&&i.mergeEvaluated($,e.Name)})})}}};return Ti.default=n,Ti}var Pi={},Eu;function rT(){if(Eu)return Pi;Eu=1,Object.defineProperty(Pi,"__esModule",{value:!0});const e=Ce(),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((a,c)=>{if((0,e.alwaysValidSchema)(o,a))return;const l=r.subschema({keyword:"allOf",schemaProp:c},s,!0);r.ok(s),r.mergeEvaluated(l)})}};return Pi.default=t,Pi}var Oi={},$u;function nT(){if($u)return Oi;$u=1,Object.defineProperty(Oi,"__esModule",{value:!0});const e=Pe(),t=Ce(),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:a,it:c}=o;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const l=i(c,"then"),p=i(c,"else");if(!l&&!p)return;const d=s.let("valid",!0),g=s.name("_valid");if(m(),o.reset(),l&&p){const _=s.let("ifClause");o.setParams({ifClause:_}),s.if(g,E("then",_),E("else",_))}else l?s.if(g,E("then")):s.if((0,e.not)(g),E("else"));o.pass(d,()=>o.error(!0));function m(){const _=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);o.mergeEvaluated(_)}function E(_,$){return()=>{const T=o.subschema({keyword:_},g);s.assign(d,g),o.mergeValidEvaluated(T,d),$?s.assign($,(0,e._)`${_}`):o.setParams({ifClause:_})}}}};function i(o,s){const a=o.schema[s];return a!==void 0&&!(0,t.alwaysValidSchema)(o,a)}return Oi.default=n,Oi}var Ii={},Tu;function iT(){if(Tu)return Ii;Tu=1,Object.defineProperty(Ii,"__esModule",{value:!0});const e=Ce(),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 Ii.default=t,Ii}var Pu;function zm(){if(Pu)return hi;Pu=1,Object.defineProperty(hi,"__esModule",{value:!0});const e=Fm(),t=H$(),r=Vm(),n=Y$(),i=Q$(),o=Pc(),s=J$(),a=Bm(),c=W$(),l=X$(),p=Z$(),d=eT(),g=tT(),m=rT(),E=nT(),_=iT();function $(T=!1){const w=[p.default,d.default,g.default,m.default,E.default,_.default,s.default,a.default,o.default,c.default,l.default];return T?w.push(t.default,n.default):w.push(e.default,r.default),w.push(i.default),w}return hi.default=$,hi}var xi={},kr={},Ou;function Km(){if(Ou)return kr;Ou=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.dynamicAnchor=void 0;const e=Pe(),t=ht(),r=Es(),n=$s(),i={keyword:"$dynamicAnchor",schemaType:"string",code:a=>o(a,a.schema)};function o(a,c){const{gen:l,it:p}=a;p.schemaEnv.root.dynamicAnchors[c]=!0;const d=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(c)}`,g=p.errSchemaPath==="#"?p.validateName:s(a);l.if((0,e._)`!${d}`,()=>l.assign(d,g))}kr.dynamicAnchor=o;function s(a){const{schemaEnv:c,schema:l,self:p}=a.it,{root:d,baseId:g,localRefs:m,meta:E}=c.root,{schemaId:_}=p.opts,$=new r.SchemaEnv({schema:l,schemaId:_,root:d,baseId:g,localRefs:m,meta:E});return r.compileSchema.call(p,$),(0,n.getValidate)(a,$)}return kr.default=i,kr}var qr={},Iu;function Gm(){if(Iu)return qr;Iu=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.dynamicRef=void 0;const e=Pe(),t=ht(),r=$s(),n={keyword:"$dynamicRef",schemaType:"string",code:o=>i(o,o.schema)};function i(o,s){const{gen:a,keyword:c,it:l}=o;if(s[0]!=="#")throw new Error(`"${c}" only supports hash fragment reference`);const p=s.slice(1);if(l.allErrors)d();else{const m=a.let("valid",!1);d(m),o.ok(m)}function d(m){if(l.schemaEnv.root.dynamicAnchors[p]){const E=a.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(p)}`);a.if(E,g(E,m),g(l.validateName,m))}else g(l.validateName,m)()}function g(m,E){return E?()=>a.block(()=>{(0,r.callRef)(o,m),a.let(E,!0)}):()=>(0,r.callRef)(o,m)}}return qr.dynamicRef=i,qr.default=n,qr}var Ri={},xu;function oT(){if(xu)return Ri;xu=1,Object.defineProperty(Ri,"__esModule",{value:!0});const e=Km(),t=Ce(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,e.dynamicAnchor)(n,""):(0,t.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return Ri.default=r,Ri}var Ai={},Ru;function sT(){if(Ru)return Ai;Ru=1,Object.defineProperty(Ai,"__esModule",{value:!0});const e=Gm(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return Ai.default=t,Ai}var Au;function aT(){if(Au)return xi;Au=1,Object.defineProperty(xi,"__esModule",{value:!0});const e=Km(),t=Gm(),r=oT(),n=sT(),i=[e.default,t.default,r.default,n.default];return xi.default=i,xi}var Ni={},ki={},Nu;function cT(){if(Nu)return ki;Nu=1,Object.defineProperty(ki,"__esModule",{value:!0});const e=Pc(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return ki.default=t,ki}var qi={},ku;function lT(){if(ku)return qi;ku=1,Object.defineProperty(qi,"__esModule",{value:!0});const e=Pc(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return qi.default=t,qi}var Ci={},qu;function uT(){if(qu)return Ci;qu=1,Object.defineProperty(Ci,"__esModule",{value:!0});const e=Ce(),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 Ci.default=t,Ci}var Cu;function pT(){if(Cu)return Ni;Cu=1,Object.defineProperty(Ni,"__esModule",{value:!0});const e=cT(),t=lT(),r=uT(),n=[e.default,t.default,r.default];return Ni.default=n,Ni}var Di={},ji={},Du;function dT(){if(Du)return ji;Du=1,Object.defineProperty(ji,"__esModule",{value:!0});const e=Pe(),t=Ce(),r=ht(),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:a=o.it.opts.defaultUnevaluatedProperties,data:c,errsCount:l,it:p}=o,d=o.schema===void 0&&o.it.opts.defaultUnevaluatedProperties===!1;if(!l)throw new Error("ajv implementation error");const{allErrors:g,props:m}=p;if(m instanceof e.Name)s.if((0,e._)`${m} !== true`,()=>s.forIn("key",c,T=>s.if(_(m,T),()=>E(T))));else if(m!==!0){const T=()=>s.forIn("key",c,w=>m===void 0?E(w):s.if($(m,w),()=>E(w)));d&&p.errorPath.emptyStr()&&!p.compositeRule?s.if((0,e._)`${r.default.isAllOfVariant} === 0`,T):(!p.compositeRule||o.schema!==void 0)&&T()}d||(p.props=!0),o.ok((0,e._)`${l} === ${r.default.errors}`);function E(T){if(a===!1){o.setParams({unevaluatedProperty:T}),o.error(),g||s.break();return}if(!(0,t.alwaysValidSchema)(p,a)){const w=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:T,dataPropType:t.Type.Str},w),g||s.if((0,e.not)(w),()=>s.break())}}function _(T,w){return(0,e._)`!${T} || !${T}[${w}]`}function $(T,w){const y=[];for(const S in T)T[S]===!0&&y.push((0,e._)`${w} !== ${S}`);return(0,e.and)(...y)}}};return ji.default=i,ji}var Mi={},ju;function fT(){if(ju)return Mi;ju=1,Object.defineProperty(Mi,"__esModule",{value:!0});const e=Pe(),t=Ce(),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:a,it:c}=i,l=c.items||0;if(l===!0)return;const p=o.const("len",(0,e._)`${a}.length`);if(s===!1)i.setParams({len:l}),i.fail((0,e._)`${p} > ${l}`);else if(typeof s=="object"&&!(0,t.alwaysValidSchema)(c,s)){const g=o.var("valid",(0,e._)`${p} <= ${l}`);o.if((0,e.not)(g),()=>d(g,l)),i.ok(g)}c.items=!0;function d(g,m){o.forRange("i",m,p,E=>{i.subschema({keyword:"unevaluatedItems",dataProp:E,dataPropType:t.Type.Num},g),c.allErrors||o.if((0,e.not)(g),()=>o.break())})}}};return Mi.default=n,Mi}var Mu;function Hm(){if(Mu)return Di;Mu=1,Object.defineProperty(Di,"__esModule",{value:!0});const e=dT(),t=fT(),r=[e.default,t.default];return Di.default=r,Di}var Li={},Ui={},Lu;function mT(){if(Lu)return Ui;Lu=1,Object.defineProperty(Ui,"__esModule",{value:!0});const e=Pe(),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:a,schema:c,schemaCode:l,it:p}=n,{opts:d,errSchemaPath:g,schemaEnv:m,self:E}=p;if(!d.validateFormats)return;a?_():$();function _(){const T=o.scopeValue("formats",{ref:E.formats,code:d.code.formats}),w=o.const("fDef",(0,e._)`${T}[${l}]`),y=o.let("fType"),S=o.let("format");o.if((0,e._)`typeof ${w} == "object" && !(${w} instanceof RegExp)`,()=>o.assign(y,(0,e._)`${w}.type || "string"`).assign(S,(0,e._)`${w}.validate`),()=>o.assign(y,(0,e._)`"string"`).assign(S,w)),n.fail$data((0,e.or)(h(),v()));function h(){return d.strictSchema===!1?e.nil:(0,e._)`${l} && !${S}`}function v(){const O=m.$async?(0,e._)`(${w}.async ? await ${S}(${s}) : ${S}(${s}))`:(0,e._)`${S}(${s})`,k=(0,e._)`(typeof ${S} == "function" ? ${O} : ${S}.test(${s}))`;return(0,e._)`${S} && ${S} !== true && ${y} === ${i} && !${k}`}}function $(){const T=E.formats[c];if(!T){h();return}if(T===!0)return;const[w,y,S]=v(T);w===i&&n.pass(O());function h(){if(d.strictSchema===!1){E.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${c}" ignored in schema at path "${g}"`}}function v(k){const D=k instanceof RegExp?(0,e.regexpCode)(k):d.code.formats?(0,e._)`${d.code.formats}${(0,e.getProperty)(c)}`:void 0,B=o.scopeValue("formats",{key:c,ref:k,code:D});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,e._)`${B}.validate`]:["string",k,B]}function O(){if(typeof T=="object"&&!(T instanceof RegExp)&&T.async){if(!m.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${s})`}return typeof y=="function"?(0,e._)`${S}(${s})`:(0,e._)`${S}.test(${s})`}}}};return Ui.default=r,Ui}var Uu;function Ym(){if(Uu)return Li;Uu=1,Object.defineProperty(Li,"__esModule",{value:!0});const t=[mT().default];return Li.default=t,Li}var hr={},Fu;function hT(){return Fu||(Fu=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.contentVocabulary=hr.metadataVocabulary=void 0,hr.metadataVocabulary=["title","description","default","deprecated","examples"],hr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),hr}var Vu;function yT(){if(Vu)return Wn;Vu=1,Object.defineProperty(Wn,"__esModule",{value:!0});const e=k$(),t=Um(),r=zm(),n=aT(),i=pT(),o=Hm(),s=Ym(),a=hT(),c=[n.default,e.default,t.default,(0,r.default)(!0),s.default,a.metadataVocabulary,a.contentVocabulary,i.default,o.default];return Wn.default=c,Wn}var Fi={},on={},Bu;function gT(){if(Bu)return on;Bu=1,Object.defineProperty(on,"__esModule",{value:!0}),on.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(on.DiscrError=e={})),on}var zu;function Qm(){if(zu)return Fi;zu=1,Object.defineProperty(Fi,"__esModule",{value:!0});const e=Pe(),t=gT(),r=Es(),n=On(),i=Ce(),o={message:({params:{discrError:c,tagName:l}})=>c===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf or anyOf`,params:({params:{discrError:c,tag:l,tagName:p}})=>(0,e._)`{error: ${c}, tag: ${p}, tagValue: ${l}}`};function s(c,l){var p;if(!(!c.allOf||!Array.isArray(c.allOf))){for(const d of c.allOf)if(!((p=d?.properties)===null||p===void 0)&&p[l])return d.properties[l]}}const a={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(c){const{gen:l,data:p,schema:d,parentSchema:g,it:m}=c,E=g.oneOf?"oneOf":g.anyOf?"anyOf":void 0;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const _=d.propertyName;if(typeof _!="string")throw new Error("discriminator: requires propertyName");if(!E)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const $=g[E],T=l.let("valid",!1),w=l.const("tag",(0,e._)`${p}${(0,e.getProperty)(_)}`);l.if((0,e._)`typeof ${w} == "string"`,()=>y(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:w,tagName:_})),c.ok(T);function y(){const v=h();l.if(!1);for(const O in v)l.elseIf((0,e._)`${w} === ${O}`),l.assign(T,S(v[O]));l.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:w,tagName:_}),l.endIf()}function S(v){const O=l.name("valid"),k=c.subschema({keyword:E,schemaProp:v},O);return c.mergeEvaluated(k,e.Name),O}function h(){var v;const O={},k=B(g);let D=!0;for(let V=0;V<$.length;V++){let W=$[V];const ie=W?.$ref;if(ie&&d.mapping){const{mapping:_e}=d,pe=Object.keys(_e).filter(le=>_e[le]===W.$ref);if(pe.length){for(const le of pe)J(le,V);continue}}if(ie&&!(0,i.schemaHasRulesButRef)(W,m.self.RULES)&&(W=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,ie),W instanceof r.SchemaEnv&&(W=W.schema),W===void 0))throw new n.default(m.opts.uriResolver,m.baseId,ie);let ae=(v=W?.properties)===null||v===void 0?void 0:v[_];if(!ae&&W?.allOf&&(ae=s(W,_)),typeof ae!="object")throw new Error(`discriminator: ${E} subschemas (or referenced schemas) must have "properties/${_}" or match mapping`);D=D&&(k||B(W)),G(ae,V)}if(!D)throw new Error(`discriminator: "${_}" must be required`);return O;function B(V){if(Array.isArray(V.required)&&V.required.includes(_))return!0;if(V.allOf&&Array.isArray(V.allOf))for(const W of V.allOf){const ie=W;if(Array.isArray(ie.required)&&ie.required.includes(_))return!0}return!1}function G(V,W){if(V.const)J(V.const,W);else if(V.enum)for(const ie of V.enum)J(ie,W);else throw new Error(`discriminator: "properties/${_}" must have "const" or "enum"`)}function J(V,W){if(typeof V!="string"||V in O)throw new Error(`discriminator: "${_}" values must be unique strings`);O[V]=W}}}};return Fi.default=a,Fi}var Vi={};const vT="https://json-schema.org/draft/2020-12/schema",bT="https://json-schema.org/draft/2020-12/schema",wT={"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},ST="meta",_T="Core and Validation specifications meta-schema",ET=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],$T=["object","boolean"],TT="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",PT={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}},OT={$schema:vT,$id:bT,$vocabulary:wT,$dynamicAnchor:ST,title:_T,allOf:ET,type:$T,$comment:TT,properties:PT},IT="https://json-schema.org/draft/2020-12/schema",xT="https://json-schema.org/draft/2020-12/meta/applicator",RT={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},AT="meta",NT="Applicator vocabulary meta-schema",kT=["object","boolean"],qT={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"}},CT={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},DT={$schema:IT,$id:xT,$vocabulary:RT,$dynamicAnchor:AT,title:NT,type:kT,properties:qT,$defs:CT},jT="https://json-schema.org/draft/2020-12/schema",MT="https://json-schema.org/draft/2020-12/meta/unevaluated",LT={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},UT="meta",FT="Unevaluated applicator vocabulary meta-schema",VT=["object","boolean"],BT={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},zT={$schema:jT,$id:MT,$vocabulary:LT,$dynamicAnchor:UT,title:FT,type:VT,properties:BT},KT="https://json-schema.org/draft/2020-12/schema",GT="https://json-schema.org/draft/2020-12/meta/content",HT={"https://json-schema.org/draft/2020-12/vocab/content":!0},YT="meta",QT="Content vocabulary meta-schema",JT=["object","boolean"],WT={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},XT={$schema:KT,$id:GT,$vocabulary:HT,$dynamicAnchor:YT,title:QT,type:JT,properties:WT},ZT="https://json-schema.org/draft/2020-12/schema",eP="https://json-schema.org/draft/2020-12/meta/core",tP={"https://json-schema.org/draft/2020-12/vocab/core":!0},rP="meta",nP="Core vocabulary meta-schema",iP=["object","boolean"],oP={$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"}}},sP={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},aP={$schema:ZT,$id:eP,$vocabulary:tP,$dynamicAnchor:rP,title:nP,type:iP,properties:oP,$defs:sP},cP="https://json-schema.org/draft/2020-12/schema",lP="https://json-schema.org/draft/2020-12/meta/format-annotation",uP={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},pP="meta",dP="Format vocabulary meta-schema for annotation results",fP=["object","boolean"],mP={format:{type:"string"}},hP={$schema:cP,$id:lP,$vocabulary:uP,$dynamicAnchor:pP,title:dP,type:fP,properties:mP},yP="https://json-schema.org/draft/2020-12/schema",gP="https://json-schema.org/draft/2020-12/meta/meta-data",vP={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},bP="meta",wP="Meta-data vocabulary meta-schema",SP=["object","boolean"],_P={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}},EP={$schema:yP,$id:gP,$vocabulary:vP,$dynamicAnchor:bP,title:wP,type:SP,properties:_P},$P="https://json-schema.org/draft/2020-12/schema",TP="https://json-schema.org/draft/2020-12/meta/validation",PP={"https://json-schema.org/draft/2020-12/vocab/validation":!0},OP="meta",IP="Validation vocabulary meta-schema",xP=["object","boolean"],RP={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"}}},AP={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:[]}},NP={$schema:$P,$id:TP,$vocabulary:PP,$dynamicAnchor:OP,title:IP,type:xP,properties:RP,$defs:AP};var Ku;function kP(){if(Ku)return Vi;Ku=1,Object.defineProperty(Vi,"__esModule",{value:!0});const e=OT,t=DT,r=zT,n=XT,i=aP,o=hP,s=EP,a=NP,c=["/properties"];function l(p){return[e,t,r,n,i,d(this,o),s,d(this,a)].forEach(g=>this.addMetaSchema(g,void 0,!1)),this;function d(g,m){return p?g.$dataMetaSchema(m,c):m}}return Vi.default=l,Vi}var Gu;function qP(){return Gu||(Gu=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=Lm(),n=yT(),i=Qm(),o=kP(),s="https://json-schema.org/draft/2020-12/schema";class a extends r.default{constructor(m={}){super({...m,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:m,meta:E}=this.opts;E&&(o.default.call(this,m),this.refs["http://json-schema.org/schema"]=s)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv2020=a,e.exports=t=a,e.exports.Ajv2020=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var c=Pn();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var l=Pe();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 p=_s();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var d=On();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})})(Gn,Gn.exports)),Gn.exports}var CP=qP();const Oc=se.getDefaultExportFromCjs(CP),DP=new Oc({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function Hu(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>DP.validate(i,r));return n===-1&&(n=0),t[n]}}function Lr(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(se.isPlainObject(t.properties)||se.isPlainObject(t.additionalProperties)||se.isPlainObject(t.items)&&(se.isPlainObject(t.items.properties)||se.isPlainObject(t.items.additionalProperties)||t.items.oneOf))return jP(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,a)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${a} in oneOf.`);const c=s?.properties?.[n];if(!c||typeof c=="boolean")throw new Error(`Unexpected property '${c}' schema in ${e} at position ${a} in oneOf.`);const l=c.const,p=Lr(l,s,r);return typeof p=="string"&&(i[l]=p),p});return(s,a)=>{if(se.isPlainObject(s)){const c=s[n];if(typeof c=="string"){const l=i[c];if(l&&r[l])return l}}return Hu(t.oneOf,o)(s,a)}}else{const n=t.oneOf.map((i,o)=>Lr(e+"_"+o,i,r));return Hu(t.oneOf,n)}return t}function jP(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[c,l]of Object.entries(t.properties||{}))i[c]=Lr(n+"."+c,l,r);let o;se.isPlainObject(t.additionalProperties)&&(o=Lr(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(o={});let s;se.isPlainObject(t.items)&&(se.isPlainObject(t.items.properties)||se.isPlainObject(t.items.additionalProperties)||t.items.oneOf)&&(s=Lr(e+"_items",t.items,r));let a=t.required;return t.oneOf&&t.oneOf.every(c=>!!c.required)&&(a=c=>{const l=t.oneOf.map(d=>[...t.required||[],...d.required]);let p=l.findIndex(d=>d.every(g=>c[g]!==void 0));return p===-1&&(p=0),l[p]}),r[n]={properties:i,additionalProperties:o,items:s,required:a,description:t.description,documentationLink:t.documentationLink},n}function Jm(e,t){const r={},n=Lr(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const MP=["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"],LP=["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-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"],UP=["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","security-scopes-defined"],FP=["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","security-scopes-defined"],VP=["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"],BP=["info-contact"],zP=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional"],KP=["no-unused-types","type-description"],GP=["struct","no-unresolved-refs"],HP=[...MP,...LP,...UP,...FP,...VP,...BP,...zP,...KP,...GP],YP=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],QP=["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"],Wm=[...QP,...YP],Xm={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!M.isAbsoluteUrl(e)&&!se.path.extname(e)?{type:"string"}:{...yn,directResolveAs:{name:"ConfigGovernance",...yn}},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"},yn={properties:Xm},JP=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...yn.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),WP={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"},XP=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Nm(yn.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),ZP={properties:{headers:{type:"array",items:{type:"string"}}}},eO={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","package"]},importExt:{enum:["js","ts"]},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},setup:{type:"string"},pagination:"ClientPagination"}},Zm={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"}}},tO={properties:{...Zm.properties,exclude:{type:"array",items:{type:"string"}},operations:M.mapOf("ClientPaginationRule")}},rO={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(HP.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if($c(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},nO={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"},iO={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"},oO={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(Wm.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if($c(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},sO={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},aO={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},cO={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(Wm.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if($c(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},lO={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"},uO={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"},pO={properties:{properties:M.mapOf("Schema")},additionalProperties:{}};function dO(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 fO(e){return{...e[pt.ScorecardClassicLevel],properties:{...e[pt.ScorecardClassicLevel]?.properties,...Xm}}}const mO={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"},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"},hO={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"},yO={properties:{subject:"Subject",assertions:"Assertions",where:M.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 Ic(e,t){const r=zo.flatMap(i=>{const o=Tn(i),s=t?t.extendTypes(o,i):o;return Object.keys(s)}),{ctx:n}=Jm("rootRedoclyConfigSchema",e);return{...gO,ConfigRoot:JP(n),ConfigApisProperties:XP(n),Subject:dO([...r,...g$]),...n,[pt.ScorecardClassicLevel]:fO(n)}}const gO={ConfigurableRule:yO,ConfigApis:WP,ConfigGovernance:yn,ConfigHTTP:ZP,Client:eO,ClientPagination:tO,ClientPaginationRule:Zm,Where:hO,BuiltinRule:nO,CustomRule:iO,BuiltinDecorator:sO,CustomDecorator:aO,BuiltinPreprocessor:lO,CustomPreprocessor:uO,Schema:pO,Rules:rO,Decorators:oO,Preprocessors:cO,Assertions:mO},{theme:Q1,...vO}=bs.properties,bO={...bs,properties:vO},eh=Ic(bO),In=M.normalizeTypes(eh),Ha="redocly.yaml",th={extends:["recommended"]},ns=".redocly.lint-ignore.yaml",rh=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
9
|
+
# See https://redocly.com/docs/cli/ for more information.
|
|
10
|
+
`,xc="configBundler",Rc="pluginsCollector",nh=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function ih(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function Bi(e,t){const r=new Set(t);let n=0;for(const i of e)r.has(i)&&n++;return n}function wO(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 c=e[i][n],l=e[i-1][n];if(!c||!l)return!1;o=c,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}const oh=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),sh=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains"]),$r={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||se.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=mn(t);return i.map(s=>!o?.test(s)&&{message:`"${s}" should match a regex ${t}`,location:ot(e)?r:se.isPlainObject(n)?r.child(s).key():r.key()}).filter(M.isTruthy)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||se.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=mn(t);return i.map(s=>o?.test(s)&&{message:`"${s}" should not match a regex ${t}`,location:ot(e)?r:se.isPlainObject(n)?r.child(s).key():r.key()}).filter(M.isTruthy)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||se.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>!t.includes(i)&&{message:`"${i}" should be one of the predefined values`,location:ot(e)?r:r.child(i).key()}).filter(M.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(M.isTruthy),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||se.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(M.isTruthy)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||se.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>t.includes(i)&&{message:`"${i}" is disallowed`,location:ot(e)?r:r.child(i).key()}).filter(M.isTruthy),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`"${n}" should be equal ${t} `,location:ot(e)?r:r.child(n).key()}).filter(M.isTruthy):e!==t?[{message:`${e} should be equal ${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"||se.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:`"${o}" should use ${t}`,location:ot(e)?r:r.child(o).key()}).filter(M.isTruthy)},sortOrder:(e,t,{baseLocation:r})=>{const n=t.direction||t,i=t.property;return Array.isArray(e)&&e.length>0&&se.isPlainObject(e[0])&&!i?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||wO(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})=>Bi(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(Bi(e,t)>0?Bi(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>Bi(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=mn(t);return i&&o?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:i?r:r.key()}]}};function SO(e){return(t,r,n)=>e.call(null,t,r,n)}function _O(e,t){if(!e.rules)return{};const r={},n=[];for(const[i,o]of Object.entries(e.rules))if(i.startsWith("rule/")&&se.isPlainObject(o)){const s=o;if(t){Yu(t,s);for(const a of s.where||[])Yu(t,a)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function Yu(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}.`);$r[r]=SO(o.assertions[i])}}class xn{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;_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=ih(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const n=i=>_O({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({...Nm(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.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!se.isPlainObject(this.resolvedConfig?.apis?.[t]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[t];return new xn({...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?se.pathBrowserifyExports.dirname(this.configPath):process.cwd(),n=M.isAbsoluteUrl(t)?t:se.pathBrowserifyExports.resolve(r,t);delete this.ignore[n]}saveIgnore(){const t=this.configPath?se.pathBrowserifyExports.dirname(this.configPath):process.cwd(),r=se.pathBrowserifyExports.join(t,ns),n={};for(const i of Object.keys(this.ignore)){const o=M.isAbsoluteUrl(i)?i:jf(se.pathBrowserifyExports.relative(t,i)),s=n[o]=this.ignore[i];for(const a of Object.keys(s))s[a]=Array.from(s[a])}(void 0)(r,rh+M.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 zo)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 zo)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(const r of t||[])for(const n of zo)this.decorators[n][r]&&(this.decorators[n][r]="off")}}function tr(e){return e!==void 0}function gn(e,t,r,n){return e.flatMap(i=>Object.keys(i).map(o=>{const s=i[o],a=r==="rules"?t.getRuleSettings(o,n):r==="preprocessors"?t.getPreprocessorSettings(o,n):t.getDecoratorSettings(o,n);if(a.severity==="off")return;const c=a.severity,l=a.message,p=s(a);return Array.isArray(p)?p.map(d=>({severity:c,ruleId:o,message:l,visitor:d})):{severity:c,message:l,ruleId:o,visitor:p}})).flatMap(i=>i).filter(tr)}const EO={},$O={},TO={};function ah(e){return Array.isArray(e)&&e.length===0}function ch(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(M.isRef(e[s])){const a=t.resolve(e[s]);r(a.node)&&(e.splice(s,1),o=!0,s--)}r(e[s])&&(e.splice(s,1),o=!0,s--)}else if(se.isPlainObject(e))for(const s of Object.keys(e)){if(M.isRef(e[s])){const a=t.resolve(e[s]);r(a.node)&&(delete e[s],o=!0)}r(e[s])&&(delete e[s],o=!0)}o&&(Kr(e)||ah(e))&&delete n[i]}function Ur(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=Qu(t),e=Qu(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function Qu(e){return Array.isArray(e)?e:[e]}const PO="any",lh=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||PO;if(n!==void 0){if(n==="Operation"){const s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(const p of s){const d=M.isRef(a[p])?c.resolve(a[p]).node:a[p];if(se.isPlainObject(d)){const g=d[e];Ur(g,t,i)||delete a[p]}}s.some(p=>a[p])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){const c=s[e];Ur(c,t,i)||delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>s?.[e]&&!Ur(s?.[e],t,i);return{any:{enter:(s,a)=>{ch(s,a,o)}}}},OO="any",uh=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||OO;if(n!==void 0){if(n==="Operation"){const s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(const p of s){const d=M.isRef(a[p])?c.resolve(a[p]).node:a[p];if(se.isPlainObject(d)){const g=d[e];Ur(g,t,i)&&delete a[p]}}s.some(p=>a[p])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){const c=s[e];Ur(c,t,i)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>Ur(s?.[e],t,i);return{any:{enter:(s,a)=>{ch(s,a,o)}}}};function Ju(e){const t=(void 0)(e,"utf-8");return M.parseYaml(t)}function vn(e,t){return M.isAbsoluteUrl(e)||t===void 0?e:se.pathBrowserifyExports.resolve(se.pathBrowserifyExports.dirname(t),e)}function Ac(e){return(void 0)(e,"utf-8")}const ph=({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=Ac(vn(e,i?.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
|
|
11
|
+
${o.message}`,location:n.child("description")})}}}}),dh=e=>({Info:{leave(t){if(!se.isPlainObject(e))throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=e;Object.assign(t,n)}}}),fh=({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=Ac(vn(s,i?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${o}".
|
|
12
|
+
${s.message}`,location:n.child("operationId").key()})}}}}),IO="x-internal",mh=({internalFlagProperty:e=IO})=>{function t(n,i,o){const{parent:s,key:a}=i;let c=!1;if(Array.isArray(n))for(let l=0;l<n.length;l++){if(M.isRef(n[l])&&i.resolve(n[l]).node?.[e]){if(se.isPlainObject(s.discriminator?.mapping))for(const d in s.discriminator.mapping)o?.[d]===n[l].$ref&&delete s.discriminator.mapping[d];n.splice(l,1),c=!0,l--}n[l]?.[e]&&(n.splice(l,1),c=!0,l--)}else if(se.isPlainObject(n))for(const l of Object.keys(n)){if(M.isRef(n[l])){const p=i.resolve(n[l]);se.isPlainObject(p.node)&&p.node?.[e]&&(delete n[l],c=!0)}se.isPlainObject(n[l])&&n[l]?.[e]&&(delete n[l],c=!0)}c&&(Kr(n)||ah(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{t(n,i,r)}}}},hh=({tagNames:e})=>({Tag:{leave(t,{report:r,config:n}){if(!e)throw new Error('Parameter "tagNames" is not provided for "tag-description-override" rule');const i=e[t.name];if(i)try{t.description=Ac(vn(i,n?.configPath))}catch(o){r({message:`Failed to read markdown override file for tag "${t.name}".
|
|
13
|
+
${o.message}`})}}}}),xO=["definitions","parameters","responses","securityDefinitions"],yh=()=>{const e=new Map;function t(i,o){const s=`${i}/${o}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:i,name:o})}function r(i){if(!i.startsWith("#/"))return;const[o,s]=M.parseRef(i).pointer;if(!(!o||!s)&&xO.includes(o))return`${o}/${s}`}function n(i,o=new Set){const s=o.size;for(const[a,{usedIn:c,name:l,componentType:p}]of e)!c.some(g=>g!==a&&!o.has(g))&&p&&(o.add(a),delete i[p][l],e.delete(a),Kr(i[p])&&delete i[p]);return o.size>s?n(i,o):o.size}return{ref:{leave(i,{location:o,type:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(s.name)){const c=r(i.$ref);if(!c)return;const l=r(o.pointer)??o.pointer,p=e.get(c);p?p.usedIn.push(l):e.set(c,{usedIn:[l],name:a.toString()})}}},Root:{leave(i,o){const s=o.getVisitorData();s.removedCount=n(i)}},NamedSchemas:{Schema(i,{key:o}){i.allOf||t("definitions",o.toString())}},NamedParameters:{Parameter(i,{key:o}){t("parameters",o.toString())}},NamedResponses:{Response(i,{key:o}){t("responses",o.toString())}},NamedSecuritySchemes:{SecurityScheme(i,{key:o}){t("securityDefinitions",o.toString())}},SecurityRequirement(i){for(const o of Object.keys(i)){const s=`securityDefinitions/${o}`,a=e.get(s);a?a.usedIn.push("SecurityRequirement"):e.set(s,{usedIn:["SecurityRequirement"],name:o})}}}},RO={"operation-description-override":fh,"tag-description-override":hh,"info-description-override":ph,"info-override":dh,"remove-x-internal":mh,"filter-in":lh,"filter-out":uh,"remove-unused-components":yh},AO=({operationIds:e})=>({Operation:{enter(t,r){const n=t.operationId;if(!n)return;const i=e[n];if(i){if(i.responses&&t.responses)for(const o of Object.keys(i.responses)){const s=Wu(t.responses[o],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(i.responses[o]).forEach(a=>{const c=i.responses[o][a];s.content[a]={...s.content[a],examples:Ju(vn(c,r.config?.configPath))}}),t.responses[o]=s)}if(i.request&&t.requestBody){const o=Wu(t.requestBody,r.resolve);if(!o)return;o.content=o.content?o.content:{},Object.keys(i.request).forEach(s=>{const a=i.request[s];o.content[s]={...o.content[s],examples:Ju(vn(a,r.config?.configPath))}}),t.requestBody=o}}}}});function Wu(e,t){if(!M.isRef(e))return e;const r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function NO(e,t){return t in e}function Xu(e){if(!e.startsWith("#/components/"))return;const[t,r,n]=M.parseRef(e).pointer;if(!(!r||!n))return`${r}/${n}`}const gh=()=>{const e=new Map;function t(n,i,o=!1){const s=`${n}/${i}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:n,name:i,referencesDiscriminator:o})}function r(n,i=new Set){const o=i.size;for(const[s,{usedIn:a,name:c,componentType:l,referencesDiscriminator:p}]of e)if(!(a.some(g=>g!==s&&!i.has(g))||p)&&l&&n.components&&NO(n.components,l)){i.add(s);const g=n.components[l];delete g[c],e.delete(s),Kr(g)&&delete n.components[l]}return i.size>o?r(n,i):i.size}return{ref:{leave(n,{location:i,type:o,key:s}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap","SecurityScheme"].includes(o.name)){const a=Xu(n.$ref);if(!a)return;const c=Xu(i.pointer)??i.pointer,l=e.get(a);l?l.usedIn.push(c):e.set(a,{usedIn:[c],name:s.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n),Kr(n.components)&&delete n.components}},NamedSchemas:{Schema(n,i){const o=n.allOf?.some(s=>M.isRef(s)&&i.resolve(s)?.node?.discriminator);t("schemas",i.key.toString(),o)}},NamedParameters:{Parameter(n,{key:i}){t("parameters",i.toString())}},NamedResponses:{Response(n,{key:i}){t("responses",i.toString())}},NamedExamples:{Example(n,{key:i}){t("examples",i.toString())}},NamedRequestBodies:{RequestBody(n,{key:i}){t("requestBodies",i.toString())}},NamedHeaders:{Header(n,{key:i}){t("headers",i.toString())}},NamedMediaTypes:{MediaTypesMap(n,{key:i}){t("mediaTypes",i.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{key:i}){t("securitySchemes",i.toString())}},SecurityRequirement(n){for(const i of Object.keys(n)){const o=`securitySchemes/${i}`,s=e.get(o);s?s.usedIn.push("SecurityRequirement"):e.set(o,{usedIn:["SecurityRequirement"],name:i})}}}},kO={"operation-description-override":fh,"tag-description-override":hh,"info-description-override":ph,"info-override":dh,"remove-x-internal":mh,"filter-in":lh,"filter-out":uh,"media-type-examples-override":AO,"remove-unused-components":gh},qO={},CO={},DO=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;const i=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(const o of e)i.includes(o?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${i.map(s=>`\`${s}\``).join(" or ")}.`,location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});function jO(e){return e}const Ya=void 0,qe=new Proxy(se.tty,{get(e,t){return M.isBrowser?jO:e[t]}});class MO{info(t){return M.isBrowser?console.info(t):process.stderr.write(t)}warn(t){return M.isBrowser?console.warn(t):process.stderr.write(qe.yellow(t))}error(t){return M.isBrowser?console.error(t):process.stderr.write(qe.red(t))}output(t){return M.isBrowser?console.log(t):process.stdout.write(t)}printNewLine(){M.isBrowser?console.log(`
|
|
14
|
+
`):process.stdout.write(`
|
|
15
|
+
`)}printSeparator(t){const r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),i=M.isBrowser?n:qe.gray(n);return M.isBrowser?console.log(i):process.stdout.write(i)}indent(t,r){const n=M.isBrowser?" ":" ";return t.split(`
|
|
16
|
+
`).map(i=>n.repeat(r)+i).join(`
|
|
17
|
+
`)}}const Ne=new MO,Qa={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function Zu(e){const{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,i=n&&mn(n),o=i&&(c=>i.test(c.toString())),s=Array.isArray(t)&&(c=>t.includes(c.toString())),a=Array.isArray(r)&&(c=>!r.includes(c.toString()));return[o,s,a].filter(M.isTruthy)}function vh(e){const t=mc($r).filter(i=>e.assertions[i]!==void 0).map(i=>({name:i,conditions:e.assertions[i],runsOnKeys:oh.has(i),runsOnValues:sh.has(i)})),r=t.find(i=>i.runsOnKeys&&!i.runsOnValues),n=t.find(i=>i.runsOnValues&&!i.runsOnKeys);if(n&&!e.subject.property)throw new Error(`The '${n.name}' assertion can't be used on all keys. Please provide a single property.`);if(r&&e.subject.property)throw new Error(`The '${r.name}' assertion can't be used on properties. Please remove the 'property' key.`);return t}function bh({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function wh(e,t,r){const n=bh(e),i=[];for(const o of t)if(n.length)for(const s of n)i.push(ep({assert:o,ctx:r,assertionProperty:s}));else i.push(ep({assert:o,ctx:r}));return i.flat()}function LO(e,t){const r=Zu(e.subject),n=r.length?(c,l)=>!r.every(p=>p(l)):void 0,i={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return i;let o={};const s=o,a=e.where;for(let c=0;c<a.length;c++){const l=a[c];if(!ot(l.subject?.type))throw new Error(`${e.assertionId} -> where -> [${c}]: 'type' (String) is required`);const p=Zu(l.subject),d=vh(l),g=(E,_,$)=>!p.every(T=>T(_))||!!wh(l,d,{...$,node:E}).length,m={...(p.length||d.length)&&{skip:g}};l.subject.type===e.subject.type&&c===a.length-1?i[e.subject.type]={enter:t,...m.skip&&{skip:m.skip}||n&&{skip:(E,_,$)=>!!(m.skip?.(E,_,$)||n?.(E,_))}}:o=o[l.subject?.type]=m}return o[e.subject.type]=i[e.subject.type],s}function UO(e,t){return(r,n)=>{const i=bh(t),o=`${qe.blue(e)} failed because the ${qe.blue(t.subject.type)} ${qe.blue(i.join(", "))} didn't meet the assertions: ${Qa.problems}`.replace(/ +/g," "),s=wh(t,vh(t),{...n,node:r});if(s.length)for(const a of FO(s)){const c=t.message||o,p={problems:Sh(a),assertionName:e,nodeType:t.subject.type,property:i.join(", "),key:String(n.key),pointer:n.location.pointer,file:_h(n.location.source.absoluteRef)};n.report({message:Eh(c,p),location:VO(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function FO(e){const t={};for(const r of e){if(!r.location)continue;const n=r.location.pointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function VO(e){return e.length?e[0].location:void 0}function Sh(e){return e.length===1?e[0].message??"":e.map(t=>`
|
|
18
|
+
- ${t.message??""}`).join("")}function _h(e){return M.isAbsoluteUrl(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function Eh(e,t){let r=e;for(const n of Object.keys(Qa)){const i=Qa[n],o=t[n];i&&(r=r.split(i).join(o))}return r}function ep({assert:e,ctx:t,assertionProperty:r}){const n=e.name==="ref"?t.rawLocation:t.location;if(r){const i=M.isRef(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],o=t.rawNode[r],s=n.child(r);return $r[e.name](i,e.conditions,{...t,baseLocation:s,rawValue:o})}else{const i=Array.isArray(t.node)?t.node:Object.keys(t.node);return $r[e.name](i,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}const pr=e=>{const t=[],r=Object.values(e).filter(n=>se.isPlainObject(n));for(const[n,i]of r.entries()){if(!ot(i.subject.type))throw new Error(`${i.assertionId}: 'type' (String) is required`);const o=UO(i.assertionId,i),s=LO(i,o);t.push(s)}return t},Rn=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;const n=new Set;for(const[i,o]of e.enum.entries())n.has(o)&&t({message:`Duplicated enum value found: '${o}'.`,location:r.child(["enum",i]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),n.add(o)}});var Xs,tp;function BO(){return tp||(tp=1,Xs=(function(){function e(t,r,n,i,o){return t<r||n<r?t>n?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s<i&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(i-=s,o-=s,i===0||o<3)return o;var a=0,c,l,p,d,g,m,E,_,$,T,w,y,S=[];for(c=0;c<i;c++)S.push(c+1),S.push(t.charCodeAt(s+c));for(var h=S.length-1;a<o-3;)for($=r.charCodeAt(s+(l=a)),T=r.charCodeAt(s+(p=a+1)),w=r.charCodeAt(s+(d=a+2)),y=r.charCodeAt(s+(g=a+3)),m=a+=4,c=0;c<h;c+=2)E=S[c],_=S[c+1],l=e(E,l,p,$,_),p=e(l,p,d,T,_),d=e(p,d,g,w,_),m=e(d,g,m,y,_),S[c]=m,g=d,d=p,p=l,l=E;for(;a<o;)for($=r.charCodeAt(s+(l=a)),m=++a,c=0;c<h;c+=2)E=S[c],S[c]=m=e(E,l,m,$,S[c+1]),l=E;return m}})()),Xs}var zO=BO();const KO=se.getDefaultExportFromCjs(zO),Ts=(e,t,r)=>{if(M.isRef(e)){const n=t.resolve(e,r?.source.absoluteRef);return n?{schema:n.node,location:n.location}:{schema:void 0,location:r}}return{schema:e,location:r}},Fr=(e,t,r,n=new Set,i)=>{const{schema:o,location:s}=Ts(e,r,i);return!o||n.has(o)?!1:(n.add(o),!!(o.properties&&M.getOwn(o.properties,t)!==void 0||o.allOf?.some(a=>Fr(a,t,r,n,s))||Ba(o.anyOf)&&o.anyOf.every(a=>Fr(a,t,r,new Set(n),s))||Ba(o.oneOf)&&o.oneOf.every(a=>Fr(a,t,r,new Set(n),s))))};function Ko(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function is(e){const t=e?.security;return Array.isArray(t)&&t.length>0}function $h(e,t,r){if(is(e))return!0;if(!Array.isArray(e?.traits))return!1;for(const n of e.traits){const i=M.isRef(n)?t(n,r).node:n;if(is(i))return!0}return!1}function os(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return se.isPlainObject(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function Ps(e,t){return`${e} object should contain \`${t}\` field.`}function GO(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function Th(e,t){return`${e} object \`${t}\` must be non-empty string.`}function Qr({fieldName:e,value:t,ctx:r,reference:n}){se.isPlainObject(t)&&(t[e]===void 0?r.report({message:Ps(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:Th(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function HO({fieldNames:e,value:t,ctx:r,reference:n}){if(se.isPlainObject(t)){e.some(i=>t.hasOwnProperty(i))||r.report({message:GO(r.type.name,e),location:r.location.key(),reference:n});for(const i of e)t.hasOwnProperty(i)&&!t[i]&&r.report({message:Th(r.type.name,i),location:r.location.child([i]).key(),reference:n})}}function Os(e,t){if(e===null)return t;if(typeof e!="string"||!t.length)return[];const r=[];for(let n=0;n<t.length;n++){const i=KO(e,t[n]);i<4&&r.push({distance:i,variant:t[n]})}return r.sort((n,i)=>n.distance-i.distance),r.map(n=>n.variant)}function Ph(e){if(se.isPlainObject(e)){if(tr(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(tr(e.value))return{value:e.value,field:"value"}}}function bn({example:e,schema:t,options:r,reference:n}){const{location:i,ctx:o,validator:s,allowAdditionalProperties:a,ajvContext:c}=r,{resolve:l,location:p,report:d,specVersion:g}=o;try{const{valid:m,errors:E}=s.validate(e,t,{schemaLoc:p.child("schema"),instancePath:i.pointer,resolve:l,allowAdditionalProperties:a,ajvContext:c,specVersion:g});if(!m)for(const _ of E)d({message:`Example value must conform to the schema: ${_.message}.`,location:{...new M.Location(i.source,_.instancePath),reportOnKey:_.keyword==="unevaluatedProperties"||_.keyword==="additionalProperties"},from:p,suggest:_.suggest,reference:n})}catch(m){if(m.message==="discriminator: requires oneOf or anyOf composite keyword")return;d({message:`Example validation errored: ${m.message}.`,location:p.child("schema"),from:p,reference:n})}}const YO=10;function rp(e,t,r,n,{report:i,location:o},s){if(e&&!e.includes(t)){const a=e.length>YO?`\`${r}\` "${t}" is not a valid value.${s?` See the supported values: ${s}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(c=>`"${c}"`).join(", ")}.`;i({location:o,message:a,from:n,suggest:Os(t,e)})}}function ss({responseCodes:e,codeRange:t,report:r,reference:n}){const i=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(s=>t==="2XX"&&s==="default"||i.test(s))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function Ja(e,t){return t?e.name.toLowerCase():e.name}const An=()=>({Schema(e,{report:t,location:r}){if(!(e.enum&&!Array.isArray(e.enum))){if(e.enum&&e.type&&!Array.isArray(e.type)){const n=e.enum.filter(i=>!os(i,e.type,e.nullable));for(const i of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${Ko(i)}".`,location:r.child(["enum",e.enum.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}if(e.enum&&e.type&&Array.isArray(e.type)){const n={};for(const i of e.enum){n[i]=[];for(const o of e.type)os(i,o,e.nullable)||n[i].push(o);n[i].length!==e.type.length&&delete n[i]}for(const i of Object.keys(n))t({message:`Enum value \`${i}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}}}),Is=()=>({Schema(e,{report:t,location:r}){typeof e.maximum=="number"&&typeof e.exclusiveMaximum=="number"&&t({message:"Schema should not have both `maximum` and `exclusiveMaximum`. Use one or the other.",location:r.child(["exclusiveMaximum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"}),typeof e.minimum=="number"&&typeof e.exclusiveMinimum=="number"&&t({message:"Schema should not have both `minimum` and `exclusiveMinimum`. Use one or the other.",location:r.child(["exclusiveMinimum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"})}}),Nn=()=>{const e=[];return{Schema:{leave(t){e.pop()},enter(t,r){if(e.push(t),!t.required)return;const n=(s,a)=>{const c=l=>Ts(l,r).schema===a;return!!(s.allOf?.some(c)||s.anyOf?.some(c)||s.oneOf?.some(c))},i=(s,a)=>{if(s<0)return;const c=e[s];return n(c,a)?i(s-1,c)??c:void 0},o=i(e.length-2,t);for(const[s,a]of t.required.entries())!Fr(t,a,r)&&!Fr(o,a,r)&&r.report({message:`Required property '${a}' is not defined.`,location:r.location.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}},kn=()=>({Schema(e,{report:t,location:r}){e.type==="object"&&e.items&&t({message:"Schema type mismatch: 'object' type should not contain 'items' field.",location:r.child("items"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"})}}),nr=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&Mr(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(const i of Object.keys(e)){const o=r({$ref:e[i]});if(o.node!==void 0)return;Mr(o,t,n.child(i))}}});function Mr(e,t,r){const n=e.error;n instanceof M.YamlParseError&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});const i=e.error?.message;t({location:r,message:`Can't resolve $ref${i?": "+i:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}const qn=()=>({any(e,{report:t,location:r}){typeof e.description=="string"&&(/<script\b/i.test(e.description)&&t({message:"Markdown descriptions must not contain '<script>' tags.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/<[a-z][^>]*\bon[a-z]+\s*=/i.test(e.description)&&t({message:"Markdown descriptions must not contain HTML event handler attributes.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/(?:\]\(\s*|\b(?:href|src)\s*=\s*["']?\s*)javascript:/i.test(e.description)&&t({message:"Markdown descriptions must not contain 'javascript:' URLs.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}))}}),ir=()=>({any(e,{report:t,type:r,location:n,rawLocation:i,key:o,resolve:s,ignoreNextVisitorsOnNode:a}){const c=Ko(e),l=i!==n?i:void 0;if(r.items){c!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${c}\``,from:l}),a());return}else if(c!=="object"){r!==M.SpecExtension&&t({message:`Expected type \`${r.name}\` (object) but got \`${c}\``,from:l}),a();return}const p=typeof r.required=="function"?r.required(e,o):r.required;for(const m of p||[])e.hasOwnProperty(m)||t({message:`The field \`${m}\` must be present on this level.`,from:l,location:[{reportOnKey:!0}]});const d=r.allowed?.(e);if(d&&se.isPlainObject(e))for(const m in e)d.includes(m)||r.extensionsPrefix&&m.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(m)||t({message:`The field \`${m}\` is not allowed here.`,from:l,location:n.child([m]).key()});const g=r.requiredOneOf||null;if(g){let m=!1;for(const E of g||[])e.hasOwnProperty(E)&&(m=!0);m||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:l,location:[{reportOnKey:!0}]})}for(const m of Object.keys(e)){const E=n.child([m]);let _=e[m],$=M.getOwn(r.properties,m);if($===void 0&&($=r.additionalProperties),typeof $=="function"&&($=$(_,m)),M.isNamedType($))continue;const T=$,w=Ko(_);if(T===void 0){if(m.startsWith("x-"))continue;t({message:`Property \`${m}\` is not expected here.`,suggest:Os(m,Object.keys(r.properties)),from:l,location:E.key()});continue}if(T!==null){if(T.resolvable!==!1&&M.isRef(_)&&(_=s(_).node),T.items&&T.items?.enum&&Array.isArray(_))for(let y=0;y<_.length;y++)rp(T.items?.enum,_[y],m,l,{report:t,location:n.child([m,y])},T.items?.documentationLink);if(T.enum)rp(T.enum,_,m,l,{report:t,location:n.child([m])},T.documentationLink);else if(T.type&&!os(_,T.type,!1))t({message:`Expected type \`${T.type}\` but got \`${w}\`.`,from:l,location:E}),a();else if(w==="array"&&T.items?.type){const y=T.items?.type;for(let S=0;S<_.length;S++){const h=_[S];os(h,y,!1)||t({message:`Expected type \`${y}\` but got \`${Ko(h)}\`.`,from:l,location:E.child([S])})}}typeof T.minimum=="number"&&T.minimum>e[m]&&t({message:`The value of the ${m} field must be greater than or equal to ${T.minimum}`,from:l,location:n.child([m])})}}}}),QO=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||se.isPlainObject(e.type)&&e.type.type==="xpath")&&t({message:"The `xpath` type criteria is not supported by Respect.",location:r.child(["type"]),reference:"https://redocly.com/docs/cli/rules/respect/no-criteria-xpath"})}}}),JO=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(const i of t){const o=M.getOwn(i,"scheme"),s=M.getOwn(i,"schemeName");o&&s&&r({message:"`x-security` item must not contain both `scheme` and `schemeName`.",location:n.child(["x-security",t.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-both-scheme-and-scheme-name"})}}return{Workflow:{enter(t,r){e(t?.["x-security"],r)}},Step:{enter(t,r){e(t?.["x-security"],r)}}}},WO=()=>({Step:{enter(e,{report:t,location:r}){if(!e?.["x-operation"])return;const i=e?.["x-security"];if(i)for(const o of i)"schemeName"in o&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",i.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-scheme-name-without-openapi"})}}}),XO=()=>{let e=0;return{SourceDescriptions:{enter(t){e=Array.isArray(t)?t.length:0}},Workflow:{leave(t,{report:r,location:n}){const i=t?.["x-security"];if(!(!i||e<=1)){for(const o of i)if("schemeName"in o){const s=o.schemeName;typeof s=="string"&&s.startsWith("$sourceDescriptions.")||r({message:"When multiple `sourceDescriptions` exist, `workflow.x-security.schemeName` must be a reference to a source description (e.g. `$sourceDescriptions.{name}.{schemeName}`)",location:n.child(["x-security",i.indexOf(o),"schemeName"]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-name-reference"})}}}}}},ZO={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function np(e,{report:t,location:r}){if(e)for(const n of e){if("schemeName"in n)continue;const{scheme:i,values:o}=n,s=i?.type==="http"?i.scheme:i?.type;if(s==="mutualTLS"){Ne.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}const a=ZO[s];if(a)for(const c of a)(!o||!(c in o))&&t({message:`The \`${c}\` is required when using the ${s} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"});else t({message:`The \`${s}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"})}}const eI=()=>({Step:{enter(e,t){np(e?.["x-security"],t)}},Workflow:{enter(e,t){np(e?.["x-security"],t)}}}),tI=()=>({FailureActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}},SuccessActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}},Step:{enter(e,{report:t,location:r}){const n=e?.successCriteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}}}),rI=()=>{const e=new Map,t=new Map,r=[];function n({value:s,report:a,location:c,path:l,definedWorkflowOutputs:p}){const d=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let g;for(;(g=d.exec(s))!==null;){const[m,E,_]=g,$=p.get(E);$?$.includes(_)||a({message:`Output key "${_}" is not defined in workflow "${E}". Available outputs: [ ${$.join(", ")} ].`,location:c.child(l)}):a({message:`Workflow "${E}" referenced in runtime expression "${m}" is not defined or has no outputs.`,location:c.child(l)})}}function i({value:s,report:a,location:c,path:l,definedStepOutputs:p}){const d=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let g;for(;(g=d.exec(s))!==null;){const[m,E,_]=g,$=p.get(E);$?$.includes(_)||a({message:`Output key "${_}" is not defined in step "${E}". Available outputs: [ ${$.join(", ")} ].`,location:c.child(l)}):a({message:`Step "${E}" referenced in runtime expression "${m}" is not defined or has no outputs.`,location:c.child(l)})}}function o(s,a,c=[]){if(typeof s=="string")n({value:s,report:a.report,location:a.location,path:c,definedWorkflowOutputs:e}),i({value:s,report:a.report,location:a.location,path:c,definedStepOutputs:t});else if(se.isPlainObject(s)||Array.isArray(s))for(const[l,p]of Object.entries(s))o(p,a,[...c,l])}return{Step:{enter(s,{report:a,location:c}){s.outputs&&t.set(s.stepId,Object.keys(s.outputs))}},Workflow:{enter(s,{report:a,location:c}){s.outputs&&e.set(s.workflowId,Object.keys(s.outputs))}},Parameters:{enter(s,a){r.push(()=>{o(s,a)})}},RequestBody:{enter(s,a){r.push(()=>{o(s,a)})}},CriterionObject:{enter(s,a){r.push(()=>{o(s.condition,a)})}},Outputs:{enter(s,a){r.push(()=>{o(s,a)})}},ExtendedSecurity:{enter(s,a){r.push(()=>{o(s,a)})}},ExtendedOperation:{enter(s,a){r.push(()=>{o(s,a)})}},Root:{leave(){for(const s of r)s()}}}},nI=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),n.has(i?.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),n.add(i?.name??i?.reference)}}}),iI=()=>{const e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(const i of t.replacements)e.has(i.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(i),"target"]),reference:"https://redocly.com/docs/cli/rules/arazzo/requestbody-replacements-unique"}),e.add(i.target)}}}}},oI=()=>{const e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(const i of t)e.has(i.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-name-unique"}),e.add(i.name)}}}},sI=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}}),aI=["x-operation","operationId","operationPath","channelPath","workflowId"],cI=()=>({Step:{enter(e,{report:t,location:r}){const n=aI.filter(i=>Object.hasOwn(e,i));n.length>1&&t({message:`A step can only use one of the following mutually exclusive fields: ${n.map(i=>`\`${i}\``).join(", ")}.`,location:n.map(i=>r.child([i]).key()),reference:"https://redocly.com/docs/cli/rules/arazzo/spec-step-mutually-exclusive-fields"})}}}),lI=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.has(i?.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.add(i.name??i.reference)}}}),uI=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.has(i?.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.add(i?.name??i?.reference)}}}),pI=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;const n=new Set;for(const i of e.steps){if(!i.stepId)return;n.has(i.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/stepid-unique"}),n.add(i.stepId)}}}}),dI=()=>{const e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(const i of n)t.add(i.name)}},Workflows:{enter(n){for(const i of n)r.add(i.workflowId)}},Workflow:{leave(n,{report:i,location:o}){if(n.dependsOn)for(const s of n.dependsOn){if(s.startsWith("$sourceDescriptions.")){const a=s.split(".")[1];t.has(a)||i({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:o.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!s.startsWith("$sourceDescriptions")&&!r.has(s)&&i({message:`Workflow ${s} must be defined in workflows.`,location:o.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.has(s)&&i({message:"Every workflow in dependsOn must be unique.",location:o.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.add(s)}}}}},fI=()=>{const e=new Set;return{Workflow:{enter(t,{report:r,location:n}){t.workflowId&&(e.has(t.workflowId)&&r({message:"Every workflow must have a unique `workflowId`.",location:n.child([t.workflowId]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflowid-unique"}),e.add(t.workflowId))}}}},mI={assertions:pr,"criteria-unique":tI,"no-criteria-xpath":QO,"no-duplicated-enum-values":Rn,"no-unsafe-markdown":qn,"no-enum-type-mismatch":An,"no-mixed-number-range-constraints":Is,"no-required-schema-properties-undefined":Nn,"no-schema-type-mismatch":kn,"no-unresolved-refs":nr,"no-x-security-both-scheme-and-scheme-name":JO,"no-x-security-scheme-name-without-openapi":WO,"outputs-defined":rI,"parameters-unique":nI,"requestBody-replacements-unique":iI,"sourceDescription-name-unique":oI,"sourceDescription-type":DO,"sourceDescriptions-not-empty":sI,"spec-step-mutually-exclusive-fields":cI,"step-onFailure-unique":lI,"step-onSuccess-unique":uI,"stepId-unique":pI,struct:ir,"workflow-dependsOn":dI,"workflowId-unique":fI,"x-security-scheme-name-reference":XO,"x-security-scheme-required-values":eI},hI={},Jr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:Ps("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}}),yI=/^1\.0\.\d+(-.+)?$/;function Nc(e){return e.startsWith("oas3")?"oas3":e==="oas2"?"oas2":e==="async2"?"async2":e==="async3"?"async3":e==="arazzo1"||e==="arazzo1_1"?"arazzo1":e==="overlay1"?"overlay1":e==="openrpc1"?"openrpc1":e==="graphql"?"graphql":"oas3"}function Wr(e){if(!se.isPlainObject(e))throw new Error(`Document must be JSON object, got ${typeof e}`);if(typeof e.openrpc=="string"&&e.openrpc.startsWith("1."))return"openrpc1";if(e.openapi&&typeof e.openapi!="string")throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof e.openapi}"`);if(typeof e.openapi=="string"&&e.openapi.startsWith("3.0."))return"oas3_0";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.1."))return"oas3_1";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.2."))return"oas3_2";if(e.swagger&&e.swagger==="2.0")return"oas2";if(e.openapi||e.swagger)throw new Error(`Unsupported OpenAPI version: ${e.openapi||e.swagger}`);if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("2."))return"async2";if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("3."))return"async3";if(e.asyncapi)throw new Error(`Unsupported AsyncAPI version: ${e.asyncapi}`);if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.0."))return"arazzo1";if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.1."))return"arazzo1_1";if(e.arazzo)throw new Error(`Unsupported Arazzo version: ${e.arazzo}`);if(typeof e.overlay=="string"&&yI.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}const xs=()=>{let e;return{Root:{enter(t){e=Wr(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?HO({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):Qr({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}},Rs=({ignoreCase:e=!1})=>{const t=new Set;return{Tag:{leave(r,n){const i=Ja(r,e);t.has(i)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(i)}}}},As=()=>({Root:{PathItem:{Operation(e,t){Qr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function gI(e,t,r){if("flows"in e&&e.flows){const{node:n,location:i}=M.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{const c=M.isRef(a)?t(a,o).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}const kc=e=>{const t=new Map,r=[];return{Root:{leave(n,{report:i}){for(const{schemeName:o,scopes:s,location:a}of r){const c=t.get(o);if(c?.type==="oauth2"){if(e.requireScopes&&s.length===0){i({message:`The "${o}" security requirement must list at least one scope.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}for(let l=0;l<s.length;l++){const p=s[l];c.definedScopes.includes(p)||i({message:`The "${p}" scope is not defined in the "${o}" security scheme.`,location:a.child([l]),suggest:Os(p,c.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:i,resolve:o,location:s}){t.set(i.toString(),{type:n.type,definedScopes:n.type==="oauth2"?gI(n,o,s):[]})},SecurityRequirement(n,{location:i}){for(const[o,s]of Object.entries(n))r.push({schemeName:o,scopes:s||[],location:i.child([o])})}}},Ns=()=>({Tag(e,t){Qr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}}),ks=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let i=0;i<t.tags.length-1;i++)Ja(t.tags[i],e)>Ja(t.tags[i+1],e)&&r({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",i]),reference:"https://redocly.com/docs/cli/rules/oas/tags-alphabetical"})}}),vI=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}}),bI=()=>({Channel(e,{report:t,key:r,location:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}}),ip="https://redocly.com/docs/cli/rules/async/security-defined",wI=()=>{const e=new Map,t=new Map,r=[];let n,i=!1;return{Root:{leave(o,{report:s}){for(const[c,l]of e.entries())if(!l.defined)for(const p of l.from)s({message:`There is no \`${c}\` security scheme defined.`,location:p.key(),reference:ip});const a=[...t.keys()];for(const{location:c,channelServers:l}of r){const p=l??a;p.length>0&&p.every(g=>t.get(g))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:ip})}}},SecurityScheme(o,{key:s}){o!=null&&e.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:s}){for(const a of Object.keys(o)){const c=e.get(a),l=s.child([a]);c?c.from.push(l):e.set(a,{from:[l]})}},Components:{enter(){i=!0},leave(){i=!1}},Server(o,{key:s}){i||t.set(s.toString(),is(o))},Channel:{skip(){return i},enter(o){n=Array.isArray(o?.servers)&&o.servers.length>0?o.servers:void 0},Operation(o,{location:s,resolve:a}){$h(o,a)||r.push({location:s,channelServers:n})}}}},SI={struct:ir,"no-unresolved-refs":nr,assertions:pr,"info-contact":Jr,"info-license-strict":xs,"operation-operationId":As,"security-defined":wI,"channels-kebab-case":vI,"no-channel-trailing-slash":bI,"tag-description":Ns,"tags-alphabetical":ks,"no-duplicated-enum-values":Rn,"no-unsafe-markdown":qn,"no-duplicated-tag-names":Rs,"no-required-schema-properties-undefined":Nn,"no-enum-type-mismatch":An,"no-mixed-number-range-constraints":Is,"no-schema-type-mismatch":kn,"security-scopes-defined":kc},_I={},EI=()=>({Channel(e,{report:t}){(e.address||"").split(/[/.:]/).filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${e.address}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}}),$I=()=>({Channel(e,{report:t,location:r}){e?.address?.endsWith("/")&&e?.address!=="/"&&t({message:`\`${e.address}\` should not have a trailing slash.`,location:r.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}}),op="#/components/securitySchemes/",TI="#/components/",Zs="https://redocly.com/docs/cli/rules/async/security-defined";function PI(e){const t=e.indexOf("#");return t===-1?e:e.slice(t)}function OI(e){if(!e.startsWith(op))return!1;const t=e.slice(op.length);return t!==""&&!t.includes("/")}const II=()=>{const e=[];let t,r,n,i,o;const s=(a,c,l)=>{const p=a.channel,d=M.isRef(p)?c(p,l):void 0,m=(M.isRef(p)?d?.node:p)?.servers;let E,_;return m&&m.length>0?(E=m,_=d?.location?.source.absoluteRef??l):(E=t?Object.values(t):[],_=r),E.length===0?!1:E.every($=>{const T=M.isRef($)?c($,_).node:$;return is(T)})};return{Root:{enter(a,{location:c,resolve:l}){const p=a?.servers;if(M.isRef(p)){const g=l(p);t=g.node??void 0,r=g.location?.source.absoluteRef}else t=p,r=void 0;const d=a?.operations;if(M.isRef(d)){const g=l(d);n=g.node??void 0,i=g.location?.source.absoluteRef,o=g.location}else n=d,i=void 0,o=c.child(["operations"])},leave(a,{report:c,resolve:l}){for(const p of e){if((p.local||p.refPointer.startsWith(TI))&&!OI(p.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:p.location.key(),reference:Zs});continue}p.resolved||c({message:`There is no \`${p.name}\` security scheme defined.`,location:p.location.key(),reference:Zs})}if(n&&o){const p=o;for(const[d,g]of Object.entries(n)){let m,E;if(M.isRef(g)){const _=l(g,i);m=_.node,E=_.location?.source.absoluteRef}else m=g,E=i;m&&($h(m,l,E)||s(m,l,E)||c({message:"Every operation should have security defined on it.",location:p.child([d]).key(),reference:Zs}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:l}){if(a)for(let p=0;p<a.length;p++){const d=a[p];if(!M.isRef(d))continue;const g=c.child([p]),m=l(d),E=PI(d.$ref),_=E.split("/").pop()??d.$ref;e.push({location:g,name:_,refPointer:E,resolved:m.node!=null,local:d.$ref.startsWith("#")})}}}}};function xI(e,t,r){if(!e.flows)return[];const{node:n,location:i}=M.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{const c=M.isRef(a)?t(a,o).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}const RI=e=>{const t=new Map;return{SecuritySchemeList(r,{resolve:n,location:i}){for(let o=0;o<r.length;o++){const s=r[o],a=M.isRef(s)?n(s):{node:s,location:i.child([o])};!a.node||!a.location||t.set(a.location.absolutePointer,{scheme:a.node,location:a.location,availableScopes:a.node.type==="oauth2"?xI(a.node,n,a.location):[]})}},Root:{leave(r,{report:n}){for(const{scheme:i,location:o,availableScopes:s}of t.values()){if(i.type!=="oauth2")continue;if(e.requireScopes&&!i.scopes?.length){n({message:"The security scheme must list at least one scope.",location:o.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}const a=i.scopes||[];for(let c=0;c<a.length;c++){const l=a[c];s.includes(l)||n({message:`The "${l}" scope is not defined in the available scopes of the security scheme flows.`,location:o.child(["scopes",c]),suggest:Os(l,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}},AI={struct:ir,"no-unresolved-refs":nr,assertions:pr,"info-contact":Jr,"info-license-strict":xs,"operation-operationId":As,"security-defined":II,"channels-kebab-case":EI,"no-channel-trailing-slash":$I,"tag-description":Ns,"tags-alphabetical":ks,"no-duplicated-enum-values":Rn,"no-unsafe-markdown":qn,"no-duplicated-tag-names":Rs,"no-required-schema-properties-undefined":Nn,"no-enum-type-mismatch":An,"no-mixed-number-range-constraints":Is,"no-schema-type-mismatch":kn,"security-scopes-defined":RI},NI={};function Oh(e){return mc($r).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:oh.has(t),runsOnValues:sh.has(t)}))}const kI=e=>{const t=Object.values(e).filter(se.isPlainObject),r=[];for(const n of t){if(n.severity==="off")continue;const i=n.subject?.type;if(!i)continue;const o=Oh(n),s=qI(n);r.push({[i]:(a,c)=>{CI(a,c,s)&&DI(a,c,n,o)}})}return r};function qI(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!ot(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);return{kind:t.subject.type,definition:t,assertsToApply:Oh(t)}}):[]}function CI(e,t,r){let n=r;const i=r.at(-1);if(i&&i.kind===e.kind){if(!sp(e,i,t))return!1;n=r.slice(0,-1)}let o=0;for(const s of n){let a=!1;for(;o<t.ancestors.length;){const c=t.ancestors[o++];if(c.kind===s.kind&&sp(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function sp(e,t,r){const{value:n}=Ih(e,t.definition.subject.property),i=new M.Location(r.source,"#/");return t.assertsToApply.every(o=>$r[o.name](n,o.conditions,{baseLocation:i,rawValue:n}).length===0)}function DI(e,t,r,n){const i=xh(r.subject.property),{value:o,locNode:s}=Ih(e,r.subject.property),a=new M.Location(t.source,"#/"),c=n.flatMap(p=>$r[p.name](o,p.conditions,{baseLocation:a,rawValue:o}));if(!c.length)return;const l=`${qe.blue(r.assertionId)} failed because the ${qe.blue(r.subject.type)} ${qe.blue(i??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:Eh(r.message??l,{problems:Sh(c),assertionName:r.assertionId,nodeType:r.subject.type,property:i??"",key:"",pointer:"",file:_h(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function ea(e){return e?.name?.value!==void 0?{value:e.name.value,locNode:e.name}:e?.value!==void 0?{value:e.value,locNode:e}:{value:e,locNode:e}}function Ih(e,t){const r=xh(t);if(r===void 0)return ea(e);const n=e[r];if(Array.isArray(n))return{value:n.map(o=>ea(o).value),locNode:e};const i=ea(n);return{value:i.value,locNode:jI(i.locNode)?i.locNode:e}}function jI(e){return se.isPlainObject(e)&&"kind"in e}function xh(e){return Array.isArray(e)?e[0]:e}const MI=["Query","Mutation","Subscription"];function LI(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}const UI=()=>{const e=new Map,t=new Set,r=new Set;let n=!1;const i=p=>t.add(LI(p)),o=p=>e.set(p.name.value,p.name),s=p=>{for(const d of p.interfaces??[])i(d);for(const d of p.fields??[]){i(d.type);for(const g of d.arguments??[])i(g.type)}},a=p=>{for(const d of p.types??[])i(d)},c=p=>{for(const d of p.fields??[])i(d.type)},l=p=>{for(const d of p.operationTypes??[])r.add(d.type.name.value)};return{SchemaDefinition:p=>{n=!0,l(p)},SchemaExtension:l,DirectiveDefinition:p=>{for(const d of p.arguments??[])i(d.type)},ObjectTypeDefinition:p=>{o(p),s(p)},ObjectTypeExtension:s,InterfaceTypeDefinition:p=>{o(p),s(p)},InterfaceTypeExtension:s,UnionTypeDefinition:p=>{o(p),a(p)},UnionTypeExtension:a,InputObjectTypeDefinition:p=>{o(p),c(p)},InputObjectTypeExtension:c,EnumTypeDefinition:o,ScalarTypeDefinition:o,Document:{leave:(p,d)=>{if(!n)for(const g of MI)e.has(g)&&r.add(g);if(r.size!==0)for(const[g,m]of e)t.has(g)||r.has(g)||d.report({message:`Type \`${g}\` is declared but never used.`,node:m})}}}};function ze(e,t){if(!!!e)throw new Error(t)}function Tr(e){return typeof e=="object"&&e!==null}function Rt(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const FI=/\r\n|[\n\r]/g;function as(e,t){let r=0,n=1;for(const i of e.body.matchAll(FI)){if(typeof i.index=="number"||Rt(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function VI(e){return Rh(e.source,as(e.source,e.start))}function Rh(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?r:0,c=t.column+a,l=`${e.name}:${s}:${c}
|
|
19
|
+
`,p=n.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){const g=Math.floor(c/80),m=c%80,E=[];for(let _=0;_<d.length;_+=80)E.push(d.slice(_,_+80));return l+ap([[`${s} |`,E[0]],...E.slice(1,g+1).map(_=>["|",_]),["|","^".padStart(m)],["|",E[g+1]]])}return l+ap([[`${s-1} |`,p[i-1]],[`${s} |`,d],["|","^".padStart(c)],[`${s+1} |`,p[i+1]]])}function ap(e){const t=e.filter(([n,i])=>i!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,i])=>n.padStart(r)+(i?" "+i:"")).join(`
|
|
20
|
+
`)}function BI(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class fe extends Error{constructor(t,...r){var n,i,o;const{nodes:s,source:a,positions:c,path:l,originalError:p,extensions:d}=BI(r);super(t),this.name="GraphQLError",this.path=l??void 0,this.originalError=p??void 0,this.nodes=cp(Array.isArray(s)?s:s?[s]:void 0);const g=cp((n=this.nodes)===null||n===void 0?void 0:n.map(E=>E.loc).filter(E=>E!=null));this.source=a??(g==null||(i=g[0])===null||i===void 0?void 0:i.source),this.positions=c??g?.map(E=>E.start),this.locations=c&&a?c.map(E=>as(a,E)):g?.map(E=>as(E.source,E.start));const m=Tr(p?.extensions)?p?.extensions:void 0;this.extensions=(o=d??m)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,fe):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
|
|
21
|
+
|
|
22
|
+
`+VI(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
|
|
23
|
+
|
|
24
|
+
`+Rh(this.source,r);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function cp(e){return e===void 0||e.length===0?void 0:e}class zI{constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class KI{constructor(t,r,n,i,o,s){this.kind=t,this.start=r,this.end=n,this.line=i,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const qc={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},GI=new Set(Object.keys(qc));function lp(e){const t=e?.kind;return typeof t=="string"&&GI.has(t)}exports.OperationTypeNode=void 0;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(exports.OperationTypeNode||(exports.OperationTypeNode={}));exports.DirectiveLocation=void 0;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"})(exports.DirectiveLocation||(exports.DirectiveLocation={}));exports.Kind=void 0;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(exports.Kind||(exports.Kind={}));function Wa(e){return e===9||e===32}function Ah(e){return e>=48&&e<=57}function Nh(e){return e>=97&&e<=122||e>=65&&e<=90}function kh(e){return Nh(e)||e===95}function qh(e){return Nh(e)||Ah(e)||e===95}function HI(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let s=0;s<e.length;++s){var o;const a=e[s],c=YI(a);c!==a.length&&(n=(o=n)!==null&&o!==void 0?o:s,i=s,s!==0&&c<r&&(r=c))}return e.map((s,a)=>a===0?s:s.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,i+1)}function YI(e){let t=0;for(;t<e.length&&Wa(e.charCodeAt(t));)++t;return t}function QI(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=n.length===1,o=n.length>1&&n.slice(1).every(m=>m.length===0||Wa(m.charCodeAt(0))),s=r.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=a||c,p=!i||e.length>70||l||o||s;let d="";const g=i&&Wa(e.charCodeAt(0));return(p&&!g||o)&&(d+=`
|
|
25
|
+
`),d+=r,(p||l)&&(d+=`
|
|
26
|
+
`),'"""'+d+'"""'}const JI=10,Ch=2;function be(e){return qs(e,[])}function qs(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return WI(e,t);default:return String(e)}}function WI(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(XI(e)){const n=e.toJSON();if(n!==e)return typeof n=="string"?n:qs(n,r)}else if(Array.isArray(e))return ex(e,r);return ZI(e,r)}function XI(e){return typeof e.toJSON=="function"}function ZI(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>Ch?"["+tx(e)+"]":"{ "+r.map(([i,o])=>i+": "+qs(o,t)).join(", ")+" }"}function ex(e,t){if(e.length===0)return"[]";if(t.length>Ch)return"[Array]";const r=Math.min(JI,e.length),n=e.length-r,i=[];for(let o=0;o<r;++o)i.push(qs(e[o],t));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function tx(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}const rx=globalThis.process&&process.env.NODE_ENV==="production",kt=rx?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;const i=r.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(i===o){const s=be(t);throw new Error(`Cannot use ${i} "${s}" from another module or realm.
|
|
27
|
+
|
|
28
|
+
Ensure that there is only one instance of "graphql" in the node_modules
|
|
29
|
+
directory. If different versions of "graphql" are the dependencies of other
|
|
30
|
+
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
31
|
+
|
|
32
|
+
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
33
|
+
|
|
34
|
+
Duplicate "graphql" modules cannot be used at the same time since different
|
|
35
|
+
versions may have different capabilities and behavior. The data from one
|
|
36
|
+
version used in the function from another could produce confusing and
|
|
37
|
+
spurious results.`)}}return!1},nx=5;function lr(e,t){const[r,n]=t?[e,t]:[void 0,e];let i=" Did you mean ";r&&(i+=r+" ");const o=n.map(c=>`"${c}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const s=o.slice(0,nx),a=s.pop();return i+s.join(", ")+", or "+a+"?"}function up(e){return e}function Pr(e,t){const r=Object.create(null);for(const n of e)r[t(n)]=n;return r}function Cc(e,t,r){const n=Object.create(null);for(const i of e)n[t(i)]=r(i);return n}function Mt(e,t){const r=Object.create(null);for(const n of Object.keys(e))r[n]=t(e[n],n);return r}function Dc(e,t){let r=0,n=0;for(;r<e.length&&n<t.length;){let i=e.charCodeAt(r),o=t.charCodeAt(n);if(zi(i)&&zi(o)){let s=0;do++r,s=s*10+i-Xa,i=e.charCodeAt(r);while(zi(i)&&s>0);let a=0;do++n,a=a*10+o-Xa,o=t.charCodeAt(n);while(zi(o)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(i<o)return-1;if(i>o)return 1;++r,++n}}return e.length-t.length}const Xa=48,ix=57;function zi(e){return!isNaN(e)&&Xa<=e&&e<=ix}function xr(e,t){const r=Object.create(null),n=new ox(e),i=Math.floor(e.length*.4)+1;for(const o of t){const s=n.measure(o,i);s!==void 0&&(r[o]=s)}return Object.keys(r).sort((o,s)=>{const a=r[o]-r[s];return a!==0?a:Dc(o,s)})}class ox{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=pp(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,r){if(this._input===t)return 0;const n=t.toLowerCase();if(this._inputLowerCase===n)return 1;let i=pp(n),o=this._inputArray;if(i.length<o.length){const p=i;i=o,o=p}const s=i.length,a=o.length;if(s-a>r)return;const c=this._rows;for(let p=0;p<=a;p++)c[0][p]=p;for(let p=1;p<=s;p++){const d=c[(p-1)%3],g=c[p%3];let m=g[0]=p;for(let E=1;E<=a;E++){const _=i[p-1]===o[E-1]?0:1;let $=Math.min(d[E]+1,g[E-1]+1,d[E-1]+_);if(p>1&&E>1&&i[p-1]===o[E-2]&&i[p-2]===o[E-1]){const T=c[(p-2)%3][E-2];$=Math.min($,T+1)}$<m&&(m=$),g[E]=$}if(m>r)return}const l=c[s%3][a];return l<=r?l:void 0}}function pp(e){const t=e.length,r=new Array(t);for(let n=0;n<t;++n)r[n]=e.charCodeAt(n);return r}function St(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;const t=Object.create(null);for(const[r,n]of Object.entries(e))t[r]=n;return t}function sx(e){return`"${e.replace(ax,cx)}"`}const ax=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function cx(e){return lx[e.charCodeAt(0)]}const lx=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],pn=Object.freeze({});function jc(e,t,r=qc){const n=new Map;for(const T of Object.values(exports.Kind))n.set(T,jh(t,T));let i,o=Array.isArray(e),s=[e],a=-1,c=[],l=e,p,d;const g=[],m=[];do{a++;const T=a===s.length,w=T&&c.length!==0;if(T){if(p=m.length===0?void 0:g[g.length-1],l=d,d=m.pop(),w)if(o){l=l.slice();let S=0;for(const[h,v]of c){const O=h-S;v===null?(l.splice(O,1),S++):l[O]=v}}else{l={...l};for(const[S,h]of c)l[S]=h}a=i.index,s=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(d){if(p=o?a:s[a],l=d[p],l==null)continue;g.push(p)}let y;if(!Array.isArray(l)){var E,_;lp(l)||ze(!1,`Invalid AST Node: ${be(l)}.`);const S=T?(E=n.get(l.kind))===null||E===void 0?void 0:E.leave:(_=n.get(l.kind))===null||_===void 0?void 0:_.enter;if(y=S?.call(t,l,p,d,g,m),y===pn)break;if(y===!1){if(!T){g.pop();continue}}else if(y!==void 0&&(c.push([p,y]),!T))if(lp(y))l=y;else{g.pop();continue}}if(y===void 0&&w&&c.push([p,l]),T)g.pop();else{var $;i={inArray:o,index:a,keys:s,edits:c,prev:i},o=Array.isArray(l),s=o?l:($=r[l.kind])!==null&&$!==void 0?$:[],a=-1,c=[],d&&m.push(d),d=l}}while(i!==void 0);return c.length!==0?c[c.length-1][1]:e}function Dh(e){const t=new Array(e.length).fill(null),r=Object.create(null);for(const n of Object.values(exports.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let c=0;c<e.length;++c){const{enter:l,leave:p}=jh(e[c],n);i||(i=l!=null||p!=null),o[c]=l,s[c]=p}if(!i)continue;const a={enter(...c){const l=c[0];for(let d=0;d<e.length;d++)if(t[d]===null){var p;const g=(p=o[d])===null||p===void 0?void 0:p.apply(e[d],c);if(g===!1)t[d]=l;else if(g===pn)t[d]=pn;else if(g!==void 0)return g}},leave(...c){const l=c[0];for(let d=0;d<e.length;d++)if(t[d]===null){var p;const g=(p=s[d])===null||p===void 0?void 0:p.apply(e[d],c);if(g===pn)t[d]=pn;else if(g!==void 0&&g!==!1)return g}else t[d]===l&&(t[d]=null)}};r[n]=a}return r}function jh(e,t){const r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function tt(e){return jc(e,px)}const ux=80,px={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>we(e.definitions,`
|
|
38
|
+
|
|
39
|
+
`)},OperationDefinition:{leave(e){const t=ta(e.variableDefinitions)?Oe(`(
|
|
40
|
+
`,we(e.variableDefinitions,`
|
|
41
|
+
`),`
|
|
42
|
+
)`):Oe("(",we(e.variableDefinitions,", "),")"),r=Oe("",e.description,`
|
|
43
|
+
`)+we([e.operation,we([e.name,t]),we(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>Oe("",i,`
|
|
44
|
+
`)+e+": "+t+Oe(" = ",r)+Oe(" ",we(n," "))},SelectionSet:{leave:({selections:e})=>Tt(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=Oe("",e,": ")+t;let s=o+Oe("(",we(r,", "),")");return s.length>ux&&(s=o+Oe(`(
|
|
45
|
+
`,Go(we(r,`
|
|
46
|
+
`)),`
|
|
47
|
+
)`)),we([s,we(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Oe(" ",we(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>we(["...",Oe("on ",e),we(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>Oe("",o,`
|
|
48
|
+
`)+`fragment ${e}${Oe("(",we(r,", "),")")} on ${t} ${Oe("",we(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?QI(e):sx(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+we(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+we(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Oe("(",we(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Oe("",e,`
|
|
49
|
+
`)+we(["schema",we(t," "),Tt(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Oe("",e,`
|
|
50
|
+
`)+we(["scalar",t,we(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Oe("",e,`
|
|
51
|
+
`)+we(["type",t,Oe("implements ",we(r," & ")),we(n," "),Tt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>Oe("",e,`
|
|
52
|
+
`)+t+(ta(r)?Oe(`(
|
|
53
|
+
`,Go(we(r,`
|
|
54
|
+
`)),`
|
|
55
|
+
)`):Oe("(",we(r,", "),")"))+": "+n+Oe(" ",we(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>Oe("",e,`
|
|
56
|
+
`)+we([t+": "+r,Oe("= ",n),we(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Oe("",e,`
|
|
57
|
+
`)+we(["interface",t,Oe("implements ",we(r," & ")),we(n," "),Tt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Oe("",e,`
|
|
58
|
+
`)+we(["union",t,we(r," "),Oe("= ",we(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>Oe("",e,`
|
|
59
|
+
`)+we(["enum",t,we(r," "),Tt(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Oe("",e,`
|
|
60
|
+
`)+we([t,we(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Oe("",e,`
|
|
61
|
+
`)+we(["input",t,we(r," "),Tt(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:o})=>Oe("",e,`
|
|
62
|
+
`)+"directive @"+t+(ta(r)?Oe(`(
|
|
63
|
+
`,Go(we(r,`
|
|
64
|
+
`)),`
|
|
65
|
+
)`):Oe("(",we(r,", "),")"))+Oe(" ",we(n," "))+(i?" repeatable":"")+" on "+we(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>we(["extend schema",we(e," "),Tt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>we(["extend scalar",e,we(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>we(["extend type",e,Oe("implements ",we(t," & ")),we(r," "),Tt(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>we(["extend interface",e,Oe("implements ",we(t," & ")),we(r," "),Tt(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>we(["extend union",e,we(t," "),Oe("= ",we(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>we(["extend enum",e,we(t," "),Tt(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>we(["extend input",e,we(t," "),Tt(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>we(["extend directive @"+e,we(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>we([e,Oe(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>we([e,Oe(".",t),Oe("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>we(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>we(["@",e,Oe("(",t,":)")])}};function we(e,t=""){var r;return(r=e?.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function Tt(e){return Oe(`{
|
|
66
|
+
`,Go(we(e,`
|
|
67
|
+
`)),`
|
|
68
|
+
}`)}function Oe(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function Go(e){return Oe(" ",e.replace(/\n/g,`
|
|
69
|
+
`))}function ta(e){var t;return(t=e?.some(r=>r.includes(`
|
|
70
|
+
`)))!==null&&t!==void 0?t:!1}function Za(e,t){switch(e.kind){case exports.Kind.NULL:return null;case exports.Kind.INT:return parseInt(e.value,10);case exports.Kind.FLOAT:return parseFloat(e.value);case exports.Kind.STRING:case exports.Kind.ENUM:case exports.Kind.BOOLEAN:return e.value;case exports.Kind.LIST:return e.values.map(r=>Za(r,t));case exports.Kind.OBJECT:return Cc(e.fields,r=>r.name.value,r=>Za(r.value,t));case exports.Kind.VARIABLE:return t?.[e.name.value]}}function qt(e){if(e!=null||ze(!1,"Must provide name."),typeof e=="string"||ze(!1,"Expected name to be a string."),e.length===0)throw new fe("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!qh(e.charCodeAt(t)))throw new fe(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!kh(e.charCodeAt(0)))throw new fe(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function dx(e){if(e==="true"||e==="false"||e==="null")throw new fe(`Enum values cannot be named: ${e}`);return qt(e)}function Mc(e){return dr(e)||Qe(e)||Je(e)||bt(e)||wt(e)||st(e)||ft(e)||Ke(e)}function dr(e){return kt(e,ur)}function Qe(e){return kt(e,rr)}function Je(e){return kt(e,ec)}function bt(e){return kt(e,tc)}function wt(e){return kt(e,Sn)}function st(e){return kt(e,rc)}function ft(e){return kt(e,mt)}function Ke(e){return kt(e,Ae)}function Cn(e){return dr(e)||wt(e)||st(e)||Lc(e)&&Cn(e.ofType)}function Mh(e){return dr(e)||Qe(e)||Je(e)||bt(e)||wt(e)||Lc(e)&&Mh(e.ofType)}function Gr(e){return dr(e)||wt(e)}function wn(e){return Qe(e)||Je(e)||bt(e)}function Er(e){return Je(e)||bt(e)}class mt{constructor(t){Mc(t)||ze(!1,`Expected ${be(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Ae{constructor(t){Lh(t)||ze(!1,`Expected ${be(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Lc(e){return ft(e)||Ke(e)}function Lh(e){return Mc(e)&&!Ke(e)}function fx(e){if(e)return Ke(e)?e.ofType:e}function mx(e){return dr(e)||Qe(e)||Je(e)||bt(e)||wt(e)||st(e)}function Or(e){if(e){let t=e;for(;Lc(t);)t=t.ofType;return t}}function Uh(e){return typeof e=="function"?e():e}function Fh(e){return typeof e=="function"?e():e}class ur{constructor(t){var r,n,i,o;const s=(r=t.parseValue)!==null&&r!==void 0?r:up;this.name=qt(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:up,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,c)=>s(Za(a,c)),this.extensions=St(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||ze(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${be(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||ze(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||ze(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class rr{constructor(t){var r;this.name=qt(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=St(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>Bh(t),this._interfaces=()=>Vh(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||ze(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${be(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Kh(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Vh(e){var t;const r=Uh((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||ze(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function Bh(e){const t=Fh(e.fields);return Vr(t)||ze(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Mt(t,(r,n)=>{var i;Vr(r)||ze(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||ze(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${be(r.resolve)}.`);const o=(i=r.args)!==null&&i!==void 0?i:{};return Vr(o)||ze(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:qt(n),description:r.description,type:r.type,args:zh(o),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:St(r.extensions),astNode:r.astNode}})}function zh(e){return Object.entries(e).map(([t,r])=>({name:qt(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:St(r.extensions),astNode:r.astNode}))}function Vr(e){return Tr(e)&&!Array.isArray(e)}function Kh(e){return Mt(e,t=>({description:t.description,type:t.type,args:Gh(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Gh(e){return Cc(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Dn(e){return Ke(e.type)&&e.defaultValue===void 0}class ec{constructor(t){var r;this.name=qt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=St(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=Bh.bind(void 0,t),this._interfaces=Vh.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||ze(!1,`${this.name} must provide "resolveType" as a function, but got: ${be(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Kh(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class tc{constructor(t){var r;this.name=qt(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=St(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=hx.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||ze(!1,`${this.name} must provide "resolveType" as a function, but got: ${be(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function hx(e){const t=Uh(e.types);return Array.isArray(t)||ze(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Sn{constructor(t){var r;this.name=qt(t.name),this.description=t.description,this.extensions=St(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:dp(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=dp(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=Pr(this.getValues(),r=>r.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(n=>[n.value,n])));const r=this._valueLookup.get(t);if(r===void 0)throw new fe(`Enum "${this.name}" cannot represent value: ${be(t)}`);return r.name}parseValue(t){if(typeof t!="string"){const n=be(t);throw new fe(`Enum "${this.name}" cannot represent non-string value: ${n}.`+Ki(this,n))}const r=this.getValue(t);if(r==null)throw new fe(`Value "${t}" does not exist in "${this.name}" enum.`+Ki(this,t));return r.value}parseLiteral(t,r){if(t.kind!==exports.Kind.ENUM){const i=tt(t);throw new fe(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Ki(this,i),{nodes:t})}const n=this.getValue(t.value);if(n==null){const i=tt(t);throw new fe(`Value "${i}" does not exist in "${this.name}" enum.`+Ki(this,i),{nodes:t})}return n.value}toConfig(){const t=Cc(this.getValues(),r=>r.name,r=>({description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ki(e,t){const r=e.getValues().map(i=>i.name),n=xr(t,r);return lr("the enum value",n)}function dp(e,t){return Vr(t)||ze(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(Vr(n)||ze(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${be(n)}.`),{name:dx(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:St(n.extensions),astNode:n.astNode}))}class rc{constructor(t){var r,n;this.name=qt(t.name),this.description=t.description,this.extensions=St(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this.isOneOf=(n=t.isOneOf)!==null&&n!==void 0?n:!1,this._fields=yx.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=Mt(this.getFields(),r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function yx(e){const t=Fh(e.fields);return Vr(t)||ze(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Mt(t,(r,n)=>(!("resolve"in r)||ze(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:qt(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:St(r.extensions),astNode:r.astNode}))}function Hh(e){return Ke(e.type)&&e.defaultValue===void 0}function nc(e,t){return e===t?!0:Ke(e)&&Ke(t)||ft(e)&&ft(t)?nc(e.ofType,t.ofType):!1}function Br(e,t,r){return t===r?!0:Ke(r)?Ke(t)?Br(e,t.ofType,r.ofType):!1:Ke(t)?Br(e,t.ofType,r):ft(r)?ft(t)?Br(e,t.ofType,r.ofType):!1:ft(t)?!1:Er(r)&&(Je(t)||Qe(t))&&e.isSubType(r,t)}function fp(e,t,r){return t===r?!0:Er(t)?Er(r)?e.getPossibleTypes(t).some(n=>e.isSubType(r,n)):e.isSubType(t,r):Er(r)?e.isSubType(r,t):!1}const ra=2147483647,na=-2147483648,gx=new ur({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=jn(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isInteger(r))throw new fe(`Int cannot represent non-integer value: ${be(t)}`);if(r>ra||r<na)throw new fe("Int cannot represent non 32-bit signed integer value: "+be(t));return r},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new fe(`Int cannot represent non-integer value: ${be(e)}`);if(e>ra||e<na)throw new fe(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==exports.Kind.INT)throw new fe(`Int cannot represent non-integer value: ${tt(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>ra||t<na)throw new fe(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),vx=new ur({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=jn(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isFinite(r))throw new fe(`Float cannot represent non numeric value: ${be(t)}`);return r},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new fe(`Float cannot represent non numeric value: ${be(e)}`);return e},parseLiteral(e){if(e.kind!==exports.Kind.FLOAT&&e.kind!==exports.Kind.INT)throw new fe(`Float cannot represent non numeric value: ${tt(e)}`,e);return parseFloat(e.value)}}),Ye=new ur({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=jn(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new fe(`String cannot represent value: ${be(e)}`)},parseValue(e){if(typeof e!="string")throw new fe(`String cannot represent a non string value: ${be(e)}`);return e},parseLiteral(e){if(e.kind!==exports.Kind.STRING)throw new fe(`String cannot represent a non string value: ${tt(e)}`,{nodes:e});return e.value}}),dt=new ur({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=jn(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new fe(`Boolean cannot represent a non boolean value: ${be(t)}`)},parseValue(e){if(typeof e!="boolean")throw new fe(`Boolean cannot represent a non boolean value: ${be(e)}`);return e},parseLiteral(e){if(e.kind!==exports.Kind.BOOLEAN)throw new fe(`Boolean cannot represent a non boolean value: ${tt(e)}`,{nodes:e});return e.value}}),Yh=new ur({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=jn(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new fe(`ID cannot represent value: ${be(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new fe(`ID cannot represent value: ${be(e)}`)},parseLiteral(e){if(e.kind!==exports.Kind.STRING&&e.kind!==exports.Kind.INT)throw new fe("ID cannot represent a non-string and non-integer value: "+tt(e),{nodes:e});return e.value}}),Uc=Object.freeze([Ye,gx,vx,dt,Yh]);function bx(e){return Uc.some(({name:t})=>e.name===t)}function jn(e){if(Tr(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!Tr(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function Qh(e){return kt(e,Xt)}class Xt{constructor(t){var r,n,i;this.name=qt(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.deprecationReason=t.deprecationReason,this.extensions=St(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],Array.isArray(t.locations)||ze(!1,`@${t.name} locations must be an Array.`);const o=(i=t.args)!==null&&i!==void 0?i:{};Tr(o)&&!Array.isArray(o)||ze(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=zh(o)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Gh(this.args),isRepeatable:this.isRepeatable,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const Jh=new Xt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[exports.DirectiveLocation.FIELD,exports.DirectiveLocation.FRAGMENT_SPREAD,exports.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Ae(dt),description:"Included when true."}}}),Wh=new Xt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[exports.DirectiveLocation.FIELD,exports.DirectiveLocation.FRAGMENT_SPREAD,exports.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Ae(dt),description:"Skipped when true."}}}),wx="No longer supported",Fc=new Xt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[exports.DirectiveLocation.FIELD_DEFINITION,exports.DirectiveLocation.ARGUMENT_DEFINITION,exports.DirectiveLocation.INPUT_FIELD_DEFINITION,exports.DirectiveLocation.ENUM_VALUE,exports.DirectiveLocation.DIRECTIVE_DEFINITION],args:{reason:{type:Ye,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:wx}}}),Xh=new Xt({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[exports.DirectiveLocation.SCALAR],args:{url:{type:new Ae(Ye),description:"The URL that specifies the behavior of this scalar."}}}),Zh=new Xt({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[exports.DirectiveLocation.INPUT_OBJECT],args:{}}),Xr=Object.freeze([Jh,Wh,Fc,Xh,Zh]);function Sx(e){return typeof e=="object"&&typeof e?.[Symbol.iterator]=="function"}function dn(e,t){if(Ke(t)){const r=dn(e,t.ofType);return r?.kind===exports.Kind.NULL?null:r}if(e===null)return{kind:exports.Kind.NULL};if(e===void 0)return null;if(ft(t)){const r=t.ofType;if(Sx(e)){const n=[];for(const i of e){const o=dn(i,r);o!=null&&n.push(o)}return{kind:exports.Kind.LIST,values:n}}return dn(e,r)}if(st(t)){if(!Tr(e))return null;const r=[];for(const n of Object.values(t.getFields())){const i=dn(e[n.name],n.type);i&&r.push({kind:exports.Kind.OBJECT_FIELD,name:{kind:exports.Kind.NAME,value:n.name},value:i})}return{kind:exports.Kind.OBJECT,fields:r}}if(Gr(t)){const r=t.serialize(e);if(r==null)return null;if(typeof r=="boolean")return{kind:exports.Kind.BOOLEAN,value:r};if(typeof r=="number"&&Number.isFinite(r)){const n=String(r);return mp.test(n)?{kind:exports.Kind.INT,value:n}:{kind:exports.Kind.FLOAT,value:n}}if(typeof r=="string")return wt(t)?{kind:exports.Kind.ENUM,value:r}:t===Yh&&mp.test(r)?{kind:exports.Kind.INT,value:r}:{kind:exports.Kind.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${be(r)}.`)}Rt(!1,"Unexpected input type: "+be(t))}const mp=/^-?(?:0|[1-9][0-9]*)$/,Vc=new rr({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Ye,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Ae(new mt(new Ae(Lt))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ae(Lt),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Lt,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Lt,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ae(new mt(new Ae(ey))),args:{includeDeprecated:{type:new Ae(dt),defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.getDirectives():e.getDirectives().filter(r=>r.deprecationReason==null)}})}),ey=new rr({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
71
|
+
|
|
72
|
+
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new Ae(Ye),resolve:e=>e.name},description:{type:Ye,resolve:e=>e.description},isRepeatable:{type:new Ae(dt),resolve:e=>e.isRepeatable},locations:{type:new Ae(new mt(new Ae(ty))),resolve:e=>e.locations},args:{type:new Ae(new mt(new Ae(Cs))),args:{includeDeprecated:{type:dt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},isDeprecated:{type:new Ae(dt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ye,resolve:e=>e.deprecationReason}})}),ty=new Sn({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:exports.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:exports.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:exports.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:exports.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:exports.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:exports.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:exports.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:exports.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:exports.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:exports.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:exports.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:exports.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:exports.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:exports.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:exports.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:exports.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:exports.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:exports.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:exports.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."},DIRECTIVE_DEFINITION:{value:exports.DirectiveLocation.DIRECTIVE_DEFINITION,description:"Location adjacent to a directive definition."}}}),Lt=new rr({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Ae(iy),resolve(e){if(dr(e))return Ze.SCALAR;if(Qe(e))return Ze.OBJECT;if(Je(e))return Ze.INTERFACE;if(bt(e))return Ze.UNION;if(wt(e))return Ze.ENUM;if(st(e))return Ze.INPUT_OBJECT;if(ft(e))return Ze.LIST;if(Ke(e))return Ze.NON_NULL;Rt(!1,`Unexpected type: "${be(e)}".`)}},name:{type:Ye,resolve:e=>"name"in e?e.name:void 0},description:{type:Ye,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ye,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new mt(new Ae(ry)),args:{includeDeprecated:{type:dt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Qe(e)||Je(e)){const r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},interfaces:{type:new mt(new Ae(Lt)),resolve(e){if(Qe(e)||Je(e))return e.getInterfaces()}},possibleTypes:{type:new mt(new Ae(Lt)),resolve(e,t,r,{schema:n}){if(Er(e))return n.getPossibleTypes(e)}},enumValues:{type:new mt(new Ae(ny)),args:{includeDeprecated:{type:dt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(wt(e)){const r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new mt(new Ae(Cs)),args:{includeDeprecated:{type:dt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(st(e)){const r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},ofType:{type:Lt,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:dt,resolve:e=>{if(st(e))return e.isOneOf}}})}),ry=new rr({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Ae(Ye),resolve:e=>e.name},description:{type:Ye,resolve:e=>e.description},args:{type:new Ae(new mt(new Ae(Cs))),args:{includeDeprecated:{type:dt,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},type:{type:new Ae(Lt),resolve:e=>e.type},isDeprecated:{type:new Ae(dt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ye,resolve:e=>e.deprecationReason}})}),Cs=new rr({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Ae(Ye),resolve:e=>e.name},description:{type:Ye,resolve:e=>e.description},type:{type:new Ae(Lt),resolve:e=>e.type},defaultValue:{type:Ye,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e,n=dn(r,t);return n?tt(n):null}},isDeprecated:{type:new Ae(dt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ye,resolve:e=>e.deprecationReason}})}),ny=new rr({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Ae(Ye),resolve:e=>e.name},description:{type:Ye,resolve:e=>e.description},isDeprecated:{type:new Ae(dt),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ye,resolve:e=>e.deprecationReason}})});var Ze;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Ze||(Ze={}));const iy=new Sn({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Ze.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Ze.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Ze.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Ze.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Ze.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Ze.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Ze.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Ze.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});new Ae(Vc);new Ae(Ye);new Ae(Ye);const Bc=Object.freeze([Vc,ey,ty,Lt,ry,Cs,ny,iy]);function oy(e){return Bc.some(({name:t})=>e.name===t)}function _x(e){return kt(e,sy)}function Ex(e){if(!_x(e))throw new Error(`Expected ${be(e)} to be a GraphQL schema.`);return e}class sy{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,Tr(t)||ze(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||ze(!1,`"types" must be Array if provided but got: ${be(t.types)}.`),!t.directives||Array.isArray(t.directives)||ze(!1,`"directives" must be Array if provided but got: ${be(t.directives)}.`),this.description=t.description,this.extensions=St(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(n=t.directives)!==null&&n!==void 0?n:Xr;const i=new Set(t.types);if(t.types!=null)for(const o of t.types)i.delete(o),xt(o,i);this._queryType!=null&&xt(this._queryType,i),this._mutationType!=null&&xt(this._mutationType,i),this._subscriptionType!=null&&xt(this._subscriptionType,i);for(const o of this._directives)if(Qh(o))for(const s of o.args)xt(s.type,i);xt(Vc,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const o of i){if(o==null)continue;const s=o.name;if(s||ze(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,Je(o)){for(const a of o.getInterfaces())if(Je(a)){let c=this._implementationsMap[a.name];c===void 0&&(c=this._implementationsMap[a.name]={objects:[],interfaces:[]}),c.interfaces.push(o)}}else if(Qe(o)){for(const a of o.getInterfaces())if(Je(a)){let c=this._implementationsMap[a.name];c===void 0&&(c=this._implementationsMap[a.name]={objects:[],interfaces:[]}),c.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case exports.OperationTypeNode.QUERY:return this.getQueryType();case exports.OperationTypeNode.MUTATION:return this.getMutationType();case exports.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return bt(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const r=this._implementationsMap[t.name];return r??{objects:[],interfaces:[]}}isSubType(t,r){let n=this._subTypeMap[t.name];if(n===void 0){if(n=Object.create(null),bt(t))for(const i of t.getTypes())n[i.name]=!0;else{const i=this.getImplementations(t);for(const o of i.objects)n[o.name]=!0;for(const o of i.interfaces)n[o.name]=!0}this._subTypeMap[t.name]=n}return n[r.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(r=>r.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function xt(e,t){const r=Or(e);if(!t.has(r)){if(t.add(r),bt(r))for(const n of r.getTypes())xt(n,t);else if(Qe(r)||Je(r)){for(const n of r.getInterfaces())xt(n,t);for(const n of Object.values(r.getFields())){xt(n.type,t);for(const i of n.args)xt(i.type,t)}}else if(st(r))for(const n of Object.values(r.getFields()))xt(n.type,t)}return t}function $x(e){if(Ex(e),e.__validationErrors)return e.__validationErrors;const t=new Tx(e);Px(t),Ox(t),Ix(t);const r=t.getErrors();return e.__validationErrors=r,r}class Tx{constructor(t){this._errors=[],this.schema=t}reportError(t,r){const n=Array.isArray(r)?r.filter(Boolean):r;this._errors.push(new fe(t,{nodes:n}))}getErrors(){return this._errors}}function Px(e){const t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!Qe(r)){var n;e.reportError(`Query root type must be Object type, it cannot be ${be(r)}.`,(n=ia(t,exports.OperationTypeNode.QUERY))!==null&&n!==void 0?n:r.astNode)}const i=t.getMutationType();if(i&&!Qe(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${be(i)}.`,(o=ia(t,exports.OperationTypeNode.MUTATION))!==null&&o!==void 0?o:i.astNode)}const s=t.getSubscriptionType();if(s&&!Qe(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${be(s)}.`,(a=ia(t,exports.OperationTypeNode.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function ia(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap(n=>{var i;return(i=n?.operationTypes)!==null&&i!==void 0?i:[]}).find(n=>n.operation===t))===null||r===void 0?void 0:r.type}function Ox(e){for(const r of e.schema.getDirectives()){if(!Qh(r)){e.reportError(`Expected directive but got: ${be(r)}.`,r?.astNode);continue}Ir(e,r),r.locations.length===0&&e.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode);for(const n of r.args)if(Ir(e,n),Cn(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${be(n.type)}.`,n.astNode),Dn(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[zc(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function Ir(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Ix(e){const t=Cx(e),r=e.schema.getTypeMap();for(const n of Object.values(r)){if(!mx(n)){e.reportError(`Expected GraphQL named type but got: ${be(n)}.`,n.astNode);continue}oy(n)||Ir(e,n),Qe(n)||Je(n)?(hp(e,n),yp(e,n)):bt(n)?Ax(e,n):wt(n)?Nx(e,n):st(n)&&(kx(e,n),t(n))}}function hp(e,t){const r=Object.values(t.getFields());r.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of r){if(Ir(e,s),!Mh(s.type)){var n;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${be(s.type)}.`,(n=s.astNode)===null||n===void 0?void 0:n.type)}for(const a of s.args){const c=a.name;if(Ir(e,a),!Cn(a.type)){var i;e.reportError(`The type of ${t.name}.${s.name}(${c}:) must be Input Type but got: ${be(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if(Dn(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${c}:) cannot be deprecated.`,[zc(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function yp(e,t){const r=Object.create(null);for(const n of t.getInterfaces()){if(!Je(n)){e.reportError(`Type ${be(t)} must only implement Interface types, it cannot implement ${be(n)}.`,hn(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,hn(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,hn(t,n));continue}r[n.name]=!0,Rx(e,t,n),xx(e,t,n)}}function xx(e,t,r){const n=t.getFields();for(const c of Object.values(r.getFields())){const l=c.name,p=n[l];if(!p){e.reportError(`Interface field ${r.name}.${l} expected but ${t.name} does not provide it.`,[c.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Br(e.schema,p.type,c.type)){var i,o;e.reportError(`Interface field ${r.name}.${l} expects type ${be(c.type)} but ${t.name}.${l} is type ${be(p.type)}.`,[(i=c.astNode)===null||i===void 0?void 0:i.type,(o=p.astNode)===null||o===void 0?void 0:o.type])}for(const d of c.args){const g=d.name,m=p.args.find(E=>E.name===g);if(!m){e.reportError(`Interface field argument ${r.name}.${l}(${g}:) expected but ${t.name}.${l} does not provide it.`,[d.astNode,p.astNode]);continue}if(!nc(d.type,m.type)){var s,a;e.reportError(`Interface field argument ${r.name}.${l}(${g}:) expects type ${be(d.type)} but ${t.name}.${l}(${g}:) is type ${be(m.type)}.`,[(s=d.astNode)===null||s===void 0?void 0:s.type,(a=m.astNode)===null||a===void 0?void 0:a.type])}}for(const d of p.args){const g=d.name;!c.args.find(E=>E.name===g)&&Dn(d)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${g} that is missing from the Interface field ${r.name}.${l}.`,[d.astNode,c.astNode])}}}function Rx(e,t,r){const n=t.getInterfaces();for(const i of r.getInterfaces())n.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${r.name}.`,[...hn(r,i),...hn(t,r)])}function Ax(e,t){const r=t.getTypes();r.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const n=Object.create(null);for(const i of r){if(n[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,gp(t,i.name));continue}n[i.name]=!0,Qe(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${be(i)}.`,gp(t,String(i)))}}function Nx(e,t){const r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const n of r)Ir(e,n)}function kx(e,t){const r=Object.values(t.getFields());r.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of r){if(Ir(e,o),!Cn(o.type)){var n;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${be(o.type)}.`,(n=o.astNode)===null||n===void 0?void 0:n.type)}if(Hh(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[zc(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&qx(t,o,e)}}function qx(e,t,r){if(Ke(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}t.defaultValue!==void 0&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function Cx(e){const t=Object.create(null),r=[],n=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=!0,n[o.name]=r.length;const s=Object.values(o.getFields());for(const a of s)if(Ke(a.type)&&st(a.type.ofType)){const c=a.type.ofType,l=n[c.name];if(r.push(a),l===void 0)i(c);else{const p=r.slice(l),d=p.map(g=>g.name).join(".");e.reportError(`Cannot reference Input Object "${c.name}" within itself through a series of non-null fields: "${d}".`,p.map(g=>g.astNode))}r.pop()}n[o.name]=void 0}}function hn(e,t){const{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function gp(e,t){const{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function zc(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===Fc.name)}function Vt(e,t){switch(t.kind){case exports.Kind.LIST_TYPE:{const r=Vt(e,t.type);return r&&new mt(r)}case exports.Kind.NON_NULL_TYPE:{const r=Vt(e,t.type);return r&&new Ae(r)}case exports.Kind.NAMED_TYPE:return e.getType(t.name.value)}}function Dx(e){return e.kind===exports.Kind.OPERATION_DEFINITION||e.kind===exports.Kind.FRAGMENT_DEFINITION}function jx(e){return e.kind===exports.Kind.SCHEMA_DEFINITION||Mn(e)||e.kind===exports.Kind.DIRECTIVE_DEFINITION}function Mn(e){return e.kind===exports.Kind.SCALAR_TYPE_DEFINITION||e.kind===exports.Kind.OBJECT_TYPE_DEFINITION||e.kind===exports.Kind.INTERFACE_TYPE_DEFINITION||e.kind===exports.Kind.UNION_TYPE_DEFINITION||e.kind===exports.Kind.ENUM_TYPE_DEFINITION||e.kind===exports.Kind.INPUT_OBJECT_TYPE_DEFINITION}function Mx(e){return e.kind===exports.Kind.SCHEMA_EXTENSION||e.kind===exports.Kind.DIRECTIVE_EXTENSION||Kc(e)}function Kc(e){return e.kind===exports.Kind.SCALAR_TYPE_EXTENSION||e.kind===exports.Kind.OBJECT_TYPE_EXTENSION||e.kind===exports.Kind.INTERFACE_TYPE_EXTENSION||e.kind===exports.Kind.UNION_TYPE_EXTENSION||e.kind===exports.Kind.ENUM_TYPE_EXTENSION||e.kind===exports.Kind.INPUT_OBJECT_TYPE_EXTENSION}function Lx(e){return{Document(t){for(const r of t.definitions)if(!Dx(r)){const n=r.kind===exports.Kind.SCHEMA_DEFINITION||r.kind===exports.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new fe(`The ${n} definition is not executable.`,{nodes:r}))}return!1}}}function Ux(e){return{Field(t){const r=e.getParentType();if(r&&!e.getFieldDef()){const i=e.getSchema(),o=t.name.value;let s=lr("to use an inline fragment on",Fx(i,r,o));s===""&&(s=lr(Vx(r,o))),e.reportError(new fe(`Cannot query field "${o}" on type "${r.name}".`+s,{nodes:t}))}}}}function Fx(e,t,r){if(!Er(t))return[];const n=new Set,i=Object.create(null);for(const s of e.getPossibleTypes(t))if(s.getFields()[r]){n.add(s),i[s.name]=1;for(const a of s.getInterfaces()){var o;a.getFields()[r]&&(n.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1)}}return[...n].sort((s,a)=>{const c=i[a.name]-i[s.name];return c!==0?c:Je(s)&&e.isSubType(s,a)?-1:Je(a)&&e.isSubType(a,s)?1:Dc(s.name,a.name)}).map(s=>s.name)}function Vx(e,t){if(Qe(e)||Je(e)){const r=Object.keys(e.getFields());return xr(t,r)}return[]}function Bx(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const n=Vt(e.getSchema(),r);if(n&&!wn(n)){const i=tt(r);e.reportError(new fe(`Fragment cannot condition on non composite type "${i}".`,{nodes:r}))}}},FragmentDefinition(t){const r=Vt(e.getSchema(),t.typeCondition);if(r&&!wn(r)){const n=tt(t.typeCondition);e.reportError(new fe(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function zx(e){return{...ay(e),Argument(t){const r=e.getArgument(),n=e.getFieldDef(),i=e.getParentType();if(!r&&n&&i){const o=t.name.value,s=n.args.map(c=>c.name),a=xr(o,s);e.reportError(new fe(`Unknown argument "${o}" on field "${i.name}.${n.name}".`+lr(a),{nodes:t}))}}}}function ay(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Xr;for(const s of n)t[s.name]=s.args.map(a=>a.name);const i=e.getDocument().definitions;for(const s of i)if(s.kind===exports.Kind.DIRECTIVE_DEFINITION){var o;const a=(o=s.arguments)!==null&&o!==void 0?o:[];t[s.name.value]=a.map(c=>c.name.value)}return{Directive(s){const a=s.name.value,c=t[a];if(s.arguments&&c)for(const l of s.arguments){const p=l.name.value;if(!c.includes(p)){const d=xr(p,c);e.reportError(new fe(`Unknown argument "${p}" on directive "@${a}".`+lr(d),{nodes:l}))}}return!1}}}function cy(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Xr;for(const o of n)t[o.name]=o.locations;const i=e.getDocument().definitions;for(const o of i)o.kind===exports.Kind.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,c,l){const p=o.name.value,d=t[p];if(!d){e.reportError(new fe(`Unknown directive "@${p}".`,{nodes:o}));return}const g=Kx(l);g&&!d.includes(g)&&e.reportError(new fe(`Directive "@${p}" may not be used on ${g}.`,{nodes:o}))}}}function Kx(e){const t=e[e.length-1];switch("kind"in t||Rt(!1),t.kind){case exports.Kind.OPERATION_DEFINITION:return Gx(t.operation);case exports.Kind.FIELD:return exports.DirectiveLocation.FIELD;case exports.Kind.FRAGMENT_SPREAD:return exports.DirectiveLocation.FRAGMENT_SPREAD;case exports.Kind.INLINE_FRAGMENT:return exports.DirectiveLocation.INLINE_FRAGMENT;case exports.Kind.FRAGMENT_DEFINITION:return exports.DirectiveLocation.FRAGMENT_DEFINITION;case exports.Kind.VARIABLE_DEFINITION:return exports.DirectiveLocation.VARIABLE_DEFINITION;case exports.Kind.SCHEMA_DEFINITION:case exports.Kind.SCHEMA_EXTENSION:return exports.DirectiveLocation.SCHEMA;case exports.Kind.SCALAR_TYPE_DEFINITION:case exports.Kind.SCALAR_TYPE_EXTENSION:return exports.DirectiveLocation.SCALAR;case exports.Kind.OBJECT_TYPE_DEFINITION:case exports.Kind.OBJECT_TYPE_EXTENSION:return exports.DirectiveLocation.OBJECT;case exports.Kind.FIELD_DEFINITION:return exports.DirectiveLocation.FIELD_DEFINITION;case exports.Kind.INTERFACE_TYPE_DEFINITION:case exports.Kind.INTERFACE_TYPE_EXTENSION:return exports.DirectiveLocation.INTERFACE;case exports.Kind.UNION_TYPE_DEFINITION:case exports.Kind.UNION_TYPE_EXTENSION:return exports.DirectiveLocation.UNION;case exports.Kind.ENUM_TYPE_DEFINITION:case exports.Kind.ENUM_TYPE_EXTENSION:return exports.DirectiveLocation.ENUM;case exports.Kind.ENUM_VALUE_DEFINITION:return exports.DirectiveLocation.ENUM_VALUE;case exports.Kind.INPUT_OBJECT_TYPE_DEFINITION:case exports.Kind.INPUT_OBJECT_TYPE_EXTENSION:return exports.DirectiveLocation.INPUT_OBJECT;case exports.Kind.INPUT_VALUE_DEFINITION:{const r=e[e.length-3];return"kind"in r||Rt(!1),r.kind===exports.Kind.INPUT_OBJECT_TYPE_DEFINITION?exports.DirectiveLocation.INPUT_FIELD_DEFINITION:exports.DirectiveLocation.ARGUMENT_DEFINITION}case exports.Kind.DIRECTIVE_DEFINITION:case exports.Kind.DIRECTIVE_EXTENSION:return exports.DirectiveLocation.DIRECTIVE_DEFINITION;default:Rt(!1,"Unexpected kind: "+be(t.kind))}}function Gx(e){switch(e){case exports.OperationTypeNode.QUERY:return exports.DirectiveLocation.QUERY;case exports.OperationTypeNode.MUTATION:return exports.DirectiveLocation.MUTATION;case exports.OperationTypeNode.SUBSCRIPTION:return exports.DirectiveLocation.SUBSCRIPTION}}function Hx(e){return{FragmentSpread(t){const r=t.name.value;e.getFragment(r)||e.reportError(new fe(`Unknown fragment "${r}".`,{nodes:t.name}))}}}function ly(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(const o of e.getDocument().definitions)Mn(o)&&(n[o.name.value]=!0);const i=[...Object.keys(r),...Object.keys(n)];return{NamedType(o,s,a,c,l){const p=o.name.value;if(!r[p]&&!n[p]){var d;const g=(d=l[2])!==null&&d!==void 0?d:a,m=g!=null&&Yx(g);if(m&&vp.includes(p))return;const E=xr(p,m?vp.concat(i):i);e.reportError(new fe(`Unknown type "${p}".`+lr(E),{nodes:o}))}}}}const vp=[...Uc,...Bc].map(e=>e.name);function Yx(e){return"kind"in e&&(jx(e)||Mx(e))}function Qx(e){let t=0;return{Document(r){t=r.definitions.filter(n=>n.kind===exports.Kind.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new fe("This anonymous operation must be the only defined operation.",{nodes:r}))}}}function Jx(e){var t,r,n;const i=e.getSchema(),o=(t=(r=(n=i?.astNode)!==null&&n!==void 0?n:i?.getQueryType())!==null&&r!==void 0?r:i?.getMutationType())!==null&&t!==void 0?t:i?.getSubscriptionType();let s=0;return{SchemaDefinition(a){if(o){e.reportError(new fe("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new fe("Must provide only one schema definition.",{nodes:a})),++s}}}const Wx=3;function Xx(e){function t(r,n=Object.create(null),i=0){if(r.kind===exports.Kind.FRAGMENT_SPREAD){const o=r.name.value;if(n[o]===!0)return!1;const s=e.getFragment(o);if(!s)return!1;try{return n[o]=!0,t(s,n,i)}finally{n[o]=void 0}}if(r.kind===exports.Kind.FIELD&&(r.name.value==="fields"||r.name.value==="interfaces"||r.name.value==="possibleTypes"||r.name.value==="inputFields")&&(i++,i>=Wx))return!0;if("selectionSet"in r&&r.selectionSet){for(const o of r.selectionSet.selections)if(t(o,n,i))return!0}return!1}return{Field(r){if((r.name.value==="__schema"||r.name.value==="__type")&&t(r))return e.reportError(new fe("Maximum introspection depth exceeded",{nodes:[r]})),!1}}}function Zx(e){const t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(t[o.name.value])return;const s=o.name.value;t[s]=!0;const a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){n[s]=r.length;for(const c of a){const l=c.name.value,p=n[l];if(r.push(c),p===void 0){const d=e.getFragment(l);d&&i(d)}else{const d=r.slice(p),g=d.slice(0,-1).map(m=>'"'+m.name.value+'"').join(", ");e.reportError(new fe(`Cannot spread fragment "${l}" within itself`+(g!==""?` via ${g}.`:"."),{nodes:d}))}r.pop()}n[s]=void 0}}}function eR(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const n=e.getRecursiveVariableUsages(r);for(const{node:i}of n){const o=i.name.value;t[o]!==!0&&e.reportError(new fe(r.name?`Variable "$${o}" is not defined by operation "${r.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,r]}))}}},VariableDefinition(r){t[r.variable.name.value]=!0}}}function tR(e){const t=[],r=[];return{OperationDefinition(n){return t.push(n),!1},FragmentDefinition(n){return r.push(n),!1},Document:{leave(){const n=Object.create(null);for(const i of t)for(const o of e.getRecursivelyReferencedFragments(i))n[o.name.value]=!0;for(const i of r){const o=i.name.value;n[o]!==!0&&e.reportError(new fe(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}function rR(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const n=Object.create(null),i=e.getRecursiveVariableUsages(r);for(const{node:o}of i)n[o.name.value]=!0;for(const o of t){const s=o.variable.name.value;n[s]!==!0&&e.reportError(new fe(r.name?`Variable "$${s}" is never used in operation "${r.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(r){t.push(r)}}}function Gc(e){switch(e.kind){case exports.Kind.OBJECT:return{...e,fields:nR(e.fields)};case exports.Kind.LIST:return{...e,values:e.values.map(Gc)};case exports.Kind.INT:case exports.Kind.FLOAT:case exports.Kind.STRING:case exports.Kind.BOOLEAN:case exports.Kind.NULL:case exports.Kind.ENUM:case exports.Kind.VARIABLE:return e}}function nR(e){return e.map(t=>({...t,value:Gc(t.value)})).sort((t,r)=>Dc(t.name.value,r.name.value))}function uy(e){return Array.isArray(e)?e.map(([t,r])=>`subfields "${t}" conflict because `+uy(r)).join(" and "):e}function iR(e){const t=new fy,r=new uR,n=new Map;return{SelectionSet(i){const o=oR(e,n,t,r,e.getParentType(),i);for(const[[s,a],c,l]of o){const p=uy(a);e.reportError(new fe(`Fields "${s}" conflict because ${p}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}function oR(e,t,r,n,i,o){const s=[],[a,c]=us(e,t,i,o);if(aR(e,s,t,r,n,a),c.length!==0)for(let l=0;l<c.length;l++){cs(e,s,t,r,n,!1,a,c[l]);for(let p=l+1;p<c.length;p++)ls(e,s,t,r,n,!1,c[l],c[p])}return s}function cs(e,t,r,n,i,o,s,a){if(n.has(s,a,o))return;n.add(s,a,o);const c=e.getFragment(a);if(!c)return;const[l,p]=oc(e,r,c);if(s!==l){Hc(e,t,r,n,i,o,s,l);for(const d of p)cs(e,t,r,n,i,o,s,d)}}function ls(e,t,r,n,i,o,s,a){if(s===a||i.has(s,a,o))return;i.add(s,a,o);const c=e.getFragment(s),l=e.getFragment(a);if(!c||!l)return;const[p,d]=oc(e,r,c),[g,m]=oc(e,r,l);Hc(e,t,r,n,i,o,p,g);for(const E of m)ls(e,t,r,n,i,o,s,E);for(const E of d)ls(e,t,r,n,i,o,E,a)}function sR(e,t,r,n,i,o,s,a,c){const l=[],[p,d]=us(e,t,o,s),[g,m]=us(e,t,a,c);Hc(e,l,t,r,n,i,p,g);for(const E of m)cs(e,l,t,r,n,i,p,E);for(const E of d)cs(e,l,t,r,n,i,g,E);for(const E of d)for(const _ of m)ls(e,l,t,r,n,i,E,_);return l}function aR(e,t,r,n,i,o){for(const[s,a]of Object.entries(o))if(a.length>1)for(let c=0;c<a.length;c++)for(let l=c+1;l<a.length;l++){const p=py(e,r,n,i,!1,s,a[c],a[l]);p&&t.push(p)}}function Hc(e,t,r,n,i,o,s,a){for(const[c,l]of Object.entries(s)){const p=a[c];if(p)for(const d of l)for(const g of p){const m=py(e,r,n,i,o,c,d,g);m&&t.push(m)}}}function py(e,t,r,n,i,o,s,a){const[c,l,p]=s,[d,g,m]=a,E=i||c!==d&&Qe(c)&&Qe(d);if(!E){const y=l.name.value,S=g.name.value;if(y!==S)return[[o,`"${y}" and "${S}" are different fields`],[l],[g]];if(!cR(l,g))return[[o,"they have differing arguments"],[l],[g]]}const _=p?.type,$=m?.type;if(_&&$&&ic(_,$))return[[o,`they return conflicting types "${be(_)}" and "${be($)}"`],[l],[g]];const T=l.selectionSet,w=g.selectionSet;if(T&&w){const y=sR(e,t,r,n,E,Or(_),T,Or($),w);return lR(y,o,l,g)}}function cR(e,t){const r=e.arguments,n=t.arguments;if(r===void 0||r.length===0)return n===void 0||n.length===0;if(n===void 0||n.length===0||r.length!==n.length)return!1;const i=new Map(n.map(({name:o,value:s})=>[o.value,s]));return r.every(o=>{const s=o.value,a=i.get(o.name.value);return a===void 0?!1:bp(s)===bp(a)})}function bp(e){return tt(Gc(e))}function ic(e,t){return ft(e)?ft(t)?ic(e.ofType,t.ofType):!0:ft(t)?!0:Ke(e)?Ke(t)?ic(e.ofType,t.ofType):!0:Ke(t)?!0:Gr(e)||Gr(t)?e!==t:!1}function us(e,t,r,n){const i=t.get(n);if(i)return i;const o=Object.create(null),s=Object.create(null);dy(e,r,n,o,s);const a=[o,Object.keys(s)];return t.set(n,a),a}function oc(e,t,r){const n=t.get(r.selectionSet);if(n)return n;const i=Vt(e.getSchema(),r.typeCondition);return us(e,t,i,r.selectionSet)}function dy(e,t,r,n,i){for(const o of r.selections)switch(o.kind){case exports.Kind.FIELD:{const s=o.name.value;let a;(Qe(t)||Je(t))&&(a=t.getFields()[s]);const c=o.alias?o.alias.value:s;n[c]||(n[c]=[]),n[c].push([t,o,a]);break}case exports.Kind.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case exports.Kind.INLINE_FRAGMENT:{const s=o.typeCondition,a=s?Vt(e.getSchema(),s):t;dy(e,a,o.selectionSet,n,i);break}}}function lR(e,t,r,n){if(e.length>0)return[[t,e.map(([i])=>i)],[r,...e.map(([,i])=>i).flat()],[n,...e.map(([,,i])=>i).flat()]]}class fy{constructor(){this._data=new Map}has(t,r,n){var i;const o=(i=this._data.get(t))===null||i===void 0?void 0:i.get(r);return o===void 0?!1:n?!0:n===o}add(t,r,n){const i=this._data.get(t);i===void 0?this._data.set(t,new Map([[r,n]])):i.set(r,n)}}class uR{constructor(){this._orderedPairSet=new fy}has(t,r,n){return t<r?this._orderedPairSet.has(t,r,n):this._orderedPairSet.has(r,t,n)}add(t,r,n){t<r?this._orderedPairSet.add(t,r,n):this._orderedPairSet.add(r,t,n)}}function pR(e){return{InlineFragment(t){const r=e.getType(),n=e.getParentType();if(wn(r)&&wn(n)&&!fp(e.getSchema(),r,n)){const i=be(n),o=be(r);e.reportError(new fe(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value,n=dR(e,r),i=e.getParentType();if(n&&i&&!fp(e.getSchema(),n,i)){const o=be(i),s=be(n);e.reportError(new fe(`Fragment "${r}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}}}}function dR(e,t){const r=e.getFragment(t);if(r){const n=Vt(e.getSchema(),r.typeCondition);if(wn(n))return n}}function fR(e){const t=e.getSchema(),r=Object.create(null);for(const i of e.getDocument().definitions)Mn(i)&&(r[i.name.value]=i);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(i){const o=i.name.value,s=r[o],a=t?.getType(o);let c;if(s?c=mR[s.kind]:a&&(c=hR(a)),c){if(c!==i.kind){const l=yR(i.kind);e.reportError(new fe(`Cannot extend non-${l} type "${o}".`,{nodes:s?[s,i]:i}))}}else{const l=Object.keys({...r,...t?.getTypeMap()}),p=xr(o,l);e.reportError(new fe(`Cannot extend type "${o}" because it is not defined.`+lr(p),{nodes:i.name}))}}}const mR={[exports.Kind.SCALAR_TYPE_DEFINITION]:exports.Kind.SCALAR_TYPE_EXTENSION,[exports.Kind.OBJECT_TYPE_DEFINITION]:exports.Kind.OBJECT_TYPE_EXTENSION,[exports.Kind.INTERFACE_TYPE_DEFINITION]:exports.Kind.INTERFACE_TYPE_EXTENSION,[exports.Kind.UNION_TYPE_DEFINITION]:exports.Kind.UNION_TYPE_EXTENSION,[exports.Kind.ENUM_TYPE_DEFINITION]:exports.Kind.ENUM_TYPE_EXTENSION,[exports.Kind.INPUT_OBJECT_TYPE_DEFINITION]:exports.Kind.INPUT_OBJECT_TYPE_EXTENSION};function hR(e){if(dr(e))return exports.Kind.SCALAR_TYPE_EXTENSION;if(Qe(e))return exports.Kind.OBJECT_TYPE_EXTENSION;if(Je(e))return exports.Kind.INTERFACE_TYPE_EXTENSION;if(bt(e))return exports.Kind.UNION_TYPE_EXTENSION;if(wt(e))return exports.Kind.ENUM_TYPE_EXTENSION;if(st(e))return exports.Kind.INPUT_OBJECT_TYPE_EXTENSION;Rt(!1,"Unexpected type: "+be(e))}function yR(e){switch(e){case exports.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case exports.Kind.OBJECT_TYPE_EXTENSION:return"object";case exports.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case exports.Kind.UNION_TYPE_EXTENSION:return"union";case exports.Kind.ENUM_TYPE_EXTENSION:return"enum";case exports.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Rt(!1,"Unexpected kind: "+be(e))}}function gR(e){return{...my(e),Field:{leave(t){var r;const n=e.getFieldDef();if(!n)return!1;const i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map(o=>o.name.value));for(const o of n.args)if(!i.has(o.name)&&Dn(o)){const s=be(o.type);e.reportError(new fe(`Field "${n.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:t}))}}}}}function my(e){var t;const r=Object.create(null),n=e.getSchema(),i=(t=n?.getDirectives())!==null&&t!==void 0?t:Xr;for(const a of i)r[a.name]=Pr(a.args.filter(Dn),c=>c.name);const o=e.getDocument().definitions;for(const a of o)if(a.kind===exports.Kind.DIRECTIVE_DEFINITION){var s;const c=(s=a.arguments)!==null&&s!==void 0?s:[];r[a.name.value]=Pr(c.filter(vR),l=>l.name.value)}return{Directive:{leave(a){const c=a.name.value,l=r[c];if(l){var p;const d=(p=a.arguments)!==null&&p!==void 0?p:[],g=new Set(d.map(m=>m.name.value));for(const[m,E]of Object.entries(l))if(!g.has(m)){const _=Mc(E.type)?be(E.type):tt(E.type);e.reportError(new fe(`Directive "@${c}" argument "${m}" of type "${_}" is required, but it was not provided.`,{nodes:a}))}}}}}}function vR(e){return e.type.kind===exports.Kind.NON_NULL_TYPE&&e.defaultValue==null}function bR(e){return{Field(t){const r=e.getType(),n=t.selectionSet;if(r)if(Gr(Or(r))){if(n){const i=t.name.value,o=be(r);e.reportError(new fe(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:n}))}}else if(n){if(n.selections.length===0){const i=t.name.value,o=be(r);e.reportError(new fe(`Field "${i}" of type "${o}" must have at least one field selected.`,{nodes:t}))}}else{const i=t.name.value,o=be(r);e.reportError(new fe(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}function _r(e,t,r){if(e){if(e.kind===exports.Kind.VARIABLE){const n=e.name.value;if(r==null||r[n]===void 0||!hy(r,n))return;const i=r[n];return i===null&&Ke(t)?void 0:i}if(Ke(t))return e.kind===exports.Kind.NULL?void 0:_r(e,t.ofType,r);if(e.kind===exports.Kind.NULL)return null;if(ft(t)){const n=t.ofType;if(e.kind===exports.Kind.LIST){const o=[];for(const s of e.values)if(wp(s,r)){if(Ke(n))return;o.push(null)}else{const a=_r(s,n,r);if(a===void 0)return;o.push(a)}return o}const i=_r(e,n,r);return i===void 0?void 0:[i]}if(st(t)){if(e.kind!==exports.Kind.OBJECT)return;const n=Object.create(null),i=Pr(e.fields,o=>o.name.value);for(const o of Object.values(t.getFields())){const s=i[o.name];if(!s||wp(s.value,r)){if(o.defaultValue!==void 0)n[o.name]=o.defaultValue;else if(Ke(o.type))return;continue}const a=_r(s.value,o.type,r);if(a===void 0)return;n[o.name]=a}if(t.isOneOf){const o=Object.keys(n);if(o.length!==1||n[o[0]]===null)return}return n}if(Gr(t)){let n;try{n=t.parseLiteral(e,r)}catch{return}return n===void 0?void 0:n}Rt(!1,"Unexpected input type: "+be(t))}}function wp(e,t){return e.kind===exports.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0||!hy(t,e.name.value))}function hy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function wR(e,t,r){var n;const i=Object.create(null),o=(n=t.arguments)!==null&&n!==void 0?n:[],s=Pr(o,a=>a.name.value);for(const a of e.args){const c=a.name,l=a.type,p=s[c];if(!p){if(a.defaultValue!==void 0)i[c]=a.defaultValue;else if(Ke(l))throw new fe(`Argument "${c}" of required type "${be(l)}" was not provided.`,{nodes:t});continue}const d=p.value;let g=d.kind===exports.Kind.NULL;if(d.kind===exports.Kind.VARIABLE){const E=d.name.value;if(r==null||!SR(r,E)){if(a.defaultValue!==void 0)i[c]=a.defaultValue;else if(Ke(l))throw new fe(`Argument "${c}" of required type "${be(l)}" was provided the variable "$${E}" which was not provided a runtime value.`,{nodes:d});continue}g=r[E]==null}if(g&&Ke(l))throw new fe(`Argument "${c}" of non-null type "${be(l)}" must not be null.`,{nodes:d});const m=_r(d,l,r);if(m===void 0)throw new fe(`Argument "${c}" has invalid value ${tt(d)}.`,{nodes:d});i[c]=m}return{...i}}function _n(e,t,r){var n;const i=(n=t.directives)===null||n===void 0?void 0:n.find(o=>o.name.value===e.name);if(i)return wR(e,i,r)}function SR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _R(e,t,r,n,i){const o=new Map;return sc(e,t,r,n,i,o,new Set),o}function sc(e,t,r,n,i,o,s){for(const a of i.selections)switch(a.kind){case exports.Kind.FIELD:{if(!oa(r,a))continue;const c=ER(a),l=o.get(c);l!==void 0?l.push(a):o.set(c,[a]);break}case exports.Kind.INLINE_FRAGMENT:{if(!oa(r,a)||!Sp(e,a,n))continue;sc(e,t,r,n,a.selectionSet,o,s);break}case exports.Kind.FRAGMENT_SPREAD:{const c=a.name.value;if(s.has(c)||!oa(r,a))continue;s.add(c);const l=t[c];if(!l||!Sp(e,l,n))continue;sc(e,t,r,n,l.selectionSet,o,s);break}}}function oa(e,t){const r=_n(Wh,t,e);if(r?.if===!0)return!1;const n=_n(Jh,t,e);return n?.if!==!1}function Sp(e,t,r){const n=t.typeCondition;if(!n)return!0;const i=Vt(e,n);return i===r?!0:Er(i)?e.isSubType(i,r):!1}function ER(e){return e.alias?e.alias.value:e.name.value}function $R(e){return{OperationDefinition(t){if(t.operation==="subscription"){const r=e.getSchema(),n=r.getSubscriptionType();if(n){const i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(const l of s.definitions)l.kind===exports.Kind.FRAGMENT_DEFINITION&&(a[l.name.value]=l);const c=_R(r,a,o,n,t.selectionSet);if(c.size>1){const d=[...c.values()].slice(1).flat();e.reportError(new fe(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:d}))}for(const l of c.values())l[0].name.value.startsWith("__")&&e.reportError(new fe(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:l}))}}}}}function Yc(e,t){const r=new Map;for(const n of e){const i=t(n),o=r.get(i);o===void 0?r.set(i,[n]):o.push(n)}return r}function TR(e){return{DirectiveDefinition(n){var i;const o=(i=n.arguments)!==null&&i!==void 0?i:[];return r(`@${n.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(n){var i;const o=n.name.value,s=(i=n.fields)!==null&&i!==void 0?i:[];for(const c of s){var a;const l=c.name.value,p=(a=c.arguments)!==null&&a!==void 0?a:[];r(`${o}.${l}`,p)}return!1}function r(n,i){const o=Yc(i,s=>s.name.value);for(const[s,a]of o)a.length>1&&e.reportError(new fe(`Argument "${n}(${s}:)" can only be defined once.`,{nodes:a.map(c=>c.name)}));return!1}}function yy(e){return{Field:t,Directive:t};function t(r){var n;const i=(n=r.arguments)!==null&&n!==void 0?n:[],o=Yc(i,s=>s.name.value);for(const[s,a]of o)a.length>1&&e.reportError(new fe(`There can be only one argument named "${s}".`,{nodes:a.map(c=>c.name)}))}}function PR(e){const t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){const i=n.name.value;if(r!=null&&r.getDirective(i)){e.reportError(new fe(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}));return}return t[i]?e.reportError(new fe(`There can be only one directive named "@${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}function gy(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Xr;for(const c of n)t[c.name]=!c.isRepeatable;const i=e.getDocument().definitions;for(const c of i)c.kind===exports.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable);const o=Object.create(null),s=Object.create(null),a=Object.create(null);return{enter(c){if(!("directives"in c)||!c.directives)return;let l;if(c.kind===exports.Kind.SCHEMA_DEFINITION||c.kind===exports.Kind.SCHEMA_EXTENSION)l=o;else if(Mn(c)||Kc(c)){const p=c.name.value;l=s[p],l===void 0&&(s[p]=l=Object.create(null))}else if(c.kind===exports.Kind.DIRECTIVE_DEFINITION||c.kind===exports.Kind.DIRECTIVE_EXTENSION){const p=c.name.value;l=a[p],l===void 0&&(a[p]=l=Object.create(null))}else l=Object.create(null);for(const p of c.directives){const d=p.name.value;t[d]&&(l[d]?e.reportError(new fe(`The directive "@${d}" can only be used once at this location.`,{nodes:[l[d],p]})):l[d]=p)}}}}function OR(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;const a=o.name.value;n[a]||(n[a]=Object.create(null));const c=(s=o.values)!==null&&s!==void 0?s:[],l=n[a];for(const p of c){const d=p.name.value,g=r[a];wt(g)&&g.getValue(d)?e.reportError(new fe(`Enum value "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):l[d]?e.reportError(new fe(`Enum value "${a}.${d}" can only be defined once.`,{nodes:[l[d],p.name]})):l[d]=p.name}return!1}}function IR(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var s;const a=o.name.value;n[a]||(n[a]=Object.create(null));const c=(s=o.fields)!==null&&s!==void 0?s:[],l=n[a];for(const p of c){const d=p.name.value;xR(r[a],d)?e.reportError(new fe(`Field "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):l[d]?e.reportError(new fe(`Field "${a}.${d}" can only be defined once.`,{nodes:[l[d],p.name]})):l[d]=p.name}return!1}}function xR(e,t){return Qe(e)||Je(e)||st(e)?e.getFields()[t]!=null:!1}function RR(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){const n=r.name.value;return t[n]?e.reportError(new fe(`There can be only one fragment named "${n}".`,{nodes:[t[n],r.name]})):t[n]=r.name,!1}}}function vy(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){const n=t.pop();n||Rt(!1),r=n}},ObjectField(n){const i=n.name.value;r[i]?e.reportError(new fe(`There can be only one input field named "${i}".`,{nodes:[r[i],n.name]})):r[i]=n.name}}}function AR(e){const t=Object.create(null);return{OperationDefinition(r){const n=r.name;return n&&(t[n.value]?e.reportError(new fe(`There can be only one operation named "${n.value}".`,{nodes:[t[n.value],n]})):t[n.value]=n),!1},FragmentDefinition:()=>!1}}function NR(e){const t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){var s;const a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(const c of a){const l=c.operation,p=r[l];n[l]?e.reportError(new fe(`Type for ${l} already defined in the schema. It cannot be redefined.`,{nodes:c})):p?e.reportError(new fe(`There can be only one ${l} type in schema.`,{nodes:[p,c]})):r[l]=c}return!1}}function kR(e){const t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(i){const o=i.name.value;if(r!=null&&r.getType(o)){e.reportError(new fe(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[o]?e.reportError(new fe(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}function qR(e){return{OperationDefinition(t){var r;const n=(r=t.variableDefinitions)!==null&&r!==void 0?r:[],i=Yc(n,o=>o.variable.name.value);for(const[o,s]of i)s.length>1&&e.reportError(new fe(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}function CR(e){return{ListValue(t){const r=fx(e.getParentInputType());if(!ft(r))return yr(e,t),!1},ObjectValue(t){const r=Or(e.getInputType());if(!st(r))return yr(e,t),!1;const n=Pr(t.fields,i=>i.name.value);for(const i of Object.values(r.getFields()))if(!n[i.name]&&Hh(i)){const s=be(i.type);e.reportError(new fe(`Field "${r.name}.${i.name}" of required type "${s}" was not provided.`,{nodes:t}))}r.isOneOf&&DR(e,t,r,n)},ObjectField(t){const r=Or(e.getParentInputType());if(!e.getInputType()&&st(r)){const i=xr(t.name.value,Object.keys(r.getFields()));e.reportError(new fe(`Field "${t.name.value}" is not defined by type "${r.name}".`+lr(i),{nodes:t}))}},NullValue(t){const r=e.getInputType();Ke(r)&&e.reportError(new fe(`Expected value of type "${be(r)}", found ${tt(t)}.`,{nodes:t}))},EnumValue:t=>yr(e,t),IntValue:t=>yr(e,t),FloatValue:t=>yr(e,t),StringValue:t=>yr(e,t),BooleanValue:t=>yr(e,t)}}function yr(e,t){const r=e.getInputType();if(!r)return;const n=Or(r);if(!Gr(n)){const i=be(r);e.reportError(new fe(`Expected value of type "${i}", found ${tt(t)}.`,{nodes:t}));return}try{if(n.parseLiteral(t,void 0)===void 0){const o=be(r);e.reportError(new fe(`Expected value of type "${o}", found ${tt(t)}.`,{nodes:t}))}}catch(i){const o=be(r);i instanceof fe?e.reportError(i):e.reportError(new fe(`Expected value of type "${o}", found ${tt(t)}; `+i.message,{nodes:t,originalError:i}))}}function DR(e,t,r,n){var i;const o=Object.keys(n);if(o.length!==1){e.reportError(new fe(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}const a=(i=n[o[0]])===null||i===void 0?void 0:i.value;(!a||a.kind===exports.Kind.NULL)&&e.reportError(new fe(`Field "${r.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}function jR(e){return{VariableDefinition(t){const r=Vt(e.getSchema(),t.type);if(r!==void 0&&!Cn(r)){const n=t.variable.name.value,i=tt(t.type);e.reportError(new fe(`Variable "$${n}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function MR(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const n=e.getRecursiveVariableUsages(r);for(const{node:i,type:o,defaultValue:s,parentType:a}of n){const c=i.name.value,l=t[c];if(l&&o){const p=e.getSchema(),d=Vt(p,l.type);if(d&&!LR(p,d,l.defaultValue,o,s)){const g=be(d),m=be(o);e.reportError(new fe(`Variable "$${c}" of type "${g}" used in position expecting type "${m}".`,{nodes:[l,i]}))}st(a)&&a.isOneOf&&Lh(d)&&e.reportError(new fe(`Variable "$${c}" is of type "${d}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[l,i]}))}}}},VariableDefinition(r){t[r.variable.name.value]=r}}}function LR(e,t,r,n,i){if(Ke(n)&&!Ke(t)){if(!(r!=null&&r.kind!==exports.Kind.NULL)&&!(i!==void 0))return!1;const a=n.ofType;return Br(e,t,a)}return Br(e,t,n)}const UR=Object.freeze([Xx]);Object.freeze([Lx,AR,Qx,$R,ly,Bx,jR,bR,Ux,RR,Hx,tR,pR,Zx,qR,eR,rR,cy,gy,zx,yy,CR,gR,MR,iR,vy,...UR]);const FR=Object.freeze([Jx,NR,kR,OR,IR,TR,PR,ly,cy,gy,fR,ay,yy,vy,my]);class VR{constructor(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let r;if(this._fragments)r=this._fragments;else{r=Object.create(null);for(const n of this.getDocument().definitions)n.kind===exports.Kind.FRAGMENT_DEFINITION&&(r[n.name.value]=n);this._fragments=r}return r[t]}getFragmentSpreads(t){let r=this._fragmentSpreads.get(t);if(!r){r=[];const n=[t];let i;for(;i=n.pop();)for(const o of i.selections)o.kind===exports.Kind.FRAGMENT_SPREAD?r.push(o):o.selectionSet&&n.push(o.selectionSet);this._fragmentSpreads.set(t,r)}return r}getRecursivelyReferencedFragments(t){let r=this._recursivelyReferencedFragments.get(t);if(!r){r=[];const n=Object.create(null),i=[t.selectionSet];let o;for(;o=i.pop();)for(const s of this.getFragmentSpreads(o)){const a=s.name.value;if(n[a]!==!0){n[a]=!0;const c=this.getFragment(a);c&&(r.push(c),i.push(c.selectionSet))}}this._recursivelyReferencedFragments.set(t,r)}return r}}class BR extends VR{constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}Mt(qc,e=>e.filter(t=>t!=="description"));function zR(e,t,r=FR){const n=[],i=new BR(e,t,s=>{n.push(s)}),o=r.map(s=>s(i));return jc(e,Dh(o)),n}function KR(e){const t=zR(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(`
|
|
73
|
+
|
|
74
|
+
`))}function GR(e,t,r){var n,i,o,s;const a=[],c=Object.create(null),l=Object.create(null),p=[];let d;const g=[];for(const x of t.definitions)if(x.kind===exports.Kind.SCHEMA_DEFINITION)d=x;else if(x.kind===exports.Kind.SCHEMA_EXTENSION)g.push(x);else if(Mn(x))a.push(x);else if(Kc(x)){const H=x.name.value,Y=c[H];c[H]=Y?Y.concat([x]):[x]}else if(x.kind===exports.Kind.DIRECTIVE_DEFINITION)p.push(x);else if(x.kind===exports.Kind.DIRECTIVE_EXTENSION){const H=x.name.value,Y=l[H];l[H]=Y?Y.concat([x]):[x]}if(Object.keys(c).length===0&&a.length===0&&Object.keys(l).length===0&&p.length===0&&g.length===0&&d==null)return e;const m=Object.create(null);for(const x of e.types)m[x.name]=h(x);for(const x of a){var E;const H=x.name.value;m[H]=(E=_p[H])!==null&&E!==void 0?E:I(x)}const _=Object.create(null);for(const x of e.directives)_[x.name]=ie(x);const $={query:e.query&&y(e.query),mutation:e.mutation&&y(e.mutation),subscription:e.subscription&&y(e.subscription),...d&&W([d]),...W(g)},T=Object.values(_);return{description:(n=d)===null||n===void 0||(i=n.description)===null||i===void 0?void 0:i.value,...$,types:Object.values(m),directives:[...T.map(S),...p.map(pe)],extensions:Object.create(null),astNode:(o=d)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(g),assumeValid:(s=r?.assumeValid)!==null&&s!==void 0?s:!1};function w(x){return ft(x)?new mt(w(x.ofType)):Ke(x)?new Ae(w(x.ofType)):y(x)}function y(x){return m[x.name]}function S(x){const H=x.toConfig();return new Xt({...H,args:Mt(H.args,V)})}function h(x){if(oy(x)||bx(x))return x;if(dr(x))return k(x);if(Qe(x))return D(x);if(Je(x))return B(x);if(bt(x))return G(x);if(wt(x))return O(x);if(st(x))return v(x);Rt(!1,"Unexpected type: "+be(x))}function v(x){var H;const Y=x.toConfig(),Z=(H=c[Y.name])!==null&&H!==void 0?H:[];return new rc({...Y,fields:()=>({...Mt(Y.fields,oe=>({...oe,type:w(oe.type)})),...N(Z)}),extensionASTNodes:Y.extensionASTNodes.concat(Z)})}function O(x){var H;const Y=x.toConfig(),Z=(H=c[x.name])!==null&&H!==void 0?H:[];return new Sn({...Y,values:{...Y.values,...z(Z)},extensionASTNodes:Y.extensionASTNodes.concat(Z)})}function k(x){var H;const Y=x.toConfig(),Z=(H=c[Y.name])!==null&&H!==void 0?H:[];let oe=Y.specifiedByURL;for(const q of Z){var A;oe=(A=Ep(q))!==null&&A!==void 0?A:oe}return new ur({...Y,specifiedByURL:oe,extensionASTNodes:Y.extensionASTNodes.concat(Z)})}function D(x){var H;const Y=x.toConfig(),Z=(H=c[Y.name])!==null&&H!==void 0?H:[];return new rr({...Y,interfaces:()=>[...x.getInterfaces().map(y),...C(Z)],fields:()=>({...Mt(Y.fields,J),...le(Z)}),extensionASTNodes:Y.extensionASTNodes.concat(Z)})}function B(x){var H;const Y=x.toConfig(),Z=(H=c[Y.name])!==null&&H!==void 0?H:[];return new ec({...Y,interfaces:()=>[...x.getInterfaces().map(y),...C(Z)],fields:()=>({...Mt(Y.fields,J),...le(Z)}),extensionASTNodes:Y.extensionASTNodes.concat(Z)})}function G(x){var H;const Y=x.toConfig(),Z=(H=c[Y.name])!==null&&H!==void 0?H:[];return new tc({...Y,types:()=>[...x.getTypes().map(y),...P(Z)],extensionASTNodes:Y.extensionASTNodes.concat(Z)})}function J(x){return{...x,type:w(x.type),args:x.args&&Mt(x.args,V)}}function V(x){return{...x,type:w(x.type)}}function W(x){const H={};for(const Z of x){var Y;const oe=(Y=Z.operationTypes)!==null&&Y!==void 0?Y:[];for(const A of oe)H[A.operation]=ae(A.type)}return H}function ie(x){var H,Y;const Z=x.toConfig(),oe=(H=l[Z.name])!==null&&H!==void 0?H:[],A=(Y=Z.deprecationReason)!==null&&Y!==void 0?Y:oe.map(q=>gr(q)).find(q=>q!=null);return new Xt({...Z,deprecationReason:A,extensionASTNodes:Z.extensionASTNodes.concat(oe)})}function ae(x){var H;const Y=x.name.value,Z=(H=_p[Y])!==null&&H!==void 0?H:m[Y];if(Z===void 0)throw new Error(`Unknown type: "${Y}".`);return Z}function _e(x){return x.kind===exports.Kind.LIST_TYPE?new mt(_e(x.type)):x.kind===exports.Kind.NON_NULL_TYPE?new Ae(_e(x.type)):ae(x)}function pe(x){var H,Y,Z;const oe=(H=l[x.name.value])!==null&&H!==void 0?H:[],A=(Y=gr(x))!==null&&Y!==void 0?Y:oe.map(q=>gr(q)).find(q=>q!=null);return new Xt({name:x.name.value,description:(Z=x.description)===null||Z===void 0?void 0:Z.value,locations:x.locations.map(({value:q})=>q),isRepeatable:x.repeatable,args:L(x.arguments),deprecationReason:A,astNode:x,extensionASTNodes:oe})}function le(x){const H=Object.create(null);for(const oe of x){var Y;const A=(Y=oe.fields)!==null&&Y!==void 0?Y:[];for(const q of A){var Z;H[q.name.value]={type:_e(q.type),description:(Z=q.description)===null||Z===void 0?void 0:Z.value,args:L(q.arguments),deprecationReason:gr(q),astNode:q}}}return H}function L(x){const H=x??[],Y=Object.create(null);for(const oe of H){var Z;const A=_e(oe.type);Y[oe.name.value]={type:A,description:(Z=oe.description)===null||Z===void 0?void 0:Z.value,defaultValue:_r(oe.defaultValue,A),deprecationReason:gr(oe),astNode:oe}}return Y}function N(x){const H=Object.create(null);for(const oe of x){var Y;const A=(Y=oe.fields)!==null&&Y!==void 0?Y:[];for(const q of A){var Z;const K=_e(q.type);H[q.name.value]={type:K,description:(Z=q.description)===null||Z===void 0?void 0:Z.value,defaultValue:_r(q.defaultValue,K),deprecationReason:gr(q),astNode:q}}}return H}function z(x){const H=Object.create(null);for(const oe of x){var Y;const A=(Y=oe.values)!==null&&Y!==void 0?Y:[];for(const q of A){var Z;H[q.name.value]={description:(Z=q.description)===null||Z===void 0?void 0:Z.value,deprecationReason:gr(q),astNode:q}}}return H}function C(x){return x.flatMap(H=>{var Y,Z;return(Y=(Z=H.interfaces)===null||Z===void 0?void 0:Z.map(ae))!==null&&Y!==void 0?Y:[]})}function P(x){return x.flatMap(H=>{var Y,Z;return(Y=(Z=H.types)===null||Z===void 0?void 0:Z.map(ae))!==null&&Y!==void 0?Y:[]})}function I(x){var H;const Y=x.name.value,Z=(H=c[Y])!==null&&H!==void 0?H:[];switch(x.kind){case exports.Kind.OBJECT_TYPE_DEFINITION:{var oe;const ue=[x,...Z];return new rr({name:Y,description:(oe=x.description)===null||oe===void 0?void 0:oe.value,interfaces:()=>C(ue),fields:()=>le(ue),astNode:x,extensionASTNodes:Z})}case exports.Kind.INTERFACE_TYPE_DEFINITION:{var A;const ue=[x,...Z];return new ec({name:Y,description:(A=x.description)===null||A===void 0?void 0:A.value,interfaces:()=>C(ue),fields:()=>le(ue),astNode:x,extensionASTNodes:Z})}case exports.Kind.ENUM_TYPE_DEFINITION:{var q;const ue=[x,...Z];return new Sn({name:Y,description:(q=x.description)===null||q===void 0?void 0:q.value,values:z(ue),astNode:x,extensionASTNodes:Z})}case exports.Kind.UNION_TYPE_DEFINITION:{var K;const ue=[x,...Z];return new tc({name:Y,description:(K=x.description)===null||K===void 0?void 0:K.value,types:()=>P(ue),astNode:x,extensionASTNodes:Z})}case exports.Kind.SCALAR_TYPE_DEFINITION:{var X;return new ur({name:Y,description:(X=x.description)===null||X===void 0?void 0:X.value,specifiedByURL:Ep(x),astNode:x,extensionASTNodes:Z})}case exports.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var ee;const ue=[x,...Z];return new rc({name:Y,description:(ee=x.description)===null||ee===void 0?void 0:ee.value,fields:()=>N(ue),astNode:x,extensionASTNodes:Z,isOneOf:HR(x)})}}}}const _p=Pr([...Uc,...Bc],e=>e.name);function gr(e){const t=_n(Fc,e);return t?.reason}function Ep(e){const t=_n(Xh,e);return t?.url}function HR(e){return!!_n(Zh,e)}function YR(e,t){e!=null&&e.kind===exports.Kind.DOCUMENT||ze(!1,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&KR(e);const n=GR({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(n.astNode==null)for(const o of n.types)switch(o.name){case"Query":n.query=o;break;case"Mutation":n.mutation=o;break;case"Subscription":n.subscription=o;break}const i=[...n.directives,...Xr.filter(o=>n.directives.every(s=>s.name!==o.name))];return new sy({...n,directives:i})}const QR=()=>({Document:{enter:(e,t)=>{let r;try{r=YR(e,{assumeValidSDL:!1})}catch(n){JR(n,t);return}for(const n of $x(r))by(n,t)}}});function JR(e,t){if(e instanceof fe)by(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function by(e,t){const r=e.locations?.[0];t.report({message:e.message,node:e.nodes?.[0],loc:r?{start:{line:r.line,col:r.column}}:void 0})}const WR=()=>{const e=(t,r)=>{(!t.description||t.description.value.trim()==="")&&r.report({message:`Type \`${t.name.value}\` should have a non-empty description.`,node:t.name})};return{ObjectTypeDefinition:e,InterfaceTypeDefinition:e,EnumTypeDefinition:e,InputObjectTypeDefinition:e,UnionTypeDefinition:e,ScalarTypeDefinition:e}},XR={struct:QR,assertions:kI,"no-unused-types":UI,"type-description":WR},Qc=()=>({Info(e,{report:t}){e.license||t({message:Ps("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}}),wy=()=>({Paths(e,{report:t,location:r}){const n=[];for(const i of Object.keys(e)){const o=n.find(s=>ZR(s,i));o&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${o}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(i)}}});function ZR(e,t){const r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let i=0,o=0,s=!0;for(let a=0;a<r.length;a++){const c=r[a].match(/^{.+?}$/),l=n[a].match(/^{.+?}$/);if(c||l){c&&i++,l&&o++;continue}else r[a]!==n[a]&&(s=!1)}return s&&i===o}function Sy(e){return e.startsWith("{")&&e.endsWith("}")}function eA(e){const t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(M.isTruthy).map(n=>n.toLocaleLowerCase()),r=e.split(/([A-Z]{2,})/).filter(n=>n&&n===n.toUpperCase()).map(n=>n.toLocaleLowerCase());return new Set([...t,...r])}const tA=["get","head","post","put","patch","delete","options","trace"],_y=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:i,location:o}){const s=n.toString();if(!s.startsWith("/")||t?.some(c=>s===c))return;const a=s.split("/");for(const c of a){if(!c||Sy(c))continue;const l=p=>e?eA(c).has(p):c.toLocaleLowerCase().includes(p);for(const p of tA)l(p)&&i({message:`path \`${s}\` should not contain http verb ${p}`,location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}}),Ey=()=>({Paths(e,{report:t,location:r}){const n=new Map;for(const i of Object.keys(e)){const o=i.replace(/{.+?}/g,"{VARIABLE}"),s=n.get(o);s?t({message:`The path already exists which differs only by path parameter name(s): \`${s}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(o,i)}}});var Gi={exports:{}},Hi={},Yi={},$p;function rA(){if($p)return Yi;$p=1,Object.defineProperty(Yi,"__esModule",{value:!0});const e=Pe(),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:a,schemaCode:c}=s;s.fail$data((0,e._)`${a} ${o(s).fail} ${c} || isNaN(${a})`)}};function o(s){var a;const c=s.keyword,l=!((a=s.parentSchema)===null||a===void 0)&&a[r[c].exclusive]?1:0;return r[c].ops[l]}return Yi.default=i,Yi}var Qi={},Tp;function nA(){if(Tp)return Qi;Tp=1,Object.defineProperty(Qi,"__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 Qi.default=t,Qi}var Pp;function iA(){if(Pp)return Hi;Pp=1,Object.defineProperty(Hi,"__esModule",{value:!0});const e=$s(),t=zm(),r=Hm(),n=Ym(),i=Um(),o=rA(),s=nA(),a=["title","description","default"],c=["$schema","id","$defs",{keyword:"$comment"},"definitions",e.default],l=[...i.default.slice(1),o.default,s.default],p=[c,l,(0,t.default)(),n.default,a,r.default];return Hi.default=p,Hi}const oA="http://json-schema.org/draft-04/schema#",sA="http://json-schema.org/draft-04/schema#",aA="Core schema meta-schema",cA={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}},lA="object",uA={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:"#"}},pA={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},dA={id:oA,$schema:sA,description:aA,definitions:cA,type:lA,properties:uA,dependencies:pA,default:{}};var Op;function fA(){return Op||(Op=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=Lm(),n=iA(),i=Qm(),o=dA,s=["/properties"],a="http://json-schema.org/draft-04/schema";class c extends r.default{constructor(E={}){super({...E,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(E=>this.addVocabulary(E)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const E=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(E,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=c,e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=Pn();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var p=Pe();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var d=_s();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var g=On();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(Gi,Gi.exports)),Gi.exports}var mA=fA();const hA=se.getDefaultExportFromCjs(mA);var Ji={exports:{}},sa={},Ip;function yA(){return Ip||(Ip=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(G,J){return{validate:G,compare:J}}e.fullFormats={date:t(o,s),time:t(c(!0),l),"date-time":t(g(!0),m),"iso-time":t(c(),p),"iso-date-time":t(g(),E),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:T,"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:B,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:y,int32:{type:"number",validate:v},int64:{type:"number",validate:O},float:{type:"number",validate:k},double:{type:"number",validate:k},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,m),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"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,E),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(G){return G%4===0&&(G%100!==0||G%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(G){const J=n.exec(G);if(!J)return!1;const V=+J[1],W=+J[2],ie=+J[3];return W>=1&&W<=12&&ie>=1&&ie<=(W===2&&r(V)?29:i[W])}function s(G,J){if(G&&J)return G>J?1:G<J?-1:0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(G){return function(V){const W=a.exec(V);if(!W)return!1;const ie=+W[1],ae=+W[2],_e=+W[3],pe=W[4],le=W[5]==="-"?-1:1,L=+(W[6]||0),N=+(W[7]||0);if(L>23||N>59||G&&!pe)return!1;if(ie<=23&&ae<=59&&_e<60)return!0;const z=ae-N*le,C=ie-L*le-(z<0?1:0);return(C===23||C===-1)&&(z===59||z===-1)&&_e<61}}function l(G,J){if(!(G&&J))return;const V=new Date("2020-01-01T"+G).valueOf(),W=new Date("2020-01-01T"+J).valueOf();if(V&&W)return V-W}function p(G,J){if(!(G&&J))return;const V=a.exec(G),W=a.exec(J);if(V&&W)return G=V[1]+V[2]+V[3],J=W[1]+W[2]+W[3],G>J?1:G<J?-1:0}const d=/t|\s/i;function g(G){const J=c(G);return function(W){const ie=W.split(d);return ie.length===2&&o(ie[0])&&J(ie[1])}}function m(G,J){if(!(G&&J))return;const V=new Date(G).valueOf(),W=new Date(J).valueOf();if(V&&W)return V-W}function E(G,J){if(!(G&&J))return;const[V,W]=G.split(d),[ie,ae]=J.split(d),_e=s(V,ie);if(_e!==void 0)return _e||l(W,ae)}const _=/\/|:/,$=/^(?:[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 T(G){return _.test(G)&&$.test(G)}const w=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function y(G){return w.lastIndex=0,w.test(G)}const S=-2147483648,h=2**31-1;function v(G){return Number.isInteger(G)&&G<=h&&G>=S}function O(G){return Number.isInteger(G)}function k(){return!0}const D=/[^\\]\\Z/;function B(G){if(D.test(G))return!1;try{return new RegExp(G),!0}catch{return!1}}})(sa)),sa}var aa={},Wi={exports:{}},ca={},Yt={},vr={},la={},ua={},pa={},xp;function ps(){return xp||(xp=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(w){if(super(),!e.IDENTIFIER.test(w))throw new Error("CodeGen: name must be a valid identifier");this.str=w}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(w){super(),this._items=typeof w=="string"?[w]:w}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const w=this._items[0];return w===""||w==='""'}get str(){var w;return(w=this._str)!==null&&w!==void 0?w:this._str=this._items.reduce((y,S)=>`${y}${S}`,"")}get names(){var w;return(w=this._names)!==null&&w!==void 0?w:this._names=this._items.reduce((y,S)=>(S instanceof r&&(y[S.str]=(y[S.str]||0)+1),y),{})}}e._Code=n,e.nil=new n("");function i(T,...w){const y=[T[0]];let S=0;for(;S<w.length;)a(y,w[S]),y.push(T[++S]);return new n(y)}e._=i;const o=new n("+");function s(T,...w){const y=[m(T[0])];let S=0;for(;S<w.length;)y.push(o),a(y,w[S]),y.push(o,m(T[++S]));return c(y),new n(y)}e.str=s;function a(T,w){w instanceof n?T.push(...w._items):w instanceof r?T.push(w):T.push(d(w))}e.addCodeArg=a;function c(T){let w=1;for(;w<T.length-1;){if(T[w]===o){const y=l(T[w-1],T[w+1]);if(y!==void 0){T.splice(w-1,3,y);continue}T[w++]="+"}w++}}function l(T,w){if(w==='""')return T;if(T==='""')return w;if(typeof T=="string")return w instanceof r||T[T.length-1]!=='"'?void 0:typeof w!="string"?`${T.slice(0,-1)}${w}"`:w[0]==='"'?T.slice(0,-1)+w.slice(1):void 0;if(typeof w=="string"&&w[0]==='"'&&!(T instanceof r))return`"${T}${w.slice(1)}`}function p(T,w){return w.emptyStr()?T:T.emptyStr()?w:s`${T}${w}`}e.strConcat=p;function d(T){return typeof T=="number"||typeof T=="boolean"||T===null?T:m(Array.isArray(T)?T.join(","):T)}function g(T){return new n(m(T))}e.stringify=g;function m(T){return JSON.stringify(T).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function E(T){return typeof T=="string"&&e.IDENTIFIER.test(T)?new n(`.${T}`):i`[${T}]`}e.getProperty=E;function _(T){if(typeof T=="string"&&e.IDENTIFIER.test(T))return new n(`${T}`);throw new Error(`CodeGen: invalid export name: ${T}, use explicit $id name mapping`)}e.getEsmExportName=_;function $(T){return new n(T.toString())}e.regexpCode=$})(pa)),pa}var da={},Rp;function Ap(){return Rp||(Rp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ps();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(c){c[c.Started=0]="Started",c[c.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:p}={}){this._names={},this._prefixes=l,this._parent=p}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const p=this._names[l]||this._nameGroup(l);return`${l}${p.index++}`}_nameGroup(l){var p,d;if(!((d=(p=this._parent)===null||p===void 0?void 0:p._prefixes)===null||d===void 0)&&d.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,p){super(p),this.prefix=l}setValue(l,{property:p,itemIndex:d}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(p)}[${d}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class a 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,p){var d;if(p.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const g=this.toName(l),{prefix:m}=g,E=(d=p.key)!==null&&d!==void 0?d:p.ref;let _=this._values[m];if(_){const w=_.get(E);if(w)return w}else _=this._values[m]=new Map;_.set(E,g);const $=this._scope[m]||(this._scope[m]=[]),T=$.length;return $[T]=p.ref,g.setValue(p,{property:m,itemIndex:T}),g}getValue(l,p){const d=this._values[l];if(d)return d.get(p)}scopeRefs(l,p=this._values){return this._reduceValues(p,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${l}${d.scopePath}`})}scopeCode(l=this._values,p,d){return this._reduceValues(l,g=>{if(g.value===void 0)throw new Error(`CodeGen: name "${g}" has no value`);return g.value.code},p,d)}_reduceValues(l,p,d={},g){let m=t.nil;for(const E in l){const _=l[E];if(!_)continue;const $=d[E]=d[E]||new Map;_.forEach(T=>{if($.has(T))return;$.set(T,n.Started);let w=p(T);if(w){const y=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${y} ${T} = ${w};${this.opts._n}`}else if(w=g?.(T))m=(0,t._)`${m}${w}${this.opts._n}`;else throw new r(T);$.set(T,n.Completed)})}return m}}e.ValueScope=a})(da)),da}var Np;function Ie(){return Np||(Np=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=ps(),r=Ap();var n=ps();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=Ap();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(P,I){return this}}class s extends o{constructor(P,I,x){super(),this.varKind=P,this.name=I,this.rhs=x}render({es5:P,_n:I}){const x=P?r.varKinds.var:this.varKind,H=this.rhs===void 0?"":` = ${this.rhs}`;return`${x} ${this.name}${H};`+I}optimizeNames(P,I){if(P[this.name.str])return this.rhs&&(this.rhs=W(this.rhs,P,I)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(P,I,x){super(),this.lhs=P,this.rhs=I,this.sideEffects=x}render({_n:P}){return`${this.lhs} = ${this.rhs};`+P}optimizeNames(P,I){if(!(this.lhs instanceof t.Name&&!P[this.lhs.str]&&!this.sideEffects))return this.rhs=W(this.rhs,P,I),this}get names(){const P=this.lhs instanceof t.Name?{}:{...this.lhs.names};return V(P,this.rhs)}}class c extends a{constructor(P,I,x,H){super(P,x,H),this.op=I}render({_n:P}){return`${this.lhs} ${this.op}= ${this.rhs};`+P}}class l extends o{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`${this.label}:`+P}}class p extends o{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`break${this.label?` ${this.label}`:""};`+P}}class d extends o{constructor(P){super(),this.error=P}render({_n:P}){return`throw ${this.error};`+P}get names(){return this.error.names}}class g extends o{constructor(P){super(),this.code=P}render({_n:P}){return`${this.code};`+P}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(P,I){return this.code=W(this.code,P,I),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends o{constructor(P=[]){super(),this.nodes=P}render(P){return this.nodes.reduce((I,x)=>I+x.render(P),"")}optimizeNodes(){const{nodes:P}=this;let I=P.length;for(;I--;){const x=P[I].optimizeNodes();Array.isArray(x)?P.splice(I,1,...x):x?P[I]=x:P.splice(I,1)}return P.length>0?this:void 0}optimizeNames(P,I){const{nodes:x}=this;let H=x.length;for(;H--;){const Y=x[H];Y.optimizeNames(P,I)||(ie(P,Y.names),x.splice(H,1))}return x.length>0?this:void 0}get names(){return this.nodes.reduce((P,I)=>J(P,I.names),{})}}class E extends m{render(P){return"{"+P._n+super.render(P)+"}"+P._n}}class _ extends m{}class $ extends E{}$.kind="else";class T extends E{constructor(P,I){super(I),this.condition=P}render(P){let I=`if(${this.condition})`+super.render(P);return this.else&&(I+="else "+this.else.render(P)),I}optimizeNodes(){super.optimizeNodes();const P=this.condition;if(P===!0)return this.nodes;let I=this.else;if(I){const x=I.optimizeNodes();I=this.else=Array.isArray(x)?new $(x):x}if(I)return P===!1?I instanceof T?I:I.nodes:this.nodes.length?this:new T(ae(P),I instanceof T?[I]:I.nodes);if(!(P===!1||!this.nodes.length))return this}optimizeNames(P,I){var x;if(this.else=(x=this.else)===null||x===void 0?void 0:x.optimizeNames(P,I),!!(super.optimizeNames(P,I)||this.else))return this.condition=W(this.condition,P,I),this}get names(){const P=super.names;return V(P,this.condition),this.else&&J(P,this.else.names),P}}T.kind="if";class w extends E{}w.kind="for";class y extends w{constructor(P){super(),this.iteration=P}render(P){return`for(${this.iteration})`+super.render(P)}optimizeNames(P,I){if(super.optimizeNames(P,I))return this.iteration=W(this.iteration,P,I),this}get names(){return J(super.names,this.iteration.names)}}class S extends w{constructor(P,I,x,H){super(),this.varKind=P,this.name=I,this.from=x,this.to=H}render(P){const I=P.es5?r.varKinds.var:this.varKind,{name:x,from:H,to:Y}=this;return`for(${I} ${x}=${H}; ${x}<${Y}; ${x}++)`+super.render(P)}get names(){const P=V(super.names,this.from);return V(P,this.to)}}class h extends w{constructor(P,I,x,H){super(),this.loop=P,this.varKind=I,this.name=x,this.iterable=H}render(P){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(P)}optimizeNames(P,I){if(super.optimizeNames(P,I))return this.iterable=W(this.iterable,P,I),this}get names(){return J(super.names,this.iterable.names)}}class v extends E{constructor(P,I,x){super(),this.name=P,this.args=I,this.async=x}render(P){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(P)}}v.kind="func";class O extends m{render(P){return"return "+super.render(P)}}O.kind="return";class k extends E{render(P){let I="try"+super.render(P);return this.catch&&(I+=this.catch.render(P)),this.finally&&(I+=this.finally.render(P)),I}optimizeNodes(){var P,I;return super.optimizeNodes(),(P=this.catch)===null||P===void 0||P.optimizeNodes(),(I=this.finally)===null||I===void 0||I.optimizeNodes(),this}optimizeNames(P,I){var x,H;return super.optimizeNames(P,I),(x=this.catch)===null||x===void 0||x.optimizeNames(P,I),(H=this.finally)===null||H===void 0||H.optimizeNames(P,I),this}get names(){const P=super.names;return this.catch&&J(P,this.catch.names),this.finally&&J(P,this.finally.names),P}}class D extends E{constructor(P){super(),this.error=P}render(P){return`catch(${this.error})`+super.render(P)}}D.kind="catch";class B extends E{render(P){return"finally"+super.render(P)}}B.kind="finally";class G{constructor(P,I={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...I,_n:I.lines?`
|
|
75
|
+
`:""},this._extScope=P,this._scope=new r.Scope({parent:P}),this._nodes=[new _]}toString(){return this._root.render(this.opts)}name(P){return this._scope.name(P)}scopeName(P){return this._extScope.name(P)}scopeValue(P,I){const x=this._extScope.value(P,I);return(this._values[x.prefix]||(this._values[x.prefix]=new Set)).add(x),x}getScopeValue(P,I){return this._extScope.getValue(P,I)}scopeRefs(P){return this._extScope.scopeRefs(P,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(P,I,x,H){const Y=this._scope.toName(I);return x!==void 0&&H&&(this._constants[Y.str]=x),this._leafNode(new s(P,Y,x)),Y}const(P,I,x){return this._def(r.varKinds.const,P,I,x)}let(P,I,x){return this._def(r.varKinds.let,P,I,x)}var(P,I,x){return this._def(r.varKinds.var,P,I,x)}assign(P,I,x){return this._leafNode(new a(P,I,x))}add(P,I){return this._leafNode(new c(P,e.operators.ADD,I))}code(P){return typeof P=="function"?P():P!==t.nil&&this._leafNode(new g(P)),this}object(...P){const I=["{"];for(const[x,H]of P)I.length>1&&I.push(","),I.push(x),(x!==H||this.opts.es5)&&(I.push(":"),(0,t.addCodeArg)(I,H));return I.push("}"),new t._Code(I)}if(P,I,x){if(this._blockNode(new T(P)),I&&x)this.code(I).else().code(x).endIf();else if(I)this.code(I).endIf();else if(x)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(P){return this._elseNode(new T(P))}else(){return this._elseNode(new $)}endIf(){return this._endBlockNode(T,$)}_for(P,I){return this._blockNode(P),I&&this.code(I).endFor(),this}for(P,I){return this._for(new y(P),I)}forRange(P,I,x,H,Y=this.opts.es5?r.varKinds.var:r.varKinds.let){const Z=this._scope.toName(P);return this._for(new S(Y,Z,I,x),()=>H(Z))}forOf(P,I,x,H=r.varKinds.const){const Y=this._scope.toName(P);if(this.opts.es5){const Z=I instanceof t.Name?I:this.var("_arr",I);return this.forRange("_i",0,(0,t._)`${Z}.length`,oe=>{this.var(Y,(0,t._)`${Z}[${oe}]`),x(Y)})}return this._for(new h("of",H,Y,I),()=>x(Y))}forIn(P,I,x,H=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(P,(0,t._)`Object.keys(${I})`,x);const Y=this._scope.toName(P);return this._for(new h("in",H,Y,I),()=>x(Y))}endFor(){return this._endBlockNode(w)}label(P){return this._leafNode(new l(P))}break(P){return this._leafNode(new p(P))}return(P){const I=new O;if(this._blockNode(I),this.code(P),I.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(O)}try(P,I,x){if(!I&&!x)throw new Error('CodeGen: "try" without "catch" and "finally"');const H=new k;if(this._blockNode(H),this.code(P),I){const Y=this.name("e");this._currNode=H.catch=new D(Y),I(Y)}return x&&(this._currNode=H.finally=new B,this.code(x)),this._endBlockNode(D,B)}throw(P){return this._leafNode(new d(P))}block(P,I){return this._blockStarts.push(this._nodes.length),P&&this.code(P).endBlock(I),this}endBlock(P){const I=this._blockStarts.pop();if(I===void 0)throw new Error("CodeGen: not in self-balancing block");const x=this._nodes.length-I;if(x<0||P!==void 0&&x!==P)throw new Error(`CodeGen: wrong number of nodes: ${x} vs ${P} expected`);return this._nodes.length=I,this}func(P,I=t.nil,x,H){return this._blockNode(new v(P,I,x)),H&&this.code(H).endFunc(),this}endFunc(){return this._endBlockNode(v)}optimize(P=1){for(;P-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(P){return this._currNode.nodes.push(P),this}_blockNode(P){this._currNode.nodes.push(P),this._nodes.push(P)}_endBlockNode(P,I){const x=this._currNode;if(x instanceof P||I&&x instanceof I)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${I?`${P.kind}/${I.kind}`:P.kind}"`)}_elseNode(P){const I=this._currNode;if(!(I instanceof T))throw new Error('CodeGen: "else" without "if"');return this._currNode=I.else=P,this}get _root(){return this._nodes[0]}get _currNode(){const P=this._nodes;return P[P.length-1]}set _currNode(P){const I=this._nodes;I[I.length-1]=P}}e.CodeGen=G;function J(C,P){for(const I in P)C[I]=(C[I]||0)+(P[I]||0);return C}function V(C,P){return P instanceof t._CodeOrName?J(C,P.names):C}function W(C,P,I){if(C instanceof t.Name)return x(C);if(!H(C))return C;return new t._Code(C._items.reduce((Y,Z)=>(Z instanceof t.Name&&(Z=x(Z)),Z instanceof t._Code?Y.push(...Z._items):Y.push(Z),Y),[]));function x(Y){const Z=I[Y.str];return Z===void 0||P[Y.str]!==1?Y:(delete P[Y.str],Z)}function H(Y){return Y instanceof t._Code&&Y._items.some(Z=>Z instanceof t.Name&&P[Z.str]===1&&I[Z.str]!==void 0)}}function ie(C,P){for(const I in P)C[I]=(C[I]||0)-(P[I]||0)}function ae(C){return typeof C=="boolean"||typeof C=="number"||C===null?!C:(0,t._)`!${z(C)}`}e.not=ae;const _e=N(e.operators.AND);function pe(...C){return C.reduce(_e)}e.and=pe;const le=N(e.operators.OR);function L(...C){return C.reduce(le)}e.or=L;function N(C){return(P,I)=>P===t.nil?I:I===t.nil?P:(0,t._)`${z(P)} ${C} ${z(I)}`}function z(C){return C instanceof t.Name?C:(0,t._)`(${C})`}})(ua)),ua}var Re={},kp;function Me(){if(kp)return Re;kp=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.checkStrictMode=Re.getErrorPath=Re.Type=Re.useFunc=Re.setEvaluated=Re.evaluatedPropsToName=Re.mergeEvaluated=Re.eachItem=Re.unescapeJsonPointer=Re.escapeJsonPointer=Re.escapeFragment=Re.unescapeFragment=Re.schemaRefOrVal=Re.schemaHasRulesButRef=Re.schemaHasRules=Re.checkUnknownRules=Re.alwaysValidSchema=Re.toHash=void 0;const e=Ie(),t=ps();function r(h){const v={};for(const O of h)v[O]=!0;return v}Re.toHash=r;function n(h,v){return typeof v=="boolean"?v:Object.keys(v).length===0?!0:(i(h,v),!o(v,h.self.RULES.all))}Re.alwaysValidSchema=n;function i(h,v=h.schema){const{opts:O,self:k}=h;if(!O.strictSchema||typeof v=="boolean")return;const D=k.RULES.keywords;for(const B in v)D[B]||S(h,`unknown keyword: "${B}"`)}Re.checkUnknownRules=i;function o(h,v){if(typeof h=="boolean")return!h;for(const O in h)if(v[O])return!0;return!1}Re.schemaHasRules=o;function s(h,v){if(typeof h=="boolean")return!h;for(const O in h)if(O!=="$ref"&&v.all[O])return!0;return!1}Re.schemaHasRulesButRef=s;function a({topSchemaRef:h,schemaPath:v},O,k,D){if(!D){if(typeof O=="number"||typeof O=="boolean")return O;if(typeof O=="string")return(0,e._)`${O}`}return(0,e._)`${h}${v}${(0,e.getProperty)(k)}`}Re.schemaRefOrVal=a;function c(h){return d(decodeURIComponent(h))}Re.unescapeFragment=c;function l(h){return encodeURIComponent(p(h))}Re.escapeFragment=l;function p(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Re.escapeJsonPointer=p;function d(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}Re.unescapeJsonPointer=d;function g(h,v){if(Array.isArray(h))for(const O of h)v(O);else v(h)}Re.eachItem=g;function m({mergeNames:h,mergeToName:v,mergeValues:O,resultToName:k}){return(D,B,G,J)=>{const V=G===void 0?B:G instanceof e.Name?(B instanceof e.Name?h(D,B,G):v(D,B,G),G):B instanceof e.Name?(v(D,G,B),B):O(B,G);return J===e.Name&&!(V instanceof e.Name)?k(D,V):V}}Re.mergeEvaluated={props:m({mergeNames:(h,v,O)=>h.if((0,e._)`${O} !== true && ${v} !== undefined`,()=>{h.if((0,e._)`${v} === true`,()=>h.assign(O,!0),()=>h.assign(O,(0,e._)`${O} || {}`).code((0,e._)`Object.assign(${O}, ${v})`))}),mergeToName:(h,v,O)=>h.if((0,e._)`${O} !== true`,()=>{v===!0?h.assign(O,!0):(h.assign(O,(0,e._)`${O} || {}`),_(h,O,v))}),mergeValues:(h,v)=>h===!0?!0:{...h,...v},resultToName:E}),items:m({mergeNames:(h,v,O)=>h.if((0,e._)`${O} !== true && ${v} !== undefined`,()=>h.assign(O,(0,e._)`${v} === true ? true : ${O} > ${v} ? ${O} : ${v}`)),mergeToName:(h,v,O)=>h.if((0,e._)`${O} !== true`,()=>h.assign(O,v===!0?!0:(0,e._)`${O} > ${v} ? ${O} : ${v}`)),mergeValues:(h,v)=>h===!0?!0:Math.max(h,v),resultToName:(h,v)=>h.var("items",v)})};function E(h,v){if(v===!0)return h.var("props",!0);const O=h.var("props",(0,e._)`{}`);return v!==void 0&&_(h,O,v),O}Re.evaluatedPropsToName=E;function _(h,v,O){Object.keys(O).forEach(k=>h.assign((0,e._)`${v}${(0,e.getProperty)(k)}`,!0))}Re.setEvaluated=_;const $={};function T(h,v){return h.scopeValue("func",{ref:v,code:$[v.code]||($[v.code]=new t._Code(v.code))})}Re.useFunc=T;var w;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(w||(Re.Type=w={}));function y(h,v,O){if(h instanceof e.Name){const k=v===w.Num;return O?k?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:k?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return O?(0,e.getProperty)(h).toString():"/"+p(h)}Re.getErrorPath=y;function S(h,v,O=h.opts.strictSchema){if(O){if(v=`strict mode: ${v}`,O===!0)throw new Error(v);h.self.logger.warn(v)}}return Re.checkStrictMode=S,Re}var Xi={},qp;function Ct(){if(qp)return Xi;qp=1,Object.defineProperty(Xi,"__esModule",{value:!0});const e=Ie(),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 Xi.default=t,Xi}var Cp;function Ds(){return Cp||(Cp=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=Ie(),r=Me(),n=Ct();e.keywordError={message:({keyword:$})=>(0,t.str)`must pass "${$}" keyword validation`},e.keyword$DataError={message:({keyword:$,schemaType:T})=>T?(0,t.str)`"${$}" keyword must be ${T} ($data)`:(0,t.str)`"${$}" keyword is invalid ($data)`};function i($,T=e.keywordError,w,y){const{it:S}=$,{gen:h,compositeRule:v,allErrors:O}=S,k=d($,T,w);y??(v||O)?c(h,k):l(S,(0,t._)`[${k}]`)}e.reportError=i;function o($,T=e.keywordError,w){const{it:y}=$,{gen:S,compositeRule:h,allErrors:v}=y,O=d($,T,w);c(S,O),h||v||l(y,n.default.vErrors)}e.reportExtraError=o;function s($,T){$.assign(n.default.errors,T),$.if((0,t._)`${n.default.vErrors} !== null`,()=>$.if(T,()=>$.assign((0,t._)`${n.default.vErrors}.length`,T),()=>$.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:$,keyword:T,schemaValue:w,data:y,errsCount:S,it:h}){if(S===void 0)throw new Error("ajv implementation error");const v=$.name("err");$.forRange("i",S,n.default.errors,O=>{$.const(v,(0,t._)`${n.default.vErrors}[${O}]`),$.if((0,t._)`${v}.instancePath === undefined`,()=>$.assign((0,t._)`${v}.instancePath`,(0,t.strConcat)(n.default.instancePath,h.errorPath))),$.assign((0,t._)`${v}.schemaPath`,(0,t.str)`${h.errSchemaPath}/${T}`),h.opts.verbose&&($.assign((0,t._)`${v}.schema`,w),$.assign((0,t._)`${v}.data`,y))})}e.extendErrors=a;function c($,T){const w=$.const("err",T);$.if((0,t._)`${n.default.vErrors} === null`,()=>$.assign(n.default.vErrors,(0,t._)`[${w}]`),(0,t._)`${n.default.vErrors}.push(${w})`),$.code((0,t._)`${n.default.errors}++`)}function l($,T){const{gen:w,validateName:y,schemaEnv:S}=$;S.$async?w.throw((0,t._)`new ${$.ValidationError}(${T})`):(w.assign((0,t._)`${y}.errors`,T),w.return(!1))}const p={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 d($,T,w){const{createErrors:y}=$.it;return y===!1?(0,t._)`{}`:g($,T,w)}function g($,T,w={}){const{gen:y,it:S}=$,h=[m(S,w),E($,w)];return _($,T,h),y.object(...h)}function m({errorPath:$},{instancePath:T}){const w=T?(0,t.str)`${$}${(0,r.getErrorPath)(T,r.Type.Str)}`:$;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,w)]}function E({keyword:$,it:{errSchemaPath:T}},{schemaPath:w,parentSchema:y}){let S=y?T:(0,t.str)`${T}/${$}`;return w&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(w,r.Type.Str)}`),[p.schemaPath,S]}function _($,{params:T,message:w},y){const{keyword:S,data:h,schemaValue:v,it:O}=$,{opts:k,propertyName:D,topSchemaRef:B,schemaPath:G}=O;y.push([p.keyword,S],[p.params,typeof T=="function"?T($):T||(0,t._)`{}`]),k.messages&&y.push([p.message,typeof w=="function"?w($):w]),k.verbose&&y.push([p.schema,v],[p.parentSchema,(0,t._)`${B}${G}`],[n.default.data,h]),D&&y.push([p.propertyName,D])}})(la)),la}var Dp;function gA(){if(Dp)return vr;Dp=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.boolOrEmptySchema=vr.topBoolOrEmptySchema=void 0;const e=Ds(),t=Ie(),r=Ct(),n={message:"boolean schema is false"};function i(a){const{gen:c,schema:l,validateName:p}=a;l===!1?s(a,!1):typeof l=="object"&&l.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${p}.errors`,null),c.return(!0))}vr.topBoolOrEmptySchema=i;function o(a,c){const{gen:l,schema:p}=a;p===!1?(l.var(c,!1),s(a)):l.var(c,!0)}vr.boolOrEmptySchema=o;function s(a,c){const{gen:l,data:p}=a,d={gen:l,keyword:"false schema",data:p,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(d,n,void 0,c)}return vr}var nt={},br={},jp;function $y(){if(jp)return br;jp=1,Object.defineProperty(br,"__esModule",{value:!0}),br.getRules=br.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)}br.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 br.getRules=n,br}var Qt={},Mp;function Ty(){if(Mp)return Qt;Mp=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 Lp;function ds(){if(Lp)return nt;Lp=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.reportTypeError=nt.checkDataTypes=nt.checkDataType=nt.coerceAndCheckDataType=nt.getJSONTypes=nt.getSchemaTypes=nt.DataType=void 0;const e=$y(),t=Ty(),r=Ds(),n=Ie(),i=Me();var o;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(o||(nt.DataType=o={}));function s(w){const y=a(w.type);if(y.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!y.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&y.push("null")}return y}nt.getSchemaTypes=s;function a(w){const y=Array.isArray(w)?w:w?[w]:[];if(y.every(e.isJSONType))return y;throw new Error("type must be JSONType or JSONType[]: "+y.join(","))}nt.getJSONTypes=a;function c(w,y){const{gen:S,data:h,opts:v}=w,O=p(y,v.coerceTypes),k=y.length>0&&!(O.length===0&&y.length===1&&(0,t.schemaHasRulesForType)(w,y[0]));if(k){const D=E(y,h,v.strictNumbers,o.Wrong);S.if(D,()=>{O.length?d(w,y,O):$(w)})}return k}nt.coerceAndCheckDataType=c;const l=new Set(["string","number","integer","boolean","null"]);function p(w,y){return y?w.filter(S=>l.has(S)||y==="array"&&S==="array"):[]}function d(w,y,S){const{gen:h,data:v,opts:O}=w,k=h.let("dataType",(0,n._)`typeof ${v}`),D=h.let("coerced",(0,n._)`undefined`);O.coerceTypes==="array"&&h.if((0,n._)`${k} == 'object' && Array.isArray(${v}) && ${v}.length == 1`,()=>h.assign(v,(0,n._)`${v}[0]`).assign(k,(0,n._)`typeof ${v}`).if(E(y,v,O.strictNumbers),()=>h.assign(D,v))),h.if((0,n._)`${D} !== undefined`);for(const G of S)(l.has(G)||G==="array"&&O.coerceTypes==="array")&&B(G);h.else(),$(w),h.endIf(),h.if((0,n._)`${D} !== undefined`,()=>{h.assign(v,D),g(w,D)});function B(G){switch(G){case"string":h.elseIf((0,n._)`${k} == "number" || ${k} == "boolean"`).assign(D,(0,n._)`"" + ${v}`).elseIf((0,n._)`${v} === null`).assign(D,(0,n._)`""`);return;case"number":h.elseIf((0,n._)`${k} == "boolean" || ${v} === null
|
|
76
|
+
|| (${k} == "string" && ${v} && ${v} == +${v})`).assign(D,(0,n._)`+${v}`);return;case"integer":h.elseIf((0,n._)`${k} === "boolean" || ${v} === null
|
|
77
|
+
|| (${k} === "string" && ${v} && ${v} == +${v} && !(${v} % 1))`).assign(D,(0,n._)`+${v}`);return;case"boolean":h.elseIf((0,n._)`${v} === "false" || ${v} === 0 || ${v} === null`).assign(D,!1).elseIf((0,n._)`${v} === "true" || ${v} === 1`).assign(D,!0);return;case"null":h.elseIf((0,n._)`${v} === "" || ${v} === 0 || ${v} === false`),h.assign(D,null);return;case"array":h.elseIf((0,n._)`${k} === "string" || ${k} === "number"
|
|
78
|
+
|| ${k} === "boolean" || ${v} === null`).assign(D,(0,n._)`[${v}]`)}}}function g({gen:w,parentData:y,parentDataProperty:S},h){w.if((0,n._)`${y} !== undefined`,()=>w.assign((0,n._)`${y}[${S}]`,h))}function m(w,y,S,h=o.Correct){const v=h===o.Correct?n.operators.EQ:n.operators.NEQ;let O;switch(w){case"null":return(0,n._)`${y} ${v} null`;case"array":O=(0,n._)`Array.isArray(${y})`;break;case"object":O=(0,n._)`${y} && typeof ${y} == "object" && !Array.isArray(${y})`;break;case"integer":O=k((0,n._)`!(${y} % 1) && !isNaN(${y})`);break;case"number":O=k();break;default:return(0,n._)`typeof ${y} ${v} ${w}`}return h===o.Correct?O:(0,n.not)(O);function k(D=n.nil){return(0,n.and)((0,n._)`typeof ${y} == "number"`,D,S?(0,n._)`isFinite(${y})`:n.nil)}}nt.checkDataType=m;function E(w,y,S,h){if(w.length===1)return m(w[0],y,S,h);let v;const O=(0,i.toHash)(w);if(O.array&&O.object){const k=(0,n._)`typeof ${y} != "object"`;v=O.null?k:(0,n._)`!${y} || ${k}`,delete O.null,delete O.array,delete O.object}else v=n.nil;O.number&&delete O.integer;for(const k in O)v=(0,n.and)(v,m(k,y,S,h));return v}nt.checkDataTypes=E;const _={message:({schema:w})=>`must be ${w}`,params:({schema:w,schemaValue:y})=>typeof w=="string"?(0,n._)`{type: ${w}}`:(0,n._)`{type: ${y}}`};function $(w){const y=T(w);(0,r.reportError)(y,_)}nt.reportTypeError=$;function T(w){const{gen:y,data:S,schema:h}=w,v=(0,i.schemaRefOrVal)(w,h,"type");return{gen:y,keyword:"type",data:S,schema:h.type,schemaCode:v,schemaValue:v,parentSchema:h,params:{},it:w}}return nt}var sn={},Up;function vA(){if(Up)return sn;Up=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.assignDefaults=void 0;const e=Ie(),t=Me();function r(i,o){const{properties:s,items:a}=i.schema;if(o==="object"&&s)for(const c in s)n(i,c,s[c].default);else o==="array"&&Array.isArray(a)&&a.forEach((c,l)=>n(i,l,c.default))}sn.assignDefaults=r;function n(i,o,s){const{gen:a,compositeRule:c,data:l,opts:p}=i;if(s===void 0)return;const d=(0,e._)`${l}${(0,e.getProperty)(o)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${d}`);return}let g=(0,e._)`${d} === undefined`;p.useDefaults==="empty"&&(g=(0,e._)`${g} || ${d} === null || ${d} === ""`),a.if(g,(0,e._)`${d} = ${(0,e.stringify)(s)}`)}return sn}var Pt={},Be={},an={},Fp;function Py(){if(Fp)return an;Fp=1,Object.defineProperty(an,"__esModule",{value:!0}),an.getSkipCondition=void 0;const e=Ie(),t=Ct();function r(n,i){var o;const s=(o=n.properties)===null||o===void 0?void 0:o[i];if(!s)return;const a=s.readOnly===!0,c=s.writeOnly===!0;if(!a&&!c)return;const l=[],p=(0,e._)`typeof ${t.default.this} == "object" && ${t.default.this} && ${t.default.this}.apiContext`;return a&&l.push((0,e._)`${p} === "request"`),c&&l.push((0,e._)`${p} === "response"`),(0,e.or)(...l)}return an.getSkipCondition=r,an}var Vp;function Dt(){if(Vp)return Be;Vp=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.validateUnion=Be.validateArray=Be.usePattern=Be.callValidateCode=Be.schemaProperties=Be.allSchemaProperties=Be.noPropertyInData=Be.propertyInData=Be.isOwnProperty=Be.hasPropFunc=Be.reportMissingProp=Be.checkMissingProp=Be.checkReportMissingProp=void 0;const e=Ie(),t=Me(),r=Ct(),n=Me(),i=Py();function o(y,S){const{gen:h,data:v,it:O}=y;h.if(d(h,v,S,O.opts.ownProperties),()=>{y.setParams({missingProperty:(0,e._)`${S}`},!0),y.error()})}Be.checkReportMissingProp=o;function s({gen:y,data:S,it:{opts:h},parentSchema:v},O,k){return(0,e.or)(...O.map(D=>{var B;return(0,e.and)((0,e.not)((B=(0,i.getSkipCondition)(v,D))!==null&&B!==void 0?B:(0,e._)`false`),d(y,S,D,h.ownProperties),(0,e._)`${k} = ${D}`)}))}Be.checkMissingProp=s;function a(y,S){y.setParams({missingProperty:S},!0),y.error()}Be.reportMissingProp=a;function c(y){return y.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Be.hasPropFunc=c;function l(y,S,h){return(0,e._)`${c(y)}.call(${S}, ${h})`}Be.isOwnProperty=l;function p(y,S,h,v){const O=(0,e._)`${S}${(0,e.getProperty)(h)} !== undefined`;return v?(0,e._)`${O} && ${l(y,S,h)}`:O}Be.propertyInData=p;function d(y,S,h,v){const O=(0,e._)`${S}${(0,e.getProperty)(h)} === undefined`;return v?(0,e.or)(O,(0,e.not)(l(y,S,h))):O}Be.noPropertyInData=d;function g(y){return y?Object.keys(y).filter(S=>S!=="__proto__"):[]}Be.allSchemaProperties=g;function m(y,S){return g(S).filter(h=>!(0,t.alwaysValidSchema)(y,S[h]))}Be.schemaProperties=m;function E({schemaCode:y,data:S,it:{gen:h,topSchemaRef:v,schemaPath:O,errorPath:k},it:D},B,G,J){const V=J?(0,e._)`${y}, ${S}, ${v}${O}`:S,W=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,k)],[r.default.parentData,D.parentData],[r.default.parentDataProperty,D.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,D.isAllOfVariant?1:0]];D.opts.dynamicRef&&W.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const ie=(0,e._)`${V}, ${h.object(...W)}`;return G!==e.nil?(0,e._)`${B}.call(${G}, ${ie})`:(0,e._)`${B}(${ie})`}Be.callValidateCode=E;const _=(0,e._)`new RegExp`;function $({gen:y,it:{opts:S}},h){const v=S.unicodeRegExp?"u":"",{regExp:O}=S.code,k=O(h,v);return y.scopeValue("pattern",{key:k.toString(),ref:k,code:(0,e._)`${O.code==="new RegExp"?_:(0,n.useFunc)(y,O)}(${h}, ${v})`})}Be.usePattern=$;function T(y){const{gen:S,data:h,keyword:v,it:O}=y,k=S.name("valid");if(O.allErrors){const B=S.let("valid",!0);return D(()=>S.assign(B,!1)),B}return S.var(k,!0),D(()=>S.break()),k;function D(B){const G=S.const("len",(0,e._)`${h}.length`);S.forRange("i",0,G,J=>{y.subschema({keyword:v,dataProp:J,dataPropType:t.Type.Num},k),S.if((0,e.not)(k),B)})}}Be.validateArray=T;function w(y){const{gen:S,schema:h,keyword:v,parentSchema:O,it:k}=y;if(!Array.isArray(h))throw new Error("ajv implementation error");if(k.opts.discriminator&&O.discriminator||h.some(J=>(0,t.alwaysValidSchema)(k,J))&&!k.opts.unevaluated)return;const B=S.let("valid",!1),G=S.name("_valid");S.block(()=>h.forEach((J,V)=>{const W=y.subschema({keyword:v,schemaProp:V,compositeRule:!0},G);S.assign(B,(0,e._)`${B} || ${G}`),y.mergeValidEvaluated(W,G)||S.if((0,e.not)(B))})),y.result(B,()=>y.reset(),()=>y.error(!0))}return Be.validateUnion=w,Be}var Bp;function bA(){if(Bp)return Pt;Bp=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.validateKeywordUsage=Pt.validSchemaType=Pt.funcKeywordCode=Pt.macroKeywordCode=void 0;const e=Ie(),t=Ct(),r=Dt(),n=Ds();function i(g,m){const{gen:E,keyword:_,schema:$,parentSchema:T,it:w}=g,y=m.macro.call(w.self,$,T,w),S=l(E,_,y);w.opts.validateSchema!==!1&&w.self.validateSchema(y,!0);const h=E.name("valid");g.subschema({schema:y,schemaPath:e.nil,errSchemaPath:`${w.errSchemaPath}/${_}`,topSchemaRef:S,compositeRule:!0},h),g.pass(h,()=>g.error(!0))}Pt.macroKeywordCode=i;function o(g,m){var E;const{gen:_,keyword:$,schema:T,parentSchema:w,$data:y,it:S}=g;c(S,m);const h=!y&&m.compile?m.compile.call(S.self,T,w,S):m.validate,v=l(_,$,h),O=_.let("valid");g.block$data(O,k),g.ok((E=m.valid)!==null&&E!==void 0?E:O);function k(){if(m.errors===!1)G(),m.modifying&&s(g),J(()=>g.error());else{const V=m.async?D():B();m.modifying&&s(g),J(()=>a(g,V))}}function D(){const V=_.let("ruleErrs",null);return _.try(()=>G((0,e._)`await `),W=>_.assign(O,!1).if((0,e._)`${W} instanceof ${S.ValidationError}`,()=>_.assign(V,(0,e._)`${W}.errors`),()=>_.throw(W))),V}function B(){const V=(0,e._)`${v}.errors`;return _.assign(V,null),G(e.nil),V}function G(V=m.async?(0,e._)`await `:e.nil){const W=S.opts.passContext?t.default.this:t.default.self,ie=!("compile"in m&&!y||m.schema===!1);_.assign(O,(0,e._)`${V}${(0,r.callValidateCode)(g,v,W,ie)}`,m.modifying)}function J(V){var W;_.if((0,e.not)((W=m.valid)!==null&&W!==void 0?W:O),V)}}Pt.funcKeywordCode=o;function s(g){const{gen:m,data:E,it:_}=g;m.if(_.parentData,()=>m.assign(E,(0,e._)`${_.parentData}[${_.parentDataProperty}]`))}function a(g,m){const{gen:E}=g;E.if((0,e._)`Array.isArray(${m})`,()=>{E.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${m} : ${t.default.vErrors}.concat(${m})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(g)},()=>g.error())}function c({schemaEnv:g},m){if(m.async&&!g.$async)throw new Error("async keyword in sync schema")}function l(g,m,E){if(E===void 0)throw new Error(`keyword "${m}" failed to compile`);return g.scopeValue("keyword",typeof E=="function"?{ref:E}:{ref:E,code:(0,e.stringify)(E)})}function p(g,m,E=!1){return!m.length||m.some(_=>_==="array"?Array.isArray(g):_==="object"?g&&typeof g=="object"&&!Array.isArray(g):typeof g==_||E&&typeof g>"u")}Pt.validSchemaType=p;function d({schema:g,opts:m,self:E,errSchemaPath:_},$,T){if(Array.isArray($.keyword)?!$.keyword.includes(T):$.keyword!==T)throw new Error("ajv implementation error");const w=$.dependencies;if(w?.some(y=>!Object.prototype.hasOwnProperty.call(g,y)))throw new Error(`parent schema must have dependencies of ${T}: ${w.join(",")}`);if($.validateSchema&&!$.validateSchema(g[T])){const S=`keyword "${T}" value is invalid at path "${_}": `+E.errorsText($.validateSchema.errors);if(m.validateSchema==="log")E.logger.error(S);else throw new Error(S)}}return Pt.validateKeywordUsage=d,Pt}var Jt={},zp;function wA(){if(zp)return Jt;zp=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.extendSubschemaMode=Jt.extendSubschemaData=Jt.getSubschema=void 0;const e=Ie(),t=Me();function r(o,{keyword:s,schemaProp:a,schema:c,schemaPath:l,errSchemaPath:p,topSchemaRef:d}){if(s!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const g=o.schema[s];return a===void 0?{schema:g,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${s}`}:{schema:g[a],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(a)}`,errSchemaPath:`${o.errSchemaPath}/${s}/${(0,t.escapeFragment)(a)}`}}if(c!==void 0){if(l===void 0||p===void 0||d===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:d,errSchemaPath:p}}throw new Error('either "keyword" or "schema" must be passed')}Jt.getSubschema=r;function n(o,s,{dataProp:a,dataPropType:c,data:l,dataTypes:p,propertyName:d}){if(l!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:g}=s;if(a!==void 0){const{errorPath:E,dataPathArr:_,opts:$}=s,T=g.let("data",(0,e._)`${s.data}${(0,e.getProperty)(a)}`,!0);m(T),o.errorPath=(0,e.str)`${E}${(0,t.getErrorPath)(a,c,$.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${a}`,o.dataPathArr=[..._,o.parentDataProperty]}if(l!==void 0){const E=l instanceof e.Name?l:g.let("data",l,!0);m(E),d!==void 0&&(o.propertyName=d)}p&&(o.dataTypes=p);function m(E){o.data=E,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,E]}}Jt.extendSubschemaData=n;function i(o,{jtdDiscriminator:s,jtdMetadata:a,compositeRule:c,createErrors:l,allErrors:p}){c!==void 0&&(o.compositeRule=c),l!==void 0&&(o.createErrors=l),p!==void 0&&(o.allErrors=p),o.jtdDiscriminator=s,o.jtdMetadata=a}return Jt.extendSubschemaMode=i,Jt}var ut={},Kp;function js(){if(Kp)return ut;Kp=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.getSchemaRefs=ut.resolveUrl=ut.normalizeId=ut._getFullPath=ut.getFullPath=ut.inlineRef=void 0;const e=Me(),t=se.requireFastDeepEqual(),r=Dm(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(_,$=!0){return typeof _=="boolean"?!0:$===!0?!s(_):$?a(_)<=$:!1}ut.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(_){for(const $ in _){if(o.has($))return!0;const T=_[$];if(Array.isArray(T)&&T.some(s)||typeof T=="object"&&s(T))return!0}return!1}function a(_){let $=0;for(const T in _){if(T==="$ref")return 1/0;if($++,!n.has(T)&&(typeof _[T]=="object"&&(0,e.eachItem)(_[T],w=>$+=a(w)),$===1/0))return 1/0}return $}function c(_,$="",T){T!==!1&&($=d($));const w=_.parse($);return l(_,w)}ut.getFullPath=c;function l(_,$){return _.serialize($).split("#")[0]+"#"}ut._getFullPath=l;const p=/#\/?$/;function d(_){return _?_.replace(p,""):""}ut.normalizeId=d;function g(_,$,T){return T=d(T),_.resolve($,T)}ut.resolveUrl=g;const m=/^[a-z_][-a-z0-9._]*$/i;function E(_,$){if(typeof _=="boolean")return{};const{schemaId:T,uriResolver:w}=this.opts,y=d(_[T]||$),S={"":y},h=c(w,y,!1),v={},O=new Set;return r(_,{allKeys:!0},(B,G,J,V)=>{if(V===void 0)return;const W=h+G;let ie=S[V];typeof B[T]=="string"&&(ie=ae.call(this,B[T])),_e.call(this,B.$anchor),_e.call(this,B.$dynamicAnchor),S[G]=ie;function ae(pe){const le=this.opts.uriResolver.resolve;if(pe=d(ie?le(ie,pe):pe),O.has(pe))throw D(pe);O.add(pe);let L=this.refs[pe];return typeof L=="string"&&(L=this.refs[L]),typeof L=="object"?k(B,L.schema,pe):pe!==d(W)&&(pe[0]==="#"?(k(B,v[pe],pe),v[pe]=B):this.refs[pe]=W),pe}function _e(pe){if(typeof pe=="string"){if(!m.test(pe))throw new Error(`invalid anchor "${pe}"`);ae.call(this,`#${pe}`)}}}),v;function k(B,G,J){if(G!==void 0&&!t(B,G))throw D(J)}function D(B){return new Error(`reference "${B}" resolves to more than one schema`)}}return ut.getSchemaRefs=E,ut}var Gp;function Ms(){if(Gp)return Yt;Gp=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.getData=Yt.KeywordCxt=Yt.validateFunctionCode=void 0;const e=gA(),t=ds(),r=Ty(),n=ds(),i=vA(),o=bA(),s=wA(),a=Ie(),c=Ct(),l=js(),p=Me(),d=Ds();function g(A){if(h(A)&&(O(A),S(A))){$(A);return}m(A,()=>(0,e.topBoolOrEmptySchema)(A))}Yt.validateFunctionCode=g;function m({gen:A,validateName:q,schema:K,schemaEnv:X,opts:ee},ue){ee.code.es5?A.func(q,(0,a._)`${c.default.data}, ${c.default.valCxt}`,X.$async,()=>{A.code((0,a._)`"use strict"; ${w(K,ee)}`),_(A,ee),A.code(ue)}):A.func(q,(0,a._)`${c.default.data}, ${E(ee)}`,X.$async,()=>A.code(w(K,ee)).code(ue))}function E(A){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${A.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}, ${c.default.isAllOfVariant} = 0}={}`}function _(A,q){A.if(c.default.valCxt,()=>{A.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),A.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),A.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),A.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),A.var(c.default.isAllOfVariant,(0,a._)`${c.default.valCxt}.${c.default.isAllOfVariant}`),q.dynamicRef&&A.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{A.var(c.default.instancePath,(0,a._)`""`),A.var(c.default.parentData,(0,a._)`undefined`),A.var(c.default.parentDataProperty,(0,a._)`undefined`),A.var(c.default.rootData,c.default.data),A.var(c.default.isAllOfVariant,(0,a._)`0`),q.dynamicRef&&A.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function $(A){const{schema:q,opts:K,gen:X}=A;m(A,()=>{K.$comment&&q.$comment&&V(A),B(A),X.let(c.default.vErrors,null),X.let(c.default.errors,0),K.unevaluated&&T(A),k(A),W(A)})}function T(A){const{gen:q,validateName:K}=A;A.evaluated=q.const("evaluated",(0,a._)`${K}.evaluated`),q.if((0,a._)`${A.evaluated}.dynamicProps`,()=>q.assign((0,a._)`${A.evaluated}.props`,(0,a._)`undefined`)),q.if((0,a._)`${A.evaluated}.dynamicItems`,()=>q.assign((0,a._)`${A.evaluated}.items`,(0,a._)`undefined`))}function w(A,q){const K=typeof A=="object"&&A[q.schemaId];return K&&(q.code.source||q.code.process)?(0,a._)`/*# sourceURL=${K} */`:a.nil}function y(A,q){if(h(A)&&(O(A),S(A))){v(A,q);return}(0,e.boolOrEmptySchema)(A,q)}function S({schema:A,self:q}){if(typeof A=="boolean")return!A;for(const K in A)if(q.RULES.all[K])return!0;return!1}function h(A){return typeof A.schema!="boolean"}function v(A,q){const{schema:K,gen:X,opts:ee}=A;ee.$comment&&K.$comment&&V(A),G(A),J(A);const ue=X.const("_errs",c.default.errors);k(A,ue),X.var(q,(0,a._)`${ue} === ${c.default.errors}`)}function O(A){(0,p.checkUnknownRules)(A),D(A)}function k(A,q){if(A.opts.jtd)return ae(A,[],!1,q);const K=(0,t.getSchemaTypes)(A.schema),X=(0,t.coerceAndCheckDataType)(A,K);ae(A,K,!X,q)}function D(A){const{schema:q,errSchemaPath:K,opts:X,self:ee}=A;q.$ref&&X.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(q,ee.RULES)&&ee.logger.warn(`$ref: keywords ignored in schema at path "${K}"`)}function B(A){const{schema:q,opts:K}=A;q.default!==void 0&&K.useDefaults&&K.strictSchema&&(0,p.checkStrictMode)(A,"default is ignored in the schema root")}function G(A){const q=A.schema[A.opts.schemaId];q&&(A.baseId=(0,l.resolveUrl)(A.opts.uriResolver,A.baseId,q))}function J(A){if(A.schema.$async&&!A.schemaEnv.$async)throw new Error("async schema in sync schema")}function V({gen:A,schemaEnv:q,schema:K,errSchemaPath:X,opts:ee}){const ue=K.$comment;if(ee.$comment===!0)A.code((0,a._)`${c.default.self}.logger.log(${ue})`);else if(typeof ee.$comment=="function"){const U=(0,a.str)`${X}/$comment`,te=A.scopeValue("root",{ref:q.root});A.code((0,a._)`${c.default.self}.opts.$comment(${ue}, ${U}, ${te}.schema)`)}}function W(A){const{gen:q,schemaEnv:K,validateName:X,ValidationError:ee,opts:ue}=A;K.$async?q.if((0,a._)`${c.default.errors} === 0`,()=>q.return(c.default.data),()=>q.throw((0,a._)`new ${ee}(${c.default.vErrors})`)):(q.assign((0,a._)`${X}.errors`,c.default.vErrors),ue.unevaluated&&ie(A),q.return((0,a._)`${c.default.errors} === 0`))}function ie({gen:A,evaluated:q,props:K,items:X}){K instanceof a.Name&&A.assign((0,a._)`${q}.props`,K),X instanceof a.Name&&A.assign((0,a._)`${q}.items`,X)}function ae(A,q,K,X){const{gen:ee,schema:ue,data:U,allErrors:te,opts:de,self:ne}=A,{RULES:re}=ne;if(ue.$ref&&(de.ignoreKeywordsWithRef||!(0,p.schemaHasRulesButRef)(ue,re))){ee.block(()=>H(A,"$ref",re.all.$ref.definition));return}de.jtd||pe(A,q),ee.block(()=>{for(const me of re.rules)he(me);he(re.post)});function he(me){(0,r.shouldUseGroup)(ue,me)&&(me.type?(ee.if((0,n.checkDataType)(me.type,U,de.strictNumbers)),_e(A,me),q.length===1&&q[0]===me.type&&K&&(ee.else(),(0,n.reportTypeError)(A)),ee.endIf()):_e(A,me),te||ee.if((0,a._)`${c.default.errors} === ${X||0}`))}}function _e(A,q){const{gen:K,schema:X,opts:{useDefaults:ee}}=A;ee&&(0,i.assignDefaults)(A,q.type),K.block(()=>{for(const U of q.rules)((0,r.shouldUseRule)(X,U)||ue(X,U))&&H(A,U.keyword,U.definition,q.type)});function ue(U,te){return!!(te.keyword==="unevaluatedProperties"&&(U.properties||U.patternProperties)&&!A.isAllOfVariant&&A.opts.defaultUnevaluatedProperties===!1)}}function pe(A,q){A.schemaEnv.meta||!A.opts.strictTypes||(le(A,q),A.opts.allowUnionTypes||L(A,q),N(A,A.dataTypes))}function le(A,q){if(q.length){if(!A.dataTypes.length){A.dataTypes=q;return}q.forEach(K=>{C(A.dataTypes,K)||I(A,`type "${K}" not allowed by context "${A.dataTypes.join(",")}"`)}),P(A,q)}}function L(A,q){q.length>1&&!(q.length===2&&q.includes("null"))&&I(A,"use allowUnionTypes to allow union type keyword")}function N(A,q){const K=A.self.RULES.all;for(const X in K){const ee=K[X];if(typeof ee=="object"&&(0,r.shouldUseRule)(A.schema,ee)){const{type:ue}=ee.definition;ue.length&&!ue.some(U=>z(q,U))&&I(A,`missing type "${ue.join(",")}" for keyword "${X}"`)}}}function z(A,q){return A.includes(q)||q==="number"&&A.includes("integer")}function C(A,q){return A.includes(q)||q==="integer"&&A.includes("number")}function P(A,q){const K=[];for(const X of A.dataTypes)C(q,X)?K.push(X):q.includes("integer")&&X==="number"&&K.push("integer");A.dataTypes=K}function I(A,q){const K=A.schemaEnv.baseId+A.errSchemaPath;q+=` at "${K}" (strictTypes)`,(0,p.checkStrictMode)(A,q,A.opts.strictTypes)}class x{constructor(q,K,X){if((0,o.validateKeywordUsage)(q,K,X),this.gen=q.gen,this.allErrors=q.allErrors,this.keyword=X,this.data=q.data,this.schema=q.schema[X],this.$data=K.$data&&q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(q,this.schema,X,this.$data),this.schemaType=K.schemaType,this.parentSchema=q.schema,this.params={},this.it=q,this.def=K,this.$data)this.schemaCode=q.gen.const("vSchema",oe(this.$data,q));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,K.schemaType,K.allowUndefined))throw new Error(`${X} value must be ${JSON.stringify(K.schemaType)}`);("code"in K?K.trackErrors:K.errors!==!1)&&(this.errsCount=q.gen.const("_errs",c.default.errors))}result(q,K,X){this.failResult((0,a.not)(q),K,X)}failResult(q,K,X){this.gen.if(q),X?X():this.error(),K?(this.gen.else(),K(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(q,K){this.failResult((0,a.not)(q),void 0,K)}fail(q){if(q===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(q),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(q){if(!this.$data)return this.fail(q);const{schemaCode:K}=this;this.fail((0,a._)`${K} !== undefined && (${(0,a.or)(this.invalid$data(),q)})`)}error(q,K,X){if(K){this.setParams(K),this._error(q,X),this.setParams({});return}this._error(q,X)}_error(q,K){(q?d.reportExtraError:d.reportError)(this,this.def.error,K)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(q){this.allErrors||this.gen.if(q)}setParams(q,K){K?Object.assign(this.params,q):this.params=q}block$data(q,K,X=a.nil){this.gen.block(()=>{this.check$data(q,X),K()})}check$data(q=a.nil,K=a.nil){if(!this.$data)return;const{gen:X,schemaCode:ee,schemaType:ue,def:U}=this;X.if((0,a.or)((0,a._)`${ee} === undefined`,K)),q!==a.nil&&X.assign(q,!0),(ue.length||U.validateSchema)&&(X.elseIf(this.invalid$data()),this.$dataError(),q!==a.nil&&X.assign(q,!1)),X.else()}invalid$data(){const{gen:q,schemaCode:K,schemaType:X,def:ee,it:ue}=this;return(0,a.or)(U(),te());function U(){if(X.length){if(!(K instanceof a.Name))throw new Error("ajv implementation error");const de=Array.isArray(X)?X:[X];return(0,a._)`${(0,n.checkDataTypes)(de,K,ue.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function te(){if(ee.validateSchema){const de=q.scopeValue("validate$data",{ref:ee.validateSchema});return(0,a._)`!${de}(${K})`}return a.nil}}subschema(q,K,X){const ee=(0,s.getSubschema)(this.it,q);(0,s.extendSubschemaData)(ee,this.it,q),(0,s.extendSubschemaMode)(ee,q);const ue={...this.it,...ee,items:void 0,props:void 0,isAllOfVariant:X};return y(ue,K),ue}mergeEvaluated(q,K){const{it:X,gen:ee}=this;X.opts.unevaluated&&(X.props!==!0&&q.props!==void 0&&(X.props=p.mergeEvaluated.props(ee,q.props,X.props,K)),X.items!==!0&&q.items!==void 0&&(X.items=p.mergeEvaluated.items(ee,q.items,X.items,K)))}mergeValidEvaluated(q,K){const{it:X,gen:ee}=this;if(X.opts.unevaluated&&(X.props!==!0||X.items!==!0))return ee.if(K,()=>this.mergeEvaluated(q,a.Name)),!0}}Yt.KeywordCxt=x;function H(A,q,K,X){const ee=new x(A,K,q);"code"in K?K.code(ee,X):ee.$data&&K.validate?(0,o.funcKeywordCode)(ee,K):"macro"in K?(0,o.macroKeywordCode)(ee,K):(K.compile||K.validate)&&(0,o.funcKeywordCode)(ee,K)}const Y=/^\/(?:[^~]|~0|~1)*$/,Z=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function oe(A,{dataLevel:q,dataNames:K,dataPathArr:X}){let ee,ue;if(A==="")return c.default.rootData;if(A[0]==="/"){if(!Y.test(A))throw new Error(`Invalid JSON-pointer: ${A}`);ee=A,ue=c.default.rootData}else{const ne=Z.exec(A);if(!ne)throw new Error(`Invalid JSON-pointer: ${A}`);const re=+ne[1];if(ee=ne[2],ee==="#"){if(re>=q)throw new Error(de("property/index",re));return X[q-re]}if(re>q)throw new Error(de("data",re));if(ue=K[q-re],!ee)return ue}let U=ue;const te=ee.split("/");for(const ne of te)ne&&(ue=(0,a._)`${ue}${(0,a.getProperty)((0,p.unescapeJsonPointer)(ne))}`,U=(0,a._)`${U} && ${ue}`);return U;function de(ne,re){return`Cannot access ${ne} ${re} levels up, current level is ${q}`}}return Yt.getData=oe,Yt}var Zi={},Hp;function Jc(){if(Hp)return Zi;Hp=1,Object.defineProperty(Zi,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Zi.default=e,Zi}var eo={},Yp;function Ls(){if(Yp)return eo;Yp=1,Object.defineProperty(eo,"__esModule",{value:!0});const e=js();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 eo.default=t,eo}var gt={},Qp;function Wc(){if(Qp)return gt;Qp=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.resolveSchema=gt.getCompilingSchema=gt.resolveRef=gt.compileSchema=gt.SchemaEnv=void 0;const e=Ie(),t=Jc(),r=Ct(),n=js(),i=Me(),o=Ms();class s{constructor(T){var w;this.refs={},this.dynamicAnchors={};let y;typeof T.schema=="object"&&(y=T.schema),this.schema=T.schema,this.schemaId=T.schemaId,this.root=T.root||this,this.baseId=(w=T.baseId)!==null&&w!==void 0?w:(0,n.normalizeId)(y?.[T.schemaId||"$id"]),this.schemaPath=T.schemaPath,this.localRefs=T.localRefs,this.meta=T.meta,this.$async=y?.$async,this.refs={}}}gt.SchemaEnv=s;function a($){const T=p.call(this,$);if(T)return T;const w=(0,n.getFullPath)(this.opts.uriResolver,$.root.baseId),{es5:y,lines:S}=this.opts.code,{ownProperties:h}=this.opts,v=new e.CodeGen(this.scope,{es5:y,lines:S,ownProperties:h});let O;$.$async&&(O=v.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const k=v.scopeName("validate");$.validateName=k;const D={gen:v,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:v.scopeValue("schema",this.opts.code.source===!0?{ref:$.schema,code:(0,e.stringify)($.schema)}:{ref:$.schema}),validateName:k,ValidationError:O,schema:$.schema,schemaEnv:$,rootId:w,baseId:$.baseId||w,schemaPath:e.nil,errSchemaPath:$.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let B;try{this._compilations.add($),(0,o.validateFunctionCode)(D),v.optimize(this.opts.code.optimize);const G=v.toString();B=`const visitedNodesForRef = new WeakMap(); ${v.scopeRefs(r.default.scope)}return ${G}`,this.opts.code.process&&(B=this.opts.code.process(B,$));const V=new Function(`${r.default.self}`,`${r.default.scope}`,B)(this,this.scope.get());if(this.scope.value(k,{ref:V}),V.errors=null,V.schema=$.schema,V.schemaEnv=$,$.$async&&(V.$async=!0),this.opts.code.source===!0&&(V.source={validateName:k,validateCode:G,scopeValues:v._values}),this.opts.unevaluated){const{props:W,items:ie}=D;V.evaluated={props:W instanceof e.Name?void 0:W,items:ie instanceof e.Name?void 0:ie,dynamicProps:W instanceof e.Name,dynamicItems:ie instanceof e.Name},V.source&&(V.source.evaluated=(0,e.stringify)(V.evaluated))}return $.validate=V,$}catch(G){throw delete $.validate,delete $.validateName,B&&this.logger.error("Error compiling schema, function code:",B),G}finally{this._compilations.delete($)}}gt.compileSchema=a;function c($,T,w){var y;const S=(0,n.resolveUrl)(this.opts.uriResolver,T,w),h=$.refs[S];if(h)return h;let v=g.call(this,$,S);if(v===void 0){const O=(y=$.localRefs)===null||y===void 0?void 0:y[S],{schemaId:k}=this.opts;O&&(v=new s({schema:O,schemaId:k,root:$,baseId:T}))}if(v===void 0&&this.opts.loadSchemaSync){const O=this.opts.loadSchemaSync(T,w,S);O&&!(this.refs[S]||this.schemas[S])&&(this.addSchema(O,S,void 0),v=g.call(this,$,S))}if(v!==void 0)return $.refs[S]=l.call(this,v)}gt.resolveRef=c;function l($){return(0,n.inlineRef)($.schema,this.opts.inlineRefs)?$.schema:$.validate?$:a.call(this,$)}function p($){for(const T of this._compilations)if(d(T,$))return T}gt.getCompilingSchema=p;function d($,T){return $.schema===T.schema&&$.root===T.root&&$.baseId===T.baseId}function g($,T){let w;for(;typeof(w=this.refs[T])=="string";)T=w;return w||this.schemas[T]||m.call(this,$,T)}function m($,T){const w=this.opts.uriResolver.parse(T),y=(0,n._getFullPath)(this.opts.uriResolver,w);let S=(0,n.getFullPath)(this.opts.uriResolver,$.baseId,void 0);if(Object.keys($.schema).length>0&&y===S)return _.call(this,w,$);const h=(0,n.normalizeId)(y),v=this.refs[h]||this.schemas[h];if(typeof v=="string"){const O=m.call(this,$,v);return typeof O?.schema!="object"?void 0:_.call(this,w,O)}if(typeof v?.schema=="object"){if(v.validate||a.call(this,v),h===(0,n.normalizeId)(T)){const{schema:O}=v,{schemaId:k}=this.opts,D=O[k];return D&&(S=(0,n.resolveUrl)(this.opts.uriResolver,S,D)),new s({schema:O,schemaId:k,root:$,baseId:S})}return _.call(this,w,v)}}gt.resolveSchema=m;const E=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _($,{baseId:T,schema:w,root:y}){var S;if(((S=$.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const O of $.fragment.slice(1).split("/")){if(typeof w=="boolean")return;const k=w[(0,i.unescapeFragment)(O)];if(k===void 0)return;w=k;const D=typeof w=="object"&&w[this.opts.schemaId];!E.has(O)&&D&&(T=(0,n.resolveUrl)(this.opts.uriResolver,T,D))}let h;if(typeof w!="boolean"&&w.$ref&&!(0,i.schemaHasRulesButRef)(w,this.RULES)){const O=(0,n.resolveUrl)(this.opts.uriResolver,T,w.$ref);h=m.call(this,y,O)}const{schemaId:v}=this.opts;if(h=h||new s({schema:w,schemaId:v,root:y,baseId:T}),h.schema!==h.root.schema)return h}return gt}const SA="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",_A="Meta-schema for $data reference (JSON AnySchema extension proposal)",EA="object",$A=["$data"],TA={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},PA=!1,OA={$id:SA,description:_A,type:EA,required:$A,properties:TA,additionalProperties:PA};var to={},Jp;function IA(){if(Jp)return to;Jp=1,Object.defineProperty(to,"__esModule",{value:!0});const e=Mm();return e.code='require("ajv/dist/runtime/uri").default',to.default=e,to}var Wp;function xA(){return Wp||(Wp=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=Ms();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ie();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=Jc(),i=Ls(),o=$y(),s=Wc(),a=Ie(),c=js(),l=ds(),p=Me(),d=OA,g=IA(),m=(L,N)=>new RegExp(L,N);m.code="new RegExp";const E=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],_=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),$={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."},T={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},w=200;function y(L){var N,z,C,P,I,x,H,Y,Z,oe,A,q,K,X,ee,ue,U,te,de,ne,re,he,me,ve,Ee;const je=L.strict,u=(N=L.code)===null||N===void 0?void 0:N.optimize,f=u===!0||u===void 0?1:u||0,b=(C=(z=L.code)===null||z===void 0?void 0:z.regExp)!==null&&C!==void 0?C:m,R=(P=L.uriResolver)!==null&&P!==void 0?P:g.default;return{strictSchema:(x=(I=L.strictSchema)!==null&&I!==void 0?I:je)!==null&&x!==void 0?x:!0,strictNumbers:(Y=(H=L.strictNumbers)!==null&&H!==void 0?H:je)!==null&&Y!==void 0?Y:!0,strictTypes:(oe=(Z=L.strictTypes)!==null&&Z!==void 0?Z:je)!==null&&oe!==void 0?oe:"log",strictTuples:(q=(A=L.strictTuples)!==null&&A!==void 0?A:je)!==null&&q!==void 0?q:"log",strictRequired:(X=(K=L.strictRequired)!==null&&K!==void 0?K:je)!==null&&X!==void 0?X:!1,code:L.code?{...L.code,optimize:f,regExp:b}:{optimize:f,regExp:b},loopRequired:(ee=L.loopRequired)!==null&&ee!==void 0?ee:w,loopEnum:(ue=L.loopEnum)!==null&&ue!==void 0?ue:w,meta:(U=L.meta)!==null&&U!==void 0?U:!0,messages:(te=L.messages)!==null&&te!==void 0?te:!0,inlineRefs:(de=L.inlineRefs)!==null&&de!==void 0?de:!0,schemaId:(ne=L.schemaId)!==null&&ne!==void 0?ne:"$id",addUsedSchema:(re=L.addUsedSchema)!==null&&re!==void 0?re:!0,validateSchema:(he=L.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(me=L.validateFormats)!==null&&me!==void 0?me:!0,unicodeRegExp:(ve=L.unicodeRegExp)!==null&&ve!==void 0?ve:!0,int32range:(Ee=L.int32range)!==null&&Ee!==void 0?Ee:!0,uriResolver:R}}class S{constructor(N={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts={...N,...y(N)};const{es5:z,lines:C}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:_,es5:z,lines:C}),this.logger=J(N.logger);const P=N.validateFormats;N.validateFormats=!1,this.RULES=(0,o.getRules)(),h.call(this,$,N,"NOT SUPPORTED"),h.call(this,T,N,"DEPRECATED","warn"),this._metaOpts=B.call(this),N.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&D.call(this,N.keywords),typeof N.meta=="object"&&this.addMetaSchema(N.meta),O.call(this),N.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:N,meta:z,schemaId:C}=this.opts;let P=d;C==="id"&&(P={...d},P.id=P.$id,delete P.$id),z&&N&&this.addMetaSchema(P,P[C],!1)}defaultMeta(){const{meta:N,schemaId:z}=this.opts;return this.opts.defaultMeta=typeof N=="object"?N[z]||N:void 0}setDefaultUnevaluatedProperties(N){this.opts.defaultUnevaluatedProperties=N}validate(N,z){let C;if(typeof N=="string"){if(C=this.getSchema(N),!C)throw new Error(`no schema with key or ref "${N}"`)}else C=this.compile(N);const P=C(z);return"$async"in C||(this.errors=C.errors),P}compile(N,z){const C=this._addSchema(N,z);return C.validate||this._compileSchemaEnv(C)}compileAsync(N,z){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:C}=this.opts;return P.call(this,N,z);async function P(oe,A){await I.call(this,oe.$schema);const q=this._addSchema(oe,A);return q.validate||x.call(this,q)}async function I(oe){oe&&!this.getSchema(oe)&&await P.call(this,{$ref:oe},!0)}async function x(oe){try{return this._compileSchemaEnv(oe)}catch(A){if(!(A instanceof i.default))throw A;return H.call(this,A),await Y.call(this,A.missingSchema),x.call(this,oe)}}function H({missingSchema:oe,missingRef:A}){if(this.refs[oe])throw new Error(`AnySchema ${oe} is loaded but ${A} cannot be resolved`)}async function Y(oe){const A=await Z.call(this,oe);this.refs[oe]||await I.call(this,A.$schema),this.refs[oe]||this.addSchema(A,oe,z)}async function Z(oe){const A=this._loading[oe];if(A)return A;try{return await(this._loading[oe]=C(oe))}finally{delete this._loading[oe]}}}addSchema(N,z,C,P=this.opts.validateSchema){if(Array.isArray(N)){for(const x of N)this.addSchema(x,void 0,C,P);return this}let I;if(typeof N=="object"){const{schemaId:x}=this.opts;if(I=N[x],I!==void 0&&typeof I!="string")throw new Error(`schema ${x} must be string`)}return z=(0,c.normalizeId)(z||I),this._checkUnique(z),this.schemas[z]=this._addSchema(N,C,z,P,!0),this}addMetaSchema(N,z,C=this.opts.validateSchema){return this.addSchema(N,z,!0,C),this}validateSchema(N,z){if(typeof N=="boolean")return!0;let C;if(C=N.$schema,C!==void 0&&typeof C!="string")throw new Error("$schema must be a string");if(C=C||this.opts.defaultMeta||this.defaultMeta(),!C)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(C,N);if(!P&&z){const I="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(I);else throw new Error(I)}return P}getSchema(N){let z;for(;typeof(z=v.call(this,N))=="string";)N=z;if(z===void 0){const{schemaId:C}=this.opts,P=new s.SchemaEnv({schema:{},schemaId:C});if(z=s.resolveSchema.call(this,P,N),!z)return;this.refs[N]=z}return z.validate||this._compileSchemaEnv(z)}removeSchema(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(typeof N){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const z=v.call(this,N);return typeof z=="object"&&this._cache.delete(z.schema),delete this.schemas[N],delete this.refs[N],this}case"object":{const z=N;this._cache.delete(z);let C=N[this.opts.schemaId];return C&&(C=(0,c.normalizeId)(C),delete this.schemas[C],delete this.refs[C]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(N){for(const z of N)this.addKeyword(z);return this}addKeyword(N,z){let C;if(typeof N=="string")C=N,typeof z=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),z.keyword=C);else if(typeof N=="object"&&z===void 0){if(z=N,C=z.keyword,Array.isArray(C)&&!C.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(W.call(this,C,z),!z)return(0,p.eachItem)(C,I=>ie.call(this,I)),this;_e.call(this,z);const P={...z,type:(0,l.getJSONTypes)(z.type),schemaType:(0,l.getJSONTypes)(z.schemaType)};return(0,p.eachItem)(C,P.type.length===0?I=>ie.call(this,I,P):I=>P.type.forEach(x=>ie.call(this,I,P,x))),this}getKeyword(N){const z=this.RULES.all[N];return typeof z=="object"?z.definition:!!z}removeKeyword(N){const{RULES:z}=this;delete z.keywords[N],delete z.all[N];for(const C of z.rules){const P=C.rules.findIndex(I=>I.keyword===N);P>=0&&C.rules.splice(P,1)}return this}addFormat(N,z){return typeof z=="string"&&(z=new RegExp(z)),this.formats[N]=z,this}errorsText(N=this.errors,{separator:z=", ",dataVar:C="data"}={}){return!N||N.length===0?"No errors":N.map(P=>`${C}${P.instancePath} ${P.message}`).reduce((P,I)=>P+z+I)}$dataMetaSchema(N,z){const C=this.RULES.all;N=JSON.parse(JSON.stringify(N));for(const P of z){const I=P.split("/").slice(1);let x=N;for(const H of I)x=x[H];for(const H in C){const Y=C[H];if(typeof Y!="object")continue;const{$data:Z}=Y.definition,oe=x[H];Z&&oe&&(x[H]=le(oe))}}return N}_removeAllSchemas(N,z){for(const C in N){const P=N[C];(!z||z.test(C))&&(typeof P=="string"?delete N[C]:P&&!P.meta&&(this._cache.delete(P.schema),delete N[C]))}}_addSchema(N,z,C,P=this.opts.validateSchema,I=this.opts.addUsedSchema){let x;const{schemaId:H}=this.opts;if(typeof N=="object")x=N[H];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof N!="boolean")throw new Error("schema must be object or boolean")}let Y=this._cache.get(N);if(Y!==void 0)return Y;C=(0,c.normalizeId)(x||C);const Z=c.getSchemaRefs.call(this,N,C);return Y=new s.SchemaEnv({schema:N,schemaId:H,meta:z,baseId:C,localRefs:Z}),this._cache.set(Y.schema,Y),I&&!C.startsWith("#")&&(C&&this._checkUnique(C),this.refs[C]=Y),P&&this.validateSchema(N,!0),Y}_checkUnique(N){if(this.schemas[N]||this.refs[N])throw new Error(`schema with key or id "${N}" already exists`)}_compileSchemaEnv(N){if(N.meta?this._compileMetaSchema(N):s.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}_compileMetaSchema(N){const z=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,N)}finally{this.opts=z}}}S.ValidationError=n.default,S.MissingRefError=i.default,e.default=S;function h(L,N,z,C="error"){for(const P in L){const I=P;I in N&&this.logger[C](`${z}: option ${P}. ${L[I]}`)}}function v(L){return L=(0,c.normalizeId)(L),this.schemas[L]||this.refs[L]}function O(){const L=this.opts.schemas;if(L)if(Array.isArray(L))this.addSchema(L);else for(const N in L)this.addSchema(L[N],N)}function k(){for(const L in this.opts.formats){const N=this.opts.formats[L];N&&this.addFormat(L,N)}}function D(L){if(Array.isArray(L)){this.addVocabulary(L);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const N in L){const z=L[N];z.keyword||(z.keyword=N),this.addKeyword(z)}}function B(){const L={...this.opts};for(const N of E)delete L[N];return L}const G={log(){},warn(){},error(){}};function J(L){if(L===!1)return G;if(L===void 0)return console;if(L.log&&L.warn&&L.error)return L;throw new Error("logger must implement log, warn and error methods")}const V=/^[a-z_$][a-z0-9_$:-]*$/i;function W(L,N){const{RULES:z}=this;if((0,p.eachItem)(L,C=>{if(z.keywords[C])throw new Error(`Keyword ${C} is already defined`);if(!V.test(C))throw new Error(`Keyword ${C} has invalid name`)}),!!N&&N.$data&&!("code"in N||"validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function ie(L,N,z){var C;const P=N?.post;if(z&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:I}=this;let x=P?I.post:I.rules.find(({type:Y})=>Y===z);if(x||(x={type:z,rules:[]},I.rules.push(x)),I.keywords[L]=!0,!N)return;const H={keyword:L,definition:{...N,type:(0,l.getJSONTypes)(N.type),schemaType:(0,l.getJSONTypes)(N.schemaType)}};N.before?ae.call(this,x,H,N.before):x.rules.push(H),I.all[L]=H,(C=N.implements)===null||C===void 0||C.forEach(Y=>this.addKeyword(Y))}function ae(L,N,z){const C=L.rules.findIndex(P=>P.keyword===z);C>=0?L.rules.splice(C,0,N):(L.rules.push(N),this.logger.warn(`rule ${z} is not defined`))}function _e(L){let{metaSchema:N}=L;N!==void 0&&(L.$data&&this.opts.$data&&(N=le(N)),L.validateSchema=this.compile(N,!0))}const pe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function le(L){return{anyOf:[L,pe]}}})(ca)),ca}var ro={},no={},io={},Xp;function RA(){if(Xp)return io;Xp=1,Object.defineProperty(io,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return io.default=e,io}var sr={},Zp;function AA(){if(Zp)return sr;Zp=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.callRef=sr.getValidate=void 0;const e=Ls(),t=Dt(),r=Ie(),n=Ct(),i=Wc(),o=Me(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:p,schema:d,it:g}=l,{baseId:m,schemaEnv:E,validateName:_,opts:$,self:T}=g,{root:w}=E;if((d==="#"||d==="#/")&&m===w.baseId)return S();const y=i.resolveRef.call(T,w,m,d);if(y===void 0)throw new e.default(g.opts.uriResolver,m,d);if(y instanceof i.SchemaEnv)return h(y);return v(y);function S(){if(E===w)return c(l,_,E,E.$async);const O=p.scopeValue("root",{ref:w});return c(l,(0,r._)`${O}.validate`,w,w.$async)}function h(O){const k=a(l,O);c(l,k,O,O.$async)}function v(O){const k=p.scopeValue("schema",$.code.source===!0?{ref:O,code:(0,r.stringify)(O)}:{ref:O}),D=p.name("valid"),B=l.subschema({schema:O,dataTypes:[],schemaPath:r.nil,topSchemaRef:k,errSchemaPath:d},D,g.isAllOfVariant);l.mergeEvaluated(B),l.ok(D)}}};function a(l,p){const{gen:d}=l;return p.validate?d.scopeValue("validate",{ref:p.validate}):(0,r._)`${d.scopeValue("wrapper",{ref:p})}.validate`}sr.getValidate=a;function c(l,p,d,g){const{gen:m,it:E}=l,{allErrors:_,schemaEnv:$,opts:T}=E,w=T.passContext?n.default.this:r.nil;g?y():S();function y(){if(!$.$async)throw new Error("async schema referenced by sync schema");const O=m.let("valid");m.try(()=>{m.code((0,r._)`await ${(0,t.callValidateCode)(l,p,w)}`),v(p),_||m.assign(O,!0)},k=>{m.if((0,r._)`!(${k} instanceof ${E.ValidationError})`,()=>m.throw(k)),h(k),_||m.assign(O,!1)}),l.ok(O)}function S(){const O=m.name("visitedNodes");m.code((0,r._)`const ${O} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${p}) || new Set()`),m.if((0,r._)`!${O}.has(${l.data})`,()=>{m.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${p}, ${O})`),m.code((0,r._)`const dataNode = ${l.data}`),m.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${O}.add(dataNode)`);const k=l.result((0,t.callValidateCode)(l,p,w),()=>v(p),()=>h(p));return m.code((0,r._)`${O}.delete(dataNode)`),k})}function h(O){const k=(0,r._)`${O}.errors`;m.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${k} : ${n.default.vErrors}.concat(${k})`),m.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function v(O){var k;if(!E.opts.unevaluated)return;const D=(k=d?.validate)===null||k===void 0?void 0:k.evaluated;if(E.props!==!0)if(D&&!D.dynamicProps)D.props!==void 0&&(E.props=o.mergeEvaluated.props(m,D.props,E.props));else{const B=m.var("props",(0,r._)`${O}.evaluated.props`);E.props=o.mergeEvaluated.props(m,B,E.props,r.Name)}if(E.items!==!0)if(D&&!D.dynamicItems)D.items!==void 0&&(E.items=o.mergeEvaluated.items(m,D.items,E.items));else{const B=m.var("items",(0,r._)`${O}.evaluated.items`);E.items=o.mergeEvaluated.items(m,B,E.items,r.Name)}}}return sr.callRef=c,sr.default=s,sr}var ed;function NA(){if(ed)return no;ed=1,Object.defineProperty(no,"__esModule",{value:!0});const e=RA(),t=AA(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return no.default=r,no}var oo={},so={},td;function kA(){if(td)return so;td=1,Object.defineProperty(so,"__esModule",{value:!0});const e=Ie(),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:a,schemaCode:c}=o;o.fail$data((0,e._)`${a} ${r[s].fail} ${c} || isNaN(${a})`)}};return so.default=i,so}var ao={},rd;function qA(){if(rd)return ao;rd=1,Object.defineProperty(ao,"__esModule",{value:!0});const e=Ie(),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:a}=n,c=a.opts.multipleOfPrecision,l=i.let("res"),p=c?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,e._)`${l} !== parseInt(${l})`;n.fail$data((0,e._)`(${s} === 0 || (${l} = ${o}/${s}, ${p}))`)}};return ao.default=r,ao}var co={},lo={},nd;function CA(){if(nd)return lo;nd=1,Object.defineProperty(lo,"__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 lo.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',lo}var id;function DA(){if(id)return co;id=1,Object.defineProperty(co,"__esModule",{value:!0});const e=Ie(),t=Me(),r=CA(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const a=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${s} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:a,schemaCode:c,it:l}=o,p=s==="maxLength"?e.operators.GT:e.operators.LT,d=l.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${a})`;o.fail$data((0,e._)`${d} ${p} ${c}`)}};return co.default=i,co}var uo={},od;function jA(){if(od)return uo;od=1,Object.defineProperty(uo,"__esModule",{value:!0});const e=Dt(),t=Me(),r=Ie(),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:a,$data:c,schema:l,schemaCode:p,it:d}=o,g=d.opts.unicodeRegExp?"u":"";if(c){const{regExp:m}=d.opts.code,E=m.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,m),_=s.let("valid");s.try(()=>s.assign(_,(0,r._)`${E}(${p}, ${g}).test(${a})`),()=>s.assign(_,!1)),o.fail$data((0,r._)`!${_}`)}else{const m=(0,e.usePattern)(o,l);o.fail$data((0,r._)`!${m}.test(${a})`)}}};return uo.default=i,uo}var po={},sd;function MA(){if(sd)return po;sd=1,Object.defineProperty(po,"__esModule",{value:!0});const e=Ie(),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,a=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${o}).length ${a} ${s}`)}};return po.default=r,po}var fo={},ad;function LA(){if(ad)return fo;ad=1,Object.defineProperty(fo,"__esModule",{value:!0});const e=Dt(),t=Py(),r=Ie(),n=Me(),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:a,schema:c,schemaCode:l,data:p,$data:d,it:g}=s,{opts:m}=g;if(!d&&c.length===0)return;const E=c.length>=m.loopRequired;if(g.allErrors?_():$(),m.strictRequired){const y=s.parentSchema.properties,{definedProperties:S}=s.it;for(const h of c)if(y?.[h]===void 0&&!S.has(h)){const v=g.schemaEnv.baseId+g.errSchemaPath,O=`required property "${h}" is not defined at "${v}" (strictRequired)`;(0,n.checkStrictMode)(g,O,g.opts.strictRequired)}}function _(){var y;if(E||d)s.block$data(r.nil,T);else for(const S of c){const h=(y=(0,t.getSkipCondition)(s.parentSchema,S))!==null&&y!==void 0?y:(0,r._)`false`;a.if((0,r.not)(h),()=>(0,e.checkReportMissingProp)(s,S))}}function $(){const y=a.let("missing");if(E||d){const S=a.let("valid",!0);s.block$data(S,()=>w(y,S)),s.ok(S)}else a.if((0,e.checkMissingProp)(s,c,y)),(0,e.reportMissingProp)(s,y),a.else()}function T(){a.forOf("prop",l,y=>{s.setParams({missingProperty:y}),a.if((0,e.noPropertyInData)(a,p,y,m.ownProperties),()=>s.error())})}function w(y,S){s.setParams({missingProperty:y}),a.forOf(y,l,()=>{a.assign(S,(0,e.propertyInData)(a,p,y,m.ownProperties)),a.if((0,r.not)(S),()=>{s.error(),a.break()})},r.nil)}}};return fo.default=o,fo}var mo={},cd;function UA(){if(cd)return mo;cd=1,Object.defineProperty(mo,"__esModule",{value:!0});const e=Ie(),t=Ct(),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 mo.default=n,mo}var ho={},ld;function FA(){if(ld)return ho;ld=1,Object.defineProperty(ho,"__esModule",{value:!0});const e=Ie(),t=Ct(),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 ho.default=n,ho}var yo={},ud;function VA(){if(ud)return yo;ud=1,Object.defineProperty(yo,"__esModule",{value:!0});const e=Ie(),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,a=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${o}.length ${a} ${s}`)}};return yo.default=r,yo}var go={},vo={},pd;function Xc(){if(pd)return vo;pd=1,Object.defineProperty(vo,"__esModule",{value:!0});const e=se.requireFastDeepEqual();return e.code='require("ajv/dist/runtime/equal").default',vo.default=e,vo}var dd;function BA(){if(dd)return go;dd=1,Object.defineProperty(go,"__esModule",{value:!0});const e=ds(),t=Ie(),r=Me(),n=Xc(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${s} are identical)`,params:({params:{i:s,j:a}})=>(0,t._)`{i: ${s}, j: ${a}}`},code(s){const{gen:a,data:c,$data:l,schema:p,parentSchema:d,schemaCode:g,it:m}=s;if(!l&&!p)return;const E=a.let("valid"),_=d.items?(0,e.getSchemaTypes)(d.items):[];s.block$data(E,$,(0,t._)`${g} === false`),s.ok(E);function $(){const S=a.let("i",(0,t._)`${c}.length`),h=a.let("j");s.setParams({i:S,j:h}),a.assign(E,!0),a.if((0,t._)`${S} > 1`,()=>(T()?w:y)(S,h))}function T(){return _.length>0&&!_.some(S=>S==="object"||S==="array")}function w(S,h){const v=a.name("item"),O=(0,e.checkDataTypes)(_,v,m.opts.strictNumbers,e.DataType.Wrong),k=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${S}--;`,()=>{a.let(v,(0,t._)`${c}[${S}]`),a.if(O,(0,t._)`continue`),_.length>1&&a.if((0,t._)`typeof ${v} == "string"`,(0,t._)`${v} += "_"`),a.if((0,t._)`typeof ${k}[${v}] == "number"`,()=>{a.assign(h,(0,t._)`${k}[${v}]`),s.error(),a.assign(E,!1).break()}).code((0,t._)`${k}[${v}] = ${S}`)})}function y(S,h){const v=(0,r.useFunc)(a,n.default),O=a.name("outer");a.label(O).for((0,t._)`;${S}--;`,()=>a.for((0,t._)`${h} = ${S}; ${h}--;`,()=>a.if((0,t._)`${v}(${c}[${S}], ${c}[${h}])`,()=>{s.error(),a.assign(E,!1).break(O)})))}}};return go.default=o,go}var bo={},fd;function zA(){if(fd)return bo;fd=1,Object.defineProperty(bo,"__esModule",{value:!0});const e=Ie(),t=Me(),r=Xc(),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:a,$data:c,schemaCode:l,schema:p}=o;c||p&&typeof p=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${a}, ${l})`):o.fail((0,e._)`${p} !== ${a}`)}};return bo.default=i,bo}var wo={},md;function KA(){if(md)return wo;md=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=Ie(),t=Me(),r=Xc(),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:a,$data:c,schema:l,schemaCode:p,it:d}=o;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const g=l.length>=d.opts.loopEnum;let m;const E=()=>m??(m=(0,t.useFunc)(s,r.default));let _;if(g||c)_=s.let("valid"),o.block$data(_,$);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const w=s.const("vSchema",p);_=(0,e.or)(...l.map((y,S)=>T(w,S)))}o.pass(_);function $(){s.assign(_,!1),s.forOf("v",p,w=>s.if((0,e._)`${E()}(${a}, ${w})`,()=>s.assign(_,!0).break()))}function T(w,y){const S=l[y];return typeof S=="object"&&S!==null?(0,e._)`${E()}(${a}, ${w}[${y}])`:(0,e._)`${a} === ${S}`}}};return wo.default=i,wo}var hd;function GA(){if(hd)return oo;hd=1,Object.defineProperty(oo,"__esModule",{value:!0});const e=kA(),t=qA(),r=DA(),n=jA(),i=MA(),o=LA(),s=UA(),a=FA(),c=VA(),l=BA(),p=zA(),d=KA(),g=[e.default,t.default,r.default,n.default,i.default,o.default,s.default,a.default,c.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},p.default,d.default];return oo.default=g,oo}var So={},Cr={},yd;function Oy(){if(yd)return Cr;yd=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.validateAdditionalItems=void 0;const e=Ie(),t=Me(),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:a}=o,{items:c}=s;if(!Array.isArray(c)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(o,c)}};function i(o,s){const{gen:a,schema:c,data:l,keyword:p,it:d}=o;d.items=!0;const g=a.const("len",(0,e._)`${l}.length`);if(c===!1)o.setParams({len:s.length}),o.pass((0,e._)`${g} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(d,c)){const E=a.var("valid",(0,e._)`${g} <= ${s.length}`);a.if((0,e.not)(E),()=>m(E)),o.ok(E)}function m(E){a.forRange("i",s.length,g,_=>{o.subschema({keyword:p,dataProp:_,dataPropType:t.Type.Num},E),d.allErrors||a.if((0,e.not)(E),()=>a.break())})}}return Cr.validateAdditionalItems=i,Cr.default=n,Cr}var _o={},Dr={},gd;function Iy(){if(gd)return Dr;gd=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.validateTuple=void 0;const e=Ie(),t=Me(),r=Dt(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:s,it:a}=o;if(Array.isArray(s))return i(o,"additionalItems",s);a.items=!0,!(0,t.alwaysValidSchema)(a,s)&&o.ok((0,r.validateArray)(o))}};function i(o,s,a=o.schema){const{gen:c,parentSchema:l,data:p,keyword:d,it:g}=o;_(l),g.opts.unevaluated&&a.length&&g.items!==!0&&(g.items=t.mergeEvaluated.items(c,a.length,g.items));const m=c.name("valid"),E=c.const("len",(0,e._)`${p}.length`);a.forEach(($,T)=>{(0,t.alwaysValidSchema)(g,$)||(c.if((0,e._)`${E} > ${T}`,()=>o.subschema({keyword:d,schemaProp:T,dataProp:T},m)),o.ok(m))});function _($){const{opts:T,errSchemaPath:w}=g,y=a.length,S=y===$.minItems&&(y===$.maxItems||$[s]===!1);if(T.strictTuples&&!S){const h=`"${d}" is ${y}-tuple, but minItems or maxItems/${s} are not specified or different at path "${w}"`;(0,t.checkStrictMode)(g,h,T.strictTuples)}}}return Dr.validateTuple=i,Dr.default=n,Dr}var vd;function HA(){if(vd)return _o;vd=1,Object.defineProperty(_o,"__esModule",{value:!0});const e=Iy(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return _o.default=t,_o}var Eo={},bd;function YA(){if(bd)return Eo;bd=1,Object.defineProperty(Eo,"__esModule",{value:!0});const e=Ie(),t=Me(),r=Dt(),n=Oy(),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:a,parentSchema:c,it:l}=s,{prefixItems:p}=c;l.items=!0,!(0,t.alwaysValidSchema)(l,a)&&(p?(0,n.validateAdditionalItems)(s,p):s.ok((0,r.validateArray)(s)))}};return Eo.default=o,Eo}var $o={},wd;function QA(){if(wd)return $o;wd=1,Object.defineProperty($o,"__esModule",{value:!0});const e=Ie(),t=Me(),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:a,data:c,it:l}=i;let p,d;const{minContains:g,maxContains:m}=a;l.opts.next?(p=g===void 0?1:g,d=m):p=1;const E=o.const("len",(0,e._)`${c}.length`);if(i.setParams({min:p,max:d}),d===void 0&&p===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(d!==void 0&&p>d){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,s)){let y=(0,e._)`${E} >= ${p}`;d!==void 0&&(y=(0,e._)`${y} && ${E} <= ${d}`),i.pass(y);return}l.items=!0;const _=o.name("valid");d===void 0&&p===1?T(_,()=>o.if(_,()=>o.break())):p===0?(o.let(_,!0),d!==void 0&&o.if((0,e._)`${c}.length > 0`,$)):(o.let(_,!1),$()),i.result(_,()=>i.reset());function $(){const y=o.name("_valid"),S=o.let("count",0);T(y,()=>o.if(y,()=>w(S)))}function T(y,S){o.forRange("i",0,E,h=>{i.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},y),S()})}function w(y){o.code((0,e._)`${y}++`),d===void 0?o.if((0,e._)`${y} >= ${p}`,()=>o.assign(_,!0).break()):(o.if((0,e._)`${y} > ${d}`,()=>o.assign(_,!1).break()),p===1?o.assign(_,!0):o.if((0,e._)`${y} >= ${p}`,()=>o.assign(_,!0)))}}};return $o.default=n,$o}var fa={},Sd;function JA(){return Sd||(Sd=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ie(),r=Me(),n=Dt();e.error={message:({params:{property:c,depsCount:l,deps:p}})=>{const d=l===1?"property":"properties";return(0,t.str)`must have ${d} ${p} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:p,missingProperty:d}})=>(0,t._)`{property: ${c},
|
|
79
|
+
missingProperty: ${d},
|
|
80
|
+
depsCount: ${l},
|
|
81
|
+
deps: ${p}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,p]=o(c);s(c,l),a(c,p)}};function o({schema:c}){const l={},p={};for(const d in c){if(d==="__proto__")continue;const g=Array.isArray(c[d])?l:p;g[d]=c[d]}return[l,p]}function s(c,l=c.schema){const{gen:p,data:d,it:g}=c;if(Object.keys(l).length===0)return;const m=p.let("missing");for(const E in l){const _=l[E];if(_.length===0)continue;const $=(0,n.propertyInData)(p,d,E,g.opts.ownProperties);c.setParams({property:E,depsCount:_.length,deps:_.join(", ")}),g.allErrors?p.if($,()=>{for(const T of _)(0,n.checkReportMissingProp)(c,T)}):(p.if((0,t._)`${$} && (${(0,n.checkMissingProp)(c,_,m)})`),(0,n.reportMissingProp)(c,m),p.else())}}e.validatePropertyDeps=s;function a(c,l=c.schema){const{gen:p,data:d,keyword:g,it:m}=c,E=p.name("valid");for(const _ in l)(0,r.alwaysValidSchema)(m,l[_])||(p.if((0,n.propertyInData)(p,d,_,m.opts.ownProperties),()=>{const $=c.subschema({keyword:g,schemaProp:_},E);c.mergeValidEvaluated($,E)},()=>p.var(E,!0)),c.ok(E))}e.validateSchemaDeps=a,e.default=i})(fa)),fa}var To={},_d;function WA(){if(_d)return To;_d=1,Object.defineProperty(To,"__esModule",{value:!0});const e=Ie(),t=Me(),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:a,it:c}=i;if((0,t.alwaysValidSchema)(c,s))return;const l=o.name("valid");o.forIn("key",a,p=>{i.setParams({propertyName:p}),i.subschema({keyword:"propertyNames",data:p,dataTypes:["string"],propertyName:p,compositeRule:!0},l),o.if((0,e.not)(l),()=>{i.error(!0),c.allErrors||o.break()})}),i.ok(l)}};return To.default=n,To}var Po={},Ed;function xy(){if(Ed)return Po;Ed=1,Object.defineProperty(Po,"__esModule",{value:!0});const e=Dt(),t=Ie(),r=Ct(),n=Me(),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:a,parentSchema:c,data:l,errsCount:p,it:d}=s,{schema:g=d.opts.defaultAdditionalProperties}=s;if(!p)throw new Error("ajv implementation error");const{allErrors:m,opts:E}=d;if(d.props=!0,E.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(d,g))return;const _=(0,e.allSchemaProperties)(c.properties),$=(0,e.allSchemaProperties)(c.patternProperties);T(),s.ok((0,t._)`${p} === ${r.default.errors}`);function T(){a.forIn("key",l,v=>{!_.length&&!$.length?S(v):a.if(w(v),()=>S(v))})}function w(v){let O;if(_.length>8){const k=(0,n.schemaRefOrVal)(d,c.properties,"properties");O=(0,e.isOwnProperty)(a,k,v)}else _.length?O=(0,t.or)(..._.map(k=>(0,t._)`${v} === ${k}`)):O=t.nil;return $.length&&(O=(0,t.or)(O,...$.map(k=>(0,t._)`${(0,e.usePattern)(s,k)}.test(${v})`))),(0,t.not)(O)}function y(v){a.code((0,t._)`delete ${l}[${v}]`)}function S(v){if(E.removeAdditional==="all"||E.removeAdditional&&g===!1){y(v);return}if(g===!1){s.setParams({additionalProperty:v}),s.error(),m||a.break();return}if(typeof g=="object"&&!(0,n.alwaysValidSchema)(d,g)){const O=a.name("valid");E.removeAdditional==="failing"?(h(v,O,!1),a.if((0,t.not)(O),()=>{s.reset(),y(v)})):(h(v,O),m||a.if((0,t.not)(O),()=>a.break()))}}function h(v,O,k){const D={keyword:"additionalProperties",dataProp:v,dataPropType:n.Type.Str};k===!1&&Object.assign(D,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(D,O)}}};return Po.default=o,Po}var Oo={},$d;function XA(){if($d)return Oo;$d=1,Object.defineProperty(Oo,"__esModule",{value:!0});const e=Ms(),t=Dt(),r=Me(),n=xy(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,parentSchema:c,data:l,it:p}=o;(p.opts.removeAdditional==="all"&&c.additionalProperties===void 0||p.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(p,n.default,"additionalProperties"));const d=(0,t.allSchemaProperties)(a);for(const $ of d)p.definedProperties.add($);p.opts.unevaluated&&d.length&&p.props!==!0&&(p.props=r.mergeEvaluated.props(s,(0,r.toHash)(d),p.props));const g=d.filter($=>!(0,r.alwaysValidSchema)(p,a[$]));if(g.length===0)return;const m=s.name("valid");for(const $ of g)E($)?_($):(s.if((0,t.propertyInData)(s,l,$,p.opts.ownProperties)),_($),p.allErrors||s.else().var(m,!0),s.endIf()),o.it.definedProperties.add($),o.ok(m);function E($){return p.opts.useDefaults&&!p.compositeRule&&a[$].default!==void 0}function _($){o.subschema({keyword:"properties",schemaProp:$,dataProp:$},m)}}};return Oo.default=i,Oo}var Io={},Td;function ZA(){if(Td)return Io;Td=1,Object.defineProperty(Io,"__esModule",{value:!0});const e=Dt(),t=Ie(),r=Me(),n=Me(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,data:c,parentSchema:l,it:p}=o,{opts:d}=p,g=(0,e.allSchemaProperties)(a),m=g.filter(S=>(0,r.alwaysValidSchema)(p,a[S]));if(g.length===0||m.length===g.length&&(!p.opts.unevaluated||p.props===!0))return;const E=d.strictSchema&&!d.allowMatchingProperties&&l.properties,_=s.name("valid");p.props!==!0&&!(p.props instanceof t.Name)&&(p.props=(0,n.evaluatedPropsToName)(s,p.props));const{props:$}=p;T();function T(){for(const S of g)E&&w(S),p.allErrors?y(S):(s.var(_,!0),y(S),s.if(_))}function w(S){for(const h in E)new RegExp(S).test(h)&&(0,r.checkStrictMode)(p,`property ${h} matches pattern ${S} (use allowMatchingProperties)`)}function y(S){s.forIn("key",c,h=>{s.if((0,t._)`${(0,e.usePattern)(o,S)}.test(${h})`,()=>{const v=m.includes(S);v||o.subschema({keyword:"patternProperties",schemaProp:S,dataProp:h,dataPropType:n.Type.Str},_),p.opts.unevaluated&&$!==!0?s.assign((0,t._)`${$}[${h}]`,!0):!v&&!p.allErrors&&s.if((0,t.not)(_),()=>s.break())})})}}};return Io.default=i,Io}var xo={},Pd;function eN(){if(Pd)return xo;Pd=1,Object.defineProperty(xo,"__esModule",{value:!0});const e=Me(),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 xo.default=t,xo}var Ro={},Od;function tN(){if(Od)return Ro;Od=1,Object.defineProperty(Ro,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dt().validateUnion,error:{message:"must match a schema in anyOf"}};return Ro.default=t,Ro}var Ao={},Id;function rN(){if(Id)return Ao;Id=1,Object.defineProperty(Ao,"__esModule",{value:!0});const e=Ie(),t=Me(),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:a,it:c}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const l=s,p=o.let("valid",!1),d=o.let("passing",null),g=o.name("_valid");i.setParams({passing:d}),o.block(m),i.result(p,()=>i.reset(),()=>i.error(!0));function m(){l.forEach((E,_)=>{let $;(0,t.alwaysValidSchema)(c,E)?o.var(g,!0):$=i.subschema({keyword:"oneOf",schemaProp:_,compositeRule:!0},g),_>0&&o.if((0,e._)`${g} && ${p}`).assign(p,!1).assign(d,(0,e._)`[${d}, ${_}]`).else(),o.if(g,()=>{o.assign(p,!0),o.assign(d,_),$&&i.mergeEvaluated($,e.Name)})})}}};return Ao.default=n,Ao}var No={},xd;function nN(){if(xd)return No;xd=1,Object.defineProperty(No,"__esModule",{value:!0});const e=Me(),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((a,c)=>{if((0,e.alwaysValidSchema)(o,a))return;const l=r.subschema({keyword:"allOf",schemaProp:c},s,!0);r.ok(s),r.mergeEvaluated(l)})}};return No.default=t,No}var ko={},Rd;function iN(){if(Rd)return ko;Rd=1,Object.defineProperty(ko,"__esModule",{value:!0});const e=Ie(),t=Me(),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:a,it:c}=o;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const l=i(c,"then"),p=i(c,"else");if(!l&&!p)return;const d=s.let("valid",!0),g=s.name("_valid");if(m(),o.reset(),l&&p){const _=s.let("ifClause");o.setParams({ifClause:_}),s.if(g,E("then",_),E("else",_))}else l?s.if(g,E("then")):s.if((0,e.not)(g),E("else"));o.pass(d,()=>o.error(!0));function m(){const _=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);o.mergeEvaluated(_)}function E(_,$){return()=>{const T=o.subschema({keyword:_},g);s.assign(d,g),o.mergeValidEvaluated(T,d),$?s.assign($,(0,e._)`${_}`):o.setParams({ifClause:_})}}}};function i(o,s){const a=o.schema[s];return a!==void 0&&!(0,t.alwaysValidSchema)(o,a)}return ko.default=n,ko}var qo={},Ad;function oN(){if(Ad)return qo;Ad=1,Object.defineProperty(qo,"__esModule",{value:!0});const e=Me(),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 qo.default=t,qo}var Nd;function sN(){if(Nd)return So;Nd=1,Object.defineProperty(So,"__esModule",{value:!0});const e=Oy(),t=HA(),r=Iy(),n=YA(),i=QA(),o=JA(),s=WA(),a=xy(),c=XA(),l=ZA(),p=eN(),d=tN(),g=rN(),m=nN(),E=iN(),_=oN();function $(T=!1){const w=[p.default,d.default,g.default,m.default,E.default,_.default,s.default,a.default,o.default,c.default,l.default];return T?w.push(t.default,n.default):w.push(e.default,r.default),w.push(i.default),w}return So.default=$,So}var Co={},Do={},kd;function aN(){if(kd)return Do;kd=1,Object.defineProperty(Do,"__esModule",{value:!0});const e=Ie(),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:a,schema:c,schemaCode:l,it:p}=n,{opts:d,errSchemaPath:g,schemaEnv:m,self:E}=p;if(!d.validateFormats)return;a?_():$();function _(){const T=o.scopeValue("formats",{ref:E.formats,code:d.code.formats}),w=o.const("fDef",(0,e._)`${T}[${l}]`),y=o.let("fType"),S=o.let("format");o.if((0,e._)`typeof ${w} == "object" && !(${w} instanceof RegExp)`,()=>o.assign(y,(0,e._)`${w}.type || "string"`).assign(S,(0,e._)`${w}.validate`),()=>o.assign(y,(0,e._)`"string"`).assign(S,w)),n.fail$data((0,e.or)(h(),v()));function h(){return d.strictSchema===!1?e.nil:(0,e._)`${l} && !${S}`}function v(){const O=m.$async?(0,e._)`(${w}.async ? await ${S}(${s}) : ${S}(${s}))`:(0,e._)`${S}(${s})`,k=(0,e._)`(typeof ${S} == "function" ? ${O} : ${S}.test(${s}))`;return(0,e._)`${S} && ${S} !== true && ${y} === ${i} && !${k}`}}function $(){const T=E.formats[c];if(!T){h();return}if(T===!0)return;const[w,y,S]=v(T);w===i&&n.pass(O());function h(){if(d.strictSchema===!1){E.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${c}" ignored in schema at path "${g}"`}}function v(k){const D=k instanceof RegExp?(0,e.regexpCode)(k):d.code.formats?(0,e._)`${d.code.formats}${(0,e.getProperty)(c)}`:void 0,B=o.scopeValue("formats",{key:c,ref:k,code:D});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,e._)`${B}.validate`]:["string",k,B]}function O(){if(typeof T=="object"&&!(T instanceof RegExp)&&T.async){if(!m.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${s})`}return typeof y=="function"?(0,e._)`${S}(${s})`:(0,e._)`${S}.test(${s})`}}}};return Do.default=r,Do}var qd;function cN(){if(qd)return Co;qd=1,Object.defineProperty(Co,"__esModule",{value:!0});const t=[aN().default];return Co.default=t,Co}var wr={},Cd;function lN(){return Cd||(Cd=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.contentVocabulary=wr.metadataVocabulary=void 0,wr.metadataVocabulary=["title","description","default","deprecated","examples"],wr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),wr}var Dd;function uN(){if(Dd)return ro;Dd=1,Object.defineProperty(ro,"__esModule",{value:!0});const e=NA(),t=GA(),r=sN(),n=cN(),i=lN(),o=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return ro.default=o,ro}var jo={},cn={},jd;function pN(){if(jd)return cn;jd=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(cn.DiscrError=e={})),cn}var Md;function dN(){if(Md)return jo;Md=1,Object.defineProperty(jo,"__esModule",{value:!0});const e=Ie(),t=pN(),r=Wc(),n=Ls(),i=Me(),o={message:({params:{discrError:c,tagName:l}})=>c===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf or anyOf`,params:({params:{discrError:c,tag:l,tagName:p}})=>(0,e._)`{error: ${c}, tag: ${p}, tagValue: ${l}}`};function s(c,l){var p;if(!(!c.allOf||!Array.isArray(c.allOf))){for(const d of c.allOf)if(!((p=d?.properties)===null||p===void 0)&&p[l])return d.properties[l]}}const a={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(c){const{gen:l,data:p,schema:d,parentSchema:g,it:m}=c,E=g.oneOf?"oneOf":g.anyOf?"anyOf":void 0;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const _=d.propertyName;if(typeof _!="string")throw new Error("discriminator: requires propertyName");if(!E)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const $=g[E],T=l.let("valid",!1),w=l.const("tag",(0,e._)`${p}${(0,e.getProperty)(_)}`);l.if((0,e._)`typeof ${w} == "string"`,()=>y(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:w,tagName:_})),c.ok(T);function y(){const v=h();l.if(!1);for(const O in v)l.elseIf((0,e._)`${w} === ${O}`),l.assign(T,S(v[O]));l.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:w,tagName:_}),l.endIf()}function S(v){const O=l.name("valid"),k=c.subschema({keyword:E,schemaProp:v},O);return c.mergeEvaluated(k,e.Name),O}function h(){var v;const O={},k=B(g);let D=!0;for(let V=0;V<$.length;V++){let W=$[V];const ie=W?.$ref;if(ie&&d.mapping){const{mapping:_e}=d,pe=Object.keys(_e).filter(le=>_e[le]===W.$ref);if(pe.length){for(const le of pe)J(le,V);continue}}if(ie&&!(0,i.schemaHasRulesButRef)(W,m.self.RULES)&&(W=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,ie),W instanceof r.SchemaEnv&&(W=W.schema),W===void 0))throw new n.default(m.opts.uriResolver,m.baseId,ie);let ae=(v=W?.properties)===null||v===void 0?void 0:v[_];if(!ae&&W?.allOf&&(ae=s(W,_)),typeof ae!="object")throw new Error(`discriminator: ${E} subschemas (or referenced schemas) must have "properties/${_}" or match mapping`);D=D&&(k||B(W)),G(ae,V)}if(!D)throw new Error(`discriminator: "${_}" must be required`);return O;function B(V){if(Array.isArray(V.required)&&V.required.includes(_))return!0;if(V.allOf&&Array.isArray(V.allOf))for(const W of V.allOf){const ie=W;if(Array.isArray(ie.required)&&ie.required.includes(_))return!0}return!1}function G(V,W){if(V.const)J(V.const,W);else if(V.enum)for(const ie of V.enum)J(ie,W);else throw new Error(`discriminator: "properties/${_}" must have "const" or "enum"`)}function J(V,W){if(typeof V!="string"||V in O)throw new Error(`discriminator: "${_}" values must be unique strings`);O[V]=W}}}};return jo.default=a,jo}const fN="http://json-schema.org/draft-07/schema#",mN="http://json-schema.org/draft-07/schema#",hN="Core schema meta-schema",yN={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:[]}},gN=["object","boolean"],vN={$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:"#"}},bN={$schema:fN,$id:mN,title:hN,definitions:yN,type:gN,properties:vN,default:!0};var Ld;function wN(){return Ld||(Ld=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=xA(),n=uN(),i=dN(),o=bN,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(E=>this.addVocabulary(E)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const E=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(E,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=Ms();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var p=Ie();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var d=Jc();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var g=Ls();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(Wi,Wi.exports)),Wi.exports}var Ud;function SN(){return Ud||(Ud=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=wN(),r=Ie(),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:a,schemaCode:c})=>(0,r.str)`should be ${i[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>(0,r._)`{comparison: ${i[a].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(a){const{gen:c,data:l,schemaCode:p,keyword:d,it:g}=a,{opts:m,self:E}=g;if(!m.validateFormats)return;const _=new t.KeywordCxt(g,E.RULES.all.format.definition,"format");_.$data?$():T();function $(){const y=c.scopeValue("formats",{ref:E.formats,code:m.code.formats}),S=c.const("fmt",(0,r._)`${y}[${_.schemaCode}]`);a.fail$data((0,r.or)((0,r._)`typeof ${S} != "object"`,(0,r._)`${S} instanceof RegExp`,(0,r._)`typeof ${S}.compare != "function"`,w(S)))}function T(){const y=_.schema,S=E.formats[y];if(!S||S===!0)return;if(typeof S!="object"||S instanceof RegExp||typeof S.compare!="function")throw new Error(`"${d}": format "${y}" does not define "compare" function`);const h=c.scopeValue("formats",{key:y,ref:S,code:m.code.formats?(0,r._)`${m.code.formats}${(0,r.getProperty)(y)}`:void 0});a.fail$data(w(h))}function w(y){return(0,r._)`${y}.compare(${l}, ${p}) ${i[d].fail} 0`}},dependencies:["format"]};const s=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=s})(aa)),aa}var Fd;function _N(){return Fd||(Fd=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=yA(),n=SN(),i=Ie(),o=new i.Name("fullFormats"),s=new i.Name("fastFormats"),a=(l,p={keywords:!0})=>{if(Array.isArray(p))return c(l,p,r.fullFormats,o),l;const[d,g]=p.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,o],m=p.formats||r.formatNames;return c(l,m,d,g),p.keywords&&(0,n.default)(l),l};a.get=(l,p="full")=>{const g=(p==="fast"?r.fastFormats:r.fullFormats)[l];if(!g)throw new Error(`Unknown format "${l}"`);return g};function c(l,p,d,g){var m,E;(m=(E=l.opts.code).formats)!==null&&m!==void 0||(E.formats=(0,i._)`require("ajv-formats/dist/formats").${g}`);for(const _ of p)l.addFormat(_,d[_])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(Ji,Ji.exports)),Ji.exports}var EN=_N();const $N=se.getDefaultExportFromCjs(EN);function Vd(e){return e==="draft4"?"id":"$id"}function TN(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class Zc{instances={};validate(t,r,n){const{schemaLoc:i,instancePath:o,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:l}=n,p=TN(l),d=this.getValidator(r,i,s,a,p);if(!d)return{valid:!0,errors:[]};const g={instancePath:o,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!d.call(c??{},t,g),errors:(d.errors||[]).map(E)};function E(_){let $=_.message;const T=_.keyword==="enum"?_.params.allowedValues:void 0;T&&($+=` ${T.map(S=>`"${S}"`).join(", ")}`),_.keyword==="type"&&($=`type ${$}`);const w=_.instancePath.substring(o.length+1),y=w.substring(w.lastIndexOf("/")+1);if(y&&($=`\`${y}\` property ${$}`),_.keyword==="additionalProperties"||_.keyword==="unevaluatedProperties"){const S=_.params.additionalProperty||_.params.unevaluatedProperty;$=`${$} \`${S}\``,_.instancePath+="/"+M.escapePointerFragment(S)}return{..._,message:$,suggest:T}}}getAjv(t,r){if(!this.instances[r]){const n=Vd(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,a){const c=decodeURI(o.split("#")[0]),l=t({$ref:s},c);return!l||!l.location?!1:{[n]:encodeURI(l.location.source.absoluteRef)+"#"+a,...l.node}}};this.instances[r]=r==="2020"?new Oc(i):new hA(i),$N(this.instances[r])}return this.instances[r]}getValidator(t,r,n,i,o){const s=this.getAjv(n,o),a=encodeURI(r.absolutePointer),c=Vd(o);return s.getSchema(a)||(s.setDefaultUnevaluatedProperties(i),s.addSchema({[c]:a,...t},a)),s.getSchema(a)}}const Ry=e=>{const t=new Zc;return{Parameter:{leave(r,n){if(tr(r.example)&&bn({example:r.example,schema:r.schema,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"}),se.isPlainObject(r.examples))for(const[i,o]of Object.entries(r.examples)){const s=Ph(o);s&&bn({example:s.value,schema:r.schema,options:{location:n.location.child(["examples",i,s.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}},Ay=e=>{const t=new Zc;return{Schema:{leave(r,n){const i=r.examples;if(Array.isArray(i))for(const o of i)bn({example:o,schema:r,options:{location:n.location.child(["examples",i.indexOf(o)]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"});if(tr(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;bn({example:r.example,schema:r,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"})}}}}},Ny=()=>({PathItem(e,{report:t,key:r,rawLocation:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-path-trailing-slash"})}}),ky=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});ss({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;const n=Object.keys(t||{});ss({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}}}),qy=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});ss({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;const n=Object.keys(t||{});ss({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}}),Cy=()=>({Operation(e,t){Qr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}}),Dy=()=>{const e=new Set;return{Operation(t,{report:r,location:n}){t.operationId&&(e.has(t.operationId)&&r({message:"Every operation must have a unique `operationId`.",location:n.child([t.operationId]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-unique"}),e.add(t.operationId))}}},PN=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,jy=()=>({Operation(e,{report:t,location:r}){e.operationId&&!PN.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:r.child(["operationId"]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-url-safe"})}}),My=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:i,parentLocations:o}){const s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
|
|
82
|
+
Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:o.PathItem.child(["parameters",i]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),e.add(`${r.in}___${r.name}`)},Operation:{enter(){t=new Set},Parameter(r,{report:n,key:i,parentLocations:o}){const s=`${r.in}___${r.name}`;t.has(s)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:o.Operation.child(["parameters",i]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),t.add(s)}}}}},Ly=()=>({Operation(e,{report:t,location:r}){e.tags&&e.tags.length>1&&t({message:"Operation `tags` object should have only one tag.",location:r.child(["tags"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-singular-tag"})}}),Uy=()=>({Operation(e,t){Qr({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}}),Fy=()=>{let e;return{Root(t){e=new Set((t.tags??[]).map(r=>r.name))},Operation(t,{report:r,location:n}){if(t?.tags)for(let i=0;i<t.tags.length;i++)e.has(t.tags[i])||r({message:"Operation tags should be defined in global tags.",location:n.child(["tags",i]),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"});else r({message:"Operation tags should be defined",location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"})}}},Vy=()=>({Parameter(e,{report:t,location:r}){e.description===void 0?t({message:"Parameter object description must be present.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"}):e.description||t({message:"Parameter object description must be non-empty string.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"})}}),By=()=>({PathItem(e,{report:t,key:r}){r.indexOf("{}")!==-1&&t({message:"Path parameter declarations must be non-empty. `{}` is invalid.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/path-declaration-must-exist"})}}),ON=["get","head","post","put","patch","delete","options","query","trace"],zy=e=>{const t=e&&e.order||ON;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:i}){const o=Object.keys(r).filter(s=>t.includes(s));for(let s=0;s<o.length-1;s++){const a=t.indexOf(o[s]);t.indexOf(o[s+1])<a&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...i.child(o[s+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}},Ky=()=>({Paths:{PathItem(e,{report:t,key:r}){r.toString().includes("?")&&t({message:"Don't put query string items in the path, they belong in parameters with `in: query`.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/path-not-include-query"})}}}),IN=/\{([a-zA-Z0-9_.-]+)\}+/g,xN=2,fs=()=>{const e={current:null};return{PathItem:{enter(r,{key:n}){Gy(e,n)},leave(){RN(e)},Parameter(r,{report:n,location:i,rawLocation:o}){Hy({parameter:r,pathContext:e,report:n,location:i,rawLocation:o})},Operation:Yy(e,new Set)}}},Gy=(e,t)=>{e.current={path:t,templateParams:AN(t),definedParams:new Set}},RN=e=>{e.current=null},Hy=({parameter:e,pathContext:t,report:r,location:n,rawLocation:i})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),Qy({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:i}))},Yy=(e,t,r=0)=>{const n=(o,s,a)=>{o({message:`Maximum callback nesting depth (${a}) reached. Path parameter validation is limited beyond this depth to prevent infinite recursion.`,location:s,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};if(r>=xN)return{enter:()=>{},leave:(o,{report:s,location:a})=>{n(s,a,r)},Parameter:()=>{},Callback:void 0};const i=()=>{let o=null;return{enter(s,{key:a}){o=e.current,Gy(e,a)},leave(){e.current=o},Parameter(s,{report:a,location:c,rawLocation:l}){Hy({parameter:s,pathContext:e,report:a,location:c,rawLocation:l})},get Operation(){return Yy(e,t,r+1)}}};return{enter(){t=new Set},leave(o,{report:s,location:a}){!e.current||!t||kN({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:s,location:a})},Parameter(o,{report:s,location:a,rawLocation:c}){NN(o,t),o.in==="path"&&o.name&&e.current&&(t.add(o.name),Qy({paramName:o.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return i()}}}},AN=e=>new Set(Array.from(e.matchAll(IN)).map(t=>t[1])),NN=(e,t)=>{se.isPlainObject(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},Qy=({paramName:e,templateParams:t,path:r,report:n,location:i,rawLocation:o})=>{if(!t.has(e)){const s=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,a=o===i?void 0:o;n({message:s,location:i.child(["name"]),from:a,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},kN=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:i,location:o})=>{const s=new Set([...t,...r]);for(const a of e)s.has(a)||i({message:`The operation does not define the path parameter \`{${a}}\` expected by path \`${n}\`.`,location:o.child(["parameters"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})},Jy=e=>{const{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:i,key:o,location:s}){const a=o.toString();if(a.startsWith("/")){const c=a.split("/");c.shift(),t&&c.length>0&&c.pop();for(const l of c)r&&r.includes(l)||!Sy(l)&&Df.isSingular(l)&&i({message:`path segment \`${l}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}},Wy=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/paths-kebab-case"})}}),Xy=()=>{let e,t;return{Schema:{enter(r){if(!r?.required){e=!0;return}t=new Set(r.required),e=!1},SchemaProperties:{skip(){return e},Schema:{enter(r,{key:n,location:i,report:o}){t.has(n)&&r.type==="string"&&(r?.minLength||o({message:"Property minLength is required.",location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/required-string-property-missing-min-length"}))}}}}}};function Hr(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}const Zy=e=>{const t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:i,key:o})=>{const s=t[o]||t[Hr(o)]||t[Hr(o).toLowerCase()]||[];for(const a of s)(!r?.headers||!Object.keys(r?.headers).some(c=>c.toLowerCase()===a.toLowerCase()))&&n({message:`Response object must contain a "${a}" header.`,location:i.child("headers").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-header"})}}}}},Bd=["string","integer","number","boolean","null"],eg=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:i}){for(const o of Object.keys(e)){const s=i(M.getOwn(e,o)).node;!s||!qN(s)||s.example===void 0&&s.examples===void 0&&t({message:`Scalar property should have "example"${n==="oas3_1"||n==="oas3_2"?' or "examples"':""} defined.`,location:r.child(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/scalar-property-missing-example"})}}});function qN(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>Bd.includes(t)):Bd.includes(e.type)}const tg=e=>{const t=new Map,r=[];let n=!0,i;return{Root:{leave(o,{report:s}){for(const[a,c]of t.entries())if(!c.defined)for(const l of c.from)s({message:`There is no \`${a}\` security scheme defined.`,location:l.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(o.security||n))for(const a of r)s({message:"Every operation should have security defined on it or on the root level.",location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"})}},SecurityScheme(o,{key:s}){t.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:s}){for(const a of Object.keys(o)){const c=t.get(a),l=s.child([a]);c?c.from.push(l):t.set(a,{from:[l]})}},PathItem:{enter(o,{key:s}){i=s},Operation(o,{location:s,key:a}){const c=e.exceptions?.some(l=>l.path===i&&(!l.methods||l.methods?.some(p=>p.toLowerCase()===a)));!o?.security&&!c&&(n=!1,r.push(s))}}}},rg=()=>{const e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:i,type:o}){!e.includes(o.name)&&M.isRef(n)&&r({message:"Field $ref is not expected here.",location:i.child("$ref").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-strict-refs"})}}},CN=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(o,{report:s,location:a}){o.type==="boolean"&&!r.test(o.name)&&s({message:`Boolean parameter \`${o.name}\` should have ${i} prefix.`,location:a.child("name"),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}};function ms({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t[e])for(const c of t[e])n.includes(c)||o({message:`Mime type "${c}" is not allowed`,location:s.child(t[e].indexOf(c)).key(),reference:i})}function zr({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t.content)for(const c of Object.keys(t.content))n.includes(c)||o({message:`Mime type "${c}" is not allowed`,location:s.child("content").child(c).key(),reference:i})}const DN=({allowedValues:e})=>({Root(t,r){ms({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){ms({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}),jN=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},Schema(n,{report:i,location:o}){if(n.type!=="object")return;const s=t[r]||t[Hr(r)]||t[Hr(r).toLowerCase()]||[];for(const a of s)n.properties?.[a]||i({message:`Response object must contain a top-level "${a}" property.`,location:o.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}},MN=({allowedValues:e})=>({Root(t,r){ms({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){ms({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}),LN={struct:ir,"no-invalid-schema-examples":Ay,"no-invalid-parameter-examples":Ry,"info-contact":Jr,"info-license":Qc,"info-license-strict":xs,"tag-description":Ns,"tags-alphabetical":ks,"paths-kebab-case":Wy,"no-enum-type-mismatch":An,"boolean-parameter-prefixes":CN,"no-path-trailing-slash":Ny,"operation-2xx-response":ky,"operation-4xx-response":qy,assertions:pr,"operation-operationId-unique":Dy,"operation-parameters-unique":My,"path-parameters-defined":fs,"operation-tag-defined":Fy,"path-declaration-must-exist":By,"operation-operationId-url-safe":jy,"operation-operationId":As,"operation-summary":Uy,"operation-description":Cy,"path-not-include-query":Ky,"path-params-defined":fs,"parameter-description":Vy,"operation-singular-tag":Ly,"security-defined":tg,"security-scopes-defined":kc,"no-unresolved-refs":nr,"no-identical-paths":Ey,"no-ambiguous-paths":wy,"path-http-verbs-order":zy,"no-http-verbs-in-paths":_y,"request-mime-type":DN,"response-mime-type":MN,"path-segment-plural":Jy,"response-contains-header":Zy,"response-contains-property":jN,"scalar-property-missing-example":eg,"required-string-property-missing-min-length":Xy,"spec-strict-refs":rg,"no-required-schema-properties-undefined":Nn,"no-schema-type-mismatch":kn,"no-duplicated-enum-values":Rn,"no-unsafe-markdown":qn,"no-duplicated-tag-names":Rs},UN={},FN=e=>({Parameter:{leave(t,r){if(!t.schema)return;const n=M.isRef(t.schema)?r.resolve(t.schema).node:t.schema;n&&VN(t,n,e)&&r.report({message:`Parameter \`${t.name}\` should have \`style\` and \`explode \` fields`,location:r.location,reference:"https://redocly.com/docs/cli/rules/oas/array-parameter-serialization"})}}});function VN(e,t,r){return(t.type==="array"||t.items||t.prefixItems)&&(e.style===void 0||e.explode===void 0)&&(!r.in||e.in&&r.in?.includes(e.in))}const BN=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(o,{report:s,parentLocations:a},c){o.type==="boolean"&&!r.test(c.Parameter.name)&&s({message:`Boolean parameter \`${c.Parameter.name}\` should have ${i} prefix.`,location:a.Parameter.child(["name"]),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}}},ac="Schema",cc="Parameter",lc="Response",uc="RequestBody",zN={[ac]:"schemas",[cc]:"parameters",[lc]:"responses",[uc]:"requestBodies"},KN=e=>{const t=new Map,r=[];e.schemas!=="off"&&r.push(ac),e.parameters!=="off"&&r.push(cc),e.responses!=="off"&&r.push(lc),e.requestBodies!=="off"&&r.push(uc);const n={ref:{leave(a,{type:c,resolve:l}){const p=c.name;if(r.includes(p)){const d=l(a);if(!d.location)return;s(p,d.location)}}},Root:{leave(a,c){t.forEach((l,p,d)=>{if(l.absolutePointers.size>1){const g=YN(p),m=GN(g.typeName),E=m?e[m]:null;for(const _ of l.locations){const $=Array.from(l.absolutePointers).filter(w=>w!==_.absolutePointer.toString()).map(w=>`- ${w}`).join(`
|
|
83
|
+
`),T={message:`Component '${m}/${g.componentName}' is not unique. It is also defined at:
|
|
84
|
+
${$}`,location:_,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};E&&(T.forceSeverity=E),c.report(T)}}})}}};return e.schemas!="off"&&(n.NamedSchemas={Schema(a,{location:c}){s(ac,c)}}),e.responses!="off"&&(n.NamedResponses={Response(a,{location:c}){s(lc,c)}}),e.parameters!="off"&&(n.NamedParameters={Parameter(a,{location:c}){s(cc,c)}}),e.requestBodies!="off"&&(n.NamedRequestBodies={RequestBody(a,{location:c}){s(uc,c)}}),n;function i(a){const c=a.split("/").slice(-1)[0];return M.isSupportedExtension(c)?c.slice(0,c.lastIndexOf(".")):c}function o(a,c,l){const p=HN(a,c),d=t.get(p)??{absolutePointers:new Set,locations:[]},g=l.absolutePointer.toString();d.absolutePointers.has(g)||(d.absolutePointers.add(g),d.locations.push(l)),t.set(p,d)}function s(a,c){const l=i(c.absolutePointer.toString());o(a,l,c)}};function GN(e){return zN[e]??null}function HN(e,t){return`${e}/${t}`}function YN(e){const[t,r]=e.split("/");return{typeName:t,componentName:r}}const QN=()=>({Root(e,{report:t,location:r}){if(!e.hasOwnProperty("servers")){t({message:"Servers must be present.",location:r.child(["openapi"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"});return}(!Array.isArray(e.servers)||e.servers.length===0)&&t({message:"Servers must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"})}}),JN=()=>({Example(e,{report:t,location:r}){e.value&&e.externalValue&&t({message:"Example object can have either `value` or `externalValue` fields.",location:r.child(["value"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-example-value-and-externalValue"})}}),WN=e=>{const t=new Zc,r=i=>i.schema===void 0,n=i=>(o,s)=>{const{location:a,resolve:c}=s;if(tr(o.example))l(o.example,a.child("example"));else if(se.isPlainObject(o.examples))for(const p of Object.keys(o.examples))l(o.examples[p],a.child(["examples",p]),!0);function l(p,d,g){if(M.isRef(p)){const E=c(p);if(!E.location)return;d=E.location,p=E.node}let m=p;if(g){const E=Ph(p);if(!E)return;m=E.value,d=d.child(E.field)}bn({example:m,schema:o.schema,options:{location:d,ctx:s,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:i},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-media-type-examples"})}};return{Parameter:{MediaType:{skip:r,leave:n({apiContext:"request"})}},RequestBody:{MediaType:{skip:r,leave:n({apiContext:"request"})}},Response:{MediaType:{skip:r,leave:n({apiContext:"response"})}}}},XN=()=>({Server(e,{report:t,location:r}){const n=/^(.*[\/.])?(example\.com|localhost)([\/:?].*|$)/;e.url&&n.test(e.url)&&t({message:"Server `url` should not point to example.com or localhost.",location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-example-com"})}}),ZN=()=>({Server(e,{report:t,location:r}){e.url&&e.url.endsWith("/")&&e.url!=="/"&&t({message:"Server `url` should not have a trailing slash.",location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-trailing-slash"})}}),ek=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;const n=[];if(Array.isArray(e.servers))for(const i of e.servers){const o=zd(i);o&&n.push(...o)}else{const i=zd(e.servers);if(!i)return;n.push(...i)}for(const i of n)i==="empty"&&t({message:"Server variable with `enum` must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"}),i==="invalidDefaultValue"&&t({message:"Server variable define `enum` and `default`. `enum` must include default value",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"})}});function zd(e){if(e.variables&&Object.keys(e.variables).length===0)return;const t=[];for(const r in e.variables){const n=e.variables[r];if(!n.enum||(Array.isArray(n.enum)&&n.enum?.length===0&&t.push("empty"),!n.default))continue;const i=e.variables[r].default;n.enum&&!n.enum.includes(i)&&t.push("invalidDefaultValue")}if(t.length)return t}const tk=()=>({Server(e,{report:t,location:r}){if(!e?.url)return;const n=e.url.match(/{[^}]+}/g)?.map(o=>o.slice(1,o.length-1))||[],i=e?.variables&&Object.keys(e.variables)||[];for(const o of n)i.includes(o)||t({message:`The \`${o}\` variable is not defined in the \`variables\` objects.`,location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"});for(const o of i)n.includes(o)||t({message:`The \`${o}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",o]).key(),from:r.child("url"),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"})}}),rk=()=>{const e=new Map,t=new Map,r=new Set;function n(i,o,s=!1){e.set(i.absolutePointer,{used:e.get(i.absolutePointer)?.used||!1,referencesDiscriminator:s,location:i,name:o})}return{ref(i,{type:o,resolve:s,key:a,location:c}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(o.name)){const l=s(i);if(!l.location)return;e.set(l.location.absolutePointer,{used:!0,name:a.toString(),location:c})}},Root:{leave(i,{report:o}){e.forEach(s=>{!s.used&&!s.referencesDiscriminator&&o({message:`Component: "${s.name}" is never used.`,location:s.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})}),t.forEach((s,a)=>{r.has(a)||o({message:`Security scheme: "${a}" is never used.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(i,{location:o,key:s,resolve:a}){const c=i.allOf?.some(l=>M.isRef(l)&&a(l)?.node?.discriminator);n(o,s.toString(),c)}},NamedParameters:{Parameter(i,{location:o,key:s}){n(o,s.toString())}},NamedResponses:{Response(i,{location:o,key:s}){n(o,s.toString())}},NamedExamples:{Example(i,{location:o,key:s}){n(o,s.toString())}},NamedRequestBodies:{RequestBody(i,{location:o,key:s}){n(o,s.toString())}},NamedHeaders:{Header(i,{location:o,key:s}){n(o,s.toString())}},NamedMediaTypes:{MediaTypesMap(i,{location:o,key:s}){n(o,s.toString())}},NamedSecuritySchemes:{SecurityScheme(i,{rawLocation:o,key:s}){t.set(s.toString(),o)}},SecurityRequirement(i){for(const o of Object.keys(i))r.add(o)}}},nk=()=>({Schema:{leave(e,t){"nullable"in e&&!("type"in e)&&t.report({message:"The `type` field must be defined when the `nullable` field is used.",location:t.location.child(["nullable"]),reference:"https://redocly.com/docs/cli/rules/oas/nullable-type-sibling"})}}}),ma="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",ik=()=>({Response:{skip(e,t){return!/4[Xx0-9]{2}/.test(`${t}`)},enter(e,{report:t,location:r}){(!e.content||!e.content["application/problem+json"])&&t({message:"Response `4xx` must have content-type `application/problem+json`.",location:r.key(),reference:ma})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(Qr({fieldName:"schema",value:e,ctx:t,reference:ma}),!e.schema)return;const{schema:r,location:n}=Ts(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(const i of["type","title"])Fr(e.schema,i,t)||t.report({message:Ps("SchemaProperties",i),location:r.properties?n.child(["properties",i]).key():n.key(),reference:ma})}}}}),ok=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){zr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}},Callback:{RequestBody(){},Response:{leave(t,r){zr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){zr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}}),sk=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},MediaType:{Schema(n,{report:i,location:o}){if(n.type!=="object")return;const s=t[r]||t[Hr(r)]||t[Hr(r).toLowerCase()]||[];for(const a of s)n.properties?.[a]||i({message:`Response object must contain a top-level "${a}" property.`,location:o.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}}},ak=({allowedValues:e})=>({Paths:{Response:{leave(t,r){zr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}},Callback:{Response(){},RequestBody:{leave(t,r){zr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){zr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}}),ck=()=>{const e=`^[${Am}]+$`;function t(r,n,i,o){new RegExp(e).test(r)||n({message:`The map key in ${o} "${r}" does not match the regular expression "${e}"`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-components-invalid-map-name"})}return{NamedSchemas:{Schema(r,{key:n,report:i,location:o}){t(n,i,o,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:i,location:o}){t(n,i,o,"parameters")}},NamedResponses:{Response(r,{key:n,report:i,location:o}){t(n,i,o,"responses")}},NamedExamples:{Example(r,{key:n,report:i,location:o}){t(n,i,o,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:i,location:o}){t(n,i,o,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:i,location:o}){t(n,i,o,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:i,location:o}){t(n,i,o,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:i,location:o}){t(n,i,o,"links")}},NamedCallbacks:{Callback(r,{key:n,report:i,location:o}){t(n,i,o,"callbacks")}}}},lk=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},Schema:{leave(t,r){const n=t.discriminator?.propertyName;if(!n)return;const i=t.discriminator?.defaultMapping;if(i===void 0){const o=new Set,s=(a,c)=>{const l=Ts(a,r,c);return!!(!l.schema||o.has(l.schema)||(o.add(l.schema),l.schema.required?.includes(n)||l.schema.allOf?.some(p=>s(p,l.location))||l.schema.oneOf?.every(p=>s(p,l.location))||l.schema.anyOf?.every(p=>s(p,l.location))))};s(t)||r.report({message:`Discriminator with optional property '${n}' must include a defaultMapping field.`,location:r.location.child("discriminator"),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}else r.resolve({$ref:i}).node===void 0&&!e.includes(i)&&r.report({message:`defaultMapping value '${i}' does not point to an existing schema component.`,location:r.location.child(["discriminator","defaultMapping"]),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}}}},uk=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:i,location:o}){e!==void 0&&t!==void 0&&i({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:o,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),n!==void 0&&t!==void 0&&i({message:"The 'serializedValue' and 'externalValue' fields of an example object are mutually exclusive.",location:o,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&r!==void 0&&i({message:"The 'value' filed must be absent if 'dataValue' is present in an example object.",location:o.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&n!==void 0&&i({message:"The 'value' filed must be absent if 'serializedValue' is present in an example object.",location:o.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"})}}),pk=()=>({MediaType:{leave(e,t){("prefixEncoding"in e&&"encoding"in e||"itemEncoding"in e&&"encoding"in e)&&t.report({message:"The 'encoding' field cannot be used together with 'prefixEncoding' or 'itemEncoding'.",location:t.location.child("encoding").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-encoding-combinations"})}}}),dk=()=>{let e;return{Root:{enter(t){e=t.tags??[]}},Tag:{leave(t,{report:r,location:n}){if(t?.parent===void 0)return;if(!e.find(s=>s.name===t.parent)){r({message:`Tag parent '${t.parent}' is not defined in the API description.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}const i=new Set(t.name);let o=t.parent;for(;o!==void 0;){if(i.has(o)){r({message:`Circular reference detected in tag parent hierarchy for tag '${t.name}'.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}i.add(o),o=e.find(s=>s.name===o)?.parent}}}}};function Kd(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function Gd(e,t){const r=t.location.child("parameters");e>1&&t.report({message:"Parameters with `in: querystring` should be defined only once per path/operation parameter set.",location:r,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"})}function Hd(e,t,r,n){if(e.in==="query"){r.querystringLocation&&n.report({message:"Parameters with `in: query` cannot be used together with `in: querystring` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.queryLocation??=t;return}e.in==="querystring"&&(r.queryLocation&&n.report({message:"Parameters with `in: querystring` cannot be used together with `in: query` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.querystringLocation??=t)}const fk=()=>{let e={},t={},r=0;return{PathItem:{enter(n,i){e={},t={},r=0,Gd(Kd(n.parameters||[]),i)},Parameter(n,i){Hd(n,i.location,e,i),n.in==="querystring"&&(r+=1)},Operation:{enter(n,i){t={...e};const o=r+Kd(n.parameters||[]);Gd(o,i)},Parameter(n,i){Hd(n,i.location,t,i)}}}}},mk={struct:ir,"info-contact":Jr,"info-license":Qc,"info-license-strict":xs,"operation-2xx-response":ky,"operation-4xx-response":qy,"operation-4xx-problem-details-rfc7807":ik,assertions:pr,"operation-operationId-unique":Dy,"operation-parameters-unique":My,"operation-tag-defined":Fy,"no-example-value-and-externalValue":JN,"no-mixed-number-range-constraints":Is,"no-enum-type-mismatch":An,"no-path-trailing-slash":Ny,"no-empty-servers":QN,"path-declaration-must-exist":By,"operation-operationId-url-safe":jy,"operation-operationId":As,"operation-summary":Uy,"tags-alphabetical":ks,"no-server-example.com":XN,"no-server-trailing-slash":ZN,"tag-description":Ns,"operation-description":Cy,"no-unused-components":rk,"path-not-include-query":Ky,"path-parameters-defined":fs,"path-params-defined":fs,"parameter-description":Vy,"operation-singular-tag":Ly,"security-defined":tg,"security-scopes-defined":kc,"no-unresolved-refs":nr,"paths-kebab-case":Wy,"boolean-parameter-prefixes":BN,"path-http-verbs-order":zy,"no-invalid-media-type-examples":WN,"no-identical-paths":Ey,"no-ambiguous-paths":wy,"no-undefined-server-variable":tk,"no-server-variables-empty-enum":ek,"no-http-verbs-in-paths":_y,"request-mime-type":ok,"response-mime-type":ak,"path-segment-plural":Jy,"no-invalid-schema-examples":Ay,"no-invalid-parameter-examples":Ry,"response-contains-header":Zy,"response-contains-property":sk,"scalar-property-missing-example":eg,"spec-components-invalid-map-name":ck,"required-string-property-missing-min-length":Xy,"spec-strict-refs":rg,"component-name-unique":KN,"array-parameter-serialization":FN,"no-required-schema-properties-undefined":Nn,"no-schema-type-mismatch":kn,"no-duplicated-enum-values":Rn,"no-unsafe-markdown":qn,"no-duplicated-tag-names":Rs,"nullable-type-sibling":nk,"spec-no-invalid-tag-parents":dk,"spec-no-invalid-encoding-combinations":pk,"spec-discriminator-defaultMapping":lk,"spec-example-values":uk,"spec-querystring-parameters":fk},hk={},yk=()=>{const e=new Map;function t(r,n){e.set(r.absolutePointer,{used:e.get(r.absolutePointer)?.used||!1,location:r,name:n})}return{ref(r,{type:n,resolve:i,key:o,location:s}){if(["Schema","ContentDescriptor","Example","Link","ErrorObject","ExamplePairing","Tag"].includes(n.name)){const a=i(r);if(!a.location)return;e.set(a.location.absolutePointer,{used:!0,name:o.toString(),location:s})}},Root:{leave(r,{report:n}){e.forEach(i=>{i.used||n({message:`Component: "${i.name}" is never used.`,location:i.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(r,{location:n,key:i}){t(n,i.toString())}},NamedContentDescriptors:{ContentDescriptor(r,{location:n,key:i}){t(n,i.toString())}},NamedExamples:{Example(r,{location:n,key:i}){t(n,i.toString())}},NamedLinks:{Link(r,{location:n,key:i}){t(n,i.toString())}},NamedErrors:{ErrorObject(r,{location:n,key:i}){t(n,i.toString())}},NamedExamplePairingObjects:{ExamplePairing(r,{location:n,key:i}){t(n,i.toString())}},NamedTags:{Tag(r,{location:n,key:i}){t(n,i.toString())}}}},gk=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;const i=new Set;e.params.forEach((o,s)=>{const a=r(o);if(!a.node)return;const c=a.node,l=c.name;l&&(i.has(l)&&t({message:`Parameter names must be unique. Duplicate parameter name '${c.name}' found.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),i.add(l))})}}}),vk=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let i=!1;e.params.forEach((o,s)=>{const a=r(o);if(!a.node)return;const c=a.node;if(!c.name)return;c.required===!0?i&&t({message:`Required parameter '${c.name}' must be positioned before optional parameters.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-required-params-after-optional"}):i=!0})}}}),bk={struct:ir,"no-unresolved-refs":nr,assertions:pr,"info-license":Qc,"no-unused-components":yk,"info-contact":Jr,"spec-no-duplicated-method-params":gk,"spec-no-required-params-after-optional":vk},wk={},Sk={"info-contact":Jr,struct:ir,"no-unresolved-refs":nr,assertions:pr},_k={},Ek={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error"},oas3_0Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","nullable-type-sibling":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_1Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_2Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-querystring-parameters":"error"},async2Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error"},async3Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"error"},openrpc1Rules:{"info-contact":"error","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},$k={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-2xx-response":"warn","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","nullable-type-sibling":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-discriminator-defaultMapping":"off","spec-example-values":"off","spec-no-invalid-encoding-combinations":"warn","spec-no-invalid-tag-parents":"warn","spec-querystring-parameters":"error","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},graphqlRules:{"no-unused-types":"off","type-description":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"}},Tk={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"error",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","nullable-type-sibling":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},Pk={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","nullable-type-sibling":"error","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"warn","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-license":"warn","no-unused-components":"warn","info-contact":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},Ok={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"off",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","nullable-type-sibling":"error","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},Ik={recommended:Pk,"recommended-strict":Tk,minimal:$k,all:Ek,spec:Ok},Yd={id:"",rules:{oas3:mk,oas2:LN,async2:SI,async3:AI,arazzo1:mI,overlay1:Sk,openrpc1:bk,graphql:XR},preprocessors:{oas3:hk,oas2:UN,async2:_I,async3:NI,arazzo1:hI,overlay1:_k,openrpc1:wk},decorators:{oas3:kO,oas2:RO,async2:$O,async3:TO,arazzo1:EO,overlay1:CO,openrpc1:qO},configs:Ik},xk={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Zt(e,t){const r={};r.any={enter:[],leave:[]};for(const s of Object.keys(t))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(const{ruleId:s,severity:a,message:c,visitor:l}of e)o({ruleId:s,severity:a,message:c},l,null);for(const s of Object.keys(r))r[s].enter.sort((a,c)=>c.depth-a.depth),r[s].leave.sort((a,c)=>a.depth-c.depth);return r;function n(s,a,c,l,p=[]){if(p.includes(a))return;p=[...p,a];const d=new Set;for(const m of Object.values(a.properties)){if(m===c){g(s,p);continue}se.isPlainObject(m)&&m.name!==void 0&&d.add(m)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?g(s,p):a.additionalProperties.name!==void 0&&d.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?g(s,p):a.items.name!==void 0&&d.add(a.items)),a.extensionsPrefix&&d.add(M.SpecExtension);for(const m of Array.from(d.values()))n(s,m,c,l,p);function g(m,E){for(const _ of E.slice(1))r[_.name]=r[_.name]||{enter:[],leave:[]},r[_.name].enter.push({...m,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:l}})}}function i(s,a){if(Array.isArray(a)){const c=a.find(l=>s[l])||void 0;return c&&s[c]}return s[a]}function o(s,a,c,l=0){const p=Object.keys(t);if(l===0)p.push("any"),p.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(const d of p){const g=a[d]||i(a,xk[d]),m=r[d];if(!g)continue;let E,_,$;const T=se.isPlainObject(g);if(d==="ref"&&T&&g.skip)throw new Error("ref() visitor does not support skip");typeof g=="function"?E=g:T&&(E=g.enter,_=g.leave,$=g.skip);const w=(E?1:0)+(_?1:0)+($?1:0),y=T&&Object.keys(g).length>w,S={activatedOn:null,type:t[d],parent:c,isSkippedLevel:!1};if(y&&o(s,g,S,l+1),c&&n(s,c.type,t[d],c),E||T){if(E&&typeof E!="function")throw new Error("DEV: should be function");m.enter.push({...s,visit:E||(()=>{}),skip:$,depth:l,context:S})}if(_){if(typeof _!="function")throw new Error("DEV: should be function");m.leave.push({...s,visit:_,depth:l,context:S})}}}}const De=(e,t)=>{if(t)for(const r of Object.keys(t))se.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Ue(e,t){if(t)for(const r of Object.keys(t))e.hasOwnProperty(r)&&(se.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function Rk(e){if(e.indexOf("/")>-1){const[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function He(e,t){if(!t)return e;const r={};for(const n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function ng(e){const t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},arazzo1_1Rules:{},overlay1Rules:{},openrpc1Rules:{},graphqlRules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},arazzo1_1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},arazzo1_1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(const r of e){if(se.isPlainObject(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
85
|
+
${JSON.stringify(r,null,2)}`);De(t.rules,r.rules),De(t.oas2Rules,r.oas2Rules),Ue(t.oas2Rules,r.rules),De(t.oas3_0Rules,r.oas3_0Rules),Ue(t.oas3_0Rules,r.rules),De(t.oas3_1Rules,r.oas3_1Rules),Ue(t.oas3_1Rules,r.rules),De(t.oas3_2Rules,r.oas3_2Rules),Ue(t.oas3_2Rules,r.rules),De(t.async2Rules,r.async2Rules),Ue(t.async2Rules,r.rules),De(t.async3Rules,r.async3Rules),Ue(t.async3Rules,r.rules),De(t.arazzo1Rules,r.arazzo1Rules),Ue(t.arazzo1Rules,r.rules),De(t.arazzo1_1Rules,r.arazzo1_1Rules),Ue(t.arazzo1_1Rules,r.rules),De(t.overlay1Rules,r.overlay1Rules),Ue(t.overlay1Rules,r.rules),De(t.openrpc1Rules,r.openrpc1Rules),Ue(t.openrpc1Rules,r.rules),De(t.graphqlRules,r.graphqlRules),Ue(t.graphqlRules,r.rules),De(t.preprocessors,r.preprocessors),De(t.oas2Preprocessors,r.oas2Preprocessors),Ue(t.oas2Preprocessors,r.preprocessors),De(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Ue(t.oas3_0Preprocessors,r.preprocessors),De(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Ue(t.oas3_1Preprocessors,r.preprocessors),De(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Ue(t.oas3_2Preprocessors,r.preprocessors),De(t.async2Preprocessors,r.async2Preprocessors),Ue(t.async2Preprocessors,r.preprocessors),De(t.async3Preprocessors,r.async3Preprocessors),Ue(t.async3Preprocessors,r.preprocessors),De(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Ue(t.arazzo1Preprocessors,r.preprocessors),De(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),Ue(t.arazzo1_1Preprocessors,r.preprocessors),De(t.overlay1Preprocessors,r.overlay1Preprocessors),Ue(t.overlay1Preprocessors,r.preprocessors),De(t.openrpc1Preprocessors,r.openrpc1Preprocessors),Ue(t.openrpc1Preprocessors,r.preprocessors),De(t.decorators,r.decorators),De(t.oas2Decorators,r.oas2Decorators),Ue(t.oas2Decorators,r.decorators),De(t.oas3_0Decorators,r.oas3_0Decorators),Ue(t.oas3_0Decorators,r.decorators),De(t.oas3_1Decorators,r.oas3_1Decorators),Ue(t.oas3_1Decorators,r.decorators),De(t.oas3_2Decorators,r.oas3_2Decorators),Ue(t.oas3_2Decorators,r.decorators),De(t.async2Decorators,r.async2Decorators),Ue(t.async2Decorators,r.decorators),De(t.async3Decorators,r.async3Decorators),Ue(t.async3Decorators,r.decorators),De(t.arazzo1Decorators,r.arazzo1Decorators),Ue(t.arazzo1Decorators,r.decorators),De(t.arazzo1_1Decorators,r.arazzo1_1Decorators),Ue(t.arazzo1_1Decorators,r.decorators),De(t.overlay1Decorators,r.overlay1Decorators),Ue(t.overlay1Decorators,r.decorators),De(t.openrpc1Decorators,r.openrpc1Decorators),Ue(t.openrpc1Decorators,r.decorators)}return t}class Ak extends Error{}function Nk(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Qd(e){return se.isPlainObject(e)&&"id"in e}function kk(e){return typeof e=="function"}function ig({node:e,ctx:t,plugins:r}){if(!e.extends)return e;const n=(e.extends||[]).filter(M.isTruthy).map(i=>{if(!M.isAbsoluteUrl(i)&&!se.path.extname(i))return e1(i,r);const o=t.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(M.isTruthy);return ng([...n.map(i=>ig({node:i,ctx:t,plugins:r})),{...e,extends:void 0}])}function Mo(e,t){if(se.isPlainObject(e)&&Array.isArray(e.plugins)){const{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(i=>dc(i,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const qk=Zt([{severity:"error",ruleId:Rc,visitor:{ref:{},ConfigGovernance:{leave(e,t){Mo(e,t)}},ConfigApisProperties:{leave(e,t){Mo(e,t)}},[pt.ScorecardClassicLevel]:{leave(e,t){Mo(e,t)}},ConfigRoot:{leave(e,t){Mo(e,t)}}}}],In);function Lo(e,t){if(se.isPlainObject(e)&&e.extends){const{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;const i=ig({node:e,ctx:t,plugins:r});Object.assign(e,i),delete e.extends}}const Ck=Zt([{severity:"error",ruleId:xc,visitor:{ref:{leave(e,t,r){M.replaceRef(e,r,t)}},ConfigGovernance:{leave(e,t){Lo(e,t)}},ConfigApisProperties:{leave(e,t){Lo(e,t)}},[pt.ScorecardClassicLevel]:{leave(e,t){Lo(e,t)}},ConfigRoot:{leave(e,t){Lo(e,t)}}}}],In);function Jd(e,t){return{prev:e,value:t}}function Wd(e){return e?.prev??null}function Dk(e){const t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function jk(e){const t={};for(;e.parent;)e.parent.activatedOn?.value.location&&(t[e.parent.type.name]=e.parent.activatedOn?.value.location),e=e.parent;return t}function er(e){const{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=e,s={},a=new Set,c=n.any.enter,l=n.any.leave,p={},d={};for(const m of Object.keys(n))m==="any"||m==="ref"||(p[m]=c.concat(n[m]?.enter||[]),d[m]=(n[m]?.leave||[]).concat(l));g(t.parsed,r,new M.Location(t.source,"#/"),void 0,"");function g(m,E,_,$,T){const w=(V,W=S.source.absoluteRef)=>{if(!M.isRef(V))return{location:_,node:V};const ie=M.makeRefId(W,V.$ref),ae=i.get(ie);if(!ae)return{location:void 0,node:void 0};const{resolved:_e,node:pe,document:le,nodePointer:L,error:N}=ae;return{location:_e?new M.Location(le.source,L):N instanceof M.YamlParseError?new M.Location(N.source,""):void 0,node:pe,error:N}},y=_;let S=_;const h=M.isRef(m),{node:v,location:O,error:k}=w(m),D=new Set;if(h){const V=n.ref.enter;for(const{visit:W,ruleId:ie,severity:ae,message:_e,context:pe}of V)D.add(pe),W(m,{report:L=>G(ie,ae,_e,L),resolve:w,rawNode:m,rawLocation:y,location:_,type:E,parent:$,key:T,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>J(ie)},{node:v,location:O,error:k}),O?.source.absoluteRef&&o.refTypes&&o.refTypes.set(O?.source.absoluteRef,E)}if(v!==void 0&&O&&E.name!=="scalar"){S=O;const V=s[E.name]?.has?.(v);let W=!1;const ie=p[E.name]||c.concat(n[E.name]?.enter||[]),ae=[],_e=`${S.absolutePointer}${S.pointer}`;for(const{context:le,visit:L,skip:N,ruleId:z,severity:C,message:P}of ie){if(a.has(_e))break;if(le.isSkippedLevel)le.parent.activatedOn&&!le.parent.activatedOn.value.nextLevelTypeActivated&&!le.seen.has(m)&&(le.seen.add(m),W=!0,ae.push(le));else if(le.parent&&le.parent.activatedOn&&le.activatedOn?.value.withParentNode!==le.parent.activatedOn.value.node&&le.parent.activatedOn.value.nextLevelTypeActivated?.value!==E||!le.parent&&!V){ae.push(le);const I={node:v,location:O,nextLevelTypeActivated:null,withParentNode:le.parent?.activatedOn?.value.node,skipped:(le.parent?.activatedOn?.value.skipped||N?.(v,T,{location:_,rawLocation:y,resolve:w,rawNode:m}))??!1};le.activatedOn=Jd(le.activatedOn,I);let x=le.parent;for(;x;)x.activatedOn.value.nextLevelTypeActivated=Jd(x.activatedOn.value.nextLevelTypeActivated,E),x=x.parent;I.skipped||(W=!0,D.add(le),B(L,v,m,le,z,C,P))}}if(W||!V){if(s[E.name]=s[E.name]||new Set,s[E.name].add(v),Array.isArray(v)){const le=E.items;if(le!==void 0){const L=typeof le=="function";for(let N=0;N<v.length;N++){const z=O.child([N]);let C=L?le(v[N],z.absolutePointer):le,P=v[N];C?.directResolveAs&&(C=C.directResolveAs,P={$ref:P}),M.isNamedType(C)&&g(P,C,z,v,N)}}}else if(se.isPlainObject(v)){const le=Object.keys(E.properties);E.additionalProperties?le.push(...Object.keys(v).filter(L=>!le.includes(L))):E.extensionsPrefix&&le.push(...Object.keys(v).filter(L=>L.startsWith(E.extensionsPrefix))),h&&le.push(...Object.keys(m).filter(L=>L!=="$ref"&&!le.includes(L)));for(const L of le){let N=v[L],z=O;N===void 0&&(N=m[L],z=_);let C=M.getOwn(E.properties,L);if(C===void 0&&(C=E.additionalProperties),typeof C=="function"&&(C=C(N,L)),C===void 0&&E.extensionsPrefix&&L.startsWith(E.extensionsPrefix)&&(C=M.SpecExtension),!M.isNamedType(C)&&C?.directResolveAs&&(C=C.directResolveAs,N={$ref:N}),C&&C.name===void 0&&C.resolvable!==!1&&(C={name:"scalar",properties:{}}),M.isRef(m[L])&&C?.name==="scalar"){g(m[L],C,_.child([L]),m,L);continue}!M.isNamedType(C)||C.name==="scalar"&&!M.isRef(N)||g(N,C,z.child([L]),v,L)}}}const pe=d[E.name]||(n[E.name]?.leave||[]).concat(l);for(const le of ae.reverse())if(le.isSkippedLevel)le.seen.delete(v);else if(le.activatedOn=Wd(le.activatedOn),le.parent){let L=le.parent;for(;L;)L.activatedOn.value.nextLevelTypeActivated=Wd(L.activatedOn.value.nextLevelTypeActivated),L=L.parent}for(const{context:le,visit:L,ruleId:N,severity:z,message:C}of pe)!le.isSkippedLevel&&D.has(le)&&B(L,v,m,le,N,z,C)}if(S=_,h){const V=n.ref.leave;for(const{visit:W,ruleId:ie,severity:ae,context:_e,message:pe}of V)D.has(_e)&&W(m,{report:L=>G(ie,ae,pe,L),resolve:w,rawNode:m,rawLocation:y,location:_,type:E,parent:$,key:T,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>J(ie)},{node:v,location:O,error:k})}function B(V,W,ie,ae,_e,pe,le){V(W,{report:N=>G(_e,pe,le,N),resolve:w,rawNode:ie,location:S,rawLocation:y,type:E,parent:$,key:T,parentLocations:jk(ae),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{a.add(`${S.absolutePointer}${S.pointer}`)},getVisitorData:()=>J(_e)},Dk(ae),ae)}function G(V,W,ie,ae){const pe=(ae.location?Array.isArray(ae.location)?ae.location:[ae.location]:[{...S,reportOnKey:!1}]).map(L=>({...S,reportOnKey:!1,...L})),le=ae.forceSeverity||W;le!=="off"&&o.problems.push({ruleId:ae.ruleId||V,severity:le,...ae,message:ie?ie.replace("{{message}}",ae.message):ae.message,suggest:ae.suggest||[],location:pe})}function J(V){return o.visitorsData[V]=o.visitorsData[V]||{},o.visitorsData[V]}}}function Mk(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function pc(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 Lk({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:i,componentRenamingConflicts:o="warn",componentNamesStrategy:s="basename"}){let a,c;const l=new Map,p=pc("Schema",e),d={ref:{leave(w,y,S){if(!S.location||S.node===void 0){Mr(S,y.report,y.location);return}if(S.location.source===r.source&&S.location.source===y.location.source&&y.type.name!=="scalar"&&!t){M.parseRef(w.$ref).uri!==null&&w.$ref!==S.location.pointer&&(w.$ref=S.location.pointer);return}if(i&&M.isAbsoluteUrl(w.$ref))return;const h=pc(y.type.name,e);h?t?(m(h,S,y),M.replaceRef(w,S,y)):(w.$ref=m(h,S,y),g(w,S,y)):M.replaceRef(w,S,y)}},Example:{leave(w,y){if(M.isExternalValue(w)&&w.value===void 0){const S=y.resolve({$ref:w.externalValue});if(!S.location||S.node===void 0){Mr(S,y.report,y.location);return}if(i&&M.isAbsoluteUrl(w.externalValue))return;w.value=y.resolve({$ref:w.externalValue}).node,delete w.externalValue}}},Root:{enter(w,y){c=y.location,e==="oas3"?a=w.components=w.components||{}:e==="oas2"?a=w:e==="async2"?a=w.components=w.components||{}:e==="async3"?a=w.components=w.components||{}:e==="arazzo1"?a=w.components=w.components||{}:e==="openrpc1"&&(a=w.components=w.components||{})}}};e==="oas3"&&(d.Discriminator={leave(w,y){if(typeof w.defaultMapping!="string"||!M.isMappingRef(w.defaultMapping))return;const S=y.resolve({$ref:w.defaultMapping});if(!S.location||S.node===void 0){Mr(S,y.report,y.location.child("defaultMapping"));return}w.defaultMapping=m(p,S,y)},DiscriminatorMapping:{leave(w,y){for(const S of Object.keys(w)){const h=w[S];if(!M.isMappingRef(h))continue;const v=y.resolve({$ref:h});if(!v.location||v.node===void 0){Mr(v,y.report,y.location.child(S));return}w[S]=m(p,v,y)}}}});function g(w,y,S){const h=M.makeRefId(S.location.source.absoluteRef,w.$ref);n.set(h,{document:r,isRemote:!1,node:y.node,nodePointer:w.$ref,resolved:!0})}function m(w,y,S){a[w]=a[w]||{};const h=T(y,w,S);return a[w][h]=y.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${w}/${h}`:`#/${w}/${h}`}function E(w,y,S){return M.isRef(w)&&S.resolve(w,c.absolutePointer).location?.absolutePointer===y.location.absolutePointer?!0:Yo(w,y.node)}function _(w,y,S){const{node:h}=w,v=se.isPlainObject(h)&&ot(h.title)?h.title.trim():"",O=Mk(v).replace(new RegExp(`[^${Am}]`,"g"),"-"),k=w.location.child("title");return v===""?{key:O,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:w.location,forceSeverity:"error"}}:y[O]&&!E(y[O],w,S)?{key:O,problem:{message:`Title "${v}" maps to component name \`${O}\`, already used by another schema. Rename one of the titles.`,location:k,from:l.get(O),forceSeverity:o}}:{key:O}}function $(w,y,S){const h=M.pointerBaseName(w.location.pointer)||M.refBaseName(w.location.source.absoluteRef);let v=h;for(let O=2;y[v]&&!E(y[v],w,S);O++)v=`${h}-${O}`;return{name:v,prevName:h}}function T(w,y,S){const h=a[y];if(s==="title"&&y===p){const{key:k,problem:D}=_(w,h,S);if(!D)return l.set(k,w.location.child("title")),k;const{name:B}=$(w,h,S);return h[B]||(S.report(D),l.set(B,w.location)),B}const{name:v,prevName:O}=$(w,h,S);return!h[v]&&O!==v&&S.report({message:`Two schemas are referenced with the same name but different content. Renamed ${O} to ${v}.`,location:S.location,forceSeverity:o}),v}return d}async function el(e){const{document:t,config:r,types:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1,componentRenamingConflicts:c,componentNamesStrategy:l="basename"}=e,p=Wr(t.parsed),d=Nc(p),g=r.getRulesForSpecVersion(d),m=M.normalizeTypes(r.extendTypes(n,p),r),E=gn(g,r,"preprocessors",p),_=gn(g,r,"decorators",p),$={problems:[],specVersion:p,config:r,refTypes:new Map,visitorsData:{}};let T=await M.resolveDocument({rootDocument:t,rootType:m.Root,externalRefResolver:i});E.length>0&&(er({document:t,rootType:m.Root,normalizedVisitors:Zt(E,m),resolvedRefMap:T,ctx:$}),T=await M.resolveDocument({rootDocument:t,rootType:m.Root,externalRefResolver:i}));const w=Zt([{severity:"error",ruleId:"bundler",visitor:Lk({version:d,dereference:o,rootDocument:t,resolvedRefMap:T,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:l})},..._.filter(y=>y.ruleId!=="remove-unused-components")],m);if(er({document:t,rootType:m.Root,normalizedVisitors:w,resolvedRefMap:T,ctx:$}),s||r.getDecoratorSettings("remove-unused-components",p).severity!=="off"){const y=await M.resolveDocument({rootDocument:t,rootType:m.Root,externalRefResolver:i}),S=Zt([{severity:"error",ruleId:"remove-unused-components",visitor:d==="oas2"?yh():gh()}],m);er({document:t,rootType:m.Root,normalizedVisitors:S,resolvedRefMap:y,ctx:$})}return{bundle:t,problems:$.problems.map(y=>r.addProblemToIgnore(y)),fileDependencies:i.getFiles(),rootType:m.Root,refTypes:$.refTypes,visitorsData:$.visitorsData}}function Uk(e,t,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Rc]:n}};return er({document:e,rootType:In.ConfigRoot,normalizedVisitors:qk,resolvedRefMap:t,ctx:i}),n.plugins}function Fk(e,t,r,n=!1){const i={plugins:r,skipPluginEval:n},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[xc]:i}};return er({document:e,rootType:In.ConfigRoot,normalizedVisitors:Ck,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function Vk(e){const{ref:t,doc:r,externalRefResolver:n=new M.BaseResolver(e.config.resolve),base:i=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
|
|
86
|
+
`);const o=r===void 0?await n.resolveDocument(i,t,!0):r;if(o instanceof Error)throw o;return e.collectSpecData?.(o),el({document:o,...e,externalRefResolver:n,types:Tn(Wr(o.parsed))})}async function Bk(e){const{source:t,absoluteRef:r,externalRefResolver:n=new M.BaseResolver(e.config.resolve)}=e,i=M.makeDocumentFromString(t,r||"/");return el({document:i,...e,externalRefResolver:n,types:Tn(Wr(i.parsed))})}function ha(e){return!ot(e)}const En=new Map,Ho="v";let tl=0,Xd=!1;function zk(){se.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(Ho);if(!i)return n;const o=new URL(n.url);return o.pathname.includes("/node_modules/")||o.searchParams.has(Ho)?n:(o.searchParams.set(Ho,i),{...n,url:o.href})}})}function Kk(){if(!Xd){if(Xd=!0,typeof se.module.registerHooks!="function"){Ne.warn(`Redocly plugin reload requires Node.js >= 22.15 (current: ${process.version}). ESM plugins will not pick up edits until the process restarts.
|
|
87
|
+
`);return}zk()}}function Gk(e){return En.has(e)}function Hk(e){return En.get(e)}function Yk(e,t){En.set(e,t)}function Qk(){return tl}function Jk(e){const t=se.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 Wk=()=>{const e=[...En.keys()];for(const t of e)Jk(t);En.clear(),tl+=1,Kk()};async function Xk(e){const t=(void 0)(e);return t.searchParams.set(Ho,String(tl)),import(t.href)}async function og({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:i}){const o=e===void 0?th:e.parsed;if(n!==void 0&&se.isPlainObject(o)&&(o.extends=n),se.isPlainObject(o)&&(o?.extends?.some(ha)||o?.scorecardClassic?.levels?.some(m=>m?.extends?.some(ha))||o?.scorecard?.levels?.some(m=>m?.extends?.some(ha))))throw new Error("Configuration format not detected in extends: values must be strings.");const s=e??{source:new M.Source(t??"",JSON.stringify(o)),parsed:o},a=await M.resolveDocument({rootDocument:s,rootType:In.ConfigRoot,externalRefResolver:r??new M.BaseResolver(ih(o?.resolve))});let c=[],l,p="";M.isBrowser?l=[...(o?.plugins||[]).filter(E=>!ot(E)),Yd]:(p=se.pathBrowserifyExports.dirname(t??""),c=Uk(s,a,p),l=[...await sg(c.map(E=>Zd(E)?E.absolutePath:E),p,i),Yd]);const d=Fk(s,Nk(a),l,i);d.apis&&!i&&(d.apis=Object.fromEntries(Object.entries(d.apis).map(([m,E])=>{const _=ng([d,E]);return[m,{...E,..._}]})));const g=c.length?c.map(m=>Zd(m)&&m.isModule?m.rawPath:m.absolutePath&&se.pathBrowserifyExports.relative(p,m.absolutePath)).filter(tr):void 0;return{resolvedConfig:{...d,plugins:g},resolvedRefMap:a,plugins:l}}function Zk(e){for(const t of nh)(void 0)(se.pathBrowserifyExports.resolve(e,t))}function Zd(e){return"isModule"in e}const dc=(e,t,r)=>{if(!ot(e))return e;(void 0)(se.pathBrowserifyExports.resolve(se.pathBrowserifyExports.dirname(t),e));try{return{absolutePath:se.module.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:Bt&&Bt.tagName.toUpperCase()==="SCRIPT"&&Bt.src||new URL("replay-lint-gtuMJgII.js",document.baseURI).href)??__dirname).resolve(e,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:Bt&&Bt.tagName.toUpperCase()==="SCRIPT"&&Bt.src||new URL("replay-lint-gtuMJgII.js",document.baseURI).href)?se.pathBrowserifyExports.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:Bt&&Bt.tagName.toUpperCase()==="SCRIPT"&&Bt.src||new URL("replay-lint-gtuMJgII.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function sg(e,t,r=!1){if(!e)return[];const n=async c=>{if(!ot(c))return c;try{const l=se.pathBrowserifyExports.isAbsolute(c)?c:dc(c,se.pathBrowserifyExports.join(t,Ha),t).absolutePath;if(!Gk(l)){const p=await Xk(l),d=p.default||p,g={contentDir:t},m=Array.isArray(d)?d:[d];for(const $ of m)$?.id&&Qd($)&&Ne.info(`Deprecated plugin format detected: ${$.id}
|
|
88
|
+
`);const E=Qd(d)?d:kk(d)?await d(g):await d?.default?.(g),_=Array.isArray(E)?E:[E];E&&Yk(l,_.map($=>({...$,path:c,absolutePath:l})))}return Hk(l)}catch(l){throw new Error(`Failed to load plugin "${c}": ${l.message}
|
|
89
|
+
|
|
90
|
+
${l.stack}`)}},i=new Map,o=Zk(t);o&&e.push(o);const s=new Set;if(r){const c=[];for(const l of e){if(!ot(l)){c.push(l);continue}const p=se.pathBrowserifyExports.isAbsolute(l)?l:dc(l,se.pathBrowserifyExports.join(t,Ha),t).absolutePath;s.has(p)||(s.add(p),c.push({absolutePath:p}))}return c}return(await Promise.all(e.map(async c=>{if(ot(c)){if(M.isAbsoluteUrl(c))throw new Error(qe.red("We don't support remote plugins yet."));if(s.has(c))return;s.add(c)}const l=await n(c);if(!l)return;const p=Array.isArray(l)?l:[l];return(await Promise.all(p.map(async d=>{if(!d)return;const g=d.id;if(typeof g!="string")throw new Error(qe.red(`Plugin must define \`id\` property in ${qe.blue(c.toString())}.`));const m=d.absolutePath??c.toString(),E=i.get(g);if(E){if(m!==E)throw new Error(qe.red(`Plugin "id" must be unique. Plugin ${qe.blue(m)} uses id "${qe.blue(g)}" already seen in ${qe.blue(m)}`));return}i.set(g,m);const _={id:g,...d.configs?{configs:d.configs}:{},...d.typeExtension?{typeExtension:d.typeExtension}:{}};if(d.rules){if(!d.rules.oas3&&!d.rules.oas2&&!d.rules.async2&&!d.rules.async3&&!d.rules.arazzo1&&!d.rules.overlay1&&!d.rules.openrpc1&&!d.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${c}.`);_.rules={},d.rules.oas3&&(_.rules.oas3=He(d.rules.oas3,g)),d.rules.oas2&&(_.rules.oas2=He(d.rules.oas2,g)),d.rules.async2&&(_.rules.async2=He(d.rules.async2,g)),d.rules.async3&&(_.rules.async3=He(d.rules.async3,g)),d.rules.arazzo1&&(_.rules.arazzo1=He(d.rules.arazzo1,g)),d.rules.overlay1&&(_.rules.overlay1=He(d.rules.overlay1,g)),d.rules.openrpc1&&(_.rules.openrpc1=He(d.rules.openrpc1,g)),d.rules.graphql&&(_.rules.graphql=He(d.rules.graphql,g))}if(d.preprocessors){if(!d.preprocessors.oas3&&!d.preprocessors.oas2&&!d.preprocessors.async2&&!d.preprocessors.async3&&!d.preprocessors.arazzo1&&!d.preprocessors.overlay1&&!d.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${c}.`);_.preprocessors={},d.preprocessors.oas3&&(_.preprocessors.oas3=He(d.preprocessors.oas3,g)),d.preprocessors.oas2&&(_.preprocessors.oas2=He(d.preprocessors.oas2,g)),d.preprocessors.async2&&(_.preprocessors.async2=He(d.preprocessors.async2,g)),d.preprocessors.async3&&(_.preprocessors.async3=He(d.preprocessors.async3,g)),d.preprocessors.arazzo1&&(_.preprocessors.arazzo1=He(d.preprocessors.arazzo1,g)),d.preprocessors.overlay1&&(_.preprocessors.overlay1=He(d.preprocessors.overlay1,g)),d.preprocessors.openrpc1&&(_.preprocessors.openrpc1=He(d.preprocessors.openrpc1,g))}if(d.decorators){if(!d.decorators.oas3&&!d.decorators.oas2&&!d.decorators.async2&&!d.decorators.async3&&!d.decorators.arazzo1&&!d.decorators.overlay1&&!d.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${c}.`);_.decorators={},d.decorators.oas3&&(_.decorators.oas3=He(d.decorators.oas3,g)),d.decorators.oas2&&(_.decorators.oas2=He(d.decorators.oas2,g)),d.decorators.async2&&(_.decorators.async2=He(d.decorators.async2,g)),d.decorators.async3&&(_.decorators.async3=He(d.decorators.async3,g)),d.decorators.arazzo1&&(_.decorators.arazzo1=He(d.decorators.arazzo1,g)),d.decorators.overlay1&&(_.decorators.overlay1=He(d.decorators.overlay1,g)),d.decorators.openrpc1&&(_.decorators.openrpc1=He(d.decorators.openrpc1,g))}return d.assertions&&(_.assertions=d.assertions),{...d,..._}}))).filter(tr)}))).filter(tr).flat()}function e1(e,t){const{pluginId:r,configName:n}=Rk(e),i=t.find(s=>s.id===r);if(!i)throw new Error(`Invalid config ${qe.red(e)}: plugin ${r} is not included.`);const o=i.configs?.[n];if(!o)throw new Error(r?`Invalid config ${qe.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${qe.red(e)}: there is no such built-in config.`);return o}function t1(e,t){const r=Object.create(null);for(const n of Object.keys(e)){const i=e[n],o=M.isAbsoluteUrl(n)?n:M.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 ag(e,t){const r=e?M.getDir(e):M.isBrowser?"":process.cwd(),n=r?M.resolvePath(r,ns):ns,i=await t.resolveDocument(null,n,!0);return i instanceof Error||!i.parsed?{}:t1(i.parsed||{},r)}async function r1(e={}){const{configPath:t=void 0,customExtends:r,externalRefResolver:n,skipPluginEval:i}=e,o=n??new M.BaseResolver,s=t?await o.resolveDocument(null,t,!0):void 0;if(s instanceof Error)throw s;const{resolvedConfig:a,resolvedRefMap:c,plugins:l}=await og({rawConfigDocument:s?cg(s):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:i}),p=await ag(t,o);return new xn(a,{configPath:t,document:s,resolvedRefMap:c,plugins:l,ignore:p})}function n1(e){}async function i1(e,{configPath:t,externalRefResolver:r,ignore:n}={}){const i=typeof e=="string"?e:"",o=M.makeDocumentFromString(i,t??"");typeof e!="string"&&e&&(o.parsed=e);const{resolvedConfig:s,resolvedRefMap:a,plugins:c}=await og({rawConfigDocument:cg(o),configPath:t,externalRefResolver:r});return new xn(s,{configPath:t,document:o,resolvedRefMap:a,plugins:c,ignore:n})}function cg(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 ya={},Ot={},ga={},ef;function Us(){return ef||(ef=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t;(function(c){c[c.SCALAR=0]="SCALAR",c[c.MAPPING=1]="MAPPING",c[c.MAP=2]="MAP",c[c.SEQ=3]="SEQ",c[c.ANCHOR_REF=4]="ANCHOR_REF",c[c.INCLUDE_REF=5]="INCLUDE_REF"})(t=e.Kind||(e.Kind={}));function r(c,l){var p=l?l.endPosition:c.endPosition+1,d={key:c,value:l,startPosition:c.startPosition,endPosition:p,kind:t.MAPPING,parent:null,errors:[]};return d}e.newMapping=r;function n(c,l,p,d){return{errors:[],referencesAnchor:c,value:d,startPosition:l,endPosition:p,kind:t.ANCHOR_REF,parent:null}}e.newAnchorRef=n;function i(c){c===void 0&&(c="");var l={errors:[],startPosition:-1,endPosition:-1,value:""+c,kind:t.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+c};return typeof c!="string"&&(l.valueObject=c),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 a(c){return{errors:[],startPosition:-1,endPosition:-1,mappings:c||[],kind:t.MAP,parent:null}}e.newMap=a})(ga)),ga}var Wt={},tf;function Zr(){if(tf)return Wt;tf=1,Object.defineProperty(Wt,"__esModule",{value:!0});function e(s){return typeof s>"u"||s===null}Wt.isNothing=e;function t(s){return typeof s=="object"&&s!==null}Wt.isObject=t;function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}Wt.toArray=r;function n(s,a){var c,l,p,d;if(a)for(d=Object.keys(a),c=0,l=d.length;c<l;c+=1)p=d[c],s[p]=a[p];return s}Wt.extend=n;function i(s,a){var c="",l;for(l=0;l<a;l+=1)c+=s;return c}Wt.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return Wt.isNegativeZero=o,Wt}var va,rf;function Ln(){if(rf)return va;rf=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 va=e,va}var ba,nf;function o1(){if(nf)return ba;nf=1;var e=Zr(),t=(function(){function r(n,i,o,s,a){this.name=n,this.buffer=i,this.position=o,this.line=s,this.column=a}return r.prototype.getSnippet=function(n,i){n===void 0&&(n=0),i===void 0&&(i=75);var o,s,a,c,l;if(!this.buffer)return null;for(n=n||4,i=i||75,o="",s=this.position;s>0&&`\0\r
|
|
91
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(s-1))===-1;)if(s-=1,this.position-s>i/2-1){o=" ... ",s+=5;break}for(a="",c=this.position;c<this.buffer.length&&`\0\r
|
|
92
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(c))===-1;)if(c+=1,c-this.position>i/2-1){a=" ... ",c-=5;break}return l=this.buffer.slice(s,c),e.repeat(" ",n)+o+l+a+`
|
|
93
|
+
`+e.repeat(" ",n+this.position-s+o.length)+"^"},r.prototype.toString=function(n){n===void 0&&(n=!0);var i,o="";return this.name&&(o+='in "'+this.name+'" '),o+="at line "+(this.line+1)+", column "+(this.column+1),n||(i=this.getSnippet(),i&&(o+=`:
|
|
94
|
+
`+i)),o},r})();return ba=t,ba}var Uo={},Fo={},of;function ct(){if(of)return Fo;of=1,Object.defineProperty(Fo,"__esModule",{value:!0});var e=Ln(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(o){var s={};return o!==null&&Object.keys(o).forEach(function(a){o[a].forEach(function(c){s[String(c)]=a})}),s}var i=(function(){function o(s,a){if(a=a||{},Object.keys(a).forEach(function(c){if(t.indexOf(c)===-1)throw new e('Unknown option "'+c+'" is met in definition of "'+s+'" YAML type.')}),this.tag=s,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(c){return c},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.defaultStyle=a.defaultStyle||null,this.styleAliases=n(a.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}return o})();return Fo.Type=i,Fo}var sf;function Un(){if(sf)return Uo;sf=1,Object.defineProperty(Uo,"__esModule",{value:!0});var e=Zr(),t=Ln(),r=ct();function n(s,a,c){var l=[];return s.include.forEach(function(p){c=n(p,a,c)}),s[a].forEach(function(p){c.forEach(function(d,g){d.tag===p.tag&&l.push(g)}),c.push(p)}),c.filter(function(p,d){return l.indexOf(d)===-1})}function i(){var s={},a,c;function l(p){s[p.tag]=p}for(a=0,c=arguments.length;a<c;a+=1)arguments[a].forEach(l);return s}var o=(function(){function s(a){this.include=a.include||[],this.implicit=a.implicit||[],this.explicit=a.explicit||[],this.implicit.forEach(function(c){if(c.loadKind&&c.loadKind!=="scalar")throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=n(this,"implicit",[]),this.compiledExplicit=n(this,"explicit",[]),this.compiledTypeMap=i(this.compiledImplicit,this.compiledExplicit)}return s.DEFAULT=null,s.create=function(){var c,l;switch(arguments.length){case 1:c=s.DEFAULT,l=arguments[0];break;case 2:c=arguments[0],l=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(c=e.toArray(c),l=e.toArray(l),!c.every(function(p){return p instanceof s}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!l.every(function(p){return p instanceof r.Type}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:c,explicit:l})},s})();return Uo.Schema=o,Uo}var wa,af;function s1(){if(af)return wa;af=1;var e=ct();return wa=new e.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),wa}var Sa,cf;function a1(){if(cf)return Sa;cf=1;var e=ct();return Sa=new e.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Sa}var _a,lf;function c1(){if(lf)return _a;lf=1;var e=ct();return _a=new e.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),_a}var Ea,uf;function l1(){if(uf)return Ea;uf=1;var e=Un();return Ea=new e.Schema({explicit:[s1(),a1(),c1()]}),Ea}var $a,pf;function u1(){if(pf)return $a;pf=1;var e=ct();function t(i){if(i===null)return!0;var o=i.length;return o===1&&i==="~"||o===4&&(i==="null"||i==="Null"||i==="NULL")}function r(){return null}function n(i){return i===null}return $a=new e.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:n,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),$a}var Ta,df;function p1(){if(df)return Ta;df=1;var e=ct();function t(i){if(i===null)return!1;var o=i.length;return o===4&&(i==="true"||i==="True"||i==="TRUE")||o===5&&(i==="false"||i==="False"||i==="FALSE")}function r(i){return i==="true"||i==="True"||i==="TRUE"}function n(i){return Object.prototype.toString.call(i)==="[object Boolean]"}return Ta=new e.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:n,represent:{lowercase:function(i){return i?"true":"false"},uppercase:function(i){return i?"TRUE":"FALSE"},camelcase:function(i){return i?"True":"False"}},defaultStyle:"lowercase"}),Ta}var Pa,ff;function d1(){if(ff)return Pa;ff=1;var e=Zr(),t=ct();function r(c){return 48<=c&&c<=57||65<=c&&c<=70||97<=c&&c<=102}function n(c){return 48<=c&&c<=55}function i(c){return 48<=c&&c<=57}function o(c){if(c===null)return!1;var l=c.length,p=0,d=!1,g;if(!l)return!1;if(g=c[p],(g==="-"||g==="+")&&(g=c[++p]),g==="0"){if(p+1===l)return!0;if(g=c[++p],g==="b"){for(p++;p<l;p++)if(g=c[p],g!=="_"){if(g!=="0"&&g!=="1")return!1;d=!0}return d}if(g==="x"){for(p++;p<l;p++)if(g=c[p],g!=="_"){if(!r(c.charCodeAt(p)))return!1;d=!0}return d}for(;p<l;p++)if(g=c[p],g!=="_"){if(!n(c.charCodeAt(p)))return!1;d=!0}return d}for(;p<l;p++)if(g=c[p],g!=="_"){if(g===":")break;if(!i(c.charCodeAt(p)))return!1;d=!0}return d?g!==":"?!0:/^(:[0-5]?[0-9])+$/.test(c.slice(p)):!1}function s(c){var l=c,p=1,d,g,m=[];return l.indexOf("_")!==-1&&(l=l.replace(/_/g,"")),d=l[0],(d==="-"||d==="+")&&(d==="-"&&(p=-1),l=l.slice(1),d=l[0]),l==="0"?0:d==="0"?l[1]==="b"?p*parseInt(l.slice(2),2):l[1]==="x"?p*parseInt(l,16):p*parseInt(l,8):l.indexOf(":")!==-1?(l.split(":").forEach(function(E){m.unshift(parseInt(E,10))}),l=0,g=1,m.forEach(function(E){l+=E*g,g*=60}),p*l):p*parseInt(l,10)}function a(c){return Object.prototype.toString.call(c)==="[object Number]"&&c%1===0&&!e.isNegativeZero(c)}return Pa=new t.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:s,predicate:a,represent:{binary:function(c){return"0b"+c.toString(2)},octal:function(c){return"0"+c.toString(8)},decimal:function(c){return c.toString(10)},hexadecimal:function(c){return"0x"+c.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Pa}var Oa,mf;function f1(){if(mf)return Oa;mf=1;var e=Zr(),t=ct(),r=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function n(a){return!(a===null||!r.test(a))}function i(a){var c,l,p,d;return c=a.replace(/_/g,"").toLowerCase(),l=c[0]==="-"?-1:1,d=[],0<="+-".indexOf(c[0])&&(c=c.slice(1)),c===".inf"?l===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:c===".nan"?NaN:0<=c.indexOf(":")?(c.split(":").forEach(function(g){d.unshift(parseFloat(g,10))}),c=0,p=1,d.forEach(function(g){c+=g*p,p*=60}),l*c):l*parseFloat(c,10)}function o(a,c){if(isNaN(a))switch(c){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===a)switch(c){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===a)switch(c){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(a))return"-0.0";return a.toString(10)}function s(a){return Object.prototype.toString.call(a)==="[object Number]"&&(a%1!==0||e.isNegativeZero(a))}return Oa=new t.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o,defaultStyle:"lowercase"}),Oa}var Ia,hf;function m1(){if(hf)return Ia;hf=1;var e=Un();return Ia=new e.Schema({include:[l1()],implicit:[u1(),p1(),d1(),f1()]}),Ia}var xa,yf;function h1(){if(yf)return xa;yf=1;var e=Un();return xa=new e.Schema({include:[m1()]}),xa}var Ra,gf;function y1(){if(gf)return Ra;gf=1;var e=ct(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");function r(o){if(o===null)return!1;var s;return s=t.exec(o),s!==null}function n(o){var s,a,c,l,p,d,g,m=0,E=null,_,$,T;if(s=t.exec(o),s===null)throw new Error("Date resolve error");if(a=+s[1],c=+s[2]-1,l=+s[3],!s[4])return new Date(Date.UTC(a,c,l));if(p=+s[4],d=+s[5],g=+s[6],s[7]){for(m=s[7].slice(0,3);m.length<3;)m=m+"0";m=+m}return s[9]&&(_=+s[10],$=+(s[11]||0),E=(_*60+$)*6e4,s[9]==="-"&&(E=-E)),T=new Date(Date.UTC(a,c,l,p,d,g,m)),E&&T.setTime(T.getTime()-E),T}function i(o){return o.toISOString()}return Ra=new e.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:n,instanceOf:Date,represent:i}),Ra}var Aa,vf;function g1(){if(vf)return Aa;vf=1;var e=ct();function t(r){return r==="<<"||r===null}return Aa=new e.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),Aa}var Na={},ln={},bf;function v1(){if(bf)return ln;bf=1,ln.byteLength=a,ln.toByteArray=l,ln.fromByteArray=g;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t[45]=62,t[95]=63;function s(m){var E=m.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _=m.indexOf("=");_===-1&&(_=E);var $=_===E?0:4-_%4;return[_,$]}function a(m){var E=s(m),_=E[0],$=E[1];return(_+$)*3/4-$}function c(m,E,_){return(E+_)*3/4-_}function l(m){var E,_=s(m),$=_[0],T=_[1],w=new r(c(m,$,T)),y=0,S=T>0?$-4:$,h;for(h=0;h<S;h+=4)E=t[m.charCodeAt(h)]<<18|t[m.charCodeAt(h+1)]<<12|t[m.charCodeAt(h+2)]<<6|t[m.charCodeAt(h+3)],w[y++]=E>>16&255,w[y++]=E>>8&255,w[y++]=E&255;return T===2&&(E=t[m.charCodeAt(h)]<<2|t[m.charCodeAt(h+1)]>>4,w[y++]=E&255),T===1&&(E=t[m.charCodeAt(h)]<<10|t[m.charCodeAt(h+1)]<<4|t[m.charCodeAt(h+2)]>>2,w[y++]=E>>8&255,w[y++]=E&255),w}function p(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function d(m,E,_){for(var $,T=[],w=E;w<_;w+=3)$=(m[w]<<16&16711680)+(m[w+1]<<8&65280)+(m[w+2]&255),T.push(p($));return T.join("")}function g(m){for(var E,_=m.length,$=_%3,T=[],w=16383,y=0,S=_-$;y<S;y+=w)T.push(d(m,y,y+w>S?S:y+w));return $===1?(E=m[_-1],T.push(e[E>>2]+e[E<<4&63]+"==")):$===2&&(E=(m[_-2]<<8)+m[_-1],T.push(e[E>>10]+e[E>>4&63]+e[E<<2&63]+"=")),T.join("")}return ln}var Vo={};var wf;function b1(){return wf||(wf=1,Vo.read=function(e,t,r,n,i){var o,s,a=i*8-n-1,c=(1<<a)-1,l=c>>1,p=-7,d=r?i-1:0,g=r?-1:1,m=e[t+d];for(d+=g,o=m&(1<<-p)-1,m>>=-p,p+=a;p>0;o=o*256+e[t+d],d+=g,p-=8);for(s=o&(1<<-p)-1,o>>=-p,p+=n;p>0;s=s*256+e[t+d],d+=g,p-=8);if(o===0)o=1-l;else{if(o===c)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(m?-1:1)*s*Math.pow(2,o-n)},Vo.write=function(e,t,r,n,i,o){var s,a,c,l=o*8-i-1,p=(1<<l)-1,d=p>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:o-1,E=n?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+d>=1?t+=g/c:t+=g*Math.pow(2,1-d),t*c>=2&&(s++,c/=2),s+d>=p?(a=0,s=p):s+d>=1?(a=(t*c-1)*Math.pow(2,i),s=s+d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+m]=a&255,m+=E,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+m]=s&255,m+=E,s/=256,l-=8);e[r+m-E]|=_*128}),Vo}var Sf;function w1(){return Sf||(Sf=1,(function(e){const t=v1(),r=b1(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const u=new Uint8Array(1),f={foo:function(){return 42}};return Object.setPrototypeOf(f,Uint8Array.prototype),Object.setPrototypeOf(u,f),u.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(u){if(u>i)throw new RangeError('The value "'+u+'" is invalid for option "size"');const f=new Uint8Array(u);return Object.setPrototypeOf(f,a.prototype),f}function a(u,f,b){if(typeof u=="number"){if(typeof f=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(u)}return c(u,f,b)}a.poolSize=8192;function c(u,f,b){if(typeof u=="string")return g(u,f);if(ArrayBuffer.isView(u))return E(u);if(u==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u);if(he(u,ArrayBuffer)||u&&he(u.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he(u,SharedArrayBuffer)||u&&he(u.buffer,SharedArrayBuffer)))return _(u,f,b);if(typeof u=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const R=u.valueOf&&u.valueOf();if(R!=null&&R!==u)return a.from(R,f,b);const j=$(u);if(j)return j;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof u[Symbol.toPrimitive]=="function")return a.from(u[Symbol.toPrimitive]("string"),f,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u)}a.from=function(u,f,b){return c(u,f,b)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(u){if(typeof u!="number")throw new TypeError('"size" argument must be of type number');if(u<0)throw new RangeError('The value "'+u+'" is invalid for option "size"')}function p(u,f,b){return l(u),u<=0?s(u):f!==void 0?typeof b=="string"?s(u).fill(f,b):s(u).fill(f):s(u)}a.alloc=function(u,f,b){return p(u,f,b)};function d(u){return l(u),s(u<0?0:T(u)|0)}a.allocUnsafe=function(u){return d(u)},a.allocUnsafeSlow=function(u){return d(u)};function g(u,f){if((typeof f!="string"||f==="")&&(f="utf8"),!a.isEncoding(f))throw new TypeError("Unknown encoding: "+f);const b=y(u,f)|0;let R=s(b);const j=R.write(u,f);return j!==b&&(R=R.slice(0,j)),R}function m(u){const f=u.length<0?0:T(u.length)|0,b=s(f);for(let R=0;R<f;R+=1)b[R]=u[R]&255;return b}function E(u){if(he(u,Uint8Array)){const f=new Uint8Array(u);return _(f.buffer,f.byteOffset,f.byteLength)}return m(u)}function _(u,f,b){if(f<0||u.byteLength<f)throw new RangeError('"offset" is outside of buffer bounds');if(u.byteLength<f+(b||0))throw new RangeError('"length" is outside of buffer bounds');let R;return f===void 0&&b===void 0?R=new Uint8Array(u):b===void 0?R=new Uint8Array(u,f):R=new Uint8Array(u,f,b),Object.setPrototypeOf(R,a.prototype),R}function $(u){if(a.isBuffer(u)){const f=T(u.length)|0,b=s(f);return b.length===0||u.copy(b,0,0,f),b}if(u.length!==void 0)return typeof u.length!="number"||me(u.length)?s(0):m(u);if(u.type==="Buffer"&&Array.isArray(u.data))return m(u.data)}function T(u){if(u>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return u|0}function w(u){return+u!=u&&(u=0),a.alloc(+u)}a.isBuffer=function(f){return f!=null&&f._isBuffer===!0&&f!==a.prototype},a.compare=function(f,b){if(he(f,Uint8Array)&&(f=a.from(f,f.offset,f.byteLength)),he(b,Uint8Array)&&(b=a.from(b,b.offset,b.byteLength)),!a.isBuffer(f)||!a.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(f===b)return 0;let R=f.length,j=b.length;for(let F=0,Q=Math.min(R,j);F<Q;++F)if(f[F]!==b[F]){R=f[F],j=b[F];break}return R<j?-1:j<R?1:0},a.isEncoding=function(f){switch(String(f).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(f,b){if(!Array.isArray(f))throw new TypeError('"list" argument must be an Array of Buffers');if(f.length===0)return a.alloc(0);let R;if(b===void 0)for(b=0,R=0;R<f.length;++R)b+=f[R].length;const j=a.allocUnsafe(b);let F=0;for(R=0;R<f.length;++R){let Q=f[R];if(he(Q,Uint8Array))F+Q.length>j.length?(a.isBuffer(Q)||(Q=a.from(Q)),Q.copy(j,F)):Uint8Array.prototype.set.call(j,Q,F);else if(a.isBuffer(Q))Q.copy(j,F);else throw new TypeError('"list" argument must be an Array of Buffers');F+=Q.length}return j};function y(u,f){if(a.isBuffer(u))return u.length;if(ArrayBuffer.isView(u)||he(u,ArrayBuffer))return u.byteLength;if(typeof u!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof u);const b=u.length,R=arguments.length>2&&arguments[2]===!0;if(!R&&b===0)return 0;let j=!1;for(;;)switch(f){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return U(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return ne(u).length;default:if(j)return R?-1:U(u).length;f=(""+f).toLowerCase(),j=!0}}a.byteLength=y;function S(u,f,b){let R=!1;if((f===void 0||f<0)&&(f=0),f>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,f>>>=0,b<=f))return"";for(u||(u="utf8");;)switch(u){case"hex":return le(this,f,b);case"utf8":case"utf-8":return W(this,f,b);case"ascii":return _e(this,f,b);case"latin1":case"binary":return pe(this,f,b);case"base64":return V(this,f,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,f,b);default:if(R)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),R=!0}}a.prototype._isBuffer=!0;function h(u,f,b){const R=u[f];u[f]=u[b],u[b]=R}a.prototype.swap16=function(){const f=this.length;if(f%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<f;b+=2)h(this,b,b+1);return this},a.prototype.swap32=function(){const f=this.length;if(f%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<f;b+=4)h(this,b,b+3),h(this,b+1,b+2);return this},a.prototype.swap64=function(){const f=this.length;if(f%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<f;b+=8)h(this,b,b+7),h(this,b+1,b+6),h(this,b+2,b+5),h(this,b+3,b+4);return this},a.prototype.toString=function(){const f=this.length;return f===0?"":arguments.length===0?W(this,0,f):S.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(f){if(!a.isBuffer(f))throw new TypeError("Argument must be a Buffer");return this===f?!0:a.compare(this,f)===0},a.prototype.inspect=function(){let f="";const b=e.INSPECT_MAX_BYTES;return f=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(f+=" ... "),"<Buffer "+f+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(f,b,R,j,F){if(he(f,Uint8Array)&&(f=a.from(f,f.offset,f.byteLength)),!a.isBuffer(f))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof f);if(b===void 0&&(b=0),R===void 0&&(R=f?f.length:0),j===void 0&&(j=0),F===void 0&&(F=this.length),b<0||R>f.length||j<0||F>this.length)throw new RangeError("out of range index");if(j>=F&&b>=R)return 0;if(j>=F)return-1;if(b>=R)return 1;if(b>>>=0,R>>>=0,j>>>=0,F>>>=0,this===f)return 0;let Q=F-j,ce=R-b;const ye=Math.min(Q,ce),$e=this.slice(j,F),ge=f.slice(b,R);for(let Se=0;Se<ye;++Se)if($e[Se]!==ge[Se]){Q=$e[Se],ce=ge[Se];break}return Q<ce?-1:ce<Q?1:0};function v(u,f,b,R,j){if(u.length===0)return-1;if(typeof b=="string"?(R=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,me(b)&&(b=j?0:u.length-1),b<0&&(b=u.length+b),b>=u.length){if(j)return-1;b=u.length-1}else if(b<0)if(j)b=0;else return-1;if(typeof f=="string"&&(f=a.from(f,R)),a.isBuffer(f))return f.length===0?-1:O(u,f,b,R,j);if(typeof f=="number")return f=f&255,typeof Uint8Array.prototype.indexOf=="function"?j?Uint8Array.prototype.indexOf.call(u,f,b):Uint8Array.prototype.lastIndexOf.call(u,f,b):O(u,[f],b,R,j);throw new TypeError("val must be string, number or Buffer")}function O(u,f,b,R,j){let F=1,Q=u.length,ce=f.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(u.length<2||f.length<2)return-1;F=2,Q/=2,ce/=2,b/=2}function ye(ge,Se){return F===1?ge[Se]:ge.readUInt16BE(Se*F)}let $e;if(j){let ge=-1;for($e=b;$e<Q;$e++)if(ye(u,$e)===ye(f,ge===-1?0:$e-ge)){if(ge===-1&&(ge=$e),$e-ge+1===ce)return ge*F}else ge!==-1&&($e-=$e-ge),ge=-1}else for(b+ce>Q&&(b=Q-ce),$e=b;$e>=0;$e--){let ge=!0;for(let Se=0;Se<ce;Se++)if(ye(u,$e+Se)!==ye(f,Se)){ge=!1;break}if(ge)return $e}return-1}a.prototype.includes=function(f,b,R){return this.indexOf(f,b,R)!==-1},a.prototype.indexOf=function(f,b,R){return v(this,f,b,R,!0)},a.prototype.lastIndexOf=function(f,b,R){return v(this,f,b,R,!1)};function k(u,f,b,R){b=Number(b)||0;const j=u.length-b;R?(R=Number(R),R>j&&(R=j)):R=j;const F=f.length;R>F/2&&(R=F/2);let Q;for(Q=0;Q<R;++Q){const ce=parseInt(f.substr(Q*2,2),16);if(me(ce))return Q;u[b+Q]=ce}return Q}function D(u,f,b,R){return re(U(f,u.length-b),u,b,R)}function B(u,f,b,R){return re(te(f),u,b,R)}function G(u,f,b,R){return re(ne(f),u,b,R)}function J(u,f,b,R){return re(de(f,u.length-b),u,b,R)}a.prototype.write=function(f,b,R,j){if(b===void 0)j="utf8",R=this.length,b=0;else if(R===void 0&&typeof b=="string")j=b,R=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(R)?(R=R>>>0,j===void 0&&(j="utf8")):(j=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const F=this.length-b;if((R===void 0||R>F)&&(R=F),f.length>0&&(R<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");j||(j="utf8");let Q=!1;for(;;)switch(j){case"hex":return k(this,f,b,R);case"utf8":case"utf-8":return D(this,f,b,R);case"ascii":case"latin1":case"binary":return B(this,f,b,R);case"base64":return G(this,f,b,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,f,b,R);default:if(Q)throw new TypeError("Unknown encoding: "+j);j=(""+j).toLowerCase(),Q=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function V(u,f,b){return f===0&&b===u.length?t.fromByteArray(u):t.fromByteArray(u.slice(f,b))}function W(u,f,b){b=Math.min(u.length,b);const R=[];let j=f;for(;j<b;){const F=u[j];let Q=null,ce=F>239?4:F>223?3:F>191?2:1;if(j+ce<=b){let ye,$e,ge,Se;switch(ce){case 1:F<128&&(Q=F);break;case 2:ye=u[j+1],(ye&192)===128&&(Se=(F&31)<<6|ye&63,Se>127&&(Q=Se));break;case 3:ye=u[j+1],$e=u[j+2],(ye&192)===128&&($e&192)===128&&(Se=(F&15)<<12|(ye&63)<<6|$e&63,Se>2047&&(Se<55296||Se>57343)&&(Q=Se));break;case 4:ye=u[j+1],$e=u[j+2],ge=u[j+3],(ye&192)===128&&($e&192)===128&&(ge&192)===128&&(Se=(F&15)<<18|(ye&63)<<12|($e&63)<<6|ge&63,Se>65535&&Se<1114112&&(Q=Se))}}Q===null?(Q=65533,ce=1):Q>65535&&(Q-=65536,R.push(Q>>>10&1023|55296),Q=56320|Q&1023),R.push(Q),j+=ce}return ae(R)}const ie=4096;function ae(u){const f=u.length;if(f<=ie)return String.fromCharCode.apply(String,u);let b="",R=0;for(;R<f;)b+=String.fromCharCode.apply(String,u.slice(R,R+=ie));return b}function _e(u,f,b){let R="";b=Math.min(u.length,b);for(let j=f;j<b;++j)R+=String.fromCharCode(u[j]&127);return R}function pe(u,f,b){let R="";b=Math.min(u.length,b);for(let j=f;j<b;++j)R+=String.fromCharCode(u[j]);return R}function le(u,f,b){const R=u.length;(!f||f<0)&&(f=0),(!b||b<0||b>R)&&(b=R);let j="";for(let F=f;F<b;++F)j+=ve[u[F]];return j}function L(u,f,b){const R=u.slice(f,b);let j="";for(let F=0;F<R.length-1;F+=2)j+=String.fromCharCode(R[F]+R[F+1]*256);return j}a.prototype.slice=function(f,b){const R=this.length;f=~~f,b=b===void 0?R:~~b,f<0?(f+=R,f<0&&(f=0)):f>R&&(f=R),b<0?(b+=R,b<0&&(b=0)):b>R&&(b=R),b<f&&(b=f);const j=this.subarray(f,b);return Object.setPrototypeOf(j,a.prototype),j};function N(u,f,b){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+f>b)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(f,b,R){f=f>>>0,b=b>>>0,R||N(f,b,this.length);let j=this[f],F=1,Q=0;for(;++Q<b&&(F*=256);)j+=this[f+Q]*F;return j},a.prototype.readUintBE=a.prototype.readUIntBE=function(f,b,R){f=f>>>0,b=b>>>0,R||N(f,b,this.length);let j=this[f+--b],F=1;for(;b>0&&(F*=256);)j+=this[f+--b]*F;return j},a.prototype.readUint8=a.prototype.readUInt8=function(f,b){return f=f>>>0,b||N(f,1,this.length),this[f]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(f,b){return f=f>>>0,b||N(f,2,this.length),this[f]|this[f+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(f,b){return f=f>>>0,b||N(f,2,this.length),this[f]<<8|this[f+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(f,b){return f=f>>>0,b||N(f,4,this.length),(this[f]|this[f+1]<<8|this[f+2]<<16)+this[f+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(f,b){return f=f>>>0,b||N(f,4,this.length),this[f]*16777216+(this[f+1]<<16|this[f+2]<<8|this[f+3])},a.prototype.readBigUInt64LE=Ee(function(f){f=f>>>0,K(f,"offset");const b=this[f],R=this[f+7];(b===void 0||R===void 0)&&X(f,this.length-8);const j=b+this[++f]*2**8+this[++f]*2**16+this[++f]*2**24,F=this[++f]+this[++f]*2**8+this[++f]*2**16+R*2**24;return BigInt(j)+(BigInt(F)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ee(function(f){f=f>>>0,K(f,"offset");const b=this[f],R=this[f+7];(b===void 0||R===void 0)&&X(f,this.length-8);const j=b*2**24+this[++f]*2**16+this[++f]*2**8+this[++f],F=this[++f]*2**24+this[++f]*2**16+this[++f]*2**8+R;return(BigInt(j)<<BigInt(32))+BigInt(F)}),a.prototype.readIntLE=function(f,b,R){f=f>>>0,b=b>>>0,R||N(f,b,this.length);let j=this[f],F=1,Q=0;for(;++Q<b&&(F*=256);)j+=this[f+Q]*F;return F*=128,j>=F&&(j-=Math.pow(2,8*b)),j},a.prototype.readIntBE=function(f,b,R){f=f>>>0,b=b>>>0,R||N(f,b,this.length);let j=b,F=1,Q=this[f+--j];for(;j>0&&(F*=256);)Q+=this[f+--j]*F;return F*=128,Q>=F&&(Q-=Math.pow(2,8*b)),Q},a.prototype.readInt8=function(f,b){return f=f>>>0,b||N(f,1,this.length),this[f]&128?(255-this[f]+1)*-1:this[f]},a.prototype.readInt16LE=function(f,b){f=f>>>0,b||N(f,2,this.length);const R=this[f]|this[f+1]<<8;return R&32768?R|4294901760:R},a.prototype.readInt16BE=function(f,b){f=f>>>0,b||N(f,2,this.length);const R=this[f+1]|this[f]<<8;return R&32768?R|4294901760:R},a.prototype.readInt32LE=function(f,b){return f=f>>>0,b||N(f,4,this.length),this[f]|this[f+1]<<8|this[f+2]<<16|this[f+3]<<24},a.prototype.readInt32BE=function(f,b){return f=f>>>0,b||N(f,4,this.length),this[f]<<24|this[f+1]<<16|this[f+2]<<8|this[f+3]},a.prototype.readBigInt64LE=Ee(function(f){f=f>>>0,K(f,"offset");const b=this[f],R=this[f+7];(b===void 0||R===void 0)&&X(f,this.length-8);const j=this[f+4]+this[f+5]*2**8+this[f+6]*2**16+(R<<24);return(BigInt(j)<<BigInt(32))+BigInt(b+this[++f]*2**8+this[++f]*2**16+this[++f]*2**24)}),a.prototype.readBigInt64BE=Ee(function(f){f=f>>>0,K(f,"offset");const b=this[f],R=this[f+7];(b===void 0||R===void 0)&&X(f,this.length-8);const j=(b<<24)+this[++f]*2**16+this[++f]*2**8+this[++f];return(BigInt(j)<<BigInt(32))+BigInt(this[++f]*2**24+this[++f]*2**16+this[++f]*2**8+R)}),a.prototype.readFloatLE=function(f,b){return f=f>>>0,b||N(f,4,this.length),r.read(this,f,!0,23,4)},a.prototype.readFloatBE=function(f,b){return f=f>>>0,b||N(f,4,this.length),r.read(this,f,!1,23,4)},a.prototype.readDoubleLE=function(f,b){return f=f>>>0,b||N(f,8,this.length),r.read(this,f,!0,52,8)},a.prototype.readDoubleBE=function(f,b){return f=f>>>0,b||N(f,8,this.length),r.read(this,f,!1,52,8)};function z(u,f,b,R,j,F){if(!a.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>j||f<F)throw new RangeError('"value" argument is out of bounds');if(b+R>u.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(f,b,R,j){if(f=+f,b=b>>>0,R=R>>>0,!j){const ce=Math.pow(2,8*R)-1;z(this,f,b,R,ce,0)}let F=1,Q=0;for(this[b]=f&255;++Q<R&&(F*=256);)this[b+Q]=f/F&255;return b+R},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(f,b,R,j){if(f=+f,b=b>>>0,R=R>>>0,!j){const ce=Math.pow(2,8*R)-1;z(this,f,b,R,ce,0)}let F=R-1,Q=1;for(this[b+F]=f&255;--F>=0&&(Q*=256);)this[b+F]=f/Q&255;return b+R},a.prototype.writeUint8=a.prototype.writeUInt8=function(f,b,R){return f=+f,b=b>>>0,R||z(this,f,b,1,255,0),this[b]=f&255,b+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(f,b,R){return f=+f,b=b>>>0,R||z(this,f,b,2,65535,0),this[b]=f&255,this[b+1]=f>>>8,b+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(f,b,R){return f=+f,b=b>>>0,R||z(this,f,b,2,65535,0),this[b]=f>>>8,this[b+1]=f&255,b+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(f,b,R){return f=+f,b=b>>>0,R||z(this,f,b,4,4294967295,0),this[b+3]=f>>>24,this[b+2]=f>>>16,this[b+1]=f>>>8,this[b]=f&255,b+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(f,b,R){return f=+f,b=b>>>0,R||z(this,f,b,4,4294967295,0),this[b]=f>>>24,this[b+1]=f>>>16,this[b+2]=f>>>8,this[b+3]=f&255,b+4};function C(u,f,b,R,j){q(f,R,j,u,b,7);let F=Number(f&BigInt(4294967295));u[b++]=F,F=F>>8,u[b++]=F,F=F>>8,u[b++]=F,F=F>>8,u[b++]=F;let Q=Number(f>>BigInt(32)&BigInt(4294967295));return u[b++]=Q,Q=Q>>8,u[b++]=Q,Q=Q>>8,u[b++]=Q,Q=Q>>8,u[b++]=Q,b}function P(u,f,b,R,j){q(f,R,j,u,b,7);let F=Number(f&BigInt(4294967295));u[b+7]=F,F=F>>8,u[b+6]=F,F=F>>8,u[b+5]=F,F=F>>8,u[b+4]=F;let Q=Number(f>>BigInt(32)&BigInt(4294967295));return u[b+3]=Q,Q=Q>>8,u[b+2]=Q,Q=Q>>8,u[b+1]=Q,Q=Q>>8,u[b]=Q,b+8}a.prototype.writeBigUInt64LE=Ee(function(f,b=0){return C(this,f,b,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ee(function(f,b=0){return P(this,f,b,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(f,b,R,j){if(f=+f,b=b>>>0,!j){const ye=Math.pow(2,8*R-1);z(this,f,b,R,ye-1,-ye)}let F=0,Q=1,ce=0;for(this[b]=f&255;++F<R&&(Q*=256);)f<0&&ce===0&&this[b+F-1]!==0&&(ce=1),this[b+F]=(f/Q>>0)-ce&255;return b+R},a.prototype.writeIntBE=function(f,b,R,j){if(f=+f,b=b>>>0,!j){const ye=Math.pow(2,8*R-1);z(this,f,b,R,ye-1,-ye)}let F=R-1,Q=1,ce=0;for(this[b+F]=f&255;--F>=0&&(Q*=256);)f<0&&ce===0&&this[b+F+1]!==0&&(ce=1),this[b+F]=(f/Q>>0)-ce&255;return b+R},a.prototype.writeInt8=function(f,b,R){return f=+f,b=b>>>0,R||z(this,f,b,1,127,-128),f<0&&(f=255+f+1),this[b]=f&255,b+1},a.prototype.writeInt16LE=function(f,b,R){return f=+f,b=b>>>0,R||z(this,f,b,2,32767,-32768),this[b]=f&255,this[b+1]=f>>>8,b+2},a.prototype.writeInt16BE=function(f,b,R){return f=+f,b=b>>>0,R||z(this,f,b,2,32767,-32768),this[b]=f>>>8,this[b+1]=f&255,b+2},a.prototype.writeInt32LE=function(f,b,R){return f=+f,b=b>>>0,R||z(this,f,b,4,2147483647,-2147483648),this[b]=f&255,this[b+1]=f>>>8,this[b+2]=f>>>16,this[b+3]=f>>>24,b+4},a.prototype.writeInt32BE=function(f,b,R){return f=+f,b=b>>>0,R||z(this,f,b,4,2147483647,-2147483648),f<0&&(f=4294967295+f+1),this[b]=f>>>24,this[b+1]=f>>>16,this[b+2]=f>>>8,this[b+3]=f&255,b+4},a.prototype.writeBigInt64LE=Ee(function(f,b=0){return C(this,f,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ee(function(f,b=0){return P(this,f,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function I(u,f,b,R,j,F){if(b+R>u.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function x(u,f,b,R,j){return f=+f,b=b>>>0,j||I(u,f,b,4),r.write(u,f,b,R,23,4),b+4}a.prototype.writeFloatLE=function(f,b,R){return x(this,f,b,!0,R)},a.prototype.writeFloatBE=function(f,b,R){return x(this,f,b,!1,R)};function H(u,f,b,R,j){return f=+f,b=b>>>0,j||I(u,f,b,8),r.write(u,f,b,R,52,8),b+8}a.prototype.writeDoubleLE=function(f,b,R){return H(this,f,b,!0,R)},a.prototype.writeDoubleBE=function(f,b,R){return H(this,f,b,!1,R)},a.prototype.copy=function(f,b,R,j){if(!a.isBuffer(f))throw new TypeError("argument should be a Buffer");if(R||(R=0),!j&&j!==0&&(j=this.length),b>=f.length&&(b=f.length),b||(b=0),j>0&&j<R&&(j=R),j===R||f.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("sourceEnd out of bounds");j>this.length&&(j=this.length),f.length-b<j-R&&(j=f.length-b+R);const F=j-R;return this===f&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,R,j):Uint8Array.prototype.set.call(f,this.subarray(R,j),b),F},a.prototype.fill=function(f,b,R,j){if(typeof f=="string"){if(typeof b=="string"?(j=b,b=0,R=this.length):typeof R=="string"&&(j=R,R=this.length),j!==void 0&&typeof j!="string")throw new TypeError("encoding must be a string");if(typeof j=="string"&&!a.isEncoding(j))throw new TypeError("Unknown encoding: "+j);if(f.length===1){const Q=f.charCodeAt(0);(j==="utf8"&&Q<128||j==="latin1")&&(f=Q)}}else typeof f=="number"?f=f&255:typeof f=="boolean"&&(f=Number(f));if(b<0||this.length<b||this.length<R)throw new RangeError("Out of range index");if(R<=b)return this;b=b>>>0,R=R===void 0?this.length:R>>>0,f||(f=0);let F;if(typeof f=="number")for(F=b;F<R;++F)this[F]=f;else{const Q=a.isBuffer(f)?f:a.from(f,j),ce=Q.length;if(ce===0)throw new TypeError('The value "'+f+'" is invalid for argument "value"');for(F=0;F<R-b;++F)this[F+b]=Q[F%ce]}return this};const Y={};function Z(u,f,b){Y[u]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:f.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${u}]`,this.stack,delete this.name}get code(){return u}set code(j){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:j,writable:!0})}toString(){return`${this.name} [${u}]: ${this.message}`}}}Z("ERR_BUFFER_OUT_OF_BOUNDS",function(u){return u?`${u} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Z("ERR_INVALID_ARG_TYPE",function(u,f){return`The "${u}" argument must be of type number. Received type ${typeof f}`},TypeError),Z("ERR_OUT_OF_RANGE",function(u,f,b){let R=`The value of "${u}" is out of range.`,j=b;return Number.isInteger(b)&&Math.abs(b)>2**32?j=oe(String(b)):typeof b=="bigint"&&(j=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(j=oe(j)),j+="n"),R+=` It must be ${f}. Received ${j}`,R},RangeError);function oe(u){let f="",b=u.length;const R=u[0]==="-"?1:0;for(;b>=R+4;b-=3)f=`_${u.slice(b-3,b)}${f}`;return`${u.slice(0,b)}${f}`}function A(u,f,b){K(f,"offset"),(u[f]===void 0||u[f+b]===void 0)&&X(f,u.length-(b+1))}function q(u,f,b,R,j,F){if(u>b||u<f){const Q=typeof f=="bigint"?"n":"";let ce;throw f===0||f===BigInt(0)?ce=`>= 0${Q} and < 2${Q} ** ${(F+1)*8}${Q}`:ce=`>= -(2${Q} ** ${(F+1)*8-1}${Q}) and < 2 ** ${(F+1)*8-1}${Q}`,new Y.ERR_OUT_OF_RANGE("value",ce,u)}A(R,j,F)}function K(u,f){if(typeof u!="number")throw new Y.ERR_INVALID_ARG_TYPE(f,"number",u)}function X(u,f,b){throw Math.floor(u)!==u?(K(u,b),new Y.ERR_OUT_OF_RANGE("offset","an integer",u)):f<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${f}`,u)}const ee=/[^+/0-9A-Za-z-_]/g;function ue(u){if(u=u.split("=")[0],u=u.trim().replace(ee,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function U(u,f){f=f||1/0;let b;const R=u.length;let j=null;const F=[];for(let Q=0;Q<R;++Q){if(b=u.charCodeAt(Q),b>55295&&b<57344){if(!j){if(b>56319){(f-=3)>-1&&F.push(239,191,189);continue}else if(Q+1===R){(f-=3)>-1&&F.push(239,191,189);continue}j=b;continue}if(b<56320){(f-=3)>-1&&F.push(239,191,189),j=b;continue}b=(j-55296<<10|b-56320)+65536}else j&&(f-=3)>-1&&F.push(239,191,189);if(j=null,b<128){if((f-=1)<0)break;F.push(b)}else if(b<2048){if((f-=2)<0)break;F.push(b>>6|192,b&63|128)}else if(b<65536){if((f-=3)<0)break;F.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((f-=4)<0)break;F.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return F}function te(u){const f=[];for(let b=0;b<u.length;++b)f.push(u.charCodeAt(b)&255);return f}function de(u,f){let b,R,j;const F=[];for(let Q=0;Q<u.length&&!((f-=2)<0);++Q)b=u.charCodeAt(Q),R=b>>8,j=b%256,F.push(j),F.push(R);return F}function ne(u){return t.toByteArray(ue(u))}function re(u,f,b,R){let j;for(j=0;j<R&&!(j+b>=f.length||j>=u.length);++j)f[j+b]=u[j];return j}function he(u,f){return u instanceof f||u!=null&&u.constructor!=null&&u.constructor.name!=null&&u.constructor.name===f.name}function me(u){return u!==u}const ve=(function(){const u="0123456789abcdef",f=new Array(256);for(let b=0;b<16;++b){const R=b*16;for(let j=0;j<16;++j)f[R+j]=u[b]+u[j]}return f})();function Ee(u){return typeof BigInt>"u"?je:u}function je(){throw new Error("BigInt not supported")}})(Na)),Na}var ka,_f;function S1(){if(_f)return ka;_f=1;var e=w1().Buffer,t=ct(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
95
|
+
\r`;function n(a){if(a===null)return!1;var c,l,p=0,d=a.length,g=r;for(l=0;l<d;l++)if(c=g.indexOf(a.charAt(l)),!(c>64)){if(c<0)return!1;p+=6}return p%8===0}function i(a){var c,l,p=a.replace(/[\r\n=]/g,""),d=p.length,g=r,m=0,E=[];for(c=0;c<d;c++)c%4===0&&c&&(E.push(m>>16&255),E.push(m>>8&255),E.push(m&255)),m=m<<6|g.indexOf(p.charAt(c));return l=d%4*6,l===0?(E.push(m>>16&255),E.push(m>>8&255),E.push(m&255)):l===18?(E.push(m>>10&255),E.push(m>>2&255)):l===12&&E.push(m>>4&255),e?new e(E):E}function o(a){var c="",l=0,p,d,g=a.length,m=r;for(p=0;p<g;p++)p%3===0&&p&&(c+=m[l>>18&63],c+=m[l>>12&63],c+=m[l>>6&63],c+=m[l&63]),l=(l<<8)+a[p];return d=g%3,d===0?(c+=m[l>>18&63],c+=m[l>>12&63],c+=m[l>>6&63],c+=m[l&63]):d===2?(c+=m[l>>10&63],c+=m[l>>4&63],c+=m[l<<2&63],c+=m[64]):d===1&&(c+=m[l>>2&63],c+=m[l<<4&63],c+=m[64],c+=m[64]),c}function s(a){return e&&e.isBuffer(a)}return ka=new t.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o}),ka}var qa,Ef;function _1(){if(Ef)return qa;Ef=1;var e=ct(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(o){if(o===null)return!0;var s=[],a,c,l,p,d,g=o;for(a=0,c=g.length;a<c;a+=1){if(l=g[a],d=!1,r.call(l)!=="[object Object]")return!1;for(p in l)if(t.call(l,p))if(!d)d=!0;else return!1;if(!d)return!1;if(s.indexOf(p)===-1)s.push(p);else return!1}return!0}function i(o){return o!==null?o:[]}return qa=new e.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:i}),qa}var Ca,$f;function E1(){if($f)return Ca;$f=1;var e=ct(),t=Us(),r=Object.prototype.toString;function n(o){if(o===null)return!0;if(o.kind!=t.Kind.SEQ)return!1;var s,a,c,l=o.items;for(s=0,a=l.length;s<a;s+=1)if(c=l[s],r.call(c)!=="[object Object]"||!Array.isArray(c.mappings)||c.mappings.length!==1)return!1;return!0}function i(o){if(o===null||!Array.isArray(o.items))return[];var s,a,c,l=o.items;for(c=t.newItems(),c.parent=o.parent,c.startPosition=o.startPosition,c.endPosition=o.endPosition,s=0,a=l.length;s<a;s+=1){var p=l[s],d=p.mappings[0],g=t.newItems();g.parent=c,g.startPosition=d.key.startPosition,g.endPosition=d.value.startPosition,d.key.parent=g,d.value.parent=g,g.items=[d.key,d.value],c.items.push(g)}return c}return Ca=new e.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:i}),Ca}var Da,Tf;function $1(){if(Tf)return Da;Tf=1;var e=ct(),t=Us();function r(i){return i===null?!0:i.kind==t.Kind.MAP}function n(i){return i!==null?i:{}}return Da=new e.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n}),Da}var ja,Pf;function rl(){if(Pf)return ja;Pf=1;var e=Un(),t=new e.Schema({include:[h1()],implicit:[y1(),g1()],explicit:[S1(),_1(),E1(),$1()]});return ja=t,ja}var Ma,Of;function T1(){if(Of)return Ma;Of=1;var e=ct();function t(){return!0}function r(){}function n(){return""}function i(o){return typeof o>"u"}return Ma=new e.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),Ma}var La,If;function P1(){if(If)return La;If=1;var e=ct();function t(o){if(o===null||o.length===0)return!1;var s=o,a=/\/([gim]*)$/.exec(o),c="";if(s[0]==="/"){if(a&&(c=a[1]),c.length>3||s[s.length-c.length-1]!=="/")return!1;s=s.slice(1,s.length-c.length-1)}try{var l=new RegExp(s,c);return!0}catch{return!1}}function r(o){var s=o,a=/\/([gim]*)$/.exec(o),c="";return s[0]==="/"&&(a&&(c=a[1]),s=s.slice(1,s.length-c.length-1)),new RegExp(s,c)}function n(o){var s="/"+o.source+"/";return o.global&&(s+="g"),o.multiline&&(s+="m"),o.ignoreCase&&(s+="i"),s}function i(o){return Object.prototype.toString.call(o)==="[object RegExp]"}return La=new e.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),La}var Ua,xf;function lg(){if(xf)return Ua;xf=1;var e=Un(),t=new e.Schema({include:[rl()],explicit:[T1(),P1()]});return e.Schema.DEFAULT=t,Ua=t,Ua}var Rf;function O1(){if(Rf)return Ot;Rf=1,Object.defineProperty(Ot,"__esModule",{value:!0});var e=Us(),t=Zr(),r=Ln(),n=o1(),i=rl(),o=lg(),s=Object.prototype.hasOwnProperty,a=1,c=2,l=3,p=4,d=1,g=2,m=3,E=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_=/[\x85\u2028\u2029]/,$=/[,\[\]\{\}]/,T=/^(?:!|!!|![a-z\-]+!)$/i,w=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function y(u){return u===10||u===13}function S(u){return u===9||u===32}function h(u){return u===9||u===32||u===10||u===13}function v(u){return u===44||u===91||u===93||u===123||u===125}function O(u){var f;return 48<=u&&u<=57?u-48:(f=u|32,97<=f&&f<=102?f-97+10:-1)}function k(u){return u===120?2:u===117?4:u===85?8:0}function D(u){return 48<=u&&u<=57?u-48:-1}function B(u){return u===48?"\0":u===97?"\x07":u===98?"\b":u===116||u===9?" ":u===110?`
|
|
96
|
+
`:u===118?"\v":u===102?"\f":u===114?"\r":u===101?"\x1B":u===32?" ":u===34?'"':u===47?"/":u===92?"\\":u===78?"
":u===95?" ":u===76?"\u2028":u===80?"\u2029":""}function G(u){return u<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320)}for(var J=new Array(256),V=new Array(256),W=new Array(256),ie=new Array(256),ae=0;ae<256;ae++)ie[ae]=V[ae]=B(ae),J[ae]=V[ae]?1:0,W[ae]=1,J[ae]||(ie[ae]="\\"+String.fromCharCode(ae));var _e=(function(){function u(f,b){this.errorMap={},this.errors=[],this.lines=[],this.input=f,this.filename=b.filename||null,this.schema=b.schema||o,this.onWarning=b.onWarning||null,this.legacy=b.legacy||!1,this.allowAnyEscape=b.allowAnyEscape||!1,this.ignoreDuplicateKeys=b.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=f.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return u})();function pe(u,f,b){return b===void 0&&(b=!1),new r(f,new n(u.filename,u.input,u.position,u.line,u.position-u.lineStart),b)}function le(u,f,b,R,j){R===void 0&&(R=!1),j===void 0&&(j=!1);var F=x(u,f);if(F){var Q=b+f;if(!u.errorMap[Q]){var ce=new n(u.filename,u.input,f,F.line,f-F.start);j&&(ce.toLineEnd=!0);var ye=new r(b,ce,R);u.errors.push(ye)}}}function L(u,f){var b=pe(u,f),R=b.message+b.mark.position;if(!u.errorMap[R]){u.errors.push(b),u.errorMap[R]=1;for(var j=u.position;;){if(u.position>=u.input.length-1)return;var F=u.input.charAt(u.position);if(F==`
|
|
97
|
+
`){u.position--,u.position==j&&(u.position+=1);return}if(F=="\r"){u.position--,u.position==j&&(u.position+=1);return}u.position++}}}function N(u,f){var b=pe(u,f);u.onWarning&&u.onWarning.call(null,b)}var z={YAML:function(f,b,R){var j,F,Q;f.version!==null&&L(f,"duplication of %YAML directive"),R.length!==1&&L(f,"YAML directive accepts exactly one argument"),j=/^([0-9]+)\.([0-9]+)$/.exec(R[0]),j===null&&L(f,"ill-formed argument of the YAML directive"),F=parseInt(j[1],10),Q=parseInt(j[2],10),F!==1&&L(f,"found incompatible YAML document (version 1.2 is required)"),f.version=R[0],f.checkLineBreaks=Q<2,Q!==2&&L(f,"found incompatible YAML document (version 1.2 is required)")},TAG:function(f,b,R){var j,F;R.length!==2&&L(f,"TAG directive accepts exactly two arguments"),j=R[0],F=R[1],T.test(j)||L(f,"ill-formed tag handle (first argument) of the TAG directive"),s.call(f.tagMap,j)&&L(f,'there is a previously declared suffix for "'+j+'" tag handle'),w.test(F)||L(f,"ill-formed tag prefix (second argument) of the TAG directive"),f.tagMap[j]=F}};function C(u,f,b,R){var j,F,Q,ce,ye=u.result;if(ye.startPosition==-1&&(ye.startPosition=f),f<=b){if(ce=u.input.slice(f,b),R)for(j=0,F=ce.length;j<F;j+=1)Q=ce.charCodeAt(j),Q===9||32<=Q&&Q<=1114111||L(u,"expected valid JSON character");else E.test(ce)&&L(u,"the stream contains non-printable characters");ye.value+=ce,ye.endPosition=b}}function P(u,f,b,R,j){if(R!=null){f===null&&(f={startPosition:R.startPosition,endPosition:j.endPosition,parent:null,errors:[],mappings:[],kind:e.Kind.MAP});var F=e.newMapping(R,j);return F.parent=f,R.parent=F,j!=null&&(j.parent=F),!u.ignoreDuplicateKeys&&f.mappings.forEach(function(Q){Q.key&&Q.key.value===(F.key&&F.key.value)&&(le(u,F.key.startPosition,"duplicate key"),le(u,Q.key.startPosition,"duplicate key"))}),f.mappings.push(F),f.endPosition=j?j.endPosition:R.endPosition+1,f}}function I(u){var f;f=u.input.charCodeAt(u.position),f===10?u.position++:f===13?(u.position++,u.input.charCodeAt(u.position)===10&&u.position++):L(u,"a line break is expected"),u.line+=1,u.lineStart=u.position,u.lines.push({start:u.lineStart,line:u.line})}function x(u,f){for(var b,R=0;R<u.lines.length&&!(u.lines[R].start>f);R++)b=u.lines[R];return b||{start:0,line:0}}function H(u,f,b){for(var R=0,j=u.input.charCodeAt(u.position);j!==0;){for(;S(j);)j===9&&u.errors.push(pe(u,"Using tabs can lead to unpredictable results",!0)),j=u.input.charCodeAt(++u.position);if(f&&j===35)do j=u.input.charCodeAt(++u.position);while(j!==10&&j!==13&&j!==0);if(y(j))for(I(u),j=u.input.charCodeAt(u.position),R++,u.lineIndent=0;j===32;)u.lineIndent++,j=u.input.charCodeAt(++u.position);else break}return b!==-1&&R!==0&&u.lineIndent<b&&N(u,"deficient indentation"),R}function Y(u){var f=u.position,b;return b=u.input.charCodeAt(f),!!((b===45||b===46)&&u.input.charCodeAt(f+1)===b&&u.input.charCodeAt(f+2)===b&&(f+=3,b=u.input.charCodeAt(f),b===0||h(b)))}function Z(u,f,b){b===1?f.value+=" ":b>1&&(f.value+=t.repeat(`
|
|
98
|
+
`,b-1))}function oe(u,f,b){var R,j,F,Q,ce,ye,$e,ge,Se=u.kind,Le=u.result,Te,ke=e.newScalar();if(ke.plainScalar=!0,u.result=ke,Te=u.input.charCodeAt(u.position),h(Te)||v(Te)||Te===35||Te===38||Te===42||Te===33||Te===124||Te===62||Te===39||Te===34||Te===37||Te===64||Te===96||(Te===63||Te===45)&&(j=u.input.charCodeAt(u.position+1),h(j)||b&&v(j)))return!1;for(u.kind="scalar",F=Q=u.position,ce=!1;Te!==0;){if(Te===58){if(j=u.input.charCodeAt(u.position+1),h(j)||b&&v(j))break}else if(Te===35){if(R=u.input.charCodeAt(u.position-1),h(R))break}else{if(u.position===u.lineStart&&Y(u)||b&&v(Te))break;if(y(Te))if(ye=u.line,$e=u.lineStart,ge=u.lineIndent,H(u,!1,-1),u.lineIndent>=f){ce=!0,Te=u.input.charCodeAt(u.position);continue}else{u.position=Q,u.line=ye,u.lineStart=$e,u.lineIndent=ge;break}}if(ce&&(C(u,F,Q,!1),Z(u,ke,u.line-ye),F=Q=u.position,ce=!1),S(Te)||(Q=u.position+1),Te=u.input.charCodeAt(++u.position),u.position>=u.input.length)return!1}return C(u,F,Q,!1),u.result.startPosition!=-1?(ke.rawValue=u.input.substring(ke.startPosition,ke.endPosition),!0):(u.kind=Se,u.result=Le,!1)}function A(u,f){var b,R,j;if(b=u.input.charCodeAt(u.position),b!==39)return!1;var F=e.newScalar();for(F.singleQuoted=!0,u.kind="scalar",u.result=F,F.startPosition=u.position,u.position++,R=j=u.position;(b=u.input.charCodeAt(u.position))!==0;)if(b===39)if(C(u,R,u.position,!0),b=u.input.charCodeAt(++u.position),F.endPosition=u.position,b===39)R=j=u.position,u.position++;else return!0;else y(b)?(C(u,R,j,!0),Z(u,F,H(u,!1,f)),R=j=u.position):u.position===u.lineStart&&Y(u)?L(u,"unexpected end of the document within a single quoted scalar"):(u.position++,j=u.position,F.endPosition=u.position);L(u,"unexpected end of the stream within a single quoted scalar")}function q(u,f){var b,R,j,F,Q,ce;if(ce=u.input.charCodeAt(u.position),ce!==34)return!1;u.kind="scalar";var ye=e.newScalar();for(ye.doubleQuoted=!0,u.result=ye,ye.startPosition=u.position,u.position++,b=R=u.position;(ce=u.input.charCodeAt(u.position))!==0;){if(ce===34)return C(u,b,u.position,!0),u.position++,ye.endPosition=u.position,ye.rawValue=u.input.substring(ye.startPosition,ye.endPosition),!0;if(ce===92){if(C(u,b,u.position,!0),ce=u.input.charCodeAt(++u.position),y(ce))H(u,!1,f);else if(ce<256&&(u.allowAnyEscape?W[ce]:J[ce]))ye.value+=u.allowAnyEscape?ie[ce]:V[ce],u.position++;else if((Q=k(ce))>0){for(j=Q,F=0;j>0;j--)ce=u.input.charCodeAt(++u.position),(Q=O(ce))>=0?F=(F<<4)+Q:L(u,"expected hexadecimal character");ye.value+=G(F),u.position++}else L(u,"unknown escape sequence");b=R=u.position}else y(ce)?(C(u,b,R,!0),Z(u,ye,H(u,!1,f)),b=R=u.position):u.position===u.lineStart&&Y(u)?L(u,"unexpected end of the document within a double quoted scalar"):(u.position++,R=u.position)}L(u,"unexpected end of the stream within a double quoted scalar")}function K(u,f){var b=!0,R,j=u.tag,F,Q=u.anchor,ce,ye,$e,ge,Se,Le,Te,ke,Xe;if(Xe=u.input.charCodeAt(u.position),Xe===91)ye=93,Se=!1,F=e.newItems(),F.startPosition=u.position;else if(Xe===123)ye=125,Se=!0,F=e.newMap(),F.startPosition=u.position;else return!1;for(u.anchor!==null&&(F.anchorId=u.anchor,u.anchorMap[u.anchor]=F),Xe=u.input.charCodeAt(++u.position);Xe!==0;){if(H(u,!0,f),Xe=u.input.charCodeAt(u.position),Xe===ye)return u.position++,u.tag=j,u.anchor=Q,u.kind=Se?"mapping":"sequence",u.result=F,F.endPosition=u.position,!0;if(!b){var Fs=u.position;L(u,"missed comma between flow collection entries"),u.position=Fs+1}if(Te=Le=ke=null,$e=ge=!1,Xe===63&&(ce=u.input.charCodeAt(u.position+1),h(ce)&&($e=ge=!0,u.position++,H(u,!0,f))),R=u.line,ne(u,f,a,!1,!0),Te=u.tag,Le=u.result,H(u,!0,f),Xe=u.input.charCodeAt(u.position),(ge||u.line===R)&&Xe===58&&($e=!0,Xe=u.input.charCodeAt(++u.position),H(u,!0,f),ne(u,f,a,!1,!0),ke=u.result),Se)P(u,F,Te,Le,ke);else if($e){var Fn=P(u,null,Te,Le,ke);Fn.parent=F,F.items.push(Fn)}else Le&&(Le.parent=F),F.items.push(Le);F.endPosition=u.position+1,H(u,!0,f),Xe=u.input.charCodeAt(u.position),Xe===44?(b=!0,Xe=u.input.charCodeAt(++u.position)):b=!1}L(u,"unexpected end of the stream within a flow collection")}function X(u,f){var b,R,j=d,F=!1,Q=f,ce=0,ye=!1,$e,ge;if(ge=u.input.charCodeAt(u.position),ge===124)R=!1;else if(ge===62)R=!0;else return!1;var Se=e.newScalar();for(u.kind="scalar",u.result=Se,Se.startPosition=u.position;ge!==0;)if(ge=u.input.charCodeAt(++u.position),ge===43||ge===45)d===j?j=ge===43?m:g:L(u,"repeat of a chomping mode identifier");else if(($e=D(ge))>=0)$e===0?L(u,"bad explicit indentation width of a block scalar; it cannot be less than one"):F?L(u,"repeat of an indentation width identifier"):(Q=f+$e-1,F=!0);else break;if(S(ge)){do ge=u.input.charCodeAt(++u.position);while(S(ge));if(ge===35)do ge=u.input.charCodeAt(++u.position);while(!y(ge)&&ge!==0)}for(;ge!==0;){for(I(u),u.lineIndent=0,ge=u.input.charCodeAt(u.position);(!F||u.lineIndent<Q)&&ge===32;)u.lineIndent++,ge=u.input.charCodeAt(++u.position);if(!F&&u.lineIndent>Q&&(Q=u.lineIndent),y(ge)){ce++;continue}if(u.lineIndent<Q){j===m?Se.value+=t.repeat(`
|
|
99
|
+
`,ce):j===d&&F&&(Se.value+=`
|
|
100
|
+
`);break}for(R?S(ge)?(ye=!0,Se.value+=t.repeat(`
|
|
101
|
+
`,ce+1)):ye?(ye=!1,Se.value+=t.repeat(`
|
|
102
|
+
`,ce+1)):ce===0?F&&(Se.value+=" "):Se.value+=t.repeat(`
|
|
103
|
+
`,ce):F&&(Se.value+=t.repeat(`
|
|
104
|
+
`,ce+1)),F=!0,ce=0,b=u.position;!y(ge)&&ge!==0;)ge=u.input.charCodeAt(++u.position);C(u,b,u.position,!1)}Se.endPosition=u.position;for(var Le=u.position-1;;){var Te=u.input[Le];if(Te=="\r"||Te==`
|
|
105
|
+
`||Te!=" "&&Te!=" ")break;Le--}return Se.endPosition=Le,Se.rawValue=u.input.substring(Se.startPosition,Se.endPosition),!0}function ee(u,f){var b,R=u.tag,j=u.anchor,F=e.newItems(),Q,ce=!1,ye;for(u.anchor!==null&&(F.anchorId=u.anchor,u.anchorMap[u.anchor]=F),F.startPosition=u.position,ye=u.input.charCodeAt(u.position);ye!==0&&!(ye!==45||(Q=u.input.charCodeAt(u.position+1),!h(Q)));){if(ce=!0,u.position++,H(u,!0,-1)&&u.lineIndent<=f){F.items.push(null),ye=u.input.charCodeAt(u.position);continue}if(b=u.line,ne(u,f,l,!1,!0),u.result&&(u.result.parent=F,F.items.push(u.result)),H(u,!0,-1),ye=u.input.charCodeAt(u.position),(u.line===b||u.lineIndent>f)&&ye!==0)L(u,"bad indentation of a sequence entry");else if(u.lineIndent<f)break}return F.endPosition=u.position,ce?(u.tag=R,u.anchor=j,u.kind="sequence",u.result=F,F.endPosition=u.position,!0):!1}function ue(u,f,b){var R,j,F,Q=u.tag,ce=u.anchor,ye=e.newMap(),$e=null,ge=null,Se=null,Le=!1,Te=!1,ke;for(ye.startPosition=u.position,u.anchor!==null&&(ye.anchorId=u.anchor,u.anchorMap[u.anchor]=ye),ke=u.input.charCodeAt(u.position);ke!==0;){if(R=u.input.charCodeAt(u.position+1),F=u.line,(ke===63||ke===58)&&h(R))ke===63?(Le&&(P(u,ye,$e,ge,null),$e=ge=Se=null),Te=!0,Le=!0,j=!0):Le?(Le=!1,j=!0):L(u,"incomplete explicit mapping pair; a key node is missed"),u.position+=1,ke=R;else if(ne(u,b,c,!1,!0))if(u.line===F){for(ke=u.input.charCodeAt(u.position);S(ke);)ke=u.input.charCodeAt(++u.position);if(ke===58)ke=u.input.charCodeAt(++u.position),h(ke)||L(u,"a whitespace character is expected after the key-value separator within a block mapping"),Le&&(P(u,ye,$e,ge,null),$e=ge=Se=null),Te=!0,Le=!1,j=!1,$e=u.tag,ge=u.result;else{if(u.position==u.lineStart&&Y(u))break;if(Te)L(u,"can not read an implicit mapping pair; a colon is missed");else return u.tag=Q,u.anchor=ce,!0}}else if(Te){for(L(u,"can not read a block mapping entry; a multiline key may not be an implicit key");u.position>0;)if(ke=u.input.charCodeAt(--u.position),y(ke)){u.position++;break}}else return u.tag=Q,u.anchor=ce,!0;else break;if((u.line===F||u.lineIndent>f)&&(ne(u,f,p,!0,j)&&(Le?ge=u.result:Se=u.result),Le||(P(u,ye,$e,ge,Se),$e=ge=Se=null),H(u,!0,-1),ke=u.input.charCodeAt(u.position)),u.lineIndent>f&&ke!==0)L(u,"bad indentation of a mapping entry");else if(u.lineIndent<f)break}return Le&&P(u,ye,$e,ge,null),Te&&(u.tag=Q,u.anchor=ce,u.kind="mapping",u.result=ye),Te}function U(u){var f,b=!1,R=!1,j,F,Q;if(Q=u.input.charCodeAt(u.position),Q!==33)return!1;if(u.tag!==null&&L(u,"duplication of a tag property"),Q=u.input.charCodeAt(++u.position),Q===60?(b=!0,Q=u.input.charCodeAt(++u.position)):Q===33?(R=!0,j="!!",Q=u.input.charCodeAt(++u.position)):j="!",f=u.position,b){do Q=u.input.charCodeAt(++u.position);while(Q!==0&&Q!==62);u.position<u.length?(F=u.input.slice(f,u.position),Q=u.input.charCodeAt(++u.position)):L(u,"unexpected end of the stream within a verbatim tag")}else{for(;Q!==0&&!h(Q);)Q===33&&(R?L(u,"tag suffix cannot contain exclamation marks"):(j=u.input.slice(f-1,u.position+1),T.test(j)||L(u,"named tag handle cannot contain such characters"),R=!0,f=u.position+1)),Q=u.input.charCodeAt(++u.position);F=u.input.slice(f,u.position),$.test(F)&&L(u,"tag suffix cannot contain flow indicator characters")}return F&&!w.test(F)&&L(u,"tag name cannot contain such characters: "+F),b?u.tag=F:s.call(u.tagMap,j)?u.tag=u.tagMap[j]+F:j==="!"?u.tag="!"+F:j==="!!"?u.tag="tag:yaml.org,2002:"+F:L(u,'undeclared tag handle "'+j+'"'),!0}function te(u){var f,b;if(b=u.input.charCodeAt(u.position),b!==38)return!1;for(u.anchor!==null&&L(u,"duplication of an anchor property"),b=u.input.charCodeAt(++u.position),f=u.position;b!==0&&!h(b)&&!v(b);)b=u.input.charCodeAt(++u.position);return u.position===f&&L(u,"name of an anchor node must contain at least one character"),u.anchor=u.input.slice(f,u.position),!0}function de(u){var f,b;u.length,u.input;var R;if(R=u.input.charCodeAt(u.position),R!==42)return!1;for(R=u.input.charCodeAt(++u.position),f=u.position;R!==0&&!h(R)&&!v(R);)R=u.input.charCodeAt(++u.position);return u.position<=f&&(L(u,"name of an alias node must contain at least one character"),u.position=f+1),b=u.input.slice(f,u.position),u.anchorMap.hasOwnProperty(b)||(L(u,'unidentified alias "'+b+'"'),u.position<=f&&(u.position=f+1)),u.result=e.newAnchorRef(b,f,u.position,u.anchorMap[b]),H(u,!0,-1),!0}function ne(u,f,b,R,j){var F,Q,ce,ye=1,$e=!1,ge=!1,Se,Le,Te,ke,Xe;u.tag=null,u.anchor=null,u.kind=null,u.result=null,F=Q=ce=p===b||l===b,R&&H(u,!0,-1)&&($e=!0,u.lineIndent>f?ye=1:u.lineIndent===f?ye=0:u.lineIndent<f&&(ye=-1));var Fs=u.position;if(u.position-u.lineStart,ye===1)for(;U(u)||te(u);)H(u,!0,-1)?($e=!0,ce=F,u.lineIndent>f?ye=1:u.lineIndent===f?ye=0:u.lineIndent<f&&(ye=-1)):ce=!1;if(ce&&(ce=$e||j),(ye===1||p===b)&&(a===b||c===b?ke=f:ke=f+1,Xe=u.position-u.lineStart,ye===1?ce&&(ee(u,Xe)||ue(u,Xe,ke))||K(u,ke)?ge=!0:(Q&&X(u,ke)||A(u,ke)||q(u,ke)?ge=!0:de(u)?(ge=!0,(u.tag!==null||u.anchor!==null)&&L(u,"alias node should not have any properties")):oe(u,ke,a===b)&&(ge=!0,u.tag===null&&(u.tag="?")),u.anchor!==null&&(u.anchorMap[u.anchor]=u.result,u.result.anchorId=u.anchor)):ye===0&&(ge=ce&&ee(u,Xe))),u.tag!==null&&u.tag!=="!")if(u.tag=="!include")u.result||(u.result=e.newScalar(),u.result.startPosition=u.position,u.result.endPosition=u.position,L(u,"!include without value")),u.result.kind=e.Kind.INCLUDE_REF;else if(u.tag==="?")for(Se=0,Le=u.implicitTypes.length;Se<Le;Se+=1){Te=u.implicitTypes[Se];var Fn=u.result.value;if(Te.resolve(Fn)){u.result.valueObject=Te.construct(u.result.value),u.tag=Te.tag,u.anchor!==null&&(u.result.anchorId=u.anchor,u.anchorMap[u.anchor]=u.result);break}}else s.call(u.typeMap,u.tag)?(Te=u.typeMap[u.tag],u.result!==null&&Te.kind!==u.kind&&L(u,"unacceptable node kind for !<"+u.tag+'> tag; it should be "'+Te.kind+'", not "'+u.kind+'"'),Te.resolve(u.result)?(u.result=Te.construct(u.result),u.anchor!==null&&(u.result.anchorId=u.anchor,u.anchorMap[u.anchor]=u.result)):L(u,"cannot resolve a node with !<"+u.tag+"> explicit tag")):le(u,Fs,"unknown tag <"+u.tag+">",!1,!0);return u.tag!==null||u.anchor!==null||ge}function re(u){var f=u.position,b,R,j,F=!1,Q;for(u.version=null,u.checkLineBreaks=u.legacy,u.tagMap={},u.anchorMap={};(Q=u.input.charCodeAt(u.position))!==0&&(H(u,!0,-1),Q=u.input.charCodeAt(u.position),!(u.lineIndent>0||Q!==37));){for(F=!0,Q=u.input.charCodeAt(++u.position),b=u.position;Q!==0&&!h(Q);)Q=u.input.charCodeAt(++u.position);for(R=u.input.slice(b,u.position),j=[],R.length<1&&L(u,"directive name must not be less than one character in length");Q!==0;){for(;S(Q);)Q=u.input.charCodeAt(++u.position);if(Q===35){do Q=u.input.charCodeAt(++u.position);while(Q!==0&&!y(Q));break}if(y(Q))break;for(b=u.position;Q!==0&&!h(Q);)Q=u.input.charCodeAt(++u.position);j.push(u.input.slice(b,u.position))}Q!==0&&I(u),s.call(z,R)?z[R](u,R,j):(N(u,'unknown document directive "'+R+'"'),u.position++)}if(H(u,!0,-1),u.lineIndent===0&&u.input.charCodeAt(u.position)===45&&u.input.charCodeAt(u.position+1)===45&&u.input.charCodeAt(u.position+2)===45?(u.position+=3,H(u,!0,-1)):F&&L(u,"directives end mark is expected"),ne(u,u.lineIndent-1,p,!1,!0),H(u,!0,-1),u.checkLineBreaks&&_.test(u.input.slice(f,u.position))&&N(u,"non-ASCII line breaks are interpreted as content"),u.documents.push(u.result),u.position===u.lineStart&&Y(u)){u.input.charCodeAt(u.position)===46&&(u.position+=3,H(u,!0,-1));return}if(u.position<u.length-1)L(u,"end of the stream or a document separator is expected");else return}function he(u,f){u=String(u),f=f||{};var b=u.length;b!==0&&(u.charCodeAt(b-1)!==10&&u.charCodeAt(b-1)!==13&&(u+=`
|
|
106
|
+
`),u.charCodeAt(0)===65279&&(u=u.slice(1)));var R=new _e(u,f);for(R.input+="\0";R.input.charCodeAt(R.position)===32;)R.lineIndent+=1,R.position+=1;for(;R.position<R.length-1;){var j=R.position;if(re(R),R.position<=j)for(;R.position<R.length-1;R.position++){var F=R.input.charAt(R.position);if(F==`
|
|
107
|
+
`)break}}var Q=R.documents,ce=Q.length;ce>0&&(Q[ce-1].endPosition=b);for(var ye=0,$e=Q;ye<$e.length;ye++){var ge=$e[ye];ge.errors=R.errors,ge.startPosition>ge.endPosition&&(ge.startPosition=ge.endPosition)}return Q}function me(u,f,b){b===void 0&&(b={});var R=he(u,b),j,F;for(j=0,F=R.length;j<F;j+=1)f(R[j])}Ot.loadAll=me;function ve(u,f){f===void 0&&(f={});var b=he(u,f);if(b.length!==0){if(b.length===1)return b[0];var R=new r("expected a single document in the stream, but found more");return R.mark=new n("","",0,0,0),R.mark.position=b[0].endPosition,b[0].errors.push(R),b[0]}}Ot.load=ve;function Ee(u,f,b){b===void 0&&(b={}),me(u,f,t.extend({schema:i},b))}Ot.safeLoadAll=Ee;function je(u,f){return f===void 0&&(f={}),ve(u,t.extend({schema:i},f))}return Ot.safeLoad=je,Ot.loadAll=me,Ot.load=ve,Ot.safeLoadAll=Ee,Ot.safeLoad=je,Ot}var un={},Af;function I1(){if(Af)return un;Af=1,Object.defineProperty(un,"__esModule",{value:!0});var e=Zr(),t=Ln(),r=lg(),n=rl(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=9,a=10,c=13,l=32,p=33,d=34,g=35,m=37,E=38,_=39,$=42,T=44,w=45,y=58,S=62,h=63,v=64,O=91,k=93,D=96,B=123,G=124,J=125,V={};V[0]="\\0",V[7]="\\a",V[8]="\\b",V[9]="\\t",V[10]="\\n",V[11]="\\v",V[12]="\\f",V[13]="\\r",V[27]="\\e",V[34]='\\"',V[92]="\\\\",V[133]="\\N",V[160]="\\_",V[8232]="\\L",V[8233]="\\P";var W=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function ie(U,te){var de,ne,re,he,me,ve,Ee;if(te===null)return{};for(de={},ne=Object.keys(te),re=0,he=ne.length;re<he;re+=1)me=ne[re],ve=String(te[me]),me.slice(0,2)==="!!"&&(me="tag:yaml.org,2002:"+me.slice(2)),Ee=U.compiledTypeMap[me],Ee&&o.call(Ee.styleAliases,ve)&&(ve=Ee.styleAliases[ve]),de[me]=ve;return de}function ae(U){var te,de,ne;if(te=U.toString(16).toUpperCase(),U<=255)de="x",ne=2;else if(U<=65535)de="u",ne=4;else if(U<=4294967295)de="U",ne=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+de+e.repeat("0",ne-te.length)+te}function _e(U){this.schema=U.schema||r,this.indent=Math.max(1,U.indent||2),this.skipInvalid=U.skipInvalid||!1,this.flowLevel=e.isNothing(U.flowLevel)?-1:U.flowLevel,this.styleMap=ie(this.schema,U.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function pe(U,te){for(var de=e.repeat(" ",te),ne=0,re=-1,he="",me,ve=U.length;ne<ve;)re=U.indexOf(`
|
|
108
|
+
`,ne),re===-1?(me=U.slice(ne),ne=ve):(me=U.slice(ne,re+1),ne=re+1),me.length&&me!==`
|
|
109
|
+
`&&(he+=de),he+=me;return he}function le(U,te){return`
|
|
110
|
+
`+e.repeat(" ",U.indent*te)}function L(U,te){var de,ne,re;for(de=0,ne=U.implicitTypes.length;de<ne;de+=1)if(re=U.implicitTypes[de],re.resolve(te))return!0;return!1}function N(U){this.source=U,this.result="",this.checkpoint=0}N.prototype.takeUpTo=function(U){var te;if(U<this.checkpoint)throw te=new Error("position should be > checkpoint"),te.position=U,te.checkpoint=this.checkpoint,te;return this.result+=this.source.slice(this.checkpoint,U),this.checkpoint=U,this},N.prototype.escapeChar=function(){var U,te;return U=this.source.charCodeAt(this.checkpoint),te=V[U]||ae(U),this.result+=te,this.checkpoint+=1,this},N.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function z(U,te,de){var ne,re,he,me,ve,Ee,je,u,f,b,R,j,F,Q,ce,ye,$e,ge,Se,Le,Te;if(te.length===0){U.dump="''";return}if(te.indexOf("!include")==0){U.dump=""+te;return}if(te.indexOf("!$$$novalue")==0){U.dump="";return}if(W.indexOf(te)!==-1){U.dump="'"+te+"'";return}for(ne=!0,re=te.length?te.charCodeAt(0):0,he=l===re||l===te.charCodeAt(te.length-1),(w===re||h===re||v===re||D===re)&&(ne=!1),he?(ne=!1,me=!1,ve=!1):(me=!0,ve=!0),Ee=!0,je=new N(te),u=!1,f=0,b=0,R=U.indent*de,j=80,R<40?j-=R:j=40,Q=0;Q<te.length;Q++){if(F=te.charCodeAt(Q),ne)if(!I(F))ne=!1;else continue;Ee&&F===_&&(Ee=!1),ce=V[F],ye=x(F),!(!ce&&!ye)&&(F!==a&&F!==d&&F!==_?(me=!1,ve=!1):F===a&&(u=!0,Ee=!1,Q>0&&($e=te.charCodeAt(Q-1),$e===l&&(ve=!1,me=!1)),me&&(ge=Q-f,f=Q,ge>b&&(b=ge))),F!==d&&(Ee=!1),je.takeUpTo(Q),je.escapeChar())}if(ne&&L(U,te)&&(ne=!1),Se="",(me||ve)&&(Le=0,te.charCodeAt(te.length-1)===a&&(Le+=1,te.charCodeAt(te.length-2)===a&&(Le+=1)),Le===0?Se="-":Le===2&&(Se="+")),ve&&b<j&&(me=!1),u||(ve=!1),ne)U.dump=te;else if(Ee)U.dump="'"+te+"'";else if(me)Te=C(te,j),U.dump=">"+Se+`
|
|
111
|
+
`+pe(Te,R);else if(ve)Se||(te=te.replace(/\n$/,"")),U.dump="|"+Se+`
|
|
112
|
+
`+pe(te,R);else if(je)je.finish(),U.dump='"'+je.result+'"';else throw new Error("Failed to dump scalar value")}function C(U,te){var de="",ne=0,re=U.length,he=/\n+$/.exec(U),me;for(he&&(re=he.index+1);ne<re;)me=U.indexOf(`
|
|
113
|
+
`,ne),me>re||me===-1?(de&&(de+=`
|
|
114
|
+
|
|
115
|
+
`),de+=P(U.slice(ne,re),te),ne=re):(de&&(de+=`
|
|
116
|
+
|
|
117
|
+
`),de+=P(U.slice(ne,me),te),ne=me+1);return he&&he[0]!==`
|
|
118
|
+
`&&(de+=he[0]),de}function P(U,te){if(U==="")return U;for(var de=/[^\s] [^\s]/g,ne="",re=0,he=0,me=de.exec(U),ve,Ee,je;me;)ve=me.index,ve-he>te&&(re!==he?Ee=re:Ee=ve,ne&&(ne+=`
|
|
119
|
+
`),je=U.slice(he,Ee),ne+=je,he=Ee+1),re=ve+1,me=de.exec(U);return ne&&(ne+=`
|
|
120
|
+
`),he!==re&&U.length-he>te?ne+=U.slice(he,re)+`
|
|
121
|
+
`+U.slice(re+1):ne+=U.slice(he),ne}function I(U){return s!==U&&a!==U&&c!==U&&T!==U&&O!==U&&k!==U&&B!==U&&J!==U&&g!==U&&E!==U&&$!==U&&p!==U&&G!==U&&S!==U&&_!==U&&d!==U&&m!==U&&y!==U&&!V[U]&&!x(U)}function x(U){return!(32<=U&&U<=126||U===133||160<=U&&U<=55295||57344<=U&&U<=65533||65536<=U&&U<=1114111)}function H(U,te,de){var ne="",re=U.tag,he,me;for(he=0,me=de.length;he<me;he+=1)q(U,te,de[he],!1,!1)&&(he!==0&&(ne+=", "),ne+=U.dump);U.tag=re,U.dump="["+ne+"]"}function Y(U,te,de,ne){var re="",he=U.tag,me,ve;for(me=0,ve=de.length;me<ve;me+=1)q(U,te+1,de[me],!0,!0)&&((!ne||me!==0)&&(re+=le(U,te)),re+="- "+U.dump);U.tag=he,U.dump=re||"[]"}function Z(U,te,de){var ne="",re=U.tag,he=Object.keys(de),me,ve,Ee,je,u;for(me=0,ve=he.length;me<ve;me+=1)u="",me!==0&&(u+=", "),Ee=he[me],je=de[Ee],q(U,te,Ee,!1,!1)&&(U.dump.length>1024&&(u+="? "),u+=U.dump+": ",q(U,te,je,!1,!1)&&(u+=U.dump,ne+=u));U.tag=re,U.dump="{"+ne+"}"}function oe(U,te,de,ne){var re="",he=U.tag,me=Object.keys(de),ve,Ee,je,u,f,b;for(ve=0,Ee=me.length;ve<Ee;ve+=1)b="",(!ne||ve!==0)&&(b+=le(U,te)),je=me[ve],u=de[je],q(U,te+1,je,!0,!0)&&(f=U.tag!==null&&U.tag!=="?"||U.dump&&U.dump.length>1024,f&&(U.dump&&a===U.dump.charCodeAt(0)?b+="?":b+="? "),b+=U.dump,f&&(b+=le(U,te)),q(U,te+1,u,!0,f)&&(U.dump&&a===U.dump.charCodeAt(0)?b+=":":b+=": ",b+=U.dump,re+=b));U.tag=he,U.dump=re||"{}"}function A(U,te,de){var ne,re,he,me,ve,Ee;for(re=de?U.explicitTypes:U.implicitTypes,he=0,me=re.length;he<me;he+=1)if(ve=re[he],(ve.instanceOf||ve.predicate)&&(!ve.instanceOf||typeof te=="object"&&te instanceof ve.instanceOf)&&(!ve.predicate||ve.predicate(te))){if(U.tag=de?ve.tag:"?",ve.represent){if(Ee=U.styleMap[ve.tag]||ve.defaultStyle,i.call(ve.represent)==="[object Function]")ne=ve.represent(te,Ee);else if(o.call(ve.represent,Ee))ne=ve.represent[Ee](te,Ee);else throw new t("!<"+ve.tag+'> tag resolver accepts not "'+Ee+'" style');U.dump=ne}return!0}return!1}function q(U,te,de,ne,re){U.tag=null,U.dump=de,A(U,de,!1)||A(U,de,!0);var he=i.call(U.dump);ne&&(ne=0>U.flowLevel||U.flowLevel>te),(U.tag!==null&&U.tag!=="?"||U.indent!==2&&te>0)&&(re=!1);var me=he==="[object Object]"||he==="[object Array]",ve,Ee;if(me&&(ve=U.duplicates.indexOf(de),Ee=ve!==-1),Ee&&U.usedDuplicates[ve])U.dump="*ref_"+ve;else{if(me&&Ee&&!U.usedDuplicates[ve]&&(U.usedDuplicates[ve]=!0),he==="[object Object]")ne&&Object.keys(U.dump).length!==0?(oe(U,te,U.dump,re),Ee&&(U.dump="&ref_"+ve+(te===0?`
|
|
122
|
+
`:"")+U.dump)):(Z(U,te,U.dump),Ee&&(U.dump="&ref_"+ve+" "+U.dump));else if(he==="[object Array]")ne&&U.dump.length!==0?(Y(U,te,U.dump,re),Ee&&(U.dump="&ref_"+ve+(te===0?`
|
|
123
|
+
`:"")+U.dump)):(H(U,te,U.dump),Ee&&(U.dump="&ref_"+ve+" "+U.dump));else if(he==="[object String]")U.tag!=="?"&&z(U,U.dump,te);else{if(U.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+he)}U.tag!==null&&U.tag!=="?"&&(U.dump="!<"+U.tag+"> "+U.dump)}return!0}function K(U,te){var de=[],ne=[],re,he;for(X(U,de,ne),re=0,he=ne.length;re<he;re+=1)te.duplicates.push(de[ne[re]]);te.usedDuplicates=new Array(he)}function X(U,te,de){i.call(U);var ne,re,he;if(U!==null&&typeof U=="object")if(re=te.indexOf(U),re!==-1)de.indexOf(re)===-1&&de.push(re);else if(te.push(U),Array.isArray(U))for(re=0,he=U.length;re<he;re+=1)X(U[re],te,de);else for(ne=Object.keys(U),re=0,he=ne.length;re<he;re+=1)X(U[ne[re]],te,de)}function ee(U,te){te=te||{};var de=new _e(te);return K(U,de),q(de,0,U,!0,!0)?de.dump+`
|
|
124
|
+
`:""}un.dump=ee;function ue(U,te){return ee(U,e.extend({schema:n},te))}return un.safeDump=ue,un}var Fa={},Nf;function x1(){return Nf||(Nf=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a){if(["true","True","TRUE"].lastIndexOf(a)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(a)>=0)return!1;throw'Invalid boolean "'+a+'"'}e.parseYamlBoolean=t;function r(a){return a.lastIndexOf("0o",0)===0?parseInt(a.substring(2),8):parseInt(a)}function n(a){var c=r(a);if(isNaN(c))throw'Invalid integer "'+a+'"';return c}e.parseYamlInteger=n;function i(a){if([".nan",".NaN",".NAN"].lastIndexOf(a)>=0)return NaN;var c=/^([-+])?(?:\.inf|\.Inf|\.INF)$/,l=c.exec(a);if(l)return l[1]==="-"?-1/0:1/0;var p=parseFloat(a);if(!isNaN(p))return p;throw'Invalid float "'+a+'"'}e.parseYamlFloat=i;var o;(function(a){a[a.null=0]="null",a[a.bool=1]="bool",a[a.int=2]="int",a[a.float=3]="float",a[a.string=4]="string"})(o=e.ScalarType||(e.ScalarType={}));function s(a){if(a===void 0)return o.null;if(a.doubleQuoted||!a.plainScalar||a.singleQuoted)return o.string;var c=a.value;if(["null","Null","NULL","~",""].indexOf(c)>=0||c==null)return o.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(c)>=0)return o.bool;var l=/^[-+]?[0-9]+$/,p=/^0o[0-7]+$/,d=/^0x[0-9a-fA-F]+$/;if(l.test(c)||p.test(c)||d.test(c))return o.int;var g=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,m=/^[-+]?(\.inf|\.Inf|\.INF)$/;return g.test(c)||m.test(c)||[".nan",".NaN",".NAN"].indexOf(c)>=0?o.float:o.string}e.determineScalarType=s})(Fa)),Fa}var kf;function R1(){return kf||(kf=1,(function(e){function t(i){for(var o in i)e.hasOwnProperty(o)||(e[o]=i[o])}Object.defineProperty(e,"__esModule",{value:!0});var r=O1();e.load=r.load,e.loadAll=r.loadAll,e.safeLoad=r.safeLoad,e.safeLoadAll=r.safeLoadAll;var n=I1();e.dump=n.dump,e.safeDump=n.safeDump,e.YAMLException=Ln(),t(Us()),t(x1())})(ya)),ya}var fn=R1();const A1=150,N1=3;function fc(e,t){Ya.enabled=t;const{start:r,end:n={line:r.line,col:r.col+1},source:i}=e,o=i.getLines(),s=r.line,a=Math.max(Math.min(n.line,o.length),r.line);let c=Math.max(a-s-N1+1,0);c<2&&(c=0);const l=[];let p=0;for(let g=s;g<=a&&!(c>0&&g>=a-c);g++){const m=o[g-1]||"";m!==""&&(p=hs(m));const E=g===s?r.col-1:p,_=g===a?n.col-1:m.length;l.push([`${g}`,d(m,E,_,qe.red)]),t||l.push(["",qf(m,E,_)])}return c>0&&(l.push(["…",`${nl(p)}${qe.gray(`< ${c} more lines >`)}`]),l.push([`${a}`,d(o[a-1],-1,n.col-1,qe.red)]),t||l.push(["",qf(o[a-1],-1,n.col-1)])),k1([[`${s-2}`,d(o[s-1-2])],[`${s-1}`,d(o[s-1-1])],...l,[`${a+1}`,d(o[a-1+1])],[`${a+2}`,d(o[a-1+2])]]);function d(g,m=-1,E=1/0,_=qe.gray){return!t||!g?g:(m===-1&&(m=hs(g)),E=Math.min(E,g.length),g.substr(0,m)+_(g.substring(m,E))+g.substr(E))}}function k1(e){const t=e.filter(([i,o])=>o!==void 0),r=Math.max(...t.map(([i])=>i.length)),n=Math.min(...t.map(([i,o])=>o===""?1/0:hs(o)));return t.map(([i,o])=>qe.gray(C1(r,i)+" |")+(o?" "+q1(o.substring(n)):"")).join(`
|
|
125
|
+
`)}function q1(e,t=A1){const r=e.length-t;if(r>0){const n=qe.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function qf(e,t=-1,r=1/0){return t===-1&&(t=hs(e)),r=Math.min(r,e.length),nl(t)+"^".repeat(Math.max(r-t,1))}function nl(e){return" ".repeat(e)}function C1(e,t){return nl(e-t.length)+t}function hs(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function cr(e){if(e.pointer===void 0)return e;const{source:t,pointer:r,reportOnKey:n}=e,i=t.getAst(fn.safeLoad),o=ug(i,r,!!n);return{...e,pointer:void 0,...D1(t.body,o?.startPosition??1,o?.endPosition??1)}}function D1(e,t,r){let n=1,i=1,o={line:1,col:1};for(let a=0;a<r-1;a++){if(a===t-1&&(o={line:n,col:i+1}),e[a]===`
|
|
126
|
+
`){n++,i=1,a===t-1&&(o={line:n,col:i}),e[a+1]==="\r"&&a++;continue}i++}const s=t===r?{...o}:{line:n,col:i+1};return{start:o,end:s}}function ug(e,t,r){const n=M.parsePointer(t.substr(2));if(e===void 0)return;let i=e;for(const o of n)if(i.kind===fn.Kind.MAP){const s=i.mappings.find(a=>a.key.value===o);if(!s||(i=s,!s?.value))break;i=s.value}else if(i.kind===fn.Kind.SEQ){const s=i.items[parseInt(o,10)];if(!s)break;i=s}if(r){const o=i.parent;return!o||o.kind===fn.Kind.SEQ?i:o.kind===fn.Kind.MAPPING?o.key:i}else return i}const j1={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},Cf={warn:e=>qe.bgYellow(qe.black(e)),error:qe.bgRed},pg={warn:qe.yellow,error:qe.red},jr={warn:"Warning",error:"Error"},M1={error:"critical",warn:"minor"},L1=+(M.env.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function ys(e){return e==="error"?1:2}function dg(e){let t=0,r=0,n=0;for(const i of e){if(i.ignored){n++;continue}i.severity==="error"&&t++,i.severity==="warn"&&r++}return{errors:t,warnings:r,ignored:n}}function U1(e,t){const{maxProblems:r=100,cwd:n=M.isBrowser?"":process.cwd(),format:i="codeframe",color:o=Ya.enabled,totals:s=dg(e),version:a="2.0",command:c}=t;Ya.enabled=o;const l=e.length;e=e.filter(y=>!y.ignored);const p=l-e.length;if(e=e.sort((y,S)=>ys(y.severity)-ys(S.severity)).slice(0,r),!l&&i!=="json"&&i!=="junit")return;switch(i){case"json":g();break;case"codeframe":for(let y=0;y<e.length;y++){const S=e[y];c==="bundle"?Ne.info(`${E(S,y)}
|
|
127
|
+
`):Ne.output(`${E(S,y)}
|
|
128
|
+
`)}break;case"stylish":{const y=Va(e);for(const[S,{ruleIdPad:h,locationPad:v,fileProblems:O}]of Object.entries(y)){Ne.output(`${qe.blue(M.isAbsoluteUrl(S)?S:se.pathBrowserifyExports.relative(n,S))}:
|
|
129
|
+
`);for(let k=0;k<O.length;k++){const D=O[k];Ne.output(`${_(D,v,h)}
|
|
130
|
+
`)}Ne.output(`
|
|
131
|
+
`)}break}case"markdown":{const y=Va(e);for(const[S,{fileProblems:h}]of Object.entries(y)){Ne.output(`## Lint: ${M.isAbsoluteUrl(S)?S:se.pathBrowserifyExports.relative(n,S)}
|
|
132
|
+
|
|
133
|
+
`),Ne.output(`| Severity | Location | Problem | Message |
|
|
134
|
+
`),Ne.output(`|---|---|---|---|
|
|
135
|
+
`);for(let v=0;v<h.length;v++){const O=h[v];Ne.output(`${$(O)}
|
|
136
|
+
`)}Ne.output(`
|
|
137
|
+
`),s.errors>0?Ne.output(`Validation failed
|
|
138
|
+
Errors: ${s.errors}
|
|
139
|
+
`):Ne.output(`Validation successful
|
|
140
|
+
`),s.warnings>0&&Ne.output(`Warnings: ${s.warnings}
|
|
141
|
+
`),Ne.output(`
|
|
142
|
+
`)}break}case"checkstyle":{const y=Va(e);Ne.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
143
|
+
`),Ne.output(`<checkstyle version="4.3">
|
|
144
|
+
`);for(const[S,{fileProblems:h}]of Object.entries(y))Ne.output(`<file name="${It(M.isAbsoluteUrl(S)?S:se.pathBrowserifyExports.relative(n,S))}">
|
|
145
|
+
`),h.forEach(T),Ne.output(`</file>
|
|
146
|
+
`);Ne.output(`</checkstyle>
|
|
147
|
+
`);break}case"junit":{const y=e.filter(v=>v.severity==="error").length,S=e.filter(v=>v.severity==="warn").length,h={};for(const v of e){const O=v.location[0].source.absoluteRef;h[O]||(h[O]=[]),h[O].push(v)}Ne.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
148
|
+
`),Ne.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${y}" failures="${S}" skipped="0">
|
|
149
|
+
`);for(const[v,O]of Object.entries(h)){const k=M.isAbsoluteUrl(v)?v:se.pathBrowserifyExports.relative(n,v),D=O.filter(G=>G.severity==="error").length,B=O.filter(G=>G.severity==="warn").length;Ne.output(`<testsuite name="${It(k)}" tests="${O.length}" errors="${D}" failures="${B}">
|
|
150
|
+
`),O.forEach(G=>w(G,k)),Ne.output(`</testsuite>
|
|
151
|
+
`)}Ne.output(`</testsuites>
|
|
152
|
+
`);break}case"codeclimate":d();break;case"summary":F1(e);break;case"github-actions":B1(e,n)}l-p>r&&Ne.info(`< ... ${l-r} more problems hidden > ${qe.gray("increase with `--max-problems N`")}
|
|
153
|
+
`);function d(){const y=e.map(S=>{const h=S.location[0],v=cr(h);return{description:S.message,location:{path:M.isAbsoluteUrl(h.source.absoluteRef)?h.source.absoluteRef:se.pathBrowserifyExports.relative(n,h.source.absoluteRef),lines:{begin:v.start.line}},severity:M1[S.severity],fingerprint:`${S.ruleId}${S.location.length>0?"-"+S.location[0].pointer:""}`}});Ne.output(JSON.stringify(y,null,2))}function g(){const y={totals:s,version:a,problems:e.map(S=>{const h={...S,location:S.location.map(v=>({...v,source:{ref:M.isAbsoluteUrl(v.source.absoluteRef)?v.source.absoluteRef:se.pathBrowserifyExports.relative(n,v.source.absoluteRef)}})),from:S.from?{...S.from,source:{ref:M.isAbsoluteUrl(S.from?.source.absoluteRef)?S.from?.source.absoluteRef:se.pathBrowserifyExports.relative(n,S.from?.source.absoluteRef||n)}}:void 0};if(M.env.FORMAT_JSON_WITH_CODEFRAMES){const v=S.location[0],O=cr(v);h.codeframe=fc(O,o)}return h})};Ne.output(JSON.stringify(y,null,2))}function m(y){const{severity:S}=y;if(!Cf[S])throw new Error(j1.INVALID_SEVERITY_LEVEL);return Cf[S]}function E(y,S){const h=m(y),v=y.location[0],O=M.isAbsoluteUrl(v.source.absoluteRef)?v.source.absoluteRef:se.pathBrowserifyExports.relative(n,v.source.absoluteRef),k=cr(v),D=v.pointer?qe.gray(`at ${v.pointer}`):"",B=`${O}:${k.start.line}:${k.start.col}`;return`[${S+1}] ${h(B)} ${D}
|
|
154
|
+
|
|
155
|
+
${y.message}
|
|
156
|
+
|
|
157
|
+
`+fg(y)+fc(k,o)+`
|
|
158
|
+
|
|
159
|
+
`+V1(n,y.from)+`${jr[y.severity]} was generated by the ${qe.blue(y.ruleId)} rule.
|
|
160
|
+
|
|
161
|
+
`+(y.reference?`Reference: ${qe.blue(y.reference)}
|
|
162
|
+
|
|
163
|
+
`:"")}function _(y,S,h){const v=pg[y.severity];if(!jr[y.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const O=v(jr[y.severity].toLowerCase().padEnd(7)),{start:k}=y.location[0];return` ${`${k.line}:${k.col}`.padEnd(S)} ${O} ${y.ruleId.padEnd(h)} ${y.message}`}function $(y){if(!jr[y.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const S=jr[y.severity].toLowerCase(),{start:h}=y.location[0];return`| ${S} | line ${`${h.line}:${h.col}`} | [${y.ruleId}](https://redocly.com/docs/cli/rules/${y.ruleId}/) | ${y.message.replaceAll(`
|
|
164
|
+
`,"<br>")} |`}function T(y){const{line:S,col:h}=y.location[0].start,v=y.severity=="warn"?"warning":"error",O=It(y.message),k=It(y.ruleId);Ne.output(`<error line="${S}" column="${h}" severity="${v}" message="${O}" source="${k}" />
|
|
165
|
+
`)}function w(y,S){const h=y.location[0],{start:v}=cr(h),O=y.severity==="error"?"error":"failure",k=It(y.ruleId),D=It(y.message),B=[`Rule: ${k}`,`Severity: ${It(y.severity)}`,`File: ${It(S)}`,`Line: ${v.line}`,`Column: ${v.col}`];h.pointer&&B.push(`Pointer: ${It(h.pointer)}`),B.push(`Message: ${D}`),Ne.output(`<testcase classname="${k}" name="${k}" file="${It(S)}" line="${v.line}">
|
|
166
|
+
`),Ne.output(`<${O} message="${D}" type="${k}">${B.join(`
|
|
167
|
+
`)}</${O}>
|
|
168
|
+
`),Ne.output(`</testcase>
|
|
169
|
+
`)}}function F1(e){const t={};for(const n of e)t[n.ruleId]=t[n.ruleId]||{count:0,severity:n.severity},t[n.ruleId].count++;const r=Object.entries(t).sort(([,n],[,i])=>ys(n.severity)-ys(i.severity)||i.count-n.count);for(const[n,i]of r){const o=pg[i.severity],s=o(jr[i.severity].toLowerCase().padEnd(7));Ne.output(`${s} ${n}: ${i.count}
|
|
170
|
+
`)}Ne.output(`
|
|
171
|
+
`)}function V1(e,t){if(!t)return"";const r=se.pathBrowserifyExports.relative(e,t.source.absoluteRef),n=cr(t),i=`${r}:${n.start.line}:${n.start.col}`,o=t.pointer?qe.gray(`at ${t.pointer}`):"";return`referenced from ${qe.blue(i)} ${o}
|
|
172
|
+
|
|
173
|
+
`}function fg(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
|
|
174
|
+
|
|
175
|
+
`:`Did you mean:
|
|
176
|
+
- ${e.suggest.slice(0,L1).join(`
|
|
177
|
+
- `)}
|
|
178
|
+
|
|
179
|
+
`}const Va=e=>{const t={};for(const r of e){const n=r.location[0].source.absoluteRef;t[n]=t[n]||{fileProblems:[],ruleIdPad:0,locationPad:0};const i={...r,location:r.location.map(cr)};t[n].fileProblems.push(i),t[n].ruleIdPad=Math.max(r.ruleId.length,t[n].ruleIdPad),t[n].locationPad=Math.max(Math.max(...i.location.map(o=>`${o.start.line}:${o.start.col}`.length)),t[n].locationPad)}return t};function It(e){return e.replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu,t=>{switch(t){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"'":return"'";default:return`&#${t.charCodeAt(0)};`}})}function B1(e,t){for(const s of e)for(const a of s.location.map(cr)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}const l=fg(s),p=s.reference?`Reference: ${s.reference}
|
|
180
|
+
|
|
181
|
+
`:"",d=s.message+(l!==""||p!==""?`
|
|
182
|
+
|
|
183
|
+
`:"")+l+p,g={title:s.ruleId,file:M.isAbsoluteUrl(a.source.absoluteRef)?a.source.absoluteRef:se.pathBrowserifyExports.relative(t,a.source.absoluteRef),line:a.start.line,col:a.start.col,endLine:a.end?.line,endColumn:a.end?.col};Ne.output(`::${c} ${r(g)}::${i(d)}
|
|
184
|
+
`)}function r(s){return Object.entries(s).filter(([,a])=>a!=null).map(([a,c])=>`${a}=${o(c)}`).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:W1,...z1}=bs.properties,K1={...bs,properties:z1};async function G1(e){const{ref:t,externalRefResolver:r=new M.BaseResolver(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),il({document:n,...e,externalRefResolver:r})}async function H1(e){const{source:t,absoluteRef:r,externalRefResolver:n=new M.BaseResolver(e.config.resolve)}=e,i=M.makeDocumentFromString(t,r||"/");return il({document:i,...e,externalRefResolver:n})}async function il(e){const{document:t,customTypes:r,externalRefResolver:n,config:i}=e;if(M.isGraphqlRef(t.source.absoluteRef)){const{lintGraphqlDocument:m}=await Promise.resolve().then(()=>require("./replay-lint-graphql-BQJ00lU4.js"));return m({document:t,config:i})}const o=Wr(t.parsed),s=i.getRulesForSpecVersion(Nc(o)),a=M.normalizeTypes(i.extendTypes(r??Tn(o),o),i),c={problems:[],specVersion:o,config:i,visitorsData:{}},l=gn(s,i,"preprocessors",o),p=gn(s,i,"rules",o);let d=await M.resolveDocument({rootDocument:t,rootType:a.Root,externalRefResolver:n});l.length>0&&(er({document:t,rootType:a.Root,normalizedVisitors:Zt(l,a),resolvedRefMap:d,ctx:c}),d=await M.resolveDocument({rootDocument:t,rootType:a.Root,externalRefResolver:n}));const g=Zt(p,a);return er({document:t,rootType:a.Root,normalizedVisitors:g,resolvedRefMap:d,ctx:c}),c.problems.map(m=>i.addProblemToIgnore(m))}async function Y1(e){const{severity:t,externalRefResolver:r=new M.BaseResolver,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const i={problems:[],specVersion:"config",config:n,visitorsData:{}},o=M.normalizeTypes(e.externalConfigTypes||Ic(K1,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:ir()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:nr()}],a=Zt(s,o),c=n.resolvedRefMap||await M.resolveDocument({rootDocument:n.document,rootType:o.ConfigRoot,externalRefResolver:r});return er({document:n.document,rootType:o.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:i}),i.problems}exports.Ajv=Oc;exports.Arazzo1Types=at;exports.Arazzo1_1Types=Wf;exports.Assertions=pr;exports.AsyncApi2Types=Qf;exports.AsyncApi3Types=Jf;exports.CONFIG_BUNDLER_VISITOR_ID=xc;exports.CONFIG_FILE_NAME=Ha;exports.Config=xn;exports.ConfigTypes=eh;exports.ConfigValidationError=Ak;exports.Cs=h$;exports.DEFAULT_CONFIG=th;exports.DEFAULT_PROJECT_PLUGIN_PATHS=nh;exports.GraphQLError=fe;exports.IGNORE_BANNER=rh;exports.IGNORE_FILE=ns;exports.Location=zI;exports.NoUnresolvedRefs=nr;exports.Oas2Types=Mf;exports.Oas3Types=At;exports.Oas3_1Types=Ge;exports.Oas3_2Types=it;exports.OpenRpcTypes=Zf;exports.Overlay1Types=Xf;exports.PLUGINS_COLLECTOR_VISITOR_ID=Rc;exports.Rs=y$;exports.Struct=ir;exports.Token=KI;exports.bundle=Vk;exports.bundleDocument=el;exports.bundleFromString=Bk;exports.clearPluginsCache=Wk;exports.createConfig=i1;exports.createConfigTypes=Ic;exports.dedentBlockStringLines=HI;exports.dequal=Yo;exports.detectSpec=Wr;exports.devAssert=ze;exports.findConfig=n1;exports.formatProblems=U1;exports.getAstNodeByPointer=ug;exports.getCodeframe=fc;exports.getLineColLocation=cr;exports.getLocation=as;exports.getMajorSpecVersion=Nc;exports.getNodeTypesFromJSONSchema=Jm;exports.getPluginCacheVersion=Qk;exports.getTotals=dg;exports.getTypes=Tn;exports.initRules=gn;exports.inspect=be;exports.instanceOf=kt;exports.isDigit=Ah;exports.isEmptyObject=Kr;exports.isNameContinue=qh;exports.isNameStart=kh;exports.isNotEmptyArray=Ba;exports.isString=ot;exports.keysOf=mc;exports.lint=G1;exports.lintConfig=Y1;exports.lintDocument=il;exports.lintFromString=H1;exports.loadConfig=r1;exports.loadIgnoreConfig=ag;exports.logger=Ne;exports.mapTypeToComponent=pc;exports.normalizeVisitors=Zt;exports.pluralize=vg;exports.regexFromString=mn;exports.resolvePlugins=sg;exports.slash=jf;exports.t=We;exports.visit=jc;exports.visitInParallel=Dh;exports.walkDocument=er;exports.xmlEscape=It;
|