@redocly/openapi-docs 3.25.0-next.5 → 3.25.0-next.6

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.
Files changed (43) hide show
  1. package/dist/{redocly-openapi-docs.min.AiChatProvider-DyqyxfQD.js → redocly-openapi-docs.min.AiChatProvider-6YPcWs0H.js} +8 -8
  2. package/dist/{redocly-openapi-docs.min.AiChatSqliteDBStorage-Btm70b2a.js → redocly-openapi-docs.min.AiChatSqliteDBStorage-B83b3g85.js} +1 -1
  3. package/dist/{redocly-openapi-docs.min.AiPanel-C8snqiT5.js → redocly-openapi-docs.min.AiPanel-C2qfX9uL.js} +109 -109
  4. package/dist/redocly-openapi-docs.min.FileWatcher-BqldveuP.js +1 -0
  5. package/dist/redocly-openapi-docs.min.SemanticSearchService-WMOhwmFs.js +1 -0
  6. package/dist/{redocly-openapi-docs.min.SqliteDBStorage-CrL1Ye64.js → redocly-openapi-docs.min.SqliteDBStorage-C1P1898p.js} +1 -1
  7. package/dist/redocly-openapi-docs.min.TauriFileSystemAdapter-dQrMcpdl.js +1 -0
  8. package/dist/redocly-openapi-docs.min.TauriRootStorage-Xs8U5nWO.js +1 -0
  9. package/dist/{redocly-openapi-docs.min.ai-chat-mappers-DLLPHOmO.js → redocly-openapi-docs.min.ai-chat-mappers-CJR-cboS.js} +1 -1
  10. package/dist/redocly-openapi-docs.min.external-resolver-B_BGsIqk.js +2 -0
  11. package/dist/redocly-openapi-docs.min.index-A1jwxgMY.js +7843 -0
  12. package/dist/redocly-openapi-docs.min.index-CzgAKyvP.js +1 -0
  13. package/dist/redocly-openapi-docs.min.index-DYtjK7I1.js +1 -0
  14. package/dist/redocly-openapi-docs.min.index-zM-C-d58.js +1 -0
  15. package/dist/redocly-openapi-docs.min.js +1 -1
  16. package/dist/{redocly-openapi-docs.min.lint-DBvVDQqS.js → redocly-openapi-docs.min.lint-CFL7cUUQ.js} +2 -2
  17. package/dist/{redocly-openapi-docs.min.lint-graphql-CVRQfjxQ.js → redocly-openapi-docs.min.lint-graphql-UDOPvcZk.js} +1 -1
  18. package/dist/redocly-openapi-docs.min.periodic-revalidation-DkSoAMSp.js +1 -0
  19. package/dist/{redocly-openapi-docs.min.respect-run-BhGXKGyB.js → redocly-openapi-docs.min.respect-run-BGASIC7w.js} +1 -1
  20. package/dist/{redocly-openapi-docs.min.standalone-DweQeOg3.js → redocly-openapi-docs.min.standalone-DlNPBIhk.js} +1228 -1148
  21. package/dist/redocly-openapi-docs.min.tauri-path-B2ySzLGM.js +1 -0
  22. package/dist/{redocly-openapi-docs.min.useAiChatQueries-DNV_5tU7.js → redocly-openapi-docs.min.useAiChatQueries-DvhVIF-L.js} +103 -103
  23. package/lib/components/PropertyDetails/FieldDetail.js +3 -3
  24. package/lib/components/Replay/Replay.js +1 -1
  25. package/lib/components/Security/styled.js +3 -3
  26. package/lib/components/Tabs/Tabs.js +1 -1
  27. package/lib/components/TagItem/Breadcrumbs.js +2 -2
  28. package/lib/components/TagItem/OperationNavigationItems.js +1 -1
  29. package/lib/components/common/Fields/fields-layout.js +1 -1
  30. package/lib/components/common/Fields/fields.js +2 -2
  31. package/lib/components/common/styled.js +1 -1
  32. package/package.json +5 -5
  33. package/dist/redocly-openapi-docs.min.FileWatcher-CTBl8Rf-.js +0 -1
  34. package/dist/redocly-openapi-docs.min.SemanticSearchService-CkqlO6WP.js +0 -1
  35. package/dist/redocly-openapi-docs.min.TauriFileSystemAdapter-Y9bUtY4S.js +0 -1
  36. package/dist/redocly-openapi-docs.min.TauriRootStorage-B5ol7t4s.js +0 -1
  37. package/dist/redocly-openapi-docs.min.external-resolver-CBwcWqM9.js +0 -2
  38. package/dist/redocly-openapi-docs.min.index-BrDq2HFN.js +0 -1
  39. package/dist/redocly-openapi-docs.min.index-CEXQXK-m.js +0 -1
  40. package/dist/redocly-openapi-docs.min.index-CGR2xzEw.js +0 -1
  41. package/dist/redocly-openapi-docs.min.index-Dt-QwDkf.js +0 -7837
  42. package/dist/redocly-openapi-docs.min.periodic-revalidation-Dsp-n7ui.js +0 -1
  43. package/dist/redocly-openapi-docs.min.tauri-path-DPZWtWAC.js +0 -1
