@redocly/openapi-docs 3.4.0-rc.2 → 3.4.0-rc.3

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.4.0-rc.2"
5
+ * Version: "3.4.0-rc.3"
6
6
  */(function(Uc,nc){typeof exports=="object"&&typeof module=="object"?module.exports=nc(require("null")):typeof define=="function"&&define.amd?define(["null"],nc):typeof exports=="object"?exports.RedoclyOpenAPIDocs=nc(require("null")):Uc.RedoclyOpenAPIDocs=nc(Uc.null)})(this,rf=>(()=>{var Uc={44607:(p,t,e)=>{"use strict";e.d(t,{A:()=>n});function n(u){var d=Object.create(null);return function(E){return d[E]===void 0&&(d[E]=u(E)),d[E]}}},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),E=e(86640),f="https://json-schema.org/draft/2020-12/schema";class v extends n.default{constructor(S={}){super({...S,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),u.default.forEach(S=>this.addVocabulary(S)),this.opts.discriminator&&this.addKeyword(d.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:S,meta:O}=this.opts;O&&(E.default.call(this,S),this.refs["http://json-schema.org/schema"]=f)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(f)?f:void 0)}}p.exports=t=v,Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var h=e(72630);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return h.KeywordCxt}});var C=e(11601);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return C._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return C.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return C.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return C.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return C.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return C.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,P)=>`${R}${P}`,"")}get names(){var l;return(l=this._names)!==null&&l!==void 0?l:this._names=this._items.reduce((R,P)=>(P instanceof n&&(R[P.str]=(R[P.str]||0)+1),R),{})}}t._Code=u,t.nil=new u("");function d(a,...l){const R=[a[0]];let P=0;for(;P<l.length;)v(R,l[P]),R.push(a[++P]);return new u(R)}t._=d;const E=new u("+");function f(a,...l){const R=[A(a[0])];let P=0;for(;P<l.length;)R.push(E),v(R,l[P]),R.push(E,A(a[++P]));return h(R),new u(R)}t.str=f;function v(a,l){l instanceof u?a.push(...l._items):l instanceof n?a.push(l):a.push(S(l))}t.addCodeArg=v;function h(a){let l=1;for(;l<a.length-1;){if(a[l]===E){const R=C(a[l-1],a[l+1]);if(R!==void 0){a.splice(l-1,3,R);continue}a[l++]="+"}l++}}function C(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:f`${a}${l}`}t.strConcat=y;function S(a){return typeof a=="number"||typeof a=="boolean"||a===null?a:A(Array.isArray(a)?a.join(","):a)}function O(a){return new u(A(a))}t.stringify=O;function A(a){return JSON.stringify(a).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=A;function b(a){return typeof a=="string"&&t.IDENTIFIER.test(a)?new u(`.${a}`):d`[${a}]`}t.getProperty=b;function x(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=x;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 E=e(4425);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return E.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return E.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return E.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return E.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 f{optimizeNodes(){return this}optimizeNames(Z,W){return this}}class v extends f{constructor(Z,W,_){super(),this.varKind=Z,this.name=W,this.rhs=_}render({es5:Z,_n:W}){const _=Z?u.varKinds.var:this.varKind,q=this.rhs===void 0?"":` = ${this.rhs}`;return`${_} ${this.name}${q};`+W}optimizeNames(Z,W){if(Z[this.name.str])return this.rhs&&(this.rhs=pe(this.rhs,Z,W)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class h extends f{constructor(Z,W,_){super(),this.lhs=Z,this.rhs=W,this.sideEffects=_}render({_n:Z}){return`${this.lhs} = ${this.rhs};`+Z}optimizeNames(Z,W){if(!(this.lhs instanceof n.Name&&!Z[this.lhs.str]&&!this.sideEffects))return this.rhs=pe(this.rhs,Z,W),this}get names(){const Z=this.lhs instanceof n.Name?{}:{...this.lhs.names};return oe(Z,this.rhs)}}class C extends h{constructor(Z,W,_,q){super(Z,_,q),this.op=W}render({_n:Z}){return`${this.lhs} ${this.op}= ${this.rhs};`+Z}}class y extends f{constructor(Z){super(),this.label=Z,this.names={}}render({_n:Z}){return`${this.label}:`+Z}}class S extends f{constructor(Z){super(),this.label=Z,this.names={}}render({_n:Z}){return`break${this.label?` ${this.label}`:""};`+Z}}class O extends f{constructor(Z){super(),this.error=Z}render({_n:Z}){return`throw ${this.error};`+Z}get names(){return this.error.names}}class A extends f{constructor(Z){super(),this.code=Z}render({_n:Z}){return`${this.code};`+Z}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(Z,W){return this.code=pe(this.code,Z,W),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class b extends f{constructor(Z=[]){super(),this.nodes=Z}render(Z){return this.nodes.reduce((W,_)=>W+_.render(Z),"")}optimizeNodes(){const{nodes:Z}=this;let W=Z.length;for(;W--;){const _=Z[W].optimizeNodes();Array.isArray(_)?Z.splice(W,1,..._):_?Z[W]=_:Z.splice(W,1)}return Z.length>0?this:void 0}optimizeNames(Z,W){const{nodes:_}=this;let q=_.length;for(;q--;){const Pe=_[q];Pe.optimizeNames(Z,W)||(Ie(Z,Pe.names),_.splice(q,1))}return _.length>0?this:void 0}get names(){return this.nodes.reduce((Z,W)=>ie(Z,W.names),{})}}class x extends b{render(Z){return"{"+Z._n+super.render(Z)+"}"+Z._n}}class o extends b{}class a extends x{}a.kind="else";class l extends x{constructor(Z,W){super(W),this.condition=Z}render(Z){let W=`if(${this.condition})`+super.render(Z);return this.else&&(W+="else "+this.else.render(Z)),W}optimizeNodes(){super.optimizeNodes();const Z=this.condition;if(Z===!0)return this.nodes;let W=this.else;if(W){const _=W.optimizeNodes();W=this.else=Array.isArray(_)?new a(_):_}if(W)return Z===!1?W instanceof l?W:W.nodes:this.nodes.length?this:new l(Ae(Z),W instanceof l?[W]:W.nodes);if(!(Z===!1||!this.nodes.length))return this}optimizeNames(Z,W){var _;if(this.else=(_=this.else)===null||_===void 0?void 0:_.optimizeNames(Z,W),!!(super.optimizeNames(Z,W)||this.else))return this.condition=pe(this.condition,Z,W),this}get names(){const Z=super.names;return oe(Z,this.condition),this.else&&ie(Z,this.else.names),Z}}l.kind="if";class R extends x{}R.kind="for";class P extends R{constructor(Z){super(),this.iteration=Z}render(Z){return`for(${this.iteration})`+super.render(Z)}optimizeNames(Z,W){if(super.optimizeNames(Z,W))return this.iteration=pe(this.iteration,Z,W),this}get names(){return ie(super.names,this.iteration.names)}}class M extends R{constructor(Z,W,_,q){super(),this.varKind=Z,this.name=W,this.from=_,this.to=q}render(Z){const W=Z.es5?u.varKinds.var:this.varKind,{name:_,from:q,to:Pe}=this;return`for(${W} ${_}=${q}; ${_}<${Pe}; ${_}++)`+super.render(Z)}get names(){const Z=oe(super.names,this.from);return oe(Z,this.to)}}class D extends R{constructor(Z,W,_,q){super(),this.loop=Z,this.varKind=W,this.name=_,this.iterable=q}render(Z){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(Z)}optimizeNames(Z,W){if(super.optimizeNames(Z,W))return this.iterable=pe(this.iterable,Z,W),this}get names(){return ie(super.names,this.iterable.names)}}class U extends x{constructor(Z,W,_){super(),this.name=Z,this.args=W,this.async=_}render(Z){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Z)}}U.kind="func";class j extends b{render(Z){return"return "+super.render(Z)}}j.kind="return";class H extends x{render(Z){let W="try"+super.render(Z);return this.catch&&(W+=this.catch.render(Z)),this.finally&&(W+=this.finally.render(Z)),W}optimizeNodes(){var Z,W;return super.optimizeNodes(),(Z=this.catch)===null||Z===void 0||Z.optimizeNodes(),(W=this.finally)===null||W===void 0||W.optimizeNodes(),this}optimizeNames(Z,W){var _,q;return super.optimizeNames(Z,W),(_=this.catch)===null||_===void 0||_.optimizeNames(Z,W),(q=this.finally)===null||q===void 0||q.optimizeNames(Z,W),this}get names(){const Z=super.names;return this.catch&&ie(Z,this.catch.names),this.finally&&ie(Z,this.finally.names),Z}}class L extends x{constructor(Z){super(),this.error=Z}render(Z){return`catch(${this.error})`+super.render(Z)}}L.kind="catch";class re extends x{render(Z){return"finally"+super.render(Z)}}re.kind="finally";class ne{constructor(Z,W={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...W,_n:W.lines?`
7
7
  `:""},this._extScope=Z,this._scope=new u.Scope({parent:Z}),this._nodes=[new o]}toString(){return this._root.render(this.opts)}name(Z){return this._scope.name(Z)}scopeName(Z){return this._extScope.name(Z)}scopeValue(Z,W){const _=this._extScope.value(Z,W);return(this._values[_.prefix]||(this._values[_.prefix]=new Set)).add(_),_}getScopeValue(Z,W){return this._extScope.getValue(Z,W)}scopeRefs(Z){return this._extScope.scopeRefs(Z,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(Z,W,_,q){const Pe=this._scope.toName(W);return _!==void 0&&q&&(this._constants[Pe.str]=_),this._leafNode(new v(Z,Pe,_)),Pe}const(Z,W,_){return this._def(u.varKinds.const,Z,W,_)}let(Z,W,_){return this._def(u.varKinds.let,Z,W,_)}var(Z,W,_){return this._def(u.varKinds.var,Z,W,_)}assign(Z,W,_){return this._leafNode(new h(Z,W,_))}add(Z,W){return this._leafNode(new C(Z,t.operators.ADD,W))}code(Z){return typeof Z=="function"?Z():Z!==n.nil&&this._leafNode(new A(Z)),this}object(...Z){const W=["{"];for(const[_,q]of Z)W.length>1&&W.push(","),W.push(_),(_!==q||this.opts.es5)&&(W.push(":"),(0,n.addCodeArg)(W,q));return W.push("}"),new n._Code(W)}if(Z,W,_){if(this._blockNode(new l(Z)),W&&_)this.code(W).else().code(_).endIf();else if(W)this.code(W).endIf();else if(_)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(Z){return this._elseNode(new l(Z))}else(){return this._elseNode(new a)}endIf(){return this._endBlockNode(l,a)}_for(Z,W){return this._blockNode(Z),W&&this.code(W).endFor(),this}for(Z,W){return this._for(new P(Z),W)}forRange(Z,W,_,q,Pe=this.opts.es5?u.varKinds.var:u.varKinds.let){const ve=this._scope.toName(Z);return this._for(new M(Pe,ve,W,_),()=>q(ve))}forOf(Z,W,_,q=u.varKinds.const){const Pe=this._scope.toName(Z);if(this.opts.es5){const ve=W instanceof n.Name?W:this.var("_arr",W);return this.forRange("_i",0,(0,n._)`${ve}.length`,je=>{this.var(Pe,(0,n._)`${ve}[${je}]`),_(Pe)})}return this._for(new D("of",q,Pe,W),()=>_(Pe))}forIn(Z,W,_,q=this.opts.es5?u.varKinds.var:u.varKinds.const){if(this.opts.ownProperties)return this.forOf(Z,(0,n._)`Object.keys(${W})`,_);const Pe=this._scope.toName(Z);return this._for(new D("in",q,Pe,W),()=>_(Pe))}endFor(){return this._endBlockNode(R)}label(Z){return this._leafNode(new y(Z))}break(Z){return this._leafNode(new S(Z))}return(Z){const W=new j;if(this._blockNode(W),this.code(Z),W.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(Z,W,_){if(!W&&!_)throw new Error('CodeGen: "try" without "catch" and "finally"');const q=new H;if(this._blockNode(q),this.code(Z),W){const Pe=this.name("e");this._currNode=q.catch=new L(Pe),W(Pe)}return _&&(this._currNode=q.finally=new re,this.code(_)),this._endBlockNode(L,re)}throw(Z){return this._leafNode(new O(Z))}block(Z,W){return this._blockStarts.push(this._nodes.length),Z&&this.code(Z).endBlock(W),this}endBlock(Z){const W=this._blockStarts.pop();if(W===void 0)throw new Error("CodeGen: not in self-balancing block");const _=this._nodes.length-W;if(_<0||Z!==void 0&&_!==Z)throw new Error(`CodeGen: wrong number of nodes: ${_} vs ${Z} expected`);return this._nodes.length=W,this}func(Z,W=n.nil,_,q){return this._blockNode(new U(Z,W,_)),q&&this.code(q).endFunc(),this}endFunc(){return this._endBlockNode(U)}optimize(Z=1){for(;Z-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(Z){return this._currNode.nodes.push(Z),this}_blockNode(Z){this._currNode.nodes.push(Z),this._nodes.push(Z)}_endBlockNode(Z,W){const _=this._currNode;if(_ instanceof Z||W&&_ instanceof W)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${W?`${Z.kind}/${W.kind}`:Z.kind}"`)}_elseNode(Z){const W=this._currNode;if(!(W instanceof l))throw new Error('CodeGen: "else" without "if"');return this._currNode=W.else=Z,this}get _root(){return this._nodes[0]}get _currNode(){const Z=this._nodes;return Z[Z.length-1]}set _currNode(Z){const W=this._nodes;W[W.length-1]=Z}}t.CodeGen=ne;function ie(J,Z){for(const W in Z)J[W]=(J[W]||0)+(Z[W]||0);return J}function oe(J,Z){return Z instanceof n._CodeOrName?ie(J,Z.names):J}function pe(J,Z,W){if(J instanceof n.Name)return _(J);if(!q(J))return J;return new n._Code(J._items.reduce((Pe,ve)=>(ve instanceof n.Name&&(ve=_(ve)),ve instanceof n._Code?Pe.push(...ve._items):Pe.push(ve),Pe),[]));function _(Pe){const ve=W[Pe.str];return ve===void 0||Z[Pe.str]!==1?Pe:(delete Z[Pe.str],ve)}function q(Pe){return Pe instanceof n._Code&&Pe._items.some(ve=>ve instanceof n.Name&&Z[ve.str]===1&&W[ve.str]!==void 0)}}function Ie(J,Z){for(const W in Z)J[W]=(J[W]||0)-(Z[W]||0)}function Ae(J){return typeof J=="boolean"||typeof J=="number"||J===null?!J:(0,n._)`!${K(J)}`}t.not=Ae;const ge=k(t.operators.AND);function Se(...J){return J.reduce(ge)}t.and=Se;const Oe=k(t.operators.OR);function G(...J){return J.reduce(Oe)}t.or=G;function k(J){return(Z,W)=>Z===n.nil?W:W===n.nil?Z:(0,n._)`${K(Z)} ${J} ${K(W)}`}function K(J){return J instanceof n.Name?J:(0,n._)`(${J})`}},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(C){C[C.Started=0]="Started",C[C.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 E{constructor({prefixes:y,parent:S}={}){this._names={},this._prefixes=y,this._parent=S}toName(y){return y instanceof n.Name?y:this.name(y)}name(y){return new n.Name(this._newName(y))}_newName(y){const S=this._names[y]||this._nameGroup(y);return`${y}${S.index++}`}_nameGroup(y){var S,O;if(!((O=(S=this._parent)===null||S===void 0?void 0:S._prefixes)===null||O===void 0)&&O.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=E;class f extends n.Name{constructor(y,S){super(S),this.prefix=y}setValue(y,{property:S,itemIndex:O}){this.value=y,this.scopePath=(0,n._)`.${new n.Name(S)}[${O}]`}}t.ValueScopeName=f;const v=(0,n._)`\n`;class h extends E{constructor(y){super(y),this._values={},this._scope=y.scope,this.opts={...y,_n:y.lines?v:n.nil}}get(){return this._scope}name(y){return new f(y,this._newName(y))}value(y,S){var O;if(S.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const A=this.toName(y),{prefix:b}=A,x=(O=S.key)!==null&&O!==void 0?O:S.ref;let o=this._values[b];if(o){const R=o.get(x);if(R)return R}else o=this._values[b]=new Map;o.set(x,A);const a=this._scope[b]||(this._scope[b]=[]),l=a.length;return a[l]=S.ref,A.setValue(S,{property:b,itemIndex:l}),A}getValue(y,S){const O=this._values[y];if(O)return O.get(S)}scopeRefs(y,S=this._values){return this._reduceValues(S,O=>{if(O.scopePath===void 0)throw new Error(`CodeGen: name "${O}" has no value`);return(0,n._)`${y}${O.scopePath}`})}scopeCode(y=this._values,S,O){return this._reduceValues(y,A=>{if(A.value===void 0)throw new Error(`CodeGen: name "${A}" has no value`);return A.value.code},S,O)}_reduceValues(y,S,O={},A){let b=n.nil;for(const x in y){const o=y[x];if(!o)continue;const a=O[x]=O[x]||new Map;o.forEach(l=>{if(a.has(l))return;a.set(l,d.Started);let R=S(l);if(R){const P=this.opts.es5?t.varKinds.var:t.varKinds.const;b=(0,n._)`${b}${P} ${l} = ${R};${this.opts._n}`}else if(R=A?.(l))b=(0,n._)`${b}${R}${this.opts._n}`;else throw new u(l);a.set(l,d.Completed)})}return b}}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 E(a,l=t.keywordError,R,P){const{it:M}=a,{gen:D,compositeRule:U,allErrors:j}=M,H=O(a,l,R);P??(U||j)?C(D,H):y(M,(0,n._)`[${H}]`)}t.reportError=E;function f(a,l=t.keywordError,R){const{it:P}=a,{gen:M,compositeRule:D,allErrors:U}=P,j=O(a,l,R);C(M,j),D||U||y(P,d.default.vErrors)}t.reportExtraError=f;function v(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=v;function h({gen:a,keyword:l,schemaValue:R,data:P,errsCount:M,it:D}){if(M===void 0)throw new Error("ajv implementation error");const U=a.name("err");a.forRange("i",M,d.default.errors,j=>{a.const(U,(0,n._)`${d.default.vErrors}[${j}]`),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`,P))})}t.extendErrors=h;function C(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:P,schemaEnv:M}=a;M.$async?R.throw((0,n._)`new ${a.ValidationError}(${l})`):(R.assign((0,n._)`${P}.errors`,l),R.return(!1))}const S={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 O(a,l,R){const{createErrors:P}=a.it;return P===!1?(0,n._)`{}`:A(a,l,R)}function A(a,l,R={}){const{gen:P,it:M}=a,D=[b(M,R),x(a,R)];return o(a,l,D),P.object(...D)}function b({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 x({keyword:a,it:{errSchemaPath:l}},{schemaPath:R,parentSchema:P}){let M=P?l:(0,n.str)`${l}/${a}`;return R&&(M=(0,n.str)`${M}${(0,u.getErrorPath)(R,u.Type.Str)}`),[S.schemaPath,M]}function o(a,{params:l,message:R},P){const{keyword:M,data:D,schemaValue:U,it:j}=a,{opts:H,propertyName:L,topSchemaRef:re,schemaPath:ne}=j;P.push([S.keyword,M],[S.params,typeof l=="function"?l(a):l||(0,n._)`{}`]),H.messages&&P.push([S.message,typeof R=="function"?R(a):R]),H.verbose&&P.push([S.schema,U],[S.parentSchema,(0,n._)`${re}${ne}`],[d.default.data,D]),L&&P.push([S.propertyName,L])}},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),E=e(92863),f=e(64207),v=e(72630);class h{constructor(R){var P;this.refs={},this.dynamicAnchors={};let M;typeof R.schema=="object"&&(M=R.schema),this.schema=R.schema,this.schemaId=R.schemaId,this.root=R.root||this,this.baseId=(P=R.baseId)!==null&&P!==void 0?P:(0,E.normalizeId)(M?.[R.schemaId||"$id"]),this.schemaPath=R.schemaPath,this.localRefs=R.localRefs,this.meta=R.meta,this.$async=M?.$async,this.refs={}}}t.SchemaEnv=h;function C(l){const R=O.call(this,l);if(R)return R;const P=(0,E.getFullPath)(this.opts.uriResolver,l.root.baseId),{es5:M,lines:D}=this.opts.code,{ownProperties:U}=this.opts,j=new n.CodeGen(this.scope,{es5:M,lines:D,ownProperties:U});let H;l.$async&&(H=j.scopeValue("Error",{ref:u.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`}));const L=j.scopeName("validate");l.validateName=L;const re={gen:j,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:j.scopeValue("schema",this.opts.code.source===!0?{ref:l.schema,code:(0,n.stringify)(l.schema)}:{ref:l.schema}),validateName:L,ValidationError:H,schema:l.schema,schemaEnv:l,rootId:P,baseId:l.baseId||P,schemaPath:n.nil,errSchemaPath:l.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,n._)`""`,opts:this.opts,self:this};let ne;try{this._compilations.add(l),(0,v.validateFunctionCode)(re),j.optimize(this.opts.code.optimize);const ie=j.toString();ne=`const visitedNodesForRef = new WeakMap(); ${j.scopeRefs(d.default.scope)}return ${ie}`,this.opts.code.process&&(ne=this.opts.code.process(ne,l));const pe=new Function(`${d.default.self}`,`${d.default.scope}`,ne)(this,this.scope.get());if(this.scope.value(L,{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:L,validateCode:ie,scopeValues:j._values}),this.opts.unevaluated){const{props:Ie,items:Ae}=re;pe.evaluated={props:Ie instanceof n.Name?void 0:Ie,items:Ae instanceof n.Name?void 0:Ae,dynamicProps:Ie instanceof n.Name,dynamicItems:Ae instanceof n.Name},pe.source&&(pe.source.evaluated=(0,n.stringify)(pe.evaluated))}return l.validate=pe,l}catch(ie){throw delete l.validate,delete l.validateName,ne&&this.logger.error("Error compiling schema, function code:",ne),ie}finally{this._compilations.delete(l)}}t.compileSchema=C;function y(l,R,P){var M;const D=(0,E.resolveUrl)(this.opts.uriResolver,R,P),U=l.refs[D];if(U)return U;let j=b.call(this,l,D);if(j===void 0){const H=(M=l.localRefs)===null||M===void 0?void 0:M[D],{schemaId:L}=this.opts;H&&(j=new h({schema:H,schemaId:L,root:l,baseId:R}))}if(j===void 0&&this.opts.loadSchemaSync){const H=this.opts.loadSchemaSync(R,P,D);H&&!(this.refs[D]||this.schemas[D])&&(this.addSchema(H,D,void 0),j=b.call(this,l,D))}if(j!==void 0)return l.refs[D]=S.call(this,j)}t.resolveRef=y;function S(l){return(0,E.inlineRef)(l.schema,this.opts.inlineRefs)?l.schema:l.validate?l:C.call(this,l)}function O(l){for(const R of this._compilations)if(A(R,l))return R}t.getCompilingSchema=O;function A(l,R){return l.schema===R.schema&&l.root===R.root&&l.baseId===R.baseId}function b(l,R){let P;for(;typeof(P=this.refs[R])=="string";)R=P;return P||this.schemas[R]||x.call(this,l,R)}function x(l,R){const P=this.opts.uriResolver.parse(R),M=(0,E._getFullPath)(this.opts.uriResolver,P);let D=(0,E.getFullPath)(this.opts.uriResolver,l.baseId,void 0);if(Object.keys(l.schema).length>0&&M===D)return a.call(this,P,l);const U=(0,E.normalizeId)(M),j=this.refs[U]||this.schemas[U];if(typeof j=="string"){const H=x.call(this,l,j);return typeof H?.schema!="object"?void 0:a.call(this,P,H)}if(typeof j?.schema=="object"){if(j.validate||C.call(this,j),U===(0,E.normalizeId)(R)){const{schema:H}=j,{schemaId:L}=this.opts,re=H[L];return re&&(D=(0,E.resolveUrl)(this.opts.uriResolver,D,re)),new h({schema:H,schemaId:L,root:l,baseId:D})}return a.call(this,P,j)}}t.resolveSchema=x;const o=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function a(l,{baseId:R,schema:P,root:M}){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 P=="boolean")return;const L=P[(0,f.unescapeFragment)(H)];if(L===void 0)return;P=L;const re=typeof P=="object"&&P[this.opts.schemaId];!o.has(H)&&re&&(R=(0,E.resolveUrl)(this.opts.uriResolver,R,re))}let U;if(typeof P!="boolean"&&P.$ref&&!(0,f.schemaHasRulesButRef)(P,this.RULES)){const H=(0,E.resolveUrl)(this.opts.uriResolver,R,P.$ref);U=x.call(this,M,H)}const{schemaId:j}=this.opts;if(U=U||new h({schema:P,schemaId:j,root:M,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(E,f,v,h){super(h||`can't resolve reference ${v} from id ${f}`),this.missingRef=(0,n.resolveUrl)(E,f,v),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(E,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),E=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function f(a,l=!0){return typeof a=="boolean"?!0:l===!0?!h(a):l?C(a)<=l:!1}t.inlineRef=f;const v=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function h(a){for(const l in a){if(v.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 C(a){let l=0;for(const R in a){if(R==="$ref")return 1/0;if(l++,!E.has(R)&&(typeof a[R]=="object"&&(0,n.eachItem)(a[R],P=>l+=C(P)),l===1/0))return 1/0}return l}function y(a,l="",R){R!==!1&&(l=A(l));const P=a.parse(l);return S(a,P)}t.getFullPath=y;function S(a,l){return a.serialize(l).split("#")[0]+"#"}t._getFullPath=S;const O=/#\/?$/;function A(a){return a?a.replace(O,""):""}t.normalizeId=A;function b(a,l,R){return R=A(R),a.resolve(l,R)}t.resolveUrl=b;const x=/^[a-z_][-a-z0-9._]*$/i;function o(a,l){if(typeof a=="boolean")return{};const{schemaId:R,uriResolver:P}=this.opts,M=A(a[R]||l),D={"":M},U=y(P,M,!1),j={},H=new Set;return d(a,{allKeys:!0},(ne,ie,oe,pe)=>{if(pe===void 0)return;const Ie=U+ie;let Ae=D[pe];typeof ne[R]=="string"&&(Ae=ge.call(this,ne[R])),Se.call(this,ne.$anchor),Se.call(this,ne.$dynamicAnchor),D[ie]=Ae;function ge(Oe){const G=this.opts.uriResolver.resolve;if(Oe=A(Ae?G(Ae,Oe):Oe),H.has(Oe))throw re(Oe);H.add(Oe);let k=this.refs[Oe];return typeof k=="string"&&(k=this.refs[k]),typeof k=="object"?L(ne,k.schema,Oe):Oe!==A(Ie)&&(Oe[0]==="#"?(L(ne,j[Oe],Oe),j[Oe]=ne):this.refs[Oe]=Ie),Oe}function Se(Oe){if(typeof Oe=="string"){if(!x.test(Oe))throw new Error(`invalid anchor "${Oe}"`);ge.call(this,`#${Oe}`)}}}),j;function L(ne,ie,oe){if(ie!==void 0&&!u(ne,ie))throw re(oe)}function re(ne){return new Error(`reference "${ne}" 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(E){return typeof E=="string"&&n.has(E)}t.isJSONType=u;function d(){const E={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...E,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},E.number,E.string,E.array,E.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 j={};for(const H of U)j[H]=!0;return j}t.toHash=d;function E(U,j){return typeof j=="boolean"?j:Object.keys(j).length===0?!0:(f(U,j),!v(j,U.self.RULES.all))}t.alwaysValidSchema=E;function f(U,j=U.schema){const{opts:H,self:L}=U;if(!H.strictSchema||typeof j=="boolean")return;const re=L.RULES.keywords;for(const ne in j)re[ne]||D(U,`unknown keyword: "${ne}"`)}t.checkUnknownRules=f;function v(U,j){if(typeof U=="boolean")return!U;for(const H in U)if(j[H])return!0;return!1}t.schemaHasRules=v;function h(U,j){if(typeof U=="boolean")return!U;for(const H in U)if(H!=="$ref"&&j.all[H])return!0;return!1}t.schemaHasRulesButRef=h;function C({topSchemaRef:U,schemaPath:j},H,L,re){if(!re){if(typeof H=="number"||typeof H=="boolean")return H;if(typeof H=="string")return(0,n._)`${H}`}return(0,n._)`${U}${j}${(0,n.getProperty)(L)}`}t.schemaRefOrVal=C;function y(U){return A(decodeURIComponent(U))}t.unescapeFragment=y;function S(U){return encodeURIComponent(O(U))}t.escapeFragment=S;function O(U){return typeof U=="number"?`${U}`:U.replace(/~/g,"~0").replace(/\//g,"~1")}t.escapeJsonPointer=O;function A(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")}t.unescapeJsonPointer=A;function b(U,j){if(Array.isArray(U))for(const H of U)j(H);else j(U)}t.eachItem=b;function x({mergeNames:U,mergeToName:j,mergeValues:H,resultToName:L}){return(re,ne,ie,oe)=>{const pe=ie===void 0?ne:ie instanceof n.Name?(ne instanceof n.Name?U(re,ne,ie):j(re,ne,ie),ie):ne instanceof n.Name?(j(re,ie,ne),ne):H(ne,ie);return oe===n.Name&&!(pe instanceof n.Name)?L(re,pe):pe}}t.mergeEvaluated={props:x({mergeNames:(U,j,H)=>U.if((0,n._)`${H} !== true && ${j} !== undefined`,()=>{U.if((0,n._)`${j} === true`,()=>U.assign(H,!0),()=>U.assign(H,(0,n._)`${H} || {}`).code((0,n._)`Object.assign(${H}, ${j})`))}),mergeToName:(U,j,H)=>U.if((0,n._)`${H} !== true`,()=>{j===!0?U.assign(H,!0):(U.assign(H,(0,n._)`${H} || {}`),a(U,H,j))}),mergeValues:(U,j)=>U===!0?!0:{...U,...j},resultToName:o}),items:x({mergeNames:(U,j,H)=>U.if((0,n._)`${H} !== true && ${j} !== undefined`,()=>U.assign(H,(0,n._)`${j} === true ? true : ${H} > ${j} ? ${H} : ${j}`)),mergeToName:(U,j,H)=>U.if((0,n._)`${H} !== true`,()=>U.assign(H,j===!0?!0:(0,n._)`${H} > ${j} ? ${H} : ${j}`)),mergeValues:(U,j)=>U===!0?!0:Math.max(U,j),resultToName:(U,j)=>U.var("items",j)})};function o(U,j){if(j===!0)return U.var("props",!0);const H=U.var("props",(0,n._)`{}`);return j!==void 0&&a(U,H,j),H}t.evaluatedPropsToName=o;function a(U,j,H){Object.keys(H).forEach(L=>U.assign((0,n._)`${j}${(0,n.getProperty)(L)}`,!0))}t.setEvaluated=a;const l={};function R(U,j){return U.scopeValue("func",{ref:j,code:l[j.code]||(l[j.code]=new u._Code(j.code))})}t.useFunc=R;var P;(function(U){U[U.Num=0]="Num",U[U.Str=1]="Str"})(P=t.Type||(t.Type={}));function M(U,j,H){if(U instanceof n.Name){const L=j===P.Num;return H?L?(0,n._)`"[" + ${U} + "]"`:(0,n._)`"['" + ${U} + "']"`:L?(0,n._)`"/" + ${U}`:(0,n._)`"/" + ${U}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return H?(0,n.getProperty)(U).toString():"/"+O(U)}t.getErrorPath=M;function D(U,j,H=U.opts.strictSchema){if(H){if(j=`strict mode: ${j}`,H===!0)throw new Error(j);U.self.logger.warn(j)}}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:E},f){const v=E.RULES.types[f];return v&&v!==!0&&n(d,v)}t.schemaHasRulesForType=e;function n(d,E){return E.rules.some(f=>u(d,f))}t.shouldUseGroup=n;function u(d,E){var f;return d[E.keyword]!==void 0||((f=E.definition.implements)===null||f===void 0?void 0:f.some(v=>d[v]!==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),E={message:"boolean schema is false"};function f(C){const{gen:y,schema:S,validateName:O}=C;S===!1?h(C,!1):typeof S=="object"&&S.$async===!0?y.return(d.default.data):(y.assign((0,u._)`${O}.errors`,null),y.return(!0))}t.topBoolOrEmptySchema=f;function v(C,y){const{gen:S,schema:O}=C;O===!1?(S.var(y,!1),h(C)):S.var(y,!0)}t.boolOrEmptySchema=v;function h(C,y){const{gen:S,data:O}=C,A={gen:S,keyword:"false schema",data:O,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:C};(0,n.reportError)(A,E,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),E=e(11601),f=e(64207);var v;(function(P){P[P.Correct=0]="Correct",P[P.Wrong=1]="Wrong"})(v=t.DataType||(t.DataType={}));function h(P){const M=C(P.type);if(M.includes("null")){if(P.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!M.length&&P.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');P.nullable===!0&&M.push("null")}return M}t.getSchemaTypes=h;function C(P){const M=Array.isArray(P)?P:P?[P]:[];if(M.every(n.isJSONType))return M;throw new Error("type must be JSONType or JSONType[]: "+M.join(","))}t.getJSONTypes=C;function y(P,M){const{gen:D,data:U,opts:j}=P,H=O(M,j.coerceTypes),L=M.length>0&&!(H.length===0&&M.length===1&&(0,u.schemaHasRulesForType)(P,M[0]));if(L){const re=o(M,U,j.strictNumbers,v.Wrong);D.if(re,()=>{H.length?A(P,M,H):l(P)})}return L}t.coerceAndCheckDataType=y;const S=new Set(["string","number","integer","boolean","null"]);function O(P,M){return M?P.filter(D=>S.has(D)||M==="array"&&D==="array"):[]}function A(P,M,D){const{gen:U,data:j,opts:H}=P,L=U.let("dataType",(0,E._)`typeof ${j}`),re=U.let("coerced",(0,E._)`undefined`);H.coerceTypes==="array"&&U.if((0,E._)`${L} == 'object' && Array.isArray(${j}) && ${j}.length == 1`,()=>U.assign(j,(0,E._)`${j}[0]`).assign(L,(0,E._)`typeof ${j}`).if(o(M,j,H.strictNumbers),()=>U.assign(re,j))),U.if((0,E._)`${re} !== undefined`);for(const ie of D)(S.has(ie)||ie==="array"&&H.coerceTypes==="array")&&ne(ie);U.else(),l(P),U.endIf(),U.if((0,E._)`${re} !== undefined`,()=>{U.assign(j,re),b(P,re)});function ne(ie){switch(ie){case"string":U.elseIf((0,E._)`${L} == "number" || ${L} == "boolean"`).assign(re,(0,E._)`"" + ${j}`).elseIf((0,E._)`${j} === null`).assign(re,(0,E._)`""`);return;case"number":U.elseIf((0,E._)`${L} == "boolean" || ${j} === null
8
8
  || (${L} == "string" && ${j} && ${j} == +${j})`).assign(re,(0,E._)`+${j}`);return;case"integer":U.elseIf((0,E._)`${L} === "boolean" || ${j} === null
@@ -10561,4 +10561,4 @@ Error generating stack: `+ae.message+`
10561
10561
  `,Gh=({pointer:T,schema:w})=>{const{options:N,parser:Ce}=useAtomValue(globalStoreAtom),ke=w||{$ref:T},ft=getSchema({parser:Ce,schemaOrRef:ke,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:w,encoding:N})=>{const Ce=useAtomValue(globalParserAtom),ke=useAtomValue(layoutAtom),ft=getExamples({parser:Ce,infoOrRef:{$ref:T},mime:w,encoding:N});return jsx(Row,{layout:ke,children:jsx(ExamplesWrap,{children:jsx(Example,{example:ft,mimeType:w})})})},xh=P.Ay.div`
10562
10562
  padding: 20px;
10563
10563
  color: red;
10564
- `;class Yh extends o.Component{constructor(w){super(w),this.state={error:void 0}}componentDidCatch(w){return this.setState({error:w}),!1}render(){return this.state.error?(0,p.jsxs)(xh,{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 Ih=Object.defineProperty,Nf=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Dh=Object.prototype.propertyIsEnumerable,Uf=(T,w,N)=>w in T?Ih(T,w,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[w]=N,zf=(T,w)=>{for(var N in w||(w={}))Ah.call(w,N)&&Uf(T,N,w[N]);if(Nf)for(var N of Nf(w))Dh.call(w,N)&&Uf(T,N,w[N]);return T};const Hf=(0,R.JA)(),Th=Hf?(0,x.dirname)(Hf)+"/":"";function Mh(T){const w={},N=T.attributes;for(let Ce=0;Ce<N.length;Ce++){const ke=N[Ce];w[ke.name]=ke.value}return w}function jh(T){const w=Mh(T),N={};for(const Ce in w){const ke=Ce.replace(/-(.)/g,(ft,Mt)=>Mt.toUpperCase());N[ke]=w[Ce]}return N}function Rh(T,w=document.querySelector("redoc")){(0,a.c)(w,(0,p.jsx)($f,{store:T}))}function Wf(T,w={},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 Ce,ke;typeof T=="string"?Ce=T:typeof T=="object"&&(ke=T),(0,a.H)(N).render((0,o.createElement)(bh,{definition:ke,definitionUrl:Ce,options:zf(zf({},w),jh(N))},["Loading..."]))}function Vf(T){Sr.p=T}const Lh="3.4.0-rc.2",wh="7788d49e10";function Bh(){const T=(0,R.iT)("redoc");if(!T)return;const w=T.getAttribute("spec-url");w&&Wf(w,{},T)}l.IS_BROWSER&&Vf(Th),Bh()})(),Ad})());
10564
+ `;class Yh extends o.Component{constructor(w){super(w),this.state={error:void 0}}componentDidCatch(w){return this.setState({error:w}),!1}render(){return this.state.error?(0,p.jsxs)(xh,{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 Ih=Object.defineProperty,Nf=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Dh=Object.prototype.propertyIsEnumerable,Uf=(T,w,N)=>w in T?Ih(T,w,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[w]=N,zf=(T,w)=>{for(var N in w||(w={}))Ah.call(w,N)&&Uf(T,N,w[N]);if(Nf)for(var N of Nf(w))Dh.call(w,N)&&Uf(T,N,w[N]);return T};const Hf=(0,R.JA)(),Th=Hf?(0,x.dirname)(Hf)+"/":"";function Mh(T){const w={},N=T.attributes;for(let Ce=0;Ce<N.length;Ce++){const ke=N[Ce];w[ke.name]=ke.value}return w}function jh(T){const w=Mh(T),N={};for(const Ce in w){const ke=Ce.replace(/-(.)/g,(ft,Mt)=>Mt.toUpperCase());N[ke]=w[Ce]}return N}function Rh(T,w=document.querySelector("redoc")){(0,a.c)(w,(0,p.jsx)($f,{store:T}))}function Wf(T,w={},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 Ce,ke;typeof T=="string"?Ce=T:typeof T=="object"&&(ke=T),(0,a.H)(N).render((0,o.createElement)(bh,{definition:ke,definitionUrl:Ce,options:zf(zf({},w),jh(N))},["Loading..."]))}function Vf(T){Sr.p=T}const Lh="3.4.0-rc.3",wh="7788d49e10";function Bh(){const T=(0,R.iT)("redoc");if(!T)return;const w=T.getAttribute("spec-url");w&&Wf(w,{},T)}l.IS_BROWSER&&Vf(Th),Bh()})(),Ad})());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-docs",
3
- "version": "3.4.0-rc.2",
3
+ "version": "3.4.0-rc.3",
4
4
  "description": "Redocly OpenAPI Docs",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",
@@ -16,7 +16,7 @@
16
16
  "openapi-docs": "bin.js"
17
17
  },
18
18
  "peerDependencies": {
19
- "@redocly/theme": "0.41.0-rc.2",
19
+ "@redocly/theme": "0.41.0-rc.3",
20
20
  "core-js": "^3.1.4",
21
21
  "react": "^18.0.0",
22
22
  "react-dom": "^18.0.0",
@@ -44,8 +44,8 @@
44
44
  "url": "~0.11.0",
45
45
  "url-template": "^2.0.8",
46
46
  "util": "~0.12.5",
47
- "@redocly/config": "0.11.0-rc.1",
48
- "@redocly/replay": "0.5.8-rc.2"
47
+ "@redocly/config": "0.11.0-rc.2-rc-20240906003422",
48
+ "@redocly/replay": "0.5.8-rc.3"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@testing-library/jest-dom": "6.1.5",
@@ -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.41.0-rc.2"
95
+ "@redocly/theme": "0.41.0-rc.3"
96
96
  },
97
97
  "scripts": {
98
98
  "start": "webpack serve --mode=development --hot",