@redocly/openapi-docs 3.3.13 → 3.3.14

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.13"
5
+ * Version: "3.3.14"
6
6
  */(function(Zc,Xl){typeof exports=="object"&&typeof module=="object"?module.exports=Xl(require("null")):typeof define=="function"&&define.amd?define(["null"],Xl):typeof exports=="object"?exports.RedoclyOpenAPIDocs=Xl(require("null")):Zc.RedoclyOpenAPIDocs=Xl(Zc.null)})(this,nf=>(()=>{var Zc={44607:(h,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:(h,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:P}=this.opts;P&&(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)}}h.exports=t=v,Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var g=e(72630);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return g.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:(h,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,O)=>`${R}${O}`,"")}get names(){var l;return(l=this._names)!==null&&l!==void 0?l:this._names=this._items.reduce((R,O)=>(O instanceof n&&(R[O.str]=(R[O.str]||0)+1),R),{})}}t._Code=u,t.nil=new u("");function d(a,...l){const R=[a[0]];let O=0;for(;O<l.length;)v(R,l[O]),R.push(a[++O]);return new u(R)}t._=d;const E=new u("+");function f(a,...l){const R=[A(a[0])];let O=0;for(;O<l.length;)R.push(E),v(R,l[O]),R.push(E,A(a[++O]));return g(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 g(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 P(a){return new u(A(a))}t.stringify=P;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:(h,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,te){super(),this.varKind=Z,this.name=W,this.rhs=te}render({es5:Z,_n:W}){const te=Z?u.varKinds.var:this.varKind,q=this.rhs===void 0?"":` = ${this.rhs}`;return`${te} ${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 g extends f{constructor(Z,W,te){super(),this.lhs=Z,this.rhs=W,this.sideEffects=te}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 g{constructor(Z,W,te,q){super(Z,te,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 P 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,te)=>W+te.render(Z),"")}optimizeNodes(){const{nodes:Z}=this;let W=Z.length;for(;W--;){const te=Z[W].optimizeNodes();Array.isArray(te)?Z.splice(W,1,...te):te?Z[W]=te:Z.splice(W,1)}return Z.length>0?this:void 0}optimizeNames(Z,W){const{nodes:te}=this;let q=te.length;for(;q--;){const Se=te[q];Se.optimizeNames(Z,W)||(Te(Z,Se.names),te.splice(q,1))}return te.length>0?this:void 0}get names(){return this.nodes.reduce((Z,W)=>ce(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 te=W.optimizeNodes();W=this.else=Array.isArray(te)?new a(te):te}if(W)return Z===!1?W instanceof l?W:W.nodes:this.nodes.length?this:new l(je(Z),W instanceof l?[W]:W.nodes);if(!(Z===!1||!this.nodes.length))return this}optimizeNames(Z,W){var te;if(this.else=(te=this.else)===null||te===void 0?void 0:te.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&&ce(Z,this.else.names),Z}}l.kind="if";class R extends x{}R.kind="for";class O 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 ce(super.names,this.iteration.names)}}class M extends R{constructor(Z,W,te,q){super(),this.varKind=Z,this.name=W,this.from=te,this.to=q}render(Z){const W=Z.es5?u.varKinds.var:this.varKind,{name:te,from:q,to:Se}=this;return`for(${W} ${te}=${q}; ${te}<${Se}; ${te}++)`+super.render(Z)}get names(){const Z=oe(super.names,this.from);return oe(Z,this.to)}}class D extends R{constructor(Z,W,te,q){super(),this.loop=Z,this.varKind=W,this.name=te,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 ce(super.names,this.iterable.names)}}class U extends x{constructor(Z,W,te){super(),this.name=Z,this.args=W,this.async=te}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 te,q;return super.optimizeNames(Z,W),(te=this.catch)===null||te===void 0||te.optimizeNames(Z,W),(q=this.finally)===null||q===void 0||q.optimizeNames(Z,W),this}get names(){const Z=super.names;return this.catch&&ce(Z,this.catch.names),this.finally&&ce(Z,this.finally.names),Z}}class w extends x{constructor(Z){super(),this.error=Z}render(Z){return`catch(${this.error})`+super.render(Z)}}w.kind="catch";class ne extends x{render(Z){return"finally"+super.render(Z)}}ne.kind="finally";class re{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 te=this._extScope.value(Z,W);return(this._values[te.prefix]||(this._values[te.prefix]=new Set)).add(te),te}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,te,q){const Se=this._scope.toName(W);return te!==void 0&&q&&(this._constants[Se.str]=te),this._leafNode(new v(Z,Se,te)),Se}const(Z,W,te){return this._def(u.varKinds.const,Z,W,te)}let(Z,W,te){return this._def(u.varKinds.let,Z,W,te)}var(Z,W,te){return this._def(u.varKinds.var,Z,W,te)}assign(Z,W,te){return this._leafNode(new g(Z,W,te))}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[te,q]of Z)W.length>1&&W.push(","),W.push(te),(te!==q||this.opts.es5)&&(W.push(":"),(0,n.addCodeArg)(W,q));return W.push("}"),new n._Code(W)}if(Z,W,te){if(this._blockNode(new l(Z)),W&&te)this.code(W).else().code(te).endIf();else if(W)this.code(W).endIf();else if(te)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 O(Z),W)}forRange(Z,W,te,q,Se=this.opts.es5?u.varKinds.var:u.varKinds.let){const ve=this._scope.toName(Z);return this._for(new M(Se,ve,W,te),()=>q(ve))}forOf(Z,W,te,q=u.varKinds.const){const Se=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`,Le=>{this.var(Se,(0,n._)`${ve}[${Le}]`),te(Se)})}return this._for(new D("of",q,Se,W),()=>te(Se))}forIn(Z,W,te,q=this.opts.es5?u.varKinds.var:u.varKinds.const){if(this.opts.ownProperties)return this.forOf(Z,(0,n._)`Object.keys(${W})`,te);const Se=this._scope.toName(Z);return this._for(new D("in",q,Se,W),()=>te(Se))}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,te){if(!W&&!te)throw new Error('CodeGen: "try" without "catch" and "finally"');const q=new H;if(this._blockNode(q),this.code(Z),W){const Se=this.name("e");this._currNode=q.catch=new w(Se),W(Se)}return te&&(this._currNode=q.finally=new ne,this.code(te)),this._endBlockNode(w,ne)}throw(Z){return this._leafNode(new P(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 te=this._nodes.length-W;if(te<0||Z!==void 0&&te!==Z)throw new Error(`CodeGen: wrong number of nodes: ${te} vs ${Z} expected`);return this._nodes.length=W,this}func(Z,W=n.nil,te,q){return this._blockNode(new U(Z,W,te)),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 te=this._currNode;if(te instanceof Z||W&&te 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=re;function ce(X,Z){for(const W in Z)X[W]=(X[W]||0)+(Z[W]||0);return X}function oe(X,Z){return Z instanceof n._CodeOrName?ce(X,Z.names):X}function pe(X,Z,W){if(X instanceof n.Name)return te(X);if(!q(X))return X;return new n._Code(X._items.reduce((Se,ve)=>(ve instanceof n.Name&&(ve=te(ve)),ve instanceof n._Code?Se.push(...ve._items):Se.push(ve),Se),[]));function te(Se){const ve=W[Se.str];return ve===void 0||Z[Se.str]!==1?Se:(delete Z[Se.str],ve)}function q(Se){return Se instanceof n._Code&&Se._items.some(ve=>ve instanceof n.Name&&Z[ve.str]===1&&W[ve.str]!==void 0)}}function Te(X,Z){for(const W in Z)X[W]=(X[W]||0)-(Z[W]||0)}function je(X){return typeof X=="boolean"||typeof X=="number"||X===null?!X:(0,n._)`!${K(X)}`}t.not=je;const ye=k(t.operators.AND);function xe(...X){return X.reduce(ye)}t.and=xe;const Oe=k(t.operators.OR);function G(...X){return X.reduce(Oe)}t.or=G;function k(X){return(Z,W)=>Z===n.nil?W:W===n.nil?Z:(0,n._)`${K(Z)} ${X} ${K(W)}`}function K(X){return X instanceof n.Name?X:(0,n._)`(${X})`}},4425:(h,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,P;if(!((P=(S=this._parent)===null||S===void 0?void 0:S._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=E;class f extends n.Name{constructor(y,S){super(S),this.prefix=y}setValue(y,{property:S,itemIndex:P}){this.value=y,this.scopePath=(0,n._)`.${new n.Name(S)}[${P}]`}}t.ValueScopeName=f;const v=(0,n._)`\n`;class g 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 P;if(S.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const A=this.toName(y),{prefix:b}=A,x=(P=S.key)!==null&&P!==void 0?P: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 P=this._values[y];if(P)return P.get(S)}scopeRefs(y,S=this._values){return this._reduceValues(S,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,S,P){return this._reduceValues(y,A=>{if(A.value===void 0)throw new Error(`CodeGen: name "${A}" has no value`);return A.value.code},S,P)}_reduceValues(y,S,P={},A){let b=n.nil;for(const x in y){const o=y[x];if(!o)continue;const a=P[x]=P[x]||new Map;o.forEach(l=>{if(a.has(l))return;a.set(l,d.Started);let R=S(l);if(R){const O=this.opts.es5?t.varKinds.var:t.varKinds.const;b=(0,n._)`${b}${O} ${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=g},52952:(h,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,O){const{it:M}=a,{gen:D,compositeRule:U,allErrors:j}=M,H=P(a,l,R);O??(U||j)?C(D,H):y(M,(0,n._)`[${H}]`)}t.reportError=E;function f(a,l=t.keywordError,R){const{it:O}=a,{gen:M,compositeRule:D,allErrors:U}=O,j=P(a,l,R);C(M,j),D||U||y(O,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 g({gen:a,keyword:l,schemaValue:R,data:O,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`,O))})}t.extendErrors=g;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:O,schemaEnv:M}=a;M.$async?R.throw((0,n._)`new ${a.ValidationError}(${l})`):(R.assign((0,n._)`${O}.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 P(a,l,R){const{createErrors:O}=a.it;return O===!1?(0,n._)`{}`:A(a,l,R)}function A(a,l,R={}){const{gen:O,it:M}=a,D=[b(M,R),x(a,R)];return o(a,l,D),O.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:O}){let M=O?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},O){const{keyword:M,data:D,schemaValue:U,it:j}=a,{opts:H,propertyName:w,topSchemaRef:ne,schemaPath:re}=j;O.push([S.keyword,M],[S.params,typeof l=="function"?l(a):l||(0,n._)`{}`]),H.messages&&O.push([S.message,typeof R=="function"?R(a):R]),H.verbose&&O.push([S.schema,U],[S.parentSchema,(0,n._)`${ne}${re}`],[d.default.data,D]),w&&O.push([S.propertyName,w])}},39663:(h,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 g{constructor(R){var O;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=(O=R.baseId)!==null&&O!==void 0?O:(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=g;function C(l){const R=P.call(this,l);if(R)return R;const O=(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 w=j.scopeName("validate");l.validateName=w;const ne={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:w,ValidationError:H,schema:l.schema,schemaEnv:l,rootId:O,baseId:l.baseId||O,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,v.validateFunctionCode)(ne),j.optimize(this.opts.code.optimize);const ce=j.toString();re=`const visitedNodesForRef = new WeakMap(); ${j.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:j._values}),this.opts.unevaluated){const{props:Te,items:je}=ne;pe.evaluated={props:Te instanceof n.Name?void 0:Te,items:je instanceof n.Name?void 0:je,dynamicProps:Te instanceof n.Name,dynamicItems:je 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=C;function y(l,R,O){var M;const D=(0,E.resolveUrl)(this.opts.uriResolver,R,O),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:w}=this.opts;H&&(j=new g({schema:H,schemaId:w,root:l,baseId:R}))}if(j===void 0&&this.opts.loadSchemaSync){const H=this.opts.loadSchemaSync(R,O,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 P(l){for(const R of this._compilations)if(A(R,l))return R}t.getCompilingSchema=P;function A(l,R){return l.schema===R.schema&&l.root===R.root&&l.baseId===R.baseId}function b(l,R){let O;for(;typeof(O=this.refs[R])=="string";)R=O;return O||this.schemas[R]||x.call(this,l,R)}function x(l,R){const O=this.opts.uriResolver.parse(R),M=(0,E._getFullPath)(this.opts.uriResolver,O);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,O,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,O,H)}if(typeof j?.schema=="object"){if(j.validate||C.call(this,j),U===(0,E.normalizeId)(R)){const{schema:H}=j,{schemaId:w}=this.opts,ne=H[w];return ne&&(D=(0,E.resolveUrl)(this.opts.uriResolver,D,ne)),new g({schema:H,schemaId:w,root:l,baseId:D})}return a.call(this,O,j)}}t.resolveSchema=x;const o=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function a(l,{baseId:R,schema:O,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 O=="boolean")return;const w=O[(0,f.unescapeFragment)(H)];if(w===void 0)return;O=w;const ne=typeof O=="object"&&O[this.opts.schemaId];!o.has(H)&&ne&&(R=(0,E.resolveUrl)(this.opts.uriResolver,R,ne))}let U;if(typeof O!="boolean"&&O.$ref&&!(0,f.schemaHasRulesButRef)(O,this.RULES)){const H=(0,E.resolveUrl)(this.opts.uriResolver,R,O.$ref);U=x.call(this,M,H)}const{schemaId:j}=this.opts;if(U=U||new g({schema:O,schemaId:j,root:M,baseId:R}),U.schema!==U.root.schema)return U}},38955:(h,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:(h,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(92863);class u extends Error{constructor(E,f,v,g){super(g||`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:(h,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?!g(a):l?C(a)<=l:!1}t.inlineRef=f;const v=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function g(a){for(const l in a){if(v.has(l))return!0;const R=a[l];if(Array.isArray(R)&&R.some(g)||typeof R=="object"&&g(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],O=>l+=C(O)),l===1/0))return 1/0}return l}function y(a,l="",R){R!==!1&&(l=A(l));const O=a.parse(l);return S(a,O)}t.getFullPath=y;function S(a,l){return a.serialize(l).split("#")[0]+"#"}t._getFullPath=S;const P=/#\/?$/;function A(a){return a?a.replace(P,""):""}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:O}=this.opts,M=A(a[R]||l),D={"":M},U=y(O,M,!1),j={},H=new Set;return d(a,{allKeys:!0},(re,ce,oe,pe)=>{if(pe===void 0)return;const Te=U+ce;let je=D[pe];typeof re[R]=="string"&&(je=ye.call(this,re[R])),xe.call(this,re.$anchor),xe.call(this,re.$dynamicAnchor),D[ce]=je;function ye(Oe){const G=this.opts.uriResolver.resolve;if(Oe=A(je?G(je,Oe):Oe),H.has(Oe))throw ne(Oe);H.add(Oe);let k=this.refs[Oe];return typeof k=="string"&&(k=this.refs[k]),typeof k=="object"?w(re,k.schema,Oe):Oe!==A(Te)&&(Oe[0]==="#"?(w(re,j[Oe],Oe),j[Oe]=re):this.refs[Oe]=Te),Oe}function xe(Oe){if(typeof Oe=="string"){if(!x.test(Oe))throw new Error(`invalid anchor "${Oe}"`);ye.call(this,`#${Oe}`)}}}),j;function w(re,ce,oe){if(ce!==void 0&&!u(re,ce))throw ne(oe)}function ne(re){return new Error(`reference "${re}" resolves to more than one schema`)}}t.getSchemaRefs=o},57760:(h,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:(h,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:w}=U;if(!H.strictSchema||typeof j=="boolean")return;const ne=w.RULES.keywords;for(const re in j)ne[re]||D(U,`unknown keyword: "${re}"`)}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 g(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=g;function C({topSchemaRef:U,schemaPath:j},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}${j}${(0,n.getProperty)(w)}`}t.schemaRefOrVal=C;function y(U){return A(decodeURIComponent(U))}t.unescapeFragment=y;function S(U){return encodeURIComponent(P(U))}t.escapeFragment=S;function P(U){return typeof U=="number"?`${U}`:U.replace(/~/g,"~0").replace(/\//g,"~1")}t.escapeJsonPointer=P;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:w}){return(ne,re,ce,oe)=>{const pe=ce===void 0?re:ce instanceof n.Name?(re instanceof n.Name?U(ne,re,ce):j(ne,re,ce),ce):re instanceof n.Name?(j(ne,ce,re),re):H(re,ce);return oe===n.Name&&!(pe instanceof n.Name)?w(ne,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(w=>U.assign((0,n._)`${j}${(0,n.getProperty)(w)}`,!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 O;(function(U){U[U.Num=0]="Num",U[U.Str=1]="Str"})(O=t.Type||(t.Type={}));function M(U,j,H){if(U instanceof n.Name){const w=j===O.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=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:(h,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:(h,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:P}=C;S===!1?g(C,!1):typeof S=="object"&&S.$async===!0?y.return(d.default.data):(y.assign((0,u._)`${P}.errors`,null),y.return(!0))}t.topBoolOrEmptySchema=f;function v(C,y){const{gen:S,schema:P}=C;P===!1?(S.var(y,!1),g(C)):S.var(y,!0)}t.boolOrEmptySchema=v;function g(C,y){const{gen:S,data:P}=C,A={gen:S,keyword:"false schema",data:P,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:C};(0,n.reportError)(A,E,void 0,y)}},9788:(h,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(O){O[O.Correct=0]="Correct",O[O.Wrong=1]="Wrong"})(v=t.DataType||(t.DataType={}));function g(O){const M=C(O.type);if(M.includes("null")){if(O.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!M.length&&O.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');O.nullable===!0&&M.push("null")}return M}t.getSchemaTypes=g;function C(O){const M=Array.isArray(O)?O:O?[O]:[];if(M.every(n.isJSONType))return M;throw new Error("type must be JSONType or JSONType[]: "+M.join(","))}t.getJSONTypes=C;function y(O,M){const{gen:D,data:U,opts:j}=O,H=P(M,j.coerceTypes),w=M.length>0&&!(H.length===0&&M.length===1&&(0,u.schemaHasRulesForType)(O,M[0]));if(w){const ne=o(M,U,j.strictNumbers,v.Wrong);D.if(ne,()=>{H.length?A(O,M,H):l(O)})}return w}t.coerceAndCheckDataType=y;const S=new Set(["string","number","integer","boolean","null"]);function P(O,M){return M?O.filter(D=>S.has(D)||M==="array"&&D==="array"):[]}function A(O,M,D){const{gen:U,data:j,opts:H}=O,w=U.let("dataType",(0,E._)`typeof ${j}`),ne=U.let("coerced",(0,E._)`undefined`);H.coerceTypes==="array"&&U.if((0,E._)`${w} == 'object' && Array.isArray(${j}) && ${j}.length == 1`,()=>U.assign(j,(0,E._)`${j}[0]`).assign(w,(0,E._)`typeof ${j}`).if(o(M,j,H.strictNumbers),()=>U.assign(ne,j))),U.if((0,E._)`${ne} !== undefined`);for(const ce of D)(S.has(ce)||ce==="array"&&H.coerceTypes==="array")&&re(ce);U.else(),l(O),U.endIf(),U.if((0,E._)`${ne} !== undefined`,()=>{U.assign(j,ne),b(O,ne)});function re(ce){switch(ce){case"string":U.elseIf((0,E._)`${w} == "number" || ${w} == "boolean"`).assign(ne,(0,E._)`"" + ${j}`).elseIf((0,E._)`${j} === null`).assign(ne,(0,E._)`""`);return;case"number":U.elseIf((0,E._)`${w} == "boolean" || ${j} === null
8
8
  || (${w} == "string" && ${j} && ${j} == +${j})`).assign(ne,(0,E._)`+${j}`);return;case"integer":U.elseIf((0,E._)`${w} === "boolean" || ${j} === null
@@ -821,7 +821,7 @@ ${q}`}}const M=W=>Array.isArray(W)&&W.some(te=>(0,u.isObject)(te)),D=W=>W.filter
821
821
  display: flex;
822
822
  flex-direction: column;
823
823
  gap: var(--dropdown-menu-item-gap);
824
- `},43747:(h,t,e)=>{"use strict";e.d(t,{_:()=>x});var n=e(63159),u=e(9448),d=e(82817),E=Object.defineProperty,f=Object.defineProperties,v=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,S=(a,l,R)=>l in a?E(a,l,{enumerable:!0,configurable:!0,writable:!0,value:R}):a[l]=R,P=(a,l)=>{for(var R in l||(l={}))C.call(l,R)&&S(a,R,l[R]);if(g)for(var R of g(l))y.call(l,R)&&S(a,R,l[R]);return a},A=(a,l)=>f(a,v(l)),b=(a,l)=>{var R={};for(var O in a)C.call(a,O)&&l.indexOf(O)<0&&(R[O]=a[O]);if(a!=null&&g)for(var O of g(a))l.indexOf(O)<0&&y.call(a,O)&&(R[O]=a[O]);return R};function x(a){var l=a,{children:R,content:O,active:M,onAction:D,to:U,dangerous:j,prefix:H,suffix:w,disabled:ne,separator:re,dataAttributes:ce,className:oe,separatorLine:pe,style:Te,role:je="menuitem"}=l,ye=b(l,["children","content","active","onAction","to","dangerous","prefix","suffix","disabled","separator","dataAttributes","className","separatorLine","style","role"]);const xe=()=>{D?.()},Oe=G=>{(G.key==="Enter"||G.key===" ")&&D?.()};return oe=oe||(M?" active":""),U?(0,n.jsxs)(o,A(P(P({as:d.N,"data-component-name":"Dropdown/DropdownMenuItem",className:oe,separatorLine:pe,to:U,style:Te,role:je},ce),ye),{children:[H,R,w]})):(0,n.jsxs)(o,A(P({"data-component-name":"Dropdown/DropdownMenuItem",className:oe,role:je,style:Te},ce),{onClick:xe,onKeyDown:Oe,tabIndex:D?0:-1,active:M,disabled:ne,separator:re,dangerous:j,separatorLine:pe,children:[H,R||O,w]}))}const o=u.Ay.li`
824
+ `},43747:(h,t,e)=>{"use strict";e.d(t,{_:()=>x});var n=e(63159),u=e(9448),d=e(82817),E=Object.defineProperty,f=Object.defineProperties,v=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,S=(a,l,R)=>l in a?E(a,l,{enumerable:!0,configurable:!0,writable:!0,value:R}):a[l]=R,P=(a,l)=>{for(var R in l||(l={}))C.call(l,R)&&S(a,R,l[R]);if(g)for(var R of g(l))y.call(l,R)&&S(a,R,l[R]);return a},A=(a,l)=>f(a,v(l)),b=(a,l)=>{var R={};for(var O in a)C.call(a,O)&&l.indexOf(O)<0&&(R[O]=a[O]);if(a!=null&&g)for(var O of g(a))l.indexOf(O)<0&&y.call(a,O)&&(R[O]=a[O]);return R};function x(a){var l=a,{children:R,content:O,active:M,onAction:D,to:U,dangerous:j,prefix:H,suffix:w,disabled:ne,separator:re,dataAttributes:ce,className:oe,separatorLine:pe,style:Te,role:je="menuitem"}=l,ye=b(l,["children","content","active","onAction","to","dangerous","prefix","suffix","disabled","separator","dataAttributes","className","separatorLine","style","role"]);const xe=()=>{D?.()},Oe=G=>{(G.key==="Enter"||G.key===" ")&&D?.()};return oe=oe||(M?" active":""),U?(0,n.jsxs)(o,A(P(P({as:d.N,"data-component-name":"Dropdown/DropdownMenuItem",className:oe,$separatorLine:pe,to:U,style:Te,role:je},ce),ye),{children:[H,R,w]})):(0,n.jsxs)(o,A(P({"data-component-name":"Dropdown/DropdownMenuItem",className:oe,role:je,style:Te},ce),{onClick:xe,onKeyDown:Oe,tabIndex:D?0:-1,active:M,disabled:ne,separator:re,dangerous:j,$separatorLine:pe,children:[H,R||O,w]}))}const o=u.Ay.li`
825
825
  display: flex;
826
826
  flex-direction: row;
827
827
  justify-content: var(--dropdown-menu-item-justify-content, flex-start);
@@ -884,7 +884,7 @@ ${q}`}}const M=W=>Array.isArray(W)&&W.some(te=>(0,u.isObject)(te)),D=W=>W.filter
884
884
  }
885
885
  `}
886
886
 
887
- ${({separatorLine:a})=>a&&(0,u.AH)`
887
+ ${({$separatorLine:a})=>a&&(0,u.AH)`
888
888
  border-bottom: 1px solid var(--dropdown-menu-item-separator-border-color);
889
889
  border-bottom-left-radius: 0;
890
890
  border-bottom-right-radius: 0;
@@ -9259,7 +9259,7 @@ Error generating stack: `+ie.message+`
9259
9259
  &:last-of-type:after {
9260
9260
  content: '';
9261
9261
  }
9262
- `,Rs=45;function Gs({pattern:T}){const[L,N]=(0,o.useState)(!1);if(!T)return null;const Ce=()=>{N(!L)};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Zt,{children:L||T.length<Rs?T:`${T.slice(0,Rs)}...`}),T.length>Rs&&(0,h.jsx)(ln,{onClick:Ce,children:L?"Hide pattern":"Show pattern"})]})}function Da(T){if(!T.Hook)return null;const L=T.Hook(T.props),N=L&&L.html;return N?(0,h.jsx)("span",{dangerouslySetInnerHTML:{__html:N}}):L}function qa(T){return T.readOnly&&"read-only"||T.writeOnly&&"write-only"||null}var Ha=Object.defineProperty,fs=Object.getOwnPropertySymbols,Ls=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable,Pl=(T,L,N)=>L in T?Ha(T,L,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[L]=N,dl=(T,L)=>{for(var N in L||(L={}))Ls.call(L,N)&&Pl(T,N,L[N]);if(fs)for(var N of fs(L))El.call(L,N)&&Pl(T,N,L[N]);return T};function bl({field:T,renderDiscriminatorSwitch:L,deepLink:N,fieldParentsName:Ce=[]}){var Ke;const{hidePropertiesPrefix:ft,hideSchemaTitles:Mt}=(0,M.md)($.HN),{schema:xt,description:Ot,example:en,deprecated:pn,examples:Xn,kind:cr,required:Fr,name:Ao}=T,yo=T.in==="header",qo=(0,o.useMemo)(()=>{if(en!==void 0||Xn!==void 0){if(Xn!==void 0)return(0,h.jsx)(Zi,{field:T});{const No=!!T.in;return(0,h.jsx)(rn,{label:"Example:",value:aa(T,T.example),raw:No})}}else return null},[en,Xn,T]),mo=qa(T.schema);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(Ys,{children:[Ao&&(0,h.jsxs)(ws,{children:[N&&(0,h.jsx)(et,{to:N}),!ft&&Ce.map(No=>No+"."),(0,h.jsx)(_a,{className:"schema-name",children:Ao})]}),(0,h.jsx)(Zo,{type:xt.typePrefix+xt.displayType}),(0,h.jsx)(Zo,{type:xt.displayFormat&&`(${xt.displayFormat})`}),(0,h.jsx)(Zo,{type:xt.contentEncoding}),(0,h.jsx)(Zo,{type:xt.title&&!Mt?`(${xt.title})`:""}),(Ke=xt.constraints)==null?void 0:Ke.map(No=>(0,h.jsx)(Zo,{type:No},No)),pn&&(0,h.jsx)(sn,{deprecated:!0,children:"Deprecated"}),(0,h.jsx)(Gs,{pattern:xt.pattern}),cr==="additionalProperties"&&(0,h.jsx)(Zt,{children:"additional property"}),cr==="patternProperties"&&(0,h.jsx)(Zt,{children:"pattern property"}),mo&&(0,h.jsx)(Ye,{children:mo}),Fr&&(0,h.jsx)(pt,{children:"required"}),xt.isCircular&&(0,h.jsx)(tt,{children:"Recursive"})]}),(0,h.jsx)(Js,{source:Ot}),(0,h.jsx)(rn,{raw:yo,label:"Default",value:xt.default}),(0,h.jsx)(Ea,{type:xt.type,values:xt["x-enumDescriptions"]||xt.enum}),qo,(0,h.jsx)(Vr,{extensions:dl(dl({},T.extensions),xt.extensions)}),xt.externalDocs&&(0,h.jsx)(mn,{externalDocs:xt.externalDocs,compact:!0}),L?.(),(0,h.jsx)(rn,{label:"Value",value:T.const||void 0})]})}const Zs=(0,o.memo)(bl),Ys=O.Ay.div`
9262
+ `,Rs=45;function Gs({pattern:T}){const[L,N]=(0,o.useState)(!1);if(!T)return null;const Ce=()=>{N(!L)};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Zt,{children:L||T.length<Rs?T:`${T.slice(0,Rs)}...`}),T.length>Rs&&(0,h.jsx)(ln,{onClick:Ce,children:L?"Hide pattern":"Show pattern"})]})}function Da(T){if(!T.Hook)return null;const L=T.Hook(T.props),N=L&&L.html;return N?(0,h.jsx)("span",{dangerouslySetInnerHTML:{__html:N}}):L}function qa(T){return T.readOnly&&"read-only"||T.writeOnly&&"write-only"||null}var Ha=Object.defineProperty,fs=Object.getOwnPropertySymbols,Ls=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable,Pl=(T,L,N)=>L in T?Ha(T,L,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[L]=N,dl=(T,L)=>{for(var N in L||(L={}))Ls.call(L,N)&&Pl(T,N,L[N]);if(fs)for(var N of fs(L))El.call(L,N)&&Pl(T,N,L[N]);return T};function bl({field:T,renderDiscriminatorSwitch:L,deepLink:N,fieldParentsName:Ce=[]}){var Ke;const{hidePropertiesPrefix:ft,hideSchemaTitles:Mt}=(0,M.md)($.HN),{schema:xt,description:Ot,example:en,deprecated:pn,examples:Xn,kind:cr,required:Fr,name:Ao}=T,yo=T.in==="header",qo=(0,o.useMemo)(()=>{if(en!==void 0||Xn!==void 0){if(Xn!==void 0)return(0,h.jsx)(Zi,{field:T});{const No=!!T.in;return(0,h.jsx)(rn,{label:"Example:",value:aa(T,T.example),raw:No})}}else return null},[en,Xn,T]),mo=qa(T.schema);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(Ys,{children:[Ao&&(0,h.jsxs)(ws,{children:[N&&(0,h.jsx)(et,{to:N}),!ft&&Ce.map(No=>No+".\u200B"),(0,h.jsx)(_a,{className:"schema-name",children:Ao})]}),(0,h.jsx)(Zo,{type:xt.typePrefix+xt.displayType}),(0,h.jsx)(Zo,{type:xt.displayFormat&&`(${xt.displayFormat})`}),(0,h.jsx)(Zo,{type:xt.contentEncoding}),(0,h.jsx)(Zo,{type:xt.title&&!Mt?`(${xt.title})`:""}),(Ke=xt.constraints)==null?void 0:Ke.map(No=>(0,h.jsx)(Zo,{type:No},No)),pn&&(0,h.jsx)(sn,{deprecated:!0,children:"Deprecated"}),(0,h.jsx)(Gs,{pattern:xt.pattern}),cr==="additionalProperties"&&(0,h.jsx)(Zt,{children:"additional property"}),cr==="patternProperties"&&(0,h.jsx)(Zt,{children:"pattern property"}),mo&&(0,h.jsx)(Ye,{children:mo}),Fr&&(0,h.jsx)(pt,{children:"required"}),xt.isCircular&&(0,h.jsx)(tt,{children:"Recursive"})]}),(0,h.jsx)(Js,{source:Ot}),(0,h.jsx)(rn,{raw:yo,label:"Default",value:xt.default}),(0,h.jsx)(Ea,{type:xt.type,values:xt["x-enumDescriptions"]||xt.enum}),qo,(0,h.jsx)(Vr,{extensions:dl(dl({},T.extensions),xt.extensions)}),xt.externalDocs&&(0,h.jsx)(mn,{externalDocs:xt.externalDocs,compact:!0}),L?.(),(0,h.jsx)(rn,{label:"Value",value:T.const||void 0})]})}const Zs=(0,o.memo)(bl),Ys=O.Ay.div`
9263
9263
  display: flex;
9264
9264
  align-items: center;
9265
9265
  gap: calc(var(--spacing-xxs) / 4) var(--spacing-xxs);
@@ -9280,8 +9280,9 @@ Error generating stack: `+ie.message+`
9280
9280
  font-size: var(--font-size-base);
9281
9281
  color: var(--text-color-description);
9282
9282
  max-width: 100%;
9283
- display: flex;
9284
- flex-wrap: wrap;
9283
+ word-wrap: break-word;
9284
+ overflow-wrap: break-word;
9285
+ white-space: pre-wrap;
9285
9286
 
9286
9287
  :hover {
9287
9288
  ${l.LinkIcon} {
@@ -10287,4 +10288,4 @@ Error generating stack: `+ie.message+`
10287
10288
  `,Kh=({pointer:T,schema:L})=>{const{options:N,parser:Ce}=useAtomValue(globalStoreAtom),Ke=L||{$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})})})},kh=({pointer:T,mimeType:L,encoding:N})=>{const Ce=useAtomValue(globalParserAtom),Ke=useAtomValue(layoutAtom),ft=getExamples({parser:Ce,infoOrRef:{$ref:T},mime:L,encoding:N});return jsx(Row,{layout:Ke,children:jsx(ExamplesWrap,{children:jsx(Example,{example:ft,mimeType:L})})})},bh=O.Ay.div`
10288
10289
  padding: 20px;
10289
10290
  color: red;
10290
- `;class Gh 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,h.jsxs)(bh,{children:[(0,h.jsx)("h1",{children:"Something went wrong..."}),(0,h.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,h.jsx)("p",{children:(0,h.jsxs)("details",{children:[(0,h.jsx)("summary",{children:"Stack trace"}),(0,h.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,h.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,h.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,h.jsx)(h.Fragment,{children:o.Children.only(this.props.children)})}}var Sh=Object.defineProperty,Ff=Object.getOwnPropertySymbols,xh=Object.prototype.hasOwnProperty,Ih=Object.prototype.propertyIsEnumerable,Nf=(T,L,N)=>L in T?Sh(T,L,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[L]=N,Uf=(T,L)=>{for(var N in L||(L={}))xh.call(L,N)&&Nf(T,N,L[N]);if(Ff)for(var N of Ff(L))Ih.call(L,N)&&Nf(T,N,L[N]);return T};const zf=(0,R.JA)(),Ah=zf?(0,x.dirname)(zf)+"/":"";function Dh(T){const L={},N=T.attributes;for(let Ce=0;Ce<N.length;Ce++){const Ke=N[Ce];L[Ke.name]=Ke.value}return L}function Th(T){const L=Dh(T),N={};for(const Ce in L){const Ke=Ce.replace(/-(.)/g,(ft,Mt)=>Mt.toUpperCase());N[Ke]=L[Ce]}return N}function Mh(T,L=document.querySelector("redoc")){(0,a.c)(L,(0,h.jsx)($f,{store:T}))}function Hf(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 Ce,Ke;typeof T=="string"?Ce=T:typeof T=="object"&&(Ke=T),(0,a.H)(N).render((0,o.createElement)(Eh,{definition:Ke,definitionUrl:Ce,options:Uf(Uf({},L),Th(N))},["Loading..."]))}function Wf(T){br.p=T}const jh="3.3.13",Rh="536cd42a77";function Lh(){const T=(0,R.iT)("redoc");if(!T)return;const L=T.getAttribute("spec-url");L&&Hf(L,{},T)}l.IS_BROWSER&&Wf(Ah),Lh()})(),xd})());
10291
+ `;class Gh 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,h.jsxs)(bh,{children:[(0,h.jsx)("h1",{children:"Something went wrong..."}),(0,h.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,h.jsx)("p",{children:(0,h.jsxs)("details",{children:[(0,h.jsx)("summary",{children:"Stack trace"}),(0,h.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,h.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,h.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,h.jsx)(h.Fragment,{children:o.Children.only(this.props.children)})}}var Sh=Object.defineProperty,Ff=Object.getOwnPropertySymbols,xh=Object.prototype.hasOwnProperty,Ih=Object.prototype.propertyIsEnumerable,Nf=(T,L,N)=>L in T?Sh(T,L,{enumerable:!0,configurable:!0,writable:!0,value:N}):T[L]=N,Uf=(T,L)=>{for(var N in L||(L={}))xh.call(L,N)&&Nf(T,N,L[N]);if(Ff)for(var N of Ff(L))Ih.call(L,N)&&Nf(T,N,L[N]);return T};const zf=(0,R.JA)(),Ah=zf?(0,x.dirname)(zf)+"/":"";function Dh(T){const L={},N=T.attributes;for(let Ce=0;Ce<N.length;Ce++){const Ke=N[Ce];L[Ke.name]=Ke.value}return L}function Th(T){const L=Dh(T),N={};for(const Ce in L){const Ke=Ce.replace(/-(.)/g,(ft,Mt)=>Mt.toUpperCase());N[Ke]=L[Ce]}return N}function Mh(T,L=document.querySelector("redoc")){(0,a.c)(L,(0,h.jsx)($f,{store:T}))}function Hf(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 Ce,Ke;typeof T=="string"?Ce=T:typeof T=="object"&&(Ke=T),(0,a.H)(N).render((0,o.createElement)(Eh,{definition:Ke,definitionUrl:Ce,options:Uf(Uf({},L),Th(N))},["Loading..."]))}function Wf(T){br.p=T}const jh="3.3.14",Rh="337d1dc";function Lh(){const T=(0,R.iT)("redoc");if(!T)return;const L=T.getAttribute("spec-url");L&&Hf(L,{},T)}l.IS_BROWSER&&Wf(Ah),Lh()})(),xd})());
@@ -1,4 +1,4 @@
1
- "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FieldDetails=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),jotai_1=require("jotai"),styled_components_1=__importDefault(require("styled-components")),theme_1=require("@redocly/theme"),common_1=require("../common"),ExternalDocumentation_1=require("../ExternalDocumentation"),Markdown_1=require("../Markdown"),FieldDetail_1=require("./FieldDetail"),Extensions_1=require("./Extensions"),EnumValues_1=require("./EnumValues"),Examples_1=require("./Examples"),store_1=require("../../jotai/store"),SchemaTypeInfo_1=require("./SchemaTypeInfo"),LinkToField_1=require("../common/LinkToField"),Pattern_1=require("./Pattern"),RenderHook_1=require("../RenderHook");function FieldDetailsComponent({field:e,renderDiscriminatorSwitch:t,deepLink:i,fieldParentsName:n=[]}){var r;const{hidePropertiesPrefix:a,hideSchemaTitles:s}=(0,jotai_1.useAtomValue)(store_1.globalOptionsAtom),{schema:o,description:l,example:m,deprecated:_,examples:c,kind:u,required:d,name:p}=e,x="header"===e.in,j=(0,react_1.useMemo)((()=>{if(void 0!==m||void 0!==c){if(void 0!==c)return(0,jsx_runtime_1.jsx)(Examples_1.Examples,{field:e});{const t=!!e.in;return(0,jsx_runtime_1.jsx)(FieldDetail_1.FieldDetail,{label:"Example:",value:(0,Examples_1.getSerializedValue)(e,e.example),raw:t})}}return null}),[m,c,e]),h=(0,RenderHook_1.getAccessModeLabelText)(e.schema);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(Row,{children:[p&&(0,jsx_runtime_1.jsxs)(Name,{children:[i&&(0,jsx_runtime_1.jsx)(LinkToField_1.LinkToField,{to:i}),!a&&n.map((e=>e+".")),(0,jsx_runtime_1.jsx)(SchemaName,{className:"schema-name",children:p})]}),(0,jsx_runtime_1.jsx)(SchemaTypeInfo_1.SchemaTypeInfo,{type:o.typePrefix+o.displayType}),(0,jsx_runtime_1.jsx)(SchemaTypeInfo_1.SchemaTypeInfo,{type:o.displayFormat&&`(${o.displayFormat})`}),(0,jsx_runtime_1.jsx)(SchemaTypeInfo_1.SchemaTypeInfo,{type:o.contentEncoding}),(0,jsx_runtime_1.jsx)(SchemaTypeInfo_1.SchemaTypeInfo,{type:o.title&&!s?`(${o.title})`:""}),null===(r=o.constraints)||void 0===r?void 0:r.map((e=>(0,jsx_runtime_1.jsx)(SchemaTypeInfo_1.SchemaTypeInfo,{type:e},e))),_&&(0,jsx_runtime_1.jsx)(common_1.StyledBadge,{deprecated:!0,children:"Deprecated"}),(0,jsx_runtime_1.jsx)(Pattern_1.Pattern,{pattern:o.pattern}),"additionalProperties"===u&&(0,jsx_runtime_1.jsx)(common_1.Tag,{children:"additional property"}),"patternProperties"===u&&(0,jsx_runtime_1.jsx)(common_1.Tag,{children:"pattern property"}),h&&(0,jsx_runtime_1.jsx)(common_1.AccessLabel,{children:h}),d&&(0,jsx_runtime_1.jsx)(common_1.RequiredLabel,{children:"required"}),o.isCircular&&(0,jsx_runtime_1.jsx)(common_1.RecursiveLabel,{children:"Recursive"})]}),(0,jsx_runtime_1.jsx)(StyledDescription,{source:l}),(0,jsx_runtime_1.jsx)(FieldDetail_1.FieldDetail,{raw:x,label:"Default",value:o.default}),(0,jsx_runtime_1.jsx)(EnumValues_1.EnumValues,{type:o.type,values:o["x-enumDescriptions"]||o.enum}),j,(0,jsx_runtime_1.jsx)(Extensions_1.Extensions,{extensions:Object.assign(Object.assign({},e.extensions),o.extensions)}),o.externalDocs&&(0,jsx_runtime_1.jsx)(ExternalDocumentation_1.ExternalDocumentation,{externalDocs:o.externalDocs,compact:!0}),null==t?void 0:t(),(0,jsx_runtime_1.jsx)(FieldDetail_1.FieldDetail,{label:"Value",value:e.const||void 0})]})}exports.FieldDetails=(0,react_1.memo)(FieldDetailsComponent);const Row=styled_components_1.default.div`
1
+ "use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FieldDetails=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),jotai_1=require("jotai"),styled_components_1=__importDefault(require("styled-components")),theme_1=require("@redocly/theme"),common_1=require("../common"),ExternalDocumentation_1=require("../ExternalDocumentation"),Markdown_1=require("../Markdown"),FieldDetail_1=require("./FieldDetail"),Extensions_1=require("./Extensions"),EnumValues_1=require("./EnumValues"),Examples_1=require("./Examples"),store_1=require("../../jotai/store"),SchemaTypeInfo_1=require("./SchemaTypeInfo"),LinkToField_1=require("../common/LinkToField"),Pattern_1=require("./Pattern"),RenderHook_1=require("../RenderHook");function FieldDetailsComponent({field:e,renderDiscriminatorSwitch:t,deepLink:i,fieldParentsName:r=[]}){var n;const{hidePropertiesPrefix:a,hideSchemaTitles:o}=(0,jotai_1.useAtomValue)(store_1.globalOptionsAtom),{schema:s,description:l,example:m,deprecated:_,examples:c,kind:d,required:u,name:p}=e,x="header"===e.in,j=(0,react_1.useMemo)((()=>{if(void 0!==m||void 0!==c){if(void 0!==c)return(0,jsx_runtime_1.jsx)(Examples_1.Examples,{field:e});{const t=!!e.in;return(0,jsx_runtime_1.jsx)(FieldDetail_1.FieldDetail,{label:"Example:",value:(0,Examples_1.getSerializedValue)(e,e.example),raw:t})}}return null}),[m,c,e]),h=(0,RenderHook_1.getAccessModeLabelText)(e.schema);return(0,jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment,{children:[(0,jsx_runtime_1.jsxs)(Row,{children:[p&&(0,jsx_runtime_1.jsxs)(Name,{children:[i&&(0,jsx_runtime_1.jsx)(LinkToField_1.LinkToField,{to:i}),!a&&r.map((e=>e+".​")),(0,jsx_runtime_1.jsx)(SchemaName,{className:"schema-name",children:p})]}),(0,jsx_runtime_1.jsx)(SchemaTypeInfo_1.SchemaTypeInfo,{type:s.typePrefix+s.displayType}),(0,jsx_runtime_1.jsx)(SchemaTypeInfo_1.SchemaTypeInfo,{type:s.displayFormat&&`(${s.displayFormat})`}),(0,jsx_runtime_1.jsx)(SchemaTypeInfo_1.SchemaTypeInfo,{type:s.contentEncoding}),(0,jsx_runtime_1.jsx)(SchemaTypeInfo_1.SchemaTypeInfo,{type:s.title&&!o?`(${s.title})`:""}),null===(n=s.constraints)||void 0===n?void 0:n.map((e=>(0,jsx_runtime_1.jsx)(SchemaTypeInfo_1.SchemaTypeInfo,{type:e},e))),_&&(0,jsx_runtime_1.jsx)(common_1.StyledBadge,{deprecated:!0,children:"Deprecated"}),(0,jsx_runtime_1.jsx)(Pattern_1.Pattern,{pattern:s.pattern}),"additionalProperties"===d&&(0,jsx_runtime_1.jsx)(common_1.Tag,{children:"additional property"}),"patternProperties"===d&&(0,jsx_runtime_1.jsx)(common_1.Tag,{children:"pattern property"}),h&&(0,jsx_runtime_1.jsx)(common_1.AccessLabel,{children:h}),u&&(0,jsx_runtime_1.jsx)(common_1.RequiredLabel,{children:"required"}),s.isCircular&&(0,jsx_runtime_1.jsx)(common_1.RecursiveLabel,{children:"Recursive"})]}),(0,jsx_runtime_1.jsx)(StyledDescription,{source:l}),(0,jsx_runtime_1.jsx)(FieldDetail_1.FieldDetail,{raw:x,label:"Default",value:s.default}),(0,jsx_runtime_1.jsx)(EnumValues_1.EnumValues,{type:s.type,values:s["x-enumDescriptions"]||s.enum}),j,(0,jsx_runtime_1.jsx)(Extensions_1.Extensions,{extensions:Object.assign(Object.assign({},e.extensions),s.extensions)}),s.externalDocs&&(0,jsx_runtime_1.jsx)(ExternalDocumentation_1.ExternalDocumentation,{externalDocs:s.externalDocs,compact:!0}),null==t?void 0:t(),(0,jsx_runtime_1.jsx)(FieldDetail_1.FieldDetail,{label:"Value",value:e.const||void 0})]})}exports.FieldDetails=(0,react_1.memo)(FieldDetailsComponent);const Row=styled_components_1.default.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  gap: calc(var(--spacing-xxs) / 4) var(--spacing-xxs);
@@ -19,8 +19,9 @@
19
19
  font-size: var(--font-size-base);
20
20
  color: var(--text-color-description);
21
21
  max-width: 100%;
22
- display: flex;
23
- flex-wrap: wrap;
22
+ word-wrap: break-word;
23
+ overflow-wrap: break-word;
24
+ white-space: pre-wrap;
24
25
 
25
26
  :hover {
26
27
  ${theme_1.LinkIcon} {
@@ -1,4 +1,4 @@
1
- import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from"react/jsx-runtime";import{memo,useMemo}from"react";import{useAtomValue}from"jotai";import styled from"styled-components";import{LinkIcon}from"@redocly/theme";import{RecursiveLabel,Tag,AccessLabel,RequiredLabel,StyledBadge}from"../common";import{ExternalDocumentation}from"../ExternalDocumentation";import{Markdown}from"../Markdown";import{FieldDetail}from"./FieldDetail";import{Extensions}from"./Extensions";import{EnumValues}from"./EnumValues";import{Examples,getSerializedValue}from"./Examples";import{globalOptionsAtom}from"../../jotai/store";import{SchemaTypeInfo}from"./SchemaTypeInfo";import{LinkToField}from"../common/LinkToField";import{Pattern}from"./Pattern";import{getAccessModeLabelText}from"../RenderHook";function FieldDetailsComponent({field:e,renderDiscriminatorSwitch:t,deepLink:i,fieldParentsName:a=[]}){var o;const{hidePropertiesPrefix:r,hideSchemaTitles:s}=useAtomValue(globalOptionsAtom),{schema:n,description:l,example:m,deprecated:p,examples:c,kind:d,required:x,name:f}=e,h="header"===e.in,u=useMemo((()=>{if(void 0!==m||void 0!==c){if(void 0!==c)return _jsx(Examples,{field:e});{const t=!!e.in;return _jsx(FieldDetail,{label:"Example:",value:getSerializedValue(e,e.example),raw:t})}}return null}),[m,c,e]),y=getAccessModeLabelText(e.schema);return _jsxs(_Fragment,{children:[_jsxs(Row,{children:[f&&_jsxs(Name,{children:[i&&_jsx(LinkToField,{to:i}),!r&&a.map((e=>e+".")),_jsx(SchemaName,{className:"schema-name",children:f})]}),_jsx(SchemaTypeInfo,{type:n.typePrefix+n.displayType}),_jsx(SchemaTypeInfo,{type:n.displayFormat&&`(${n.displayFormat})`}),_jsx(SchemaTypeInfo,{type:n.contentEncoding}),_jsx(SchemaTypeInfo,{type:n.title&&!s?`(${n.title})`:""}),null===(o=n.constraints)||void 0===o?void 0:o.map((e=>_jsx(SchemaTypeInfo,{type:e},e))),p&&_jsx(StyledBadge,{deprecated:!0,children:"Deprecated"}),_jsx(Pattern,{pattern:n.pattern}),"additionalProperties"===d&&_jsx(Tag,{children:"additional property"}),"patternProperties"===d&&_jsx(Tag,{children:"pattern property"}),y&&_jsx(AccessLabel,{children:y}),x&&_jsx(RequiredLabel,{children:"required"}),n.isCircular&&_jsx(RecursiveLabel,{children:"Recursive"})]}),_jsx(StyledDescription,{source:l}),_jsx(FieldDetail,{raw:h,label:"Default",value:n.default}),_jsx(EnumValues,{type:n.type,values:n["x-enumDescriptions"]||n.enum}),u,_jsx(Extensions,{extensions:Object.assign(Object.assign({},e.extensions),n.extensions)}),n.externalDocs&&_jsx(ExternalDocumentation,{externalDocs:n.externalDocs,compact:!0}),null==t?void 0:t(),_jsx(FieldDetail,{label:"Value",value:e.const||void 0})]})}export const FieldDetails=memo(FieldDetailsComponent);const Row=styled.div`
1
+ import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from"react/jsx-runtime";import{memo,useMemo}from"react";import{useAtomValue}from"jotai";import styled from"styled-components";import{LinkIcon}from"@redocly/theme";import{RecursiveLabel,Tag,AccessLabel,RequiredLabel,StyledBadge}from"../common";import{ExternalDocumentation}from"../ExternalDocumentation";import{Markdown}from"../Markdown";import{FieldDetail}from"./FieldDetail";import{Extensions}from"./Extensions";import{EnumValues}from"./EnumValues";import{Examples,getSerializedValue}from"./Examples";import{globalOptionsAtom}from"../../jotai/store";import{SchemaTypeInfo}from"./SchemaTypeInfo";import{LinkToField}from"../common/LinkToField";import{Pattern}from"./Pattern";import{getAccessModeLabelText}from"../RenderHook";function FieldDetailsComponent({field:e,renderDiscriminatorSwitch:t,deepLink:i,fieldParentsName:a=[]}){var o;const{hidePropertiesPrefix:r,hideSchemaTitles:s}=useAtomValue(globalOptionsAtom),{schema:n,description:l,example:m,deprecated:p,examples:c,kind:d,required:x,name:f}=e,h="header"===e.in,u=useMemo((()=>{if(void 0!==m||void 0!==c){if(void 0!==c)return _jsx(Examples,{field:e});{const t=!!e.in;return _jsx(FieldDetail,{label:"Example:",value:getSerializedValue(e,e.example),raw:t})}}return null}),[m,c,e]),y=getAccessModeLabelText(e.schema);return _jsxs(_Fragment,{children:[_jsxs(Row,{children:[f&&_jsxs(Name,{children:[i&&_jsx(LinkToField,{to:i}),!r&&a.map((e=>e+".​")),_jsx(SchemaName,{className:"schema-name",children:f})]}),_jsx(SchemaTypeInfo,{type:n.typePrefix+n.displayType}),_jsx(SchemaTypeInfo,{type:n.displayFormat&&`(${n.displayFormat})`}),_jsx(SchemaTypeInfo,{type:n.contentEncoding}),_jsx(SchemaTypeInfo,{type:n.title&&!s?`(${n.title})`:""}),null===(o=n.constraints)||void 0===o?void 0:o.map((e=>_jsx(SchemaTypeInfo,{type:e},e))),p&&_jsx(StyledBadge,{deprecated:!0,children:"Deprecated"}),_jsx(Pattern,{pattern:n.pattern}),"additionalProperties"===d&&_jsx(Tag,{children:"additional property"}),"patternProperties"===d&&_jsx(Tag,{children:"pattern property"}),y&&_jsx(AccessLabel,{children:y}),x&&_jsx(RequiredLabel,{children:"required"}),n.isCircular&&_jsx(RecursiveLabel,{children:"Recursive"})]}),_jsx(StyledDescription,{source:l}),_jsx(FieldDetail,{raw:h,label:"Default",value:n.default}),_jsx(EnumValues,{type:n.type,values:n["x-enumDescriptions"]||n.enum}),u,_jsx(Extensions,{extensions:Object.assign(Object.assign({},e.extensions),n.extensions)}),n.externalDocs&&_jsx(ExternalDocumentation,{externalDocs:n.externalDocs,compact:!0}),null==t?void 0:t(),_jsx(FieldDetail,{label:"Value",value:e.const||void 0})]})}export const FieldDetails=memo(FieldDetailsComponent);const Row=styled.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  gap: calc(var(--spacing-xxs) / 4) var(--spacing-xxs);
@@ -19,8 +19,9 @@ import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from"react/jsx-runtime";i
19
19
  font-size: var(--font-size-base);
20
20
  color: var(--text-color-description);
21
21
  max-width: 100%;
22
- display: flex;
23
- flex-wrap: wrap;
22
+ word-wrap: break-word;
23
+ overflow-wrap: break-word;
24
+ white-space: pre-wrap;
24
25
 
25
26
  :hover {
26
27
  ${LinkIcon} {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/openapi-docs",
3
- "version": "3.3.13",
3
+ "version": "3.3.14",
4
4
  "description": "Redocly OpenAPI Docs",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",