@@ -0,0 +1 @@
1
+ import{a0 as T,v as u,aG as b,aH as I,aI as k,aJ as w,aK as A,aL as C,aM as v,aN as j,aO as E,aP as B}from"./redocly-openapi-docs.min.standalone-DlNPBIhk.js";import{aQ as J,aR as Y,aS as W,aT as X,aU as H,aV as K,aW as Q,aX as Z,aY as ee,aZ as se,a_ as ae,a$ as te,b0 as ne,b1 as re,b2 as oe,b3 as ie,b4 as ce,b5 as le,b6 as me,b7 as ue,b8 as pe,b9 as ye,ba as fe,bb as de,bc as ge,bd as he,be as ve,bf as be,bg as Ee,bh as xe,bi as Se,bj as Re,bk as Oe,bl as Te,bm as Ie,bn as ke,bo as we,bp as Ae,bq as Ce,br as je,bs as Pe,bt as De}from"./redocly-openapi-docs.min.standalone-DlNPBIhk.js";import{g as P,t as D,A as Ne,c as x,l as S,S as Fe,R as _e,C as Le}from"./redocly-openapi-docs.min.lint-CFL7cUUQ.js";import{a as $e,b as ze,d as Ge,e as Ue,f as Ve,h as Me,i as qe,j as Be,k as Je,m as Ye,n as We,o as Xe,p as He,q as Ke,r as Qe,s as Ze,u as es,v as ss,w as as,x as ts,y as ns,z as rs,B as os,s as is,D as cs}from"./redocly-openapi-docs.min.lint-CFL7cUUQ.js";function ls(e){return(T.extname(e)===".yaml"||T.extname(e)===".yml")&&!1}function ms(e){return u(e)&&!b(e)}async function us(e){return new Promise(a=>setTimeout(a,e))}const R="type",N=["api-description","api-operation","data-schema"];function F(e,a){const{ctx:s}=P("EntityFileDefault",a),{ctx:t,discriminatorResolver:n}=P("EntityFile",e);return{entityTypes:{...s,...t,EntityFileArray:{properties:{},items:r=>{if(u(r)){const c=r[R];if(!c)return"Entity";const i=n?.(r,c);if(i&&typeof i=="string")return i}return"Entity"}}},discriminatorResolver:n}}function o(e,a){if(I(a.parent))return;const s=a.key.toString(),t=e.counts??={};t[s]=(t[s]??0)+1}function O(e){for(const n of Object.values(e))n.items&&(n.total=n.items.size);const{xExtensions:a}=e,s=a.counts??{},t=Object.keys(s).sort();a.total=t.length,a.counts=Object.fromEntries(t.map(n=>[n,s[n]]))}const ps=e=>({SpecExtension:{enter(a,s){o(e.xExtensions,s)}},XCodeSampleList:{enter(a,s){o(e.xExtensions,s)}},ExamplesMap:{enter(a,s){s.key.toString()==="x-examples"&&o(e.xExtensions,s)}},EnumDescriptions:{enter(a,s){o(e.xExtensions,s)}},TagGroups:{enter(a,s){o(e.xExtensions,s)}},Logo:{enter(a,s){o(e.xExtensions,s)}},XServerList:{enter(a,s){o(e.xExtensions,s)}},XUsePkce:{enter(a,s){o(e.xExtensions,s)}},Operation:{enter(a,s){s.key.toString()==="x-query"&&o(e.xExtensions,s)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(a){e.refs.items.add(a.$ref)}},Tag:{leave(a){e.tags.items.add(a.name)}},Link:{leave(a){e.links.items.add(a.operationId)}},WebhooksMap:{enter(a,s){s.key.toString()==="x-webhooks"&&o(e.xExtensions,s)},Operation:{leave(a){if(e.webhooks.total++,a.tags)for(const s of a.tags)e.tags.items.add(s)}}},Paths:{PathItem:{leave(){e.pathItems.total++},Operation:{leave(a){if(e.operations.total++,a.tags)for(const s of a.tags)e.tags.items.add(s)}},Parameter:{leave(a){e.parameters.items.add(a.name)}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){O(e)}}}),ys=e=>({SpecExtension:{enter(a,s){o(e.xExtensions,s)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(a){e.refs.items.add(a.$ref)}},Tag:{leave(a){e.tags.items.add(a.name)}},ChannelMap:{Channel:{leave(){e.channels.total++},Operation:{leave(a){if(e.operations.total++,a.tags)for(const s of a.tags)e.tags.items.add(s)}},Parameter:{leave(a,{key:s}){e.parameters.items.add(s.toString())}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){O(e)}}}),fs=e=>({SpecExtension:{enter(a,s){o(e.xExtensions,s)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(a){e.refs.items.add(a.$ref)}},Tag:{leave(a){e.tags.items.add(a.name)}},NamedChannels:{Channel:{leave(){e.channels.total++},Parameter:{leave(a,{key:s}){e.parameters.items.add(s.toString())}}}},NamedOperations:{Operation:{leave(a){if(e.operations.total++,a.tags)for(const s of a.tags)e.tags.items.add(s)}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){O(e)}}}),ds=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,_=2,L=150,gs=()=>({any(e,{report:a,location:s}){if(u(e)&&"key"in e){const t=e.key;if(typeof t!="string"){a({message:"Entity `key` must be a string.",location:s.child(["key"])});return}t.length<_&&a({message:`Entity 'key' must be at least ${_} characters long.`,location:s.child(["key"])}),t.length>L&&a({message:`Entity 'key' must not exceed ${L} characters.`,location:s.child(["key"])}),ds.test(t)||a({message:"Entity `key` must contain only lowercase letters, numbers, and hyphens, and cannot start or end with a hyphen.",location:s.child(["key"])})}}});function $(e,a){const s=a.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")+e;return Object.values(D).includes(s)?s:e}function hs(e,a){const s={};for(const[t,n]of Object.entries(a))if(z(t,n)){if(n.severity==="off")continue;s[t]={...xs(e,t,n)}}else s[t]=n;return s}function vs(e){const a={},s={};for(const[t,n]of Object.entries(e))if(z(t,n)){const r=n;Es(r)?a[t]=r:s[t]=r}else s[t]=n;return{entityRules:a,apiRules:s}}function bs(e,a,s){if(!u(s.parsed)||!u(s.parsed.components))return null;const t=s.parsed.components,n="schemas"in t?t.schemas:void 0;if(!n||!(e in n))return null;const r=n[e];try{const c=JSON.parse(a);if(k(r,c))return r}catch{return null}return null}function z(e,a){return e.startsWith("rule/")&&u(a)}function Es(e){return Object.values(D).some(a=>e.subject.type===a)}function xs(e,a,s){const t=$(s.subject.type,e),n=s.where?.map(r=>({...r,subject:{...r.subject,type:$(r.subject.type,e)}}));return{assertionId:a,subject:{...s.subject,type:t},assertions:s.assertions,...n&&{where:n},...s.message&&{message:s.message},...s.severity&&{severity:s.severity}}}async function G(e){const{document:a,entitySchema:s,entityDefaultSchema:t,severity:n,externalRefResolver:r=new v,assertionConfig:c={}}=e,i={problems:[],specVersion:"entity",visitorsData:{}},{entityTypes:p,discriminatorResolver:y}=F(s,t),l=w(p);let m=l.Entity;if(Array.isArray(a.parsed))m=l.EntityFileArray;else if(u(a.parsed)){const g=a.parsed[R];if(!g)m=l.Entity;else{const h=y?.(a.parsed,g);h&&typeof h=="string"&&l[h]&&(m=l[h])}}const f=Ne(c),d=Array.isArray(f)?f.map(g=>({severity:n||"error",ruleId:"entity assertions",visitor:g})):[{severity:n||"error",ruleId:"entity assertions",visitor:f}],V=[{severity:n||"error",ruleId:"entity struct",visitor:Fe()},{severity:n||"error",ruleId:"entity no-unresolved-refs",visitor:B()},{severity:n||"error",ruleId:"entity key-valid",visitor:gs()},...d],M=A(V,l),q=await C({rootDocument:a,rootType:m,externalRefResolver:r});return j({document:a,rootType:m,normalizedVisitors:M,resolvedRefMap:q,ctx:i}),i.problems}async function Ss(e,a,s){if(!a.rules)throw new Error(`Scorecard level "${a.name}" has no rules defined.`);const t=new v,n=E(JSON.stringify(e,null,2),"entity"),r=n.parsed[R],c=hs(r||"unknown",a.rules),{entityRules:i,apiRules:p}=vs(c),y=await G({document:n,entitySchema:Le,entityDefaultSchema:_e,externalRefResolver:t,assertionConfig:i});if(N.includes(e.type)){if(Object.keys(p).length===0)return y;if(!s)throw new Error(`Document is required for entity type "${e.type}". Provide the source API document to lint API rules.`);if(e.type==="data-schema"&&e.metadata?.schema){Object.values(p).forEach(d=>{if(u(d)&&u(d.subject)&&d.subject.type!=="Schema")throw new Error(`API rules for "data-schema" entity must target Schema subject, but found "${d.subject.type}".`)});const m=bs(e.title,e.metadata.schema,s);if(!m)throw new Error(`Schema "${e.title}" not found in the document. Ensure the schema exists in components.schemas.`);const f=await U({schema:m,schemaKey:e.title,config:await x({rules:p}),specType:e.metadata.specType,sourceDocument:s,externalRefResolver:t});return[...y,...f]}const l=await S({document:s,externalRefResolver:t,config:await x({rules:p})});return[...y,...l]}else if(!b(p))throw new Error(`API rules are not supported for entity type "${e.type}". Only ${N.join(", ")} support API rules.`);return y}async function U(e){const{schema:a,schemaKey:s,config:t,sourceDocument:n,specType:r,externalRefResolver:c=new v(t.resolve)}=e,i=n.parsed,p=i[r],y=i.info,l=E(JSON.stringify({[r]:p,info:y,components:{schemas:{[s]:a}}},null,2),n?.source.absoluteRef||`schema:${s}`);return(await S({document:l,config:t,externalRefResolver:c})).filter(m=>m.location.some(f=>f.pointer?.includes(`/components/schemas/${s}`)))}class Rs extends Error{}export{J as Arazzo1Types,Y as Arazzo1_1Types,W as AsyncApi2Types,X as AsyncApi3Types,v as BaseResolver,H as CONFIG_BUNDLER_VISITOR_ID,K as CONFIG_FILE_NAME,Q as Config,$e as ConfigTypes,ze as ConfigValidationError,Z as DEFAULT_CONFIG,ee as DEFAULT_PROJECT_PLUGIN_PATHS,Rs as HandledError,se as IGNORE_BANNER,ae as IGNORE_FILE,te as Oas2Types,ne as Oas3Types,re as Oas3_1Types,oe as Oas3_2Types,ie as OpenRpcTypes,ce as Overlay1Types,le as PLUGINS_COLLECTOR_VISITOR_ID,me as ResolveError,ue as Source,ys as StatsAsync2,fs as StatsAsync3,ps as StatsOAS,pe as YamlParseError,Ge as bundle,ye as bundleDocument,Ue as bundleFromString,Ve as clearPluginsCache,x as createConfig,Me as createConfigTypes,F as createEntityTypes,k as dequal,fe as detectSpec,ls as doesYamlFileExist,de as escapePointerFragment,qe as findConfig,Be as formatProblems,Je as getAstNodeByPointer,Ye as getCodeframe,ge as getDir,We as getLineColLocation,he as getMajorSpecVersion,Xe as getPluginCacheVersion,He as getTotals,ve as getTypes,be as isAbsoluteUrl,Ee as isBrowser,b as isEmptyObject,xe as isGraphqlRef,Se as isMappingRef,Ke as isNotEmptyArray,ms as isNotEmptyObject,u as isPlainObject,I as isRef,Re as isString,Oe as isSupportedExtension,Te as isTruthy,Qe as keysOf,Ze as lint,es as lintConfig,S as lintDocument,G as lintEntityFile,Ss as lintEntityWithScorecardLevel,ss as lintFromString,U as lintSchema,as as loadConfig,ts as loadIgnoreConfig,ns as logger,E as makeDocumentFromString,Ie as mapTypeToComponent,w as normalizeTypes,A as normalizeVisitors,ke as parseYaml,us as pause,rs as pluralize,we as readFileFromUrl,Ae as regexFromString,C as resolveDocument,Ce as resolvePath,os as resolvePlugins,je as slash,Pe as stringifyYaml,De as unescapePointerFragment,is as validate,j as walkDocument,cs as xmlEscape};
@@ -0,0 +1 @@
1
+ import{aT as t}from"./redocly-openapi-docs.min.index-A1jwxgMY.js";async function a(o={}){return typeof o=="object"&&Object.freeze(o),await t("plugin:dialog|open",{options:o})}export{a as open};
@@ -0,0 +1 @@
1
+ import{g as c}from"./redocly-openapi-docs.min.SemanticSearchService-WMOhwmFs.js";import{S as u,h as S,i as m,j as h}from"./redocly-openapi-docs.min.SemanticSearchService-WMOhwmFs.js";import{r as a}from"./redocly-openapi-docs.min.standalone-DlNPBIhk.js";function f(){const[s,e]=a.useState(!1),[n,t]=a.useState(null);return{search:a.useCallback(async(i,o=10)=>{e(!0),t(null);try{return await c().search(i,o)}catch(r){const l=r instanceof Error?r:new Error(String(r));return t(l),[]}finally{e(!1)}},[]),isSearching:s,error:n}}export{u as SemanticSearchService,S as extractAllDocuments,m as extractApiDocuments,h as extractCollectionDocuments,c as getSemanticSearchService,f as useSemanticSearch};
@@ -1 +1 @@
1
- import{bL as a,bM as s,bN as e,bO as t,bP as i,bQ as r,bR as b}from"./redocly-openapi-docs.min.standalone-DweQeOg3.js";export{a as hydrate,s as init,e as revision,t as setParameterValue,i as setSecurityDetails,r as setSecurityDetailsVariants,b as version};
1
+ import{bT as a,bU as s,bV as e,bW as t,bX as i,bY as r,bZ as b}from"./redocly-openapi-docs.min.standalone-DlNPBIhk.js";export{a as hydrate,s as init,e as revision,t as setParameterValue,i as setSecurityDetails,r as setSecurityDetailsVariants,b as version};
@@ -1,4 +1,4 @@
1
- import{d as xr,bn as Ji,l as Ee,bo as df,b6 as en,bp as Xi,b7 as tt,al as Zi,bq as ff,br as mf,aB as ps,az as ze,ay as ea,p as Ke,bf as hf,bs as yf,bt as gf,bu as vf,bb as Ot,bh as bf,bd as tn,bv as rr,bw as ta,bx as ra,aA as wf,by as ls,bz as Ir,bA as Mt,bB as $f,bC as Ef,aH as Vt,b2 as rn,b3 as xf,bc as If,bD as Tf,aC as Tr,aM as na,bE as _f,aZ as Pf,aE as Yt,b1 as oa,aG as us,aF as nn,bF as on,aN as sa,aP as Sf,a$ as kf,aD as sn,bG as Of,aQ as Nf,aO as ia,b4 as jf,bi as aa,aS as ca,bH as Af,bI as Rf,bJ as pa,b9 as Cf,b5 as Df,bK as la}from"./redocly-openapi-docs.min.standalone-DweQeOg3.js";function qf(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.')}function _r(e){return Array.isArray(e)&&e.length>0}function ds(e){return e?Object.keys(e):[]}var fs={exports:{}},Lf=fs.exports,ua;function Mf(){return ua||(ua=1,(function(e,t){(function(r,n){typeof qf=="function"?e.exports=n():r.pluralize=n()})(Lf,function(){var r=[],n=[],o={},s={},i={};function c($){return typeof $=="string"?new RegExp("^"+$+"$","i"):$}function a($,b){return $===b?b:$===$.toLowerCase()?b.toLowerCase():$===$.toUpperCase()?b.toUpperCase():$[0]===$[0].toUpperCase()?b.charAt(0).toUpperCase()+b.substr(1).toLowerCase():b.toLowerCase()}function p($,b){return $.replace(/\$(\d{1,2})/g,function(E,w){return b[w]||""})}function l($,b){return $.replace(b[0],function(E,w){var f=p(b[1],arguments);return a(E===""?$[w-1]:E,f)})}function d($,b,E){if(!$.length||o.hasOwnProperty($))return b;for(var w=E.length;w--;){var f=E[w];if(f[0].test(b))return l(b,f)}return b}function y($,b,E){return function(w){var f=w.toLowerCase();return b.hasOwnProperty(f)?a(w,f):$.hasOwnProperty(f)?a(w,$[f]):d(f,w,E)}}function m($,b,E,w){return function(f){var I=f.toLowerCase();return b.hasOwnProperty(I)?!0:$.hasOwnProperty(I)?!1:d(I,I,E)===I}}function h($,b,E){var w=b===1?h.singular($):h.plural($);return(E?b+" ":"")+w}return h.plural=y(i,s,r),h.isPlural=m(i,s,r),h.singular=y(s,i,n),h.isSingular=m(s,i,n),h.addPluralRule=function($,b){r.push([c($),b])},h.addSingularRule=function($,b){n.push([c($),b])},h.addUncountableRule=function($){if(typeof $=="string"){o[$.toLowerCase()]=!0;return}h.addPluralRule($,"$0"),h.addSingularRule($,"$0")},h.addIrregularRule=function($,b){b=b.toLowerCase(),$=$.toLowerCase(),i[$]=b,s[b]=$},[["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 h.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 h.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 h.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(h.addUncountableRule),h})})(fs)),fs.exports}var Vf=Mf();const da=xr(Vf);function zf(e,t,r){return e.split(" ").map(n=>da(n,t,r)).join(" ")}var fa={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Pr={type:"object",properties:fa,additionalProperties:!1},Ff={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Sr={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:{...fa,like:Pr,dislike:Pr,satisfied:Pr,neutral:Pr,dissatisfied:Pr},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:Ff},additionalProperties:!1}},additionalProperties:!1},Uf={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},ms={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},ma={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Sr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ms,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:Uf,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},nr={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Bf={type:"object",properties:{name:{type:"string"},items:nr,queries:nr,mutations:nr,subscriptions:nr,types:nr,directives:nr},required:["name"],additionalProperties:!1},Kf={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Bf},otherItemsGroupName:{type:"string"}}},Gf={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Yf={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Wf={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Gf,license:Yf},additionalProperties:!1},an={type:"object",properties:{menu:{type:"object",properties:{...Kf.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ms,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:Sr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Wf},additionalProperties:!1},Hf={type:"object",properties:{downloadUrls:ms,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:Sr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},Qf={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"]},Jf={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"}}},ha={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Xf={type:"object",properties:{beforeInfo:{type:"array",items:ha},end:{type:"array",items:ha}}},Wt={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},cn={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Zf={type:"object",properties:dn(Wt.properties,["light","dark"])},em={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"}}},tm={type:"object",properties:{error:cn,info:cn,redirect:cn,success:cn}},rm={type:"object",properties:or(Wt.properties,["dark"])},nm={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},om={type:"object",properties:{accent:Wt,border:Zf,error:Wt,http:em,primary:Wt,responses:tm,secondary:rm,success:Wt,text:nm,tonalOffset:{type:"number"},warning:Wt}},pn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},sm={type:"object",properties:{small:pn,medium:pn,large:pn,xlarge:pn}},_t={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},im={type:"object",properties:{...or(_t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:sm}},ya={type:"object",properties:dn(_t.properties,["fontSize","lineHeight"])},am={type:"object",properties:{medium:ya,small:ya}},cm={type:"object",properties:{...or(_t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:am}},pm={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},lm={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},ga={type:"object",properties:{fullWidth:{type:"boolean"}}},um={type:"object",properties:{buttons:im,httpBadges:cm,layoutControls:pm,panels:lm,tryItButton:ga,tryItSendButton:ga}},ln={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},dm={type:"object",properties:{maxWidth:ln}},fm={type:"object",properties:{maxWidth:ln,middlePanelMaxWidth:ln}},mm={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:dm,"three-panel":fm}},va={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},hm={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:va,defaultDetailsWidth:{type:"string"},examples:va,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},ba={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},ym={type:"object",properties:dn(ba.properties,["textTransform"])},gm={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},vm={type:"object",properties:{...or(_t.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:ba,level1items:ym,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:gm,textColor:{type:"string"},width:{type:"string"}}},un={type:"object",properties:{..._t.properties,color:{type:"string"},transform:{type:"string"}}},bm={type:"object",properties:{..._t.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"}}},wm={type:"object",properties:or(_t.properties,["fontSize"])},$m={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Em={type:"object",properties:{code:bm,fieldName:_t,...dn(_t.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:un,heading2:un,heading3:un,headings:wm,lineHeight:{type:"string"},links:$m,optimizeSpeed:{type:"boolean"},rightPanelHeading:un,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},xm={type:"object",properties:{color:{type:"string"},...or(_t.properties,["fontWeight"])}},Im={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:xm}},Tm={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},_m={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},wa={type:"object",properties:{custom:{type:"string"}}},Pm={type:"object",properties:{DownloadButton:wa,NextSectionButton:wa}},Sm={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},km={type:"object",properties:{borderRadius:{type:"string"}}},Om={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Nm={type:"object",properties:{breakpoints:ln,codeBlock:Im,colors:om,components:um,layout:mm,logo:Tm,fab:_m,overrides:Pm,rightPanel:Sm,schema:hm,shape:km,sidebar:vm,spacing:Om,typography:Em,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},jm={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Qf}},required:["languages"]},Am={properties:{theme:Nm,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:jm,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:Jf,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:Xf,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 dn(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function or(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var pt={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"},Rm={rules:pt,oas2Rules:pt,oas3_0Rules:pt,oas3_1Rules:pt,oas3_2Rules:pt,async2Rules:pt,async3Rules:pt,arazzo1Rules:pt,arazzo1_1Rules:pt,overlay1Rules:pt,openrpc1Rules:pt,graphqlRules:pt},ft={nodeTypeName:void 0,type:"object",additionalProperties:!0},Cm={preprocessors:ft,oas2Preprocessors:ft,oas3_0Preprocessors:ft,oas3_1Preprocessors:ft,oas3_2Preprocessors:ft,async2Preprocessors:ft,async3Preprocessors:ft,arazzo1Preprocessors:ft,arazzo1_1Preprocessors:ft,overlay1Preprocessors:ft,openrpc1Preprocessors:ft},mt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Dm={decorators:mt,oas2Decorators:mt,oas3_0Decorators:mt,oas3_1Decorators:mt,oas3_2Decorators:mt,async2Decorators:mt,async3Decorators:mt,arazzo1Decorators:mt,arazzo1_1Decorators:mt,overlay1Decorators:mt,openrpc1Decorators:mt},qm={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"},fn={...Rm,...Dm,...Cm,extends:qm},$a=e=>e,rt=$a({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),He={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Ea={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},hs={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}}},ys={type:"array",items:{...hs,properties:{...hs.properties,items:{type:"array",items:hs}}}},Lm={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Mm={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Vm={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}},zm={type:"object",properties:{facets:Vm,...He.properties},additionalProperties:!1},Fm={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},xa={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ia={type:"object",properties:{items:ys,...He.properties},additionalProperties:!1},Ta={type:"object",additionalProperties:Lm},_a={type:"object",properties:{items:ys,copyrightText:{type:"string"},logo:He,...He.properties},additionalProperties:!1},Pa={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...He.properties},additionalProperties:!1},Sa={type:"object",properties:{head:{type:"array",items:Ea},body:{type:"array",items:Ea}},additionalProperties:!1},ka={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}},Oa={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Mm,filters:zm,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Fm},...He.properties},additionalProperties:!1},Na={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},ja={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...He.properties},additionalProperties:!1},Aa={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Um={type:"object",properties:{...He.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Ra={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...He.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...He.properties},additionalProperties:!1},actions:Um},additionalProperties:!1},Ca={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...He.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...He.properties},additionalProperties:!1},expand:{type:"object",properties:{...He.properties},additionalProperties:!1},collapse:{type:"object",properties:{...He.properties},additionalProperties:!1}},additionalProperties:!1},Da={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"},...He.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...He.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...He.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},mn={...ma,properties:{...ma.properties,...Am.properties}},Bm={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Km={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"]},Gm={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Ym={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Wm={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"]},Hm={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Qm={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"]},Jm={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"]},Xm={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:Jm}},additionalProperties:!1,required:["trackingId"]},qa={type:"object",properties:{adobe:Bm,amplitude:Km,fullstory:Gm,heap:Ym,rudderstack:Wm,segment:Hm,gtm:Qm,ga:Xm}},La={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"},...He.properties},additionalProperties:!1},Ma={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Va={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},Zm={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"}}}},eh={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Zm},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ys,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},hn={type:"object",patternProperties:{".*":eh}},yn={nodeTypeName:rt.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:rt.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:rt.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:rt.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...fn},additionalProperties:!1}},targets:{nodeTypeName:rt.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:rt.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:rt.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:rt.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},th={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},rh={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},nh={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},Nt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:rh},excludes:{type:"array",items:th},filters:{type:"array",items:nh},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},oh={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},sh={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:oh},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},ih={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:sh,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},ah={type:"object",additionalProperties:ih},za={type:"object",properties:{show:{type:"boolean"},entityTypes:ah,catalogs:{type:"object",properties:{all:Nt,services:Nt,domains:Nt,teams:Nt,users:Nt,apiDescriptions:Nt,dataSchemas:Nt,apiOperations:Nt},additionalProperties:Nt}},additionalProperties:!1},Fa={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},gs={type:"string",enum:["and","or"]},vs={type:"object",properties:{field:{type:"string"},operator:Fa,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Fa,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},ch={type:"object",properties:{operator:gs,conditions:{type:"array",items:vs}},required:["operator","conditions"],additionalProperties:!1},Ua={type:"array",items:{oneOf:[vs,{type:"object",properties:{operator:gs,conditions:{type:"array",items:{oneOf:[vs,ch]}}},required:["operator","conditions"],additionalProperties:!1}]}},Ba={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},ph={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:Ba},required:["subject","assertions"],additionalProperties:!1}},lh={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:Ba,where:ph,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},uh={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},lh]}},dh={type:"object",properties:{name:{type:"string"},extends:fn.extends,rules:uh},required:["name"],additionalProperties:!1},Ka={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},fh={oneOf:[Ka,{type:"array",items:Ka}]},mh={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Ua,{type:"object",properties:{operator:gs,conditions:Ua},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:dh,minItems:1},trigger:fh},required:["name","key","entities","levels"],additionalProperties:!1},Ga={type:"array",items:mh},hh={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:xa,navbar:Ia,products:Ta,footer:_a,sidebar:Pa,scripts:Sa,links:ka,feedback:Sr,search:Oa,aiAssistant:Na,colorMode:ja,palette:Aa,navigation:Ra,codeSnippet:Ca,markdown:Da,openapi:mn,asyncapi:Hf,graphql:an,analytics:qa,userMenu:La,versionPicker:Ma,breadcrumbs:Va,catalog:hn,entitiesCatalog:za,catalogClassic:hn,scorecard:yn,scorecardClassic:yn,scorecards:Ga},additionalProperties:!0},yh=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(yh||{}),gh=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(gh||{}),vh=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(vh||{}),bh="^[a-z0-9]+(?:-[a-z0-9]+)*$",Ya="redocly",wh=[Ya,"corporate","guest"],Wa=["REDOCLY","CORPORATE","GUEST"],$h={type:"object",additionalProperties:{type:"string"}},Eh={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},gn={type:"string",enum:["error","warn","off"]},xh={type:"object",additionalProperties:!1,properties:{schemaCheck:gn,statusCodeCheck:gn,contentTypeCheck:gn,successCriteriaCheck:gn}},Ih={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},Th={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},_h={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Ph={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:[Ih,Th]},inputs:$h,servers:Eh,severity:xh,slo:_h},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Sh={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},kh={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:Sh,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},Oh={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"]},Nh={oneOf:[kh,Oh],discriminator:{propertyName:"type"}},jh={type:"object",additionalProperties:Nh},Ha={oneOf:[{type:"array",items:{type:"string",enum:Wa},uniqueItems:!0},{type:"string",enum:Wa}]},Qa={type:"string",pattern:bh,not:{enum:wh.filter(e=>e!==Ya)}},Ja={oneOf:[{type:"array",items:Qa,uniqueItems:!0},Qa]},Xa={type:"boolean"},Za={type:"string",pattern:"^https?://.*"},ec={type:"string",pattern:"^https?://.*"},Ah={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:rt.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},Rh={type:"object",additionalProperties:Ah,nodeTypeName:rt.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"},Ch={type:"string",enum:["info","success","warning","error"]},Le={type:"object",additionalProperties:{type:"string"}},Dh={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:Ch,rbac:Le,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},qh={type:"array",items:Dh},Lh={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Le,openapi:mn,graphql:an,theme:{type:"object",properties:{openapi:mn,graphql:an},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...fn},required:["root"]},Mh={type:"object",additionalProperties:!0},Vh={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},zh={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},Fh={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:zh},additionalProperties:!1},Uh={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Bh={type:"object",properties:{catalogs:{type:"object",properties:{all:Le,services:Le,domains:Le,teams:Le,users:Le,apiDescriptions:Le,dataSchemas:Le,apiOperations:Le},additionalProperties:Le},entitiesTypes:{type:"object",properties:{service:Le,domain:Le,team:Le,user:Le,apiDescription:Le,apiOperation:Le,dataSchema:Le},additionalProperties:Le},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Le},additionalProperties:!1}},entities:{type:"object",properties:{"**":Le},additionalProperties:Le}},additionalProperties:!1},tc={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Le,cms:Le,reunite:Le,features:{type:"object",properties:{aiSearch:Le,mcp:Le},additionalProperties:!1},content:{type:"object",properties:{"**":Le},additionalProperties:Le},entitiesCatalog:Bh},additionalProperties:Le},Kh={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Gh={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},Yh={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[Kh,Gh]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Wh={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},Hh={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},bs={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:[Wh,Hh],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},Qh={...bs,properties:{...bs.properties,type:{type:"string",const:"APIGEE_EDGE"}}},Jh={type:"object",oneOf:[bs,Qh,Yh],discriminator:{propertyName:"type"}},Xh={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:Jh}}},rc={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"]},Zh={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ey={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},ty={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},ry={type:"object",properties:{requiresLogin:Xa,logoutReturnUrl:Za,residency:ec,sso:Ha,idps:Ja,rbac:tc},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},ws={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:Rh,seo:Fh,rbac:tc,apiFunctions:Uh,requiresLogin:Xa,responseHeaders:{type:"object",additionalProperties:{type:"array",items:Zh}},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:Lh},...fn,ssoDirect:jh,sso:Ha,idps:Ja,residency:ec,logoutReturnUrl:Za,access:ry,developerOnboarding:Xh,removeAttribution:{type:"boolean"},i18n:rc,l10n:rc,metadata:Mh,metadataGlobs:Vh,ignore:{type:"array",items:{type:"string"}},theme:hh,reunite:Ph,logo:xa,navbar:Ia,products:Ta,footer:_a,sidebar:Pa,scripts:Sa,links:ka,feedback:Sr,search:Oa,aiAssistant:Na,colorMode:ja,palette:Aa,navigation:Ra,codeSnippet:Ca,markdown:Da,openapi:mn,graphql:an,analytics:qa,userMenu:La,versionPicker:Ma,breadcrumbs:Va,catalog:hn,entitiesCatalog:za,catalogClassic:hn,scorecard:yn,scorecardClassic:yn,scorecards:Ga,mcp:ey,skills:ty,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:qh},not:{required:["sso","idps"]},additionalProperties:!0},ny={...ws,additionalProperties:!1},vn={$id:"root-redocly-config",...ws,properties:{plugins:{type:"array",items:{type:"string"}},...ws.properties,env:{type:"object",additionalProperties:ny}},additionalProperties:!1},oy=["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"],Ge=$a({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"}),sy={type:"object",nodeTypeName:Ge.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},iy={type:"object",nodeTypeName:Ge.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},ay={type:"object",nodeTypeName:Ge.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},cy={type:"object",nodeTypeName:Ge.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},py={type:"object",properties:{},nodeTypeName:Ge.EntityMetadata,additionalProperties:!0},ly={type:"object",nodeTypeName:Ge.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},uy={type:"object",nodeTypeName:Ge.EntitySlackContact,properties:{channels:{type:"array",items:ly}},required:["channels"],additionalProperties:!1},dy={type:"object",nodeTypeName:Ge.EntityContact,properties:{slack:uy},additionalProperties:!1},fy={type:"object",nodeTypeName:Ge.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},my={type:"object",nodeTypeName:Ge.EntityRelation,properties:{type:{type:"string",enum:oy},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},zt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:dy,links:{type:"array",nodeTypeName:Ge.EntityLinkList,items:fy},relations:{type:"array",nodeTypeName:Ge.EntityRelationList,items:my},metadata:py},hy={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...zt,type:{type:"string",const:"user"},metadata:sy},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ge.UserEntity},{type:"object",nodeTypeName:Ge.ApiOperationEntity,properties:{...zt,type:{type:"string",const:"api-operation"},metadata:ay},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DataSchemaEntity,properties:{...zt,type:{type:"string",const:"data-schema"},metadata:cy},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ApiDescriptionEntity,properties:{...zt,type:{type:"string",const:"api-description"},metadata:iy},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ServiceEntity,properties:{...zt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DomainEntity,properties:{...zt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.TeamEntity,properties:{...zt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},yy={type:"object",nodeTypeName:Ge.Entity,properties:{...zt},required:["key","title","type"],additionalProperties:!1};const gy=["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"];function $s(e){return e.includes("/")}var Es={exports:{}},nc={},jt={},Ht={},oc={},sc={},ic={},ac;function bn(){return ac||(ac=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((f,I)=>`${f}${I}`,"")}get names(){var w;return(w=this._names)!==null&&w!==void 0?w:this._names=this._items.reduce((f,I)=>(I instanceof r&&(f[I.str]=(f[I.str]||0)+1),f),{})}}e._Code=n,e.nil=new n("");function o(E,...w){const f=[E[0]];let I=0;for(;I<w.length;)c(f,w[I]),f.push(E[++I]);return new n(f)}e._=o;const s=new n("+");function i(E,...w){const f=[m(E[0])];let I=0;for(;I<w.length;)f.push(s),c(f,w[I]),f.push(s,m(E[++I]));return a(f),new n(f)}e.str=i;function c(E,w){w instanceof n?E.push(...w._items):w instanceof r?E.push(w):E.push(d(w))}e.addCodeArg=c;function a(E){let w=1;for(;w<E.length-1;){if(E[w]===s){const f=p(E[w-1],E[w+1]);if(f!==void 0){E.splice(w-1,3,f);continue}E[w++]="+"}w++}}function p(E,w){if(w==='""')return E;if(E==='""')return w;if(typeof E=="string")return w instanceof r||E[E.length-1]!=='"'?void 0:typeof w!="string"?`${E.slice(0,-1)}${w}"`:w[0]==='"'?E.slice(0,-1)+w.slice(1):void 0;if(typeof w=="string"&&w[0]==='"'&&!(E instanceof r))return`"${E}${w.slice(1)}`}function l(E,w){return w.emptyStr()?E:E.emptyStr()?w:i`${E}${w}`}e.strConcat=l;function d(E){return typeof E=="number"||typeof E=="boolean"||E===null?E:m(Array.isArray(E)?E.join(","):E)}function y(E){return new n(m(E))}e.stringify=y;function m(E){return JSON.stringify(E).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function h(E){return typeof E=="string"&&e.IDENTIFIER.test(E)?new n(`.${E}`):o`[${E}]`}e.getProperty=h;function $(E){if(typeof E=="string"&&e.IDENTIFIER.test(E))return new n(`${E}`);throw new Error(`CodeGen: invalid export name: ${E}, use explicit $id name mapping`)}e.getEsmExportName=$;function b(E){return new n(E.toString())}e.regexpCode=b})(ic)),ic}var cc={},pc;function lc(){return pc||(pc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=bn();class r extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var n;(function(a){a[a.Started=0]="Started",a[a.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 o{constructor({prefixes:p,parent:l}={}){this._names={},this._prefixes=p,this._parent=l}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const l=this._names[p]||this._nameGroup(p);return`${p}${l.index++}`}_nameGroup(p){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||d===void 0)&&d.has(p)||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=o;class s extends t.Name{constructor(p,l){super(l),this.prefix=p}setValue(p,{property:l,itemIndex:d}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(l)}[${d}]`}}e.ValueScopeName=s;const i=(0,t._)`\n`;class c extends o{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?i:t.nil}}get(){return this._scope}name(p){return new s(p,this._newName(p))}value(p,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(p),{prefix:m}=y,h=(d=l.key)!==null&&d!==void 0?d:l.ref;let $=this._values[m];if($){const w=$.get(h);if(w)return w}else $=this._values[m]=new Map;$.set(h,y);const b=this._scope[m]||(this._scope[m]=[]),E=b.length;return b[E]=l.ref,y.setValue(l,{property:m,itemIndex:E}),y}getValue(p,l){const d=this._values[p];if(d)return d.get(l)}scopeRefs(p,l=this._values){return this._reduceValues(l,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${p}${d.scopePath}`})}scopeCode(p=this._values,l,d){return this._reduceValues(p,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},l,d)}_reduceValues(p,l,d={},y){let m=t.nil;for(const h in p){const $=p[h];if(!$)continue;const b=d[h]=d[h]||new Map;$.forEach(E=>{if(b.has(E))return;b.set(E,n.Started);let w=l(E);if(w){const f=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${f} ${E} = ${w};${this.opts._n}`}else if(w=y?.(E))m=(0,t._)`${m}${w}${this.opts._n}`;else throw new r(E);b.set(E,n.Completed)})}return m}}e.ValueScope=c})(cc)),cc}var uc;function $e(){return uc||(uc=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=bn(),r=lc();var n=bn();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 o=lc();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.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 s{optimizeNodes(){return this}optimizeNames(T,S){return this}}class i extends s{constructor(T,S,_){super(),this.varKind=T,this.name=S,this.rhs=_}render({es5:T,_n:S}){const _=T?r.varKinds.var:this.varKind,L=this.rhs===void 0?"":` = ${this.rhs}`;return`${_} ${this.name}${L};`+S}optimizeNames(T,S){if(T[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,T,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(T,S,_){super(),this.lhs=T,this.rhs=S,this.sideEffects=_}render({_n:T}){return`${this.lhs} = ${this.rhs};`+T}optimizeNames(T,S){if(!(this.lhs instanceof t.Name&&!T[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,T,S),this}get names(){const T=this.lhs instanceof t.Name?{}:{...this.lhs.names};return O(T,this.rhs)}}class a extends c{constructor(T,S,_,L){super(T,_,L),this.op=S}render({_n:T}){return`${this.lhs} ${this.op}= ${this.rhs};`+T}}class p extends s{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`${this.label}:`+T}}class l extends s{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`break${this.label?` ${this.label}`:""};`+T}}class d extends s{constructor(T){super(),this.error=T}render({_n:T}){return`throw ${this.error};`+T}get names(){return this.error.names}}class y extends s{constructor(T){super(),this.code=T}render({_n:T}){return`${this.code};`+T}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(T,S){return this.code=z(this.code,T,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends s{constructor(T=[]){super(),this.nodes=T}render(T){return this.nodes.reduce((S,_)=>S+_.render(T),"")}optimizeNodes(){const{nodes:T}=this;let S=T.length;for(;S--;){const _=T[S].optimizeNodes();Array.isArray(_)?T.splice(S,1,..._):_?T[S]=_:T.splice(S,1)}return T.length>0?this:void 0}optimizeNames(T,S){const{nodes:_}=this;let L=_.length;for(;L--;){const V=_[L];V.optimizeNames(T,S)||(me(T,V.names),_.splice(L,1))}return _.length>0?this:void 0}get names(){return this.nodes.reduce((T,S)=>F(T,S.names),{})}}class h extends m{render(T){return"{"+T._n+super.render(T)+"}"+T._n}}class $ extends m{}class b extends h{}b.kind="else";class E extends h{constructor(T,S){super(S),this.condition=T}render(T){let S=`if(${this.condition})`+super.render(T);return this.else&&(S+="else "+this.else.render(T)),S}optimizeNodes(){super.optimizeNodes();const T=this.condition;if(T===!0)return this.nodes;let S=this.else;if(S){const _=S.optimizeNodes();S=this.else=Array.isArray(_)?new b(_):_}if(S)return T===!1?S instanceof E?S:S.nodes:this.nodes.length?this:new E(we(T),S instanceof E?[S]:S.nodes);if(!(T===!1||!this.nodes.length))return this}optimizeNames(T,S){var _;if(this.else=(_=this.else)===null||_===void 0?void 0:_.optimizeNames(T,S),!!(super.optimizeNames(T,S)||this.else))return this.condition=z(this.condition,T,S),this}get names(){const T=super.names;return O(T,this.condition),this.else&&F(T,this.else.names),T}}E.kind="if";class w extends h{}w.kind="for";class f extends w{constructor(T){super(),this.iteration=T}render(T){return`for(${this.iteration})`+super.render(T)}optimizeNames(T,S){if(super.optimizeNames(T,S))return this.iteration=z(this.iteration,T,S),this}get names(){return F(super.names,this.iteration.names)}}class I extends w{constructor(T,S,_,L){super(),this.varKind=T,this.name=S,this.from=_,this.to=L}render(T){const S=T.es5?r.varKinds.var:this.varKind,{name:_,from:L,to:V}=this;return`for(${S} ${_}=${L}; ${_}<${V}; ${_}++)`+super.render(T)}get names(){const T=O(super.names,this.from);return O(T,this.to)}}class g extends w{constructor(T,S,_,L){super(),this.loop=T,this.varKind=S,this.name=_,this.iterable=L}render(T){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(T)}optimizeNames(T,S){if(super.optimizeNames(T,S))return this.iterable=z(this.iterable,T,S),this}get names(){return F(super.names,this.iterable.names)}}class v extends h{constructor(T,S,_){super(),this.name=T,this.args=S,this.async=_}render(T){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(T)}}v.kind="func";class x extends m{render(T){return"return "+super.render(T)}}x.kind="return";class N extends h{render(T){let S="try"+super.render(T);return this.catch&&(S+=this.catch.render(T)),this.finally&&(S+=this.finally.render(T)),S}optimizeNodes(){var T,S;return super.optimizeNodes(),(T=this.catch)===null||T===void 0||T.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(T,S){var _,L;return super.optimizeNames(T,S),(_=this.catch)===null||_===void 0||_.optimizeNames(T,S),(L=this.finally)===null||L===void 0||L.optimizeNames(T,S),this}get names(){const T=super.names;return this.catch&&F(T,this.catch.names),this.finally&&F(T,this.finally.names),T}}class K extends h{constructor(T){super(),this.error=T}render(T){return`catch(${this.error})`+super.render(T)}}K.kind="catch";class R extends h{render(T){return"finally"+super.render(T)}}R.kind="finally";class C{constructor(T,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
1
+ import{d as xr,bv as Ji,v as Ee,bw as df,be as en,bx as Xi,bf as tt,aq as Zi,by as ff,bz as mf,aJ as ps,aH as ze,aG as ea,a0 as Ke,bn as hf,bA as yf,bB as gf,bC as vf,bj as Ot,bp as bf,bl as tn,bD as rr,bE as ta,bF as ra,aI as wf,bG as ls,bH as Ir,bI as Mt,bJ as $f,bK as Ef,aP as Vt,ba as rn,bb as xf,bk as If,bL as Tf,aK as Tr,aU as na,bM as _f,b5 as Pf,aM as Yt,b9 as oa,aO as us,aN as nn,bN as on,aV as sa,aX as Sf,b7 as kf,aL as sn,bO as Of,aY as Nf,aW as ia,bc as jf,bq as aa,a_ as ca,bP as Af,bQ as Rf,bR as pa,bh as Cf,bd as Df,bS as la}from"./redocly-openapi-docs.min.standalone-DlNPBIhk.js";function qf(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.')}function _r(e){return Array.isArray(e)&&e.length>0}function ds(e){return e?Object.keys(e):[]}var fs={exports:{}},Lf=fs.exports,ua;function Mf(){return ua||(ua=1,(function(e,t){(function(r,n){typeof qf=="function"?e.exports=n():r.pluralize=n()})(Lf,function(){var r=[],n=[],o={},s={},i={};function c($){return typeof $=="string"?new RegExp("^"+$+"$","i"):$}function a($,b){return $===b?b:$===$.toLowerCase()?b.toLowerCase():$===$.toUpperCase()?b.toUpperCase():$[0]===$[0].toUpperCase()?b.charAt(0).toUpperCase()+b.substr(1).toLowerCase():b.toLowerCase()}function p($,b){return $.replace(/\$(\d{1,2})/g,function(E,w){return b[w]||""})}function l($,b){return $.replace(b[0],function(E,w){var f=p(b[1],arguments);return a(E===""?$[w-1]:E,f)})}function d($,b,E){if(!$.length||o.hasOwnProperty($))return b;for(var w=E.length;w--;){var f=E[w];if(f[0].test(b))return l(b,f)}return b}function y($,b,E){return function(w){var f=w.toLowerCase();return b.hasOwnProperty(f)?a(w,f):$.hasOwnProperty(f)?a(w,$[f]):d(f,w,E)}}function m($,b,E,w){return function(f){var I=f.toLowerCase();return b.hasOwnProperty(I)?!0:$.hasOwnProperty(I)?!1:d(I,I,E)===I}}function h($,b,E){var w=b===1?h.singular($):h.plural($);return(E?b+" ":"")+w}return h.plural=y(i,s,r),h.isPlural=m(i,s,r),h.singular=y(s,i,n),h.isSingular=m(s,i,n),h.addPluralRule=function($,b){r.push([c($),b])},h.addSingularRule=function($,b){n.push([c($),b])},h.addUncountableRule=function($){if(typeof $=="string"){o[$.toLowerCase()]=!0;return}h.addPluralRule($,"$0"),h.addSingularRule($,"$0")},h.addIrregularRule=function($,b){b=b.toLowerCase(),$=$.toLowerCase(),i[$]=b,s[b]=$},[["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 h.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 h.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 h.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(h.addUncountableRule),h})})(fs)),fs.exports}var Vf=Mf();const da=xr(Vf);function zf(e,t,r){return e.split(" ").map(n=>da(n,t,r)).join(" ")}var fa={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Pr={type:"object",properties:fa,additionalProperties:!1},Ff={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Sr={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:{...fa,like:Pr,dislike:Pr,satisfied:Pr,neutral:Pr,dissatisfied:Pr},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:Ff},additionalProperties:!1}},additionalProperties:!1},Uf={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},ms={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},ma={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Sr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ms,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:Uf,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},nr={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Bf={type:"object",properties:{name:{type:"string"},items:nr,queries:nr,mutations:nr,subscriptions:nr,types:nr,directives:nr},required:["name"],additionalProperties:!1},Kf={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Bf},otherItemsGroupName:{type:"string"}}},Gf={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Yf={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Wf={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Gf,license:Yf},additionalProperties:!1},an={type:"object",properties:{menu:{type:"object",properties:{...Kf.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ms,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:Sr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Wf},additionalProperties:!1},Hf={type:"object",properties:{downloadUrls:ms,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:Sr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},Qf={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"]},Jf={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"}}},ha={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Xf={type:"object",properties:{beforeInfo:{type:"array",items:ha},end:{type:"array",items:ha}}},Wt={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},cn={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Zf={type:"object",properties:dn(Wt.properties,["light","dark"])},em={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"}}},tm={type:"object",properties:{error:cn,info:cn,redirect:cn,success:cn}},rm={type:"object",properties:or(Wt.properties,["dark"])},nm={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},om={type:"object",properties:{accent:Wt,border:Zf,error:Wt,http:em,primary:Wt,responses:tm,secondary:rm,success:Wt,text:nm,tonalOffset:{type:"number"},warning:Wt}},pn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},sm={type:"object",properties:{small:pn,medium:pn,large:pn,xlarge:pn}},_t={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},im={type:"object",properties:{...or(_t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:sm}},ya={type:"object",properties:dn(_t.properties,["fontSize","lineHeight"])},am={type:"object",properties:{medium:ya,small:ya}},cm={type:"object",properties:{...or(_t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:am}},pm={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},lm={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},ga={type:"object",properties:{fullWidth:{type:"boolean"}}},um={type:"object",properties:{buttons:im,httpBadges:cm,layoutControls:pm,panels:lm,tryItButton:ga,tryItSendButton:ga}},ln={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},dm={type:"object",properties:{maxWidth:ln}},fm={type:"object",properties:{maxWidth:ln,middlePanelMaxWidth:ln}},mm={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:dm,"three-panel":fm}},va={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},hm={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:va,defaultDetailsWidth:{type:"string"},examples:va,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},ba={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},ym={type:"object",properties:dn(ba.properties,["textTransform"])},gm={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},vm={type:"object",properties:{...or(_t.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:ba,level1items:ym,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:gm,textColor:{type:"string"},width:{type:"string"}}},un={type:"object",properties:{..._t.properties,color:{type:"string"},transform:{type:"string"}}},bm={type:"object",properties:{..._t.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"}}},wm={type:"object",properties:or(_t.properties,["fontSize"])},$m={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Em={type:"object",properties:{code:bm,fieldName:_t,...dn(_t.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:un,heading2:un,heading3:un,headings:wm,lineHeight:{type:"string"},links:$m,optimizeSpeed:{type:"boolean"},rightPanelHeading:un,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},xm={type:"object",properties:{color:{type:"string"},...or(_t.properties,["fontWeight"])}},Im={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:xm}},Tm={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},_m={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},wa={type:"object",properties:{custom:{type:"string"}}},Pm={type:"object",properties:{DownloadButton:wa,NextSectionButton:wa}},Sm={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},km={type:"object",properties:{borderRadius:{type:"string"}}},Om={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Nm={type:"object",properties:{breakpoints:ln,codeBlock:Im,colors:om,components:um,layout:mm,logo:Tm,fab:_m,overrides:Pm,rightPanel:Sm,schema:hm,shape:km,sidebar:vm,spacing:Om,typography:Em,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},jm={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Qf}},required:["languages"]},Am={properties:{theme:Nm,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:jm,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:Jf,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:Xf,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 dn(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function or(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var pt={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"},Rm={rules:pt,oas2Rules:pt,oas3_0Rules:pt,oas3_1Rules:pt,oas3_2Rules:pt,async2Rules:pt,async3Rules:pt,arazzo1Rules:pt,arazzo1_1Rules:pt,overlay1Rules:pt,openrpc1Rules:pt,graphqlRules:pt},ft={nodeTypeName:void 0,type:"object",additionalProperties:!0},Cm={preprocessors:ft,oas2Preprocessors:ft,oas3_0Preprocessors:ft,oas3_1Preprocessors:ft,oas3_2Preprocessors:ft,async2Preprocessors:ft,async3Preprocessors:ft,arazzo1Preprocessors:ft,arazzo1_1Preprocessors:ft,overlay1Preprocessors:ft,openrpc1Preprocessors:ft},mt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Dm={decorators:mt,oas2Decorators:mt,oas3_0Decorators:mt,oas3_1Decorators:mt,oas3_2Decorators:mt,async2Decorators:mt,async3Decorators:mt,arazzo1Decorators:mt,arazzo1_1Decorators:mt,overlay1Decorators:mt,openrpc1Decorators:mt},qm={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"},fn={...Rm,...Dm,...Cm,extends:qm},$a=e=>e,rt=$a({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),He={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Ea={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},hs={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}}},ys={type:"array",items:{...hs,properties:{...hs.properties,items:{type:"array",items:hs}}}},Lm={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Mm={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Vm={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}},zm={type:"object",properties:{facets:Vm,...He.properties},additionalProperties:!1},Fm={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},xa={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ia={type:"object",properties:{items:ys,...He.properties},additionalProperties:!1},Ta={type:"object",additionalProperties:Lm},_a={type:"object",properties:{items:ys,copyrightText:{type:"string"},logo:He,...He.properties},additionalProperties:!1},Pa={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...He.properties},additionalProperties:!1},Sa={type:"object",properties:{head:{type:"array",items:Ea},body:{type:"array",items:Ea}},additionalProperties:!1},ka={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}},Oa={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Mm,filters:zm,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Fm},...He.properties},additionalProperties:!1},Na={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},ja={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...He.properties},additionalProperties:!1},Aa={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Um={type:"object",properties:{...He.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Ra={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...He.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...He.properties},additionalProperties:!1},actions:Um},additionalProperties:!1},Ca={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...He.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...He.properties},additionalProperties:!1},expand:{type:"object",properties:{...He.properties},additionalProperties:!1},collapse:{type:"object",properties:{...He.properties},additionalProperties:!1}},additionalProperties:!1},Da={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"},...He.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...He.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...He.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},mn={...ma,properties:{...ma.properties,...Am.properties}},Bm={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Km={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"]},Gm={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Ym={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Wm={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"]},Hm={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Qm={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"]},Jm={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"]},Xm={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:Jm}},additionalProperties:!1,required:["trackingId"]},qa={type:"object",properties:{adobe:Bm,amplitude:Km,fullstory:Gm,heap:Ym,rudderstack:Wm,segment:Hm,gtm:Qm,ga:Xm}},La={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"},...He.properties},additionalProperties:!1},Ma={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Va={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},Zm={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"}}}},eh={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Zm},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ys,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},hn={type:"object",patternProperties:{".*":eh}},yn={nodeTypeName:rt.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:rt.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:rt.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:rt.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...fn},additionalProperties:!1}},targets:{nodeTypeName:rt.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:rt.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:rt.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:rt.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},th={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},rh={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},nh={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},Nt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:rh},excludes:{type:"array",items:th},filters:{type:"array",items:nh},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},oh={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},sh={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:oh},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},ih={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:sh,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},ah={type:"object",additionalProperties:ih},za={type:"object",properties:{show:{type:"boolean"},entityTypes:ah,catalogs:{type:"object",properties:{all:Nt,services:Nt,domains:Nt,teams:Nt,users:Nt,apiDescriptions:Nt,dataSchemas:Nt,apiOperations:Nt},additionalProperties:Nt}},additionalProperties:!1},Fa={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},gs={type:"string",enum:["and","or"]},vs={type:"object",properties:{field:{type:"string"},operator:Fa,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Fa,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},ch={type:"object",properties:{operator:gs,conditions:{type:"array",items:vs}},required:["operator","conditions"],additionalProperties:!1},Ua={type:"array",items:{oneOf:[vs,{type:"object",properties:{operator:gs,conditions:{type:"array",items:{oneOf:[vs,ch]}}},required:["operator","conditions"],additionalProperties:!1}]}},Ba={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},ph={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:Ba},required:["subject","assertions"],additionalProperties:!1}},lh={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:Ba,where:ph,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},uh={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},lh]}},dh={type:"object",properties:{name:{type:"string"},extends:fn.extends,rules:uh},required:["name"],additionalProperties:!1},Ka={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},fh={oneOf:[Ka,{type:"array",items:Ka}]},mh={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Ua,{type:"object",properties:{operator:gs,conditions:Ua},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:dh,minItems:1},trigger:fh},required:["name","key","entities","levels"],additionalProperties:!1},Ga={type:"array",items:mh},hh={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:xa,navbar:Ia,products:Ta,footer:_a,sidebar:Pa,scripts:Sa,links:ka,feedback:Sr,search:Oa,aiAssistant:Na,colorMode:ja,palette:Aa,navigation:Ra,codeSnippet:Ca,markdown:Da,openapi:mn,asyncapi:Hf,graphql:an,analytics:qa,userMenu:La,versionPicker:Ma,breadcrumbs:Va,catalog:hn,entitiesCatalog:za,catalogClassic:hn,scorecard:yn,scorecardClassic:yn,scorecards:Ga},additionalProperties:!0},yh=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(yh||{}),gh=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(gh||{}),vh=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(vh||{}),bh="^[a-z0-9]+(?:-[a-z0-9]+)*$",Ya="redocly",wh=[Ya,"corporate","guest"],Wa=["REDOCLY","CORPORATE","GUEST"],$h={type:"object",additionalProperties:{type:"string"}},Eh={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},gn={type:"string",enum:["error","warn","off"]},xh={type:"object",additionalProperties:!1,properties:{schemaCheck:gn,statusCodeCheck:gn,contentTypeCheck:gn,successCriteriaCheck:gn}},Ih={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},Th={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},_h={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Ph={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:[Ih,Th]},inputs:$h,servers:Eh,severity:xh,slo:_h},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Sh={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},kh={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:Sh,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},Oh={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"]},Nh={oneOf:[kh,Oh],discriminator:{propertyName:"type"}},jh={type:"object",additionalProperties:Nh},Ha={oneOf:[{type:"array",items:{type:"string",enum:Wa},uniqueItems:!0},{type:"string",enum:Wa}]},Qa={type:"string",pattern:bh,not:{enum:wh.filter(e=>e!==Ya)}},Ja={oneOf:[{type:"array",items:Qa,uniqueItems:!0},Qa]},Xa={type:"boolean"},Za={type:"string",pattern:"^https?://.*"},ec={type:"string",pattern:"^https?://.*"},Ah={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:rt.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},Rh={type:"object",additionalProperties:Ah,nodeTypeName:rt.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"},Ch={type:"string",enum:["info","success","warning","error"]},Le={type:"object",additionalProperties:{type:"string"}},Dh={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:Ch,rbac:Le,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},qh={type:"array",items:Dh},Lh={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Le,openapi:mn,graphql:an,theme:{type:"object",properties:{openapi:mn,graphql:an},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...fn},required:["root"]},Mh={type:"object",additionalProperties:!0},Vh={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},zh={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},Fh={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:zh},additionalProperties:!1},Uh={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Bh={type:"object",properties:{catalogs:{type:"object",properties:{all:Le,services:Le,domains:Le,teams:Le,users:Le,apiDescriptions:Le,dataSchemas:Le,apiOperations:Le},additionalProperties:Le},entitiesTypes:{type:"object",properties:{service:Le,domain:Le,team:Le,user:Le,apiDescription:Le,apiOperation:Le,dataSchema:Le},additionalProperties:Le},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Le},additionalProperties:!1}},entities:{type:"object",properties:{"**":Le},additionalProperties:Le}},additionalProperties:!1},tc={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Le,cms:Le,reunite:Le,features:{type:"object",properties:{aiSearch:Le,mcp:Le},additionalProperties:!1},content:{type:"object",properties:{"**":Le},additionalProperties:Le},entitiesCatalog:Bh},additionalProperties:Le},Kh={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Gh={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},Yh={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[Kh,Gh]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Wh={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},Hh={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},bs={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:[Wh,Hh],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},Qh={...bs,properties:{...bs.properties,type:{type:"string",const:"APIGEE_EDGE"}}},Jh={type:"object",oneOf:[bs,Qh,Yh],discriminator:{propertyName:"type"}},Xh={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:Jh}}},rc={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"]},Zh={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ey={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},ty={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},ry={type:"object",properties:{requiresLogin:Xa,logoutReturnUrl:Za,residency:ec,sso:Ha,idps:Ja,rbac:tc},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},ws={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:Rh,seo:Fh,rbac:tc,apiFunctions:Uh,requiresLogin:Xa,responseHeaders:{type:"object",additionalProperties:{type:"array",items:Zh}},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:Lh},...fn,ssoDirect:jh,sso:Ha,idps:Ja,residency:ec,logoutReturnUrl:Za,access:ry,developerOnboarding:Xh,removeAttribution:{type:"boolean"},i18n:rc,l10n:rc,metadata:Mh,metadataGlobs:Vh,ignore:{type:"array",items:{type:"string"}},theme:hh,reunite:Ph,logo:xa,navbar:Ia,products:Ta,footer:_a,sidebar:Pa,scripts:Sa,links:ka,feedback:Sr,search:Oa,aiAssistant:Na,colorMode:ja,palette:Aa,navigation:Ra,codeSnippet:Ca,markdown:Da,openapi:mn,graphql:an,analytics:qa,userMenu:La,versionPicker:Ma,breadcrumbs:Va,catalog:hn,entitiesCatalog:za,catalogClassic:hn,scorecard:yn,scorecardClassic:yn,scorecards:Ga,mcp:ey,skills:ty,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:qh},not:{required:["sso","idps"]},additionalProperties:!0},ny={...ws,additionalProperties:!1},vn={$id:"root-redocly-config",...ws,properties:{plugins:{type:"array",items:{type:"string"}},...ws.properties,env:{type:"object",additionalProperties:ny}},additionalProperties:!1},oy=["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"],Ge=$a({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"}),sy={type:"object",nodeTypeName:Ge.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},iy={type:"object",nodeTypeName:Ge.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},ay={type:"object",nodeTypeName:Ge.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},cy={type:"object",nodeTypeName:Ge.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},py={type:"object",properties:{},nodeTypeName:Ge.EntityMetadata,additionalProperties:!0},ly={type:"object",nodeTypeName:Ge.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},uy={type:"object",nodeTypeName:Ge.EntitySlackContact,properties:{channels:{type:"array",items:ly}},required:["channels"],additionalProperties:!1},dy={type:"object",nodeTypeName:Ge.EntityContact,properties:{slack:uy},additionalProperties:!1},fy={type:"object",nodeTypeName:Ge.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},my={type:"object",nodeTypeName:Ge.EntityRelation,properties:{type:{type:"string",enum:oy},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},zt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:dy,links:{type:"array",nodeTypeName:Ge.EntityLinkList,items:fy},relations:{type:"array",nodeTypeName:Ge.EntityRelationList,items:my},metadata:py},hy={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...zt,type:{type:"string",const:"user"},metadata:sy},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ge.UserEntity},{type:"object",nodeTypeName:Ge.ApiOperationEntity,properties:{...zt,type:{type:"string",const:"api-operation"},metadata:ay},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DataSchemaEntity,properties:{...zt,type:{type:"string",const:"data-schema"},metadata:cy},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ApiDescriptionEntity,properties:{...zt,type:{type:"string",const:"api-description"},metadata:iy},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ServiceEntity,properties:{...zt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DomainEntity,properties:{...zt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.TeamEntity,properties:{...zt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},yy={type:"object",nodeTypeName:Ge.Entity,properties:{...zt},required:["key","title","type"],additionalProperties:!1};const gy=["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"];function $s(e){return e.includes("/")}var Es={exports:{}},nc={},jt={},Ht={},oc={},sc={},ic={},ac;function bn(){return ac||(ac=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((f,I)=>`${f}${I}`,"")}get names(){var w;return(w=this._names)!==null&&w!==void 0?w:this._names=this._items.reduce((f,I)=>(I instanceof r&&(f[I.str]=(f[I.str]||0)+1),f),{})}}e._Code=n,e.nil=new n("");function o(E,...w){const f=[E[0]];let I=0;for(;I<w.length;)c(f,w[I]),f.push(E[++I]);return new n(f)}e._=o;const s=new n("+");function i(E,...w){const f=[m(E[0])];let I=0;for(;I<w.length;)f.push(s),c(f,w[I]),f.push(s,m(E[++I]));return a(f),new n(f)}e.str=i;function c(E,w){w instanceof n?E.push(...w._items):w instanceof r?E.push(w):E.push(d(w))}e.addCodeArg=c;function a(E){let w=1;for(;w<E.length-1;){if(E[w]===s){const f=p(E[w-1],E[w+1]);if(f!==void 0){E.splice(w-1,3,f);continue}E[w++]="+"}w++}}function p(E,w){if(w==='""')return E;if(E==='""')return w;if(typeof E=="string")return w instanceof r||E[E.length-1]!=='"'?void 0:typeof w!="string"?`${E.slice(0,-1)}${w}"`:w[0]==='"'?E.slice(0,-1)+w.slice(1):void 0;if(typeof w=="string"&&w[0]==='"'&&!(E instanceof r))return`"${E}${w.slice(1)}`}function l(E,w){return w.emptyStr()?E:E.emptyStr()?w:i`${E}${w}`}e.strConcat=l;function d(E){return typeof E=="number"||typeof E=="boolean"||E===null?E:m(Array.isArray(E)?E.join(","):E)}function y(E){return new n(m(E))}e.stringify=y;function m(E){return JSON.stringify(E).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function h(E){return typeof E=="string"&&e.IDENTIFIER.test(E)?new n(`.${E}`):o`[${E}]`}e.getProperty=h;function $(E){if(typeof E=="string"&&e.IDENTIFIER.test(E))return new n(`${E}`);throw new Error(`CodeGen: invalid export name: ${E}, use explicit $id name mapping`)}e.getEsmExportName=$;function b(E){return new n(E.toString())}e.regexpCode=b})(ic)),ic}var cc={},pc;function lc(){return pc||(pc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=bn();class r extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var n;(function(a){a[a.Started=0]="Started",a[a.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 o{constructor({prefixes:p,parent:l}={}){this._names={},this._prefixes=p,this._parent=l}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const l=this._names[p]||this._nameGroup(p);return`${p}${l.index++}`}_nameGroup(p){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||d===void 0)&&d.has(p)||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=o;class s extends t.Name{constructor(p,l){super(l),this.prefix=p}setValue(p,{property:l,itemIndex:d}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(l)}[${d}]`}}e.ValueScopeName=s;const i=(0,t._)`\n`;class c extends o{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?i:t.nil}}get(){return this._scope}name(p){return new s(p,this._newName(p))}value(p,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(p),{prefix:m}=y,h=(d=l.key)!==null&&d!==void 0?d:l.ref;let $=this._values[m];if($){const w=$.get(h);if(w)return w}else $=this._values[m]=new Map;$.set(h,y);const b=this._scope[m]||(this._scope[m]=[]),E=b.length;return b[E]=l.ref,y.setValue(l,{property:m,itemIndex:E}),y}getValue(p,l){const d=this._values[p];if(d)return d.get(l)}scopeRefs(p,l=this._values){return this._reduceValues(l,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${p}${d.scopePath}`})}scopeCode(p=this._values,l,d){return this._reduceValues(p,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},l,d)}_reduceValues(p,l,d={},y){let m=t.nil;for(const h in p){const $=p[h];if(!$)continue;const b=d[h]=d[h]||new Map;$.forEach(E=>{if(b.has(E))return;b.set(E,n.Started);let w=l(E);if(w){const f=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${f} ${E} = ${w};${this.opts._n}`}else if(w=y?.(E))m=(0,t._)`${m}${w}${this.opts._n}`;else throw new r(E);b.set(E,n.Completed)})}return m}}e.ValueScope=c})(cc)),cc}var uc;function $e(){return uc||(uc=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=bn(),r=lc();var n=bn();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 o=lc();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.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 s{optimizeNodes(){return this}optimizeNames(T,S){return this}}class i extends s{constructor(T,S,_){super(),this.varKind=T,this.name=S,this.rhs=_}render({es5:T,_n:S}){const _=T?r.varKinds.var:this.varKind,L=this.rhs===void 0?"":` = ${this.rhs}`;return`${_} ${this.name}${L};`+S}optimizeNames(T,S){if(T[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,T,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(T,S,_){super(),this.lhs=T,this.rhs=S,this.sideEffects=_}render({_n:T}){return`${this.lhs} = ${this.rhs};`+T}optimizeNames(T,S){if(!(this.lhs instanceof t.Name&&!T[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,T,S),this}get names(){const T=this.lhs instanceof t.Name?{}:{...this.lhs.names};return O(T,this.rhs)}}class a extends c{constructor(T,S,_,L){super(T,_,L),this.op=S}render({_n:T}){return`${this.lhs} ${this.op}= ${this.rhs};`+T}}class p extends s{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`${this.label}:`+T}}class l extends s{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`break${this.label?` ${this.label}`:""};`+T}}class d extends s{constructor(T){super(),this.error=T}render({_n:T}){return`throw ${this.error};`+T}get names(){return this.error.names}}class y extends s{constructor(T){super(),this.code=T}render({_n:T}){return`${this.code};`+T}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(T,S){return this.code=z(this.code,T,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends s{constructor(T=[]){super(),this.nodes=T}render(T){return this.nodes.reduce((S,_)=>S+_.render(T),"")}optimizeNodes(){const{nodes:T}=this;let S=T.length;for(;S--;){const _=T[S].optimizeNodes();Array.isArray(_)?T.splice(S,1,..._):_?T[S]=_:T.splice(S,1)}return T.length>0?this:void 0}optimizeNames(T,S){const{nodes:_}=this;let L=_.length;for(;L--;){const V=_[L];V.optimizeNames(T,S)||(me(T,V.names),_.splice(L,1))}return _.length>0?this:void 0}get names(){return this.nodes.reduce((T,S)=>F(T,S.names),{})}}class h extends m{render(T){return"{"+T._n+super.render(T)+"}"+T._n}}class $ extends m{}class b extends h{}b.kind="else";class E extends h{constructor(T,S){super(S),this.condition=T}render(T){let S=`if(${this.condition})`+super.render(T);return this.else&&(S+="else "+this.else.render(T)),S}optimizeNodes(){super.optimizeNodes();const T=this.condition;if(T===!0)return this.nodes;let S=this.else;if(S){const _=S.optimizeNodes();S=this.else=Array.isArray(_)?new b(_):_}if(S)return T===!1?S instanceof E?S:S.nodes:this.nodes.length?this:new E(we(T),S instanceof E?[S]:S.nodes);if(!(T===!1||!this.nodes.length))return this}optimizeNames(T,S){var _;if(this.else=(_=this.else)===null||_===void 0?void 0:_.optimizeNames(T,S),!!(super.optimizeNames(T,S)||this.else))return this.condition=z(this.condition,T,S),this}get names(){const T=super.names;return O(T,this.condition),this.else&&F(T,this.else.names),T}}E.kind="if";class w extends h{}w.kind="for";class f extends w{constructor(T){super(),this.iteration=T}render(T){return`for(${this.iteration})`+super.render(T)}optimizeNames(T,S){if(super.optimizeNames(T,S))return this.iteration=z(this.iteration,T,S),this}get names(){return F(super.names,this.iteration.names)}}class I extends w{constructor(T,S,_,L){super(),this.varKind=T,this.name=S,this.from=_,this.to=L}render(T){const S=T.es5?r.varKinds.var:this.varKind,{name:_,from:L,to:V}=this;return`for(${S} ${_}=${L}; ${_}<${V}; ${_}++)`+super.render(T)}get names(){const T=O(super.names,this.from);return O(T,this.to)}}class g extends w{constructor(T,S,_,L){super(),this.loop=T,this.varKind=S,this.name=_,this.iterable=L}render(T){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(T)}optimizeNames(T,S){if(super.optimizeNames(T,S))return this.iterable=z(this.iterable,T,S),this}get names(){return F(super.names,this.iterable.names)}}class v extends h{constructor(T,S,_){super(),this.name=T,this.args=S,this.async=_}render(T){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(T)}}v.kind="func";class x extends m{render(T){return"return "+super.render(T)}}x.kind="return";class N extends h{render(T){let S="try"+super.render(T);return this.catch&&(S+=this.catch.render(T)),this.finally&&(S+=this.finally.render(T)),S}optimizeNodes(){var T,S;return super.optimizeNodes(),(T=this.catch)===null||T===void 0||T.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(T,S){var _,L;return super.optimizeNames(T,S),(_=this.catch)===null||_===void 0||_.optimizeNames(T,S),(L=this.finally)===null||L===void 0||L.optimizeNames(T,S),this}get names(){const T=super.names;return this.catch&&F(T,this.catch.names),this.finally&&F(T,this.finally.names),T}}class K extends h{constructor(T){super(),this.error=T}render(T){return`catch(${this.error})`+super.render(T)}}K.kind="catch";class R extends h{render(T){return"finally"+super.render(T)}}R.kind="finally";class C{constructor(T,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
2
2
  `:""},this._extScope=T,this._scope=new r.Scope({parent:T}),this._nodes=[new $]}toString(){return this._root.render(this.opts)}name(T){return this._scope.name(T)}scopeName(T){return this._extScope.name(T)}scopeValue(T,S){const _=this._extScope.value(T,S);return(this._values[_.prefix]||(this._values[_.prefix]=new Set)).add(_),_}getScopeValue(T,S){return this._extScope.getValue(T,S)}scopeRefs(T){return this._extScope.scopeRefs(T,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(T,S,_,L){const V=this._scope.toName(S);return _!==void 0&&L&&(this._constants[V.str]=_),this._leafNode(new i(T,V,_)),V}const(T,S,_){return this._def(r.varKinds.const,T,S,_)}let(T,S,_){return this._def(r.varKinds.let,T,S,_)}var(T,S,_){return this._def(r.varKinds.var,T,S,_)}assign(T,S,_){return this._leafNode(new c(T,S,_))}add(T,S){return this._leafNode(new a(T,e.operators.ADD,S))}code(T){return typeof T=="function"?T():T!==t.nil&&this._leafNode(new y(T)),this}object(...T){const S=["{"];for(const[_,L]of T)S.length>1&&S.push(","),S.push(_),(_!==L||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,L));return S.push("}"),new t._Code(S)}if(T,S,_){if(this._blockNode(new E(T)),S&&_)this.code(S).else().code(_).endIf();else if(S)this.code(S).endIf();else if(_)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(T){return this._elseNode(new E(T))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(E,b)}_for(T,S){return this._blockNode(T),S&&this.code(S).endFor(),this}for(T,S){return this._for(new f(T),S)}forRange(T,S,_,L,V=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(T);return this._for(new I(V,J,S,_),()=>L(J))}forOf(T,S,_,L=r.varKinds.const){const V=this._scope.toName(T);if(this.opts.es5){const J=S instanceof t.Name?S:this.var("_arr",S);return this.forRange("_i",0,(0,t._)`${J}.length`,ie=>{this.var(V,(0,t._)`${J}[${ie}]`),_(V)})}return this._for(new g("of",L,V,S),()=>_(V))}forIn(T,S,_,L=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(T,(0,t._)`Object.keys(${S})`,_);const V=this._scope.toName(T);return this._for(new g("in",L,V,S),()=>_(V))}endFor(){return this._endBlockNode(w)}label(T){return this._leafNode(new p(T))}break(T){return this._leafNode(new l(T))}return(T){const S=new x;if(this._blockNode(S),this.code(T),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(T,S,_){if(!S&&!_)throw new Error('CodeGen: "try" without "catch" and "finally"');const L=new N;if(this._blockNode(L),this.code(T),S){const V=this.name("e");this._currNode=L.catch=new K(V),S(V)}return _&&(this._currNode=L.finally=new R,this.code(_)),this._endBlockNode(K,R)}throw(T){return this._leafNode(new d(T))}block(T,S){return this._blockStarts.push(this._nodes.length),T&&this.code(T).endBlock(S),this}endBlock(T){const S=this._blockStarts.pop();if(S===void 0)throw new Error("CodeGen: not in self-balancing block");const _=this._nodes.length-S;if(_<0||T!==void 0&&_!==T)throw new Error(`CodeGen: wrong number of nodes: ${_} vs ${T} expected`);return this._nodes.length=S,this}func(T,S=t.nil,_,L){return this._blockNode(new v(T,S,_)),L&&this.code(L).endFunc(),this}endFunc(){return this._endBlockNode(v)}optimize(T=1){for(;T-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(T){return this._currNode.nodes.push(T),this}_blockNode(T){this._currNode.nodes.push(T),this._nodes.push(T)}_endBlockNode(T,S){const _=this._currNode;if(_ instanceof T||S&&_ instanceof S)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${S?`${T.kind}/${S.kind}`:T.kind}"`)}_elseNode(T){const S=this._currNode;if(!(S instanceof E))throw new Error('CodeGen: "else" without "if"');return this._currNode=S.else=T,this}get _root(){return this._nodes[0]}get _currNode(){const T=this._nodes;return T[T.length-1]}set _currNode(T){const S=this._nodes;S[S.length-1]=T}}e.CodeGen=C;function F(D,T){for(const S in T)D[S]=(D[S]||0)+(T[S]||0);return D}function O(D,T){return T instanceof t._CodeOrName?F(D,T.names):D}function z(D,T,S){if(D instanceof t.Name)return _(D);if(!L(D))return D;return new t._Code(D._items.reduce((V,J)=>(J instanceof t.Name&&(J=_(J)),J instanceof t._Code?V.push(...J._items):V.push(J),V),[]));function _(V){const J=S[V.str];return J===void 0||T[V.str]!==1?V:(delete T[V.str],J)}function L(V){return V instanceof t._Code&&V._items.some(J=>J instanceof t.Name&&T[J.str]===1&&S[J.str]!==void 0)}}function me(D,T){for(const S in T)D[S]=(D[S]||0)-(T[S]||0)}function we(D){return typeof D=="boolean"||typeof D=="number"||D===null?!D:(0,t._)`!${H(D)}`}e.not=we;const Te=A(e.operators.AND);function ve(...D){return D.reduce(Te)}e.and=ve;const je=A(e.operators.OR);function q(...D){return D.reduce(je)}e.or=q;function A(D){return(T,S)=>T===t.nil?S:S===t.nil?T:(0,t._)`${H(T)} ${D} ${H(S)}`}function H(D){return D instanceof t.Name?D:(0,t._)`(${D})`}})(sc)),sc}var Pe={},dc;function Ne(){if(dc)return Pe;dc=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.checkStrictMode=Pe.getErrorPath=Pe.Type=Pe.useFunc=Pe.setEvaluated=Pe.evaluatedPropsToName=Pe.mergeEvaluated=Pe.eachItem=Pe.unescapeJsonPointer=Pe.escapeJsonPointer=Pe.escapeFragment=Pe.unescapeFragment=Pe.schemaRefOrVal=Pe.schemaHasRulesButRef=Pe.schemaHasRules=Pe.checkUnknownRules=Pe.alwaysValidSchema=Pe.toHash=void 0;const e=$e(),t=bn();function r(g){const v={};for(const x of g)v[x]=!0;return v}Pe.toHash=r;function n(g,v){return typeof v=="boolean"?v:Object.keys(v).length===0?!0:(o(g,v),!s(v,g.self.RULES.all))}Pe.alwaysValidSchema=n;function o(g,v=g.schema){const{opts:x,self:N}=g;if(!x.strictSchema||typeof v=="boolean")return;const K=N.RULES.keywords;for(const R in v)K[R]||I(g,`unknown keyword: "${R}"`)}Pe.checkUnknownRules=o;function s(g,v){if(typeof g=="boolean")return!g;for(const x in g)if(v[x])return!0;return!1}Pe.schemaHasRules=s;function i(g,v){if(typeof g=="boolean")return!g;for(const x in g)if(x!=="$ref"&&v.all[x])return!0;return!1}Pe.schemaHasRulesButRef=i;function c({topSchemaRef:g,schemaPath:v},x,N,K){if(!K){if(typeof x=="number"||typeof x=="boolean")return x;if(typeof x=="string")return(0,e._)`${x}`}return(0,e._)`${g}${v}${(0,e.getProperty)(N)}`}Pe.schemaRefOrVal=c;function a(g){return d(decodeURIComponent(g))}Pe.unescapeFragment=a;function p(g){return encodeURIComponent(l(g))}Pe.escapeFragment=p;function l(g){return typeof g=="number"?`${g}`:g.replace(/~/g,"~0").replace(/\//g,"~1")}Pe.escapeJsonPointer=l;function d(g){return g.replace(/~1/g,"/").replace(/~0/g,"~")}Pe.unescapeJsonPointer=d;function y(g,v){if(Array.isArray(g))for(const x of g)v(x);else v(g)}Pe.eachItem=y;function m({mergeNames:g,mergeToName:v,mergeValues:x,resultToName:N}){return(K,R,C,F)=>{const O=C===void 0?R:C instanceof e.Name?(R instanceof e.Name?g(K,R,C):v(K,R,C),C):R instanceof e.Name?(v(K,C,R),R):x(R,C);return F===e.Name&&!(O instanceof e.Name)?N(K,O):O}}Pe.mergeEvaluated={props:m({mergeNames:(g,v,x)=>g.if((0,e._)`${x} !== true && ${v} !== undefined`,()=>{g.if((0,e._)`${v} === true`,()=>g.assign(x,!0),()=>g.assign(x,(0,e._)`${x} || {}`).code((0,e._)`Object.assign(${x}, ${v})`))}),mergeToName:(g,v,x)=>g.if((0,e._)`${x} !== true`,()=>{v===!0?g.assign(x,!0):(g.assign(x,(0,e._)`${x} || {}`),$(g,x,v))}),mergeValues:(g,v)=>g===!0?!0:{...g,...v},resultToName:h}),items:m({mergeNames:(g,v,x)=>g.if((0,e._)`${x} !== true && ${v} !== undefined`,()=>g.assign(x,(0,e._)`${v} === true ? true : ${x} > ${v} ? ${x} : ${v}`)),mergeToName:(g,v,x)=>g.if((0,e._)`${x} !== true`,()=>g.assign(x,v===!0?!0:(0,e._)`${x} > ${v} ? ${x} : ${v}`)),mergeValues:(g,v)=>g===!0?!0:Math.max(g,v),resultToName:(g,v)=>g.var("items",v)})};function h(g,v){if(v===!0)return g.var("props",!0);const x=g.var("props",(0,e._)`{}`);return v!==void 0&&$(g,x,v),x}Pe.evaluatedPropsToName=h;function $(g,v,x){Object.keys(x).forEach(N=>g.assign((0,e._)`${v}${(0,e.getProperty)(N)}`,!0))}Pe.setEvaluated=$;const b={};function E(g,v){return g.scopeValue("func",{ref:v,code:b[v.code]||(b[v.code]=new t._Code(v.code))})}Pe.useFunc=E;var w;(function(g){g[g.Num=0]="Num",g[g.Str=1]="Str"})(w||(Pe.Type=w={}));function f(g,v,x){if(g instanceof e.Name){const N=v===w.Num;return x?N?(0,e._)`"[" + ${g} + "]"`:(0,e._)`"['" + ${g} + "']"`:N?(0,e._)`"/" + ${g}`:(0,e._)`"/" + ${g}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return x?(0,e.getProperty)(g).toString():"/"+l(g)}Pe.getErrorPath=f;function I(g,v,x=g.opts.strictSchema){if(x){if(v=`strict mode: ${v}`,x===!0)throw new Error(v);g.self.logger.warn(v)}}return Pe.checkStrictMode=I,Pe}var wn={},fc;function st(){if(fc)return wn;fc=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=$e(),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 wn.default=t,wn}var mc;function $n(){return mc||(mc=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=$e(),r=Ne(),n=st();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:E})=>E?(0,t.str)`"${b}" keyword must be ${E} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function o(b,E=e.keywordError,w,f){const{it:I}=b,{gen:g,compositeRule:v,allErrors:x}=I,N=d(b,E,w);f??(v||x)?a(g,N):p(I,(0,t._)`[${N}]`)}e.reportError=o;function s(b,E=e.keywordError,w){const{it:f}=b,{gen:I,compositeRule:g,allErrors:v}=f,x=d(b,E,w);a(I,x),g||v||p(f,n.default.vErrors)}e.reportExtraError=s;function i(b,E){b.assign(n.default.errors,E),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(E,()=>b.assign((0,t._)`${n.default.vErrors}.length`,E),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function c({gen:b,keyword:E,schemaValue:w,data:f,errsCount:I,it:g}){if(I===void 0)throw new Error("ajv implementation error");const v=b.name("err");b.forRange("i",I,n.default.errors,x=>{b.const(v,(0,t._)`${n.default.vErrors}[${x}]`),b.if((0,t._)`${v}.instancePath === undefined`,()=>b.assign((0,t._)`${v}.instancePath`,(0,t.strConcat)(n.default.instancePath,g.errorPath))),b.assign((0,t._)`${v}.schemaPath`,(0,t.str)`${g.errSchemaPath}/${E}`),g.opts.verbose&&(b.assign((0,t._)`${v}.schema`,w),b.assign((0,t._)`${v}.data`,f))})}e.extendErrors=c;function a(b,E){const w=b.const("err",E);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${w}]`),(0,t._)`${n.default.vErrors}.push(${w})`),b.code((0,t._)`${n.default.errors}++`)}function p(b,E){const{gen:w,validateName:f,schemaEnv:I}=b;I.$async?w.throw((0,t._)`new ${b.ValidationError}(${E})`):(w.assign((0,t._)`${f}.errors`,E),w.return(!1))}const l={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(b,E,w){const{createErrors:f}=b.it;return f===!1?(0,t._)`{}`:y(b,E,w)}function y(b,E,w={}){const{gen:f,it:I}=b,g=[m(I,w),h(b,w)];return $(b,E,g),f.object(...g)}function m({errorPath:b},{instancePath:E}){const w=E?(0,t.str)`${b}${(0,r.getErrorPath)(E,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,w)]}function h({keyword:b,it:{errSchemaPath:E}},{schemaPath:w,parentSchema:f}){let I=f?E:(0,t.str)`${E}/${b}`;return w&&(I=(0,t.str)`${I}${(0,r.getErrorPath)(w,r.Type.Str)}`),[l.schemaPath,I]}function $(b,{params:E,message:w},f){const{keyword:I,data:g,schemaValue:v,it:x}=b,{opts:N,propertyName:K,topSchemaRef:R,schemaPath:C}=x;f.push([l.keyword,I],[l.params,typeof E=="function"?E(b):E||(0,t._)`{}`]),N.messages&&f.push([l.message,typeof w=="function"?w(b):w]),N.verbose&&f.push([l.schema,v],[l.parentSchema,(0,t._)`${R}${C}`],[n.default.data,g]),K&&f.push([l.propertyName,K])}})(oc)),oc}var hc;function vy(){if(hc)return Ht;hc=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.boolOrEmptySchema=Ht.topBoolOrEmptySchema=void 0;const e=$n(),t=$e(),r=st(),n={message:"boolean schema is false"};function o(c){const{gen:a,schema:p,validateName:l}=c;p===!1?i(c,!1):typeof p=="object"&&p.$async===!0?a.return(r.default.data):(a.assign((0,t._)`${l}.errors`,null),a.return(!0))}Ht.topBoolOrEmptySchema=o;function s(c,a){const{gen:p,schema:l}=c;l===!1?(p.var(a,!1),i(c)):p.var(a,!0)}Ht.boolOrEmptySchema=s;function i(c,a){const{gen:p,data:l}=c,d={gen:p,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(d,n,void 0,a)}return Ht}var Je={},Qt={},yc;function gc(){if(yc)return Qt;yc=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.getRules=Qt.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(o){return typeof o=="string"&&t.has(o)}Qt.isJSONType=r;function n(){const o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...o,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}return Qt.getRules=n,Qt}var At={},vc;function bc(){if(vc)return At;vc=1,Object.defineProperty(At,"__esModule",{value:!0}),At.shouldUseRule=At.shouldUseGroup=At.schemaHasRulesForType=void 0;function e({schema:n,self:o},s){const i=o.RULES.types[s];return i&&i!==!0&&t(n,i)}At.schemaHasRulesForType=e;function t(n,o){return o.rules.some(s=>r(n,s))}At.shouldUseGroup=t;function r(n,o){var s;return n[o.keyword]!==void 0||((s=o.definition.implements)===null||s===void 0?void 0:s.some(i=>n[i]!==void 0))}return At.shouldUseRule=r,At}var wc;function En(){if(wc)return Je;wc=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.reportTypeError=Je.checkDataTypes=Je.checkDataType=Je.coerceAndCheckDataType=Je.getJSONTypes=Je.getSchemaTypes=Je.DataType=void 0;const e=gc(),t=bc(),r=$n(),n=$e(),o=Ne();var s;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(s||(Je.DataType=s={}));function i(w){const f=c(w.type);if(f.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!f.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&f.push("null")}return f}Je.getSchemaTypes=i;function c(w){const f=Array.isArray(w)?w:w?[w]:[];if(f.every(e.isJSONType))return f;throw new Error("type must be JSONType or JSONType[]: "+f.join(","))}Je.getJSONTypes=c;function a(w,f){const{gen:I,data:g,opts:v}=w,x=l(f,v.coerceTypes),N=f.length>0&&!(x.length===0&&f.length===1&&(0,t.schemaHasRulesForType)(w,f[0]));if(N){const K=h(f,g,v.strictNumbers,s.Wrong);I.if(K,()=>{x.length?d(w,f,x):b(w)})}return N}Je.coerceAndCheckDataType=a;const p=new Set(["string","number","integer","boolean","null"]);function l(w,f){return f?w.filter(I=>p.has(I)||f==="array"&&I==="array"):[]}function d(w,f,I){const{gen:g,data:v,opts:x}=w,N=g.let("dataType",(0,n._)`typeof ${v}`),K=g.let("coerced",(0,n._)`undefined`);x.coerceTypes==="array"&&g.if((0,n._)`${N} == 'object' && Array.isArray(${v}) && ${v}.length == 1`,()=>g.assign(v,(0,n._)`${v}[0]`).assign(N,(0,n._)`typeof ${v}`).if(h(f,v,x.strictNumbers),()=>g.assign(K,v))),g.if((0,n._)`${K} !== undefined`);for(const C of I)(p.has(C)||C==="array"&&x.coerceTypes==="array")&&R(C);g.else(),b(w),g.endIf(),g.if((0,n._)`${K} !== undefined`,()=>{g.assign(v,K),y(w,K)});function R(C){switch(C){case"string":g.elseIf((0,n._)`${N} == "number" || ${N} == "boolean"`).assign(K,(0,n._)`"" + ${v}`).elseIf((0,n._)`${v} === null`).assign(K,(0,n._)`""`);return;case"number":g.elseIf((0,n._)`${N} == "boolean" || ${v} === null
3
3
  || (${N} == "string" && ${v} && ${v} == +${v})`).assign(K,(0,n._)`+${v}`);return;case"integer":g.elseIf((0,n._)`${N} === "boolean" || ${v} === null
4
4
  || (${N} === "string" && ${v} && ${v} == +${v} && !(${v} % 1))`).assign(K,(0,n._)`+${v}`);return;case"boolean":g.elseIf((0,n._)`${v} === "false" || ${v} === 0 || ${v} === null`).assign(K,!1).elseIf((0,n._)`${v} === "true" || ${v} === 1`).assign(K,!0);return;case"null":g.elseIf((0,n._)`${v} === "" || ${v} === 0 || ${v} === false`),g.assign(K,null);return;case"array":g.elseIf((0,n._)`${N} === "string" || ${N} === "number"
@@ -171,4 +171,4 @@ ${f.message}
171
171
  `:"",d=i.message+(p!==""||l!==""?`
172
172
 
173
173
  `:"")+p+l,y={title:i.ruleId,file:tt(c.source.absoluteRef)?c.source.absoluteRef:Ke.relative(t,c.source.absoluteRef),line:c.start.line,col:c.start.col,endLine:c.end?.line,endColumn:c.end?.col};Se.output(`::${a} ${r(y)}::${o(d)}
174
- `)}function r(i){return Object.entries(i).filter(([,c])=>c!=null).map(([c,a])=>`${c}=${s(a)}`).join(",")}function n(i){return i==null?"":typeof i=="string"||i instanceof String?i:JSON.stringify(i)}function o(i){return n(i).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function s(i){return n(i).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:vx,...ux}=vn.properties,dx={...vn,properties:ux};async function fx(e){const{ref:t,externalRefResolver:r=new Yt(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Qi({document:n,...e,externalRefResolver:r})}async function mx(e){const{source:t,absoluteRef:r,externalRefResolver:n=new Yt(e.config.resolve)}=e,o=us(t,r||"/");return Qi({document:o,...e,externalRefResolver:n})}async function Qi(e){const{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(Cf(t.source.absoluteRef)){const{lintGraphqlDocument:m}=await import("./redocly-openapi-docs.min.lint-graphql-CVRQfjxQ.js");return m({document:t,config:o})}const s=rn(t.parsed),i=o.getRulesForSpecVersion(Df(s)),c=ps(o.extendTypes(r??en(s),s),o),a={problems:[],specVersion:s,config:o,visitorsData:{}},p=la(i,o,"preprocessors",s),l=la(i,o,"rules",s);let d=await sn({rootDocument:t,rootType:c.Root,externalRefResolver:n});p.length>0&&(nn({document:t,rootType:c.Root,normalizedVisitors:Tr(p,c),resolvedRefMap:d,ctx:a}),d=await sn({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const y=Tr(l,c);return nn({document:t,rootType:c.Root,normalizedVisitors:y,resolvedRefMap:d,ctx:a}),a.problems.map(m=>o.addProblemToIgnore(m))}async function hx(e){const{severity:t,externalRefResolver:r=new Yt,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const o={problems:[],specVersion:"config",config:n,visitorsData:{}},s=ps(e.externalConfigTypes||Rs(dx,n)),i=[{severity:t||"error",ruleId:"configuration struct",visitor:Ct()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Vt()}],c=Tr(i,s),a=n.resolvedRefMap||await sn({rootDocument:n.document,rootType:s.ConfigRoot,externalRefResolver:r});return nn({document:n.document,rootType:s.ConfigRoot,normalizedVisitors:c,resolvedRefMap:a,ctx:o}),o.problems}export{Ut as A,x1 as B,hy as C,Tt as D,As as E,Ll as F,fe as G,Vl as H,z0 as I,zl as J,Ve as K,ge as L,vt as M,B as N,lt as O,he as P,L0 as Q,yy as R,Ct as S,M0 as T,qo as U,Ys as V,Kl as W,el as a,s1 as b,S1 as c,l1 as d,u1 as e,b1 as f,Qp as g,Rs as h,P1 as i,ax as j,af as k,Qi as l,Yi as m,Gt as n,g1 as o,lf as p,_r as q,ds as r,fx as s,Ge as t,hx as u,mx as v,_1 as w,xd as x,Se as y,zf as z};
174
+ `)}function r(i){return Object.entries(i).filter(([,c])=>c!=null).map(([c,a])=>`${c}=${s(a)}`).join(",")}function n(i){return i==null?"":typeof i=="string"||i instanceof String?i:JSON.stringify(i)}function o(i){return n(i).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function s(i){return n(i).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:vx,...ux}=vn.properties,dx={...vn,properties:ux};async function fx(e){const{ref:t,externalRefResolver:r=new Yt(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Qi({document:n,...e,externalRefResolver:r})}async function mx(e){const{source:t,absoluteRef:r,externalRefResolver:n=new Yt(e.config.resolve)}=e,o=us(t,r||"/");return Qi({document:o,...e,externalRefResolver:n})}async function Qi(e){const{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(Cf(t.source.absoluteRef)){const{lintGraphqlDocument:m}=await import("./redocly-openapi-docs.min.lint-graphql-UDOPvcZk.js");return m({document:t,config:o})}const s=rn(t.parsed),i=o.getRulesForSpecVersion(Df(s)),c=ps(o.extendTypes(r??en(s),s),o),a={problems:[],specVersion:s,config:o,visitorsData:{}},p=la(i,o,"preprocessors",s),l=la(i,o,"rules",s);let d=await sn({rootDocument:t,rootType:c.Root,externalRefResolver:n});p.length>0&&(nn({document:t,rootType:c.Root,normalizedVisitors:Tr(p,c),resolvedRefMap:d,ctx:a}),d=await sn({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const y=Tr(l,c);return nn({document:t,rootType:c.Root,normalizedVisitors:y,resolvedRefMap:d,ctx:a}),a.problems.map(m=>o.addProblemToIgnore(m))}async function hx(e){const{severity:t,externalRefResolver:r=new Yt,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const o={problems:[],specVersion:"config",config:n,visitorsData:{}},s=ps(e.externalConfigTypes||Rs(dx,n)),i=[{severity:t||"error",ruleId:"configuration struct",visitor:Ct()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Vt()}],c=Tr(i,s),a=n.resolvedRefMap||await sn({rootDocument:n.document,rootType:s.ConfigRoot,externalRefResolver:r});return nn({document:n.document,rootType:s.ConfigRoot,normalizedVisitors:c,resolvedRefMap:a,ctx:o}),o.problems}export{Ut as A,x1 as B,hy as C,Tt as D,As as E,Ll as F,fe as G,Vl as H,z0 as I,zl as J,Ve as K,ge as L,vt as M,B as N,lt as O,he as P,L0 as Q,yy as R,Ct as S,M0 as T,qo as U,Ys as V,Kl as W,el as a,s1 as b,S1 as c,l1 as d,u1 as e,b1 as f,Qp as g,Rs as h,P1 as i,ax as j,af as k,Qi as l,Yi as m,Gt as n,g1 as o,lf as p,_r as q,ds as r,fx as s,Ge as t,hx as u,mx as v,_1 as w,xd as x,Se as y,zf as z};