@redocly/openapi-docs 3.8.0-next.3 → 3.8.0-next.4
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "3.8.0-next.
|
|
5
|
+
* Version: "3.8.0-next.4"
|
|
6
6
|
*/(function(Cu,Oc){typeof exports=="object"&&typeof module=="object"?module.exports=Oc(require("null")):typeof define=="function"&&define.amd?define(["null"],Oc):typeof exports=="object"?exports.RedoclyOpenAPIDocs=Oc(require("null")):Cu.RedoclyOpenAPIDocs=Oc(Cu.null)})(this,ap=>(()=>{var Cu={44607:(E,n,e)=>{"use strict";e.d(n,{A:()=>o});function o(h){var f=Object.create(null);return function(O){return f[O]===void 0&&(f[O]=h(O)),f[O]}}},61203:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CodeGen=n.Name=n.nil=n.stringify=n.str=n._=n.KeywordCxt=void 0;const o=e(85968),h=e(96735),f=e(67104),O=e(48226),d="https://json-schema.org/draft/2020-12/schema";class p extends o.default{constructor(x={}){super({...x,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),h.default.forEach(x=>this.addVocabulary(x)),this.opts.discriminator&&this.addKeyword(f.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:x,meta:y}=this.opts;y&&(O.default.call(this,x),this.refs["http://json-schema.org/schema"]=d)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(d)?d:void 0)}}E.exports=n=p,Object.defineProperty(n,"__esModule",{value:!0}),n.default=p;var c=e(9804);Object.defineProperty(n,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var v=e(57287);Object.defineProperty(n,"_",{enumerable:!0,get:function(){return v._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return v.str}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return v.stringify}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return v.nil}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return v.Name}}),Object.defineProperty(n,"CodeGen",{enumerable:!0,get:function(){return v.CodeGen}})},76202:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.nil=n._Code=n.Name=n.IDENTIFIER=n._CodeOrName=void 0,n._=f,n.str=d,n.addCodeArg=p,n.strConcat=g,n.stringify=y,n.safeStringify=b,n.getProperty=P,n.getEsmExportName=S,n.regexpCode=t;class e{}n._CodeOrName=e,n.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class o extends e{constructor(l){if(super(),!n.IDENTIFIER.test(l))throw new Error("CodeGen: name must be a valid identifier");this.str=l}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}n.Name=o;class h extends e{constructor(l){super(),this._items=typeof l=="string"?[l]:l}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const l=this._items[0];return l===""||l==='""'}get str(){var l;return(l=this._str)!==null&&l!==void 0?l:this._str=this._items.reduce((D,I)=>`${D}${I}`,"")}get names(){var l;return(l=this._names)!==null&&l!==void 0?l:this._names=this._items.reduce((D,I)=>(I instanceof o&&(D[I.str]=(D[I.str]||0)+1),D),{})}}n._Code=h,n.nil=new h("");function f(a,...l){const D=[a[0]];let I=0;for(;I<l.length;)p(D,l[I]),D.push(a[++I]);return new h(D)}const O=new h("+");function d(a,...l){const D=[b(a[0])];let I=0;for(;I<l.length;)D.push(O),p(D,l[I]),D.push(O,b(a[++I]));return c(D),new h(D)}function p(a,l){l instanceof h?a.push(...l._items):l instanceof o?a.push(l):a.push(x(l))}function c(a){let l=1;for(;l<a.length-1;){if(a[l]===O){const D=v(a[l-1],a[l+1]);if(D!==void 0){a.splice(l-1,3,D);continue}a[l++]="+"}l++}}function v(a,l){if(l==='""')return a;if(a==='""')return l;if(typeof a=="string")return l instanceof o||a[a.length-1]!=='"'?void 0:typeof l!="string"?`${a.slice(0,-1)}${l}"`:l[0]==='"'?a.slice(0,-1)+l.slice(1):void 0;if(typeof l=="string"&&l[0]==='"'&&!(a instanceof o))return`"${a}${l.slice(1)}`}function g(a,l){return l.emptyStr()?a:a.emptyStr()?l:d`${a}${l}`}function x(a){return typeof a=="number"||typeof a=="boolean"||a===null?a:b(Array.isArray(a)?a.join(","):a)}function y(a){return new h(b(a))}function b(a){return JSON.stringify(a).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function P(a){return typeof a=="string"&&n.IDENTIFIER.test(a)?new h(`.${a}`):f`[${a}]`}function S(a){if(typeof a=="string"&&n.IDENTIFIER.test(a))return new h(`${a}`);throw new Error(`CodeGen: invalid export name: ${a}, use explicit $id name mapping`)}function t(a){return new h(a.toString())}},57287:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CodeGen=n.operators=n.varKinds=n.ValueScopeName=n.ValueScope=n.Scope=n.Name=n.regexpCode=n.stringify=n.getProperty=n.nil=n.strConcat=n.str=n._=void 0,n.not=Pe,n.and=De,n.or=se;const o=e(76202),h=e(34863);var f=e(76202);Object.defineProperty(n,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(n,"strConcat",{enumerable:!0,get:function(){return f.strConcat}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(n,"getProperty",{enumerable:!0,get:function(){return f.getProperty}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(n,"regexpCode",{enumerable:!0,get:function(){return f.regexpCode}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return f.Name}});var O=e(34863);Object.defineProperty(n,"Scope",{enumerable:!0,get:function(){return O.Scope}}),Object.defineProperty(n,"ValueScope",{enumerable:!0,get:function(){return O.ValueScope}}),Object.defineProperty(n,"ValueScopeName",{enumerable:!0,get:function(){return O.ValueScopeName}}),Object.defineProperty(n,"varKinds",{enumerable:!0,get:function(){return O.varKinds}}),n.operators={GT:new o._Code(">"),GTE:new o._Code(">="),LT:new o._Code("<"),LTE:new o._Code("<="),EQ:new o._Code("==="),NEQ:new o._Code("!=="),NOT:new o._Code("!"),OR:new o._Code("||"),AND:new o._Code("&&"),ADD:new o._Code("+")};class d{optimizeNodes(){return this}optimizeNames(Q,te){return this}}class p extends d{constructor(Q,te,ye){super(),this.varKind=Q,this.name=te,this.rhs=ye}render({es5:Q,_n:te}){const ye=Q?h.varKinds.var:this.varKind,he=this.rhs===void 0?"":` = ${this.rhs}`;return`${ye} ${this.name}${he};`+te}optimizeNames(Q,te){if(Q[this.name.str])return this.rhs&&(this.rhs=F(this.rhs,Q,te)),this}get names(){return this.rhs instanceof o._CodeOrName?this.rhs.names:{}}}class c extends d{constructor(Q,te,ye){super(),this.lhs=Q,this.rhs=te,this.sideEffects=ye}render({_n:Q}){return`${this.lhs} = ${this.rhs};`+Q}optimizeNames(Q,te){if(!(this.lhs instanceof o.Name&&!Q[this.lhs.str]&&!this.sideEffects))return this.rhs=F(this.rhs,Q,te),this}get names(){const Q=this.lhs instanceof o.Name?{}:{...this.lhs.names};return q(Q,this.rhs)}}class v extends c{constructor(Q,te,ye,he){super(Q,ye,he),this.op=te}render({_n:Q}){return`${this.lhs} ${this.op}= ${this.rhs};`+Q}}class g extends d{constructor(Q){super(),this.label=Q,this.names={}}render({_n:Q}){return`${this.label}:`+Q}}class x extends d{constructor(Q){super(),this.label=Q,this.names={}}render({_n:Q}){return`break${this.label?` ${this.label}`:""};`+Q}}class y extends d{constructor(Q){super(),this.error=Q}render({_n:Q}){return`throw ${this.error};`+Q}get names(){return this.error.names}}class b extends d{constructor(Q){super(),this.code=Q}render({_n:Q}){return`${this.code};`+Q}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(Q,te){return this.code=F(this.code,Q,te),this}get names(){return this.code instanceof o._CodeOrName?this.code.names:{}}}class P extends d{constructor(Q=[]){super(),this.nodes=Q}render(Q){return this.nodes.reduce((te,ye)=>te+ye.render(Q),"")}optimizeNodes(){const{nodes:Q}=this;let te=Q.length;for(;te--;){const ye=Q[te].optimizeNodes();Array.isArray(ye)?Q.splice(te,1,...ye):ye?Q[te]=ye:Q.splice(te,1)}return Q.length>0?this:void 0}optimizeNames(Q,te){const{nodes:ye}=this;let he=ye.length;for(;he--;){const Le=ye[he];Le.optimizeNames(Q,te)||(ue(Q,Le.names),ye.splice(he,1))}return ye.length>0?this:void 0}get names(){return this.nodes.reduce((Q,te)=>X(Q,te.names),{})}}class S extends P{render(Q){return"{"+Q._n+super.render(Q)+"}"+Q._n}}class t extends P{}class a extends S{}a.kind="else";class l extends S{constructor(Q,te){super(te),this.condition=Q}render(Q){let te=`if(${this.condition})`+super.render(Q);return this.else&&(te+="else "+this.else.render(Q)),te}optimizeNodes(){super.optimizeNodes();const Q=this.condition;if(Q===!0)return this.nodes;let te=this.else;if(te){const ye=te.optimizeNodes();te=this.else=Array.isArray(ye)?new a(ye):ye}if(te)return Q===!1?te instanceof l?te:te.nodes:this.nodes.length?this:new l(Pe(Q),te instanceof l?[te]:te.nodes);if(!(Q===!1||!this.nodes.length))return this}optimizeNames(Q,te){var ye;if(this.else=(ye=this.else)===null||ye===void 0?void 0:ye.optimizeNames(Q,te),!!(super.optimizeNames(Q,te)||this.else))return this.condition=F(this.condition,Q,te),this}get names(){const Q=super.names;return q(Q,this.condition),this.else&&X(Q,this.else.names),Q}}l.kind="if";class D extends S{}D.kind="for";class I extends D{constructor(Q){super(),this.iteration=Q}render(Q){return`for(${this.iteration})`+super.render(Q)}optimizeNames(Q,te){if(super.optimizeNames(Q,te))return this.iteration=F(this.iteration,Q,te),this}get names(){return X(super.names,this.iteration.names)}}class L extends D{constructor(Q,te,ye,he){super(),this.varKind=Q,this.name=te,this.from=ye,this.to=he}render(Q){const te=Q.es5?h.varKinds.var:this.varKind,{name:ye,from:he,to:Le}=this;return`for(${te} ${ye}=${he}; ${ye}<${Le}; ${ye}++)`+super.render(Q)}get names(){const Q=q(super.names,this.from);return q(Q,this.to)}}class A extends D{constructor(Q,te,ye,he){super(),this.loop=Q,this.varKind=te,this.name=ye,this.iterable=he}render(Q){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(Q)}optimizeNames(Q,te){if(super.optimizeNames(Q,te))return this.iterable=F(this.iterable,Q,te),this}get names(){return X(super.names,this.iterable.names)}}class R extends S{constructor(Q,te,ye){super(),this.name=Q,this.args=te,this.async=ye}render(Q){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Q)}}R.kind="func";class j extends P{render(Q){return"return "+super.render(Q)}}j.kind="return";class $ extends S{render(Q){let te="try"+super.render(Q);return this.catch&&(te+=this.catch.render(Q)),this.finally&&(te+=this.finally.render(Q)),te}optimizeNodes(){var Q,te;return super.optimizeNodes(),(Q=this.catch)===null||Q===void 0||Q.optimizeNodes(),(te=this.finally)===null||te===void 0||te.optimizeNodes(),this}optimizeNames(Q,te){var ye,he;return super.optimizeNames(Q,te),(ye=this.catch)===null||ye===void 0||ye.optimizeNames(Q,te),(he=this.finally)===null||he===void 0||he.optimizeNames(Q,te),this}get names(){const Q=super.names;return this.catch&&X(Q,this.catch.names),this.finally&&X(Q,this.finally.names),Q}}class T extends S{constructor(Q){super(),this.error=Q}render(Q){return`catch(${this.error})`+super.render(Q)}}T.kind="catch";class G extends S{render(Q){return"finally"+super.render(Q)}}G.kind="finally";class _{constructor(Q,te={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...te,_n:te.lines?`
|
|
7
7
|
`:""},this._extScope=Q,this._scope=new h.Scope({parent:Q}),this._nodes=[new t]}toString(){return this._root.render(this.opts)}name(Q){return this._scope.name(Q)}scopeName(Q){return this._extScope.name(Q)}scopeValue(Q,te){const ye=this._extScope.value(Q,te);return(this._values[ye.prefix]||(this._values[ye.prefix]=new Set)).add(ye),ye}getScopeValue(Q,te){return this._extScope.getValue(Q,te)}scopeRefs(Q){return this._extScope.scopeRefs(Q,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(Q,te,ye,he){const Le=this._scope.toName(te);return ye!==void 0&&he&&(this._constants[Le.str]=ye),this._leafNode(new p(Q,Le,ye)),Le}const(Q,te,ye){return this._def(h.varKinds.const,Q,te,ye)}let(Q,te,ye){return this._def(h.varKinds.let,Q,te,ye)}var(Q,te,ye){return this._def(h.varKinds.var,Q,te,ye)}assign(Q,te,ye){return this._leafNode(new c(Q,te,ye))}add(Q,te){return this._leafNode(new v(Q,n.operators.ADD,te))}code(Q){return typeof Q=="function"?Q():Q!==o.nil&&this._leafNode(new b(Q)),this}object(...Q){const te=["{"];for(const[ye,he]of Q)te.length>1&&te.push(","),te.push(ye),(ye!==he||this.opts.es5)&&(te.push(":"),(0,o.addCodeArg)(te,he));return te.push("}"),new o._Code(te)}if(Q,te,ye){if(this._blockNode(new l(Q)),te&&ye)this.code(te).else().code(ye).endIf();else if(te)this.code(te).endIf();else if(ye)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(Q){return this._elseNode(new l(Q))}else(){return this._elseNode(new a)}endIf(){return this._endBlockNode(l,a)}_for(Q,te){return this._blockNode(Q),te&&this.code(te).endFor(),this}for(Q,te){return this._for(new I(Q),te)}forRange(Q,te,ye,he,Le=this.opts.es5?h.varKinds.var:h.varKinds.let){const We=this._scope.toName(Q);return this._for(new L(Le,We,te,ye),()=>he(We))}forOf(Q,te,ye,he=h.varKinds.const){const Le=this._scope.toName(Q);if(this.opts.es5){const We=te instanceof o.Name?te:this.var("_arr",te);return this.forRange("_i",0,(0,o._)`${We}.length`,Ie=>{this.var(Le,(0,o._)`${We}[${Ie}]`),ye(Le)})}return this._for(new A("of",he,Le,te),()=>ye(Le))}forIn(Q,te,ye,he=this.opts.es5?h.varKinds.var:h.varKinds.const){if(this.opts.ownProperties)return this.forOf(Q,(0,o._)`Object.keys(${te})`,ye);const Le=this._scope.toName(Q);return this._for(new A("in",he,Le,te),()=>ye(Le))}endFor(){return this._endBlockNode(D)}label(Q){return this._leafNode(new g(Q))}break(Q){return this._leafNode(new x(Q))}return(Q){const te=new j;if(this._blockNode(te),this.code(Q),te.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(Q,te,ye){if(!te&&!ye)throw new Error('CodeGen: "try" without "catch" and "finally"');const he=new $;if(this._blockNode(he),this.code(Q),te){const Le=this.name("e");this._currNode=he.catch=new T(Le),te(Le)}return ye&&(this._currNode=he.finally=new G,this.code(ye)),this._endBlockNode(T,G)}throw(Q){return this._leafNode(new y(Q))}block(Q,te){return this._blockStarts.push(this._nodes.length),Q&&this.code(Q).endBlock(te),this}endBlock(Q){const te=this._blockStarts.pop();if(te===void 0)throw new Error("CodeGen: not in self-balancing block");const ye=this._nodes.length-te;if(ye<0||Q!==void 0&&ye!==Q)throw new Error(`CodeGen: wrong number of nodes: ${ye} vs ${Q} expected`);return this._nodes.length=te,this}func(Q,te=o.nil,ye,he){return this._blockNode(new R(Q,te,ye)),he&&this.code(he).endFunc(),this}endFunc(){return this._endBlockNode(R)}optimize(Q=1){for(;Q-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(Q){return this._currNode.nodes.push(Q),this}_blockNode(Q){this._currNode.nodes.push(Q),this._nodes.push(Q)}_endBlockNode(Q,te){const ye=this._currNode;if(ye instanceof Q||te&&ye instanceof te)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${te?`${Q.kind}/${te.kind}`:Q.kind}"`)}_elseNode(Q){const te=this._currNode;if(!(te instanceof l))throw new Error('CodeGen: "else" without "if"');return this._currNode=te.else=Q,this}get _root(){return this._nodes[0]}get _currNode(){const Q=this._nodes;return Q[Q.length-1]}set _currNode(Q){const te=this._nodes;te[te.length-1]=Q}}n.CodeGen=_;function X(W,Q){for(const te in Q)W[te]=(W[te]||0)+(Q[te]||0);return W}function q(W,Q){return Q instanceof o._CodeOrName?X(W,Q.names):W}function F(W,Q,te){if(W instanceof o.Name)return ye(W);if(!he(W))return W;return new o._Code(W._items.reduce((Le,We)=>(We instanceof o.Name&&(We=ye(We)),We instanceof o._Code?Le.push(...We._items):Le.push(We),Le),[]));function ye(Le){const We=te[Le.str];return We===void 0||Q[Le.str]!==1?Le:(delete Q[Le.str],We)}function he(Le){return Le instanceof o._Code&&Le._items.some(We=>We instanceof o.Name&&Q[We.str]===1&&te[We.str]!==void 0)}}function ue(W,Q){for(const te in Q)W[te]=(W[te]||0)-(Q[te]||0)}function Pe(W){return typeof W=="boolean"||typeof W=="number"||W===null?!W:(0,o._)`!${V(W)}`}const le=z(n.operators.AND);function De(...W){return W.reduce(le)}const fe=z(n.operators.OR);function se(...W){return W.reduce(fe)}function z(W){return(Q,te)=>Q===o.nil?te:te===o.nil?Q:(0,o._)`${V(Q)} ${W} ${V(te)}`}function V(W){return W instanceof o.Name?W:(0,o._)`(${W})`}},34863:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ValueScope=n.ValueScopeName=n.Scope=n.varKinds=n.UsedValueState=void 0;const o=e(76202);class h extends Error{constructor(g){super(`CodeGen: "code" for ${g} not defined`),this.value=g.value}}var f;(function(v){v[v.Started=0]="Started",v[v.Completed=1]="Completed"})(f||(n.UsedValueState=f={})),n.varKinds={const:new o.Name("const"),let:new o.Name("let"),var:new o.Name("var")};class O{constructor({prefixes:g,parent:x}={}){this._names={},this._prefixes=g,this._parent=x}toName(g){return g instanceof o.Name?g:this.name(g)}name(g){return new o.Name(this._newName(g))}_newName(g){const x=this._names[g]||this._nameGroup(g);return`${g}${x.index++}`}_nameGroup(g){var x,y;if(!((y=(x=this._parent)===null||x===void 0?void 0:x._prefixes)===null||y===void 0)&&y.has(g)||this._prefixes&&!this._prefixes.has(g))throw new Error(`CodeGen: prefix "${g}" is not allowed in this scope`);return this._names[g]={prefix:g,index:0}}}n.Scope=O;class d extends o.Name{constructor(g,x){super(x),this.prefix=g}setValue(g,{property:x,itemIndex:y}){this.value=g,this.scopePath=(0,o._)`.${new o.Name(x)}[${y}]`}}n.ValueScopeName=d;const p=(0,o._)`\n`;class c extends O{constructor(g){super(g),this._values={},this._scope=g.scope,this.opts={...g,_n:g.lines?p:o.nil}}get(){return this._scope}name(g){return new d(g,this._newName(g))}value(g,x){var y;if(x.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const b=this.toName(g),{prefix:P}=b,S=(y=x.key)!==null&&y!==void 0?y:x.ref;let t=this._values[P];if(t){const D=t.get(S);if(D)return D}else t=this._values[P]=new Map;t.set(S,b);const a=this._scope[P]||(this._scope[P]=[]),l=a.length;return a[l]=x.ref,b.setValue(x,{property:P,itemIndex:l}),b}getValue(g,x){const y=this._values[g];if(y)return y.get(x)}scopeRefs(g,x=this._values){return this._reduceValues(x,y=>{if(y.scopePath===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return(0,o._)`${g}${y.scopePath}`})}scopeCode(g=this._values,x,y){return this._reduceValues(g,b=>{if(b.value===void 0)throw new Error(`CodeGen: name "${b}" has no value`);return b.value.code},x,y)}_reduceValues(g,x,y={},b){let P=o.nil;for(const S in g){const t=g[S];if(!t)continue;const a=y[S]=y[S]||new Map;t.forEach(l=>{if(a.has(l))return;a.set(l,f.Started);let D=x(l);if(D){const I=this.opts.es5?n.varKinds.var:n.varKinds.const;P=(0,o._)`${P}${I} ${l} = ${D};${this.opts._n}`}else if(D=b?.(l))P=(0,o._)`${P}${D}${this.opts._n}`;else throw new h(l);a.set(l,f.Completed)})}return P}}n.ValueScope=c},39054:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.keyword$DataError=n.keywordError=void 0,n.reportError=O,n.reportExtraError=d,n.resetErrorsCount=p,n.extendErrors=c;const o=e(57287),h=e(977),f=e(5057);n.keywordError={message:({keyword:a})=>(0,o.str)`must pass "${a}" keyword validation`},n.keyword$DataError={message:({keyword:a,schemaType:l})=>l?(0,o.str)`"${a}" keyword must be ${l} ($data)`:(0,o.str)`"${a}" keyword is invalid ($data)`};function O(a,l=n.keywordError,D,I){const{it:L}=a,{gen:A,compositeRule:R,allErrors:j}=L,$=y(a,l,D);I??(R||j)?v(A,$):g(L,(0,o._)`[${$}]`)}function d(a,l=n.keywordError,D){const{it:I}=a,{gen:L,compositeRule:A,allErrors:R}=I,j=y(a,l,D);v(L,j),A||R||g(I,f.default.vErrors)}function p(a,l){a.assign(f.default.errors,l),a.if((0,o._)`${f.default.vErrors} !== null`,()=>a.if(l,()=>a.assign((0,o._)`${f.default.vErrors}.length`,l),()=>a.assign(f.default.vErrors,null)))}function c({gen:a,keyword:l,schemaValue:D,data:I,errsCount:L,it:A}){if(L===void 0)throw new Error("ajv implementation error");const R=a.name("err");a.forRange("i",L,f.default.errors,j=>{a.const(R,(0,o._)`${f.default.vErrors}[${j}]`),a.if((0,o._)`${R}.instancePath === undefined`,()=>a.assign((0,o._)`${R}.instancePath`,(0,o.strConcat)(f.default.instancePath,A.errorPath))),a.assign((0,o._)`${R}.schemaPath`,(0,o.str)`${A.errSchemaPath}/${l}`),A.opts.verbose&&(a.assign((0,o._)`${R}.schema`,D),a.assign((0,o._)`${R}.data`,I))})}function v(a,l){const D=a.const("err",l);a.if((0,o._)`${f.default.vErrors} === null`,()=>a.assign(f.default.vErrors,(0,o._)`[${D}]`),(0,o._)`${f.default.vErrors}.push(${D})`),a.code((0,o._)`${f.default.errors}++`)}function g(a,l){const{gen:D,validateName:I,schemaEnv:L}=a;L.$async?D.throw((0,o._)`new ${a.ValidationError}(${l})`):(D.assign((0,o._)`${I}.errors`,l),D.return(!1))}const x={keyword:new o.Name("keyword"),schemaPath:new o.Name("schemaPath"),params:new o.Name("params"),propertyName:new o.Name("propertyName"),message:new o.Name("message"),schema:new o.Name("schema"),parentSchema:new o.Name("parentSchema")};function y(a,l,D){const{createErrors:I}=a.it;return I===!1?(0,o._)`{}`:b(a,l,D)}function b(a,l,D={}){const{gen:I,it:L}=a,A=[P(L,D),S(a,D)];return t(a,l,A),I.object(...A)}function P({errorPath:a},{instancePath:l}){const D=l?(0,o.str)`${a}${(0,h.getErrorPath)(l,h.Type.Str)}`:a;return[f.default.instancePath,(0,o.strConcat)(f.default.instancePath,D)]}function S({keyword:a,it:{errSchemaPath:l}},{schemaPath:D,parentSchema:I}){let L=I?l:(0,o.str)`${l}/${a}`;return D&&(L=(0,o.str)`${L}${(0,h.getErrorPath)(D,h.Type.Str)}`),[x.schemaPath,L]}function t(a,{params:l,message:D},I){const{keyword:L,data:A,schemaValue:R,it:j}=a,{opts:$,propertyName:T,topSchemaRef:G,schemaPath:_}=j;I.push([x.keyword,L],[x.params,typeof l=="function"?l(a):l||(0,o._)`{}`]),$.messages&&I.push([x.message,typeof D=="function"?D(a):D]),$.verbose&&I.push([x.schema,R],[x.parentSchema,(0,o._)`${G}${_}`],[f.default.data,A]),T&&I.push([x.propertyName,T])}},65545:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SchemaEnv=void 0,n.compileSchema=v,n.resolveRef=g,n.getCompilingSchema=y,n.resolveSchema=S;const o=e(57287),h=e(84012),f=e(5057),O=e(95421),d=e(977),p=e(9804);class c{constructor(D){var I;this.refs={},this.dynamicAnchors={};let L;typeof D.schema=="object"&&(L=D.schema),this.schema=D.schema,this.schemaId=D.schemaId,this.root=D.root||this,this.baseId=(I=D.baseId)!==null&&I!==void 0?I:(0,O.normalizeId)(L?.[D.schemaId||"$id"]),this.schemaPath=D.schemaPath,this.localRefs=D.localRefs,this.meta=D.meta,this.$async=L?.$async,this.refs={}}}n.SchemaEnv=c;function v(l){const D=y.call(this,l);if(D)return D;const I=(0,O.getFullPath)(this.opts.uriResolver,l.root.baseId),{es5:L,lines:A}=this.opts.code,{ownProperties:R}=this.opts,j=new o.CodeGen(this.scope,{es5:L,lines:A,ownProperties:R});let $;l.$async&&($=j.scopeValue("Error",{ref:h.default,code:(0,o._)`require("ajv/dist/runtime/validation_error").default`}));const T=j.scopeName("validate");l.validateName=T;const G={gen:j,allErrors:this.opts.allErrors,data:f.default.data,parentData:f.default.parentData,parentDataProperty:f.default.parentDataProperty,dataNames:[f.default.data],dataPathArr:[o.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:j.scopeValue("schema",this.opts.code.source===!0?{ref:l.schema,code:(0,o.stringify)(l.schema)}:{ref:l.schema}),validateName:T,ValidationError:$,schema:l.schema,schemaEnv:l,rootId:I,baseId:l.baseId||I,schemaPath:o.nil,errSchemaPath:l.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,o._)`""`,opts:this.opts,self:this};let _;try{this._compilations.add(l),(0,p.validateFunctionCode)(G),j.optimize(this.opts.code.optimize);const X=j.toString();_=`const visitedNodesForRef = new WeakMap(); ${j.scopeRefs(f.default.scope)}return ${X}`,this.opts.code.process&&(_=this.opts.code.process(_,l));const F=new Function(`${f.default.self}`,`${f.default.scope}`,_)(this,this.scope.get());if(this.scope.value(T,{ref:F}),F.errors=null,F.schema=l.schema,F.schemaEnv=l,l.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:T,validateCode:X,scopeValues:j._values}),this.opts.unevaluated){const{props:ue,items:Pe}=G;F.evaluated={props:ue instanceof o.Name?void 0:ue,items:Pe instanceof o.Name?void 0:Pe,dynamicProps:ue instanceof o.Name,dynamicItems:Pe instanceof o.Name},F.source&&(F.source.evaluated=(0,o.stringify)(F.evaluated))}return l.validate=F,l}catch(X){throw delete l.validate,delete l.validateName,_&&this.logger.error("Error compiling schema, function code:",_),X}finally{this._compilations.delete(l)}}function g(l,D,I){var L;const A=(0,O.resolveUrl)(this.opts.uriResolver,D,I),R=l.refs[A];if(R)return R;let j=P.call(this,l,A);if(j===void 0){const $=(L=l.localRefs)===null||L===void 0?void 0:L[A],{schemaId:T}=this.opts;$&&(j=new c({schema:$,schemaId:T,root:l,baseId:D}))}if(j===void 0&&this.opts.loadSchemaSync){const $=this.opts.loadSchemaSync(D,I,A);$&&!(this.refs[A]||this.schemas[A])&&(this.addSchema($,A,void 0),j=P.call(this,l,A))}if(j!==void 0)return l.refs[A]=x.call(this,j)}function x(l){return(0,O.inlineRef)(l.schema,this.opts.inlineRefs)?l.schema:l.validate?l:v.call(this,l)}function y(l){for(const D of this._compilations)if(b(D,l))return D}function b(l,D){return l.schema===D.schema&&l.root===D.root&&l.baseId===D.baseId}function P(l,D){let I;for(;typeof(I=this.refs[D])=="string";)D=I;return I||this.schemas[D]||S.call(this,l,D)}function S(l,D){const I=this.opts.uriResolver.parse(D),L=(0,O._getFullPath)(this.opts.uriResolver,I);let A=(0,O.getFullPath)(this.opts.uriResolver,l.baseId,void 0);if(Object.keys(l.schema).length>0&&L===A)return a.call(this,I,l);const R=(0,O.normalizeId)(L),j=this.refs[R]||this.schemas[R];if(typeof j=="string"){const $=S.call(this,l,j);return typeof $?.schema!="object"?void 0:a.call(this,I,$)}if(typeof j?.schema=="object"){if(j.validate||v.call(this,j),R===(0,O.normalizeId)(D)){const{schema:$}=j,{schemaId:T}=this.opts,G=$[T];return G&&(A=(0,O.resolveUrl)(this.opts.uriResolver,A,G)),new c({schema:$,schemaId:T,root:l,baseId:A})}return a.call(this,I,j)}}const t=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function a(l,{baseId:D,schema:I,root:L}){var A;if(((A=l.fragment)===null||A===void 0?void 0:A[0])!=="/")return;for(const $ of l.fragment.slice(1).split("/")){if(typeof I=="boolean")return;const T=I[(0,d.unescapeFragment)($)];if(T===void 0)return;I=T;const G=typeof I=="object"&&I[this.opts.schemaId];!t.has($)&&G&&(D=(0,O.resolveUrl)(this.opts.uriResolver,D,G))}let R;if(typeof I!="boolean"&&I.$ref&&!(0,d.schemaHasRulesButRef)(I,this.RULES)){const $=(0,O.resolveUrl)(this.opts.uriResolver,D,I.$ref);R=S.call(this,L,$)}const{schemaId:j}=this.opts;if(R=R||new c({schema:I,schemaId:j,root:L,baseId:D}),R.schema!==R.root.schema)return R}},5057:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h={data:new o.Name("data"),valCxt:new o.Name("valCxt"),instancePath:new o.Name("instancePath"),parentData:new o.Name("parentData"),parentDataProperty:new o.Name("parentDataProperty"),rootData:new o.Name("rootData"),dynamicAnchors:new o.Name("dynamicAnchors"),isAllOfVariant:new o.Name("isAllOfVariant"),vErrors:new o.Name("vErrors"),errors:new o.Name("errors"),this:new o.Name("this"),self:new o.Name("self"),scope:new o.Name("scope"),json:new o.Name("json"),jsonPos:new o.Name("jsonPos"),jsonLen:new o.Name("jsonLen"),jsonPart:new o.Name("jsonPart")};n.default=h},78805:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(95421);class h extends Error{constructor(O,d,p,c){super(c||`can't resolve reference ${p} from id ${d}`),this.missingRef=(0,o.resolveUrl)(O,d,p),this.missingSchema=(0,o.normalizeId)((0,o.getFullPath)(O,this.missingRef))}}n.default=h},95421:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.inlineRef=d,n.getFullPath=g,n._getFullPath=x,n.normalizeId=b,n.resolveUrl=P,n.getSchemaRefs=t;const o=e(977),h=e(67371),f=e(50205),O=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function d(a,l=!0){return typeof a=="boolean"?!0:l===!0?!c(a):l?v(a)<=l:!1}const p=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(a){for(const l in a){if(p.has(l))return!0;const D=a[l];if(Array.isArray(D)&&D.some(c)||typeof D=="object"&&c(D))return!0}return!1}function v(a){let l=0;for(const D in a){if(D==="$ref")return 1/0;if(l++,!O.has(D)&&(typeof a[D]=="object"&&(0,o.eachItem)(a[D],I=>l+=v(I)),l===1/0))return 1/0}return l}function g(a,l="",D){D!==!1&&(l=b(l));const I=a.parse(l);return x(a,I)}function x(a,l){return a.serialize(l).split("#")[0]+"#"}const y=/#\/?$/;function b(a){return a?a.replace(y,""):""}function P(a,l,D){return D=b(D),a.resolve(l,D)}const S=/^[a-z_][-a-z0-9._]*$/i;function t(a,l){if(typeof a=="boolean")return{};const{schemaId:D,uriResolver:I}=this.opts,L=b(a[D]||l),A={"":L},R=g(I,L,!1),j={},$=new Set;return f(a,{allKeys:!0},(_,X,q,F)=>{if(F===void 0)return;const ue=R+X;let Pe=A[F];typeof _[D]=="string"&&(Pe=le.call(this,_[D])),De.call(this,_.$anchor),De.call(this,_.$dynamicAnchor),A[X]=Pe;function le(fe){const se=this.opts.uriResolver.resolve;if(fe=b(Pe?se(Pe,fe):fe),$.has(fe))throw G(fe);$.add(fe);let z=this.refs[fe];return typeof z=="string"&&(z=this.refs[z]),typeof z=="object"?T(_,z.schema,fe):fe!==b(ue)&&(fe[0]==="#"?(T(_,j[fe],fe),j[fe]=_):this.refs[fe]=ue),fe}function De(fe){if(typeof fe=="string"){if(!S.test(fe))throw new Error(`invalid anchor "${fe}"`);le.call(this,`#${fe}`)}}}),j;function T(_,X,q){if(X!==void 0&&!h(_,X))throw G(q)}function G(_){return new Error(`reference "${_}" resolves to more than one schema`)}}},90942:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isJSONType=h,n.getRules=f;const e=["string","number","integer","boolean","null","object","array"],o=new Set(e);function h(O){return typeof O=="string"&&o.has(O)}function f(){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:{}}}},977:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Type=n.mergeEvaluated=void 0,n.toHash=f,n.alwaysValidSchema=O,n.checkUnknownRules=d,n.schemaHasRules=p,n.schemaHasRulesButRef=c,n.schemaRefOrVal=v,n.unescapeFragment=g,n.escapeFragment=x,n.escapeJsonPointer=y,n.unescapeJsonPointer=b,n.eachItem=P,n.evaluatedPropsToName=t,n.setEvaluated=a,n.useFunc=D,n.getErrorPath=L,n.checkStrictMode=A;const o=e(57287),h=e(76202);function f(R){const j={};for(const $ of R)j[$]=!0;return j}function O(R,j){return typeof j=="boolean"?j:Object.keys(j).length===0?!0:(d(R,j),!p(j,R.self.RULES.all))}function d(R,j=R.schema){const{opts:$,self:T}=R;if(!$.strictSchema||typeof j=="boolean")return;const G=T.RULES.keywords;for(const _ in j)G[_]||A(R,`unknown keyword: "${_}"`)}function p(R,j){if(typeof R=="boolean")return!R;for(const $ in R)if(j[$])return!0;return!1}function c(R,j){if(typeof R=="boolean")return!R;for(const $ in R)if($!=="$ref"&&j.all[$])return!0;return!1}function v({topSchemaRef:R,schemaPath:j},$,T,G){if(!G){if(typeof $=="number"||typeof $=="boolean")return $;if(typeof $=="string")return(0,o._)`${$}`}return(0,o._)`${R}${j}${(0,o.getProperty)(T)}`}function g(R){return b(decodeURIComponent(R))}function x(R){return encodeURIComponent(y(R))}function y(R){return typeof R=="number"?`${R}`:R.replace(/~/g,"~0").replace(/\//g,"~1")}function b(R){return R.replace(/~1/g,"/").replace(/~0/g,"~")}function P(R,j){if(Array.isArray(R))for(const $ of R)j($);else j(R)}function S({mergeNames:R,mergeToName:j,mergeValues:$,resultToName:T}){return(G,_,X,q)=>{const F=X===void 0?_:X instanceof o.Name?(_ instanceof o.Name?R(G,_,X):j(G,_,X),X):_ instanceof o.Name?(j(G,X,_),_):$(_,X);return q===o.Name&&!(F instanceof o.Name)?T(G,F):F}}n.mergeEvaluated={props:S({mergeNames:(R,j,$)=>R.if((0,o._)`${$} !== true && ${j} !== undefined`,()=>{R.if((0,o._)`${j} === true`,()=>R.assign($,!0),()=>R.assign($,(0,o._)`${$} || {}`).code((0,o._)`Object.assign(${$}, ${j})`))}),mergeToName:(R,j,$)=>R.if((0,o._)`${$} !== true`,()=>{j===!0?R.assign($,!0):(R.assign($,(0,o._)`${$} || {}`),a(R,$,j))}),mergeValues:(R,j)=>R===!0?!0:{...R,...j},resultToName:t}),items:S({mergeNames:(R,j,$)=>R.if((0,o._)`${$} !== true && ${j} !== undefined`,()=>R.assign($,(0,o._)`${j} === true ? true : ${$} > ${j} ? ${$} : ${j}`)),mergeToName:(R,j,$)=>R.if((0,o._)`${$} !== true`,()=>R.assign($,j===!0?!0:(0,o._)`${$} > ${j} ? ${$} : ${j}`)),mergeValues:(R,j)=>R===!0?!0:Math.max(R,j),resultToName:(R,j)=>R.var("items",j)})};function t(R,j){if(j===!0)return R.var("props",!0);const $=R.var("props",(0,o._)`{}`);return j!==void 0&&a(R,$,j),$}function a(R,j,$){Object.keys($).forEach(T=>R.assign((0,o._)`${j}${(0,o.getProperty)(T)}`,!0))}const l={};function D(R,j){return R.scopeValue("func",{ref:j,code:l[j.code]||(l[j.code]=new h._Code(j.code))})}var I;(function(R){R[R.Num=0]="Num",R[R.Str=1]="Str"})(I||(n.Type=I={}));function L(R,j,$){if(R instanceof o.Name){const T=j===I.Num;return $?T?(0,o._)`"[" + ${R} + "]"`:(0,o._)`"['" + ${R} + "']"`:T?(0,o._)`"/" + ${R}`:(0,o._)`"/" + ${R}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return $?(0,o.getProperty)(R).toString():"/"+y(R)}function A(R,j,$=R.opts.strictSchema){if($){if(j=`strict mode: ${j}`,$===!0)throw new Error(j);R.self.logger.warn(j)}}},5413:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.schemaHasRulesForType=e,n.shouldUseGroup=o,n.shouldUseRule=h;function e({schema:f,self:O},d){const p=O.RULES.types[d];return p&&p!==!0&&o(f,p)}function o(f,O){return O.rules.some(d=>h(f,d))}function h(f,O){var d;return f[O.keyword]!==void 0||((d=O.definition.implements)===null||d===void 0?void 0:d.some(p=>f[p]!==void 0))}},98213:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.topBoolOrEmptySchema=d,n.boolOrEmptySchema=p;const o=e(39054),h=e(57287),f=e(5057),O={message:"boolean schema is false"};function d(v){const{gen:g,schema:x,validateName:y}=v;x===!1?c(v,!1):typeof x=="object"&&x.$async===!0?g.return(f.default.data):(g.assign((0,h._)`${y}.errors`,null),g.return(!0))}function p(v,g){const{gen:x,schema:y}=v;y===!1?(x.var(g,!1),c(v)):x.var(g,!0)}function c(v,g){const{gen:x,data:y}=v,b={gen:x,keyword:"false schema",data:y,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:v};(0,o.reportError)(b,O,void 0,g)}},41434:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DataType=void 0,n.getSchemaTypes=c,n.getJSONTypes=v,n.coerceAndCheckDataType=g,n.checkDataType=S,n.checkDataTypes=t,n.reportTypeError=l;const o=e(90942),h=e(5413),f=e(39054),O=e(57287),d=e(977);var p;(function(I){I[I.Correct=0]="Correct",I[I.Wrong=1]="Wrong"})(p||(n.DataType=p={}));function c(I){const L=v(I.type);if(L.includes("null")){if(I.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!L.length&&I.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');I.nullable===!0&&L.push("null")}return L}function v(I){const L=Array.isArray(I)?I:I?[I]:[];if(L.every(o.isJSONType))return L;throw new Error("type must be JSONType or JSONType[]: "+L.join(","))}function g(I,L){const{gen:A,data:R,opts:j}=I,$=y(L,j.coerceTypes),T=L.length>0&&!($.length===0&&L.length===1&&(0,h.schemaHasRulesForType)(I,L[0]));if(T){const G=t(L,R,j.strictNumbers,p.Wrong);A.if(G,()=>{$.length?b(I,L,$):l(I)})}return T}const x=new Set(["string","number","integer","boolean","null"]);function y(I,L){return L?I.filter(A=>x.has(A)||L==="array"&&A==="array"):[]}function b(I,L,A){const{gen:R,data:j,opts:$}=I,T=R.let("dataType",(0,O._)`typeof ${j}`),G=R.let("coerced",(0,O._)`undefined`);$.coerceTypes==="array"&&R.if((0,O._)`${T} == 'object' && Array.isArray(${j}) && ${j}.length == 1`,()=>R.assign(j,(0,O._)`${j}[0]`).assign(T,(0,O._)`typeof ${j}`).if(t(L,j,$.strictNumbers),()=>R.assign(G,j))),R.if((0,O._)`${G} !== undefined`);for(const X of A)(x.has(X)||X==="array"&&$.coerceTypes==="array")&&_(X);R.else(),l(I),R.endIf(),R.if((0,O._)`${G} !== undefined`,()=>{R.assign(j,G),P(I,G)});function _(X){switch(X){case"string":R.elseIf((0,O._)`${T} == "number" || ${T} == "boolean"`).assign(G,(0,O._)`"" + ${j}`).elseIf((0,O._)`${j} === null`).assign(G,(0,O._)`""`);return;case"number":R.elseIf((0,O._)`${T} == "boolean" || ${j} === null
|
|
8
8
|
|| (${T} == "string" && ${j} && ${j} == +${j})`).assign(G,(0,O._)`+${j}`);return;case"integer":R.elseIf((0,O._)`${T} === "boolean" || ${j} === null
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|| ${T} === "boolean" || ${j} === null`).assign(G,(0,O._)`[${j}]`)}}}function P({gen:I,parentData:L,parentDataProperty:A},R){I.if((0,O._)`${L} !== undefined`,()=>I.assign((0,O._)`${L}[${A}]`,R))}function S(I,L,A,R=p.Correct){const j=R===p.Correct?O.operators.EQ:O.operators.NEQ;let $;switch(I){case"null":return(0,O._)`${L} ${j} null`;case"array":$=(0,O._)`Array.isArray(${L})`;break;case"object":$=(0,O._)`${L} && typeof ${L} == "object" && !Array.isArray(${L})`;break;case"integer":$=T((0,O._)`!(${L} % 1) && !isNaN(${L})`);break;case"number":$=T();break;default:return(0,O._)`typeof ${L} ${j} ${I}`}return R===p.Correct?$:(0,O.not)($);function T(G=O.nil){return(0,O.and)((0,O._)`typeof ${L} == "number"`,G,A?(0,O._)`isFinite(${L})`:O.nil)}}function t(I,L,A,R){if(I.length===1)return S(I[0],L,A,R);let j;const $=(0,d.toHash)(I);if($.array&&$.object){const T=(0,O._)`typeof ${L} != "object"`;j=$.null?T:(0,O._)`!${L} || ${T}`,delete $.null,delete $.array,delete $.object}else j=O.nil;$.number&&delete $.integer;for(const T in $)j=(0,O.and)(j,S(T,L,A,R));return j}const a={message:({schema:I})=>`must be ${I}`,params:({schema:I,schemaValue:L})=>typeof I=="string"?(0,O._)`{type: ${I}}`:(0,O._)`{type: ${L}}`};function l(I){const L=D(I);(0,f.reportError)(L,a)}function D(I){const{gen:L,data:A,schema:R}=I,j=(0,d.schemaRefOrVal)(I,R,"type");return{gen:L,keyword:"type",data:A,schema:R.type,schemaCode:j,schemaValue:j,parentSchema:R,params:{},it:I}}},81280:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.assignDefaults=f;const o=e(57287),h=e(977);function f(d,p){const{properties:c,items:v}=d.schema;if(p==="object"&&c)for(const g in c)O(d,g,c[g].default);else p==="array"&&Array.isArray(v)&&v.forEach((g,x)=>O(d,x,g.default))}function O(d,p,c){const{gen:v,compositeRule:g,data:x,opts:y}=d;if(c===void 0)return;const b=(0,o._)`${x}${(0,o.getProperty)(p)}`;if(g){(0,h.checkStrictMode)(d,`default is ignored for: ${b}`);return}let P=(0,o._)`${b} === undefined`;y.useDefaults==="empty"&&(P=(0,o._)`${P} || ${b} === null || ${b} === ""`),v.if(P,(0,o._)`${b} = ${(0,o.stringify)(c)}`)}},9804:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.KeywordCxt=void 0,n.validateFunctionCode=P,n.getData=Ie;const o=e(98213),h=e(41434),f=e(5413),O=e(41434),d=e(81280),p=e(68983),c=e(24829),v=e(57287),g=e(5057),x=e(95421),y=e(977),b=e(39054);function P(xe){if(R(xe)&&($(xe),A(xe))){l(xe);return}S(xe,()=>(0,o.topBoolOrEmptySchema)(xe))}function S({gen:xe,validateName:Ae,schema:B,schemaEnv:U,opts:Me},He){Me.code.es5?xe.func(Ae,(0,v._)`${g.default.data}, ${g.default.valCxt}`,U.$async,()=>{xe.code((0,v._)`"use strict"; ${I(B,Me)}`),a(xe,Me),xe.code(He)}):xe.func(Ae,(0,v._)`${g.default.data}, ${t(Me)}`,U.$async,()=>xe.code(I(B,Me)).code(He))}function t(xe){return(0,v._)`{${g.default.instancePath}="", ${g.default.parentData}, ${g.default.parentDataProperty}, ${g.default.rootData}=${g.default.data}${xe.dynamicRef?(0,v._)`, ${g.default.dynamicAnchors}={}`:v.nil}, ${g.default.isAllOfVariant} = 0}={}`}function a(xe,Ae){xe.if(g.default.valCxt,()=>{xe.var(g.default.instancePath,(0,v._)`${g.default.valCxt}.${g.default.instancePath}`),xe.var(g.default.parentData,(0,v._)`${g.default.valCxt}.${g.default.parentData}`),xe.var(g.default.parentDataProperty,(0,v._)`${g.default.valCxt}.${g.default.parentDataProperty}`),xe.var(g.default.rootData,(0,v._)`${g.default.valCxt}.${g.default.rootData}`),xe.var(g.default.isAllOfVariant,(0,v._)`${g.default.valCxt}.${g.default.isAllOfVariant}`),Ae.dynamicRef&&xe.var(g.default.dynamicAnchors,(0,v._)`${g.default.valCxt}.${g.default.dynamicAnchors}`)},()=>{xe.var(g.default.instancePath,(0,v._)`""`),xe.var(g.default.parentData,(0,v._)`undefined`),xe.var(g.default.parentDataProperty,(0,v._)`undefined`),xe.var(g.default.rootData,g.default.data),xe.var(g.default.isAllOfVariant,(0,v._)`0`),Ae.dynamicRef&&xe.var(g.default.dynamicAnchors,(0,v._)`{}`)})}function l(xe){const{schema:Ae,opts:B,gen:U}=xe;S(xe,()=>{B.$comment&&Ae.$comment&&F(xe),_(xe),U.let(g.default.vErrors,null),U.let(g.default.errors,0),B.unevaluated&&D(xe),T(xe),ue(xe)})}function D(xe){const{gen:Ae,validateName:B}=xe;xe.evaluated=Ae.const("evaluated",(0,v._)`${B}.evaluated`),Ae.if((0,v._)`${xe.evaluated}.dynamicProps`,()=>Ae.assign((0,v._)`${xe.evaluated}.props`,(0,v._)`undefined`)),Ae.if((0,v._)`${xe.evaluated}.dynamicItems`,()=>Ae.assign((0,v._)`${xe.evaluated}.items`,(0,v._)`undefined`))}function I(xe,Ae){const B=typeof xe=="object"&&xe[Ae.schemaId];return B&&(Ae.code.source||Ae.code.process)?(0,v._)`/*# sourceURL=${B} */`:v.nil}function L(xe,Ae){if(R(xe)&&($(xe),A(xe))){j(xe,Ae);return}(0,o.boolOrEmptySchema)(xe,Ae)}function A({schema:xe,self:Ae}){if(typeof xe=="boolean")return!xe;for(const B in xe)if(Ae.RULES.all[B])return!0;return!1}function R(xe){return typeof xe.schema!="boolean"}function j(xe,Ae){const{schema:B,gen:U,opts:Me}=xe;Me.$comment&&B.$comment&&F(xe),X(xe),q(xe);const He=U.const("_errs",g.default.errors);T(xe,He),U.var(Ae,(0,v._)`${He} === ${g.default.errors}`)}function $(xe){(0,y.checkUnknownRules)(xe),G(xe)}function T(xe,Ae){if(xe.opts.jtd)return le(xe,[],!1,Ae);const B=(0,h.getSchemaTypes)(xe.schema),U=(0,h.coerceAndCheckDataType)(xe,B);le(xe,B,!U,Ae)}function G(xe){const{schema:Ae,errSchemaPath:B,opts:U,self:Me}=xe;Ae.$ref&&U.ignoreKeywordsWithRef&&(0,y.schemaHasRulesButRef)(Ae,Me.RULES)&&Me.logger.warn(`$ref: keywords ignored in schema at path "${B}"`)}function _(xe){const{schema:Ae,opts:B}=xe;Ae.default!==void 0&&B.useDefaults&&B.strictSchema&&(0,y.checkStrictMode)(xe,"default is ignored in the schema root")}function X(xe){const Ae=xe.schema[xe.opts.schemaId];Ae&&(xe.baseId=(0,x.resolveUrl)(xe.opts.uriResolver,xe.baseId,Ae))}function q(xe){if(xe.schema.$async&&!xe.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:xe,schemaEnv:Ae,schema:B,errSchemaPath:U,opts:Me}){const He=B.$comment;if(Me.$comment===!0)xe.code((0,v._)`${g.default.self}.logger.log(${He})`);else if(typeof Me.$comment=="function"){const pe=(0,v.str)`${U}/$comment`,ce=xe.scopeValue("root",{ref:Ae.root});xe.code((0,v._)`${g.default.self}.opts.$comment(${He}, ${pe}, ${ce}.schema)`)}}function ue(xe){const{gen:Ae,schemaEnv:B,validateName:U,ValidationError:Me,opts:He}=xe;B.$async?Ae.if((0,v._)`${g.default.errors} === 0`,()=>Ae.return(g.default.data),()=>Ae.throw((0,v._)`new ${Me}(${g.default.vErrors})`)):(Ae.assign((0,v._)`${U}.errors`,g.default.vErrors),He.unevaluated&&Pe(xe),Ae.return((0,v._)`${g.default.errors} === 0`))}function Pe({gen:xe,evaluated:Ae,props:B,items:U}){B instanceof v.Name&&xe.assign((0,v._)`${Ae}.props`,B),U instanceof v.Name&&xe.assign((0,v._)`${Ae}.items`,U)}function le(xe,Ae,B,U){const{gen:Me,schema:He,data:pe,allErrors:ce,opts:Oe,self:ht}=xe,{RULES:lt}=ht;if(He.$ref&&(Oe.ignoreKeywordsWithRef||!(0,y.schemaHasRulesButRef)(He,lt))){Me.block(()=>he(xe,"$ref",lt.all.$ref.definition));return}Oe.jtd||fe(xe,Ae),Me.block(()=>{for(const at of lt.rules)Z(at);Z(lt.post)});function Z(at){(0,f.shouldUseGroup)(He,at)&&(at.type?(Me.if((0,O.checkDataType)(at.type,pe,Oe.strictNumbers)),De(xe,at),Ae.length===1&&Ae[0]===at.type&&B&&(Me.else(),(0,O.reportTypeError)(xe)),Me.endIf()):De(xe,at),ce||Me.if((0,v._)`${g.default.errors} === ${U||0}`))}}function De(xe,Ae){const{gen:B,schema:U,opts:{useDefaults:Me}}=xe;Me&&(0,d.assignDefaults)(xe,Ae.type),B.block(()=>{for(const pe of Ae.rules)((0,f.shouldUseRule)(U,pe)||He(U,pe))&&he(xe,pe.keyword,pe.definition,Ae.type)});function He(pe,ce){return!!(ce.keyword==="unevaluatedProperties"&&(pe.properties||pe.patternProperties)&&!xe.isAllOfVariant&&xe.opts.defaultUnevaluatedProperties===!1)}}function fe(xe,Ae){xe.schemaEnv.meta||!xe.opts.strictTypes||(se(xe,Ae),xe.opts.allowUnionTypes||z(xe,Ae),V(xe,xe.dataTypes))}function se(xe,Ae){if(Ae.length){if(!xe.dataTypes.length){xe.dataTypes=Ae;return}Ae.forEach(B=>{Q(xe.dataTypes,B)||te(xe,`type "${B}" not allowed by context "${xe.dataTypes.join(",")}"`)}),xe.dataTypes=xe.dataTypes.filter(B=>Q(Ae,B))}}function z(xe,Ae){Ae.length>1&&!(Ae.length===2&&Ae.includes("null"))&&te(xe,"use allowUnionTypes to allow union type keyword")}function V(xe,Ae){const B=xe.self.RULES.all;for(const U in B){const Me=B[U];if(typeof Me=="object"&&(0,f.shouldUseRule)(xe.schema,Me)){const{type:He}=Me.definition;He.length&&!He.some(pe=>W(Ae,pe))&&te(xe,`missing type "${He.join(",")}" for keyword "${U}"`)}}}function W(xe,Ae){return xe.includes(Ae)||Ae==="number"&&xe.includes("integer")}function Q(xe,Ae){return xe.includes(Ae)||Ae==="integer"&&xe.includes("number")}function te(xe,Ae){const B=xe.schemaEnv.baseId+xe.errSchemaPath;Ae+=` at "${B}" (strictTypes)`,(0,y.checkStrictMode)(xe,Ae,xe.opts.strictTypes)}class ye{constructor(Ae,B,U){if((0,p.validateKeywordUsage)(Ae,B,U),this.gen=Ae.gen,this.allErrors=Ae.allErrors,this.keyword=U,this.data=Ae.data,this.schema=Ae.schema[U],this.$data=B.$data&&Ae.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,y.schemaRefOrVal)(Ae,this.schema,U,this.$data),this.schemaType=B.schemaType,this.parentSchema=Ae.schema,this.params={},this.it=Ae,this.def=B,this.$data)this.schemaCode=Ae.gen.const("vSchema",Ie(this.$data,Ae));else if(this.schemaCode=this.schemaValue,!(0,p.validSchemaType)(this.schema,B.schemaType,B.allowUndefined))throw new Error(`${U} value must be ${JSON.stringify(B.schemaType)}`);("code"in B?B.trackErrors:B.errors!==!1)&&(this.errsCount=Ae.gen.const("_errs",g.default.errors))}result(Ae,B,U){this.failResult((0,v.not)(Ae),B,U)}failResult(Ae,B,U){this.gen.if(Ae),U?U():this.error(),B?(this.gen.else(),B(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(Ae,B){this.failResult((0,v.not)(Ae),void 0,B)}fail(Ae){if(Ae===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(Ae),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(Ae){if(!this.$data)return this.fail(Ae);const{schemaCode:B}=this;this.fail((0,v._)`${B} !== undefined && (${(0,v.or)(this.invalid$data(),Ae)})`)}error(Ae,B,U){if(B){this.setParams(B),this._error(Ae,U),this.setParams({});return}this._error(Ae,U)}_error(Ae,B){(Ae?b.reportExtraError:b.reportError)(this,this.def.error,B)}$dataError(){(0,b.reportError)(this,this.def.$dataError||b.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,b.resetErrorsCount)(this.gen,this.errsCount)}ok(Ae){this.allErrors||this.gen.if(Ae)}setParams(Ae,B){B?Object.assign(this.params,Ae):this.params=Ae}block$data(Ae,B,U=v.nil){this.gen.block(()=>{this.check$data(Ae,U),B()})}check$data(Ae=v.nil,B=v.nil){if(!this.$data)return;const{gen:U,schemaCode:Me,schemaType:He,def:pe}=this;U.if((0,v.or)((0,v._)`${Me} === undefined`,B)),Ae!==v.nil&&U.assign(Ae,!0),(He.length||pe.validateSchema)&&(U.elseIf(this.invalid$data()),this.$dataError(),Ae!==v.nil&&U.assign(Ae,!1)),U.else()}invalid$data(){const{gen:Ae,schemaCode:B,schemaType:U,def:Me,it:He}=this;return(0,v.or)(pe(),ce());function pe(){if(U.length){if(!(B instanceof v.Name))throw new Error("ajv implementation error");const Oe=Array.isArray(U)?U:[U];return(0,v._)`${(0,O.checkDataTypes)(Oe,B,He.opts.strictNumbers,O.DataType.Wrong)}`}return v.nil}function ce(){if(Me.validateSchema){const Oe=Ae.scopeValue("validate$data",{ref:Me.validateSchema});return(0,v._)`!${Oe}(${B})`}return v.nil}}subschema(Ae,B,U){const Me=(0,c.getSubschema)(this.it,Ae);(0,c.extendSubschemaData)(Me,this.it,Ae),(0,c.extendSubschemaMode)(Me,Ae);const He={...this.it,...Me,items:void 0,props:void 0,isAllOfVariant:U};return L(He,B),He}mergeEvaluated(Ae,B){const{it:U,gen:Me}=this;U.opts.unevaluated&&(U.props!==!0&&Ae.props!==void 0&&(U.props=y.mergeEvaluated.props(Me,Ae.props,U.props,B)),U.items!==!0&&Ae.items!==void 0&&(U.items=y.mergeEvaluated.items(Me,Ae.items,U.items,B)))}mergeValidEvaluated(Ae,B){const{it:U,gen:Me}=this;if(U.opts.unevaluated&&(U.props!==!0||U.items!==!0))return Me.if(B,()=>this.mergeEvaluated(Ae,v.Name)),!0}}n.KeywordCxt=ye;function he(xe,Ae,B,U){const Me=new ye(xe,B,Ae);"code"in B?B.code(Me,U):Me.$data&&B.validate?(0,p.funcKeywordCode)(Me,B):"macro"in B?(0,p.macroKeywordCode)(Me,B):(B.compile||B.validate)&&(0,p.funcKeywordCode)(Me,B)}const Le=/^\/(?:[^~]|~0|~1)*$/,We=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ie(xe,{dataLevel:Ae,dataNames:B,dataPathArr:U}){let Me,He;if(xe==="")return g.default.rootData;if(xe[0]==="/"){if(!Le.test(xe))throw new Error(`Invalid JSON-pointer: ${xe}`);Me=xe,He=g.default.rootData}else{const ht=We.exec(xe);if(!ht)throw new Error(`Invalid JSON-pointer: ${xe}`);const lt=+ht[1];if(Me=ht[2],Me==="#"){if(lt>=Ae)throw new Error(Oe("property/index",lt));return U[Ae-lt]}if(lt>Ae)throw new Error(Oe("data",lt));if(He=B[Ae-lt],!Me)return He}let pe=He;const ce=Me.split("/");for(const ht of ce)ht&&(He=(0,v._)`${He}${(0,v.getProperty)((0,y.unescapeJsonPointer)(ht))}`,pe=(0,v._)`${pe} && ${He}`);return pe;function Oe(ht,lt){return`Cannot access ${ht} ${lt} levels up, current level is ${Ae}`}}},68983:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.macroKeywordCode=d,n.funcKeywordCode=p,n.validSchemaType=y,n.validateKeywordUsage=b;const o=e(57287),h=e(5057),f=e(55223),O=e(39054);function d(P,S){const{gen:t,keyword:a,schema:l,parentSchema:D,it:I}=P,L=S.macro.call(I.self,l,D,I),A=x(t,a,L);I.opts.validateSchema!==!1&&I.self.validateSchema(L,!0);const R=t.name("valid");P.subschema({schema:L,schemaPath:o.nil,errSchemaPath:`${I.errSchemaPath}/${a}`,topSchemaRef:A,compositeRule:!0},R),P.pass(R,()=>P.error(!0))}function p(P,S){var t;const{gen:a,keyword:l,schema:D,parentSchema:I,$data:L,it:A}=P;g(A,S);const R=!L&&S.compile?S.compile.call(A.self,D,I,A):S.validate,j=x(a,l,R),$=a.let("valid");P.block$data($,T),P.ok((t=S.valid)!==null&&t!==void 0?t:$);function T(){if(S.errors===!1)X(),S.modifying&&c(P),q(()=>P.error());else{const F=S.async?G():_();S.modifying&&c(P),q(()=>v(P,F))}}function G(){const F=a.let("ruleErrs",null);return a.try(()=>X((0,o._)`await `),ue=>a.assign($,!1).if((0,o._)`${ue} instanceof ${A.ValidationError}`,()=>a.assign(F,(0,o._)`${ue}.errors`),()=>a.throw(ue))),F}function _(){const F=(0,o._)`${j}.errors`;return a.assign(F,null),X(o.nil),F}function X(F=S.async?(0,o._)`await `:o.nil){const ue=A.opts.passContext?h.default.this:h.default.self,Pe=!("compile"in S&&!L||S.schema===!1);a.assign($,(0,o._)`${F}${(0,f.callValidateCode)(P,j,ue,Pe)}`,S.modifying)}function q(F){var ue;a.if((0,o.not)((ue=S.valid)!==null&&ue!==void 0?ue:$),F)}}function c(P){const{gen:S,data:t,it:a}=P;S.if(a.parentData,()=>S.assign(t,(0,o._)`${a.parentData}[${a.parentDataProperty}]`))}function v(P,S){const{gen:t}=P;t.if((0,o._)`Array.isArray(${S})`,()=>{t.assign(h.default.vErrors,(0,o._)`${h.default.vErrors} === null ? ${S} : ${h.default.vErrors}.concat(${S})`).assign(h.default.errors,(0,o._)`${h.default.vErrors}.length`),(0,O.extendErrors)(P)},()=>P.error())}function g({schemaEnv:P},S){if(S.async&&!P.$async)throw new Error("async keyword in sync schema")}function x(P,S,t){if(t===void 0)throw new Error(`keyword "${S}" failed to compile`);return P.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,o.stringify)(t)})}function y(P,S,t=!1){return!S.length||S.some(a=>a==="array"?Array.isArray(P):a==="object"?P&&typeof P=="object"&&!Array.isArray(P):typeof P==a||t&&typeof P>"u")}function b({schema:P,opts:S,self:t,errSchemaPath:a},l,D){if(Array.isArray(l.keyword)?!l.keyword.includes(D):l.keyword!==D)throw new Error("ajv implementation error");const I=l.dependencies;if(I?.some(L=>!Object.prototype.hasOwnProperty.call(P,L)))throw new Error(`parent schema must have dependencies of ${D}: ${I.join(",")}`);if(l.validateSchema&&!l.validateSchema(P[D])){const A=`keyword "${D}" value is invalid at path "${a}": `+t.errorsText(l.validateSchema.errors);if(S.validateSchema==="log")t.logger.error(A);else throw new Error(A)}}},24829:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getSubschema=f,n.extendSubschemaData=O,n.extendSubschemaMode=d;const o=e(57287),h=e(977);function f(p,{keyword:c,schemaProp:v,schema:g,schemaPath:x,errSchemaPath:y,topSchemaRef:b}){if(c!==void 0&&g!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(c!==void 0){const P=p.schema[c];return v===void 0?{schema:P,schemaPath:(0,o._)`${p.schemaPath}${(0,o.getProperty)(c)}`,errSchemaPath:`${p.errSchemaPath}/${c}`}:{schema:P[v],schemaPath:(0,o._)`${p.schemaPath}${(0,o.getProperty)(c)}${(0,o.getProperty)(v)}`,errSchemaPath:`${p.errSchemaPath}/${c}/${(0,h.escapeFragment)(v)}`}}if(g!==void 0){if(x===void 0||y===void 0||b===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:g,schemaPath:x,topSchemaRef:b,errSchemaPath:y}}throw new Error('either "keyword" or "schema" must be passed')}function O(p,c,{dataProp:v,dataPropType:g,data:x,dataTypes:y,propertyName:b}){if(x!==void 0&&v!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:P}=c;if(v!==void 0){const{errorPath:t,dataPathArr:a,opts:l}=c,D=P.let("data",(0,o._)`${c.data}${(0,o.getProperty)(v)}`,!0);S(D),p.errorPath=(0,o.str)`${t}${(0,h.getErrorPath)(v,g,l.jsPropertySyntax)}`,p.parentDataProperty=(0,o._)`${v}`,p.dataPathArr=[...a,p.parentDataProperty]}if(x!==void 0){const t=x instanceof o.Name?x:P.let("data",x,!0);S(t),b!==void 0&&(p.propertyName=b)}y&&(p.dataTypes=y);function S(t){p.data=t,p.dataLevel=c.dataLevel+1,p.dataTypes=[],c.definedProperties=new Set,p.parentData=c.data,p.dataNames=[...c.dataNames,t]}}function d(p,{jtdDiscriminator:c,jtdMetadata:v,compositeRule:g,createErrors:x,allErrors:y}){g!==void 0&&(p.compositeRule=g),x!==void 0&&(p.createErrors=x),y!==void 0&&(p.allErrors=y),p.jtdDiscriminator=c,p.jtdMetadata=v}},85968:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CodeGen=n.Name=n.nil=n.stringify=n.str=n._=n.KeywordCxt=void 0;var o=e(9804);Object.defineProperty(n,"KeywordCxt",{enumerable:!0,get:function(){return o.KeywordCxt}});var h=e(57287);Object.defineProperty(n,"_",{enumerable:!0,get:function(){return h._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return h.str}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return h.stringify}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return h.nil}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return h.Name}}),Object.defineProperty(n,"CodeGen",{enumerable:!0,get:function(){return h.CodeGen}});const f=e(84012),O=e(78805),d=e(90942),p=e(65545),c=e(57287),v=e(95421),g=e(41434),x=e(977),y=e(83899),b=e(26758),P=(se,z)=>new RegExp(se,z);P.code="new RegExp";const S=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],t=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),a={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},l={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},D=200;function I(se){var z,V,W,Q,te,ye,he,Le,We,Ie,xe,Ae,B,U,Me,He,pe,ce,Oe,ht,lt,Z,at,ot,Te;const ke=se.strict,Be=(z=se.code)===null||z===void 0?void 0:z.optimize,ne=Be===!0||Be===void 0?1:Be||0,Y=(W=(V=se.code)===null||V===void 0?void 0:V.regExp)!==null&&W!==void 0?W:P,ee=(Q=se.uriResolver)!==null&&Q!==void 0?Q:b.default;return{strictSchema:(ye=(te=se.strictSchema)!==null&&te!==void 0?te:ke)!==null&&ye!==void 0?ye:!0,strictNumbers:(Le=(he=se.strictNumbers)!==null&&he!==void 0?he:ke)!==null&&Le!==void 0?Le:!0,strictTypes:(Ie=(We=se.strictTypes)!==null&&We!==void 0?We:ke)!==null&&Ie!==void 0?Ie:"log",strictTuples:(Ae=(xe=se.strictTuples)!==null&&xe!==void 0?xe:ke)!==null&&Ae!==void 0?Ae:"log",strictRequired:(U=(B=se.strictRequired)!==null&&B!==void 0?B:ke)!==null&&U!==void 0?U:!1,code:se.code?{...se.code,optimize:ne,regExp:Y}:{optimize:ne,regExp:Y},loopRequired:(Me=se.loopRequired)!==null&&Me!==void 0?Me:D,loopEnum:(He=se.loopEnum)!==null&&He!==void 0?He:D,meta:(pe=se.meta)!==null&&pe!==void 0?pe:!0,messages:(ce=se.messages)!==null&&ce!==void 0?ce:!0,inlineRefs:(Oe=se.inlineRefs)!==null&&Oe!==void 0?Oe:!0,schemaId:(ht=se.schemaId)!==null&&ht!==void 0?ht:"$id",addUsedSchema:(lt=se.addUsedSchema)!==null&<!==void 0?lt:!0,validateSchema:(Z=se.validateSchema)!==null&&Z!==void 0?Z:!0,validateFormats:(at=se.validateFormats)!==null&&at!==void 0?at:!0,unicodeRegExp:(ot=se.unicodeRegExp)!==null&&ot!==void 0?ot:!0,int32range:(Te=se.int32range)!==null&&Te!==void 0?Te:!0,uriResolver:ee}}class L{constructor(z={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,z=this.opts={...z,...I(z)};const{es5:V,lines:W}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:t,es5:V,lines:W}),this.logger=X(z.logger);const Q=z.validateFormats;z.validateFormats=!1,this.RULES=(0,d.getRules)(),A.call(this,a,z,"NOT SUPPORTED"),A.call(this,l,z,"DEPRECATED","warn"),this._metaOpts=G.call(this),z.formats&&$.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),z.keywords&&T.call(this,z.keywords),typeof z.meta=="object"&&this.addMetaSchema(z.meta),j.call(this),z.validateFormats=Q}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:z,meta:V,schemaId:W}=this.opts;let Q=y;W==="id"&&(Q={...y},Q.id=Q.$id,delete Q.$id),V&&z&&this.addMetaSchema(Q,Q[W],!1)}defaultMeta(){const{meta:z,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof z=="object"?z[V]||z:void 0}validate(z,V){let W;if(typeof z=="string"){if(W=this.getSchema(z),!W)throw new Error(`no schema with key or ref "${z}"`)}else W=this.compile(z);const Q=W(V);return"$async"in W||(this.errors=W.errors),Q}compile(z,V){const W=this._addSchema(z,V);return W.validate||this._compileSchemaEnv(W)}compileAsync(z,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:W}=this.opts;return Q.call(this,z,V);async function Q(Ie,xe){await te.call(this,Ie.$schema);const Ae=this._addSchema(Ie,xe);return Ae.validate||ye.call(this,Ae)}async function te(Ie){Ie&&!this.getSchema(Ie)&&await Q.call(this,{$ref:Ie},!0)}async function ye(Ie){try{return this._compileSchemaEnv(Ie)}catch(xe){if(!(xe instanceof O.default))throw xe;return he.call(this,xe),await Le.call(this,xe.missingSchema),ye.call(this,Ie)}}function he({missingSchema:Ie,missingRef:xe}){if(this.refs[Ie])throw new Error(`AnySchema ${Ie} is loaded but ${xe} cannot be resolved`)}async function Le(Ie){const xe=await We.call(this,Ie);this.refs[Ie]||await te.call(this,xe.$schema),this.refs[Ie]||this.addSchema(xe,Ie,V)}async function We(Ie){const xe=this._loading[Ie];if(xe)return xe;try{return await(this._loading[Ie]=W(Ie))}finally{delete this._loading[Ie]}}}addSchema(z,V,W,Q=this.opts.validateSchema){if(Array.isArray(z)){for(const ye of z)this.addSchema(ye,void 0,W,Q);return this}let te;if(typeof z=="object"){const{schemaId:ye}=this.opts;if(te=z[ye],te!==void 0&&typeof te!="string")throw new Error(`schema ${ye} must be string`)}return V=(0,v.normalizeId)(V||te),this._checkUnique(V),this.schemas[V]=this._addSchema(z,W,V,Q,!0),this}addMetaSchema(z,V,W=this.opts.validateSchema){return this.addSchema(z,V,!0,W),this}validateSchema(z,V){if(typeof z=="boolean")return!0;let W;if(W=z.$schema,W!==void 0&&typeof W!="string")throw new Error("$schema must be a string");if(W=W||this.opts.defaultMeta||this.defaultMeta(),!W)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const Q=this.validate(W,z);if(!Q&&V){const te="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(te);else throw new Error(te)}return Q}getSchema(z){let V;for(;typeof(V=R.call(this,z))=="string";)z=V;if(V===void 0){const{schemaId:W}=this.opts,Q=new p.SchemaEnv({schema:{},schemaId:W});if(V=p.resolveSchema.call(this,Q,z),!V)return;this.refs[z]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(z){if(z instanceof RegExp)return this._removeAllSchemas(this.schemas,z),this._removeAllSchemas(this.refs,z),this;switch(typeof z){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=R.call(this,z);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[z],delete this.refs[z],this}case"object":{const V=z;this._cache.delete(V);let W=z[this.opts.schemaId];return W&&(W=(0,v.normalizeId)(W),delete this.schemas[W],delete this.refs[W]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(z){for(const V of z)this.addKeyword(V);return this}addKeyword(z,V){let W;if(typeof z=="string")W=z,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=W);else if(typeof z=="object"&&V===void 0){if(V=z,W=V.keyword,Array.isArray(W)&&!W.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(F.call(this,W,V),!V)return(0,x.eachItem)(W,te=>ue.call(this,te)),this;le.call(this,V);const Q={...V,type:(0,g.getJSONTypes)(V.type),schemaType:(0,g.getJSONTypes)(V.schemaType)};return(0,x.eachItem)(W,Q.type.length===0?te=>ue.call(this,te,Q):te=>Q.type.forEach(ye=>ue.call(this,te,Q,ye))),this}getKeyword(z){const V=this.RULES.all[z];return typeof V=="object"?V.definition:!!V}removeKeyword(z){const{RULES:V}=this;delete V.keywords[z],delete V.all[z];for(const W of V.rules){const Q=W.rules.findIndex(te=>te.keyword===z);Q>=0&&W.rules.splice(Q,1)}return this}addFormat(z,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[z]=V,this}errorsText(z=this.errors,{separator:V=", ",dataVar:W="data"}={}){return!z||z.length===0?"No errors":z.map(Q=>`${W}${Q.instancePath} ${Q.message}`).reduce((Q,te)=>Q+V+te)}$dataMetaSchema(z,V){const W=this.RULES.all;z=JSON.parse(JSON.stringify(z));for(const Q of V){const te=Q.split("/").slice(1);let ye=z;for(const he of te)ye=ye[he];for(const he in W){const Le=W[he];if(typeof Le!="object")continue;const{$data:We}=Le.definition,Ie=ye[he];We&&Ie&&(ye[he]=fe(Ie))}}return z}_removeAllSchemas(z,V){for(const W in z){const Q=z[W];(!V||V.test(W))&&(typeof Q=="string"?delete z[W]:Q&&!Q.meta&&(this._cache.delete(Q.schema),delete z[W]))}}_addSchema(z,V,W,Q=this.opts.validateSchema,te=this.opts.addUsedSchema){let ye;const{schemaId:he}=this.opts;if(typeof z=="object")ye=z[he];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof z!="boolean")throw new Error("schema must be object or boolean")}let Le=this._cache.get(z);if(Le!==void 0)return Le;W=(0,v.normalizeId)(ye||W);const We=v.getSchemaRefs.call(this,z,W);return Le=new p.SchemaEnv({schema:z,schemaId:he,meta:V,baseId:W,localRefs:We}),this._cache.set(Le.schema,Le),te&&!W.startsWith("#")&&(W&&this._checkUnique(W),this.refs[W]=Le),Q&&this.validateSchema(z,!0),Le}_checkUnique(z){if(this.schemas[z]||this.refs[z])throw new Error(`schema with key or id "${z}" already exists`)}_compileSchemaEnv(z){if(z.meta?this._compileMetaSchema(z):p.compileSchema.call(this,z),!z.validate)throw new Error("ajv implementation error");return z.validate}_compileMetaSchema(z){const V=this.opts;this.opts=this._metaOpts;try{p.compileSchema.call(this,z)}finally{this.opts=V}}}L.ValidationError=f.default,L.MissingRefError=O.default,n.default=L;function A(se,z,V,W="error"){for(const Q in se){const te=Q;te in z&&this.logger[W](`${V}: option ${Q}. ${se[te]}`)}}function R(se){return se=(0,v.normalizeId)(se),this.schemas[se]||this.refs[se]}function j(){const se=this.opts.schemas;if(se)if(Array.isArray(se))this.addSchema(se);else for(const z in se)this.addSchema(se[z],z)}function $(){for(const se in this.opts.formats){const z=this.opts.formats[se];z&&this.addFormat(se,z)}}function T(se){if(Array.isArray(se)){this.addVocabulary(se);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const z in se){const V=se[z];V.keyword||(V.keyword=z),this.addKeyword(V)}}function G(){const se={...this.opts};for(const z of S)delete se[z];return se}const _={log(){},warn(){},error(){}};function X(se){if(se===!1)return _;if(se===void 0)return console;if(se.log&&se.warn&&se.error)return se;throw new Error("logger must implement log, warn and error methods")}const q=/^[a-z_$][a-z0-9_$:-]*$/i;function F(se,z){const{RULES:V}=this;if((0,x.eachItem)(se,W=>{if(V.keywords[W])throw new Error(`Keyword ${W} is already defined`);if(!q.test(W))throw new Error(`Keyword ${W} has invalid name`)}),!!z&&z.$data&&!("code"in z||"validate"in z))throw new Error('$data keyword must have "code" or "validate" function')}function ue(se,z,V){var W;const Q=z?.post;if(V&&Q)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:te}=this;let ye=Q?te.post:te.rules.find(({type:Le})=>Le===V);if(ye||(ye={type:V,rules:[]},te.rules.push(ye)),te.keywords[se]=!0,!z)return;const he={keyword:se,definition:{...z,type:(0,g.getJSONTypes)(z.type),schemaType:(0,g.getJSONTypes)(z.schemaType)}};z.before?Pe.call(this,ye,he,z.before):ye.rules.push(he),te.all[se]=he,(W=z.implements)===null||W===void 0||W.forEach(Le=>this.addKeyword(Le))}function Pe(se,z,V){const W=se.rules.findIndex(Q=>Q.keyword===V);W>=0?se.rules.splice(W,0,z):(se.rules.push(z),this.logger.warn(`rule ${V} is not defined`))}function le(se){let{metaSchema:z}=se;z!==void 0&&(se.$data&&this.opts.$data&&(z=fe(z)),se.validateSchema=this.compile(z,!0))}const De={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function fe(se){return{anyOf:[se,De]}}},48226:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=x;const o=e(44228),h=e(79618),f=e(20493),O=e(93796),d=e(29432),p=e(53134),c=e(53381),v=e(47708),g=["/properties"];function x(y){return[o,h,f,O,d,b(this,p),c,b(this,v)].forEach(P=>this.addMetaSchema(P,void 0,!1)),this;function b(P,S){return y?P.$dataMetaSchema(S,g):S}}},81508:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(67371);o.code='require("ajv/dist/runtime/equal").default',n.default=o},11471:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=e;function e(o){const h=o.length;let f=0,O=0,d;for(;O<h;)f++,d=o.charCodeAt(O++),d>=55296&&d<=56319&&O<h&&(d=o.charCodeAt(O),(d&64512)===56320&&O++);return f}e.code='require("ajv/dist/runtime/ucs2length").default'},26758:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(5943);o.code='require("ajv/dist/runtime/uri").default',n.default=o},84012:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});class e extends Error{constructor(h){super("validation failed"),this.errors=h,this.ajv=this.validation=!0}}n.default=e},30311:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.validateAdditionalItems=d;const o=e(57287),h=e(977),O={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:p}})=>(0,o.str)`must NOT have more than ${p} items`,params:({params:{len:p}})=>(0,o._)`{limit: ${p}}`},code(p){const{parentSchema:c,it:v}=p,{items:g}=c;if(!Array.isArray(g)){(0,h.checkStrictMode)(v,'"additionalItems" is ignored when "items" is not an array of schemas');return}d(p,g)}};function d(p,c){const{gen:v,schema:g,data:x,keyword:y,it:b}=p;b.items=!0;const P=v.const("len",(0,o._)`${x}.length`);if(g===!1)p.setParams({len:c.length}),p.pass((0,o._)`${P} <= ${c.length}`);else if(typeof g=="object"&&!(0,h.alwaysValidSchema)(b,g)){const t=v.var("valid",(0,o._)`${P} <= ${c.length}`);v.if((0,o.not)(t),()=>S(t)),p.ok(t)}function S(t){v.forRange("i",c.length,P,a=>{p.subschema({keyword:y,dataProp:a,dataPropType:h.Type.Num},t),b.allErrors||v.if((0,o.not)(t),()=>v.break())})}}n.default=O},89842:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(55223),h=e(57287),f=e(5057),O=e(977),p={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:c})=>(0,h._)`{additionalProperty: ${c.additionalProperty}}`},code(c){const{gen:v,parentSchema:g,data:x,errsCount:y,it:b}=c,{schema:P=b.opts.defaultAdditionalProperties}=c;if(!y)throw new Error("ajv implementation error");const{allErrors:S,opts:t}=b;if(b.props=!0,t.removeAdditional!=="all"&&(0,O.alwaysValidSchema)(b,P))return;const a=(0,o.allSchemaProperties)(g.properties),l=(0,o.allSchemaProperties)(g.patternProperties);D(),c.ok((0,h._)`${y} === ${f.default.errors}`);function D(){v.forIn("key",x,j=>{!a.length&&!l.length?A(j):v.if(I(j),()=>A(j))})}function I(j){let $;if(a.length>8){const T=(0,O.schemaRefOrVal)(b,g.properties,"properties");$=(0,o.isOwnProperty)(v,T,j)}else a.length?$=(0,h.or)(...a.map(T=>(0,h._)`${j} === ${T}`)):$=h.nil;return l.length&&($=(0,h.or)($,...l.map(T=>(0,h._)`${(0,o.usePattern)(c,T)}.test(${j})`))),(0,h.not)($)}function L(j){v.code((0,h._)`delete ${x}[${j}]`)}function A(j){if(t.removeAdditional==="all"||t.removeAdditional&&P===!1){L(j);return}if(P===!1){c.setParams({additionalProperty:j}),c.error(),S||v.break();return}if(typeof P=="object"&&!(0,O.alwaysValidSchema)(b,P)){const $=v.name("valid");t.removeAdditional==="failing"?(R(j,$,!1),v.if((0,h.not)($),()=>{c.reset(),L(j)})):(R(j,$),S||v.if((0,h.not)($),()=>v.break()))}}function R(j,$,T){const G={keyword:"additionalProperties",dataProp:j,dataPropType:O.Type.Str};T===!1&&Object.assign(G,{compositeRule:!0,createErrors:!1,allErrors:!1}),c.subschema(G,$)}}};n.default=p},64118:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(977),h={keyword:"allOf",schemaType:"array",code(f){const{gen:O,schema:d,it:p}=f;if(!Array.isArray(d))throw new Error("ajv implementation error");const c=O.name("valid");d.forEach((v,g)=>{if((0,o.alwaysValidSchema)(p,v))return;const x=f.subschema({keyword:"allOf",schemaProp:g},c,!0);f.ok(c),f.mergeEvaluated(x)})}};n.default=h},32247:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const h={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:e(55223).validateUnion,error:{message:"must match a schema in anyOf"}};n.default=h},97967:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),O={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:d,max:p}})=>p===void 0?(0,o.str)`must contain at least ${d} valid item(s)`:(0,o.str)`must contain at least ${d} and no more than ${p} valid item(s)`,params:({params:{min:d,max:p}})=>p===void 0?(0,o._)`{minContains: ${d}}`:(0,o._)`{minContains: ${d}, maxContains: ${p}}`},code(d){const{gen:p,schema:c,parentSchema:v,data:g,it:x}=d;let y,b;const{minContains:P,maxContains:S}=v;x.opts.next?(y=P===void 0?1:P,b=S):y=1;const t=p.const("len",(0,o._)`${g}.length`);if(d.setParams({min:y,max:b}),b===void 0&&y===0){(0,h.checkStrictMode)(x,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(b!==void 0&&y>b){(0,h.checkStrictMode)(x,'"minContains" > "maxContains" is always invalid'),d.fail();return}if((0,h.alwaysValidSchema)(x,c)){let L=(0,o._)`${t} >= ${y}`;b!==void 0&&(L=(0,o._)`${L} && ${t} <= ${b}`),d.pass(L);return}x.items=!0;const a=p.name("valid");b===void 0&&y===1?D(a,()=>p.if(a,()=>p.break())):y===0?(p.let(a,!0),b!==void 0&&p.if((0,o._)`${g}.length > 0`,l)):(p.let(a,!1),l()),d.result(a,()=>d.reset());function l(){const L=p.name("_valid"),A=p.let("count",0);D(L,()=>p.if(L,()=>I(A)))}function D(L,A){p.forRange("i",0,t,R=>{d.subschema({keyword:"contains",dataProp:R,dataPropType:h.Type.Num,compositeRule:!0},L),A()})}function I(L){p.code((0,o._)`${L}++`),b===void 0?p.if((0,o._)`${L} >= ${y}`,()=>p.assign(a,!0).break()):(p.if((0,o._)`${L} > ${b}`,()=>p.assign(a,!1).break()),y===1?p.assign(a,!0):p.if((0,o._)`${L} >= ${y}`,()=>p.assign(a,!0)))}}};n.default=O},7879:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.error=void 0,n.validatePropertyDeps=p,n.validateSchemaDeps=c;const o=e(57287),h=e(977),f=e(55223);n.error={message:({params:{property:v,depsCount:g,deps:x}})=>{const y=g===1?"property":"properties";return(0,o.str)`must have ${y} ${x} when property ${v} is present`},params:({params:{property:v,depsCount:g,deps:x,missingProperty:y}})=>(0,o._)`{property: ${v},
|
|
11
11
|
missingProperty: ${y},
|
|
12
12
|
depsCount: ${g},
|
|
13
|
-
deps: ${x}}`};const O={keyword:"dependencies",type:"object",schemaType:"object",error:n.error,code(v){const[g,x]=d(v);p(v,g),c(v,x)}};function d({schema:v}){const g={},x={};for(const y in v){if(y==="__proto__")continue;const b=Array.isArray(v[y])?g:x;b[y]=v[y]}return[g,x]}function p(v,g=v.schema){const{gen:x,data:y,it:b}=v;if(Object.keys(g).length===0)return;const P=x.let("missing");for(const S in g){const t=g[S];if(t.length===0)continue;const a=(0,f.propertyInData)(x,y,S,b.opts.ownProperties);v.setParams({property:S,depsCount:t.length,deps:t.join(", ")}),b.allErrors?x.if(a,()=>{for(const l of t)(0,f.checkReportMissingProp)(v,l)}):(x.if((0,o._)`${a} && (${(0,f.checkMissingProp)(v,t,P)})`),(0,f.reportMissingProp)(v,P),x.else())}}function c(v,g=v.schema){const{gen:x,data:y,keyword:b,it:P}=v,S=x.name("valid");for(const t in g)(0,h.alwaysValidSchema)(P,g[t])||(x.if((0,f.propertyInData)(x,y,t,P.opts.ownProperties),()=>{const a=v.subschema({keyword:b,schemaProp:t},S);v.mergeValidEvaluated(a,S)},()=>x.var(S,!0)),v.ok(S))}n.default=O},82463:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(7879),h={keyword:"dependentSchemas",type:"object",schemaType:"object",code:f=>(0,o.validateSchemaDeps)(f)};n.default=h},14785:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),O={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:p})=>(0,o.str)`must match "${p.ifClause}" schema`,params:({params:p})=>(0,o._)`{failingKeyword: ${p.ifClause}}`},code(p){const{gen:c,parentSchema:v,it:g}=p;v.then===void 0&&v.else===void 0&&(0,h.checkStrictMode)(g,'"if" without "then" and "else" is ignored');const x=d(g,"then"),y=d(g,"else");if(!x&&!y)return;const b=c.let("valid",!0),P=c.name("_valid");if(S(),p.reset(),x&&y){const a=c.let("ifClause");p.setParams({ifClause:a}),c.if(P,t("then",a),t("else",a))}else x?c.if(P,t("then")):c.if((0,o.not)(P),t("else"));p.pass(b,()=>p.error(!0));function S(){const a=p.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},P);p.mergeEvaluated(a)}function t(a,l){return()=>{const D=p.subschema({keyword:a},P);c.assign(b,P),p.mergeValidEvaluated(D,b),l?c.assign(l,(0,o._)`${a}`):p.setParams({ifClause:a})}}}};function d(p,c){const v=p.schema[c];return v!==void 0&&!(0,h.alwaysValidSchema)(p,v)}n.default=O},32776:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;const o=e(30311),h=e(44448),f=e(23972),O=e(4740),d=e(97967),p=e(7879),c=e(92951),v=e(89842),g=e(58283),x=e(51807),y=e(9397),b=e(32247),P=e(7133),S=e(64118),t=e(14785),a=e(54896);function l(D=!1){const I=[y.default,b.default,P.default,S.default,t.default,a.default,c.default,v.default,p.default,g.default,x.default];return D?I.push(h.default,O.default):I.push(o.default,f.default),I.push(d.default),I}},23972:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.validateTuple=d;const o=e(57287),h=e(977),f=e(55223),O={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(p){const{schema:c,it:v}=p;if(Array.isArray(c))return d(p,"additionalItems",c);v.items=!0,!(0,h.alwaysValidSchema)(v,c)&&p.ok((0,f.validateArray)(p))}};function d(p,c,v=p.schema){const{gen:g,parentSchema:x,data:y,keyword:b,it:P}=p;a(x),P.opts.unevaluated&&v.length&&P.items!==!0&&(P.items=h.mergeEvaluated.items(g,v.length,P.items));const S=g.name("valid"),t=g.const("len",(0,o._)`${y}.length`);v.forEach((l,D)=>{(0,h.alwaysValidSchema)(P,l)||(g.if((0,o._)`${t} > ${D}`,()=>p.subschema({keyword:b,schemaProp:D,dataProp:D},S)),p.ok(S))});function a(l){const{opts:D,errSchemaPath:I}=P,L=v.length,A=L===l.minItems&&(L===l.maxItems||l[c]===!1);if(D.strictTuples&&!A){const R=`"${b}" is ${L}-tuple, but minItems or maxItems/${c} are not specified or different at path "${I}"`;(0,h.checkStrictMode)(P,R,D.strictTuples)}}}n.default=O},4740:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),f=e(55223),O=e(30311),p={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:c}})=>(0,o.str)`must NOT have more than ${c} items`,params:({params:{len:c}})=>(0,o._)`{limit: ${c}}`},code(c){const{schema:v,parentSchema:g,it:x}=c,{prefixItems:y}=g;x.items=!0,!(0,h.alwaysValidSchema)(x,v)&&(y?(0,O.validateAdditionalItems)(c,y):c.ok((0,f.validateArray)(c)))}};n.default=p},9397:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(977),h={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(f){const{gen:O,schema:d,it:p}=f;if((0,o.alwaysValidSchema)(p,d)){f.fail();return}const c=O.name("valid");f.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},c),f.failResult(c,()=>f.reset(),()=>f.error())},error:{message:"must NOT be valid"}};n.default=h},7133:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),O={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:d})=>(0,o._)`{passingSchemas: ${d.passing}}`},code(d){const{gen:p,schema:c,parentSchema:v,it:g}=d;if(!Array.isArray(c))throw new Error("ajv implementation error");if(g.opts.discriminator&&v.discriminator)return;const x=c,y=p.let("valid",!1),b=p.let("passing",null),P=p.name("_valid");d.setParams({passing:b}),p.block(S),d.result(y,()=>d.reset(),()=>d.error(!0));function S(){x.forEach((t,a)=>{let l;(0,h.alwaysValidSchema)(g,t)?p.var(P,!0):l=d.subschema({keyword:"oneOf",schemaProp:a,compositeRule:!0},P),a>0&&p.if((0,o._)`${P} && ${y}`).assign(y,!1).assign(b,(0,o._)`[${b}, ${a}]`).else(),p.if(P,()=>{p.assign(y,!0),p.assign(b,a),l&&d.mergeEvaluated(l,o.Name)})})}}};n.default=O},51807:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(55223),h=e(57287),f=e(977),O=e(977),d={keyword:"patternProperties",type:"object",schemaType:"object",code(p){const{gen:c,schema:v,data:g,parentSchema:x,it:y}=p,{opts:b}=y,P=(0,o.allSchemaProperties)(v),S=P.filter(A=>(0,f.alwaysValidSchema)(y,v[A]));if(P.length===0||S.length===P.length&&(!y.opts.unevaluated||y.props===!0))return;const t=b.strictSchema&&!b.allowMatchingProperties&&x.properties,a=c.name("valid");y.props!==!0&&!(y.props instanceof h.Name)&&(y.props=(0,O.evaluatedPropsToName)(c,y.props));const{props:l}=y;D();function D(){for(const A of P)t&&I(A),y.allErrors?L(A):(c.var(a,!0),L(A),c.if(a))}function I(A){for(const R in t)new RegExp(A).test(R)&&(0,f.checkStrictMode)(y,`property ${R} matches pattern ${A} (use allowMatchingProperties)`)}function L(A){c.forIn("key",g,R=>{c.if((0,h._)`${(0,o.usePattern)(p,A)}.test(${R})`,()=>{const j=S.includes(A);j||p.subschema({keyword:"patternProperties",schemaProp:A,dataProp:R,dataPropType:O.Type.Str},a),y.opts.unevaluated&&l!==!0?c.assign((0,h._)`${l}[${R}]`,!0):!j&&!y.allErrors&&c.if((0,h.not)(a),()=>c.break())})})}}};n.default=d},44448:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(23972),h={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:f=>(0,o.validateTuple)(f,"items")};n.default=h},58283:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(9804),h=e(55223),f=e(977),O=e(89842),d={keyword:"properties",type:"object",schemaType:"object",code(p){const{gen:c,schema:v,parentSchema:g,data:x,it:y}=p;(y.opts.removeAdditional==="all"&&g.additionalProperties===void 0||y.opts.defaultAdditionalProperties===!1)&&O.default.code(new o.KeywordCxt(y,O.default,"additionalProperties"));const b=(0,h.allSchemaProperties)(v);for(const l of b)y.definedProperties.add(l);y.opts.unevaluated&&b.length&&y.props!==!0&&(y.props=f.mergeEvaluated.props(c,(0,f.toHash)(b),y.props));const P=b.filter(l=>!(0,f.alwaysValidSchema)(y,v[l]));if(P.length===0)return;const S=c.name("valid");for(const l of P)t(l)?a(l):(c.if((0,h.propertyInData)(c,x,l,y.opts.ownProperties)),a(l),y.allErrors||c.else().var(S,!0),c.endIf()),p.it.definedProperties.add(l),p.ok(S);function t(l){return y.opts.useDefaults&&!y.compositeRule&&v[l].default!==void 0}function a(l){p.subschema({keyword:"properties",schemaProp:l,dataProp:l},S)}}};n.default=d},92951:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),O={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:d})=>(0,o._)`{propertyName: ${d.propertyName}}`},code(d){const{gen:p,schema:c,data:v,it:g}=d;if((0,h.alwaysValidSchema)(g,c))return;const x=p.name("valid");p.forIn("key",v,y=>{d.setParams({propertyName:y}),d.subschema({keyword:"propertyNames",data:y,dataTypes:["string"],propertyName:y,compositeRule:!0},x),p.if((0,o.not)(x),()=>{d.error(!0),g.allErrors||p.break()})}),d.ok(x)}};n.default=O},54896:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(977),h={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:f,parentSchema:O,it:d}){O.if===void 0&&(0,o.checkStrictMode)(d,`"${f}" without "if" is ignored`)}};n.default=h},55223:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkReportMissingProp=d,n.checkMissingProp=p,n.reportMissingProp=c,n.hasPropFunc=v,n.isOwnProperty=g,n.propertyInData=x,n.noPropertyInData=y,n.allSchemaProperties=b,n.schemaProperties=P,n.callValidateCode=S,n.usePattern=a,n.validateArray=l,n.validateUnion=D;const o=e(57287),h=e(977),f=e(5057),O=e(977);function d(I,L){const{gen:A,data:R,it:j}=I;A.if(y(A,R,L,j.opts.ownProperties),()=>{I.setParams({missingProperty:(0,o._)`${L}`},!0),I.error()})}function p({gen:I,data:L,it:{opts:A}},R,j){return(0,o.or)(...R.map($=>(0,o.and)(y(I,L,$,A.ownProperties),(0,o._)`${j} = ${$}`)))}function c(I,L){I.setParams({missingProperty:L},!0),I.error()}function v(I){return I.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,o._)`Object.prototype.hasOwnProperty`})}function g(I,L,A){return(0,o._)`${v(I)}.call(${L}, ${A})`}function x(I,L,A,R){const j=(0,o._)`${L}${(0,o.getProperty)(A)} !== undefined`;return R?(0,o._)`${j} && ${g(I,L,A)}`:j}function y(I,L,A,R){const j=(0,o._)`${L}${(0,o.getProperty)(A)} === undefined`;return R?(0,o.or)(j,(0,o.not)(g(I,L,A))):j}function b(I){return I?Object.keys(I).filter(L=>L!=="__proto__"):[]}function P(I,L){return b(L).filter(A=>!(0,h.alwaysValidSchema)(I,L[A]))}function S({schemaCode:I,data:L,it:{gen:A,topSchemaRef:R,schemaPath:j,errorPath:$},it:T},G,_,X){const q=X?(0,o._)`${I}, ${L}, ${R}${j}`:L,F=[[f.default.instancePath,(0,o.strConcat)(f.default.instancePath,$)],[f.default.parentData,T.parentData],[f.default.parentDataProperty,T.parentDataProperty],[f.default.rootData,f.default.rootData],[f.default.isAllOfVariant,T.isAllOfVariant?1:0]];T.opts.dynamicRef&&F.push([f.default.dynamicAnchors,f.default.dynamicAnchors]);const ue=(0,o._)`${q}, ${A.object(...F)}`;return _!==o.nil?(0,o._)`${G}.call(${_}, ${ue})`:(0,o._)`${G}(${ue})`}const t=(0,o._)`new RegExp`;function a({gen:I,it:{opts:L}},A){const R=L.unicodeRegExp?"u":"",{regExp:j}=L.code,$=j(A,R);return I.scopeValue("pattern",{key:$.toString(),ref:$,code:(0,o._)`${j.code==="new RegExp"?t:(0,O.useFunc)(I,j)}(${A}, ${R})`})}function l(I){const{gen:L,data:A,keyword:R,it:j}=I,$=L.name("valid");if(j.allErrors){const G=L.let("valid",!0);return T(()=>L.assign(G,!1)),G}return L.var($,!0),T(()=>L.break()),$;function T(G){const _=L.const("len",(0,o._)`${A}.length`);L.forRange("i",0,_,X=>{I.subschema({keyword:R,dataProp:X,dataPropType:h.Type.Num},$),L.if((0,o.not)($),G)})}}function D(I){const{gen:L,schema:A,keyword:R,parentSchema:j,it:$}=I;if(!Array.isArray(A))throw new Error("ajv implementation error");if($.opts.discriminator&&j.discriminator||A.some(X=>(0,h.alwaysValidSchema)($,X))&&!$.opts.unevaluated)return;const G=L.let("valid",!1),_=L.name("_valid");L.block(()=>A.forEach((X,q)=>{const F=I.subschema({keyword:R,schemaProp:q,compositeRule:!0},_);L.assign(G,(0,o._)`${G} || ${_}`),I.mergeValidEvaluated(F,_)||L.if((0,o.not)(G))})),I.result(G,()=>I.reset(),()=>I.error(!0))}},91733:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};n.default=e},87758:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(91733),h=e(12095),f=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",o.default,h.default];n.default=f},12095:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getValidate=v,n.callRef=g;const o=e(78805),h=e(55223),f=e(57287),O=e(5057),d=e(65545),p=e(977),c={keyword:"$ref",schemaType:"string",code(x){const{gen:y,schema:b,it:P}=x,{baseId:S,schemaEnv:t,validateName:a,opts:l,self:D}=P,{root:I}=t;if((b==="#"||b==="#/")&&S===I.baseId)return A();const L=d.resolveRef.call(D,I,S,b);if(L===void 0)throw new o.default(P.opts.uriResolver,S,b);if(L instanceof d.SchemaEnv)return R(L);return j(L);function A(){if(t===I)return g(x,a,t,t.$async);const $=y.scopeValue("root",{ref:I});return g(x,(0,f._)`${$}.validate`,I,I.$async)}function R($){const T=v(x,$);g(x,T,$,$.$async)}function j($){const T=y.scopeValue("schema",l.code.source===!0?{ref:$,code:(0,f.stringify)($)}:{ref:$}),G=y.name("valid"),_=x.subschema({schema:$,dataTypes:[],schemaPath:f.nil,topSchemaRef:T,errSchemaPath:b},G,P.isAllOfVariant);x.mergeEvaluated(_),x.ok(G)}}};function v(x,y){const{gen:b}=x;return y.validate?b.scopeValue("validate",{ref:y.validate}):(0,f._)`${b.scopeValue("wrapper",{ref:y})}.validate`}function g(x,y,b,P){const{gen:S,it:t}=x,{allErrors:a,schemaEnv:l,opts:D}=t,I=D.passContext?O.default.this:f.nil;P?L():A();function L(){if(!l.$async)throw new Error("async schema referenced by sync schema");const $=S.let("valid");S.try(()=>{S.code((0,f._)`await ${(0,h.callValidateCode)(x,y,I)}`),j(y),a||S.assign($,!0)},T=>{S.if((0,f._)`!(${T} instanceof ${t.ValidationError})`,()=>S.throw(T)),R(T),a||S.assign($,!1)}),x.ok($)}function A(){const $=S.name("visitedNodes");S.code((0,f._)`const ${$} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${y}) || new Set()`),S.if((0,f._)`!${$}.has(${x.data})`,()=>{S.code((0,f._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${y}, ${$})`),S.code((0,f._)`const dataNode = ${x.data}`),S.code((0,f._)`if (typeof dataNode === "object" && dataNode !== null) ${$}.add(dataNode)`);const T=x.result((0,h.callValidateCode)(x,y,I),()=>j(y),()=>R(y));return S.code((0,f._)`${$}.delete(dataNode)`),T})}function R($){const T=(0,f._)`${$}.errors`;S.assign(O.default.vErrors,(0,f._)`${O.default.vErrors} === null ? ${T} : ${O.default.vErrors}.concat(${T})`),S.assign(O.default.errors,(0,f._)`${O.default.vErrors}.length`)}function j($){var T;if(!t.opts.unevaluated)return;const G=(T=b?.validate)===null||T===void 0?void 0:T.evaluated;if(t.props!==!0)if(G&&!G.dynamicProps)G.props!==void 0&&(t.props=p.mergeEvaluated.props(S,G.props,t.props));else{const _=S.var("props",(0,f._)`${$}.evaluated.props`);t.props=p.mergeEvaluated.props(S,_,t.props,f.Name)}if(t.items!==!0)if(G&&!G.dynamicItems)G.items!==void 0&&(t.items=p.mergeEvaluated.items(S,G.items,t.items));else{const _=S.var("items",(0,f._)`${$}.evaluated.items`);t.items=p.mergeEvaluated.items(S,_,t.items,f.Name)}}}n.default=c},67104:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(43794),f=e(65545),O=e(977),p={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:v}})=>c===h.DiscrError.Tag?`tag "${v}" must be string`:`value of tag "${v}" must be in oneOf or anyOf`,params:({params:{discrError:c,tag:v,tagName:g}})=>(0,o._)`{error: ${c}, tag: ${g}, tagValue: ${v}}`},code(c){const{gen:v,data:g,schema:x,parentSchema:y,it:b}=c,P=y.oneOf?"oneOf":y.anyOf?"anyOf":void 0;if(!b.opts.discriminator)throw new Error("discriminator: requires discriminator option");const S=x.propertyName;if(typeof S!="string")throw new Error("discriminator: requires propertyName");if(!P)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const t=y[P],a=v.let("valid",!1),l=v.const("tag",(0,o._)`${g}${(0,o.getProperty)(S)}`);v.if((0,o._)`typeof ${l} == "string"`,()=>D(),()=>c.error(!1,{discrError:h.DiscrError.Tag,tag:l,tagName:S})),c.ok(a);function D(){const A=L();v.if(!1);for(const R in A)v.elseIf((0,o._)`${l} === ${R}`),v.assign(a,I(A[R]));v.else(),c.error(!1,{discrError:h.DiscrError.Mapping,tag:l,tagName:S}),v.endIf()}function I(A){const R=v.name("valid"),j=c.subschema({keyword:P,schemaProp:A},R);return c.mergeEvaluated(j,o.Name),R}function L(){var A;const R={},j=T(y);let $=!0;for(let X=0;X<t.length;X++){let q=t[X];const F=q?.$ref;if(F&&x.mapping){const{mapping:Pe}=x,le=Object.keys(Pe).filter(De=>Pe[De]===q.$ref);if(le.length){for(const De of le)_(De,X);continue}}F&&!(0,O.schemaHasRulesButRef)(q,b.self.RULES)&&(q=f.resolveRef.call(b.self,b.schemaEnv.root,b.baseId,F),q instanceof f.SchemaEnv&&(q=q.schema));const ue=(A=q?.properties)===null||A===void 0?void 0:A[S];if(typeof ue!="object")throw new Error(`discriminator: ${P} subschemas (or referenced schemas) must have "properties/${S}" or match mapping`);$=$&&(j||T(q)),G(ue,X)}if(!$)throw new Error(`discriminator: "${S}" must be required`);return R;function T({required:X}){return Array.isArray(X)&&X.includes(S)}function G(X,q){if(X.const)_(X.const,q);else if(X.enum)for(const F of X.enum)_(F,q);else throw new Error(`discriminator: "properties/${S}" must have "const" or "enum"`)}function _(X,q){if(typeof X!="string"||X in R)throw new Error(`discriminator: "${S}" values must be unique strings`);R[X]=q}}}};n.default=p},43794:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DiscrError=void 0;var e;(function(o){o.Tag="tag",o.Mapping="mapping"})(e||(n.DiscrError=e={}))},96735:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(87758),h=e(3602),f=e(32776),O=e(87614),d=e(42547),p=e(42759),c=e(650),v=e(11339),g=[O.default,o.default,h.default,(0,f.default)(!0),c.default,v.metadataVocabulary,v.contentVocabulary,d.default,p.default];n.default=g},17038:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.dynamicAnchor=p;const o=e(57287),h=e(5057),f=e(65545),O=e(12095),d={keyword:"$dynamicAnchor",schemaType:"string",code:v=>p(v,v.schema)};function p(v,g){const{gen:x,it:y}=v;y.schemaEnv.root.dynamicAnchors[g]=!0;const b=(0,o._)`${h.default.dynamicAnchors}${(0,o.getProperty)(g)}`,P=y.errSchemaPath==="#"?y.validateName:c(v);x.if((0,o._)`!${b}`,()=>x.assign(b,P))}function c(v){const{schemaEnv:g,schema:x,self:y}=v.it,{root:b,baseId:P,localRefs:S,meta:t}=g.root,{schemaId:a}=y.opts,l=new f.SchemaEnv({schema:x,schemaId:a,root:b,baseId:P,localRefs:S,meta:t});return f.compileSchema.call(y,l),(0,O.getValidate)(v,l)}n.default=d},22498:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.dynamicRef=d;const o=e(57287),h=e(5057),f=e(12095),O={keyword:"$dynamicRef",schemaType:"string",code:p=>d(p,p.schema)};function d(p,c){const{gen:v,keyword:g,it:x}=p;if(c[0]!=="#")throw new Error(`"${g}" only supports hash fragment reference`);const y=c.slice(1);if(x.allErrors)b();else{const S=v.let("valid",!1);b(S),p.ok(S)}function b(S){if(x.schemaEnv.root.dynamicAnchors[y]){const t=v.let("_v",(0,o._)`${h.default.dynamicAnchors}${(0,o.getProperty)(y)}`);v.if(t,P(t,S),P(x.validateName,S))}else P(x.validateName,S)()}function P(S,t){return t?()=>v.block(()=>{(0,f.callRef)(p,S),v.let(t,!0)}):()=>(0,f.callRef)(p,S)}}n.default=O},87614:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(17038),h=e(22498),f=e(42807),O=e(43841),d=[o.default,h.default,f.default,O.default];n.default=d},42807:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(17038),h=e(977),f={keyword:"$recursiveAnchor",schemaType:"boolean",code(O){O.schema?(0,o.dynamicAnchor)(O,""):(0,h.checkStrictMode)(O.it,"$recursiveAnchor: false is ignored")}};n.default=f},43841:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(22498),h={keyword:"$recursiveRef",schemaType:"string",code:f=>(0,o.dynamicRef)(f,f.schema)};n.default=h},65531:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),f={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:O})=>(0,o.str)`must match format "${O}"`,params:({schemaCode:O})=>(0,o._)`{format: ${O}}`},code(O,d){const{gen:p,data:c,$data:v,schema:g,schemaCode:x,it:y}=O,{opts:b,errSchemaPath:P,schemaEnv:S,self:t}=y;if(!b.validateFormats)return;v?a():l();function a(){const D=p.scopeValue("formats",{ref:t.formats,code:b.code.formats}),I=p.const("fDef",(0,o._)`${D}[${x}]`),L=p.let("fType"),A=p.let("format");p.if((0,o._)`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>p.assign(L,(0,o._)`${I}.type || "string"`).assign(A,(0,o._)`${I}.validate`),()=>p.assign(L,(0,o._)`"string"`).assign(A,I)),O.fail$data((0,o.or)(R(),j()));function R(){return b.strictSchema===!1?o.nil:(0,o._)`${x} && !${A}`}function j(){const $=S.$async?(0,o._)`(${I}.async ? await ${A}(${c}) : ${A}(${c}))`:(0,o._)`${A}(${c})`,T=(0,o._)`(typeof ${A} == "function" ? ${$} : ${A}.test(${c}))`;return(0,o._)`${A} && ${A} !== true && ${L} === ${d} && !${T}`}}function l(){const D=t.formats[g];if(!D){R();return}if(D===!0)return;const[I,L,A]=j(D);I===d&&O.pass($());function R(){if(b.strictSchema===!1){t.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${g}" ignored in schema at path "${P}"`}}function j(T){const G=T instanceof RegExp?(0,o.regexpCode)(T):b.code.formats?(0,o._)`${b.code.formats}${(0,o.getProperty)(g)}`:void 0,_=p.scopeValue("formats",{key:g,ref:T,code:G});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,o._)`${_}.validate`]:["string",T,_]}function $(){if(typeof D=="object"&&!(D instanceof RegExp)&&D.async){if(!S.$async)throw new Error("async format in sync schema");return(0,o._)`await ${A}(${c})`}return typeof L=="function"?(0,o._)`${A}(${c})`:(0,o._)`${A}.test(${c})`}}}};n.default=f},650:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const h=[e(65531).default];n.default=h},11339:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.contentVocabulary=n.metadataVocabulary=void 0,n.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],n.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},42547:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(1664),h=e(82463),f=e(71472),O=[o.default,h.default,f.default];n.default=O},42759:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(72522),h=e(78511),f=[o.default,h.default];n.default=f},78511:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),O={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:d}})=>(0,o.str)`must NOT have more than ${d} items`,params:({params:{len:d}})=>(0,o._)`{limit: ${d}}`},code(d){const{gen:p,schema:c,data:v,it:g}=d,x=g.items||0;if(x===!0)return;const y=p.const("len",(0,o._)`${v}.length`);if(c===!1)d.setParams({len:x}),d.fail((0,o._)`${y} > ${x}`);else if(typeof c=="object"&&!(0,h.alwaysValidSchema)(g,c)){const P=p.var("valid",(0,o._)`${y} <= ${x}`);p.if((0,o.not)(P),()=>b(P,x)),d.ok(P)}g.items=!0;function b(P,S){p.forRange("i",S,y,t=>{d.subschema({keyword:"unevaluatedItems",dataProp:t,dataPropType:h.Type.Num},P),g.allErrors||p.if((0,o.not)(P),()=>p.break())})}}};n.default=O},72522:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),f=e(5057),d={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:p})=>(0,o._)`{unevaluatedProperty: ${p.unevaluatedProperty}}`},code(p){const{gen:c,schema:v=p.it.opts.defaultUnevaluatedProperties,data:g,errsCount:x,it:y}=p,b=p.schema===void 0&&p.it.opts.defaultUnevaluatedProperties===!1;if(!x)throw new Error("ajv implementation error");const{allErrors:P,props:S}=y;if(S instanceof o.Name)c.if((0,o._)`${S} !== true`,()=>c.forIn("key",g,D=>c.if(a(S,D),()=>t(D))));else if(S!==!0){const D=()=>c.forIn("key",g,I=>S===void 0?t(I):c.if(l(S,I),()=>t(I)));b&&y.errorPath.emptyStr()?c.if((0,o._)`${f.default.isAllOfVariant} === 0`,D):D()}b||(y.props=!0),p.ok((0,o._)`${x} === ${f.default.errors}`);function t(D){if(v===!1){p.setParams({unevaluatedProperty:D}),p.error(),P||c.break();return}if(!(0,h.alwaysValidSchema)(y,v)){const I=c.name("valid");p.subschema({keyword:"unevaluatedProperties",dataProp:D,dataPropType:h.Type.Str},I),P||c.if((0,o.not)(I),()=>c.break())}}function a(D,I){return(0,o._)`!${D} || !${D}[${I}]`}function l(D,I){const L=[];for(const A in D)D[A]===!0&&L.push((0,o._)`${I} !== ${A}`);return(0,o.and)(...L)}}};n.default=d},53033:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),f=e(81508),d={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:p})=>(0,o._)`{allowedValue: ${p}}`},code(p){const{gen:c,data:v,$data:g,schemaCode:x,schema:y}=p;g||y&&typeof y=="object"?p.fail$data((0,o._)`!${(0,h.useFunc)(c,f.default)}(${v}, ${x})`):p.fail((0,o._)`${y} !== ${v}`)}};n.default=d},1664:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(7879),h={keyword:"dependentRequired",type:"object",schemaType:"object",error:o.error,code:f=>(0,o.validatePropertyDeps)(f)};n.default=h},47709:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),f=e(81508),d={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:p})=>(0,o._)`{allowedValues: ${p}}`},code(p){const{gen:c,data:v,$data:g,schema:x,schemaCode:y,it:b}=p;if(!g&&x.length===0)throw new Error("enum must have non-empty array");const P=x.length>=b.opts.loopEnum;let S;const t=()=>S??(S=(0,h.useFunc)(c,f.default));let a;if(P||g)a=c.let("valid"),p.block$data(a,l);else{if(!Array.isArray(x))throw new Error("ajv implementation error");const I=c.const("vSchema",y);a=(0,o.or)(...x.map((L,A)=>D(I,A)))}p.pass(a);function l(){c.assign(a,!1),c.forOf("v",y,I=>c.if((0,o._)`${t()}(${v}, ${I})`,()=>c.assign(a,!0).break()))}function D(I,L){const A=x[L];return typeof A=="object"&&A!==null?(0,o._)`${t()}(${v}, ${I}[${L}])`:(0,o._)`${v} === ${A}`}}};n.default=d},3602:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(34656),h=e(68485),f=e(96773),O=e(80904),d=e(48064),p=e(70489),c=e(20269),v=e(17883),g=e(53033),x=e(47709),y=[o.default,h.default,f.default,O.default,d.default,p.default,c.default,v.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},g.default,x.default];n.default=y},71472:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(977),h={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:f,parentSchema:O,it:d}){O.contains===void 0&&(0,o.checkStrictMode)(d,`"${f}" without "contains" is ignored`)}};n.default=h},20269:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),f={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:O,schemaCode:d}){const p=O==="maxItems"?"more":"fewer";return(0,o.str)`must NOT have ${p} than ${d} items`},params:({schemaCode:O})=>(0,o._)`{limit: ${O}}`},code(O){const{keyword:d,data:p,schemaCode:c}=O,v=d==="maxItems"?o.operators.GT:o.operators.LT;O.fail$data((0,o._)`${p}.length ${v} ${c}`)}};n.default=f},96773:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),f=e(11471),d={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:p,schemaCode:c}){const v=p==="maxLength"?"more":"fewer";return(0,o.str)`must NOT have ${v} than ${c} characters`},params:({schemaCode:p})=>(0,o._)`{limit: ${p}}`},code(p){const{keyword:c,data:v,schemaCode:g,it:x}=p,y=c==="maxLength"?o.operators.GT:o.operators.LT,b=x.opts.unicode===!1?(0,o._)`${v}.length`:(0,o._)`${(0,h.useFunc)(p.gen,f.default)}(${v})`;p.fail$data((0,o._)`${b} ${y} ${g}`)}};n.default=d},34656:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=o.operators,f={maximum:{okStr:"<=",ok:h.LTE,fail:h.GT},minimum:{okStr:">=",ok:h.GTE,fail:h.LT},exclusiveMaximum:{okStr:"<",ok:h.LT,fail:h.GTE},exclusiveMinimum:{okStr:">",ok:h.GT,fail:h.LTE}},O={message:({keyword:p,schemaCode:c})=>(0,o.str)`must be ${f[p].okStr} ${c}`,params:({keyword:p,schemaCode:c})=>(0,o._)`{comparison: ${f[p].okStr}, limit: ${c}}`},d={keyword:Object.keys(f),type:"number",schemaType:"number",$data:!0,error:O,code(p){const{keyword:c,data:v,schemaCode:g}=p;p.fail$data((0,o._)`${v} ${f[c].fail} ${g} || isNaN(${v})`)}};n.default=d},48064:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),f={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:O,schemaCode:d}){const p=O==="maxProperties"?"more":"fewer";return(0,o.str)`must NOT have ${p} than ${d} properties`},params:({schemaCode:O})=>(0,o._)`{limit: ${O}}`},code(O){const{keyword:d,data:p,schemaCode:c}=O,v=d==="maxProperties"?o.operators.GT:o.operators.LT;O.fail$data((0,o._)`Object.keys(${p}).length ${v} ${c}`)}};n.default=f},68485:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),f={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:O})=>(0,o.str)`must be multiple of ${O}`,params:({schemaCode:O})=>(0,o._)`{multipleOf: ${O}}`},code(O){const{gen:d,data:p,schemaCode:c,it:v}=O,g=v.opts.multipleOfPrecision,x=d.let("res"),y=g?(0,o._)`Math.abs(Math.round(${x}) - ${x}) > 1e-${g}`:(0,o._)`${x} !== parseInt(${x})`;O.fail$data((0,o._)`(${c} === 0 || (${x} = ${p}/${c}, ${y}))`)}};n.default=f},80904:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(55223),h=e(57287),O={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:d})=>(0,h.str)`must match pattern "${d}"`,params:({schemaCode:d})=>(0,h._)`{pattern: ${d}}`},code(d){const{data:p,$data:c,schema:v,schemaCode:g,it:x}=d,y=x.opts.unicodeRegExp?"u":"",b=c?(0,h._)`(new RegExp(${g}, ${y}))`:(0,o.usePattern)(d,v);d.fail$data((0,h._)`!${b}.test(${p})`)}};n.default=O},70489:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(55223),h=e(57287),f=e(977),d={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:p}})=>(0,h.str)`must have required property '${p}'`,params:({params:{missingProperty:p}})=>(0,h._)`{missingProperty: ${p}}`},code(p){const{gen:c,schema:v,schemaCode:g,data:x,$data:y,it:b}=p,{opts:P}=b;if(!y&&v.length===0)return;const S=v.length>=P.loopRequired;if(b.allErrors?t():a(),P.strictRequired){const I=p.parentSchema.properties,{definedProperties:L}=p.it;for(const A of v)if(I?.[A]===void 0&&!L.has(A)){const R=b.schemaEnv.baseId+b.errSchemaPath,j=`required property "${A}" is not defined at "${R}" (strictRequired)`;(0,f.checkStrictMode)(b,j,b.opts.strictRequired)}}function t(){if(S||y)p.block$data(h.nil,l);else for(const I of v)(0,o.checkReportMissingProp)(p,I)}function a(){const I=c.let("missing");if(S||y){const L=c.let("valid",!0);p.block$data(L,()=>D(I,L)),p.ok(L)}else c.if((0,o.checkMissingProp)(p,v,I)),(0,o.reportMissingProp)(p,I),c.else()}function l(){c.forOf("prop",g,I=>{p.setParams({missingProperty:I}),c.if((0,o.noPropertyInData)(c,x,I,P.ownProperties),()=>p.error())})}function D(I,L){p.setParams({missingProperty:I}),c.forOf(I,g,()=>{c.assign(L,(0,o.propertyInData)(c,x,I,P.ownProperties)),c.if((0,h.not)(L),()=>{p.error(),c.break()})},h.nil)}}};n.default=d},17883:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(41434),h=e(57287),f=e(977),O=e(81508),p={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:c,j:v}})=>(0,h.str)`must NOT have duplicate items (items ## ${v} and ${c} are identical)`,params:({params:{i:c,j:v}})=>(0,h._)`{i: ${c}, j: ${v}}`},code(c){const{gen:v,data:g,$data:x,schema:y,parentSchema:b,schemaCode:P,it:S}=c;if(!x&&!y)return;const t=v.let("valid"),a=b.items?(0,o.getSchemaTypes)(b.items):[];c.block$data(t,l,(0,h._)`${P} === false`),c.ok(t);function l(){const A=v.let("i",(0,h._)`${g}.length`),R=v.let("j");c.setParams({i:A,j:R}),v.assign(t,!0),v.if((0,h._)`${A} > 1`,()=>(D()?I:L)(A,R))}function D(){return a.length>0&&!a.some(A=>A==="object"||A==="array")}function I(A,R){const j=v.name("item"),$=(0,o.checkDataTypes)(a,j,S.opts.strictNumbers,o.DataType.Wrong),T=v.const("indices",(0,h._)`{}`);v.for((0,h._)`;${A}--;`,()=>{v.let(j,(0,h._)`${g}[${A}]`),v.if($,(0,h._)`continue`),a.length>1&&v.if((0,h._)`typeof ${j} == "string"`,(0,h._)`${j} += "_"`),v.if((0,h._)`typeof ${T}[${j}] == "number"`,()=>{v.assign(R,(0,h._)`${T}[${j}]`),c.error(),v.assign(t,!1).break()}).code((0,h._)`${T}[${j}] = ${A}`)})}function L(A,R){const j=(0,f.useFunc)(v,O.default),$=v.name("outer");v.label($).for((0,h._)`;${A}--;`,()=>v.for((0,h._)`${R} = ${A}; ${R}--;`,()=>v.if((0,h._)`${j}(${g}[${A}], ${g}[${R}])`,()=>{c.error(),v.assign(t,!1).break($)})))}}};n.default=p},56058:(E,n,e)=>{"use strict";e.r(n),e.d(n,{ApigeeDevOnboardingIntegrationAuthType:()=>bt,AuthProviderType:()=>kt,DEFAULT_TEAM_CLAIM_NAME:()=>Lt,LayoutVariant:()=>vn,REDOCLY_ROUTE_RBAC:()=>On,REDOCLY_TEAMS_RBAC:()=>St,productConfigOverrideSchema:()=>zn,productThemeOverrideSchema:()=>gr,rbacConfigSchema:()=>ft,redocConfigSchema:()=>y,rootRedoclyConfigSchema:()=>Ut});const o={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},h={type:"object",properties:o,additionalProperties:!1},f={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},O={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},o),{like:h,dislike:h,satisfied:h,neutral:h,dissatisfied:h}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:f},additionalProperties:!1}},additionalProperties:!1},d={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},v={type:"object",properties:{hidePaginationButtons:{type:"boolean"},menu:{type:"object",properties:Object.assign({},{type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:{type:"object",properties:{name:{type:"string"},items:d,queries:d,mutations:d,subscriptions:d,types:d,directives:d},required:["name"],additionalProperties:!1}},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1}.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},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"},feedback:O},additionalProperties:!1},y={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:O,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:{type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},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:{type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",enum:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},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"}},required:["languages"],additionalProperties:!1},ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1},b={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},P={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"}}},S={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},t={type:"object",properties:{beforeInfo:{type:"array",items:S},end:{type:"array",items:S}}},a={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},l={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},D={type:"object",properties:ke(a.properties,["light","dark"])},I={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"}}},L={type:"object",properties:{error:l,info:l,redirect:l,success:l}},A={type:"object",properties:Be(a.properties,["dark"])},j={type:"object",properties:{accent:a,border:D,error:a,http:I,primary:a,responses:L,secondary:A,success:a,text:{type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},tonalOffset:{type:"number"},warning:a}},$={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},T={type:"object",properties:{small:$,medium:$,large:$,xlarge:$}},G={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},_={type:"object",properties:Object.assign(Object.assign({},Be(G.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:T})},X={type:"object",properties:ke(G.properties,["fontSize","lineHeight"])},q={type:"object",properties:{medium:X,small:X}},F={type:"object",properties:Object.assign(Object.assign({},Be(G.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:q})},ue={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Pe={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},le={type:"object",properties:{fullWidth:{type:"boolean"}}},De={type:"object",properties:{buttons:_,httpBadges:F,layoutControls:ue,panels:Pe,tryItButton:le,tryItSendButton:le}},fe={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},V={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:{type:"object",properties:{maxWidth:fe}},"three-panel":{type:"object",properties:{maxWidth:fe,middlePanelMaxWidth:fe}}}},W={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Q={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:W,defaultDetailsWidth:{type:"string"},examples:W,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},te={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},ye={type:"object",properties:ke(te.properties,["textTransform"])},he={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Le={type:"object",properties:Object.assign(Object.assign({},Be(G.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:te,level1items:ye,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:he,textColor:{type:"string"},width:{type:"string"}})},We={type:"object",properties:Object.assign(Object.assign({},G.properties),{color:{type:"string"},transform:{type:"string"}})},Ie={type:"object",properties:Object.assign(Object.assign({},G.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"}})},xe={type:"object",properties:Be(G.properties,["fontSize"])},Ae={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},B={type:"object",properties:Object.assign(Object.assign({code:Ie,fieldName:G},ke(G.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:We,heading2:We,heading3:We,headings:xe,lineHeight:{type:"string"},links:Ae,optimizeSpeed:{type:"boolean"},rightPanelHeading:We,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},U={type:"object",properties:Object.assign({color:{type:"string"}},Be(G.properties,["fontWeight"]))},Me={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:U}},He={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},pe={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},ce={type:"object",properties:{custom:{type:"string"}}},Te={type:"object",properties:{theme:{type:"object",properties:{breakpoints:fe,codeBlock:Me,colors:j,components:De,layout:V,logo:He,fab:pe,overrides:{type:"object",properties:{DownloadButton:ce,NextSectionButton:ce}},rightPanel:{type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},schema:Q,shape:{type:"object",properties:{borderRadius:{type:"string"}}},sidebar:Le,spacing:{type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},typography:B,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},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:{type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:b}},required:["languages"]},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:P,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requestInterceptor:{type:"object"},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:t,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"}},additionalProperties:!1};function ke(mr,hr){return Object.fromEntries(hr.filter(or=>or in mr).map(or=>[or,mr[or]]))}function Be(mr,hr){return Object.fromEntries(Object.entries(mr).filter(([or])=>!hr.includes(or)))}const ne={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Y={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},ee={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},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"],default:"top"},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}}}},we={type:"array",items:Object.assign(Object.assign({},ee),{properties:Object.assign(Object.assign({},ee.properties),{items:{type:"array",items:ee}})})},Ze={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},nt={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Fe={type:"object",properties:Object.assign({facets:{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}}},ne.properties),additionalProperties:!1},_e={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Pt={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ke={type:"object",properties:Object.assign({items:we},ne.properties),additionalProperties:!1},qe={type:"object",additionalProperties:Ze},mt={type:"object",properties:Object.assign({items:we,copyrightText:{type:"string"},logo:ne},ne.properties),additionalProperties:!1},Tt={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},ne.properties),additionalProperties:!1},Nt={type:"object",properties:{head:{type:"array",items:Y},body:{type:"array",items:Y}},additionalProperties:!1},Jt={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}},qt={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:nt,filters:Fe,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["/"]},suggestedPages:{type:"array",items:_e}},ne.properties),additionalProperties:!1},fn={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},ne.properties),additionalProperties:!1},xn={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Next page"}},ne.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Previous page"}},ne.properties),additionalProperties:!1,default:{}}},additionalProperties:!1},tn={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},ne.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},ne.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},ne.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},ne.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},fr={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},ne.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},ne.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},ne.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},pr=Object.assign(Object.assign({},y),{properties:Object.assign(Object.assign({},y.properties),Te.properties)}),wr={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Zr={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"]},no={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Wo={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Bo={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"]},Tn={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},cr={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Pr={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"]},ur={type:"object",properties:{adobe:wr,amplitude:Zr,fullstory:no,heap:Wo,rudderstack:Bo,segment:Tn,gtm:cr,ga:{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:Pr}},additionalProperties:!1,required:["trackingId"]}}},qo={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},ne.properties),additionalProperties:!1},wo={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Ao={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},Fo={type:"object",patternProperties:{".*":{type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:{type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},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"}}}}},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:we,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}}}},li={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:{type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}}},additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}}}},Lr={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Pt,navbar:Ke,products:qe,footer:mt,sidebar:Tt,scripts:Nt,links:Jt,feedback:O,search:qt,colorMode:fn,navigation:xn,codeSnippet:tn,markdown:fr,openapi:pr,graphql:v,analytics:ur,userMenu:qo,versionPicker:wo,breadcrumbs:Ao,catalog:Fo,scorecard:li},additionalProperties:!0},Qo=Object.assign(Object.assign({},Lr),{additionalProperties:!1}),Lt="https://redocly.com/sso/teams";var kt;(function(mr){mr.OIDC="OIDC",mr.SAML2="SAML2"})(kt||(kt={}));var bt;(function(mr){mr.SERVICE_ACCOUNT="SERVICE_ACCOUNT",mr.OAUTH2="OAUTH2"})(bt||(bt={}));const St="redocly::teams-rbac",On="redocly::route-rbac";var vn;(function(mr){mr.STACKED="stacked",mr.THREE_PANEL="three-panel"})(vn||(vn={}));function Jn(mr,hr){return Object.fromEntries(Object.entries(mr).map(([or,Fn])=>{if(or!==hr)return typeof Fn!="object"||!Fn?[or,Fn]:Array.isArray(Fn)?[or,Fn.map(ro=>typeof ro=="object"?Jn(ro,hr):ro)]:[or,Jn(Fn,hr)]}).filter(Boolean))}const Ir={type:"object",additionalProperties:{type:"string"}},go={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},kr={type:"string",enum:["error","warn","off"]},eo={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{type:"object",additionalProperties:!1,properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",pattern:"^[1-9]\\d*[mhdw]$"}},required:["event"]},inputs:Ir,servers:go,severity:{type:"object",additionalProperties:!1,properties:{schemaCheck:kr,statusCodeCheck:kr,contentTypeCheck:kr,successCriteriaCheck:kr}}},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Do={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},No={type:"object",properties:{type:{type:"string",const:kt.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:Do,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},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"}},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},Ve={type:"object",properties:{type:{type:"string",const:kt.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:Lt},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},yt={type:"object",additionalProperties:{oneOf:[No,Ve],discriminator:{propertyName:"type"}}},Ot={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},rn={type:"object",additionalProperties:{type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},default:{}},Gt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},Bn={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:pr,graphql:v,theme:{type:"object",properties:{openapi:pr,graphql:v},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},rules:Gt,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0}},required:["root"]},Ln={type:"object",additionalProperties:!0},Xn={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},$n={type:"object",properties:{title:{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}}},additionalProperties:!1},Je={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},et={type:"object",additionalProperties:{type:"string"}},ft={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:et,cms:et,reunite:et,features:{type:"object",properties:{aiSearch:et},additionalProperties:!1},content:{type:"object",properties:{"**":et},additionalProperties:et}},additionalProperties:et},Ht={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[{type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},{type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]}]}},additionalProperties:!1,required:["type","apiBaseUrl"]},$t={type:"object",properties:{type:{type:"string",const:bt.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},un={type:"object",properties:{type:{type:"string",const:bt.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},hn={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[$t,un],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},bn=Object.assign(Object.assign({},hn),{properties:Object.assign(Object.assign({},hn.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),Rt={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:{type:"object",oneOf:[hn,bn,Ht],discriminator:{propertyName:"type"}}}}},Vt={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"]},In={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:rn,seo:$n,rbac:ft,apiFunctions:Je,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]}}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:Bn},rules:Gt,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0},ssoDirect:yt,sso:Ot,residency:{type:"string"},developerOnboarding:Rt,removeAttribution:{type:"boolean"},i18n:Vt,l10n:Vt,metadata:Ln,metadataGlobs:Xn,ignore:{type:"array",items:{type:"string"}},theme:Lr,reunite:eo,logo:Pt,navbar:Ke,products:qe,footer:mt,sidebar:Tt,scripts:Nt,links:Jt,feedback:O,search:qt,colorMode:fn,navigation:xn,codeSnippet:tn,markdown:fr,openapi:pr,graphql:v,analytics:ur,userMenu:qo,versionPicker:wo,breadcrumbs:Ao,catalog:Fo,scorecard:li},default:{redirects:{}},additionalProperties:!0},Qn=Object.assign(Object.assign({},Jn(In,"default")),{additionalProperties:!1}),Ut=Object.assign(Object.assign({$id:"root-redocly-config"},In),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},In.properties),{env:{type:"object",additionalProperties:Qn}}),default:{},additionalProperties:!1}),gr={type:"object",properties:{logo:Lr.properties.logo,navbar:Lr.properties.navbar,footer:Lr.properties.footer,sidebar:Lr.properties.sidebar,search:Lr.properties.search,codeSnippet:Lr.properties.codeSnippet,breadcrumbs:Lr.properties.breadcrumbs,openapi:Lr.properties.openapi,feedback:Lr.properties.feedback,analytics:{type:"object",properties:{ga:Pr}}},additionalProperties:!0,default:{}},zn={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},gr.properties),{apis:{type:"object",additionalProperties:Bn},theme:gr}),additionalProperties:!1}},55674:(E,n,e)=>{"use strict";var o;o={value:!0},o=void 0,o=a,n.l2=l,o=D,o=I,o=L;const h=e(67804),f=e(15333),O=e(41386),d=e(28339),p=e(97089),c=e(53781),v=e(22608),g=e(92692),x=e(3069),y=e(17604),b=e(75261),P=e(22152),S=e(22074);var t;(function(j){j.Version2="oas2",j.Version3_0="oas3_0",j.Version3_1="oas3_1"})(t||(o=t={}));async function a(j,$){const T=(0,O.normalizeTypes)(S.ConfigTypes),G={problems:[],oasVersion:p.SpecVersion.OAS3_0,refTypes:new Map,visitorsData:{}},_=(0,f.normalizeVisitors)([{severity:"error",ruleId:"configBundler",visitor:{ref:{leave(X,q,F){A(X,F,q)}}}}],T);return(0,d.walkDocument)({document:j,rootType:T.ConfigRoot,normalizedVisitors:_,resolvedRefMap:$,ctx:G}),j.parsed??{}}async function l(j){const{ref:$,doc:T,externalRefResolver:G=new h.BaseResolver(j.config.resolve),base:_=null}=j;if(!($||T))throw new Error(`Document or reference is required.
|
|
13
|
+
deps: ${x}}`};const O={keyword:"dependencies",type:"object",schemaType:"object",error:n.error,code(v){const[g,x]=d(v);p(v,g),c(v,x)}};function d({schema:v}){const g={},x={};for(const y in v){if(y==="__proto__")continue;const b=Array.isArray(v[y])?g:x;b[y]=v[y]}return[g,x]}function p(v,g=v.schema){const{gen:x,data:y,it:b}=v;if(Object.keys(g).length===0)return;const P=x.let("missing");for(const S in g){const t=g[S];if(t.length===0)continue;const a=(0,f.propertyInData)(x,y,S,b.opts.ownProperties);v.setParams({property:S,depsCount:t.length,deps:t.join(", ")}),b.allErrors?x.if(a,()=>{for(const l of t)(0,f.checkReportMissingProp)(v,l)}):(x.if((0,o._)`${a} && (${(0,f.checkMissingProp)(v,t,P)})`),(0,f.reportMissingProp)(v,P),x.else())}}function c(v,g=v.schema){const{gen:x,data:y,keyword:b,it:P}=v,S=x.name("valid");for(const t in g)(0,h.alwaysValidSchema)(P,g[t])||(x.if((0,f.propertyInData)(x,y,t,P.opts.ownProperties),()=>{const a=v.subschema({keyword:b,schemaProp:t},S);v.mergeValidEvaluated(a,S)},()=>x.var(S,!0)),v.ok(S))}n.default=O},82463:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(7879),h={keyword:"dependentSchemas",type:"object",schemaType:"object",code:f=>(0,o.validateSchemaDeps)(f)};n.default=h},14785:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),O={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:p})=>(0,o.str)`must match "${p.ifClause}" schema`,params:({params:p})=>(0,o._)`{failingKeyword: ${p.ifClause}}`},code(p){const{gen:c,parentSchema:v,it:g}=p;v.then===void 0&&v.else===void 0&&(0,h.checkStrictMode)(g,'"if" without "then" and "else" is ignored');const x=d(g,"then"),y=d(g,"else");if(!x&&!y)return;const b=c.let("valid",!0),P=c.name("_valid");if(S(),p.reset(),x&&y){const a=c.let("ifClause");p.setParams({ifClause:a}),c.if(P,t("then",a),t("else",a))}else x?c.if(P,t("then")):c.if((0,o.not)(P),t("else"));p.pass(b,()=>p.error(!0));function S(){const a=p.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},P);p.mergeEvaluated(a)}function t(a,l){return()=>{const D=p.subschema({keyword:a},P);c.assign(b,P),p.mergeValidEvaluated(D,b),l?c.assign(l,(0,o._)`${a}`):p.setParams({ifClause:a})}}}};function d(p,c){const v=p.schema[c];return v!==void 0&&!(0,h.alwaysValidSchema)(p,v)}n.default=O},32776:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=l;const o=e(30311),h=e(44448),f=e(23972),O=e(4740),d=e(97967),p=e(7879),c=e(92951),v=e(89842),g=e(58283),x=e(51807),y=e(9397),b=e(32247),P=e(7133),S=e(64118),t=e(14785),a=e(54896);function l(D=!1){const I=[y.default,b.default,P.default,S.default,t.default,a.default,c.default,v.default,p.default,g.default,x.default];return D?I.push(h.default,O.default):I.push(o.default,f.default),I.push(d.default),I}},23972:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.validateTuple=d;const o=e(57287),h=e(977),f=e(55223),O={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(p){const{schema:c,it:v}=p;if(Array.isArray(c))return d(p,"additionalItems",c);v.items=!0,!(0,h.alwaysValidSchema)(v,c)&&p.ok((0,f.validateArray)(p))}};function d(p,c,v=p.schema){const{gen:g,parentSchema:x,data:y,keyword:b,it:P}=p;a(x),P.opts.unevaluated&&v.length&&P.items!==!0&&(P.items=h.mergeEvaluated.items(g,v.length,P.items));const S=g.name("valid"),t=g.const("len",(0,o._)`${y}.length`);v.forEach((l,D)=>{(0,h.alwaysValidSchema)(P,l)||(g.if((0,o._)`${t} > ${D}`,()=>p.subschema({keyword:b,schemaProp:D,dataProp:D},S)),p.ok(S))});function a(l){const{opts:D,errSchemaPath:I}=P,L=v.length,A=L===l.minItems&&(L===l.maxItems||l[c]===!1);if(D.strictTuples&&!A){const R=`"${b}" is ${L}-tuple, but minItems or maxItems/${c} are not specified or different at path "${I}"`;(0,h.checkStrictMode)(P,R,D.strictTuples)}}}n.default=O},4740:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),f=e(55223),O=e(30311),p={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:c}})=>(0,o.str)`must NOT have more than ${c} items`,params:({params:{len:c}})=>(0,o._)`{limit: ${c}}`},code(c){const{schema:v,parentSchema:g,it:x}=c,{prefixItems:y}=g;x.items=!0,!(0,h.alwaysValidSchema)(x,v)&&(y?(0,O.validateAdditionalItems)(c,y):c.ok((0,f.validateArray)(c)))}};n.default=p},9397:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(977),h={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(f){const{gen:O,schema:d,it:p}=f;if((0,o.alwaysValidSchema)(p,d)){f.fail();return}const c=O.name("valid");f.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},c),f.failResult(c,()=>f.reset(),()=>f.error())},error:{message:"must NOT be valid"}};n.default=h},7133:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),O={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:d})=>(0,o._)`{passingSchemas: ${d.passing}}`},code(d){const{gen:p,schema:c,parentSchema:v,it:g}=d;if(!Array.isArray(c))throw new Error("ajv implementation error");if(g.opts.discriminator&&v.discriminator)return;const x=c,y=p.let("valid",!1),b=p.let("passing",null),P=p.name("_valid");d.setParams({passing:b}),p.block(S),d.result(y,()=>d.reset(),()=>d.error(!0));function S(){x.forEach((t,a)=>{let l;(0,h.alwaysValidSchema)(g,t)?p.var(P,!0):l=d.subschema({keyword:"oneOf",schemaProp:a,compositeRule:!0},P),a>0&&p.if((0,o._)`${P} && ${y}`).assign(y,!1).assign(b,(0,o._)`[${b}, ${a}]`).else(),p.if(P,()=>{p.assign(y,!0),p.assign(b,a),l&&d.mergeEvaluated(l,o.Name)})})}}};n.default=O},51807:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(55223),h=e(57287),f=e(977),O=e(977),d={keyword:"patternProperties",type:"object",schemaType:"object",code(p){const{gen:c,schema:v,data:g,parentSchema:x,it:y}=p,{opts:b}=y,P=(0,o.allSchemaProperties)(v),S=P.filter(A=>(0,f.alwaysValidSchema)(y,v[A]));if(P.length===0||S.length===P.length&&(!y.opts.unevaluated||y.props===!0))return;const t=b.strictSchema&&!b.allowMatchingProperties&&x.properties,a=c.name("valid");y.props!==!0&&!(y.props instanceof h.Name)&&(y.props=(0,O.evaluatedPropsToName)(c,y.props));const{props:l}=y;D();function D(){for(const A of P)t&&I(A),y.allErrors?L(A):(c.var(a,!0),L(A),c.if(a))}function I(A){for(const R in t)new RegExp(A).test(R)&&(0,f.checkStrictMode)(y,`property ${R} matches pattern ${A} (use allowMatchingProperties)`)}function L(A){c.forIn("key",g,R=>{c.if((0,h._)`${(0,o.usePattern)(p,A)}.test(${R})`,()=>{const j=S.includes(A);j||p.subschema({keyword:"patternProperties",schemaProp:A,dataProp:R,dataPropType:O.Type.Str},a),y.opts.unevaluated&&l!==!0?c.assign((0,h._)`${l}[${R}]`,!0):!j&&!y.allErrors&&c.if((0,h.not)(a),()=>c.break())})})}}};n.default=d},44448:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(23972),h={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:f=>(0,o.validateTuple)(f,"items")};n.default=h},58283:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(9804),h=e(55223),f=e(977),O=e(89842),d={keyword:"properties",type:"object",schemaType:"object",code(p){const{gen:c,schema:v,parentSchema:g,data:x,it:y}=p;(y.opts.removeAdditional==="all"&&g.additionalProperties===void 0||y.opts.defaultAdditionalProperties===!1)&&O.default.code(new o.KeywordCxt(y,O.default,"additionalProperties"));const b=(0,h.allSchemaProperties)(v);for(const l of b)y.definedProperties.add(l);y.opts.unevaluated&&b.length&&y.props!==!0&&(y.props=f.mergeEvaluated.props(c,(0,f.toHash)(b),y.props));const P=b.filter(l=>!(0,f.alwaysValidSchema)(y,v[l]));if(P.length===0)return;const S=c.name("valid");for(const l of P)t(l)?a(l):(c.if((0,h.propertyInData)(c,x,l,y.opts.ownProperties)),a(l),y.allErrors||c.else().var(S,!0),c.endIf()),p.it.definedProperties.add(l),p.ok(S);function t(l){return y.opts.useDefaults&&!y.compositeRule&&v[l].default!==void 0}function a(l){p.subschema({keyword:"properties",schemaProp:l,dataProp:l},S)}}};n.default=d},92951:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),O={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:d})=>(0,o._)`{propertyName: ${d.propertyName}}`},code(d){const{gen:p,schema:c,data:v,it:g}=d;if((0,h.alwaysValidSchema)(g,c))return;const x=p.name("valid");p.forIn("key",v,y=>{d.setParams({propertyName:y}),d.subschema({keyword:"propertyNames",data:y,dataTypes:["string"],propertyName:y,compositeRule:!0},x),p.if((0,o.not)(x),()=>{d.error(!0),g.allErrors||p.break()})}),d.ok(x)}};n.default=O},54896:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(977),h={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:f,parentSchema:O,it:d}){O.if===void 0&&(0,o.checkStrictMode)(d,`"${f}" without "if" is ignored`)}};n.default=h},55223:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkReportMissingProp=d,n.checkMissingProp=p,n.reportMissingProp=c,n.hasPropFunc=v,n.isOwnProperty=g,n.propertyInData=x,n.noPropertyInData=y,n.allSchemaProperties=b,n.schemaProperties=P,n.callValidateCode=S,n.usePattern=a,n.validateArray=l,n.validateUnion=D;const o=e(57287),h=e(977),f=e(5057),O=e(977);function d(I,L){const{gen:A,data:R,it:j}=I;A.if(y(A,R,L,j.opts.ownProperties),()=>{I.setParams({missingProperty:(0,o._)`${L}`},!0),I.error()})}function p({gen:I,data:L,it:{opts:A}},R,j){return(0,o.or)(...R.map($=>(0,o.and)(y(I,L,$,A.ownProperties),(0,o._)`${j} = ${$}`)))}function c(I,L){I.setParams({missingProperty:L},!0),I.error()}function v(I){return I.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,o._)`Object.prototype.hasOwnProperty`})}function g(I,L,A){return(0,o._)`${v(I)}.call(${L}, ${A})`}function x(I,L,A,R){const j=(0,o._)`${L}${(0,o.getProperty)(A)} !== undefined`;return R?(0,o._)`${j} && ${g(I,L,A)}`:j}function y(I,L,A,R){const j=(0,o._)`${L}${(0,o.getProperty)(A)} === undefined`;return R?(0,o.or)(j,(0,o.not)(g(I,L,A))):j}function b(I){return I?Object.keys(I).filter(L=>L!=="__proto__"):[]}function P(I,L){return b(L).filter(A=>!(0,h.alwaysValidSchema)(I,L[A]))}function S({schemaCode:I,data:L,it:{gen:A,topSchemaRef:R,schemaPath:j,errorPath:$},it:T},G,_,X){const q=X?(0,o._)`${I}, ${L}, ${R}${j}`:L,F=[[f.default.instancePath,(0,o.strConcat)(f.default.instancePath,$)],[f.default.parentData,T.parentData],[f.default.parentDataProperty,T.parentDataProperty],[f.default.rootData,f.default.rootData],[f.default.isAllOfVariant,T.isAllOfVariant?1:0]];T.opts.dynamicRef&&F.push([f.default.dynamicAnchors,f.default.dynamicAnchors]);const ue=(0,o._)`${q}, ${A.object(...F)}`;return _!==o.nil?(0,o._)`${G}.call(${_}, ${ue})`:(0,o._)`${G}(${ue})`}const t=(0,o._)`new RegExp`;function a({gen:I,it:{opts:L}},A){const R=L.unicodeRegExp?"u":"",{regExp:j}=L.code,$=j(A,R);return I.scopeValue("pattern",{key:$.toString(),ref:$,code:(0,o._)`${j.code==="new RegExp"?t:(0,O.useFunc)(I,j)}(${A}, ${R})`})}function l(I){const{gen:L,data:A,keyword:R,it:j}=I,$=L.name("valid");if(j.allErrors){const G=L.let("valid",!0);return T(()=>L.assign(G,!1)),G}return L.var($,!0),T(()=>L.break()),$;function T(G){const _=L.const("len",(0,o._)`${A}.length`);L.forRange("i",0,_,X=>{I.subschema({keyword:R,dataProp:X,dataPropType:h.Type.Num},$),L.if((0,o.not)($),G)})}}function D(I){const{gen:L,schema:A,keyword:R,parentSchema:j,it:$}=I;if(!Array.isArray(A))throw new Error("ajv implementation error");if($.opts.discriminator&&j.discriminator||A.some(X=>(0,h.alwaysValidSchema)($,X))&&!$.opts.unevaluated)return;const G=L.let("valid",!1),_=L.name("_valid");L.block(()=>A.forEach((X,q)=>{const F=I.subschema({keyword:R,schemaProp:q,compositeRule:!0},_);L.assign(G,(0,o._)`${G} || ${_}`),I.mergeValidEvaluated(F,_)||L.if((0,o.not)(G))})),I.result(G,()=>I.reset(),()=>I.error(!0))}},91733:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};n.default=e},87758:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(91733),h=e(12095),f=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",o.default,h.default];n.default=f},12095:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getValidate=v,n.callRef=g;const o=e(78805),h=e(55223),f=e(57287),O=e(5057),d=e(65545),p=e(977),c={keyword:"$ref",schemaType:"string",code(x){const{gen:y,schema:b,it:P}=x,{baseId:S,schemaEnv:t,validateName:a,opts:l,self:D}=P,{root:I}=t;if((b==="#"||b==="#/")&&S===I.baseId)return A();const L=d.resolveRef.call(D,I,S,b);if(L===void 0)throw new o.default(P.opts.uriResolver,S,b);if(L instanceof d.SchemaEnv)return R(L);return j(L);function A(){if(t===I)return g(x,a,t,t.$async);const $=y.scopeValue("root",{ref:I});return g(x,(0,f._)`${$}.validate`,I,I.$async)}function R($){const T=v(x,$);g(x,T,$,$.$async)}function j($){const T=y.scopeValue("schema",l.code.source===!0?{ref:$,code:(0,f.stringify)($)}:{ref:$}),G=y.name("valid"),_=x.subschema({schema:$,dataTypes:[],schemaPath:f.nil,topSchemaRef:T,errSchemaPath:b},G,P.isAllOfVariant);x.mergeEvaluated(_),x.ok(G)}}};function v(x,y){const{gen:b}=x;return y.validate?b.scopeValue("validate",{ref:y.validate}):(0,f._)`${b.scopeValue("wrapper",{ref:y})}.validate`}function g(x,y,b,P){const{gen:S,it:t}=x,{allErrors:a,schemaEnv:l,opts:D}=t,I=D.passContext?O.default.this:f.nil;P?L():A();function L(){if(!l.$async)throw new Error("async schema referenced by sync schema");const $=S.let("valid");S.try(()=>{S.code((0,f._)`await ${(0,h.callValidateCode)(x,y,I)}`),j(y),a||S.assign($,!0)},T=>{S.if((0,f._)`!(${T} instanceof ${t.ValidationError})`,()=>S.throw(T)),R(T),a||S.assign($,!1)}),x.ok($)}function A(){const $=S.name("visitedNodes");S.code((0,f._)`const ${$} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${y}) || new Set()`),S.if((0,f._)`!${$}.has(${x.data})`,()=>{S.code((0,f._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${y}, ${$})`),S.code((0,f._)`const dataNode = ${x.data}`),S.code((0,f._)`if (typeof dataNode === "object" && dataNode !== null) ${$}.add(dataNode)`);const T=x.result((0,h.callValidateCode)(x,y,I),()=>j(y),()=>R(y));return S.code((0,f._)`${$}.delete(dataNode)`),T})}function R($){const T=(0,f._)`${$}.errors`;S.assign(O.default.vErrors,(0,f._)`${O.default.vErrors} === null ? ${T} : ${O.default.vErrors}.concat(${T})`),S.assign(O.default.errors,(0,f._)`${O.default.vErrors}.length`)}function j($){var T;if(!t.opts.unevaluated)return;const G=(T=b?.validate)===null||T===void 0?void 0:T.evaluated;if(t.props!==!0)if(G&&!G.dynamicProps)G.props!==void 0&&(t.props=p.mergeEvaluated.props(S,G.props,t.props));else{const _=S.var("props",(0,f._)`${$}.evaluated.props`);t.props=p.mergeEvaluated.props(S,_,t.props,f.Name)}if(t.items!==!0)if(G&&!G.dynamicItems)G.items!==void 0&&(t.items=p.mergeEvaluated.items(S,G.items,t.items));else{const _=S.var("items",(0,f._)`${$}.evaluated.items`);t.items=p.mergeEvaluated.items(S,_,t.items,f.Name)}}}n.default=c},67104:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(43794),f=e(65545),O=e(977),p={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:v}})=>c===h.DiscrError.Tag?`tag "${v}" must be string`:`value of tag "${v}" must be in oneOf or anyOf`,params:({params:{discrError:c,tag:v,tagName:g}})=>(0,o._)`{error: ${c}, tag: ${g}, tagValue: ${v}}`},code(c){const{gen:v,data:g,schema:x,parentSchema:y,it:b}=c,P=y.oneOf?"oneOf":y.anyOf?"anyOf":void 0;if(!b.opts.discriminator)throw new Error("discriminator: requires discriminator option");const S=x.propertyName;if(typeof S!="string")throw new Error("discriminator: requires propertyName");if(!P)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const t=y[P],a=v.let("valid",!1),l=v.const("tag",(0,o._)`${g}${(0,o.getProperty)(S)}`);v.if((0,o._)`typeof ${l} == "string"`,()=>D(),()=>c.error(!1,{discrError:h.DiscrError.Tag,tag:l,tagName:S})),c.ok(a);function D(){const A=L();v.if(!1);for(const R in A)v.elseIf((0,o._)`${l} === ${R}`),v.assign(a,I(A[R]));v.else(),c.error(!1,{discrError:h.DiscrError.Mapping,tag:l,tagName:S}),v.endIf()}function I(A){const R=v.name("valid"),j=c.subschema({keyword:P,schemaProp:A},R);return c.mergeEvaluated(j,o.Name),R}function L(){var A;const R={},j=T(y);let $=!0;for(let X=0;X<t.length;X++){let q=t[X];const F=q?.$ref;if(F&&x.mapping){const{mapping:Pe}=x,le=Object.keys(Pe).filter(De=>Pe[De]===q.$ref);if(le.length){for(const De of le)_(De,X);continue}}F&&!(0,O.schemaHasRulesButRef)(q,b.self.RULES)&&(q=f.resolveRef.call(b.self,b.schemaEnv.root,b.baseId,F),q instanceof f.SchemaEnv&&(q=q.schema));const ue=(A=q?.properties)===null||A===void 0?void 0:A[S];if(typeof ue!="object")throw new Error(`discriminator: ${P} subschemas (or referenced schemas) must have "properties/${S}" or match mapping`);$=$&&(j||T(q)),G(ue,X)}if(!$)throw new Error(`discriminator: "${S}" must be required`);return R;function T({required:X}){return Array.isArray(X)&&X.includes(S)}function G(X,q){if(X.const)_(X.const,q);else if(X.enum)for(const F of X.enum)_(F,q);else throw new Error(`discriminator: "properties/${S}" must have "const" or "enum"`)}function _(X,q){if(typeof X!="string"||X in R)throw new Error(`discriminator: "${S}" values must be unique strings`);R[X]=q}}}};n.default=p},43794:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DiscrError=void 0;var e;(function(o){o.Tag="tag",o.Mapping="mapping"})(e||(n.DiscrError=e={}))},96735:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(87758),h=e(3602),f=e(32776),O=e(87614),d=e(42547),p=e(42759),c=e(650),v=e(11339),g=[O.default,o.default,h.default,(0,f.default)(!0),c.default,v.metadataVocabulary,v.contentVocabulary,d.default,p.default];n.default=g},17038:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.dynamicAnchor=p;const o=e(57287),h=e(5057),f=e(65545),O=e(12095),d={keyword:"$dynamicAnchor",schemaType:"string",code:v=>p(v,v.schema)};function p(v,g){const{gen:x,it:y}=v;y.schemaEnv.root.dynamicAnchors[g]=!0;const b=(0,o._)`${h.default.dynamicAnchors}${(0,o.getProperty)(g)}`,P=y.errSchemaPath==="#"?y.validateName:c(v);x.if((0,o._)`!${b}`,()=>x.assign(b,P))}function c(v){const{schemaEnv:g,schema:x,self:y}=v.it,{root:b,baseId:P,localRefs:S,meta:t}=g.root,{schemaId:a}=y.opts,l=new f.SchemaEnv({schema:x,schemaId:a,root:b,baseId:P,localRefs:S,meta:t});return f.compileSchema.call(y,l),(0,O.getValidate)(v,l)}n.default=d},22498:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.dynamicRef=d;const o=e(57287),h=e(5057),f=e(12095),O={keyword:"$dynamicRef",schemaType:"string",code:p=>d(p,p.schema)};function d(p,c){const{gen:v,keyword:g,it:x}=p;if(c[0]!=="#")throw new Error(`"${g}" only supports hash fragment reference`);const y=c.slice(1);if(x.allErrors)b();else{const S=v.let("valid",!1);b(S),p.ok(S)}function b(S){if(x.schemaEnv.root.dynamicAnchors[y]){const t=v.let("_v",(0,o._)`${h.default.dynamicAnchors}${(0,o.getProperty)(y)}`);v.if(t,P(t,S),P(x.validateName,S))}else P(x.validateName,S)()}function P(S,t){return t?()=>v.block(()=>{(0,f.callRef)(p,S),v.let(t,!0)}):()=>(0,f.callRef)(p,S)}}n.default=O},87614:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(17038),h=e(22498),f=e(42807),O=e(43841),d=[o.default,h.default,f.default,O.default];n.default=d},42807:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(17038),h=e(977),f={keyword:"$recursiveAnchor",schemaType:"boolean",code(O){O.schema?(0,o.dynamicAnchor)(O,""):(0,h.checkStrictMode)(O.it,"$recursiveAnchor: false is ignored")}};n.default=f},43841:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(22498),h={keyword:"$recursiveRef",schemaType:"string",code:f=>(0,o.dynamicRef)(f,f.schema)};n.default=h},65531:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),f={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:O})=>(0,o.str)`must match format "${O}"`,params:({schemaCode:O})=>(0,o._)`{format: ${O}}`},code(O,d){const{gen:p,data:c,$data:v,schema:g,schemaCode:x,it:y}=O,{opts:b,errSchemaPath:P,schemaEnv:S,self:t}=y;if(!b.validateFormats)return;v?a():l();function a(){const D=p.scopeValue("formats",{ref:t.formats,code:b.code.formats}),I=p.const("fDef",(0,o._)`${D}[${x}]`),L=p.let("fType"),A=p.let("format");p.if((0,o._)`typeof ${I} == "object" && !(${I} instanceof RegExp)`,()=>p.assign(L,(0,o._)`${I}.type || "string"`).assign(A,(0,o._)`${I}.validate`),()=>p.assign(L,(0,o._)`"string"`).assign(A,I)),O.fail$data((0,o.or)(R(),j()));function R(){return b.strictSchema===!1?o.nil:(0,o._)`${x} && !${A}`}function j(){const $=S.$async?(0,o._)`(${I}.async ? await ${A}(${c}) : ${A}(${c}))`:(0,o._)`${A}(${c})`,T=(0,o._)`(typeof ${A} == "function" ? ${$} : ${A}.test(${c}))`;return(0,o._)`${A} && ${A} !== true && ${L} === ${d} && !${T}`}}function l(){const D=t.formats[g];if(!D){R();return}if(D===!0)return;const[I,L,A]=j(D);I===d&&O.pass($());function R(){if(b.strictSchema===!1){t.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${g}" ignored in schema at path "${P}"`}}function j(T){const G=T instanceof RegExp?(0,o.regexpCode)(T):b.code.formats?(0,o._)`${b.code.formats}${(0,o.getProperty)(g)}`:void 0,_=p.scopeValue("formats",{key:g,ref:T,code:G});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,o._)`${_}.validate`]:["string",T,_]}function $(){if(typeof D=="object"&&!(D instanceof RegExp)&&D.async){if(!S.$async)throw new Error("async format in sync schema");return(0,o._)`await ${A}(${c})`}return typeof L=="function"?(0,o._)`${A}(${c})`:(0,o._)`${A}.test(${c})`}}}};n.default=f},650:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const h=[e(65531).default];n.default=h},11339:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.contentVocabulary=n.metadataVocabulary=void 0,n.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],n.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},42547:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(1664),h=e(82463),f=e(71472),O=[o.default,h.default,f.default];n.default=O},42759:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(72522),h=e(78511),f=[o.default,h.default];n.default=f},78511:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),O={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:d}})=>(0,o.str)`must NOT have more than ${d} items`,params:({params:{len:d}})=>(0,o._)`{limit: ${d}}`},code(d){const{gen:p,schema:c,data:v,it:g}=d,x=g.items||0;if(x===!0)return;const y=p.const("len",(0,o._)`${v}.length`);if(c===!1)d.setParams({len:x}),d.fail((0,o._)`${y} > ${x}`);else if(typeof c=="object"&&!(0,h.alwaysValidSchema)(g,c)){const P=p.var("valid",(0,o._)`${y} <= ${x}`);p.if((0,o.not)(P),()=>b(P,x)),d.ok(P)}g.items=!0;function b(P,S){p.forRange("i",S,y,t=>{d.subschema({keyword:"unevaluatedItems",dataProp:t,dataPropType:h.Type.Num},P),g.allErrors||p.if((0,o.not)(P),()=>p.break())})}}};n.default=O},72522:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),f=e(5057),d={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:p})=>(0,o._)`{unevaluatedProperty: ${p.unevaluatedProperty}}`},code(p){const{gen:c,schema:v=p.it.opts.defaultUnevaluatedProperties,data:g,errsCount:x,it:y}=p,b=p.schema===void 0&&p.it.opts.defaultUnevaluatedProperties===!1;if(!x)throw new Error("ajv implementation error");const{allErrors:P,props:S}=y;if(S instanceof o.Name)c.if((0,o._)`${S} !== true`,()=>c.forIn("key",g,D=>c.if(a(S,D),()=>t(D))));else if(S!==!0){const D=()=>c.forIn("key",g,I=>S===void 0?t(I):c.if(l(S,I),()=>t(I)));b&&y.errorPath.emptyStr()?c.if((0,o._)`${f.default.isAllOfVariant} === 0`,D):D()}b||(y.props=!0),p.ok((0,o._)`${x} === ${f.default.errors}`);function t(D){if(v===!1){p.setParams({unevaluatedProperty:D}),p.error(),P||c.break();return}if(!(0,h.alwaysValidSchema)(y,v)){const I=c.name("valid");p.subschema({keyword:"unevaluatedProperties",dataProp:D,dataPropType:h.Type.Str},I),P||c.if((0,o.not)(I),()=>c.break())}}function a(D,I){return(0,o._)`!${D} || !${D}[${I}]`}function l(D,I){const L=[];for(const A in D)D[A]===!0&&L.push((0,o._)`${I} !== ${A}`);return(0,o.and)(...L)}}};n.default=d},53033:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),f=e(81508),d={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:p})=>(0,o._)`{allowedValue: ${p}}`},code(p){const{gen:c,data:v,$data:g,schemaCode:x,schema:y}=p;g||y&&typeof y=="object"?p.fail$data((0,o._)`!${(0,h.useFunc)(c,f.default)}(${v}, ${x})`):p.fail((0,o._)`${y} !== ${v}`)}};n.default=d},1664:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(7879),h={keyword:"dependentRequired",type:"object",schemaType:"object",error:o.error,code:f=>(0,o.validatePropertyDeps)(f)};n.default=h},47709:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),f=e(81508),d={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:p})=>(0,o._)`{allowedValues: ${p}}`},code(p){const{gen:c,data:v,$data:g,schema:x,schemaCode:y,it:b}=p;if(!g&&x.length===0)throw new Error("enum must have non-empty array");const P=x.length>=b.opts.loopEnum;let S;const t=()=>S??(S=(0,h.useFunc)(c,f.default));let a;if(P||g)a=c.let("valid"),p.block$data(a,l);else{if(!Array.isArray(x))throw new Error("ajv implementation error");const I=c.const("vSchema",y);a=(0,o.or)(...x.map((L,A)=>D(I,A)))}p.pass(a);function l(){c.assign(a,!1),c.forOf("v",y,I=>c.if((0,o._)`${t()}(${v}, ${I})`,()=>c.assign(a,!0).break()))}function D(I,L){const A=x[L];return typeof A=="object"&&A!==null?(0,o._)`${t()}(${v}, ${I}[${L}])`:(0,o._)`${v} === ${A}`}}};n.default=d},3602:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(34656),h=e(68485),f=e(96773),O=e(80904),d=e(48064),p=e(70489),c=e(20269),v=e(17883),g=e(53033),x=e(47709),y=[o.default,h.default,f.default,O.default,d.default,p.default,c.default,v.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},g.default,x.default];n.default=y},71472:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(977),h={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:f,parentSchema:O,it:d}){O.contains===void 0&&(0,o.checkStrictMode)(d,`"${f}" without "contains" is ignored`)}};n.default=h},20269:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),f={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:O,schemaCode:d}){const p=O==="maxItems"?"more":"fewer";return(0,o.str)`must NOT have ${p} than ${d} items`},params:({schemaCode:O})=>(0,o._)`{limit: ${O}}`},code(O){const{keyword:d,data:p,schemaCode:c}=O,v=d==="maxItems"?o.operators.GT:o.operators.LT;O.fail$data((0,o._)`${p}.length ${v} ${c}`)}};n.default=f},96773:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=e(977),f=e(11471),d={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:p,schemaCode:c}){const v=p==="maxLength"?"more":"fewer";return(0,o.str)`must NOT have ${v} than ${c} characters`},params:({schemaCode:p})=>(0,o._)`{limit: ${p}}`},code(p){const{keyword:c,data:v,schemaCode:g,it:x}=p,y=c==="maxLength"?o.operators.GT:o.operators.LT,b=x.opts.unicode===!1?(0,o._)`${v}.length`:(0,o._)`${(0,h.useFunc)(p.gen,f.default)}(${v})`;p.fail$data((0,o._)`${b} ${y} ${g}`)}};n.default=d},34656:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),h=o.operators,f={maximum:{okStr:"<=",ok:h.LTE,fail:h.GT},minimum:{okStr:">=",ok:h.GTE,fail:h.LT},exclusiveMaximum:{okStr:"<",ok:h.LT,fail:h.GTE},exclusiveMinimum:{okStr:">",ok:h.GT,fail:h.LTE}},O={message:({keyword:p,schemaCode:c})=>(0,o.str)`must be ${f[p].okStr} ${c}`,params:({keyword:p,schemaCode:c})=>(0,o._)`{comparison: ${f[p].okStr}, limit: ${c}}`},d={keyword:Object.keys(f),type:"number",schemaType:"number",$data:!0,error:O,code(p){const{keyword:c,data:v,schemaCode:g}=p;p.fail$data((0,o._)`${v} ${f[c].fail} ${g} || isNaN(${v})`)}};n.default=d},48064:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),f={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:O,schemaCode:d}){const p=O==="maxProperties"?"more":"fewer";return(0,o.str)`must NOT have ${p} than ${d} properties`},params:({schemaCode:O})=>(0,o._)`{limit: ${O}}`},code(O){const{keyword:d,data:p,schemaCode:c}=O,v=d==="maxProperties"?o.operators.GT:o.operators.LT;O.fail$data((0,o._)`Object.keys(${p}).length ${v} ${c}`)}};n.default=f},68485:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(57287),f={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:O})=>(0,o.str)`must be multiple of ${O}`,params:({schemaCode:O})=>(0,o._)`{multipleOf: ${O}}`},code(O){const{gen:d,data:p,schemaCode:c,it:v}=O,g=v.opts.multipleOfPrecision,x=d.let("res"),y=g?(0,o._)`Math.abs(Math.round(${x}) - ${x}) > 1e-${g}`:(0,o._)`${x} !== parseInt(${x})`;O.fail$data((0,o._)`(${c} === 0 || (${x} = ${p}/${c}, ${y}))`)}};n.default=f},80904:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(55223),h=e(57287),O={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:d})=>(0,h.str)`must match pattern "${d}"`,params:({schemaCode:d})=>(0,h._)`{pattern: ${d}}`},code(d){const{data:p,$data:c,schema:v,schemaCode:g,it:x}=d,y=x.opts.unicodeRegExp?"u":"",b=c?(0,h._)`(new RegExp(${g}, ${y}))`:(0,o.usePattern)(d,v);d.fail$data((0,h._)`!${b}.test(${p})`)}};n.default=O},70489:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(55223),h=e(57287),f=e(977),d={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:p}})=>(0,h.str)`must have required property '${p}'`,params:({params:{missingProperty:p}})=>(0,h._)`{missingProperty: ${p}}`},code(p){const{gen:c,schema:v,schemaCode:g,data:x,$data:y,it:b}=p,{opts:P}=b;if(!y&&v.length===0)return;const S=v.length>=P.loopRequired;if(b.allErrors?t():a(),P.strictRequired){const I=p.parentSchema.properties,{definedProperties:L}=p.it;for(const A of v)if(I?.[A]===void 0&&!L.has(A)){const R=b.schemaEnv.baseId+b.errSchemaPath,j=`required property "${A}" is not defined at "${R}" (strictRequired)`;(0,f.checkStrictMode)(b,j,b.opts.strictRequired)}}function t(){if(S||y)p.block$data(h.nil,l);else for(const I of v)(0,o.checkReportMissingProp)(p,I)}function a(){const I=c.let("missing");if(S||y){const L=c.let("valid",!0);p.block$data(L,()=>D(I,L)),p.ok(L)}else c.if((0,o.checkMissingProp)(p,v,I)),(0,o.reportMissingProp)(p,I),c.else()}function l(){c.forOf("prop",g,I=>{p.setParams({missingProperty:I}),c.if((0,o.noPropertyInData)(c,x,I,P.ownProperties),()=>p.error())})}function D(I,L){p.setParams({missingProperty:I}),c.forOf(I,g,()=>{c.assign(L,(0,o.propertyInData)(c,x,I,P.ownProperties)),c.if((0,h.not)(L),()=>{p.error(),c.break()})},h.nil)}}};n.default=d},17883:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});const o=e(41434),h=e(57287),f=e(977),O=e(81508),p={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:c,j:v}})=>(0,h.str)`must NOT have duplicate items (items ## ${v} and ${c} are identical)`,params:({params:{i:c,j:v}})=>(0,h._)`{i: ${c}, j: ${v}}`},code(c){const{gen:v,data:g,$data:x,schema:y,parentSchema:b,schemaCode:P,it:S}=c;if(!x&&!y)return;const t=v.let("valid"),a=b.items?(0,o.getSchemaTypes)(b.items):[];c.block$data(t,l,(0,h._)`${P} === false`),c.ok(t);function l(){const A=v.let("i",(0,h._)`${g}.length`),R=v.let("j");c.setParams({i:A,j:R}),v.assign(t,!0),v.if((0,h._)`${A} > 1`,()=>(D()?I:L)(A,R))}function D(){return a.length>0&&!a.some(A=>A==="object"||A==="array")}function I(A,R){const j=v.name("item"),$=(0,o.checkDataTypes)(a,j,S.opts.strictNumbers,o.DataType.Wrong),T=v.const("indices",(0,h._)`{}`);v.for((0,h._)`;${A}--;`,()=>{v.let(j,(0,h._)`${g}[${A}]`),v.if($,(0,h._)`continue`),a.length>1&&v.if((0,h._)`typeof ${j} == "string"`,(0,h._)`${j} += "_"`),v.if((0,h._)`typeof ${T}[${j}] == "number"`,()=>{v.assign(R,(0,h._)`${T}[${j}]`),c.error(),v.assign(t,!1).break()}).code((0,h._)`${T}[${j}] = ${A}`)})}function L(A,R){const j=(0,f.useFunc)(v,O.default),$=v.name("outer");v.label($).for((0,h._)`;${A}--;`,()=>v.for((0,h._)`${R} = ${A}; ${R}--;`,()=>v.if((0,h._)`${j}(${g}[${A}], ${g}[${R}])`,()=>{c.error(),v.assign(t,!1).break($)})))}}};n.default=p},91561:(E,n,e)=>{"use strict";e.r(n),e.d(n,{ApigeeDevOnboardingIntegrationAuthType:()=>bt,AuthProviderType:()=>kt,DEFAULT_TEAM_CLAIM_NAME:()=>Lt,LayoutVariant:()=>vn,REDOCLY_ROUTE_RBAC:()=>On,REDOCLY_TEAMS_RBAC:()=>St,productConfigOverrideSchema:()=>zn,productThemeOverrideSchema:()=>gr,rbacConfigSchema:()=>ft,redocConfigSchema:()=>y,rootRedoclyConfigSchema:()=>Ut});const o={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},h={type:"object",properties:o,additionalProperties:!1},f={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},O={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},o),{like:h,dislike:h,satisfied:h,neutral:h,dissatisfied:h}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:f},additionalProperties:!1}},additionalProperties:!1},d={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},v={type:"object",properties:{hidePaginationButtons:{type:"boolean"},menu:{type:"object",properties:Object.assign({},{type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:{type:"object",properties:{name:{type:"string"},items:d,queries:d,mutations:d,subscriptions:d,types:d,directives:d},required:["name"],additionalProperties:!1}},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1}.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},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"},feedback:O},additionalProperties:!1},y={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:O,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:{type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},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:{type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",enum:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},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"}},required:["languages"],additionalProperties:!1},ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1},b={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},P={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"}}},S={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},t={type:"object",properties:{beforeInfo:{type:"array",items:S},end:{type:"array",items:S}}},a={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},l={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},D={type:"object",properties:ke(a.properties,["light","dark"])},I={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"}}},L={type:"object",properties:{error:l,info:l,redirect:l,success:l}},A={type:"object",properties:Be(a.properties,["dark"])},j={type:"object",properties:{accent:a,border:D,error:a,http:I,primary:a,responses:L,secondary:A,success:a,text:{type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},tonalOffset:{type:"number"},warning:a}},$={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},T={type:"object",properties:{small:$,medium:$,large:$,xlarge:$}},G={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},_={type:"object",properties:Object.assign(Object.assign({},Be(G.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:T})},X={type:"object",properties:ke(G.properties,["fontSize","lineHeight"])},q={type:"object",properties:{medium:X,small:X}},F={type:"object",properties:Object.assign(Object.assign({},Be(G.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:q})},ue={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Pe={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},le={type:"object",properties:{fullWidth:{type:"boolean"}}},De={type:"object",properties:{buttons:_,httpBadges:F,layoutControls:ue,panels:Pe,tryItButton:le,tryItSendButton:le}},fe={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},V={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:{type:"object",properties:{maxWidth:fe}},"three-panel":{type:"object",properties:{maxWidth:fe,middlePanelMaxWidth:fe}}}},W={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Q={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:W,defaultDetailsWidth:{type:"string"},examples:W,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},te={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},ye={type:"object",properties:ke(te.properties,["textTransform"])},he={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Le={type:"object",properties:Object.assign(Object.assign({},Be(G.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:te,level1items:ye,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:he,textColor:{type:"string"},width:{type:"string"}})},We={type:"object",properties:Object.assign(Object.assign({},G.properties),{color:{type:"string"},transform:{type:"string"}})},Ie={type:"object",properties:Object.assign(Object.assign({},G.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"}})},xe={type:"object",properties:Be(G.properties,["fontSize"])},Ae={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},B={type:"object",properties:Object.assign(Object.assign({code:Ie,fieldName:G},ke(G.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:We,heading2:We,heading3:We,headings:xe,lineHeight:{type:"string"},links:Ae,optimizeSpeed:{type:"boolean"},rightPanelHeading:We,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},U={type:"object",properties:Object.assign({color:{type:"string"}},Be(G.properties,["fontWeight"]))},Me={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:U}},He={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},pe={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},ce={type:"object",properties:{custom:{type:"string"}}},Te={type:"object",properties:{theme:{type:"object",properties:{breakpoints:fe,codeBlock:Me,colors:j,components:De,layout:V,logo:He,fab:pe,overrides:{type:"object",properties:{DownloadButton:ce,NextSectionButton:ce}},rightPanel:{type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},schema:Q,shape:{type:"object",properties:{borderRadius:{type:"string"}}},sidebar:Le,spacing:{type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},typography:B,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},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:{type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:b}},required:["languages"]},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:P,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requestInterceptor:{type:"object"},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:t,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"}},additionalProperties:!1};function ke(mr,hr){return Object.fromEntries(hr.filter(or=>or in mr).map(or=>[or,mr[or]]))}function Be(mr,hr){return Object.fromEntries(Object.entries(mr).filter(([or])=>!hr.includes(or)))}const ne={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Y={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},ee={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},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"],default:"top"},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}}}},we={type:"array",items:Object.assign(Object.assign({},ee),{properties:Object.assign(Object.assign({},ee.properties),{items:{type:"array",items:ee}})})},Ze={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},nt={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Fe={type:"object",properties:Object.assign({facets:{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}}},ne.properties),additionalProperties:!1},_e={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Pt={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ke={type:"object",properties:Object.assign({items:we},ne.properties),additionalProperties:!1},qe={type:"object",additionalProperties:Ze},mt={type:"object",properties:Object.assign({items:we,copyrightText:{type:"string"},logo:ne},ne.properties),additionalProperties:!1},Tt={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},ne.properties),additionalProperties:!1},Nt={type:"object",properties:{head:{type:"array",items:Y},body:{type:"array",items:Y}},additionalProperties:!1},Jt={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}},qt={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:nt,filters:Fe,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["/"]},suggestedPages:{type:"array",items:_e}},ne.properties),additionalProperties:!1},fn={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},ne.properties),additionalProperties:!1},xn={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Next page"}},ne.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string",default:"Previous page"}},ne.properties),additionalProperties:!1,default:{}}},additionalProperties:!1},tn={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},ne.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},ne.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},ne.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},ne.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},fr={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},ne.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},ne.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},ne.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},pr=Object.assign(Object.assign({},y),{properties:Object.assign(Object.assign({},y.properties),Te.properties)}),wr={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Zr={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"]},no={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Wo={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Bo={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"]},Tn={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},cr={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Pr={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"]},ur={type:"object",properties:{adobe:wr,amplitude:Zr,fullstory:no,heap:Wo,rudderstack:Bo,segment:Tn,gtm:cr,ga:{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:Pr}},additionalProperties:!1,required:["trackingId"]}}},qo={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},ne.properties),additionalProperties:!1},wo={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Ao={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},Fo={type:"object",patternProperties:{".*":{type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:{type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},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"}}}}},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:we,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}}}},li={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}},rules:{type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}}},additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}}}},Lr={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Pt,navbar:Ke,products:qe,footer:mt,sidebar:Tt,scripts:Nt,links:Jt,feedback:O,search:qt,colorMode:fn,navigation:xn,codeSnippet:tn,markdown:fr,openapi:pr,graphql:v,analytics:ur,userMenu:qo,versionPicker:wo,breadcrumbs:Ao,catalog:Fo,scorecard:li},additionalProperties:!0},Qo=Object.assign(Object.assign({},Lr),{additionalProperties:!1}),Lt="https://redocly.com/sso/teams";var kt;(function(mr){mr.OIDC="OIDC",mr.SAML2="SAML2"})(kt||(kt={}));var bt;(function(mr){mr.SERVICE_ACCOUNT="SERVICE_ACCOUNT",mr.OAUTH2="OAUTH2"})(bt||(bt={}));const St="redocly::teams-rbac",On="redocly::route-rbac";var vn;(function(mr){mr.STACKED="stacked",mr.THREE_PANEL="three-panel"})(vn||(vn={}));function Jn(mr,hr){return Object.fromEntries(Object.entries(mr).map(([or,Fn])=>{if(or!==hr)return typeof Fn!="object"||!Fn?[or,Fn]:Array.isArray(Fn)?[or,Fn.map(ro=>typeof ro=="object"?Jn(ro,hr):ro)]:[or,Jn(Fn,hr)]}).filter(Boolean))}const Ir={type:"object",additionalProperties:{type:"string"}},go={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},kr={type:"string",enum:["error","warn","off"]},eo={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{type:"object",additionalProperties:!1,properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",pattern:"^[1-9]\\d*[mhdw]$"}},required:["event"]},inputs:Ir,servers:go,severity:{type:"object",additionalProperties:!1,properties:{schemaCheck:kr,statusCodeCheck:kr,contentTypeCheck:kr,successCriteriaCheck:kr}}},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Do={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},No={type:"object",properties:{type:{type:"string",const:kt.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:Do,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},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"}},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},Ve={type:"object",properties:{type:{type:"string",const:kt.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:Lt},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},yt={type:"object",additionalProperties:{oneOf:[No,Ve],discriminator:{propertyName:"type"}}},Ot={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},rn={type:"object",additionalProperties:{type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},default:{}},Gt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},Bn={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:pr,graphql:v,theme:{type:"object",properties:{openapi:pr,graphql:v},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},rules:Gt,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0}},required:["root"]},Ln={type:"object",additionalProperties:!0},Xn={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},$n={type:"object",properties:{title:{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}}},additionalProperties:!1},Je={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},et={type:"object",additionalProperties:{type:"string"}},ft={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:et,cms:et,reunite:et,features:{type:"object",properties:{aiSearch:et},additionalProperties:!1},content:{type:"object",properties:{"**":et},additionalProperties:et}},additionalProperties:et},Ht={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[{type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},{type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]}]}},additionalProperties:!1,required:["type","apiBaseUrl"]},$t={type:"object",properties:{type:{type:"string",const:bt.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},un={type:"object",properties:{type:{type:"string",const:bt.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},hn={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[$t,un],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},bn=Object.assign(Object.assign({},hn),{properties:Object.assign(Object.assign({},hn.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),Rt={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:{type:"object",oneOf:[hn,bn,Ht],discriminator:{propertyName:"type"}}}}},Vt={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"]},In={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:rn,seo:$n,rbac:ft,apiFunctions:Je,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]}}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:Bn},rules:Gt,decorators:{type:"object",additionalProperties:!0},preprocessors:{type:"object",additionalProperties:!0},ssoDirect:yt,sso:Ot,residency:{type:"string"},developerOnboarding:Rt,removeAttribution:{type:"boolean"},i18n:Vt,l10n:Vt,metadata:Ln,metadataGlobs:Xn,ignore:{type:"array",items:{type:"string"}},theme:Lr,reunite:eo,logo:Pt,navbar:Ke,products:qe,footer:mt,sidebar:Tt,scripts:Nt,links:Jt,feedback:O,search:qt,colorMode:fn,navigation:xn,codeSnippet:tn,markdown:fr,openapi:pr,graphql:v,analytics:ur,userMenu:qo,versionPicker:wo,breadcrumbs:Ao,catalog:Fo,scorecard:li},default:{redirects:{}},additionalProperties:!0},Qn=Object.assign(Object.assign({},Jn(In,"default")),{additionalProperties:!1}),Ut=Object.assign(Object.assign({$id:"root-redocly-config"},In),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},In.properties),{env:{type:"object",additionalProperties:Qn}}),default:{},additionalProperties:!1}),gr={type:"object",properties:{logo:Lr.properties.logo,navbar:Lr.properties.navbar,footer:Lr.properties.footer,sidebar:Lr.properties.sidebar,search:Lr.properties.search,codeSnippet:Lr.properties.codeSnippet,breadcrumbs:Lr.properties.breadcrumbs,openapi:Lr.properties.openapi,feedback:Lr.properties.feedback,analytics:{type:"object",properties:{ga:Pr}}},additionalProperties:!0,default:{}},zn={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},gr.properties),{apis:{type:"object",additionalProperties:Bn},theme:gr}),additionalProperties:!1}},55674:(E,n,e)=>{"use strict";var o;o={value:!0},o=void 0,o=a,n.l2=l,o=D,o=I,o=L;const h=e(67804),f=e(15333),O=e(41386),d=e(28339),p=e(97089),c=e(53781),v=e(22608),g=e(92692),x=e(3069),y=e(17604),b=e(75261),P=e(22152),S=e(22074);var t;(function(j){j.Version2="oas2",j.Version3_0="oas3_0",j.Version3_1="oas3_1"})(t||(o=t={}));async function a(j,$){const T=(0,O.normalizeTypes)(S.ConfigTypes),G={problems:[],oasVersion:p.SpecVersion.OAS3_0,refTypes:new Map,visitorsData:{}},_=(0,f.normalizeVisitors)([{severity:"error",ruleId:"configBundler",visitor:{ref:{leave(X,q,F){A(X,F,q)}}}}],T);return(0,d.walkDocument)({document:j,rootType:T.ConfigRoot,normalizedVisitors:_,resolvedRefMap:$,ctx:G}),j.parsed??{}}async function l(j){const{ref:$,doc:T,externalRefResolver:G=new h.BaseResolver(j.config.resolve),base:_=null}=j;if(!($||T))throw new Error(`Document or reference is required.
|
|
14
14
|
`);const X=T===void 0?await G.resolveDocument(_,$,!0):T;if(X instanceof Error)throw X;return j.collectSpecData?.(X.parsed),I({document:X,...j,config:j.config.styleguide,externalRefResolver:G})}async function D(j){const{source:$,absoluteRef:T,externalRefResolver:G=new h.BaseResolver(j.config.resolve)}=j,_=(0,h.makeDocumentFromString)($,T||"/");return I({document:_,...j,externalRefResolver:G,config:j.config.styleguide})}async function I(j){const{document:$,config:T,customTypes:G,externalRefResolver:_,dereference:X=!1,skipRedoclyRegistryRefs:q=!1,removeUnusedComponents:F=!1,keepUrlRefs:ue=!1}=j,Pe=(0,p.detectSpec)($.parsed),le=(0,p.getMajorSpecVersion)(Pe),De=T.getRulesForSpecVersion(le),fe=(0,O.normalizeTypes)(T.extendTypes(G??(0,p.getTypes)(Pe),Pe),T),se=(0,v.initRules)(De,T,"preprocessors",Pe),z=(0,v.initRules)(De,T,"decorators",Pe),V={problems:[],oasVersion:Pe,refTypes:new Map,visitorsData:{}};F&&z.push({severity:"error",ruleId:"remove-unused-components",visitor:le===p.SpecMajorVersion.OAS2?(0,b.RemoveUnusedComponents)({}):(0,P.RemoveUnusedComponents)({})});let W=await(0,h.resolveDocument)({rootDocument:$,rootType:fe.Root,externalRefResolver:_});se.length>0&&((0,d.walkDocument)({document:$,rootType:fe.Root,normalizedVisitors:(0,f.normalizeVisitors)(se,fe),resolvedRefMap:W,ctx:V}),W=await(0,h.resolveDocument)({rootDocument:$,rootType:fe.Root,externalRefResolver:_}));const Q=(0,f.normalizeVisitors)([{severity:"error",ruleId:"bundler",visitor:R(le,X,q,$,W,ue)},...z],fe);return(0,d.walkDocument)({document:$,rootType:fe.Root,normalizedVisitors:Q,resolvedRefMap:W,ctx:V}),{bundle:$,problems:V.problems.map(te=>T.addProblemToIgnore(te)),fileDependencies:_.getFiles(),rootType:fe.Root,refTypes:V.refTypes,visitorsData:V.visitorsData}}function L(j,$){switch($){case p.SpecMajorVersion.OAS3:switch(j){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";default:return null}case p.SpecMajorVersion.OAS2:switch(j){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case p.SpecMajorVersion.Async2:switch(j){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case p.SpecMajorVersion.Async3:switch(j){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case p.SpecMajorVersion.Arazzo1:switch(j){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case p.SpecMajorVersion.Overlay1:switch(j){default:return null}}}function A(j,$,T){if(!(0,x.isPlainObject)($.node))T.parent[T.key]=$.node;else{delete j.$ref;const G=Object.assign({},$.node,j);Object.assign(j,G)}}function R(j,$,T,G,_,X){let q,F;const ue={ref:{leave(se,z,V){if(!V.location||V.node===void 0){(0,g.reportUnresolvedRef)(V,z.report,z.location);return}if(V.location.source===G.source&&V.location.source===z.location.source&&z.type.name!=="scalar"&&!$||T&&(0,y.isRedoclyRegistryURL)(se.$ref)||X&&(0,c.isAbsoluteUrl)(se.$ref))return;const W=L(z.type.name,j);W?$?(le(W,V,z),A(se,V,z)):(se.$ref=le(W,V,z),Pe(se,V,z)):A(se,V,z)}},Example:{leave(se,z){if((0,c.isExternalValue)(se)&&se.value===void 0){const V=z.resolve({$ref:se.externalValue});if(!V.location||V.node===void 0){(0,g.reportUnresolvedRef)(V,z.report,z.location);return}if(X&&(0,c.isAbsoluteUrl)(se.externalValue))return;se.value=z.resolve({$ref:se.externalValue}).node,delete se.externalValue}}},Root:{enter(se,z){F=z.location,j===p.SpecMajorVersion.OAS3?q=se.components=se.components||{}:j===p.SpecMajorVersion.OAS2?q=se:j===p.SpecMajorVersion.Async2?q=se.components=se.components||{}:j===p.SpecMajorVersion.Async3?q=se.components=se.components||{}:j===p.SpecMajorVersion.Arazzo1&&(q=se.components=se.components||{})}}};j===p.SpecMajorVersion.OAS3&&(ue.DiscriminatorMapping={leave(se,z){for(const V of Object.keys(se)){const W=se[V],Q=z.resolve({$ref:W});if(!Q.location||Q.node===void 0){(0,g.reportUnresolvedRef)(Q,z.report,z.location.child(V));return}const te=L("Schema",j);se[V]=le(te,Q,z)}}});function Pe(se,z,V){const W=(0,h.makeRefId)(V.location.source.absoluteRef,se.$ref);_.set(W,{document:G,isRemote:!1,node:z.node,nodePointer:se.$ref,resolved:!0})}function le(se,z,V){q[se]=q[se]||{};const W=fe(z,se,V);return q[se][W]=z.node,j===p.SpecMajorVersion.OAS3||j===p.SpecMajorVersion.Async2||j===p.SpecMajorVersion.Async3?`#/components/${se}/${W}`:`#/${se}/${W}`}function De(se,z,V){return(0,c.isRef)(se)&&V.resolve(se,F.absolutePointer).location?.absolutePointer===z.location.absolutePointer?!0:(0,x.dequal)(se,z.node)}function fe(se,z,V){const[W,Q]=[se.location.source.absoluteRef,se.location.pointer],te=q[z];let ye="";const he=Q.slice(2).split("/").filter(x.isTruthy);for(;he.length>0;)if(ye=he.pop()+(ye?`-${ye}`:""),!te||!te[ye]||De(te[ye],se,V))return ye;if(ye=(0,c.refBaseName)(W)+(ye?`_${ye}`:""),!te[ye]||De(te[ye],se,V))return ye;const Le=ye;let We=2;for(;te[ye]&&!De(te[ye],se,V);)ye=`${Le}-${We}`,We++;return te[ye]||V.report({message:`Two schemas are referenced with the same name but different content. Renamed ${Le} to ${ye}.`,location:V.location,forceSeverity:"warn"}),ye}return ue}},55061:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Config=n.StyleguideConfig=n.IGNORE_FILE=void 0;const o=e(28052),h=e(13078),f=e(77318),O=e(3069),d=e(97089),p=e(29231),c=e(91642),v=e(53781);n.IGNORE_FILE=".redocly.lint-ignore.yaml";const g=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
15
15
|
# See https://redocly.com/docs/cli/ for more information.
|
|
16
16
|
`;function x(S){return S?(0,O.doesYamlFileExist)(S)?h.join(h.dirname(S),n.IGNORE_FILE):h.join(S,n.IGNORE_FILE):p.isBrowser?void 0:h.join(process.cwd(),n.IGNORE_FILE)}class y{constructor(t,a){this.rawConfig=t,this.configFile=a,this.ignore={},this._usedRules=new Set,this._usedVersions=new Set,this.plugins=t.plugins||[],this.doNotResolveExamples=!!t.doNotResolveExamples,this.recommendedFallback=t.recommendedFallback||!1,b(["rules","oas2Rules","oas3_0Rules","oas3_1Rules","async2Rules","async3Rules","arazzo1Rules","overlay1Rules"],t),this.rules={[d.SpecVersion.OAS2]:{...t.rules,...t.oas2Rules},[d.SpecVersion.OAS3_0]:{...t.rules,...t.oas3_0Rules},[d.SpecVersion.OAS3_1]:{...t.rules,...t.oas3_1Rules},[d.SpecVersion.Async2]:{...t.rules,...t.async2Rules},[d.SpecVersion.Async3]:{...t.rules,...t.async3Rules},[d.SpecVersion.Arazzo1]:{...t.rules,...t.arazzo1Rules},[d.SpecVersion.Overlay1]:{...t.rules,...t.overlay1Rules}},this.preprocessors={[d.SpecVersion.OAS2]:{...t.preprocessors,...t.oas2Preprocessors},[d.SpecVersion.OAS3_0]:{...t.preprocessors,...t.oas3_0Preprocessors},[d.SpecVersion.OAS3_1]:{...t.preprocessors,...t.oas3_1Preprocessors},[d.SpecVersion.Async2]:{...t.preprocessors,...t.async2Preprocessors},[d.SpecVersion.Async3]:{...t.preprocessors,...t.async3Preprocessors},[d.SpecVersion.Arazzo1]:{...t.arazzo1Preprocessors},[d.SpecVersion.Overlay1]:{...t.preprocessors,...t.overlay1Preprocessors}},this.decorators={[d.SpecVersion.OAS2]:{...t.decorators,...t.oas2Decorators},[d.SpecVersion.OAS3_0]:{...t.decorators,...t.oas3_0Decorators},[d.SpecVersion.OAS3_1]:{...t.decorators,...t.oas3_1Decorators},[d.SpecVersion.Async2]:{...t.decorators,...t.async2Decorators},[d.SpecVersion.Async3]:{...t.decorators,...t.async3Decorators},[d.SpecVersion.Arazzo1]:{...t.arazzo1Decorators},[d.SpecVersion.Overlay1]:{...t.decorators,...t.overlay1Decorators}},this.extendPaths=t.extendPaths||[],this.pluginPaths=t.pluginPaths||[],this.resolveIgnore(x(a))}resolveIgnore(t){if(!(!t||!(0,O.doesYamlFileExist)(t))){this.ignore=(0,f.parseYaml)(o.readFileSync(t,"utf-8"))||{},b(Object.keys(this.ignore),this.ignore);for(const a of Object.keys(this.ignore)){this.ignore[(0,v.isAbsoluteUrl)(a)?a:h.resolve(h.dirname(t),a)]=this.ignore[a];for(const l of Object.keys(this.ignore[a]))this.ignore[a][l]=new Set(this.ignore[a][l]);(0,v.isAbsoluteUrl)(a)||delete this.ignore[a]}}}saveIgnore(){const t=this.configFile?h.dirname(this.configFile):process.cwd(),a=h.join(t,n.IGNORE_FILE),l={};for(const D of Object.keys(this.ignore)){const I=(0,v.isAbsoluteUrl)(D)?D:(0,O.slash)(h.relative(t,D)),L=l[I]=this.ignore[D];for(const A of Object.keys(L))L[A]=Array.from(L[A])}o.writeFileSync(a,g+(0,f.stringifyYaml)(l))}addIgnore(t){const a=this.ignore,l=t.location[0];if(l.pointer===void 0)return;const D=a[l.source.absoluteRef]=a[l.source.absoluteRef]||{};(D[t.ruleId]=D[t.ruleId]||new Set).add(l.pointer)}addProblemToIgnore(t){const a=t.location[0];if(a.pointer===void 0)return t;const D=(this.ignore[a.source.absoluteRef]||{})[t.ruleId],I=D&&D.has(a.pointer);return I?{...t,ignored:I}:t}extendTypes(t,a){let l=t;for(const D of this.plugins)if(D.typeExtension!==void 0)switch(a){case d.SpecVersion.OAS3_0:case d.SpecVersion.OAS3_1:if(!D.typeExtension.oas3)continue;l=D.typeExtension.oas3(l,a);break;case d.SpecVersion.OAS2:if(!D.typeExtension.oas2)continue;l=D.typeExtension.oas2(l,a);break;case d.SpecVersion.Async2:if(!D.typeExtension.async2)continue;l=D.typeExtension.async2(l,a);break;case d.SpecVersion.Async3:if(!D.typeExtension.async3)continue;l=D.typeExtension.async3(l,a);break;case d.SpecVersion.Arazzo1:if(!D.typeExtension.arazzo1)continue;l=D.typeExtension.arazzo1(l,a);break;case d.SpecVersion.Overlay1:if(!D.typeExtension.overlay1)continue;l=D.typeExtension.overlay1(l,a);break;default:throw new Error("Not implemented")}return l}getRuleSettings(t,a){this._usedRules.add(t),this._usedVersions.add(a);const l=this.rules[a][t]||"off";return typeof l=="string"?{severity:l}:{severity:"error",...l}}getPreprocessorSettings(t,a){this._usedRules.add(t),this._usedVersions.add(a);const l=this.preprocessors[a][t]||"off";return typeof l=="string"?{severity:l==="on"?"error":l}:{severity:"error",...l}}getDecoratorSettings(t,a){this._usedRules.add(t),this._usedVersions.add(a);const l=this.decorators[a][t]||"off";return typeof l=="string"?{severity:l==="on"?"error":l}:{severity:"error",...l}}getUnusedRules(){const t=[],a=[],l=[];for(const D of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[D]).filter(I=>!this._usedRules.has(I))),a.push(...Object.keys(this.decorators[D]).filter(I=>!this._usedRules.has(I))),l.push(...Object.keys(this.preprocessors[D]).filter(I=>!this._usedRules.has(I)));return{rules:t,preprocessors:l,decorators:a}}getRulesForSpecVersion(t){switch(t){case d.SpecMajorVersion.OAS3:const a=[];return this.plugins.forEach(R=>R.preprocessors?.oas3&&a.push(R.preprocessors.oas3)),this.plugins.forEach(R=>R.rules?.oas3&&a.push(R.rules.oas3)),this.plugins.forEach(R=>R.decorators?.oas3&&a.push(R.decorators.oas3)),a;case d.SpecMajorVersion.OAS2:const l=[];return this.plugins.forEach(R=>R.preprocessors?.oas2&&l.push(R.preprocessors.oas2)),this.plugins.forEach(R=>R.rules?.oas2&&l.push(R.rules.oas2)),this.plugins.forEach(R=>R.decorators?.oas2&&l.push(R.decorators.oas2)),l;case d.SpecMajorVersion.Async2:const D=[];return this.plugins.forEach(R=>R.preprocessors?.async2&&D.push(R.preprocessors.async2)),this.plugins.forEach(R=>R.rules?.async2&&D.push(R.rules.async2)),this.plugins.forEach(R=>R.decorators?.async2&&D.push(R.decorators.async2)),D;case d.SpecMajorVersion.Async3:const I=[];return this.plugins.forEach(R=>R.preprocessors?.async3&&I.push(R.preprocessors.async3)),this.plugins.forEach(R=>R.rules?.async3&&I.push(R.rules.async3)),this.plugins.forEach(R=>R.decorators?.async3&&I.push(R.decorators.async3)),I;case d.SpecMajorVersion.Arazzo1:const L=[];return this.plugins.forEach(R=>R.preprocessors?.arazzo1&&L.push(R.preprocessors.arazzo1)),this.plugins.forEach(R=>R.rules?.arazzo1&&L.push(R.rules.arazzo1)),this.plugins.forEach(R=>R.decorators?.arazzo1&&L.push(R.decorators.arazzo1)),L;case d.SpecMajorVersion.Overlay1:const A=[];return this.plugins.forEach(R=>R.preprocessors?.overlay1&&A.push(R.preprocessors.overlay1)),this.plugins.forEach(R=>R.rules?.overlay1&&A.push(R.rules.overlay1)),this.plugins.forEach(R=>R.decorators?.overlay1&&A.push(R.decorators.overlay1)),A}}skipRules(t){for(const a of t||[])for(const l of Object.values(d.SpecVersion))if(this.rules[l][a])this.rules[l][a]="off";else if(Array.isArray(this.rules[l].assertions))for(const D of this.rules[l].assertions)D.assertionId===a&&(D.severity="off")}skipPreprocessors(t){for(const a of t||[])for(const l of Object.values(d.SpecVersion))this.preprocessors[l][a]&&(this.preprocessors[l][a]="off")}skipDecorators(t){for(const a of t||[])for(const l of Object.values(d.SpecVersion))this.decorators[l][a]&&(this.decorators[l][a]="off")}}n.StyleguideConfig=y;function b(S,t){for(const a of S)t[a]&&(0,O.isPlainObject)(t[a])&&"spec"in t[a]&&((0,O.showWarningForDeprecatedField)("spec","struct"),t[a].struct=t[a].spec,delete t[a].spec)}class P{constructor(t,a){this.rawConfig=t,this.configFile=a,this.apis=t.apis||{},this.styleguide=new y(t.styleguide||{},a),this.theme=t.theme||{},this.resolve=(0,c.getResolveConfig)(t?.resolve),this.region=t.region,this.organization=t.organization,this.files=t.files||[],this.telemetry=t.telemetry}}n.Config=P},22608:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initRules=h;const o=e(3069);function h(f,O,d,p){return f.flatMap(c=>Object.keys(c).map(v=>{const g=c[v],x=d==="rules"?O.getRuleSettings(v,p):d==="preprocessors"?O.getPreprocessorSettings(v,p):O.getDecoratorSettings(v,p);if(x.severity==="off")return;const y=x.severity,b=x.message,P=g(x);return Array.isArray(P)?P.map(S=>({severity:y,ruleId:v,message:b,visitor:S})):{severity:y,message:b,ruleId:v,visitor:P}})).flatMap(c=>c).filter(o.isDefined)}},91642:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ConfigValidationError=void 0,n.parsePresetName=O,n.transformApiDefinitionsToApis=d,n.prefixRules=v,n.mergeExtends=g,n.getMergedConfig=x,n.checkForDeprecatedFields=y,n.transformConfig=b,n.getResolveConfig=S,n.getUniquePlugins=t,n.deepCloneMapWithJSON=l,n.isDeprecatedPluginFormat=D,n.isCommonJsPlugin=I;const o=e(3069),h=e(55061),f=e(68330);function O(L){if(L.indexOf("/")>-1){const[A,R]=L.split("/");return{pluginId:A,configName:R}}else return{pluginId:"",configName:L}}function d(L){if(!L)return;const A={};for(const[R,j]of Object.entries(L))A[R]={root:j};return A}function p({plugins:L,extends:A,rules:R,oas2Rules:j,oas3_0Rules:$,oas3_1Rules:T,async2Rules:G,async3Rules:_,arazzo1Rules:X,overlay1Rules:q,preprocessors:F,oas2Preprocessors:ue,oas3_0Preprocessors:Pe,oas3_1Preprocessors:le,async2Preprocessors:De,async3Preprocessors:fe,arazzo1Preprocessors:se,overlay1Preprocessors:z,decorators:V,oas2Decorators:W,oas3_0Decorators:Q,oas3_1Decorators:te,async2Decorators:ye,async3Decorators:he,arazzo1Decorators:Le,overlay1Decorators:We,...Ie}){const xe={plugins:L,extends:A,rules:R,oas2Rules:j,oas3_0Rules:$,oas3_1Rules:T,async2Rules:G,async3Rules:_,arazzo1Rules:X,overlay1Rules:q,preprocessors:F,oas2Preprocessors:ue,oas3_0Preprocessors:Pe,oas3_1Preprocessors:le,async2Preprocessors:De,async3Preprocessors:fe,arazzo1Preprocessors:se,overlay1Preprocessors:z,decorators:V,oas2Decorators:W,oas3_0Decorators:Q,oas3_1Decorators:te,async2Decorators:ye,async3Decorators:he,arazzo1Decorators:Le,overlay1Decorators:We,doNotResolveExamples:Ie.resolve?.doNotResolveExamples};if(Ie.lint&&Ie.styleguide||Object.values(xe).some(o.isDefined)&&(Ie.lint||Ie.styleguide))throw new Error(`Do not use 'lint', 'styleguide' and flat syntax together.
|
|
@@ -21,7 +21,7 @@ The 'assert/' syntax in ${R} is deprecated. Update your configuration to use 'ru
|
|
|
21
21
|
`)}function S(L){return{http:{headers:L?.http?.headers??[],customFetch:void 0}}}function t(L){const A=new Set,R=[];for(const j of L)A.has(j.id)?j.id&&f.logger.warn(`Duplicate plugin id "${f.colorize.red(j.id)}".
|
|
22
22
|
`):(R.push(j),A.add(j.id));return R}class a extends Error{}n.ConfigValidationError=a;function l(L){return new Map(JSON.parse(JSON.stringify([...L])))}function D(L){return L!==void 0&&typeof L=="object"&&"id"in L}function I(L){return typeof L=="function"}},75261:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.RemoveUnusedComponents=void 0;const o=e(3069),h=()=>{const f=new Map;function O(p,c,v){f.set(p.absolutePointer,{usedIn:f.get(p.absolutePointer)?.usedIn??[],componentType:c,name:v})}function d(p,c){const v=c.length;for(const[g,{usedIn:x,name:y,componentType:b}]of f)!x.some(S=>!c.some(t=>S.absolutePointer.startsWith(t)&&(S.absolutePointer.length===t.length||S.absolutePointer[t.length]==="/")))&&b&&(c.push(g),delete p[b][y],f.delete(g),(0,o.isEmptyObject)(p[b])&&delete p[b]);return c.length>v?d(p,c):c.length}return{ref:{leave(p,{location:c,type:v,resolve:g,key:x}){if(["Schema","Parameter","Response","SecurityScheme"].includes(v.name)){const y=g(p);if(!y.location)return;const[b,P]=y.location.absolutePointer.split("#",2),S=P.split("/").slice(0,3).join("/"),t=`${b}#${S}`,a=f.get(t);a?a.usedIn.push(c):f.set(t,{usedIn:[c],name:x.toString()})}}},Root:{leave(p,c){const v=c.getVisitorData();v.removedCount=d(p,[])}},NamedSchemas:{Schema(p,{location:c,key:v}){p.allOf||O(c,"definitions",v.toString())}},NamedParameters:{Parameter(p,{location:c,key:v}){O(c,"parameters",v.toString())}},NamedResponses:{Response(p,{location:c,key:v}){O(c,"responses",v.toString())}},NamedSecuritySchemes:{SecurityScheme(p,{location:c,key:v}){O(c,"securityDefinitions",v.toString())}}}};n.RemoveUnusedComponents=h},22152:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.RemoveUnusedComponents=void 0;const o=e(3069),h=()=>{const f=new Map;function O(p,c,v){f.set(p.absolutePointer,{usedIn:f.get(p.absolutePointer)?.usedIn??[],componentType:c,name:v})}function d(p,c){const v=c.length;for(const[g,{usedIn:x,name:y,componentType:b}]of f)if(!x.some(S=>!c.some(t=>S.absolutePointer.startsWith(t)&&(S.absolutePointer.length===t.length||S.absolutePointer[t.length]==="/")))&&b&&p.components){c.push(g);const S=p.components[b];delete S[y],f.delete(g),(0,o.isEmptyObject)(S)&&delete p.components[b]}return c.length>v?d(p,c):c.length}return{ref:{leave(p,{location:c,type:v,resolve:g,key:x}){if(["Schema","Header","Parameter","Response","Example","RequestBody"].includes(v.name)){const y=g(p);if(!y.location)return;const[b,P]=y.location.absolutePointer.split("#",2),S=P.split("/").slice(0,4).join("/"),t=`${b}#${S}`,a=f.get(t);a?a.usedIn.push(c):f.set(t,{usedIn:[c],name:x.toString()})}}},Root:{leave(p,c){const v=c.getVisitorData();v.removedCount=d(p,[]),(0,o.isEmptyObject)(p.components)&&delete p.components}},NamedSchemas:{Schema(p,{location:c,key:v}){p.allOf||O(c,"schemas",v.toString())}},NamedParameters:{Parameter(p,{location:c,key:v}){O(c,"parameters",v.toString())}},NamedResponses:{Response(p,{location:c,key:v}){O(c,"responses",v.toString())}},NamedExamples:{Example(p,{location:c,key:v}){O(c,"examples",v.toString())}},NamedRequestBodies:{RequestBody(p,{location:c,key:v}){O(c,"requestBodies",v.toString())}},NamedHeaders:{Header(p,{location:c,key:v}){O(c,"headers",v.toString())}}}};n.RemoveUnusedComponents=h},29231:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.env=n.isBrowser=void 0,n.isBrowser=typeof window<"u"||typeof process>"u"||!0,n.env=n.isBrowser?{}:{}},77318:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.stringifyYaml=n.parseYaml=void 0;const o=e(87049),h=o.JSON_SCHEMA.extend({implicit:[o.types.merge],explicit:[o.types.binary,o.types.omap,o.types.pairs,o.types.set]}),f=(d,p)=>(0,o.load)(d,{schema:h,...p});n.parseYaml=f;const O=(d,p)=>(0,o.dump)(d,p);n.stringifyYaml=O},68330:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.logger=n.colorize=n.colorOptions=void 0;const o=e(23693),h=e(29231),f=e(3069);n.colorOptions=o.options,n.colorize=new Proxy(o,{get(d,p){return h.isBrowser?f.identity:d[p]}});class O{stderr(p){return process.stderr.write(p)}info(p){return h.isBrowser?console.log(p):this.stderr(p)}warn(p){return h.isBrowser?console.warn(p):this.stderr(n.colorize.yellow(p))}error(p){return h.isBrowser?console.error(p):this.stderr(n.colorize.red(p))}}n.logger=new O},97089:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SpecMajorVersion=n.SpecVersion=void 0,n.detectSpec=P,n.getMajorSpecVersion=S,n.getTypes=t;const o=e(81989),h=e(51270),f=e(18518),O=e(46036),d=e(93979),p=e(84551),c=e(33290),v=e(3069),g=e(12848);var x;(function(a){a.OAS2="oas2",a.OAS3_0="oas3_0",a.OAS3_1="oas3_1",a.Async2="async2",a.Async3="async3",a.Arazzo1="arazzo1",a.Overlay1="overlay1"})(x||(n.SpecVersion=x={}));var y;(function(a){a.OAS2="oas2",a.OAS3="oas3",a.Async2="async2",a.Async3="async3",a.Arazzo1="arazzo1",a.Overlay1="overlay1"})(y||(n.SpecMajorVersion=y={}));const b={[x.OAS2]:o.Oas2Types,[x.OAS3_0]:h.Oas3Types,[x.OAS3_1]:f.Oas3_1Types,[x.Async2]:O.AsyncApi2Types,[x.Async3]:d.AsyncApi3Types,[x.Arazzo1]:p.Arazzo1Types,[x.Overlay1]:c.Overlay1Types};function P(a){if(!(0,v.isPlainObject)(a))throw new Error(`Document must be JSON object, got ${typeof a}`);if(a.openapi&&typeof a.openapi!="string")throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof a.openapi}"`);if(typeof a.openapi=="string"&&a.openapi.startsWith("3.0"))return x.OAS3_0;if(typeof a.openapi=="string"&&a.openapi.startsWith("3.1"))return x.OAS3_1;if(a.swagger&&a.swagger==="2.0")return x.OAS2;if(a.openapi||a.swagger)throw new Error(`Unsupported OpenAPI version: ${a.openapi||a.swagger}`);if(typeof a.asyncapi=="string"&&a.asyncapi.startsWith("2."))return x.Async2;if(typeof a.asyncapi=="string"&&a.asyncapi.startsWith("3."))return x.Async3;if(a.asyncapi)throw new Error(`Unsupported AsyncAPI version: ${a.asyncapi}`);if(typeof a.arazzo=="string"&&g.VERSION_PATTERN.test(a.arazzo))return x.Arazzo1;if(typeof a.overlay=="string"&&g.VERSION_PATTERN.test(a.overlay))return x.Overlay1;throw new Error("Unsupported specification")}function S(a){return a===x.OAS2?y.OAS2:a===x.Async2?y.Async2:a===x.Async3?y.Async3:a===x.Arazzo1?y.Arazzo1:a===x.Overlay1?y.Overlay1:y.OAS3}function t(a){return b[a]}},17604:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.AVAILABLE_REGIONS=n.DOMAINS=n.DEFAULT_REGION=void 0,n.getDomains=o,n.setRedoclyDomain=h,n.getRedoclyDomain=f,n.isRedoclyRegistryURL=O;let e="redocly.com";n.DEFAULT_REGION="us",n.DOMAINS=o(),n.AVAILABLE_REGIONS=Object.keys(n.DOMAINS);function o(){const d={us:"redocly.com",eu:"eu.redocly.com"},p=e;return p?.endsWith(".redocly.host")&&(d[p.split(".")[0]]=p),p==="redoc.online"&&(d[p]=p),d}function h(d){e=d}function f(){return e}function O(d){const p=f()||n.DOMAINS[n.DEFAULT_REGION],c=p==="redocly.com"?"redoc.ly":p;return!(!d.startsWith(`https://api.${p}/registry/`)&&!d.startsWith(`https://api.${c}/registry/`))}},53781:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Location=void 0,n.joinPointer=h,n.isRef=f,n.isExternalValue=O,n.unescapePointer=p,n.escapePointer=c,n.parseRef=v,n.parsePointer=g,n.pointerBaseName=x,n.refBaseName=y,n.isAbsoluteUrl=b,n.isMappingRef=P,n.isAnchor=S;const o=e(3069);function h(t,a){return t===""&&(t="#/"),t[t.length-1]==="/"?t+a:t+"/"+a}function f(t){return(0,o.isPlainObject)(t)&&typeof t.$ref=="string"}function O(t){return(0,o.isPlainObject)(t)&&typeof t.externalValue=="string"}class d{constructor(a,l){this.source=a,this.pointer=l}child(a){return new d(this.source,h(this.pointer,(Array.isArray(a)?a:[a]).map(c).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}}n.Location=d;function p(t){return decodeURIComponent(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function c(t){return typeof t=="number"?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function v(t){const[a,l=""]=t.split("#/");return{uri:(a.endsWith("#")?a.slice(0,-1):a)||null,pointer:g(l)}}function g(t){return t.split("/").map(p).filter(o.isTruthy)}function x(t){const a=t.split("/");return a[a.length-1]}function y(t){const a=t.split(/[\/\\]/);return a[a.length-1].replace(/\.[^.]+$/,"")}function b(t){return t.startsWith("http://")||t.startsWith("https://")}function P(t){return t.startsWith("#")||t.startsWith("https://")||t.startsWith("http://")||t.startsWith("./")||t.startsWith("../")||t.indexOf("/")>-1}function S(t){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(t)}},67804:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.BaseResolver=n.YamlParseError=n.ResolveError=n.Source=void 0,n.makeRefId=x,n.makeDocumentFromString=y,n.resolveDocument=l;const o=e(85519),h=e(13078),f=e(53781),O=e(41386),d=e(3069);class p{constructor(I,L,A){this.absoluteRef=I,this.body=L,this.mimeType=A}getAst(I){return this._ast===void 0&&(this._ast=I(this.body,{filename:this.absoluteRef})??void 0,this._ast&&this._ast.kind===0&&this._ast.value===""&&this._ast.startPosition!==1&&(this._ast.startPosition=1,this._ast.endPosition=1)),this._ast}getLines(){return this._lines===void 0&&(this._lines=this.body.split(/\r\n|[\n\r]/g)),this._lines}}n.Source=p;class c extends Error{constructor(I){super(I.message),this.originalError=I,Object.setPrototypeOf(this,c.prototype)}}n.ResolveError=c;const v=/\((\d+):(\d+)\)$/;class g extends Error{constructor(I,L){super(I.message.split(`
|
|
23
23
|
`)[0]),this.originalError=I,this.source=L,Object.setPrototypeOf(this,g.prototype);const[,A,R]=this.message.match(v)||[];this.line=parseInt(A,10),this.col=parseInt(R,10)}}n.YamlParseError=g;function x(D,I){return D+"::"+I}function y(D,I){const L=new p(I,D);try{return{source:L,parsed:(0,d.parseYaml)(D,{filename:I})}}catch(A){throw new g(A,L)}}class b{constructor(I={http:{headers:[]}}){this.config=I,this.cache=new Map}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(I,L){return(0,f.isAbsoluteUrl)(L)?L:I&&(0,f.isAbsoluteUrl)(I)?new URL(L,I).href:h.resolve(I?h.dirname(I):process.cwd(),L)}async loadExternalRef(I){try{if((0,f.isAbsoluteUrl)(I)){const{body:L,mimeType:A}=await(0,d.readFileFromUrl)(I,this.config.http);return new p(I,L,A)}else{if(o.lstatSync(I).isDirectory())throw new Error(`Expected a file but received a folder at ${I}.`);const L=await o.promises.readFile(I,"utf-8");return new p(I,L.replace(/\r\n/g,`
|
|
24
|
-
`))}}catch(L){throw L.message=L.message.replace(", lstat",""),new c(L)}}parseDocument(I,L=!1){const A=I.absoluteRef.substr(I.absoluteRef.lastIndexOf("."));if(![".json",".json",".yml",".yaml"].includes(A)&&!I.mimeType?.match(/(json|yaml|openapi)/)&&!L)return{source:I,parsed:I.body};try{return{source:I,parsed:(0,d.parseYaml)(I.body,{filename:I.absoluteRef})}}catch(R){throw new g(R,I)}}async resolveDocument(I,L,A=!1){const R=this.resolveExternalRef(I,L),j=this.cache.get(R);if(j)return j;const $=this.loadExternalRef(R).then(T=>this.parseDocument(T,A));return this.cache.set(R,$),$}}n.BaseResolver=b;function P(D,I){return{prev:D,node:I}}function S(D,I){for(;D;){if(D.node===I)return!0;D=D.prev}return!1}const t={name:"unknown",properties:{}},a={name:"scalar",properties:{}};async function l(D){const{rootDocument:I,externalRefResolver:L,rootType:A}=D,R=new Map,j=new Set,$=[];G(I.parsed,I,"#/",A);let T;do T=await Promise.all($);while($.length!==T.length);return R;function G(_,X,q,F){const ue=X.source.absoluteRef,Pe=new Map;le(_,F,ue+q);function le(fe,se,z){if(typeof fe!="object"||fe===null)return;const V=`${se.name}::${z}`;if(j.has(V))return;j.add(V);const[W,Q]=Object.entries(fe).find(([te])=>te==="$anchor")||[];if(Q&&Pe.set(`#${Q}`,fe),Array.isArray(fe)){const te=se.items;if(te===void 0&&se!==t&&se!==O.SpecExtension)return;const ye=typeof te=="function";for(let he=0;he<fe.length;he++){const Le=ye?te(fe[he],(0,f.joinPointer)(z,he)):te;Le===void 0&&se!==t&&se!==O.SpecExtension||le(fe[he],(0,O.isNamedType)(Le)?Le:t,(0,f.joinPointer)(z,he))}return}for(const te of Object.keys(fe)){let ye=fe[te],he=se.properties[te];he===void 0&&(he=se.additionalProperties),typeof he=="function"&&(he=he(ye,te)),he===void 0&&(he=t),se.extensionsPrefix&&te.startsWith(se.extensionsPrefix)&&he===t&&(he=O.SpecExtension),!(0,O.isNamedType)(he)&&he?.directResolveAs&&(he=he.directResolveAs,ye={$ref:ye}),he&&he.name===void 0&&he.resolvable!==!1&&(he=a),!(!(0,O.isNamedType)(he)||typeof ye!="object")&&le(ye,he,(0,f.joinPointer)(z,(0,f.escapePointer)(te)))}if((0,f.isRef)(fe)){const te=De(X,fe,{prev:null,node:fe}).then(ye=>{ye.resolved&&G(ye.node,ye.document,ye.nodePointer,se)});$.push(te)}if((0,f.isExternalValue)(fe)){const te=De(X,{$ref:fe.externalValue},{prev:null,node:fe}).then(ye=>{ye.resolved&&G(ye.node,ye.document,ye.nodePointer,se)});$.push(te)}}async function De(fe,se,z){if(S(z.prev,se))throw new Error("Self-referencing circular pointer");if((0,f.isAnchor)(se.$ref)){await(0,d.nextTick)();const Ie={resolved:!0,isRemote:!1,node:Pe.get(se.$ref),document:fe,nodePointer:se.$ref},xe=x(fe.source.absoluteRef,se.$ref);return R.set(xe,Ie),Ie}const{uri:V,pointer:W}=(0,f.parseRef)(se.$ref),Q=V!==null;let te;try{te=Q?await L.resolveDocument(fe.source.absoluteRef,V):fe}catch(Ie){const xe={resolved:!1,isRemote:Q,document:void 0,error:Ie},Ae=x(fe.source.absoluteRef,se.$ref);return R.set(Ae,xe),xe}let ye={resolved:!0,document:te,isRemote:Q,node:fe.parsed,nodePointer:"#/"},he=te.parsed;const Le=W;for(const Ie of Le)if(typeof he!="object"){he=void 0;break}else if(he[Ie]!==void 0)he=he[Ie],ye.nodePointer=(0,f.joinPointer)(ye.nodePointer,(0,f.escapePointer)(Ie));else if((0,f.isRef)(he)){if(ye=await De(te,he,P(z,he)),te=ye.document||te,typeof ye.node!="object"){he=void 0;break}he=ye.node[Ie],ye.nodePointer=(0,f.joinPointer)(ye.nodePointer,(0,f.escapePointer)(Ie))}else{he=void 0;break}ye.node=he,ye.document=te;const We=x(fe.source.absoluteRef,se.$ref);return ye.document&&(0,f.isRef)(he)&&(ye=await De(ye.document,he,P(z,he))),R.set(We,ye),{...ye}}}}},92692:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NoUnresolvedRefs=void 0,n.reportUnresolvedRef=f;const o=e(67804),h=()=>({ref:{leave(O,{report:d,location:p},c){c.node===void 0&&f(c,d,p)}},DiscriminatorMapping(O,{report:d,resolve:p,location:c}){for(const v of Object.keys(O)){const g=p({$ref:O[v]});if(g.node!==void 0)return;f(g,d,c.child(v))}}});n.NoUnresolvedRefs=h;function f(O,d,p){const c=O.error;c instanceof o.YamlParseError&&d({message:"Failed to parse: "+c.message,location:{source:c.source,pointer:void 0,start:{col:c.col,line:c.line}}});const v=O.error?.message;d({location:p,message:`Can't resolve $ref${v?": "+v:""}`})}},84551:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Arazzo1Types=void 0;const o=e(41386),h=e(18518),f=e(51270),O={properties:{arazzo:{type:"string"},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},d={properties:{},additionalProperties:"Parameter"},p={properties:{},additionalProperties:"SuccessActionObject"},c={properties:{},additionalProperties:"FailureActionObject"},v={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},g=(0,o.mapOf)("Schema"),x={properties:{title:{type:"string"},description:{type:"string"},summary:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},y={properties:{},items:Pe=>Pe?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},b={properties:{name:{type:"string"},type:{type:"string",enum:["openapi"]},url:{type:"string"},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},P={properties:{name:{type:"string"},type:{type:"string",enum:["arazzo"]},url:{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},S={properties:{reference:{type:"string"},value:{}},required:["reference"],extensionsPrefix:"x-"},t={properties:{in:{type:"string",enum:["header","query","path","cookie"]},name:{type:"string"},value:{}},required:["name","value"],extensionsPrefix:"x-"},a={properties:{},items:Pe=>Pe?.reference?"ReusableObject":"Parameter"},l={properties:{workflowId:{type:"string"},summary:{type:"string"},description:{type:"string"},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"}},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList"},required:["workflowId","steps"],extensionsPrefix:"x-"},D=(0,o.listOf)("Workflow"),I=(0,o.listOf)("Step"),L={properties:{stepId:{type:"string"},description:{type:"string"},operationId:{type:"string"},operationPath:{type:"string"},workflowId:{type:"string"},parameters:"Parameters",successCriteria:(0,o.listOf)("CriterionObject"),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-"},A={properties:{},additionalProperties:{type:"string"}},R={properties:{contentType:{type:"string"},payload:{},replacements:(0,o.listOf)("Replacement")},required:["payload"],extensionsPrefix:"x-"},j={properties:{target:{type:"string"},value:{}},required:["target","value"],extensionsPrefix:"x-"},$={properties:{url:{type:"string"},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"]}},required:["url","method"]},T={properties:{condition:{type:"string"},context:{type:"string"},type:Pe=>{if(Pe)return typeof Pe=="string"?{enum:["regex","jsonpath","simple","xpath"]}:Pe?.type==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"]},G={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},_={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},X={properties:{name:{type:"string"},type:{type:"string",enum:["goto","end"]},stepId:{type:"string"},workflowId:{type:"string"},criteria:(0,o.listOf)("CriterionObject")},required:["type","name"]},q={properties:{},items:Pe=>Pe?.type&&Pe?.name?"SuccessActionObject":"ReusableObject"},F={properties:{name:{type:"string"},type:{type:"string",enum:["goto","retry","end"]},workflowId:{type:"string"},stepId:{type:"string"},retryAfter:{type:"number"},retryLimit:{type:"number"},criteria:(0,o.listOf)("CriterionObject")},required:["type","name"]},ue={properties:{},items:Pe=>Pe?.type&&Pe?.name?"FailureActionObject":"ReusableObject"};n.Arazzo1Types={Root:O,Info:x,SourceDescriptions:y,OpenAPISourceDescription:b,ArazzoSourceDescription:P,Parameters:a,Parameter:t,ReusableObject:S,Workflows:D,Workflow:l,Steps:I,Step:L,RequestBody:R,Replacement:j,ExtendedOperation:$,Outputs:A,CriterionObject:T,XPathCriterion:_,JSONPathCriterion:G,SuccessActionObject:X,OnSuccessActionList:q,FailureActionObject:F,OnFailureActionList:ue,Schema:h.Schema,NamedSchemas:(0,o.mapOf)("Schema"),ExternalDocs:f.ExternalDocs,DiscriminatorMapping:f.DiscriminatorMapping,Discriminator:f.Discriminator,DependentRequired:h.DependentRequired,SchemaProperties:h.SchemaProperties,PatternProperties:h.SchemaProperties,Components:v,NamedInputs:g,NamedParameters:d,NamedSuccessActions:p,NamedFailureActions:c,Xml:f.Xml}},46036:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.AsyncApi2Types=n.AsyncApi2Bindings=n.Dependencies=n.SecuritySchemeFlows=n.Discriminator=n.DiscriminatorMapping=n.SchemaProperties=n.Schema=n.MessageExample=n.CorrelationId=n.License=n.Contact=n.ServerVariable=n.ServerMap=n.ExternalDocs=n.Tag=void 0;const o=e(41386),h=e(53781),f={properties:{asyncapi:null,info:"Info",id:{type:"string"},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},O={properties:{description:{type:"string"},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"}}}},d={properties:{},additionalProperties:"Channel"},p={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}};n.Tag={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"]},n.ExternalDocs={properties:{description:{type:"string"},url:{type:"string"}},required:["url"]};const c={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},v={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},g={properties:{url:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"]};n.ServerMap={properties:{},additionalProperties:(tn,fr)=>fr.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},n.ServerVariable={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}},required:[]};const x={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License"},required:["title","version"]};n.Contact={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}}},n.License={properties:{name:{type:"string"},url:{type:"string"}},required:["name"]};const y={properties:{description:{type:"string"},schema:"Schema",location:{type:"string"}}};n.CorrelationId={properties:{description:{type:"string"},location:{type:"string"}},required:["location"]};const b={properties:{messageId:{type:"string"},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},P={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},S={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},t={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[]},a={properties:{messageId:{type:"string"},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},l={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[]};n.MessageExample={properties:{payload:{isExample:!0},summary:{type:"string"},name:{type:"string"},headers:{type:"object"}}},n.Schema={properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",myArbitraryKeyword:{type:"boolean"},title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:tn=>Array.isArray(tn)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:(0,o.listOf)("Schema"),anyOf:(0,o.listOf)("Schema"),oneOf:(0,o.listOf)("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:tn=>Array.isArray(tn)?(0,o.listOf)("Schema"):"Schema",additionalProperties:tn=>typeof tn=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:tn=>typeof tn=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},n.SchemaProperties={properties:{},additionalProperties:tn=>typeof tn=="boolean"?{type:"boolean"}:"Schema"},n.DiscriminatorMapping={properties:{},additionalProperties:tn=>(0,h.isMappingRef)(tn)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},n.Discriminator={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]};const D={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},I={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"]},L={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},A={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},R={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"]};n.SecuritySchemeFlows={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}};const j={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"}},required(tn){switch(tn?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(tn){switch(tn?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"};n.Dependencies={properties:{},additionalProperties:tn=>Array.isArray(tn)?{type:"array",items:{type:"string"}}:"Schema"};const $={properties:{}};p.properties.http=$;const T={properties:{}};v.properties.http=T;const G={properties:{headers:"Schema",bindingVersion:{type:"string"}}};P.properties.http=G;const _={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},headers:"Schema",bindingVersion:{type:"string"}}};S.properties.http=_;const X={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}}};p.properties.ws=X;const q={properties:{}};v.properties.ws=q;const F={properties:{}};P.properties.ws=F;const ue={properties:{}};S.properties.ws=ue;const Pe={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"}}},le={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}}};p.properties.kafka=le;const De={properties:{}};v.properties.kafka=De;const fe={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}}};P.properties.kafka=fe;const se={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}}};S.properties.kafka=se;const z={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};p.properties.anypointmq=z;const V={properties:{}};v.properties.anypointmq=V;const W={properties:{headers:"Schema",bindingVersion:{type:"string"}}};P.properties.anypointmq=W;const Q={properties:{}};S.properties.anypointmq=Q;const te={properties:{}};p.properties.amqp=te;const ye={properties:{}};v.properties.amqp=ye;const he={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}}};P.properties.amqp=he;const Le={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}}};S.properties.amqp=Le;const We={properties:{}};p.properties.amqp1=We;const Ie={properties:{}};v.properties.amqp1=Ie;const xe={properties:{}};P.properties.amqp1=xe;const Ae={properties:{}};S.properties.amqp1=Ae;const B={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};p.properties.mqtt=B;const U={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},Me={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},bindingVersion:{type:"string"}}};v.properties.mqtt=Me;const He={properties:{bindingVersion:{type:"string"}}};P.properties.mqtt=He;const pe={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};S.properties.mqtt=pe;const ce={properties:{}};p.properties.mqtt5=ce;const Oe={properties:{}};v.properties.mqtt5=Oe;const ht={properties:{}};P.properties.mqtt5=ht;const lt={properties:{}};S.properties.mqtt5=lt;const Z={properties:{}};p.properties.nats=Z;const at={properties:{}};v.properties.nats=at;const ot={properties:{}};P.properties.nats=ot;const Te={properties:{queue:{type:"string"},bindingVersion:{type:"string"}}};S.properties.nats=Te;const ke={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};p.properties.jms=ke;const Be={properties:{}};v.properties.jms=Be;const ne={properties:{headers:"Schema",bindingVersion:{type:"string"}}};P.properties.jms=ne;const Y={properties:{headers:"Schema",bindingVersion:{type:"string"}}};S.properties.jms=Y;const ee={properties:{}};p.properties.solace=ee;const we={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"}}};v.properties.solace=we;const Ze={properties:{}};P.properties.solace=Ze;const nt={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},xt={properties:{bindingVersion:{type:"string"},destinations:(0,o.listOf)("SolaceDestination")}};S.properties.solace=xt;const Fe={properties:{}};p.properties.stomp=Fe;const _e={properties:{}};v.properties.stomp=_e;const Pt={properties:{}};P.properties.stomp=Pt;const Ke={properties:{}};S.properties.stomp=Ke;const qe={properties:{}};p.properties.redis=qe;const mt={properties:{}};v.properties.redis=mt;const Tt={properties:{}};P.properties.redis=Tt;const Nt={properties:{}};S.properties.redis=Nt;const Jt={properties:{}};p.properties.mercure=Jt;const qt={properties:{}};v.properties.mercure=qt;const fn={properties:{}};P.properties.mercure=fn;const xn={properties:{}};S.properties.mercure=xn,n.AsyncApi2Bindings={HttpServerBinding:T,HttpChannelBinding:$,HttpMessageBinding:G,HttpOperationBinding:_,WsServerBinding:q,WsChannelBinding:X,WsMessageBinding:F,WsOperationBinding:ue,KafkaServerBinding:De,KafkaTopicConfiguration:Pe,KafkaChannelBinding:le,KafkaMessageBinding:fe,KafkaOperationBinding:se,AnypointmqServerBinding:V,AnypointmqChannelBinding:z,AnypointmqMessageBinding:W,AnypointmqOperationBinding:Q,AmqpServerBinding:ye,AmqpChannelBinding:te,AmqpMessageBinding:he,AmqpOperationBinding:Le,Amqp1ServerBinding:Ie,Amqp1ChannelBinding:We,Amqp1MessageBinding:xe,Amqp1OperationBinding:Ae,MqttServerBindingLastWill:U,MqttServerBinding:Me,MqttChannelBinding:B,MqttMessageBinding:He,MqttOperationBinding:pe,Mqtt5ServerBinding:Oe,Mqtt5ChannelBinding:ce,Mqtt5MessageBinding:ht,Mqtt5OperationBinding:lt,NatsServerBinding:at,NatsChannelBinding:Z,NatsMessageBinding:ot,NatsOperationBinding:Te,JmsServerBinding:Be,JmsChannelBinding:ke,JmsMessageBinding:ne,JmsOperationBinding:Y,SolaceServerBinding:we,SolaceChannelBinding:ee,SolaceMessageBinding:Ze,SolaceDestination:nt,SolaceOperationBinding:xt,StompServerBinding:_e,StompChannelBinding:Fe,StompMessageBinding:Pt,StompOperationBinding:Ke,RedisServerBinding:mt,RedisChannelBinding:qe,RedisMessageBinding:Tt,RedisOperationBinding:Nt,MercureServerBinding:qt,MercureChannelBinding:Jt,MercureMessageBinding:fn,MercureOperationBinding:xn,ServerBindings:v,ChannelBindings:p,MessageBindings:P,OperationBindings:S},n.AsyncApi2Types={...n.AsyncApi2Bindings,Root:f,Tag:n.Tag,TagList:(0,o.listOf)("Tag"),ServerMap:n.ServerMap,ExternalDocs:n.ExternalDocs,Server:g,ServerVariable:n.ServerVariable,ServerVariablesMap:(0,o.mapOf)("ServerVariable"),SecurityRequirement:c,SecurityRequirementList:(0,o.listOf)("SecurityRequirement"),Info:x,Contact:n.Contact,License:n.License,ChannelMap:d,Channel:O,Parameter:y,ParametersMap:(0,o.mapOf)("Parameter"),Operation:l,Schema:n.Schema,MessageExample:n.MessageExample,SchemaProperties:n.SchemaProperties,DiscriminatorMapping:n.DiscriminatorMapping,Discriminator:n.Discriminator,Components:D,NamedSchemas:(0,o.mapOf)("Schema"),NamedMessages:(0,o.mapOf)("Message"),NamedMessageTraits:(0,o.mapOf)("MessageTrait"),NamedOperationTraits:(0,o.mapOf)("OperationTrait"),NamedParameters:(0,o.mapOf)("Parameter"),NamedSecuritySchemes:(0,o.mapOf)("SecurityScheme"),NamedCorrelationIds:(0,o.mapOf)("CorrelationId"),ImplicitFlow:I,PasswordFlow:L,ClientCredentials:A,AuthorizationCode:R,SecuritySchemeFlows:n.SecuritySchemeFlows,SecurityScheme:j,Message:b,MessageBindings:P,OperationBindings:S,OperationTrait:t,OperationTraitList:(0,o.listOf)("OperationTrait"),MessageTrait:a,MessageTraitList:(0,o.listOf)("MessageTrait"),MessageExampleList:(0,o.listOf)("MessageExample"),CorrelationId:n.CorrelationId,Dependencies:n.Dependencies}},93979:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.AsyncApi3Types=void 0;const o=e(41386),h=e(46036),f={properties:{asyncapi:{type:"string",enum:["3.0.0"]},info:"Info",id:{type:"string"},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string"}},required:["asyncapi","info"]},O={properties:{address:{type:"string"},messages:"NamedMessages",title:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"}},d={properties:{host:{type:"string"},pathname:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"]},p={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"]},c={properties:{description:{type:"string"},enum:{type:"array",items:{type:"string"}},default:{type:"string"},examples:{type:"array",items:{type:"string"}},location:{type:"string"}}},v={properties:{headers:"Schema",payload:L=>L&&L?.schemaFormat?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},g={properties:{tags:"TagList",title:{type:"string"},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[]},x={properties:{headers:L=>typeof L=="function"||typeof L=="object"&&L?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},y={properties:{action:{type:"string",enum:["send","receive"]},channel:"Channel",title:{type:"string"},tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},b={properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"}},P={properties:{location:{type:"string"},description:{type:"string"}},required:["location"]},S={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},t={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"]},a={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},l={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},D={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"]},I={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"},scopes:{type:"array",items:{type:"string"}}},required(L){switch(L?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(L){switch(L?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-"};n.AsyncApi3Types={...h.AsyncApi2Bindings,CorrelationId:h.CorrelationId,SecuritySchemeFlows:h.SecuritySchemeFlows,ServerVariable:h.ServerVariable,Contact:h.Contact,License:h.License,MessageExample:h.MessageExample,Tag:h.Tag,Dependencies:h.Dependencies,Schema:h.Schema,Discriminator:h.Discriminator,DiscriminatorMapping:h.DiscriminatorMapping,SchemaProperties:h.SchemaProperties,ServerMap:h.ServerMap,ExternalDocs:h.ExternalDocs,Root:f,Channel:O,Parameter:c,Info:p,Server:d,MessageTrait:x,Operation:y,OperationReply:b,OperationReplyAddress:P,Components:S,ImplicitFlow:t,PasswordFlow:a,ClientCredentials:l,AuthorizationCode:D,SecurityScheme:I,Message:v,OperationTrait:g,ServerVariablesMap:(0,o.mapOf)("ServerVariable"),NamedTags:(0,o.mapOf)("Tag"),NamedExternalDocs:(0,o.mapOf)("ExternalDocs"),NamedChannels:(0,o.mapOf)("Channel"),ParametersMap:(0,o.mapOf)("Parameter"),NamedOperations:(0,o.mapOf)("Operation"),NamedOperationReplies:(0,o.mapOf)("OperationReply"),NamedOperationRelyAddresses:(0,o.mapOf)("OperationReplyAddress"),NamedSchemas:(0,o.mapOf)("Schema"),NamedMessages:(0,o.mapOf)("Message"),NamedMessageTraits:(0,o.mapOf)("MessageTrait"),NamedOperationTraits:(0,o.mapOf)("OperationTrait"),NamedParameters:(0,o.mapOf)("Parameter"),NamedSecuritySchemes:(0,o.mapOf)("SecurityScheme"),NamedCorrelationIds:(0,o.mapOf)("CorrelationId"),ServerList:(0,o.listOf)("Server"),SecuritySchemeList:(0,o.listOf)("SecurityScheme"),MessageList:(0,o.listOf)("Message"),OperationTraitList:(0,o.listOf)("OperationTrait"),MessageTraitList:(0,o.listOf)("MessageTrait"),MessageExampleList:(0,o.listOf)("MessageExample"),TagList:(0,o.listOf)("Tag")}},41386:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SpecExtension=void 0,n.listOf=e,n.mapOf=o,n.normalizeTypes=h,n.isNamedType=f;function e(O){return{name:`${O}List`,properties:{},items:O}}function o(O){return{name:`${O}Map`,properties:{},additionalProperties:()=>O}}n.SpecExtension={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function h(O,d={}){const p={};for(const g of Object.keys(O))p[g]={...O[g],name:g};for(const g of Object.values(p))c(g);return p.SpecExtension=n.SpecExtension,p;function c(g){if(g.additionalProperties&&(g.additionalProperties=v(g.additionalProperties)),g.items&&(g.items=v(g.items)),g.properties){const x={};for(const[y,b]of Object.entries(g.properties))x[y]=v(b),d.doNotResolveExamples&&b&&b.isExample&&(x[y]={...b,resolvable:!1});g.properties=x}}function v(g){if(typeof g=="string"){if(!p[g])throw new Error(`Unknown type name found: ${g}`);return p[g]}else return typeof g=="function"?(x,y)=>v(g(x,y)):g&&g.name?(g={...g},c(g),g):g&&g.directResolveAs?{...g,directResolveAs:v(g.directResolveAs)}:g}}function f(O){return typeof O?.name=="string"}},20430:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getNodeTypesFromJSONSchema=c;const o=e(61203),h=e(3069),f=new o.default({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function O(v,g){if(g.some(x=>typeof x=="function"))throw new Error("Unexpected oneOf inside oneOf.");return x=>{let y=v.findIndex(b=>f.validate(b,x));return y===-1&&(y=0),g[y]}}function d(v,g,x){if(!g||typeof g=="boolean")throw new Error(`Unexpected schema in ${v}.`);if(g instanceof Array)throw new Error(`Unexpected array schema in ${v}. Try using oneOf instead.`);if(g.type==="null")throw new Error(`Unexpected null schema type in ${v} schema.`);if(g.type instanceof Array)throw new Error(`Unexpected array schema type in ${v} schema. Try using oneOf instead.`);if(g.type==="string"||g.type==="number"||g.type==="integer"||g.type==="boolean"){const{default:y,format:b,...P}=g;return P}if(g.type==="object"&&!g.properties&&!g.oneOf){if(g.additionalProperties===void 0||g.additionalProperties===!0)return{type:"object"};if(g.additionalProperties===!1)return{type:"object",properties:{}}}if(g.allOf)throw new Error(`Unexpected allOf in ${v}.`);if(g.anyOf)throw new Error(`Unexpected anyOf in ${v}.`);if((0,h.isPlainObject)(g.properties)||(0,h.isPlainObject)(g.additionalProperties)||(0,h.isPlainObject)(g.items)&&((0,h.isPlainObject)(g.items.properties)||(0,h.isPlainObject)(g.items.additionalProperties)||g.items.oneOf))return p(v,g,x);if(g.oneOf)if(g.discriminator){const y=g.discriminator?.propertyName;if(!y)throw new Error(`Unexpected discriminator without a propertyName in ${v}.`);const b=g.oneOf.map((P,S)=>{if(typeof P=="boolean")throw new Error(`Unexpected boolean schema in ${v} at position ${S} in oneOf.`);const t=P?.properties?.[y];if(!t||typeof t=="boolean")throw new Error(`Unexpected property '${t}' schema in ${v} at position ${S} in oneOf.`);const a=t.const;return d(a,P,x)});return(P,S)=>{if((0,h.isPlainObject)(P)){const t=P[y];if(typeof t=="string"&&x[t])return t}return O(g.oneOf,b)(P,S)}}else{const y=g.oneOf.map((b,P)=>d(v+"_"+P,b,x));return O(g.oneOf,y)}return g}function p(v,g,x){if(!g||typeof g=="boolean")throw new Error(`Unexpected schema in ${v}.`);if(g instanceof Array)throw new Error(`Unexpected array schema in ${v}. Try using oneOf instead.`);if(g.type==="null")throw new Error(`Unexpected null schema type in ${v} schema.`);if(g.type instanceof Array)throw new Error(`Unexpected array schema type in ${v} schema. Try using oneOf instead.`);const y={};for(const[t,a]of Object.entries(g.properties||{}))y[t]=d(v+"."+t,a,x);let b;(0,h.isPlainObject)(g.additionalProperties)&&(b=d(v+"_additionalProperties",g.additionalProperties,x)),g.additionalProperties===!0&&(b={});let P;(0,h.isPlainObject)(g.items)&&((0,h.isPlainObject)(g.items.properties)||(0,h.isPlainObject)(g.items.additionalProperties)||g.items.oneOf)&&(P=d(v+"_items",g.items,x));let S=g.required;return g.oneOf&&g.oneOf.every(t=>!!t.required)&&(S=t=>{const a=g.oneOf.map(D=>[...g.required||[],...D.required]);let l=a.findIndex(D=>D.every(I=>t[I]!==void 0));return l===-1&&(l=0),a[l]}),x[v]={properties:y,additionalProperties:b,items:P,required:S},v}function c(v,g){const x={};return d(v,g,x),x}},81989:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Oas2Types=void 0;const o=e(41386),h=/^[0-9][0-9Xx]{2}$/,f={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},O={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},d={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},p={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},c={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},v={properties:{},additionalProperties:(q,F)=>F.startsWith("/")?"PathItem":void 0},g={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},x={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},y={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},b={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},P={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},S={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(q){return!q||!q.in?["name","in"]:q.in==="body"?["name","in","schema"]:q.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},t={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(q){return q&&q.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},a={properties:{default:"Response"},additionalProperties:(q,F)=>h.test(F)?"Response":void 0},l={properties:{description:{type:"string"},schema:"Schema",headers:(0,o.mapOf)("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},D={properties:{},additionalProperties:{isExample:!0}},I={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(q){return q&&q.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},L={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},A={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},R={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:q=>Array.isArray(q)?(0,o.listOf)("Schema"):"Schema",allOf:(0,o.listOf)("Schema"),properties:"SchemaProperties",additionalProperties:q=>typeof q=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},j={properties:{},additionalProperties:{type:"string"}},$={properties:{},additionalProperties:"Schema"},T={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},G={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},"x-defaultClientId":{type:"string"}},required(q){switch(q?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(q?.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(q){switch(q?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(q?.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},_={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},X={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"};n.Oas2Types={Root:f,Tag:L,TagList:(0,o.listOf)("Tag"),TagGroups:(0,o.listOf)("TagGroup"),TagGroup:A,ExternalDocs:P,Example:X,ExamplesMap:(0,o.mapOf)("Example"),EnumDescriptions:j,SecurityRequirement:_,SecurityRequirementList:(0,o.listOf)("SecurityRequirement"),Info:O,Contact:p,License:c,Logo:d,Paths:v,PathItem:g,Parameter:S,ParameterItems:t,ParameterList:(0,o.listOf)("Parameter"),Operation:x,Examples:D,Header:I,Responses:a,Response:l,Schema:R,Xml:T,SchemaProperties:$,NamedSchemas:(0,o.mapOf)("Schema"),NamedResponses:(0,o.mapOf)("Response"),NamedParameters:(0,o.mapOf)("Parameter"),NamedSecuritySchemes:(0,o.mapOf)("SecurityScheme"),SecurityScheme:G,XCodeSample:y,XCodeSampleList:(0,o.listOf)("XCodeSample"),XServerList:(0,o.listOf)("XServer"),XServer:b}},51270:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Oas3Types=n.Discriminator=n.DiscriminatorMapping=n.Xml=n.ExternalDocs=void 0;const o=e(41386),h=e(53781),f=/^[0-9][0-9Xx]{2}$/,O={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-"},d={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},p={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}},extensionsPrefix:"x-"};n.ExternalDocs={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"};const c={properties:{url:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-"},v={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},required:["default"],extensionsPrefix:"x-"},g={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},x={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},y={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},b={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},P={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},S={properties:{},additionalProperties:(Q,te)=>te.startsWith("/")?"PathItem":void 0},t={properties:{},additionalProperties:()=>"PathItem"},a={properties:{$ref:{type:"string"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string"},description:{type:"string"},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation"},extensionsPrefix:"x-"},l={properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-"},D={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},I={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},L={properties:{description:{type:"string"},required:{type:"boolean"},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-"},A={properties:{},additionalProperties:"MediaType"},R={properties:{schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-"},j={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},$={properties:{contentType:{type:"string"},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"}},extensionsPrefix:"x-"},T={properties:{},additionalProperties:{type:"string"}},G={properties:{description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-"},_={properties:{default:"Response"},additionalProperties:(Q,te)=>f.test(te)?"Response":void 0},X={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},q={properties:{operationRef:{type:"string"},operationId:{type:"string"},parameters:null,requestBody:null,description:{type:"string"},server:"Server"},extensionsPrefix:"x-"},F={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"]},allOf:(0,o.listOf)("Schema"),anyOf:(0,o.listOf)("Schema"),oneOf:(0,o.listOf)("Schema"),not:"Schema",properties:"SchemaProperties",items:Q=>Array.isArray(Q)?(0,o.listOf)("Schema"):"Schema",additionalProperties:Q=>typeof Q=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-"};n.Xml={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"};const ue={properties:{},additionalProperties:"Schema"};n.DiscriminatorMapping={properties:{},additionalProperties:Q=>(0,h.isMappingRef)(Q)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},n.Discriminator={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-"};const Pe={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-"},le={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-"},De={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},fe={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},se={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":Q=>typeof Q=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},z={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-"},V={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"},"x-defaultClientId":{type:"string"}},required(Q){switch(Q?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(Q){switch(Q?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},W={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}}};n.Oas3Types={Root:O,Tag:d,TagList:(0,o.listOf)("Tag"),TagGroups:(0,o.listOf)("TagGroup"),TagGroup:p,ExternalDocs:n.ExternalDocs,Server:c,ServerList:(0,o.listOf)("Server"),ServerVariable:v,ServerVariablesMap:(0,o.mapOf)("ServerVariable"),SecurityRequirement:g,SecurityRequirementList:(0,o.listOf)("SecurityRequirement"),Info:x,Contact:b,License:P,Paths:S,PathItem:a,Parameter:l,ParameterList:(0,o.listOf)("Parameter"),Operation:D,Callback:(0,o.mapOf)("PathItem"),CallbacksMap:(0,o.mapOf)("Callback"),RequestBody:L,MediaTypesMap:A,MediaType:R,Example:j,ExamplesMap:(0,o.mapOf)("Example"),Encoding:$,EncodingMap:(0,o.mapOf)("Encoding"),EnumDescriptions:T,Header:G,HeadersMap:(0,o.mapOf)("Header"),Responses:_,Response:X,Link:q,Logo:y,Schema:F,Xml:n.Xml,SchemaProperties:ue,DiscriminatorMapping:n.DiscriminatorMapping,Discriminator:n.Discriminator,Components:Pe,LinksMap:(0,o.mapOf)("Link"),NamedSchemas:(0,o.mapOf)("Schema"),NamedResponses:(0,o.mapOf)("Response"),NamedParameters:(0,o.mapOf)("Parameter"),NamedExamples:(0,o.mapOf)("Example"),NamedRequestBodies:(0,o.mapOf)("RequestBody"),NamedHeaders:(0,o.mapOf)("Header"),NamedSecuritySchemes:(0,o.mapOf)("SecurityScheme"),NamedLinks:(0,o.mapOf)("Link"),NamedCallbacks:(0,o.mapOf)("Callback"),ImplicitFlow:le,PasswordFlow:De,ClientCredentials:fe,AuthorizationCode:se,OAuth2Flows:z,SecurityScheme:V,XCodeSample:I,XCodeSampleList:(0,o.listOf)("XCodeSample"),XUsePkce:W,WebhooksMap:t}},18518:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Oas3_1Types=n.DependentRequired=n.SchemaProperties=n.Schema=void 0;const o=e(41386),h=e(51270),f={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string"}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-"},O={properties:{name:{type:"string"},url:{type:"string"},identifier:{type:"string"}},required:["name"],extensionsPrefix:"x-"},d={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},summary:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},p={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks",pathItems:"NamedPathItems"},extensionsPrefix:"x-"},c={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-"};n.Schema={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:g=>Array.isArray(g)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:(0,o.listOf)("Schema"),anyOf:(0,o.listOf)("Schema"),oneOf:(0,o.listOf)("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:(0,o.mapOf)("Schema"),dependentRequired:"DependentRequired",prefixItems:(0,o.listOf)("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:g=>typeof g=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:g=>typeof g=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:g=>typeof g=="boolean"?{type:"boolean"}:"Schema",additionalProperties:g=>typeof g=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},n.SchemaProperties={properties:{},additionalProperties:g=>typeof g=="boolean"?{type:"boolean"}:"Schema"};const v={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(g){switch(g?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(g){switch(g?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(g?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"};n.DependentRequired={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},n.Oas3_1Types={...h.Oas3Types,Info:d,Root:f,Schema:n.Schema,SchemaProperties:n.SchemaProperties,PatternProperties:n.SchemaProperties,License:O,Components:p,NamedPathItems:(0,o.mapOf)("PathItem"),SecurityScheme:v,Operation:c,DependentRequired:n.DependentRequired}},33290:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Overlay1Types=void 0;const o=e(41386),h={properties:{overlay:{type:"string"},info:"Info",extends:{type:"string"},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-"},f={properties:{title:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},O=(0,o.listOf)("Action"),d={properties:{target:{type:"string"},description:{type:"string"},update:{},remove:{type:"boolean"}},required:["target"],extensionsPrefix:"x-"};n.Overlay1Types={Root:h,Info:f,Actions:O,Action:d}},22074:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ConfigTypes=void 0,n.createConfigTypes=Jt;const o=e(56058),h=e(41386),f=e(97089),O=e(3069),d=e(20430),p=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-url","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-excludes-patterns","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","spec-strict-refs","no-unresolved-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type"],c=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-url","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-excludes-patterns","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","spec-strict-refs","no-unresolved-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization"],v=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash"],g=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash"],x=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","workflow-dependsOn","parameters-unique","step-onSuccess-unique","step-onFailure-unique","respect-supported-versions","requestBody-replacements-unique","no-criteria-xpath","criteria-unique"],y=["info-contact"],b=[...p,...c,...v,...g,...x,...y,"spec","struct"],P=null,S=null,t=null,a={properties:{extends:{type:"array",items:{type:"string"}},rules:"Rules",oas2Rules:"Rules",oas3_0Rules:"Rules",oas3_1Rules:"Rules",async2Rules:"Rules",arazzo1Rules:"Rules",preprocessors:{type:"object"},oas2Preprocessors:{type:"object"},oas3_0Preprocessors:{type:"object"},oas3_1Preprocessors:{type:"object"},async2Preprocessors:{type:"object"},arazzoPreprocessors:{type:"object"},decorators:{type:"object"},oas2Decorators:{type:"object"},oas3_0Decorators:{type:"object"},oas3_1Decorators:{type:"object"},async2Decorators:{type:"object"},arazzo1Decorators:{type:"object"}}},l=fn=>({...fn.rootRedoclyConfigSchema,properties:{...fn.rootRedoclyConfigSchema.properties,...a.properties,apis:"ConfigApis","features.openapi":"ConfigReferenceDocs","features.mockServer":"ConfigMockServer",organization:{type:"string"},region:{enum:["us","eu"]},telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}},files:{type:"array",items:{type:"string"}}}}),D={properties:{},additionalProperties:"ConfigApisProperties"},I=fn=>({...fn["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...fn["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,labels:{type:"array",items:{type:"string"}},...a.properties,"features.openapi":"ConfigReferenceDocs","features.mockServer":"ConfigMockServer",files:{type:"array",items:{type:"string"}}}}),L={properties:{headers:{type:"array",items:{type:"string"}}}},A={properties:{},additionalProperties:(fn,xn)=>{if(xn.startsWith("rule/"))return typeof fn=="string"?{enum:["error","warn","off"]}:"Assert";if(xn.startsWith("assert/"))return typeof fn=="string"?{enum:["error","warn","off"]}:"Assert";if(b.includes(xn)||(0,O.isCustomRuleId)(xn))return typeof fn=="string"?{enum:["error","warn","off"]}:"ObjectRule";if(xn==="metadata-schema"||xn==="custom-fields-schema")return"Schema"}},R={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"]},j={properties:{},additionalProperties:{}};function $(fn){return{properties:{type:{enum:[...new Set(["any",...fn,"SpecExtension"])]},property:xn=>Array.isArray(xn)?{type:"array",items:{type:"string"}}:xn===null?null:{type:"string"},filterInParentKeys:{type:"array",items:{type:"string"}},filterOutParentKeys:{type:"array",items:{type:"string"}},matchParentKeys:{type:"string"}},required:["type"]}}const T={properties:{enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},notPattern:{type:"string"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"]},mutuallyExclusive:{type:"array",items:{type:"string"}},mutuallyRequired:{type:"array",items:{type:"string"}},required:{type:"array",items:{type:"string"}},requireAny:{type:"array",items:{type:"string"}},disallowed:{type:"array",items:{type:"string"}},defined:{type:"boolean"},nonEmpty:{type:"boolean"},minLength:{type:"integer"},maxLength:{type:"integer"},ref:fn=>typeof fn=="string"?{type:"string"}:{type:"boolean"},const:fn=>{if(typeof fn=="string")return{type:"string"};if(typeof fn=="number")return{type:"number"};if(typeof fn=="boolean")return{type:"boolean"}}},additionalProperties:(fn,xn)=>{if(/^\w+\/\w+$/.test(xn))return{type:"object"}}},G={properties:{subject:"AssertionDefinitionSubject",assertions:"AssertionDefinitionAssertions"},required:["subject","assertions"]},_={properties:{subject:"AssertionDefinitionSubject",assertions:"AssertionDefinitionAssertions",where:(0,h.listOf)("AssertDefinition"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},severity:{enum:["error","warn","off"]}},required:["subject","assertions"]},X={properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},q={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"}}},F={properties:{beforeInfo:(0,h.listOf)("CommonConfigSidebarLinks"),end:(0,h.listOf)("CommonConfigSidebarLinks")}},ue={properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Pe={properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},le={properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},De={properties:(0,O.pickObjectProps)(Pe.properties,["light","dark"])},fe={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"}}},se={properties:{error:"CommonColorProps",info:"CommonColorProps",redirect:"CommonColorProps",success:"CommonColorProps"}},z={properties:(0,O.omitObjectProps)(Pe.properties,["dark"])},V={properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},W={properties:{accent:"CommonThemeColors",border:"BorderThemeColors",error:"CommonThemeColors",http:"HttpColors",primary:"CommonThemeColors",responses:"ResponseColors",secondary:"SecondaryColors",success:"CommonThemeColors",text:"TextThemeColors",tonalOffset:{type:"number"},warning:"CommonThemeColors"}},Q={properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},te={properties:{small:"SizeProps",medium:"SizeProps",large:"SizeProps",xlarge:"SizeProps"}},ye={properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},he={properties:{...(0,O.omitObjectProps)(ye.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:"Sizes"}},Le={properties:(0,O.pickObjectProps)(ye.properties,["fontSize","lineHeight"])},We={properties:{medium:"BadgeFontConfig",small:"BadgeFontConfig"}},Ie={properties:{...(0,O.omitObjectProps)(ye.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:"BadgeSizes"}},xe={properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Ae={properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},B={properties:{fullWidth:{type:"boolean"}}},U={properties:{buttons:"ButtonsConfig",httpBadges:"HttpBadgesConfig",layoutControls:"LabelControls",panels:"Panels",tryItButton:"TryItButton",tryItSendButton:"TryItButton"}},Me={properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},He={properties:{maxWidth:"Breakpoints"}},pe={properties:{maxWidth:"Breakpoints",middlePanelMaxWidth:"Breakpoints"}},ce={properties:{showDarkRightPanel:{type:"boolean"},stacked:"StackedConfig","three-panel":"ThreePanelConfig"}},Oe={properties:{backgroundColor:{type:"string"},border:{type:"string"}}},ht={properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:"SchemaColorsConfig",defaultDetailsWidth:{type:"string"},examples:"SchemaColorsConfig",labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},lt={properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Z={properties:(0,O.pickObjectProps)(lt.properties,["textTransform"])},at={properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},ot={properties:{...(0,O.omitObjectProps)(ye.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:"GroupItemsConfig",level1items:"Level1Items",rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:"SpacingConfig",textColor:{type:"string"},width:{type:"string"}}},Te={properties:{...ye.properties,color:{type:"string"},transform:{type:"string"}}},ke={properties:{...ye.properties,backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},Be={properties:(0,O.omitObjectProps)(ye.properties,["fontSize"])},ne={properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Y={properties:{code:"CodeConfig",fieldName:"FontConfig",...(0,O.pickObjectProps)(ye.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:"Heading",heading2:"Heading",heading3:"Heading",headings:"HeadingsConfig",lineHeight:{type:"string"},links:"LinksConfig",optimizeSpeed:{type:"boolean"},rightPanelHeading:"Heading",smoothing:{enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},ee={properties:{color:{type:"string"},...(0,O.omitObjectProps)(ye.properties,["fontWeight"])}},we={properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:"TokenProps"}},Ze={properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},nt={properties:{backgroundColor:{type:"string"},color:{type:"string"}}},xt={properties:{custom:{type:"string"}}},Fe={properties:{DownloadButton:"ButtonOverrides",NextSectionButton:"ButtonOverrides"}},_e={properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},Pt={properties:{borderRadius:{type:"string"}}},Ke={properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},qe={properties:{breakpoints:"Breakpoints",codeBlock:"CodeBlock",colors:"ThemeColors",components:"ConfigThemeComponents",layout:"Layout",logo:"ConfigThemeLogo",fab:"Fab",overrides:"Overrides",rightPanel:"RightPanel",schema:"ConfigThemeSchema",shape:"Shape",sidebar:"Sidebar",spacing:"ThemeSpacing",typography:"Typography",links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},mt={properties:{skipOptionalParameters:{type:"boolean"},languages:(0,h.listOf)("ConfigLanguage")},required:["languages"]},Tt={properties:{theme:"ConfigTheme",corsProxyUrl:{type:"string"},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:"GenerateCodeSamples",generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLoading:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSchemaTitles:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:fn=>typeof fn=="number"?{type:"number",minimum:1}:{type:"string"},labels:"ConfigLabels",layout:{enum:["stacked","three-panel"]},maxDisplayedEnumValues:{type:"number"},menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},oAuth2RedirectURI:{type:"string"},onDeepLinkClick:{type:"object"},onlyRequiredInSamples:{type:"boolean"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requestInterceptor:{type:"object"},requiredPropsFirst:{type:"boolean"},routingBasePath:{type:"string"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:fn=>typeof fn=="number"?{type:"number",minimum:0}:{type:"string"},schemaDefinitionsTagName:{type:"string"},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:fn=>typeof fn=="number"?{type:"number"}:{type:"string"},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showExtensions:fn=>typeof fn=="boolean"?{type:"boolean"}:{type:"array",items:{type:"string"}},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:"ConfigSidebarLinks",sideNavStyle:{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"},mockServer:{properties:{url:{type:"string"},position:{enum:["first","last","replace","off"]},description:{type:"string"}}},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:{}},Nt={properties:{strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"}}};function Jt(fn,xn){const tn=Object.values(f.SpecVersion).flatMap(pr=>{const wr=xn?.styleguide?xn.styleguide.extendTypes((0,f.getTypes)(pr),pr):(0,f.getTypes)(pr);return Object.keys(wr)}),fr=(0,d.getNodeTypesFromJSONSchema)("rootRedoclyConfigSchema",fn);return{...qt,ConfigRoot:l(fr),ConfigApisProperties:I(fr),AssertionDefinitionSubject:$(tn),...fr}}const qt={Assert:_,ConfigApis:D,ConfigStyleguide:a,ConfigReferenceDocs:Tt,ConfigMockServer:Nt,ConfigHTTP:L,ConfigLanguage:X,ConfigLabels:q,ConfigSidebarLinks:F,CommonConfigSidebarLinks:ue,ConfigTheme:qe,AssertDefinition:G,ThemeColors:W,CommonThemeColors:Pe,BorderThemeColors:De,HttpColors:fe,ResponseColors:se,SecondaryColors:z,TextThemeColors:V,Sizes:te,ButtonsConfig:he,CommonColorProps:le,BadgeFontConfig:Le,BadgeSizes:We,HttpBadgesConfig:Ie,LabelControls:xe,Panels:Ae,TryItButton:B,Breakpoints:Me,StackedConfig:He,ThreePanelConfig:pe,SchemaColorsConfig:Oe,SizeProps:Q,Level1Items:Z,SpacingConfig:at,FontConfig:ye,CodeConfig:ke,HeadingsConfig:Be,LinksConfig:ne,TokenProps:ee,CodeBlock:we,ConfigThemeLogo:Ze,Fab:nt,ButtonOverrides:xt,Overrides:Fe,ObjectRule:R,Schema:j,RightPanel:_e,Rules:A,Shape:Pt,ThemeSpacing:Ke,GenerateCodeSamples:mt,GroupItemsConfig:lt,ConfigThemeComponents:U,Layout:ce,ConfigThemeSchema:ht,Sidebar:ot,Heading:Te,Typography:Y,AssertionDefinitionAssertions:T};n.ConfigTypes=Jt(o.rootRedoclyConfigSchema)},12848:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT=n.VERSION_PATTERN=void 0,n.VERSION_PATTERN=/^1\.0\.\d+(-.+)?$/,n.ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT=["1.0.1"]},3069:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.assignConfig=n.stringifyYaml=n.parseYaml=void 0,n.pushStack=x,n.pluralize=y,n.popStack=b,n.loadYaml=P,n.isDefined=S,n.isPlainObject=t,n.isEmptyObject=a,n.isNotEmptyObject=l,n.isEmptyArray=D,n.isNotEmptyArray=I,n.readFileFromUrl=L,n.pickObjectProps=R,n.omitObjectProps=j,n.splitCamelCaseIntoWords=$,n.validateMimeType=T,n.validateMimeTypeOAS3=G,n.readFileAsStringSync=_,n.yamlAndJsonSyncReader=X,n.isPathParameter=q,n.slash=F,n.isString=ue,n.isNotString=Pe,n.assignOnlyExistingConfig=De,n.getMatchingStatusCodeRange=fe,n.isCustomRuleId=se,n.doesYamlFileExist=z,n.showWarningForDeprecatedField=V,n.showErrorForDeprecatedField=W,n.isTruthy=Q,n.identity=te,n.keysOf=ye,n.pickDefined=he,n.nextTick=Le,n.pause=We,n.getProxyAgent=xe,n.dequal=Ae;const o=e(85519),h=e(13078),f=e(39064),O=e(77318),d=e(29231),p=e(68330),c=e(3070),v=e(64390);var g=e(77318);Object.defineProperty(n,"parseYaml",{enumerable:!0,get:function(){return g.parseYaml}}),Object.defineProperty(n,"stringifyYaml",{enumerable:!0,get:function(){return g.stringifyYaml}});function x(B,U){return{prev:B,value:U}}function y(B,U,Me){return B.split(" ").map(He=>v(He,U,Me)).join(" ")}function b(B){return B?.prev??null}async function P(B){const U=await o.promises.readFile(B,"utf-8");return(0,O.parseYaml)(U)}function S(B){return B!==void 0}function t(B){return B!==null&&typeof B=="object"&&!Array.isArray(B)}function a(B){return t(B)&&Object.keys(B).length===0}function l(B){return t(B)&&!a(B)}function D(B){return Array.isArray(B)&&B.length===0}function I(B){return!!B&&Array.isArray(B)&&!!B.length}async function L(B,U){const Me={};for(const pe of U.headers)A(B,pe.matches)&&(Me[pe.name]=pe.envVariable!==void 0?d.env[pe.envVariable]||"":pe.value);const He=await(U.customFetch||fetch)(B,{headers:Me});if(!He.ok)throw new Error(`Failed to load ${B}: ${He.status} ${He.statusText}`);return{body:await He.text(),mimeType:He.headers.get("content-type")}}function A(B,U){return U.match(/^https?:\/\//)||(B=B.replace(/^https?:\/\//,"")),f(B,U)}function R(B,U){return Object.fromEntries(U.filter(Me=>Me in B).map(Me=>[Me,B[Me]]))}function j(B,U){return Object.fromEntries(Object.entries(B).filter(([Me])=>!U.includes(Me)))}function $(B){const U=B.split(/(?:[-._])|([A-Z][a-z]+)/).filter(Q).map(He=>He.toLocaleLowerCase()),Me=B.split(/([A-Z]{2,})/).filter(He=>He&&He===He.toUpperCase()).map(He=>He.toLocaleLowerCase());return new Set([...U,...Me])}function T({type:B,value:U},{report:Me,location:He},pe){const ce=B==="consumes"?"request":"response";if(!pe)throw new Error(`Parameter "allowedValues" is not provided for "${ce}-mime-type" rule`);if(U[B])for(const Oe of U[B])pe.includes(Oe)||Me({message:`Mime type "${Oe}" is not allowed`,location:He.child(U[B].indexOf(Oe)).key()})}function G({type:B,value:U},{report:Me,location:He},pe){const ce=B==="consumes"?"request":"response";if(!pe)throw new Error(`Parameter "allowedValues" is not provided for "${ce}-mime-type" rule`);if(U.content)for(const Oe of Object.keys(U.content))pe.includes(Oe)||Me({message:`Mime type "${Oe}" is not allowed`,location:He.child("content").child(Oe).key()})}function _(B){return o.readFileSync(B,"utf-8")}function X(B){const U=o.readFileSync(B,"utf-8");return(0,O.parseYaml)(U)}function q(B){return B.startsWith("{")&&B.endsWith("}")}function F(B){return/^\\\\\?\\/.test(B)?B:B.replace(/\\/g,"/")}function ue(B){return typeof B=="string"}function Pe(B){return!ue(B)}const le=(B,U)=>{if(U)for(const Me of Object.keys(U))t(B[Me])&&typeof U[Me]=="string"?B[Me].severity=U[Me]:B[Me]=U[Me]};n.assignConfig=le;function De(B,U){if(U)for(const Me of Object.keys(U))B.hasOwnProperty(Me)&&(t(B[Me])&&typeof U[Me]=="string"?B[Me].severity=U[Me]:B[Me]=U[Me])}function fe(B){return`${B}`.replace(/^(\d)\d\d$/,(U,Me)=>`${Me}XX`)}function se(B){return B.includes("/")}function z(B){return((0,h.extname)(B)===".yaml"||(0,h.extname)(B)===".yml")&&o?.hasOwnProperty?.("existsSync")&&o.existsSync(B)}function V(B,U,Me,He){const pe=He?`Read more about this change: ${He}`:"";p.logger.warn(`The '${p.colorize.red(B)}' field is deprecated. ${U?`Use ${p.colorize.green(Ie(U,Me))} instead. `:""}${pe}
|
|
24
|
+
`))}}catch(L){throw L.message=L.message.replace(", lstat",""),new c(L)}}parseDocument(I,L=!1){const A=I.absoluteRef.substr(I.absoluteRef.lastIndexOf("."));if(![".json",".json",".yml",".yaml"].includes(A)&&!I.mimeType?.match(/(json|yaml|openapi)/)&&!L)return{source:I,parsed:I.body};try{return{source:I,parsed:(0,d.parseYaml)(I.body,{filename:I.absoluteRef})}}catch(R){throw new g(R,I)}}async resolveDocument(I,L,A=!1){const R=this.resolveExternalRef(I,L),j=this.cache.get(R);if(j)return j;const $=this.loadExternalRef(R).then(T=>this.parseDocument(T,A));return this.cache.set(R,$),$}}n.BaseResolver=b;function P(D,I){return{prev:D,node:I}}function S(D,I){for(;D;){if(D.node===I)return!0;D=D.prev}return!1}const t={name:"unknown",properties:{}},a={name:"scalar",properties:{}};async function l(D){const{rootDocument:I,externalRefResolver:L,rootType:A}=D,R=new Map,j=new Set,$=[];G(I.parsed,I,"#/",A);let T;do T=await Promise.all($);while($.length!==T.length);return R;function G(_,X,q,F){const ue=X.source.absoluteRef,Pe=new Map;le(_,F,ue+q);function le(fe,se,z){if(typeof fe!="object"||fe===null)return;const V=`${se.name}::${z}`;if(j.has(V))return;j.add(V);const[W,Q]=Object.entries(fe).find(([te])=>te==="$anchor")||[];if(Q&&Pe.set(`#${Q}`,fe),Array.isArray(fe)){const te=se.items;if(te===void 0&&se!==t&&se!==O.SpecExtension)return;const ye=typeof te=="function";for(let he=0;he<fe.length;he++){const Le=ye?te(fe[he],(0,f.joinPointer)(z,he)):te;Le===void 0&&se!==t&&se!==O.SpecExtension||le(fe[he],(0,O.isNamedType)(Le)?Le:t,(0,f.joinPointer)(z,he))}return}for(const te of Object.keys(fe)){let ye=fe[te],he=se.properties[te];he===void 0&&(he=se.additionalProperties),typeof he=="function"&&(he=he(ye,te)),he===void 0&&(he=t),se.extensionsPrefix&&te.startsWith(se.extensionsPrefix)&&he===t&&(he=O.SpecExtension),!(0,O.isNamedType)(he)&&he?.directResolveAs&&(he=he.directResolveAs,ye={$ref:ye}),he&&he.name===void 0&&he.resolvable!==!1&&(he=a),!(!(0,O.isNamedType)(he)||typeof ye!="object")&&le(ye,he,(0,f.joinPointer)(z,(0,f.escapePointer)(te)))}if((0,f.isRef)(fe)){const te=De(X,fe,{prev:null,node:fe}).then(ye=>{ye.resolved&&G(ye.node,ye.document,ye.nodePointer,se)});$.push(te)}if((0,f.isExternalValue)(fe)){const te=De(X,{$ref:fe.externalValue},{prev:null,node:fe}).then(ye=>{ye.resolved&&G(ye.node,ye.document,ye.nodePointer,se)});$.push(te)}}async function De(fe,se,z){if(S(z.prev,se))throw new Error("Self-referencing circular pointer");if((0,f.isAnchor)(se.$ref)){await(0,d.nextTick)();const Ie={resolved:!0,isRemote:!1,node:Pe.get(se.$ref),document:fe,nodePointer:se.$ref},xe=x(fe.source.absoluteRef,se.$ref);return R.set(xe,Ie),Ie}const{uri:V,pointer:W}=(0,f.parseRef)(se.$ref),Q=V!==null;let te;try{te=Q?await L.resolveDocument(fe.source.absoluteRef,V):fe}catch(Ie){const xe={resolved:!1,isRemote:Q,document:void 0,error:Ie},Ae=x(fe.source.absoluteRef,se.$ref);return R.set(Ae,xe),xe}let ye={resolved:!0,document:te,isRemote:Q,node:fe.parsed,nodePointer:"#/"},he=te.parsed;const Le=W;for(const Ie of Le)if(typeof he!="object"){he=void 0;break}else if(he[Ie]!==void 0)he=he[Ie],ye.nodePointer=(0,f.joinPointer)(ye.nodePointer,(0,f.escapePointer)(Ie));else if((0,f.isRef)(he)){if(ye=await De(te,he,P(z,he)),te=ye.document||te,typeof ye.node!="object"){he=void 0;break}he=ye.node[Ie],ye.nodePointer=(0,f.joinPointer)(ye.nodePointer,(0,f.escapePointer)(Ie))}else{he=void 0;break}ye.node=he,ye.document=te;const We=x(fe.source.absoluteRef,se.$ref);return ye.document&&(0,f.isRef)(he)&&(ye=await De(ye.document,he,P(z,he))),R.set(We,ye),{...ye}}}}},92692:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.NoUnresolvedRefs=void 0,n.reportUnresolvedRef=f;const o=e(67804),h=()=>({ref:{leave(O,{report:d,location:p},c){c.node===void 0&&f(c,d,p)}},DiscriminatorMapping(O,{report:d,resolve:p,location:c}){for(const v of Object.keys(O)){const g=p({$ref:O[v]});if(g.node!==void 0)return;f(g,d,c.child(v))}}});n.NoUnresolvedRefs=h;function f(O,d,p){const c=O.error;c instanceof o.YamlParseError&&d({message:"Failed to parse: "+c.message,location:{source:c.source,pointer:void 0,start:{col:c.col,line:c.line}}});const v=O.error?.message;d({location:p,message:`Can't resolve $ref${v?": "+v:""}`})}},84551:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Arazzo1Types=void 0;const o=e(41386),h=e(18518),f=e(51270),O={properties:{arazzo:{type:"string"},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},d={properties:{},additionalProperties:"Parameter"},p={properties:{},additionalProperties:"SuccessActionObject"},c={properties:{},additionalProperties:"FailureActionObject"},v={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},g=(0,o.mapOf)("Schema"),x={properties:{title:{type:"string"},description:{type:"string"},summary:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},y={properties:{},items:Pe=>Pe?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},b={properties:{name:{type:"string"},type:{type:"string",enum:["openapi"]},url:{type:"string"},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},P={properties:{name:{type:"string"},type:{type:"string",enum:["arazzo"]},url:{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-"},S={properties:{reference:{type:"string"},value:{}},required:["reference"],extensionsPrefix:"x-"},t={properties:{in:{type:"string",enum:["header","query","path","cookie"]},name:{type:"string"},value:{}},required:["name","value"],extensionsPrefix:"x-"},a={properties:{},items:Pe=>Pe?.reference?"ReusableObject":"Parameter"},l={properties:{workflowId:{type:"string"},summary:{type:"string"},description:{type:"string"},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"}},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList"},required:["workflowId","steps"],extensionsPrefix:"x-"},D=(0,o.listOf)("Workflow"),I=(0,o.listOf)("Step"),L={properties:{stepId:{type:"string"},description:{type:"string"},operationId:{type:"string"},operationPath:{type:"string"},workflowId:{type:"string"},parameters:"Parameters",successCriteria:(0,o.listOf)("CriterionObject"),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-"},A={properties:{},additionalProperties:{type:"string"}},R={properties:{contentType:{type:"string"},payload:{},replacements:(0,o.listOf)("Replacement")},required:["payload"],extensionsPrefix:"x-"},j={properties:{target:{type:"string"},value:{}},required:["target","value"],extensionsPrefix:"x-"},$={properties:{url:{type:"string"},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"]}},required:["url","method"]},T={properties:{condition:{type:"string"},context:{type:"string"},type:Pe=>{if(Pe)return typeof Pe=="string"?{enum:["regex","jsonpath","simple","xpath"]}:Pe?.type==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"]},G={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},_={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},X={properties:{name:{type:"string"},type:{type:"string",enum:["goto","end"]},stepId:{type:"string"},workflowId:{type:"string"},criteria:(0,o.listOf)("CriterionObject")},required:["type","name"]},q={properties:{},items:Pe=>Pe?.type&&Pe?.name?"SuccessActionObject":"ReusableObject"},F={properties:{name:{type:"string"},type:{type:"string",enum:["goto","retry","end"]},workflowId:{type:"string"},stepId:{type:"string"},retryAfter:{type:"number"},retryLimit:{type:"number"},criteria:(0,o.listOf)("CriterionObject")},required:["type","name"]},ue={properties:{},items:Pe=>Pe?.type&&Pe?.name?"FailureActionObject":"ReusableObject"};n.Arazzo1Types={Root:O,Info:x,SourceDescriptions:y,OpenAPISourceDescription:b,ArazzoSourceDescription:P,Parameters:a,Parameter:t,ReusableObject:S,Workflows:D,Workflow:l,Steps:I,Step:L,RequestBody:R,Replacement:j,ExtendedOperation:$,Outputs:A,CriterionObject:T,XPathCriterion:_,JSONPathCriterion:G,SuccessActionObject:X,OnSuccessActionList:q,FailureActionObject:F,OnFailureActionList:ue,Schema:h.Schema,NamedSchemas:(0,o.mapOf)("Schema"),ExternalDocs:f.ExternalDocs,DiscriminatorMapping:f.DiscriminatorMapping,Discriminator:f.Discriminator,DependentRequired:h.DependentRequired,SchemaProperties:h.SchemaProperties,PatternProperties:h.SchemaProperties,Components:v,NamedInputs:g,NamedParameters:d,NamedSuccessActions:p,NamedFailureActions:c,Xml:f.Xml}},46036:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.AsyncApi2Types=n.AsyncApi2Bindings=n.Dependencies=n.SecuritySchemeFlows=n.Discriminator=n.DiscriminatorMapping=n.SchemaProperties=n.Schema=n.MessageExample=n.CorrelationId=n.License=n.Contact=n.ServerVariable=n.ServerMap=n.ExternalDocs=n.Tag=void 0;const o=e(41386),h=e(53781),f={properties:{asyncapi:null,info:"Info",id:{type:"string"},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},O={properties:{description:{type:"string"},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"}}}},d={properties:{},additionalProperties:"Channel"},p={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}};n.Tag={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs"},required:["name"]},n.ExternalDocs={properties:{description:{type:"string"},url:{type:"string"}},required:["url"]};const c={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},v={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},g={properties:{url:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"]};n.ServerMap={properties:{},additionalProperties:(tn,fr)=>fr.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},n.ServerVariable={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}},required:[]};const x={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License"},required:["title","version"]};n.Contact={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}}},n.License={properties:{name:{type:"string"},url:{type:"string"}},required:["name"]};const y={properties:{description:{type:"string"},schema:"Schema",location:{type:"string"}}};n.CorrelationId={properties:{description:{type:"string"},location:{type:"string"}},required:["location"]};const b={properties:{messageId:{type:"string"},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},P={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},S={properties:{},allowed(){return["http","ws","kafka","anypointmq","amqp","amqp1","mqtt","mqtt5","nats","jms","sns","solace","sqs","stomp","redis","mercure","ibmmq","googlepubsub","pulsar"]},additionalProperties:{type:"object"}},t={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[]},a={properties:{messageId:{type:"string"},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string"},contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},l={properties:{tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[]};n.MessageExample={properties:{payload:{isExample:!0},summary:{type:"string"},name:{type:"string"},headers:{type:"object"}}},n.Schema={properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",myArbitraryKeyword:{type:"boolean"},title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:tn=>Array.isArray(tn)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:(0,o.listOf)("Schema"),anyOf:(0,o.listOf)("Schema"),oneOf:(0,o.listOf)("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:tn=>Array.isArray(tn)?(0,o.listOf)("Schema"):"Schema",additionalProperties:tn=>typeof tn=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:tn=>typeof tn=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},n.SchemaProperties={properties:{},additionalProperties:tn=>typeof tn=="boolean"?{type:"boolean"}:"Schema"},n.DiscriminatorMapping={properties:{},additionalProperties:tn=>(0,h.isMappingRef)(tn)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},n.Discriminator={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]};const D={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},I={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"]},L={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},A={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"]},R={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"]};n.SecuritySchemeFlows={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}};const j={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"}},required(tn){switch(tn?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(tn){switch(tn?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"};n.Dependencies={properties:{},additionalProperties:tn=>Array.isArray(tn)?{type:"array",items:{type:"string"}}:"Schema"};const $={properties:{}};p.properties.http=$;const T={properties:{}};v.properties.http=T;const G={properties:{headers:"Schema",bindingVersion:{type:"string"}}};P.properties.http=G;const _={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},headers:"Schema",bindingVersion:{type:"string"}}};S.properties.http=_;const X={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}}};p.properties.ws=X;const q={properties:{}};v.properties.ws=q;const F={properties:{}};P.properties.ws=F;const ue={properties:{}};S.properties.ws=ue;const Pe={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"}}},le={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}}};p.properties.kafka=le;const De={properties:{}};v.properties.kafka=De;const fe={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}}};P.properties.kafka=fe;const se={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}}};S.properties.kafka=se;const z={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};p.properties.anypointmq=z;const V={properties:{}};v.properties.anypointmq=V;const W={properties:{headers:"Schema",bindingVersion:{type:"string"}}};P.properties.anypointmq=W;const Q={properties:{}};S.properties.anypointmq=Q;const te={properties:{}};p.properties.amqp=te;const ye={properties:{}};v.properties.amqp=ye;const he={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}}};P.properties.amqp=he;const Le={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}}};S.properties.amqp=Le;const We={properties:{}};p.properties.amqp1=We;const Ie={properties:{}};v.properties.amqp1=Ie;const xe={properties:{}};P.properties.amqp1=xe;const Ae={properties:{}};S.properties.amqp1=Ae;const B={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};p.properties.mqtt=B;const U={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},Me={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},bindingVersion:{type:"string"}}};v.properties.mqtt=Me;const He={properties:{bindingVersion:{type:"string"}}};P.properties.mqtt=He;const pe={properties:{qos:{type:"integer"},retain:{type:"boolean"},bindingVersion:{type:"string"}}};S.properties.mqtt=pe;const ce={properties:{}};p.properties.mqtt5=ce;const Oe={properties:{}};v.properties.mqtt5=Oe;const ht={properties:{}};P.properties.mqtt5=ht;const lt={properties:{}};S.properties.mqtt5=lt;const Z={properties:{}};p.properties.nats=Z;const at={properties:{}};v.properties.nats=at;const ot={properties:{}};P.properties.nats=ot;const Te={properties:{queue:{type:"string"},bindingVersion:{type:"string"}}};S.properties.nats=Te;const ke={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}}};p.properties.jms=ke;const Be={properties:{}};v.properties.jms=Be;const ne={properties:{headers:"Schema",bindingVersion:{type:"string"}}};P.properties.jms=ne;const Y={properties:{headers:"Schema",bindingVersion:{type:"string"}}};S.properties.jms=Y;const ee={properties:{}};p.properties.solace=ee;const we={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"}}};v.properties.solace=we;const Ze={properties:{}};P.properties.solace=Ze;const nt={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},xt={properties:{bindingVersion:{type:"string"},destinations:(0,o.listOf)("SolaceDestination")}};S.properties.solace=xt;const Fe={properties:{}};p.properties.stomp=Fe;const _e={properties:{}};v.properties.stomp=_e;const Pt={properties:{}};P.properties.stomp=Pt;const Ke={properties:{}};S.properties.stomp=Ke;const qe={properties:{}};p.properties.redis=qe;const mt={properties:{}};v.properties.redis=mt;const Tt={properties:{}};P.properties.redis=Tt;const Nt={properties:{}};S.properties.redis=Nt;const Jt={properties:{}};p.properties.mercure=Jt;const qt={properties:{}};v.properties.mercure=qt;const fn={properties:{}};P.properties.mercure=fn;const xn={properties:{}};S.properties.mercure=xn,n.AsyncApi2Bindings={HttpServerBinding:T,HttpChannelBinding:$,HttpMessageBinding:G,HttpOperationBinding:_,WsServerBinding:q,WsChannelBinding:X,WsMessageBinding:F,WsOperationBinding:ue,KafkaServerBinding:De,KafkaTopicConfiguration:Pe,KafkaChannelBinding:le,KafkaMessageBinding:fe,KafkaOperationBinding:se,AnypointmqServerBinding:V,AnypointmqChannelBinding:z,AnypointmqMessageBinding:W,AnypointmqOperationBinding:Q,AmqpServerBinding:ye,AmqpChannelBinding:te,AmqpMessageBinding:he,AmqpOperationBinding:Le,Amqp1ServerBinding:Ie,Amqp1ChannelBinding:We,Amqp1MessageBinding:xe,Amqp1OperationBinding:Ae,MqttServerBindingLastWill:U,MqttServerBinding:Me,MqttChannelBinding:B,MqttMessageBinding:He,MqttOperationBinding:pe,Mqtt5ServerBinding:Oe,Mqtt5ChannelBinding:ce,Mqtt5MessageBinding:ht,Mqtt5OperationBinding:lt,NatsServerBinding:at,NatsChannelBinding:Z,NatsMessageBinding:ot,NatsOperationBinding:Te,JmsServerBinding:Be,JmsChannelBinding:ke,JmsMessageBinding:ne,JmsOperationBinding:Y,SolaceServerBinding:we,SolaceChannelBinding:ee,SolaceMessageBinding:Ze,SolaceDestination:nt,SolaceOperationBinding:xt,StompServerBinding:_e,StompChannelBinding:Fe,StompMessageBinding:Pt,StompOperationBinding:Ke,RedisServerBinding:mt,RedisChannelBinding:qe,RedisMessageBinding:Tt,RedisOperationBinding:Nt,MercureServerBinding:qt,MercureChannelBinding:Jt,MercureMessageBinding:fn,MercureOperationBinding:xn,ServerBindings:v,ChannelBindings:p,MessageBindings:P,OperationBindings:S},n.AsyncApi2Types={...n.AsyncApi2Bindings,Root:f,Tag:n.Tag,TagList:(0,o.listOf)("Tag"),ServerMap:n.ServerMap,ExternalDocs:n.ExternalDocs,Server:g,ServerVariable:n.ServerVariable,ServerVariablesMap:(0,o.mapOf)("ServerVariable"),SecurityRequirement:c,SecurityRequirementList:(0,o.listOf)("SecurityRequirement"),Info:x,Contact:n.Contact,License:n.License,ChannelMap:d,Channel:O,Parameter:y,ParametersMap:(0,o.mapOf)("Parameter"),Operation:l,Schema:n.Schema,MessageExample:n.MessageExample,SchemaProperties:n.SchemaProperties,DiscriminatorMapping:n.DiscriminatorMapping,Discriminator:n.Discriminator,Components:D,NamedSchemas:(0,o.mapOf)("Schema"),NamedMessages:(0,o.mapOf)("Message"),NamedMessageTraits:(0,o.mapOf)("MessageTrait"),NamedOperationTraits:(0,o.mapOf)("OperationTrait"),NamedParameters:(0,o.mapOf)("Parameter"),NamedSecuritySchemes:(0,o.mapOf)("SecurityScheme"),NamedCorrelationIds:(0,o.mapOf)("CorrelationId"),ImplicitFlow:I,PasswordFlow:L,ClientCredentials:A,AuthorizationCode:R,SecuritySchemeFlows:n.SecuritySchemeFlows,SecurityScheme:j,Message:b,MessageBindings:P,OperationBindings:S,OperationTrait:t,OperationTraitList:(0,o.listOf)("OperationTrait"),MessageTrait:a,MessageTraitList:(0,o.listOf)("MessageTrait"),MessageExampleList:(0,o.listOf)("MessageExample"),CorrelationId:n.CorrelationId,Dependencies:n.Dependencies}},93979:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.AsyncApi3Types=void 0;const o=e(41386),h=e(46036),f={properties:{asyncapi:{type:"string",enum:["3.0.0"]},info:"Info",id:{type:"string"},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string"}},required:["asyncapi","info"]},O={properties:{address:{type:"string"},messages:"NamedMessages",title:{type:"string"},summary:{type:"string"},description:{type:"string"},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"}},d={properties:{host:{type:"string"},pathname:{type:"string"},protocol:{type:"string"},protocolVersion:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"]},p={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"]},c={properties:{description:{type:"string"},enum:{type:"array",items:{type:"string"}},default:{type:"string"},examples:{type:"array",items:{type:"string"}},location:{type:"string"}}},v={properties:{headers:"Schema",payload:L=>L&&L?.schemaFormat?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{}},g={properties:{tags:"TagList",title:{type:"string"},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[]},x={properties:{headers:L=>typeof L=="function"||typeof L=="object"&&L?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"Schema",correlationId:"CorrelationId",contentType:{type:"string"},name:{type:"string"},title:{type:"string"},summary:{type:"string"},description:{type:"string"},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{}},y={properties:{action:{type:"string",enum:["send","receive"]},channel:"Channel",title:{type:"string"},tags:"TagList",summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},b={properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"}},P={properties:{location:{type:"string"},description:{type:"string"}},required:["location"]},S={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},t={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"]},a={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},l={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"]},D={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"]},I={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie","user","password"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string"},scopes:{type:"array",items:{type:"string"}}},required(L){switch(L?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(L){switch(L?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-"};n.AsyncApi3Types={...h.AsyncApi2Bindings,CorrelationId:h.CorrelationId,SecuritySchemeFlows:h.SecuritySchemeFlows,ServerVariable:h.ServerVariable,Contact:h.Contact,License:h.License,MessageExample:h.MessageExample,Tag:h.Tag,Dependencies:h.Dependencies,Schema:h.Schema,Discriminator:h.Discriminator,DiscriminatorMapping:h.DiscriminatorMapping,SchemaProperties:h.SchemaProperties,ServerMap:h.ServerMap,ExternalDocs:h.ExternalDocs,Root:f,Channel:O,Parameter:c,Info:p,Server:d,MessageTrait:x,Operation:y,OperationReply:b,OperationReplyAddress:P,Components:S,ImplicitFlow:t,PasswordFlow:a,ClientCredentials:l,AuthorizationCode:D,SecurityScheme:I,Message:v,OperationTrait:g,ServerVariablesMap:(0,o.mapOf)("ServerVariable"),NamedTags:(0,o.mapOf)("Tag"),NamedExternalDocs:(0,o.mapOf)("ExternalDocs"),NamedChannels:(0,o.mapOf)("Channel"),ParametersMap:(0,o.mapOf)("Parameter"),NamedOperations:(0,o.mapOf)("Operation"),NamedOperationReplies:(0,o.mapOf)("OperationReply"),NamedOperationRelyAddresses:(0,o.mapOf)("OperationReplyAddress"),NamedSchemas:(0,o.mapOf)("Schema"),NamedMessages:(0,o.mapOf)("Message"),NamedMessageTraits:(0,o.mapOf)("MessageTrait"),NamedOperationTraits:(0,o.mapOf)("OperationTrait"),NamedParameters:(0,o.mapOf)("Parameter"),NamedSecuritySchemes:(0,o.mapOf)("SecurityScheme"),NamedCorrelationIds:(0,o.mapOf)("CorrelationId"),ServerList:(0,o.listOf)("Server"),SecuritySchemeList:(0,o.listOf)("SecurityScheme"),MessageList:(0,o.listOf)("Message"),OperationTraitList:(0,o.listOf)("OperationTrait"),MessageTraitList:(0,o.listOf)("MessageTrait"),MessageExampleList:(0,o.listOf)("MessageExample"),TagList:(0,o.listOf)("Tag")}},41386:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SpecExtension=void 0,n.listOf=e,n.mapOf=o,n.normalizeTypes=h,n.isNamedType=f;function e(O){return{name:`${O}List`,properties:{},items:O}}function o(O){return{name:`${O}Map`,properties:{},additionalProperties:()=>O}}n.SpecExtension={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function h(O,d={}){const p={};for(const g of Object.keys(O))p[g]={...O[g],name:g};for(const g of Object.values(p))c(g);return p.SpecExtension=n.SpecExtension,p;function c(g){if(g.additionalProperties&&(g.additionalProperties=v(g.additionalProperties)),g.items&&(g.items=v(g.items)),g.properties){const x={};for(const[y,b]of Object.entries(g.properties))x[y]=v(b),d.doNotResolveExamples&&b&&b.isExample&&(x[y]={...b,resolvable:!1});g.properties=x}}function v(g){if(typeof g=="string"){if(!p[g])throw new Error(`Unknown type name found: ${g}`);return p[g]}else return typeof g=="function"?(x,y)=>v(g(x,y)):g&&g.name?(g={...g},c(g),g):g&&g.directResolveAs?{...g,directResolveAs:v(g.directResolveAs)}:g}}function f(O){return typeof O?.name=="string"}},20430:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getNodeTypesFromJSONSchema=c;const o=e(61203),h=e(3069),f=new o.default({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function O(v,g){if(g.some(x=>typeof x=="function"))throw new Error("Unexpected oneOf inside oneOf.");return x=>{let y=v.findIndex(b=>f.validate(b,x));return y===-1&&(y=0),g[y]}}function d(v,g,x){if(!g||typeof g=="boolean")throw new Error(`Unexpected schema in ${v}.`);if(g instanceof Array)throw new Error(`Unexpected array schema in ${v}. Try using oneOf instead.`);if(g.type==="null")throw new Error(`Unexpected null schema type in ${v} schema.`);if(g.type instanceof Array)throw new Error(`Unexpected array schema type in ${v} schema. Try using oneOf instead.`);if(g.type==="string"||g.type==="number"||g.type==="integer"||g.type==="boolean"){const{default:y,format:b,...P}=g;return P}if(g.type==="object"&&!g.properties&&!g.oneOf){if(g.additionalProperties===void 0||g.additionalProperties===!0)return{type:"object"};if(g.additionalProperties===!1)return{type:"object",properties:{}}}if(g.allOf)throw new Error(`Unexpected allOf in ${v}.`);if(g.anyOf)throw new Error(`Unexpected anyOf in ${v}.`);if((0,h.isPlainObject)(g.properties)||(0,h.isPlainObject)(g.additionalProperties)||(0,h.isPlainObject)(g.items)&&((0,h.isPlainObject)(g.items.properties)||(0,h.isPlainObject)(g.items.additionalProperties)||g.items.oneOf))return p(v,g,x);if(g.oneOf)if(g.discriminator){const y=g.discriminator?.propertyName;if(!y)throw new Error(`Unexpected discriminator without a propertyName in ${v}.`);const b=g.oneOf.map((P,S)=>{if(typeof P=="boolean")throw new Error(`Unexpected boolean schema in ${v} at position ${S} in oneOf.`);const t=P?.properties?.[y];if(!t||typeof t=="boolean")throw new Error(`Unexpected property '${t}' schema in ${v} at position ${S} in oneOf.`);const a=t.const;return d(a,P,x)});return(P,S)=>{if((0,h.isPlainObject)(P)){const t=P[y];if(typeof t=="string"&&x[t])return t}return O(g.oneOf,b)(P,S)}}else{const y=g.oneOf.map((b,P)=>d(v+"_"+P,b,x));return O(g.oneOf,y)}return g}function p(v,g,x){if(!g||typeof g=="boolean")throw new Error(`Unexpected schema in ${v}.`);if(g instanceof Array)throw new Error(`Unexpected array schema in ${v}. Try using oneOf instead.`);if(g.type==="null")throw new Error(`Unexpected null schema type in ${v} schema.`);if(g.type instanceof Array)throw new Error(`Unexpected array schema type in ${v} schema. Try using oneOf instead.`);const y={};for(const[t,a]of Object.entries(g.properties||{}))y[t]=d(v+"."+t,a,x);let b;(0,h.isPlainObject)(g.additionalProperties)&&(b=d(v+"_additionalProperties",g.additionalProperties,x)),g.additionalProperties===!0&&(b={});let P;(0,h.isPlainObject)(g.items)&&((0,h.isPlainObject)(g.items.properties)||(0,h.isPlainObject)(g.items.additionalProperties)||g.items.oneOf)&&(P=d(v+"_items",g.items,x));let S=g.required;return g.oneOf&&g.oneOf.every(t=>!!t.required)&&(S=t=>{const a=g.oneOf.map(D=>[...g.required||[],...D.required]);let l=a.findIndex(D=>D.every(I=>t[I]!==void 0));return l===-1&&(l=0),a[l]}),x[v]={properties:y,additionalProperties:b,items:P,required:S},v}function c(v,g){const x={};return d(v,g,x),x}},81989:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Oas2Types=void 0;const o=e(41386),h=/^[0-9][0-9Xx]{2}$/,f={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},O={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},d={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},p={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},c={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},v={properties:{},additionalProperties:(q,F)=>F.startsWith("/")?"PathItem":void 0},g={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},x={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},y={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},b={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},P={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},S={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(q){return!q||!q.in?["name","in"]:q.in==="body"?["name","in","schema"]:q.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},t={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(q){return q&&q.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},a={properties:{default:"Response"},additionalProperties:(q,F)=>h.test(F)?"Response":void 0},l={properties:{description:{type:"string"},schema:"Schema",headers:(0,o.mapOf)("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},D={properties:{},additionalProperties:{isExample:!0}},I={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(q){return q&&q.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},L={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},A={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},R={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:q=>Array.isArray(q)?(0,o.listOf)("Schema"):"Schema",allOf:(0,o.listOf)("Schema"),properties:"SchemaProperties",additionalProperties:q=>typeof q=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},j={properties:{},additionalProperties:{type:"string"}},$={properties:{},additionalProperties:"Schema"},T={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},G={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},"x-defaultClientId":{type:"string"}},required(q){switch(q?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(q?.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(q){switch(q?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(q?.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},_={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},X={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"};n.Oas2Types={Root:f,Tag:L,TagList:(0,o.listOf)("Tag"),TagGroups:(0,o.listOf)("TagGroup"),TagGroup:A,ExternalDocs:P,Example:X,ExamplesMap:(0,o.mapOf)("Example"),EnumDescriptions:j,SecurityRequirement:_,SecurityRequirementList:(0,o.listOf)("SecurityRequirement"),Info:O,Contact:p,License:c,Logo:d,Paths:v,PathItem:g,Parameter:S,ParameterItems:t,ParameterList:(0,o.listOf)("Parameter"),Operation:x,Examples:D,Header:I,Responses:a,Response:l,Schema:R,Xml:T,SchemaProperties:$,NamedSchemas:(0,o.mapOf)("Schema"),NamedResponses:(0,o.mapOf)("Response"),NamedParameters:(0,o.mapOf)("Parameter"),NamedSecuritySchemes:(0,o.mapOf)("SecurityScheme"),SecurityScheme:G,XCodeSample:y,XCodeSampleList:(0,o.listOf)("XCodeSample"),XServerList:(0,o.listOf)("XServer"),XServer:b}},51270:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Oas3Types=n.Discriminator=n.DiscriminatorMapping=n.Xml=n.ExternalDocs=void 0;const o=e(41386),h=e(53781),f=/^[0-9][0-9Xx]{2}$/,O={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-"},d={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},p={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}},extensionsPrefix:"x-"};n.ExternalDocs={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"};const c={properties:{url:{type:"string"},description:{type:"string"},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-"},v={properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},description:{type:"string"}},required:["default"],extensionsPrefix:"x-"},g={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},x={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},y={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},b={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},P={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},S={properties:{},additionalProperties:(Q,te)=>te.startsWith("/")?"PathItem":void 0},t={properties:{},additionalProperties:()=>"PathItem"},a={properties:{$ref:{type:"string"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string"},description:{type:"string"},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation"},extensionsPrefix:"x-"},l={properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-"},D={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},I={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},L={properties:{description:{type:"string"},required:{type:"boolean"},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-"},A={properties:{},additionalProperties:"MediaType"},R={properties:{schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-"},j={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},$={properties:{contentType:{type:"string"},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"}},extensionsPrefix:"x-"},T={properties:{},additionalProperties:{type:"string"}},G={properties:{description:{type:"string"},required:{type:"boolean"},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean"},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-"},_={properties:{default:"Response"},additionalProperties:(Q,te)=>f.test(te)?"Response":void 0},X={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},q={properties:{operationRef:{type:"string"},operationId:{type:"string"},parameters:null,requestBody:null,description:{type:"string"},server:"Server"},extensionsPrefix:"x-"},F={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"]},allOf:(0,o.listOf)("Schema"),anyOf:(0,o.listOf)("Schema"),oneOf:(0,o.listOf)("Schema"),not:"Schema",properties:"SchemaProperties",items:Q=>Array.isArray(Q)?(0,o.listOf)("Schema"):"Schema",additionalProperties:Q=>typeof Q=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-"};n.Xml={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"};const ue={properties:{},additionalProperties:"Schema"};n.DiscriminatorMapping={properties:{},additionalProperties:Q=>(0,h.isMappingRef)(Q)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},n.Discriminator={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-"};const Pe={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-"},le={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-"},De={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},fe={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-"},se={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":Q=>typeof Q=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-"},z={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-"},V={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"},"x-defaultClientId":{type:"string"}},required(Q){switch(Q?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(Q){switch(Q?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},W={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}}};n.Oas3Types={Root:O,Tag:d,TagList:(0,o.listOf)("Tag"),TagGroups:(0,o.listOf)("TagGroup"),TagGroup:p,ExternalDocs:n.ExternalDocs,Server:c,ServerList:(0,o.listOf)("Server"),ServerVariable:v,ServerVariablesMap:(0,o.mapOf)("ServerVariable"),SecurityRequirement:g,SecurityRequirementList:(0,o.listOf)("SecurityRequirement"),Info:x,Contact:b,License:P,Paths:S,PathItem:a,Parameter:l,ParameterList:(0,o.listOf)("Parameter"),Operation:D,Callback:(0,o.mapOf)("PathItem"),CallbacksMap:(0,o.mapOf)("Callback"),RequestBody:L,MediaTypesMap:A,MediaType:R,Example:j,ExamplesMap:(0,o.mapOf)("Example"),Encoding:$,EncodingMap:(0,o.mapOf)("Encoding"),EnumDescriptions:T,Header:G,HeadersMap:(0,o.mapOf)("Header"),Responses:_,Response:X,Link:q,Logo:y,Schema:F,Xml:n.Xml,SchemaProperties:ue,DiscriminatorMapping:n.DiscriminatorMapping,Discriminator:n.Discriminator,Components:Pe,LinksMap:(0,o.mapOf)("Link"),NamedSchemas:(0,o.mapOf)("Schema"),NamedResponses:(0,o.mapOf)("Response"),NamedParameters:(0,o.mapOf)("Parameter"),NamedExamples:(0,o.mapOf)("Example"),NamedRequestBodies:(0,o.mapOf)("RequestBody"),NamedHeaders:(0,o.mapOf)("Header"),NamedSecuritySchemes:(0,o.mapOf)("SecurityScheme"),NamedLinks:(0,o.mapOf)("Link"),NamedCallbacks:(0,o.mapOf)("Callback"),ImplicitFlow:le,PasswordFlow:De,ClientCredentials:fe,AuthorizationCode:se,OAuth2Flows:z,SecurityScheme:V,XCodeSample:I,XCodeSampleList:(0,o.listOf)("XCodeSample"),XUsePkce:W,WebhooksMap:t}},18518:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Oas3_1Types=n.DependentRequired=n.SchemaProperties=n.Schema=void 0;const o=e(41386),h=e(51270),f={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string"}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-"},O={properties:{name:{type:"string"},url:{type:"string"},identifier:{type:"string"}},required:["name"],extensionsPrefix:"x-"},d={properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},summary:{type:"string"},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},p={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks",pathItems:"NamedPathItems"},extensionsPrefix:"x-"},c={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-"};n.Schema={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:g=>Array.isArray(g)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:(0,o.listOf)("Schema"),anyOf:(0,o.listOf)("Schema"),oneOf:(0,o.listOf)("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:(0,o.mapOf)("Schema"),dependentRequired:"DependentRequired",prefixItems:(0,o.listOf)("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:g=>typeof g=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:g=>typeof g=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:g=>typeof g=="boolean"?{type:"boolean"}:"Schema",additionalProperties:g=>typeof g=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},n.SchemaProperties={properties:{},additionalProperties:g=>typeof g=="boolean"?{type:"boolean"}:"Schema"};const v={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(g){switch(g?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(g){switch(g?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(g?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"};n.DependentRequired={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},n.Oas3_1Types={...h.Oas3Types,Info:d,Root:f,Schema:n.Schema,SchemaProperties:n.SchemaProperties,PatternProperties:n.SchemaProperties,License:O,Components:p,NamedPathItems:(0,o.mapOf)("PathItem"),SecurityScheme:v,Operation:c,DependentRequired:n.DependentRequired}},33290:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Overlay1Types=void 0;const o=e(41386),h={properties:{overlay:{type:"string"},info:"Info",extends:{type:"string"},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-"},f={properties:{title:{type:"string"},version:{type:"string"}},required:["title","version"],extensionsPrefix:"x-"},O=(0,o.listOf)("Action"),d={properties:{target:{type:"string"},description:{type:"string"},update:{},remove:{type:"boolean"}},required:["target"],extensionsPrefix:"x-"};n.Overlay1Types={Root:h,Info:f,Actions:O,Action:d}},22074:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ConfigTypes=void 0,n.createConfigTypes=Jt;const o=e(91561),h=e(41386),f=e(97089),O=e(3069),d=e(20430),p=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-url","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-excludes-patterns","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","spec-strict-refs","no-unresolved-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type"],c=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-url","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-excludes-patterns","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","spec-strict-refs","no-unresolved-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization"],v=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash"],g=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash"],x=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","workflow-dependsOn","parameters-unique","step-onSuccess-unique","step-onFailure-unique","respect-supported-versions","requestBody-replacements-unique","no-criteria-xpath","criteria-unique"],y=["info-contact"],b=[...p,...c,...v,...g,...x,...y,"spec","struct"],P=null,S=null,t=null,a={properties:{extends:{type:"array",items:{type:"string"}},rules:"Rules",oas2Rules:"Rules",oas3_0Rules:"Rules",oas3_1Rules:"Rules",async2Rules:"Rules",arazzo1Rules:"Rules",preprocessors:{type:"object"},oas2Preprocessors:{type:"object"},oas3_0Preprocessors:{type:"object"},oas3_1Preprocessors:{type:"object"},async2Preprocessors:{type:"object"},arazzoPreprocessors:{type:"object"},decorators:{type:"object"},oas2Decorators:{type:"object"},oas3_0Decorators:{type:"object"},oas3_1Decorators:{type:"object"},async2Decorators:{type:"object"},arazzo1Decorators:{type:"object"}}},l=fn=>({...fn.rootRedoclyConfigSchema,properties:{...fn.rootRedoclyConfigSchema.properties,...a.properties,apis:"ConfigApis","features.openapi":"ConfigReferenceDocs","features.mockServer":"ConfigMockServer",organization:{type:"string"},region:{enum:["us","eu"]},telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}},files:{type:"array",items:{type:"string"}}}}),D={properties:{},additionalProperties:"ConfigApisProperties"},I=fn=>({...fn["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...fn["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,labels:{type:"array",items:{type:"string"}},...a.properties,"features.openapi":"ConfigReferenceDocs","features.mockServer":"ConfigMockServer",files:{type:"array",items:{type:"string"}}}}),L={properties:{headers:{type:"array",items:{type:"string"}}}},A={properties:{},additionalProperties:(fn,xn)=>{if(xn.startsWith("rule/"))return typeof fn=="string"?{enum:["error","warn","off"]}:"Assert";if(xn.startsWith("assert/"))return typeof fn=="string"?{enum:["error","warn","off"]}:"Assert";if(b.includes(xn)||(0,O.isCustomRuleId)(xn))return typeof fn=="string"?{enum:["error","warn","off"]}:"ObjectRule";if(xn==="metadata-schema"||xn==="custom-fields-schema")return"Schema"}},R={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"]},j={properties:{},additionalProperties:{}};function $(fn){return{properties:{type:{enum:[...new Set(["any",...fn,"SpecExtension"])]},property:xn=>Array.isArray(xn)?{type:"array",items:{type:"string"}}:xn===null?null:{type:"string"},filterInParentKeys:{type:"array",items:{type:"string"}},filterOutParentKeys:{type:"array",items:{type:"string"}},matchParentKeys:{type:"string"}},required:["type"]}}const T={properties:{enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},notPattern:{type:"string"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"]},mutuallyExclusive:{type:"array",items:{type:"string"}},mutuallyRequired:{type:"array",items:{type:"string"}},required:{type:"array",items:{type:"string"}},requireAny:{type:"array",items:{type:"string"}},disallowed:{type:"array",items:{type:"string"}},defined:{type:"boolean"},nonEmpty:{type:"boolean"},minLength:{type:"integer"},maxLength:{type:"integer"},ref:fn=>typeof fn=="string"?{type:"string"}:{type:"boolean"},const:fn=>{if(typeof fn=="string")return{type:"string"};if(typeof fn=="number")return{type:"number"};if(typeof fn=="boolean")return{type:"boolean"}}},additionalProperties:(fn,xn)=>{if(/^\w+\/\w+$/.test(xn))return{type:"object"}}},G={properties:{subject:"AssertionDefinitionSubject",assertions:"AssertionDefinitionAssertions"},required:["subject","assertions"]},_={properties:{subject:"AssertionDefinitionSubject",assertions:"AssertionDefinitionAssertions",where:(0,h.listOf)("AssertDefinition"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},severity:{enum:["error","warn","off"]}},required:["subject","assertions"]},X={properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},q={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"}}},F={properties:{beforeInfo:(0,h.listOf)("CommonConfigSidebarLinks"),end:(0,h.listOf)("CommonConfigSidebarLinks")}},ue={properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Pe={properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},le={properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},De={properties:(0,O.pickObjectProps)(Pe.properties,["light","dark"])},fe={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"}}},se={properties:{error:"CommonColorProps",info:"CommonColorProps",redirect:"CommonColorProps",success:"CommonColorProps"}},z={properties:(0,O.omitObjectProps)(Pe.properties,["dark"])},V={properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},W={properties:{accent:"CommonThemeColors",border:"BorderThemeColors",error:"CommonThemeColors",http:"HttpColors",primary:"CommonThemeColors",responses:"ResponseColors",secondary:"SecondaryColors",success:"CommonThemeColors",text:"TextThemeColors",tonalOffset:{type:"number"},warning:"CommonThemeColors"}},Q={properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},te={properties:{small:"SizeProps",medium:"SizeProps",large:"SizeProps",xlarge:"SizeProps"}},ye={properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},he={properties:{...(0,O.omitObjectProps)(ye.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:"Sizes"}},Le={properties:(0,O.pickObjectProps)(ye.properties,["fontSize","lineHeight"])},We={properties:{medium:"BadgeFontConfig",small:"BadgeFontConfig"}},Ie={properties:{...(0,O.omitObjectProps)(ye.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:"BadgeSizes"}},xe={properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Ae={properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},B={properties:{fullWidth:{type:"boolean"}}},U={properties:{buttons:"ButtonsConfig",httpBadges:"HttpBadgesConfig",layoutControls:"LabelControls",panels:"Panels",tryItButton:"TryItButton",tryItSendButton:"TryItButton"}},Me={properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},He={properties:{maxWidth:"Breakpoints"}},pe={properties:{maxWidth:"Breakpoints",middlePanelMaxWidth:"Breakpoints"}},ce={properties:{showDarkRightPanel:{type:"boolean"},stacked:"StackedConfig","three-panel":"ThreePanelConfig"}},Oe={properties:{backgroundColor:{type:"string"},border:{type:"string"}}},ht={properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:"SchemaColorsConfig",defaultDetailsWidth:{type:"string"},examples:"SchemaColorsConfig",labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},lt={properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Z={properties:(0,O.pickObjectProps)(lt.properties,["textTransform"])},at={properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},ot={properties:{...(0,O.omitObjectProps)(ye.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:"GroupItemsConfig",level1items:"Level1Items",rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:"SpacingConfig",textColor:{type:"string"},width:{type:"string"}}},Te={properties:{...ye.properties,color:{type:"string"},transform:{type:"string"}}},ke={properties:{...ye.properties,backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},Be={properties:(0,O.omitObjectProps)(ye.properties,["fontSize"])},ne={properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Y={properties:{code:"CodeConfig",fieldName:"FontConfig",...(0,O.pickObjectProps)(ye.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:"Heading",heading2:"Heading",heading3:"Heading",headings:"HeadingsConfig",lineHeight:{type:"string"},links:"LinksConfig",optimizeSpeed:{type:"boolean"},rightPanelHeading:"Heading",smoothing:{enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},ee={properties:{color:{type:"string"},...(0,O.omitObjectProps)(ye.properties,["fontWeight"])}},we={properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:"TokenProps"}},Ze={properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},nt={properties:{backgroundColor:{type:"string"},color:{type:"string"}}},xt={properties:{custom:{type:"string"}}},Fe={properties:{DownloadButton:"ButtonOverrides",NextSectionButton:"ButtonOverrides"}},_e={properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},Pt={properties:{borderRadius:{type:"string"}}},Ke={properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},qe={properties:{breakpoints:"Breakpoints",codeBlock:"CodeBlock",colors:"ThemeColors",components:"ConfigThemeComponents",layout:"Layout",logo:"ConfigThemeLogo",fab:"Fab",overrides:"Overrides",rightPanel:"RightPanel",schema:"ConfigThemeSchema",shape:"Shape",sidebar:"Sidebar",spacing:"ThemeSpacing",typography:"Typography",links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},mt={properties:{skipOptionalParameters:{type:"boolean"},languages:(0,h.listOf)("ConfigLanguage")},required:["languages"]},Tt={properties:{theme:"ConfigTheme",corsProxyUrl:{type:"string"},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:"GenerateCodeSamples",generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLoading:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSchemaTitles:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:fn=>typeof fn=="number"?{type:"number",minimum:1}:{type:"string"},labels:"ConfigLabels",layout:{enum:["stacked","three-panel"]},maxDisplayedEnumValues:{type:"number"},menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},oAuth2RedirectURI:{type:"string"},onDeepLinkClick:{type:"object"},onlyRequiredInSamples:{type:"boolean"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requestInterceptor:{type:"object"},requiredPropsFirst:{type:"boolean"},routingBasePath:{type:"string"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:fn=>typeof fn=="number"?{type:"number",minimum:0}:{type:"string"},schemaDefinitionsTagName:{type:"string"},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:fn=>typeof fn=="number"?{type:"number"}:{type:"string"},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showExtensions:fn=>typeof fn=="boolean"?{type:"boolean"}:{type:"array",items:{type:"string"}},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:"ConfigSidebarLinks",sideNavStyle:{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"},mockServer:{properties:{url:{type:"string"},position:{enum:["first","last","replace","off"]},description:{type:"string"}}},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:{}},Nt={properties:{strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"}}};function Jt(fn,xn){const tn=Object.values(f.SpecVersion).flatMap(pr=>{const wr=xn?.styleguide?xn.styleguide.extendTypes((0,f.getTypes)(pr),pr):(0,f.getTypes)(pr);return Object.keys(wr)}),fr=(0,d.getNodeTypesFromJSONSchema)("rootRedoclyConfigSchema",fn);return{...qt,ConfigRoot:l(fr),ConfigApisProperties:I(fr),AssertionDefinitionSubject:$(tn),...fr}}const qt={Assert:_,ConfigApis:D,ConfigStyleguide:a,ConfigReferenceDocs:Tt,ConfigMockServer:Nt,ConfigHTTP:L,ConfigLanguage:X,ConfigLabels:q,ConfigSidebarLinks:F,CommonConfigSidebarLinks:ue,ConfigTheme:qe,AssertDefinition:G,ThemeColors:W,CommonThemeColors:Pe,BorderThemeColors:De,HttpColors:fe,ResponseColors:se,SecondaryColors:z,TextThemeColors:V,Sizes:te,ButtonsConfig:he,CommonColorProps:le,BadgeFontConfig:Le,BadgeSizes:We,HttpBadgesConfig:Ie,LabelControls:xe,Panels:Ae,TryItButton:B,Breakpoints:Me,StackedConfig:He,ThreePanelConfig:pe,SchemaColorsConfig:Oe,SizeProps:Q,Level1Items:Z,SpacingConfig:at,FontConfig:ye,CodeConfig:ke,HeadingsConfig:Be,LinksConfig:ne,TokenProps:ee,CodeBlock:we,ConfigThemeLogo:Ze,Fab:nt,ButtonOverrides:xt,Overrides:Fe,ObjectRule:R,Schema:j,RightPanel:_e,Rules:A,Shape:Pt,ThemeSpacing:Ke,GenerateCodeSamples:mt,GroupItemsConfig:lt,ConfigThemeComponents:U,Layout:ce,ConfigThemeSchema:ht,Sidebar:ot,Heading:Te,Typography:Y,AssertionDefinitionAssertions:T};n.ConfigTypes=Jt(o.rootRedoclyConfigSchema)},12848:(E,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT=n.VERSION_PATTERN=void 0,n.VERSION_PATTERN=/^1\.0\.\d+(-.+)?$/,n.ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT=["1.0.1"]},3069:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.assignConfig=n.stringifyYaml=n.parseYaml=void 0,n.pushStack=x,n.pluralize=y,n.popStack=b,n.loadYaml=P,n.isDefined=S,n.isPlainObject=t,n.isEmptyObject=a,n.isNotEmptyObject=l,n.isEmptyArray=D,n.isNotEmptyArray=I,n.readFileFromUrl=L,n.pickObjectProps=R,n.omitObjectProps=j,n.splitCamelCaseIntoWords=$,n.validateMimeType=T,n.validateMimeTypeOAS3=G,n.readFileAsStringSync=_,n.yamlAndJsonSyncReader=X,n.isPathParameter=q,n.slash=F,n.isString=ue,n.isNotString=Pe,n.assignOnlyExistingConfig=De,n.getMatchingStatusCodeRange=fe,n.isCustomRuleId=se,n.doesYamlFileExist=z,n.showWarningForDeprecatedField=V,n.showErrorForDeprecatedField=W,n.isTruthy=Q,n.identity=te,n.keysOf=ye,n.pickDefined=he,n.nextTick=Le,n.pause=We,n.getProxyAgent=xe,n.dequal=Ae;const o=e(85519),h=e(13078),f=e(39064),O=e(77318),d=e(29231),p=e(68330),c=e(3070),v=e(64390);var g=e(77318);Object.defineProperty(n,"parseYaml",{enumerable:!0,get:function(){return g.parseYaml}}),Object.defineProperty(n,"stringifyYaml",{enumerable:!0,get:function(){return g.stringifyYaml}});function x(B,U){return{prev:B,value:U}}function y(B,U,Me){return B.split(" ").map(He=>v(He,U,Me)).join(" ")}function b(B){return B?.prev??null}async function P(B){const U=await o.promises.readFile(B,"utf-8");return(0,O.parseYaml)(U)}function S(B){return B!==void 0}function t(B){return B!==null&&typeof B=="object"&&!Array.isArray(B)}function a(B){return t(B)&&Object.keys(B).length===0}function l(B){return t(B)&&!a(B)}function D(B){return Array.isArray(B)&&B.length===0}function I(B){return!!B&&Array.isArray(B)&&!!B.length}async function L(B,U){const Me={};for(const pe of U.headers)A(B,pe.matches)&&(Me[pe.name]=pe.envVariable!==void 0?d.env[pe.envVariable]||"":pe.value);const He=await(U.customFetch||fetch)(B,{headers:Me});if(!He.ok)throw new Error(`Failed to load ${B}: ${He.status} ${He.statusText}`);return{body:await He.text(),mimeType:He.headers.get("content-type")}}function A(B,U){return U.match(/^https?:\/\//)||(B=B.replace(/^https?:\/\//,"")),f(B,U)}function R(B,U){return Object.fromEntries(U.filter(Me=>Me in B).map(Me=>[Me,B[Me]]))}function j(B,U){return Object.fromEntries(Object.entries(B).filter(([Me])=>!U.includes(Me)))}function $(B){const U=B.split(/(?:[-._])|([A-Z][a-z]+)/).filter(Q).map(He=>He.toLocaleLowerCase()),Me=B.split(/([A-Z]{2,})/).filter(He=>He&&He===He.toUpperCase()).map(He=>He.toLocaleLowerCase());return new Set([...U,...Me])}function T({type:B,value:U},{report:Me,location:He},pe){const ce=B==="consumes"?"request":"response";if(!pe)throw new Error(`Parameter "allowedValues" is not provided for "${ce}-mime-type" rule`);if(U[B])for(const Oe of U[B])pe.includes(Oe)||Me({message:`Mime type "${Oe}" is not allowed`,location:He.child(U[B].indexOf(Oe)).key()})}function G({type:B,value:U},{report:Me,location:He},pe){const ce=B==="consumes"?"request":"response";if(!pe)throw new Error(`Parameter "allowedValues" is not provided for "${ce}-mime-type" rule`);if(U.content)for(const Oe of Object.keys(U.content))pe.includes(Oe)||Me({message:`Mime type "${Oe}" is not allowed`,location:He.child("content").child(Oe).key()})}function _(B){return o.readFileSync(B,"utf-8")}function X(B){const U=o.readFileSync(B,"utf-8");return(0,O.parseYaml)(U)}function q(B){return B.startsWith("{")&&B.endsWith("}")}function F(B){return/^\\\\\?\\/.test(B)?B:B.replace(/\\/g,"/")}function ue(B){return typeof B=="string"}function Pe(B){return!ue(B)}const le=(B,U)=>{if(U)for(const Me of Object.keys(U))t(B[Me])&&typeof U[Me]=="string"?B[Me].severity=U[Me]:B[Me]=U[Me]};n.assignConfig=le;function De(B,U){if(U)for(const Me of Object.keys(U))B.hasOwnProperty(Me)&&(t(B[Me])&&typeof U[Me]=="string"?B[Me].severity=U[Me]:B[Me]=U[Me])}function fe(B){return`${B}`.replace(/^(\d)\d\d$/,(U,Me)=>`${Me}XX`)}function se(B){return B.includes("/")}function z(B){return((0,h.extname)(B)===".yaml"||(0,h.extname)(B)===".yml")&&o?.hasOwnProperty?.("existsSync")&&o.existsSync(B)}function V(B,U,Me,He){const pe=He?`Read more about this change: ${He}`:"";p.logger.warn(`The '${p.colorize.red(B)}' field is deprecated. ${U?`Use ${p.colorize.green(Ie(U,Me))} instead. `:""}${pe}
|
|
25
25
|
`)}function W(B,U,Me){throw new Error(`Do not use '${B}' field. ${U?`Use '${Ie(U,Me)}' instead. `:""}
|
|
26
26
|
`)}function Q(B){return!!B}function te(B){return B}function ye(B){return B?Object.keys(B):[]}function he(B){if(!B)return;const U={};for(const Me in B)B[Me]!==void 0&&(U[Me]=B[Me]);return U}function Le(){return new Promise(B=>{setTimeout(B)})}async function We(B){return new Promise(U=>setTimeout(U,B))}function Ie(B,U){return`${typeof U<"u"?`${U}.`:""}${B}`}function xe(){const B={}.HTTPS_PROXY||{}.HTTP_PROXY;return B?new c.HttpsProxyAgent(B):void 0}function Ae(B,U){let Me,He;if(B===U)return!0;if(B&&U&&(Me=B.constructor)===U.constructor){if(Me===Date)return B.getTime()===U.getTime();if(Me===RegExp)return B.toString()===U.toString();if(Me===Array){if((He=B.length)===U.length)for(;He--&&Ae(B[He],U[He]););return He===-1}if(!Me||typeof B=="object"){He=0;for(Me in B)if(Object.prototype.hasOwnProperty.call(B,Me)&&++He&&!Object.prototype.hasOwnProperty.call(U,Me)||!(Me in U)||!Ae(B[Me],U[Me]))return!1;return Object.keys(U).length===He}}return B!==B&&U!==U}},15333:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.normalizeVisitors=f;const o=e(41386),h={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function f(O,d){const p={};p.any={enter:[],leave:[]};for(const x of Object.keys(d))p[x]={enter:[],leave:[]};p.ref={enter:[],leave:[]};for(const{ruleId:x,severity:y,message:b,visitor:P}of O)g({ruleId:x,severity:y,message:b},P,null);for(const x of Object.keys(p))p[x].enter.sort((y,b)=>b.depth-y.depth),p[x].leave.sort((y,b)=>y.depth-b.depth);return p;function c(x,y,b,P,S=[]){if(S.includes(y))return;S=[...S,y];const t=new Set;for(const l of Object.values(y.properties)){if(l===b){a(x,S);continue}typeof l=="object"&&l!==null&&l.name&&t.add(l)}y.additionalProperties&&typeof y.additionalProperties!="function"&&(y.additionalProperties===b?a(x,S):y.additionalProperties.name!==void 0&&t.add(y.additionalProperties)),y.items&&typeof y.items!="function"&&(y.items===b?a(x,S):y.items.name!==void 0&&t.add(y.items)),y.extensionsPrefix&&t.add(o.SpecExtension);for(const l of Array.from(t.values()))c(x,l,b,P,S);function a(l,D){for(const I of D.slice(1))p[I.name]=p[I.name]||{enter:[],leave:[]},p[I.name].enter.push({...l,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:P}})}}function v(x,y){if(Array.isArray(y)){const b=y.find(P=>x[P])||void 0;return b&&x[b]}return x[y]}function g(x,y,b,P=0){const S=Object.keys(d);if(P===0)S.push("any"),S.push("ref");else{if(y.any)throw new Error("any() is allowed only on top level");if(y.ref)throw new Error("ref() is allowed only on top level")}for(const t of S){const a=y[t]||v(y,h[t]),l=p[t];if(!a)continue;let D,I,L;const A=typeof a=="object";if(t==="ref"&&A&&a.skip)throw new Error("ref() visitor does not support skip");typeof a=="function"?D=a:A&&(D=a.enter,I=a.leave,L=a.skip);const R={activatedOn:null,type:d[t],parent:b,isSkippedLevel:!1};if(typeof a=="object"&&g(x,a,R,P+1),b&&c(x,b.type,d[t],b),D||A){if(D&&typeof D!="function")throw new Error("DEV: should be function");l.enter.push({...x,visit:D||(()=>{}),skip:L,depth:P,context:R})}if(I){if(typeof I!="function")throw new Error("DEV: should be function");l.leave.push({...x,visit:I,depth:P,context:R})}}}}},28339:(E,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.walkDocument=c;const o=e(53781),h=e(3069),f=e(67804),O=e(41386);function d(v){const g={};for(;v.parent;)g[v.parent.type.name]=v.parent.activatedOn?.value.node,v=v.parent;return g}function p(v){const g={};for(;v.parent;)v.parent.activatedOn?.value.location&&(g[v.parent.type.name]=v.parent.activatedOn?.value.location),v=v.parent;return g}function c(v){const{document:g,rootType:x,normalizedVisitors:y,resolvedRefMap:b,ctx:P}=v,S={},t=new Set;a(g.parsed,x,new o.Location(g.source,"#/"),void 0,"");function a(l,D,I,L,A){const R=(Pe,le=$.source.absoluteRef)=>{if(!(0,o.isRef)(Pe))return{location:I,node:Pe};const De=(0,f.makeRefId)(le,Pe.$ref),fe=b.get(De);if(!fe)return{location:void 0,node:void 0};const{resolved:se,node:z,document:V,nodePointer:W,error:Q}=fe;return{location:se?new o.Location(V.source,W):Q instanceof f.YamlParseError?new o.Location(Q.source,""):void 0,node:z,error:Q}},j=I;let $=I;const{node:T,location:G,error:_}=R(l),X=new Set;if((0,o.isRef)(l)){const Pe=y.ref.enter;for(const{visit:le,ruleId:De,severity:fe,message:se,context:z}of Pe){X.add(z);const V=F.bind(void 0,De,fe,se);le(l,{report:V,resolve:R,rawNode:l,rawLocation:j,location:I,type:D,parent:L,key:A,parentLocations:{},oasVersion:P.oasVersion,getVisitorData:ue.bind(void 0,De)},{node:T,location:G,error:_}),G?.source.absoluteRef&&P.refTypes&&P.refTypes.set(G?.source.absoluteRef,D)}}if(T!==void 0&&G&&D.name!=="scalar"){$=G;const Pe=S[D.name]?.has?.(T);let le=!1;const fe=y.any.enter.concat(y[D.name]?.enter||[]),se=[];for(const{context:W,visit:Q,skip:te,ruleId:ye,severity:he,message:Le}of fe){if(t.has(`${$.absolutePointer}${$.pointer}`))break;if(W.isSkippedLevel)W.parent.activatedOn&&!W.parent.activatedOn.value.nextLevelTypeActivated&&!W.seen.has(l)&&(W.seen.add(l),le=!0,se.push(W));else if(W.parent&&W.parent.activatedOn&&W.activatedOn?.value.withParentNode!==W.parent.activatedOn.value.node&&W.parent.activatedOn.value.nextLevelTypeActivated?.value!==D||!W.parent&&!Pe){se.push(W);const We={node:T,location:G,nextLevelTypeActivated:null,withParentNode:W.parent?.activatedOn?.value.node,skipped:(W.parent?.activatedOn?.value.skipped||te?.(T,A,{location:I,rawLocation:j,resolve:R,rawNode:l}))??!1};W.activatedOn=(0,h.pushStack)(W.activatedOn,We);let Ie=W.parent;for(;Ie;)Ie.activatedOn.value.nextLevelTypeActivated=(0,h.pushStack)(Ie.activatedOn.value.nextLevelTypeActivated,D),Ie=Ie.parent;We.skipped||(le=!0,X.add(W),q(Q,T,l,W,ye,he,Le))}}if(le||!Pe){if(S[D.name]=S[D.name]||new Set,S[D.name].add(T),Array.isArray(T)){const W=D.items;if(W!==void 0){const Q=typeof W=="function";for(let te=0;te<T.length;te++){const ye=Q?W(T[te],G.child([te]).absolutePointer):W;(0,O.isNamedType)(ye)&&a(T[te],ye,G.child([te]),T,te)}}}else if(typeof T=="object"&&T!==null){const W=Object.keys(D.properties);D.additionalProperties?W.push(...Object.keys(T).filter(Q=>!W.includes(Q))):D.extensionsPrefix&&W.push(...Object.keys(T).filter(Q=>Q.startsWith(D.extensionsPrefix))),(0,o.isRef)(l)&&W.push(...Object.keys(l).filter(Q=>Q!=="$ref"&&!W.includes(Q)));for(const Q of W){let te=T[Q],ye=G;te===void 0&&(te=l[Q],ye=I);let he=D.properties[Q];he===void 0&&(he=D.additionalProperties),typeof he=="function"&&(he=he(te,Q)),he===void 0&&D.extensionsPrefix&&Q.startsWith(D.extensionsPrefix)&&(he=O.SpecExtension),!(0,O.isNamedType)(he)&&he?.directResolveAs&&(he=he.directResolveAs,te={$ref:te}),he&&he.name===void 0&&he.resolvable!==!1&&(he={name:"scalar",properties:{}}),!(!(0,O.isNamedType)(he)||he.name==="scalar"&&!(0,o.isRef)(te))&&a(te,he,ye.child([Q]),T,Q)}}}const z=y.any.leave,V=(y[D.name]?.leave||[]).concat(z);for(const W of se.reverse())if(W.isSkippedLevel)W.seen.delete(T);else if(W.activatedOn=(0,h.popStack)(W.activatedOn),W.parent){let Q=W.parent;for(;Q;)Q.activatedOn.value.nextLevelTypeActivated=(0,h.popStack)(Q.activatedOn.value.nextLevelTypeActivated),Q=Q.parent}for(const{context:W,visit:Q,ruleId:te,severity:ye,message:he}of V)!W.isSkippedLevel&&X.has(W)&&q(Q,T,l,W,te,ye,he)}if($=I,(0,o.isRef)(l)){const Pe=y.ref.leave;for(const{visit:le,ruleId:De,severity:fe,context:se,message:z}of Pe)if(X.has(se)){const V=F.bind(void 0,De,fe,z);le(l,{report:V,resolve:R,rawNode:l,rawLocation:j,location:I,type:D,parent:L,key:A,parentLocations:{},oasVersion:P.oasVersion,getVisitorData:ue.bind(void 0,De)},{node:T,location:G,error:_})}}function q(Pe,le,De,fe,se,z,V){const W=F.bind(void 0,se,z,V);Pe(le,{report:W,resolve:R,rawNode:De,location:$,rawLocation:j,type:D,parent:L,key:A,parentLocations:p(fe),oasVersion:P.oasVersion,ignoreNextVisitorsOnNode:()=>{t.add(`${$.absolutePointer}${$.pointer}`)},getVisitorData:ue.bind(void 0,se)},d(fe),fe)}function F(Pe,le,De,fe){const z=(fe.location?Array.isArray(fe.location)?fe.location:[fe.location]:[{...$,reportOnKey:!1}]).map(W=>({...$,reportOnKey:!1,...W})),V=fe.forceSeverity||le;V!=="off"&&P.problems.push({ruleId:fe.ruleId||Pe,severity:V,...fe,message:De?De.replace("{{message}}",fe.message):fe.message,suggest:fe.suggest||[],location:z})}function ue(Pe){return P.visitorsData[Pe]=P.visitorsData[Pe]||{},P.visitorsData[Pe]}}}},11507:(E,n,e)=>{"use strict";e.d(n,{AO:()=>b,Gh:()=>We,HS:()=>xe,Oi:()=>c,Rr:()=>P,TM:()=>p,pX:()=>ot,pb:()=>W,rc:()=>h,sC:()=>O,tH:()=>He,ue:()=>I,yD:()=>Le,zR:()=>d});/**
|
|
27
27
|
* @remix-run/router v1.14.1
|
|
@@ -12244,4 +12244,4 @@ Error generating stack: `+Ee.message+`
|
|
|
12244
12244
|
`,bg=({pointer:w,schema:N})=>{const{options:H,parser:me}=useAtomValue(globalStoreAtom),Ne=N||{$ref:w},ct=getSchema({parser:me,schemaOrRef:Ne,pointer:w||"",options:H,deps:{operation:{pointer:"RedocSchema"}}});return jsx(Row,{children:jsx(FullWidthPanel,{children:jsx(Schema,{schema:ct,level:1,disableDeepLinks:!0})})})},Sg=({pointer:w,mimeType:N,encoding:H})=>{const me=useAtomValue(globalParserAtom),Ne=useAtomValue(layoutAtom),ct=getExamples({parser:me,infoOrRef:{$ref:w},mime:N,encoding:H});return jsx(Row,{layout:Ne,children:jsx(ExamplesWrap,{children:jsx(Example,{example:ct,mimeType:N})})})},Q0=W.Ay.div`
|
|
12245
12245
|
padding: 20px;
|
|
12246
12246
|
color: red;
|
|
12247
|
-
`;class Ag extends t.Component{constructor(N){super(N),this.state={error:void 0}}componentDidCatch(N){return this.setState({error:N}),!1}render(){return this.state.error?(0,E.jsxs)(Q0,{children:[(0,E.jsx)("h1",{children:"Something went wrong..."}),(0,E.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,E.jsx)("p",{children:(0,E.jsxs)("details",{children:[(0,E.jsx)("summary",{children:"Stack trace"}),(0,E.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,E.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,E.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,E.jsx)(E.Fragment,{children:t.Children.only(this.props.children)})}}var q0=Object.defineProperty,sh=Object.getOwnPropertySymbols,_0=Object.prototype.hasOwnProperty,eg=Object.prototype.propertyIsEnumerable,lh=(w,N,H)=>N in w?q0(w,N,{enumerable:!0,configurable:!0,writable:!0,value:H}):w[N]=H,ch=(w,N)=>{for(var H in N||(N={}))_0.call(N,H)&&lh(w,H,N[H]);if(sh)for(var H of sh(N))eg.call(N,H)&&lh(w,H,N[H]);return w};const uh=(0,D.JA)(),tg=uh?(0,S.dirname)(uh)+"/":"";function ng(w){const N={},H=w.attributes;for(let me=0;me<H.length;me++){const Ne=H[me];N[Ne.name]=Ne.value}return N}function rg(w){const N=ng(w),H={};for(const me in N){const Ne=me.replace(/-(.)/g,(ct,Et)=>Et.toUpperCase());H[Ne]=N[me]}return H}function og(w,N=document.querySelector("redoc")){(0,a.c)(N,(0,E.jsx)(ah,{store:w}))}function dh(w,N={},H=(0,D.iT)("redoc")){if(H===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let me,Ne;typeof w=="string"?me=w:typeof w=="object"&&(Ne=w),(0,a.H)(H).render((0,t.createElement)(J0,{definition:Ne,definitionUrl:me,options:ch(ch({},N),rg(H))},["Loading..."]))}function fh(w){jr.p=w}const ig="3.8.0-next.
|
|
12247
|
+
`;class Ag extends t.Component{constructor(N){super(N),this.state={error:void 0}}componentDidCatch(N){return this.setState({error:N}),!1}render(){return this.state.error?(0,E.jsxs)(Q0,{children:[(0,E.jsx)("h1",{children:"Something went wrong..."}),(0,E.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,E.jsx)("p",{children:(0,E.jsxs)("details",{children:[(0,E.jsx)("summary",{children:"Stack trace"}),(0,E.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,E.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,E.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,E.jsx)(E.Fragment,{children:t.Children.only(this.props.children)})}}var q0=Object.defineProperty,sh=Object.getOwnPropertySymbols,_0=Object.prototype.hasOwnProperty,eg=Object.prototype.propertyIsEnumerable,lh=(w,N,H)=>N in w?q0(w,N,{enumerable:!0,configurable:!0,writable:!0,value:H}):w[N]=H,ch=(w,N)=>{for(var H in N||(N={}))_0.call(N,H)&&lh(w,H,N[H]);if(sh)for(var H of sh(N))eg.call(N,H)&&lh(w,H,N[H]);return w};const uh=(0,D.JA)(),tg=uh?(0,S.dirname)(uh)+"/":"";function ng(w){const N={},H=w.attributes;for(let me=0;me<H.length;me++){const Ne=H[me];N[Ne.name]=Ne.value}return N}function rg(w){const N=ng(w),H={};for(const me in N){const Ne=me.replace(/-(.)/g,(ct,Et)=>Et.toUpperCase());H[Ne]=N[me]}return H}function og(w,N=document.querySelector("redoc")){(0,a.c)(N,(0,E.jsx)(ah,{store:w}))}function dh(w,N={},H=(0,D.iT)("redoc")){if(H===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let me,Ne;typeof w=="string"?me=w:typeof w=="object"&&(Ne=w),(0,a.H)(H).render((0,t.createElement)(J0,{definition:Ne,definitionUrl:me,options:ch(ch({},N),rg(H))},["Loading..."]))}function fh(w){jr.p=w}const ig="3.8.0-next.4",ag="a094ed5";function sg(){const w=(0,D.iT)("redoc");if(!w)return;const N=w.getAttribute("spec-url");N&&dh(N,{},w)}l.IS_BROWSER&&fh(tg),sg()})(),mf})());
|