@redocly/openapi-docs 3.3.3 → 3.3.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.3.3"
5
+ * Version: "3.3.4"
6
6
  */(function(Uc,tc){typeof exports=="object"&&typeof module=="object"?module.exports=tc(require("null")):typeof define=="function"&&define.amd?define(["null"],tc):typeof exports=="object"?exports.RedoclyOpenAPIDocs=tc(require("null")):Uc.RedoclyOpenAPIDocs=tc(Uc.null)})(this,nf=>(()=>{var Uc={44607:(p,t,e)=>{"use strict";e.d(t,{A:()=>n});function n(u){var d=Object.create(null);return function(O){return d[O]===void 0&&(d[O]=u(O)),d[O]}}},41685:(p,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=e(30646),u=e(78234),d=e(30833),O=e(86640),v="https://json-schema.org/draft/2020-12/schema";class g extends n.default{constructor(b={}){super({...b,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),u.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(d.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:b,meta:P}=this.opts;P&&(O.default.call(this,b),this.refs["http://json-schema.org/schema"]=v)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(v)?v:void 0)}}p.exports=t=g,Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var h=e(72630);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return h.KeywordCxt}});var E=e(11601);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return E._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return E.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return E.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return E.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return E.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return E.CodeGen}})},21860:(p,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends e{constructor(l){if(super(),!t.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}}}t.Name=n;class u 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((R,C)=>`${R}${C}`,"")}get names(){var l;return(l=this._names)!==null&&l!==void 0?l:this._names=this._items.reduce((R,C)=>(C instanceof n&&(R[C.str]=(R[C.str]||0)+1),R),{})}}t._Code=u,t.nil=new u("");function d(a,...l){const R=[a[0]];let C=0;for(;C<l.length;)g(R,l[C]),R.push(a[++C]);return new u(R)}t._=d;const O=new u("+");function v(a,...l){const R=[I(a[0])];let C=0;for(;C<l.length;)R.push(O),g(R,l[C]),R.push(O,I(a[++C]));return h(R),new u(R)}t.str=v;function g(a,l){l instanceof u?a.push(...l._items):l instanceof n?a.push(l):a.push(b(l))}t.addCodeArg=g;function h(a){let l=1;for(;l<a.length-1;){if(a[l]===O){const R=E(a[l-1],a[l+1]);if(R!==void 0){a.splice(l-1,3,R);continue}a[l++]="+"}l++}}function E(a,l){if(l==='""')return a;if(a==='""')return l;if(typeof a=="string")return l instanceof n||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 n))return`"${a}${l.slice(1)}`}function y(a,l){return l.emptyStr()?a:a.emptyStr()?l:v`${a}${l}`}t.strConcat=y;function b(a){return typeof a=="number"||typeof a=="boolean"||a===null?a:I(Array.isArray(a)?a.join(","):a)}function P(a){return new u(I(a))}t.stringify=P;function I(a){return JSON.stringify(a).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=I;function S(a){return typeof a=="string"&&t.IDENTIFIER.test(a)?new u(`.${a}`):d`[${a}]`}t.getProperty=S;function A(a){if(typeof a=="string"&&t.IDENTIFIER.test(a))return new u(`${a}`);throw new Error(`CodeGen: invalid export name: ${a}, use explicit $id name mapping`)}t.getEsmExportName=A;function o(a){return new u(a.toString())}t.regexpCode=o},11601:(p,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=e(21860),u=e(4425);var d=e(21860);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return d.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return d.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return d.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}});var O=e(4425);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return O.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return O.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return O.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return O.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class v{optimizeNodes(){return this}optimizeNames(J,V){return this}}class g extends v{constructor(J,V,oe){super(),this.varKind=J,this.name=V,this.rhs=oe}render({es5:J,_n:V}){const oe=J?u.varKinds.var:this.varKind,te=this.rhs===void 0?"":` = ${this.rhs}`;return`${oe} ${this.name}${te};`+V}optimizeNames(J,V){if(J[this.name.str])return this.rhs&&(this.rhs=pe(this.rhs,J,V)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class h extends v{constructor(J,V,oe){super(),this.lhs=J,this.rhs=V,this.sideEffects=oe}render({_n:J}){return`${this.lhs} = ${this.rhs};`+J}optimizeNames(J,V){if(!(this.lhs instanceof n.Name&&!J[this.lhs.str]&&!this.sideEffects))return this.rhs=pe(this.rhs,J,V),this}get names(){const J=this.lhs instanceof n.Name?{}:{...this.lhs.names};return ie(J,this.rhs)}}class E extends h{constructor(J,V,oe,te){super(J,oe,te),this.op=V}render({_n:J}){return`${this.lhs} ${this.op}= ${this.rhs};`+J}}class y extends v{constructor(J){super(),this.label=J,this.names={}}render({_n:J}){return`${this.label}:`+J}}class b extends v{constructor(J){super(),this.label=J,this.names={}}render({_n:J}){return`break${this.label?` ${this.label}`:""};`+J}}class P extends v{constructor(J){super(),this.error=J}render({_n:J}){return`throw ${this.error};`+J}get names(){return this.error.names}}class I extends v{constructor(J){super(),this.code=J}render({_n:J}){return`${this.code};`+J}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(J,V){return this.code=pe(this.code,J,V),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class S extends v{constructor(J=[]){super(),this.nodes=J}render(J){return this.nodes.reduce((V,oe)=>V+oe.render(J),"")}optimizeNodes(){const{nodes:J}=this;let V=J.length;for(;V--;){const oe=J[V].optimizeNodes();Array.isArray(oe)?J.splice(V,1,...oe):oe?J[V]=oe:J.splice(V,1)}return J.length>0?this:void 0}optimizeNames(J,V){const{nodes:oe}=this;let te=oe.length;for(;te--;){const ye=oe[te];ye.optimizeNames(J,V)||(xe(J,ye.names),oe.splice(te,1))}return oe.length>0?this:void 0}get names(){return this.nodes.reduce((J,V)=>ce(J,V.names),{})}}class A extends S{render(J){return"{"+J._n+super.render(J)+"}"+J._n}}class o extends S{}class a extends A{}a.kind="else";class l extends A{constructor(J,V){super(V),this.condition=J}render(J){let V=`if(${this.condition})`+super.render(J);return this.else&&(V+="else "+this.else.render(J)),V}optimizeNodes(){super.optimizeNodes();const J=this.condition;if(J===!0)return this.nodes;let V=this.else;if(V){const oe=V.optimizeNodes();V=this.else=Array.isArray(oe)?new a(oe):oe}if(V)return J===!1?V instanceof l?V:V.nodes:this.nodes.length?this:new l(we(J),V instanceof l?[V]:V.nodes);if(!(J===!1||!this.nodes.length))return this}optimizeNames(J,V){var oe;if(this.else=(oe=this.else)===null||oe===void 0?void 0:oe.optimizeNames(J,V),!!(super.optimizeNames(J,V)||this.else))return this.condition=pe(this.condition,J,V),this}get names(){const J=super.names;return ie(J,this.condition),this.else&&ce(J,this.else.names),J}}l.kind="if";class R extends A{}R.kind="for";class C extends R{constructor(J){super(),this.iteration=J}render(J){return`for(${this.iteration})`+super.render(J)}optimizeNames(J,V){if(super.optimizeNames(J,V))return this.iteration=pe(this.iteration,J,V),this}get names(){return ce(super.names,this.iteration.names)}}class j extends R{constructor(J,V,oe,te){super(),this.varKind=J,this.name=V,this.from=oe,this.to=te}render(J){const V=J.es5?u.varKinds.var:this.varKind,{name:oe,from:te,to:ye}=this;return`for(${V} ${oe}=${te}; ${oe}<${ye}; ${oe}++)`+super.render(J)}get names(){const J=ie(super.names,this.from);return ie(J,this.to)}}class D extends R{constructor(J,V,oe,te){super(),this.loop=J,this.varKind=V,this.name=oe,this.iterable=te}render(J){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(J)}optimizeNames(J,V){if(super.optimizeNames(J,V))return this.iterable=pe(this.iterable,J,V),this}get names(){return ce(super.names,this.iterable.names)}}class U extends A{constructor(J,V,oe){super(),this.name=J,this.args=V,this.async=oe}render(J){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(J)}}U.kind="func";class M extends S{render(J){return"return "+super.render(J)}}M.kind="return";class H extends A{render(J){let V="try"+super.render(J);return this.catch&&(V+=this.catch.render(J)),this.finally&&(V+=this.finally.render(J)),V}optimizeNodes(){var J,V;return super.optimizeNodes(),(J=this.catch)===null||J===void 0||J.optimizeNodes(),(V=this.finally)===null||V===void 0||V.optimizeNodes(),this}optimizeNames(J,V){var oe,te;return super.optimizeNames(J,V),(oe=this.catch)===null||oe===void 0||oe.optimizeNames(J,V),(te=this.finally)===null||te===void 0||te.optimizeNames(J,V),this}get names(){const J=super.names;return this.catch&&ce(J,this.catch.names),this.finally&&ce(J,this.finally.names),J}}class w extends A{constructor(J){super(),this.error=J}render(J){return`catch(${this.error})`+super.render(J)}}w.kind="catch";class ne extends A{render(J){return"finally"+super.render(J)}}ne.kind="finally";class re{constructor(J,V={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...V,_n:V.lines?`
7
7
  `:""},this._extScope=J,this._scope=new u.Scope({parent:J}),this._nodes=[new o]}toString(){return this._root.render(this.opts)}name(J){return this._scope.name(J)}scopeName(J){return this._extScope.name(J)}scopeValue(J,V){const oe=this._extScope.value(J,V);return(this._values[oe.prefix]||(this._values[oe.prefix]=new Set)).add(oe),oe}getScopeValue(J,V){return this._extScope.getValue(J,V)}scopeRefs(J){return this._extScope.scopeRefs(J,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(J,V,oe,te){const ye=this._scope.toName(V);return oe!==void 0&&te&&(this._constants[ye.str]=oe),this._leafNode(new g(J,ye,oe)),ye}const(J,V,oe){return this._def(u.varKinds.const,J,V,oe)}let(J,V,oe){return this._def(u.varKinds.let,J,V,oe)}var(J,V,oe){return this._def(u.varKinds.var,J,V,oe)}assign(J,V,oe){return this._leafNode(new h(J,V,oe))}add(J,V){return this._leafNode(new E(J,t.operators.ADD,V))}code(J){return typeof J=="function"?J():J!==n.nil&&this._leafNode(new I(J)),this}object(...J){const V=["{"];for(const[oe,te]of J)V.length>1&&V.push(","),V.push(oe),(oe!==te||this.opts.es5)&&(V.push(":"),(0,n.addCodeArg)(V,te));return V.push("}"),new n._Code(V)}if(J,V,oe){if(this._blockNode(new l(J)),V&&oe)this.code(V).else().code(oe).endIf();else if(V)this.code(V).endIf();else if(oe)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(J){return this._elseNode(new l(J))}else(){return this._elseNode(new a)}endIf(){return this._endBlockNode(l,a)}_for(J,V){return this._blockNode(J),V&&this.code(V).endFor(),this}for(J,V){return this._for(new C(J),V)}forRange(J,V,oe,te,ye=this.opts.es5?u.varKinds.var:u.varKinds.let){const me=this._scope.toName(J);return this._for(new j(ye,me,V,oe),()=>te(me))}forOf(J,V,oe,te=u.varKinds.const){const ye=this._scope.toName(J);if(this.opts.es5){const me=V instanceof n.Name?V:this.var("_arr",V);return this.forRange("_i",0,(0,n._)`${me}.length`,Re=>{this.var(ye,(0,n._)`${me}[${Re}]`),oe(ye)})}return this._for(new D("of",te,ye,V),()=>oe(ye))}forIn(J,V,oe,te=this.opts.es5?u.varKinds.var:u.varKinds.const){if(this.opts.ownProperties)return this.forOf(J,(0,n._)`Object.keys(${V})`,oe);const ye=this._scope.toName(J);return this._for(new D("in",te,ye,V),()=>oe(ye))}endFor(){return this._endBlockNode(R)}label(J){return this._leafNode(new y(J))}break(J){return this._leafNode(new b(J))}return(J){const V=new M;if(this._blockNode(V),this.code(J),V.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(M)}try(J,V,oe){if(!V&&!oe)throw new Error('CodeGen: "try" without "catch" and "finally"');const te=new H;if(this._blockNode(te),this.code(J),V){const ye=this.name("e");this._currNode=te.catch=new w(ye),V(ye)}return oe&&(this._currNode=te.finally=new ne,this.code(oe)),this._endBlockNode(w,ne)}throw(J){return this._leafNode(new P(J))}block(J,V){return this._blockStarts.push(this._nodes.length),J&&this.code(J).endBlock(V),this}endBlock(J){const V=this._blockStarts.pop();if(V===void 0)throw new Error("CodeGen: not in self-balancing block");const oe=this._nodes.length-V;if(oe<0||J!==void 0&&oe!==J)throw new Error(`CodeGen: wrong number of nodes: ${oe} vs ${J} expected`);return this._nodes.length=V,this}func(J,V=n.nil,oe,te){return this._blockNode(new U(J,V,oe)),te&&this.code(te).endFunc(),this}endFunc(){return this._endBlockNode(U)}optimize(J=1){for(;J-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(J){return this._currNode.nodes.push(J),this}_blockNode(J){this._currNode.nodes.push(J),this._nodes.push(J)}_endBlockNode(J,V){const oe=this._currNode;if(oe instanceof J||V&&oe instanceof V)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${V?`${J.kind}/${V.kind}`:J.kind}"`)}_elseNode(J){const V=this._currNode;if(!(V instanceof l))throw new Error('CodeGen: "else" without "if"');return this._currNode=V.else=J,this}get _root(){return this._nodes[0]}get _currNode(){const J=this._nodes;return J[J.length-1]}set _currNode(J){const V=this._nodes;V[V.length-1]=J}}t.CodeGen=re;function ce(q,J){for(const V in J)q[V]=(q[V]||0)+(J[V]||0);return q}function ie(q,J){return J instanceof n._CodeOrName?ce(q,J.names):q}function pe(q,J,V){if(q instanceof n.Name)return oe(q);if(!te(q))return q;return new n._Code(q._items.reduce((ye,me)=>(me instanceof n.Name&&(me=oe(me)),me instanceof n._Code?ye.push(...me._items):ye.push(me),ye),[]));function oe(ye){const me=V[ye.str];return me===void 0||J[ye.str]!==1?ye:(delete J[ye.str],me)}function te(ye){return ye instanceof n._Code&&ye._items.some(me=>me instanceof n.Name&&J[me.str]===1&&V[me.str]!==void 0)}}function xe(q,J){for(const V in J)q[V]=(q[V]||0)-(J[V]||0)}function we(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,n._)`!${k(q)}`}t.not=we;const ge=K(t.operators.AND);function Te(...q){return q.reduce(ge)}t.and=Te;const Se=K(t.operators.OR);function G(...q){return q.reduce(Se)}t.or=G;function K(q){return(J,V)=>J===n.nil?V:V===n.nil?J:(0,n._)`${k(J)} ${q} ${k(V)}`}function k(q){return q instanceof n.Name?q:(0,n._)`(${q})`}},4425:(p,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=e(21860);class u extends Error{constructor(y){super(`CodeGen: "code" for ${y} not defined`),this.value=y.value}}var d;(function(E){E[E.Started=0]="Started",E[E.Completed=1]="Completed"})(d=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class O{constructor({prefixes:y,parent:b}={}){this._names={},this._prefixes=y,this._parent=b}toName(y){return y instanceof n.Name?y:this.name(y)}name(y){return new n.Name(this._newName(y))}_newName(y){const b=this._names[y]||this._nameGroup(y);return`${y}${b.index++}`}_nameGroup(y){var b,P;if(!((P=(b=this._parent)===null||b===void 0?void 0:b._prefixes)===null||P===void 0)&&P.has(y)||this._prefixes&&!this._prefixes.has(y))throw new Error(`CodeGen: prefix "${y}" is not allowed in this scope`);return this._names[y]={prefix:y,index:0}}}t.Scope=O;class v extends n.Name{constructor(y,b){super(b),this.prefix=y}setValue(y,{property:b,itemIndex:P}){this.value=y,this.scopePath=(0,n._)`.${new n.Name(b)}[${P}]`}}t.ValueScopeName=v;const g=(0,n._)`\n`;class h extends O{constructor(y){super(y),this._values={},this._scope=y.scope,this.opts={...y,_n:y.lines?g:n.nil}}get(){return this._scope}name(y){return new v(y,this._newName(y))}value(y,b){var P;if(b.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const I=this.toName(y),{prefix:S}=I,A=(P=b.key)!==null&&P!==void 0?P:b.ref;let o=this._values[S];if(o){const R=o.get(A);if(R)return R}else o=this._values[S]=new Map;o.set(A,I);const a=this._scope[S]||(this._scope[S]=[]),l=a.length;return a[l]=b.ref,I.setValue(b,{property:S,itemIndex:l}),I}getValue(y,b){const P=this._values[y];if(P)return P.get(b)}scopeRefs(y,b=this._values){return this._reduceValues(b,P=>{if(P.scopePath===void 0)throw new Error(`CodeGen: name "${P}" has no value`);return(0,n._)`${y}${P.scopePath}`})}scopeCode(y=this._values,b,P){return this._reduceValues(y,I=>{if(I.value===void 0)throw new Error(`CodeGen: name "${I}" has no value`);return I.value.code},b,P)}_reduceValues(y,b,P={},I){let S=n.nil;for(const A in y){const o=y[A];if(!o)continue;const a=P[A]=P[A]||new Map;o.forEach(l=>{if(a.has(l))return;a.set(l,d.Started);let R=b(l);if(R){const C=this.opts.es5?t.varKinds.var:t.varKinds.const;S=(0,n._)`${S}${C} ${l} = ${R};${this.opts._n}`}else if(R=I?.(l))S=(0,n._)`${S}${R}${this.opts._n}`;else throw new u(l);a.set(l,d.Completed)})}return S}}t.ValueScope=h},52952:(p,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=e(11601),u=e(64207),d=e(38955);t.keywordError={message:({keyword:a})=>(0,n.str)`must pass "${a}" keyword validation`},t.keyword$DataError={message:({keyword:a,schemaType:l})=>l?(0,n.str)`"${a}" keyword must be ${l} ($data)`:(0,n.str)`"${a}" keyword is invalid ($data)`};function O(a,l=t.keywordError,R,C){const{it:j}=a,{gen:D,compositeRule:U,allErrors:M}=j,H=P(a,l,R);C??(U||M)?E(D,H):y(j,(0,n._)`[${H}]`)}t.reportError=O;function v(a,l=t.keywordError,R){const{it:C}=a,{gen:j,compositeRule:D,allErrors:U}=C,M=P(a,l,R);E(j,M),D||U||y(C,d.default.vErrors)}t.reportExtraError=v;function g(a,l){a.assign(d.default.errors,l),a.if((0,n._)`${d.default.vErrors} !== null`,()=>a.if(l,()=>a.assign((0,n._)`${d.default.vErrors}.length`,l),()=>a.assign(d.default.vErrors,null)))}t.resetErrorsCount=g;function h({gen:a,keyword:l,schemaValue:R,data:C,errsCount:j,it:D}){if(j===void 0)throw new Error("ajv implementation error");const U=a.name("err");a.forRange("i",j,d.default.errors,M=>{a.const(U,(0,n._)`${d.default.vErrors}[${M}]`),a.if((0,n._)`${U}.instancePath === undefined`,()=>a.assign((0,n._)`${U}.instancePath`,(0,n.strConcat)(d.default.instancePath,D.errorPath))),a.assign((0,n._)`${U}.schemaPath`,(0,n.str)`${D.errSchemaPath}/${l}`),D.opts.verbose&&(a.assign((0,n._)`${U}.schema`,R),a.assign((0,n._)`${U}.data`,C))})}t.extendErrors=h;function E(a,l){const R=a.const("err",l);a.if((0,n._)`${d.default.vErrors} === null`,()=>a.assign(d.default.vErrors,(0,n._)`[${R}]`),(0,n._)`${d.default.vErrors}.push(${R})`),a.code((0,n._)`${d.default.errors}++`)}function y(a,l){const{gen:R,validateName:C,schemaEnv:j}=a;j.$async?R.throw((0,n._)`new ${a.ValidationError}(${l})`):(R.assign((0,n._)`${C}.errors`,l),R.return(!1))}const b={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function P(a,l,R){const{createErrors:C}=a.it;return C===!1?(0,n._)`{}`:I(a,l,R)}function I(a,l,R={}){const{gen:C,it:j}=a,D=[S(j,R),A(a,R)];return o(a,l,D),C.object(...D)}function S({errorPath:a},{instancePath:l}){const R=l?(0,n.str)`${a}${(0,u.getErrorPath)(l,u.Type.Str)}`:a;return[d.default.instancePath,(0,n.strConcat)(d.default.instancePath,R)]}function A({keyword:a,it:{errSchemaPath:l}},{schemaPath:R,parentSchema:C}){let j=C?l:(0,n.str)`${l}/${a}`;return R&&(j=(0,n.str)`${j}${(0,u.getErrorPath)(R,u.Type.Str)}`),[b.schemaPath,j]}function o(a,{params:l,message:R},C){const{keyword:j,data:D,schemaValue:U,it:M}=a,{opts:H,propertyName:w,topSchemaRef:ne,schemaPath:re}=M;C.push([b.keyword,j],[b.params,typeof l=="function"?l(a):l||(0,n._)`{}`]),H.messages&&C.push([b.message,typeof R=="function"?R(a):R]),H.verbose&&C.push([b.schema,U],[b.parentSchema,(0,n._)`${ne}${re}`],[d.default.data,D]),w&&C.push([b.propertyName,w])}},39663:(p,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=e(11601),u=e(3450),d=e(38955),O=e(92863),v=e(64207),g=e(72630);class h{constructor(R){var C;this.refs={},this.dynamicAnchors={};let j;typeof R.schema=="object"&&(j=R.schema),this.schema=R.schema,this.schemaId=R.schemaId,this.root=R.root||this,this.baseId=(C=R.baseId)!==null&&C!==void 0?C:(0,O.normalizeId)(j?.[R.schemaId||"$id"]),this.schemaPath=R.schemaPath,this.localRefs=R.localRefs,this.meta=R.meta,this.$async=j?.$async,this.refs={}}}t.SchemaEnv=h;function E(l){const R=P.call(this,l);if(R)return R;const C=(0,O.getFullPath)(this.opts.uriResolver,l.root.baseId),{es5:j,lines:D}=this.opts.code,{ownProperties:U}=this.opts,M=new n.CodeGen(this.scope,{es5:j,lines:D,ownProperties:U});let H;l.$async&&(H=M.scopeValue("Error",{ref:u.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`}));const w=M.scopeName("validate");l.validateName=w;const ne={gen:M,allErrors:this.opts.allErrors,data:d.default.data,parentData:d.default.parentData,parentDataProperty:d.default.parentDataProperty,dataNames:[d.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:M.scopeValue("schema",this.opts.code.source===!0?{ref:l.schema,code:(0,n.stringify)(l.schema)}:{ref:l.schema}),validateName:w,ValidationError:H,schema:l.schema,schemaEnv:l,rootId:C,baseId:l.baseId||C,schemaPath:n.nil,errSchemaPath:l.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,n._)`""`,opts:this.opts,self:this};let re;try{this._compilations.add(l),(0,g.validateFunctionCode)(ne),M.optimize(this.opts.code.optimize);const ce=M.toString();re=`const visitedNodesForRef = new WeakMap(); ${M.scopeRefs(d.default.scope)}return ${ce}`,this.opts.code.process&&(re=this.opts.code.process(re,l));const pe=new Function(`${d.default.self}`,`${d.default.scope}`,re)(this,this.scope.get());if(this.scope.value(w,{ref:pe}),pe.errors=null,pe.schema=l.schema,pe.schemaEnv=l,l.$async&&(pe.$async=!0),this.opts.code.source===!0&&(pe.source={validateName:w,validateCode:ce,scopeValues:M._values}),this.opts.unevaluated){const{props:xe,items:we}=ne;pe.evaluated={props:xe instanceof n.Name?void 0:xe,items:we instanceof n.Name?void 0:we,dynamicProps:xe instanceof n.Name,dynamicItems:we instanceof n.Name},pe.source&&(pe.source.evaluated=(0,n.stringify)(pe.evaluated))}return l.validate=pe,l}catch(ce){throw delete l.validate,delete l.validateName,re&&this.logger.error("Error compiling schema, function code:",re),ce}finally{this._compilations.delete(l)}}t.compileSchema=E;function y(l,R,C){var j;const D=(0,O.resolveUrl)(this.opts.uriResolver,R,C),U=l.refs[D];if(U)return U;let M=S.call(this,l,D);if(M===void 0){const H=(j=l.localRefs)===null||j===void 0?void 0:j[D],{schemaId:w}=this.opts;H&&(M=new h({schema:H,schemaId:w,root:l,baseId:R}))}if(M===void 0&&this.opts.loadSchemaSync){const H=this.opts.loadSchemaSync(R,C,D);H&&!(this.refs[D]||this.schemas[D])&&(this.addSchema(H,D,void 0),M=S.call(this,l,D))}if(M!==void 0)return l.refs[D]=b.call(this,M)}t.resolveRef=y;function b(l){return(0,O.inlineRef)(l.schema,this.opts.inlineRefs)?l.schema:l.validate?l:E.call(this,l)}function P(l){for(const R of this._compilations)if(I(R,l))return R}t.getCompilingSchema=P;function I(l,R){return l.schema===R.schema&&l.root===R.root&&l.baseId===R.baseId}function S(l,R){let C;for(;typeof(C=this.refs[R])=="string";)R=C;return C||this.schemas[R]||A.call(this,l,R)}function A(l,R){const C=this.opts.uriResolver.parse(R),j=(0,O._getFullPath)(this.opts.uriResolver,C);let D=(0,O.getFullPath)(this.opts.uriResolver,l.baseId,void 0);if(Object.keys(l.schema).length>0&&j===D)return a.call(this,C,l);const U=(0,O.normalizeId)(j),M=this.refs[U]||this.schemas[U];if(typeof M=="string"){const H=A.call(this,l,M);return typeof H?.schema!="object"?void 0:a.call(this,C,H)}if(typeof M?.schema=="object"){if(M.validate||E.call(this,M),U===(0,O.normalizeId)(R)){const{schema:H}=M,{schemaId:w}=this.opts,ne=H[w];return ne&&(D=(0,O.resolveUrl)(this.opts.uriResolver,D,ne)),new h({schema:H,schemaId:w,root:l,baseId:D})}return a.call(this,C,M)}}t.resolveSchema=A;const o=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function a(l,{baseId:R,schema:C,root:j}){var D;if(((D=l.fragment)===null||D===void 0?void 0:D[0])!=="/")return;for(const H of l.fragment.slice(1).split("/")){if(typeof C=="boolean")return;const w=C[(0,v.unescapeFragment)(H)];if(w===void 0)return;C=w;const ne=typeof C=="object"&&C[this.opts.schemaId];!o.has(H)&&ne&&(R=(0,O.resolveUrl)(this.opts.uriResolver,R,ne))}let U;if(typeof C!="boolean"&&C.$ref&&!(0,v.schemaHasRulesButRef)(C,this.RULES)){const H=(0,O.resolveUrl)(this.opts.uriResolver,R,C.$ref);U=A.call(this,j,H)}const{schemaId:M}=this.opts;if(U=U||new h({schema:C,schemaId:M,root:j,baseId:R}),U.schema!==U.root.schema)return U}},38955:(p,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(11601),u={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),isAllOfVariant:new n.Name("isAllOfVariant"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=u},10059:(p,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(92863);class u extends Error{constructor(O,v,g,h){super(h||`can't resolve reference ${g} from id ${v}`),this.missingRef=(0,n.resolveUrl)(O,v,g),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(O,this.missingRef))}}t.default=u},92863:(p,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=e(64207),u=e(67371),d=e(50205),O=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function v(a,l=!0){return typeof a=="boolean"?!0:l===!0?!h(a):l?E(a)<=l:!1}t.inlineRef=v;const g=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function h(a){for(const l in a){if(g.has(l))return!0;const R=a[l];if(Array.isArray(R)&&R.some(h)||typeof R=="object"&&h(R))return!0}return!1}function E(a){let l=0;for(const R in a){if(R==="$ref")return 1/0;if(l++,!O.has(R)&&(typeof a[R]=="object"&&(0,n.eachItem)(a[R],C=>l+=E(C)),l===1/0))return 1/0}return l}function y(a,l="",R){R!==!1&&(l=I(l));const C=a.parse(l);return b(a,C)}t.getFullPath=y;function b(a,l){return a.serialize(l).split("#")[0]+"#"}t._getFullPath=b;const P=/#\/?$/;function I(a){return a?a.replace(P,""):""}t.normalizeId=I;function S(a,l,R){return R=I(R),a.resolve(l,R)}t.resolveUrl=S;const A=/^[a-z_][-a-z0-9._]*$/i;function o(a,l){if(typeof a=="boolean")return{};const{schemaId:R,uriResolver:C}=this.opts,j=I(a[R]||l),D={"":j},U=y(C,j,!1),M={},H=new Set;return d(a,{allKeys:!0},(re,ce,ie,pe)=>{if(pe===void 0)return;const xe=U+ce;let we=D[pe];typeof re[R]=="string"&&(we=ge.call(this,re[R])),Te.call(this,re.$anchor),Te.call(this,re.$dynamicAnchor),D[ce]=we;function ge(Se){const G=this.opts.uriResolver.resolve;if(Se=I(we?G(we,Se):Se),H.has(Se))throw ne(Se);H.add(Se);let K=this.refs[Se];return typeof K=="string"&&(K=this.refs[K]),typeof K=="object"?w(re,K.schema,Se):Se!==I(xe)&&(Se[0]==="#"?(w(re,M[Se],Se),M[Se]=re):this.refs[Se]=xe),Se}function Te(Se){if(typeof Se=="string"){if(!A.test(Se))throw new Error(`invalid anchor "${Se}"`);ge.call(this,`#${Se}`)}}}),M;function w(re,ce,ie){if(ce!==void 0&&!u(re,ce))throw ne(ie)}function ne(re){return new Error(`reference "${re}" resolves to more than one schema`)}}t.getSchemaRefs=o},57760:(p,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],n=new Set(e);function u(O){return typeof O=="string"&&n.has(O)}t.isJSONType=u;function d(){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:{}}}t.getRules=d},64207:(p,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=e(11601),u=e(21860);function d(U){const M={};for(const H of U)M[H]=!0;return M}t.toHash=d;function O(U,M){return typeof M=="boolean"?M:Object.keys(M).length===0?!0:(v(U,M),!g(M,U.self.RULES.all))}t.alwaysValidSchema=O;function v(U,M=U.schema){const{opts:H,self:w}=U;if(!H.strictSchema||typeof M=="boolean")return;const ne=w.RULES.keywords;for(const re in M)ne[re]||D(U,`unknown keyword: "${re}"`)}t.checkUnknownRules=v;function g(U,M){if(typeof U=="boolean")return!U;for(const H in U)if(M[H])return!0;return!1}t.schemaHasRules=g;function h(U,M){if(typeof U=="boolean")return!U;for(const H in U)if(H!=="$ref"&&M.all[H])return!0;return!1}t.schemaHasRulesButRef=h;function E({topSchemaRef:U,schemaPath:M},H,w,ne){if(!ne){if(typeof H=="number"||typeof H=="boolean")return H;if(typeof H=="string")return(0,n._)`${H}`}return(0,n._)`${U}${M}${(0,n.getProperty)(w)}`}t.schemaRefOrVal=E;function y(U){return I(decodeURIComponent(U))}t.unescapeFragment=y;function b(U){return encodeURIComponent(P(U))}t.escapeFragment=b;function P(U){return typeof U=="number"?`${U}`:U.replace(/~/g,"~0").replace(/\//g,"~1")}t.escapeJsonPointer=P;function I(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")}t.unescapeJsonPointer=I;function S(U,M){if(Array.isArray(U))for(const H of U)M(H);else M(U)}t.eachItem=S;function A({mergeNames:U,mergeToName:M,mergeValues:H,resultToName:w}){return(ne,re,ce,ie)=>{const pe=ce===void 0?re:ce instanceof n.Name?(re instanceof n.Name?U(ne,re,ce):M(ne,re,ce),ce):re instanceof n.Name?(M(ne,ce,re),re):H(re,ce);return ie===n.Name&&!(pe instanceof n.Name)?w(ne,pe):pe}}t.mergeEvaluated={props:A({mergeNames:(U,M,H)=>U.if((0,n._)`${H} !== true && ${M} !== undefined`,()=>{U.if((0,n._)`${M} === true`,()=>U.assign(H,!0),()=>U.assign(H,(0,n._)`${H} || {}`).code((0,n._)`Object.assign(${H}, ${M})`))}),mergeToName:(U,M,H)=>U.if((0,n._)`${H} !== true`,()=>{M===!0?U.assign(H,!0):(U.assign(H,(0,n._)`${H} || {}`),a(U,H,M))}),mergeValues:(U,M)=>U===!0?!0:{...U,...M},resultToName:o}),items:A({mergeNames:(U,M,H)=>U.if((0,n._)`${H} !== true && ${M} !== undefined`,()=>U.assign(H,(0,n._)`${M} === true ? true : ${H} > ${M} ? ${H} : ${M}`)),mergeToName:(U,M,H)=>U.if((0,n._)`${H} !== true`,()=>U.assign(H,M===!0?!0:(0,n._)`${H} > ${M} ? ${H} : ${M}`)),mergeValues:(U,M)=>U===!0?!0:Math.max(U,M),resultToName:(U,M)=>U.var("items",M)})};function o(U,M){if(M===!0)return U.var("props",!0);const H=U.var("props",(0,n._)`{}`);return M!==void 0&&a(U,H,M),H}t.evaluatedPropsToName=o;function a(U,M,H){Object.keys(H).forEach(w=>U.assign((0,n._)`${M}${(0,n.getProperty)(w)}`,!0))}t.setEvaluated=a;const l={};function R(U,M){return U.scopeValue("func",{ref:M,code:l[M.code]||(l[M.code]=new u._Code(M.code))})}t.useFunc=R;var C;(function(U){U[U.Num=0]="Num",U[U.Str=1]="Str"})(C=t.Type||(t.Type={}));function j(U,M,H){if(U instanceof n.Name){const w=M===C.Num;return H?w?(0,n._)`"[" + ${U} + "]"`:(0,n._)`"['" + ${U} + "']"`:w?(0,n._)`"/" + ${U}`:(0,n._)`"/" + ${U}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return H?(0,n.getProperty)(U).toString():"/"+P(U)}t.getErrorPath=j;function D(U,M,H=U.opts.strictSchema){if(H){if(M=`strict mode: ${M}`,H===!0)throw new Error(M);U.self.logger.warn(M)}}t.checkStrictMode=D},17819:(p,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0;function e({schema:d,self:O},v){const g=O.RULES.types[v];return g&&g!==!0&&n(d,g)}t.schemaHasRulesForType=e;function n(d,O){return O.rules.some(v=>u(d,v))}t.shouldUseGroup=n;function u(d,O){var v;return d[O.keyword]!==void 0||((v=O.definition.implements)===null||v===void 0?void 0:v.some(g=>d[g]!==void 0))}t.shouldUseRule=u},219:(p,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=e(52952),u=e(11601),d=e(38955),O={message:"boolean schema is false"};function v(E){const{gen:y,schema:b,validateName:P}=E;b===!1?h(E,!1):typeof b=="object"&&b.$async===!0?y.return(d.default.data):(y.assign((0,u._)`${P}.errors`,null),y.return(!0))}t.topBoolOrEmptySchema=v;function g(E,y){const{gen:b,schema:P}=E;P===!1?(b.var(y,!1),h(E)):b.var(y,!0)}t.boolOrEmptySchema=g;function h(E,y){const{gen:b,data:P}=E,I={gen:b,keyword:"false schema",data:P,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:E};(0,n.reportError)(I,O,void 0,y)}},9788:(p,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=e(57760),u=e(17819),d=e(52952),O=e(11601),v=e(64207);var g;(function(C){C[C.Correct=0]="Correct",C[C.Wrong=1]="Wrong"})(g=t.DataType||(t.DataType={}));function h(C){const j=E(C.type);if(j.includes("null")){if(C.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!j.length&&C.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');C.nullable===!0&&j.push("null")}return j}t.getSchemaTypes=h;function E(C){const j=Array.isArray(C)?C:C?[C]:[];if(j.every(n.isJSONType))return j;throw new Error("type must be JSONType or JSONType[]: "+j.join(","))}t.getJSONTypes=E;function y(C,j){const{gen:D,data:U,opts:M}=C,H=P(j,M.coerceTypes),w=j.length>0&&!(H.length===0&&j.length===1&&(0,u.schemaHasRulesForType)(C,j[0]));if(w){const ne=o(j,U,M.strictNumbers,g.Wrong);D.if(ne,()=>{H.length?I(C,j,H):l(C)})}return w}t.coerceAndCheckDataType=y;const b=new Set(["string","number","integer","boolean","null"]);function P(C,j){return j?C.filter(D=>b.has(D)||j==="array"&&D==="array"):[]}function I(C,j,D){const{gen:U,data:M,opts:H}=C,w=U.let("dataType",(0,O._)`typeof ${M}`),ne=U.let("coerced",(0,O._)`undefined`);H.coerceTypes==="array"&&U.if((0,O._)`${w} == 'object' && Array.isArray(${M}) && ${M}.length == 1`,()=>U.assign(M,(0,O._)`${M}[0]`).assign(w,(0,O._)`typeof ${M}`).if(o(j,M,H.strictNumbers),()=>U.assign(ne,M))),U.if((0,O._)`${ne} !== undefined`);for(const ce of D)(b.has(ce)||ce==="array"&&H.coerceTypes==="array")&&re(ce);U.else(),l(C),U.endIf(),U.if((0,O._)`${ne} !== undefined`,()=>{U.assign(M,ne),S(C,ne)});function re(ce){switch(ce){case"string":U.elseIf((0,O._)`${w} == "number" || ${w} == "boolean"`).assign(ne,(0,O._)`"" + ${M}`).elseIf((0,O._)`${M} === null`).assign(ne,(0,O._)`""`);return;case"number":U.elseIf((0,O._)`${w} == "boolean" || ${M} === null
8
8
  || (${w} == "string" && ${M} && ${M} == +${M})`).assign(ne,(0,O._)`+${M}`);return;case"integer":U.elseIf((0,O._)`${w} === "boolean" || ${M} === null
@@ -10323,4 +10323,4 @@ Error generating stack: `+se.message+`
10323
10323
  `,Gh=({pointer:T,schema:L})=>{const{options:N,parser:Oe}=useAtomValue(globalStoreAtom),Ve=L||{$ref:T},ft=getSchema({parser:Oe,schemaOrRef:Ve,pointer:T||"",options:N,deps:{operation:{pointer:"RedocSchema"}}});return jsx(Row,{children:jsx(FullWidthPanel,{children:jsx(Schema,{schema:ft,level:1,disableDeepLinks:!0})})})},Zh=({pointer:T,mimeType:L,encoding:N})=>{const Oe=useAtomValue(globalParserAtom),Ve=useAtomValue(layoutAtom),ft=getExamples({parser:Oe,infoOrRef:{$ref:T},mime:L,encoding:N});return jsx(Row,{layout:Ve,children:jsx(ExamplesWrap,{children:jsx(Example,{example:ft,mimeType:L})})})},Ih=C.Ay.div`
10324
10324
  padding: 20px;
10325
10325
  color: red;
10326
- `;class Yh extends o.Component{constructor(L){super(L),this.state={error:void 0}}componentDidCatch(L){return this.setState({error:L}),!1}render(){return this.state.error?(0,p.jsxs)(Ih,{children:[(0,p.jsx)("h1",{children:"Something went wrong..."}),(0,p.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,p.jsx)("p",{children:(0,p.jsxs)("details",{children:[(0,p.jsx)("summary",{children:"Stack trace"}),(0,p.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,p.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,p.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,p.jsx)(p.Fragment,{children:o.Children.only(this.props.children)})}}var xh=Object.defineProperty,Nf=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Dh=Object.prototype.propertyIsEnumerable,Uf=(T,L,N)=>L in T?xh(T,L,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[L]=N,zf=(T,L)=>{for(var N in L||(L={}))Ah.call(L,N)&&Uf(T,N,L[N]);if(Nf)for(var N of Nf(L))Dh.call(L,N)&&Uf(T,N,L[N]);return T};const Hf=(0,R.JA)(),jh=Hf?(0,A.dirname)(Hf)+"/":"";function Th(T){const L={},N=T.attributes;for(let Oe=0;Oe<N.length;Oe++){const Ve=N[Oe];L[Ve.name]=Ve.value}return L}function Mh(T){const L=Th(T),N={};for(const Oe in L){const Ve=Oe.replace(/-(.)/g,(ft,Tt)=>Tt.toUpperCase());N[Ve]=L[Oe]}return N}function Rh(T,L=document.querySelector("redoc")){(0,a.c)(L,(0,p.jsx)($f,{store:T}))}function Wf(T,L={},N=(0,R.iT)("redoc")){if(N===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let Oe,Ve;typeof T=="string"?Oe=T:typeof T=="object"&&(Ve=T),(0,a.H)(N).render((0,o.createElement)(bh,{definition:Ve,definitionUrl:Oe,options:zf(zf({},L),Mh(N))},["Loading..."]))}function Vf(T){Er.p=T}const Lh="3.3.3",wh="eb4357d39b";function Bh(){const T=(0,R.iT)("redoc");if(!T)return;const L=T.getAttribute("spec-url");L&&Wf(L,{},T)}l.IS_BROWSER&&Vf(jh),Bh()})(),Ad})());
10326
+ `;class Yh extends o.Component{constructor(L){super(L),this.state={error:void 0}}componentDidCatch(L){return this.setState({error:L}),!1}render(){return this.state.error?(0,p.jsxs)(Ih,{children:[(0,p.jsx)("h1",{children:"Something went wrong..."}),(0,p.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,p.jsx)("p",{children:(0,p.jsxs)("details",{children:[(0,p.jsx)("summary",{children:"Stack trace"}),(0,p.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,p.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,p.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,p.jsx)(p.Fragment,{children:o.Children.only(this.props.children)})}}var xh=Object.defineProperty,Nf=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Dh=Object.prototype.propertyIsEnumerable,Uf=(T,L,N)=>L in T?xh(T,L,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[L]=N,zf=(T,L)=>{for(var N in L||(L={}))Ah.call(L,N)&&Uf(T,N,L[N]);if(Nf)for(var N of Nf(L))Dh.call(L,N)&&Uf(T,N,L[N]);return T};const Hf=(0,R.JA)(),jh=Hf?(0,A.dirname)(Hf)+"/":"";function Th(T){const L={},N=T.attributes;for(let Oe=0;Oe<N.length;Oe++){const Ve=N[Oe];L[Ve.name]=Ve.value}return L}function Mh(T){const L=Th(T),N={};for(const Oe in L){const Ve=Oe.replace(/-(.)/g,(ft,Tt)=>Tt.toUpperCase());N[Ve]=L[Oe]}return N}function Rh(T,L=document.querySelector("redoc")){(0,a.c)(L,(0,p.jsx)($f,{store:T}))}function Wf(T,L={},N=(0,R.iT)("redoc")){if(N===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let Oe,Ve;typeof T=="string"?Oe=T:typeof T=="object"&&(Ve=T),(0,a.H)(N).render((0,o.createElement)(bh,{definition:Ve,definitionUrl:Oe,options:zf(zf({},L),Mh(N))},["Loading..."]))}function Vf(T){Er.p=T}const Lh="3.3.4",wh="e8a21fa";function Bh(){const T=(0,R.iT)("redoc");if(!T)return;const L=T.getAttribute("spec-url");L&&Wf(L,{},T)}l.IS_BROWSER&&Vf(jh),Bh()})(),Ad})());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-docs",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
4
4
  "description": "Redocly OpenAPI Docs",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",
@@ -44,7 +44,7 @@
44
44
  "url": "~0.11.0",
45
45
  "url-template": "^2.0.8",
46
46
  "util": "~0.12.5",
47
- "@redocly/replay": "0.5.0",
47
+ "@redocly/replay": "0.5.1",
48
48
  "@redocly/config": "0.9.0"
49
49
  },
50
50
  "devDependencies": {
@@ -92,7 +92,7 @@
92
92
  "webpack": "5.91.0",
93
93
  "webpack-cli": "5.1.4",
94
94
  "webpack-dev-server": "4.15.2",
95
- "@redocly/theme": "0.40.0"
95
+ "@redocly/theme": "0.40.1"
96
96
  },
97
97
  "scripts": {
98
98
  "start": "webpack serve --mode=development --hot",