@redocly/openapi-docs 3.3.17 → 3.3.18
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.
|
|
5
|
+
* Version: "3.3.18"
|
|
6
6
|
*/(function(Vc,rc){typeof exports=="object"&&typeof module=="object"?module.exports=rc(require("null")):typeof define=="function"&&define.amd?define(["null"],rc):typeof exports=="object"?exports.RedoclyOpenAPIDocs=rc(require("null")):Vc.RedoclyOpenAPIDocs=rc(Vc.null)})(this,rf=>(()=>{var Vc={44607:(g,t,e)=>{"use strict";e.d(t,{A:()=>n});function n(d){var u=Object.create(null);return function(O){return u[O]===void 0&&(u[O]=d(O)),u[O]}}},61203:(g,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(85968),d=e(96735),u=e(44723),O=e(48226),p="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(),d.default.forEach(S=>this.addVocabulary(S)),this.opts.discriminator&&this.addKeyword(u.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:S,meta:P}=this.opts;P&&(O.default.call(this,S),this.refs["http://json-schema.org/schema"]=p)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(p)?p:void 0)}}g.exports=t=v,Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var f=e(9804);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var C=e(57287);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}})},76202:(g,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0,t._=u,t.str=p,t.addCodeArg=v,t.strConcat=y,t.stringify=P,t.safeStringify=I,t.getProperty=E,t.getEsmExportName=x,t.regexpCode=o;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 d 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,b)=>`${R}${b}`,"")}get names(){var l;return(l=this._names)!==null&&l!==void 0?l:this._names=this._items.reduce((R,b)=>(b instanceof n&&(R[b.str]=(R[b.str]||0)+1),R),{})}}t._Code=d,t.nil=new d("");function u(a,...l){const R=[a[0]];let b=0;for(;b<l.length;)v(R,l[b]),R.push(a[++b]);return new d(R)}const O=new d("+");function p(a,...l){const R=[I(a[0])];let b=0;for(;b<l.length;)R.push(O),v(R,l[b]),R.push(O,I(a[++b]));return f(R),new d(R)}function v(a,l){l instanceof d?a.push(...l._items):l instanceof n?a.push(l):a.push(S(l))}function f(a){let l=1;for(;l<a.length-1;){if(a[l]===O){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:p`${a}${l}`}function S(a){return typeof a=="number"||typeof a=="boolean"||a===null?a:I(Array.isArray(a)?a.join(","):a)}function P(a){return new d(I(a))}function I(a){return JSON.stringify(a).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function E(a){return typeof a=="string"&&t.IDENTIFIER.test(a)?new d(`.${a}`):u`[${a}]`}function x(a){if(typeof a=="string"&&t.IDENTIFIER.test(a))return new d(`${a}`);throw new Error(`CodeGen: invalid export name: ${a}, use explicit $id name mapping`)}function o(a){return new d(a.toString())}},57287:(g,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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,t.not=Ae,t.and=xe,t.or=Z;const n=e(76202),d=e(34863);var u=e(76202);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return u.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return u.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return u.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}});var O=e(34863);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return O.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return O.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return O.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return O.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class p{optimizeNodes(){return this}optimizeNames(Y,K){return this}}class v extends p{constructor(Y,K,te){super(),this.varKind=Y,this.name=K,this.rhs=te}render({es5:Y,_n:K}){const te=Y?d.varKinds.var:this.varKind,q=this.rhs===void 0?"":` = ${this.rhs}`;return`${te} ${this.name}${q};`+K}optimizeNames(Y,K){if(Y[this.name.str])return this.rhs&&(this.rhs=pe(this.rhs,Y,K)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class f extends p{constructor(Y,K,te){super(),this.lhs=Y,this.rhs=K,this.sideEffects=te}render({_n:Y}){return`${this.lhs} = ${this.rhs};`+Y}optimizeNames(Y,K){if(!(this.lhs instanceof n.Name&&!Y[this.lhs.str]&&!this.sideEffects))return this.rhs=pe(this.rhs,Y,K),this}get names(){const Y=this.lhs instanceof n.Name?{}:{...this.lhs.names};return oe(Y,this.rhs)}}class C extends f{constructor(Y,K,te,q){super(Y,te,q),this.op=K}render({_n:Y}){return`${this.lhs} ${this.op}= ${this.rhs};`+Y}}class y extends p{constructor(Y){super(),this.label=Y,this.names={}}render({_n:Y}){return`${this.label}:`+Y}}class S extends p{constructor(Y){super(),this.label=Y,this.names={}}render({_n:Y}){return`break${this.label?` ${this.label}`:""};`+Y}}class P extends p{constructor(Y){super(),this.error=Y}render({_n:Y}){return`throw ${this.error};`+Y}get names(){return this.error.names}}class I extends p{constructor(Y){super(),this.code=Y}render({_n:Y}){return`${this.code};`+Y}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(Y,K){return this.code=pe(this.code,Y,K),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class E extends p{constructor(Y=[]){super(),this.nodes=Y}render(Y){return this.nodes.reduce((K,te)=>K+te.render(Y),"")}optimizeNodes(){const{nodes:Y}=this;let K=Y.length;for(;K--;){const te=Y[K].optimizeNodes();Array.isArray(te)?Y.splice(K,1,...te):te?Y[K]=te:Y.splice(K,1)}return Y.length>0?this:void 0}optimizeNames(Y,K){const{nodes:te}=this;let q=te.length;for(;q--;){const Oe=te[q];Oe.optimizeNames(Y,K)||(Re(Y,Oe.names),te.splice(q,1))}return te.length>0?this:void 0}get names(){return this.nodes.reduce((Y,K)=>ue(Y,K.names),{})}}class x extends E{render(Y){return"{"+Y._n+super.render(Y)+"}"+Y._n}}class o extends E{}class a extends x{}a.kind="else";class l extends x{constructor(Y,K){super(K),this.condition=Y}render(Y){let K=`if(${this.condition})`+super.render(Y);return this.else&&(K+="else "+this.else.render(Y)),K}optimizeNodes(){super.optimizeNodes();const Y=this.condition;if(Y===!0)return this.nodes;let K=this.else;if(K){const te=K.optimizeNodes();K=this.else=Array.isArray(te)?new a(te):te}if(K)return Y===!1?K instanceof l?K:K.nodes:this.nodes.length?this:new l(Ae(Y),K instanceof l?[K]:K.nodes);if(!(Y===!1||!this.nodes.length))return this}optimizeNames(Y,K){var te;if(this.else=(te=this.else)===null||te===void 0?void 0:te.optimizeNames(Y,K),!!(super.optimizeNames(Y,K)||this.else))return this.condition=pe(this.condition,Y,K),this}get names(){const Y=super.names;return oe(Y,this.condition),this.else&&ue(Y,this.else.names),Y}}l.kind="if";class R extends x{}R.kind="for";class b extends R{constructor(Y){super(),this.iteration=Y}render(Y){return`for(${this.iteration})`+super.render(Y)}optimizeNames(Y,K){if(super.optimizeNames(Y,K))return this.iteration=pe(this.iteration,Y,K),this}get names(){return ue(super.names,this.iteration.names)}}class T extends R{constructor(Y,K,te,q){super(),this.varKind=Y,this.name=K,this.from=te,this.to=q}render(Y){const K=Y.es5?d.varKinds.var:this.varKind,{name:te,from:q,to:Oe}=this;return`for(${K} ${te}=${q}; ${te}<${Oe}; ${te}++)`+super.render(Y)}get names(){const Y=oe(super.names,this.from);return oe(Y,this.to)}}class D extends R{constructor(Y,K,te,q){super(),this.loop=Y,this.varKind=K,this.name=te,this.iterable=q}render(Y){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(Y)}optimizeNames(Y,K){if(super.optimizeNames(Y,K))return this.iterable=pe(this.iterable,Y,K),this}get names(){return ue(super.names,this.iterable.names)}}class U extends x{constructor(Y,K,te){super(),this.name=Y,this.args=K,this.async=te}render(Y){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Y)}}U.kind="func";class M extends E{render(Y){return"return "+super.render(Y)}}M.kind="return";class V extends x{render(Y){let K="try"+super.render(Y);return this.catch&&(K+=this.catch.render(Y)),this.finally&&(K+=this.finally.render(Y)),K}optimizeNodes(){var Y,K;return super.optimizeNodes(),(Y=this.catch)===null||Y===void 0||Y.optimizeNodes(),(K=this.finally)===null||K===void 0||K.optimizeNodes(),this}optimizeNames(Y,K){var te,q;return super.optimizeNames(Y,K),(te=this.catch)===null||te===void 0||te.optimizeNames(Y,K),(q=this.finally)===null||q===void 0||q.optimizeNames(Y,K),this}get names(){const Y=super.names;return this.catch&&ue(Y,this.catch.names),this.finally&&ue(Y,this.finally.names),Y}}class B extends x{constructor(Y){super(),this.error=Y}render(Y){return`catch(${this.error})`+super.render(Y)}}B.kind="catch";class re extends x{render(Y){return"finally"+super.render(Y)}}re.kind="finally";class ne{constructor(Y,K={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...K,_n:K.lines?`
|
|
7
7
|
`:""},this._extScope=Y,this._scope=new d.Scope({parent:Y}),this._nodes=[new o]}toString(){return this._root.render(this.opts)}name(Y){return this._scope.name(Y)}scopeName(Y){return this._extScope.name(Y)}scopeValue(Y,K){const te=this._extScope.value(Y,K);return(this._values[te.prefix]||(this._values[te.prefix]=new Set)).add(te),te}getScopeValue(Y,K){return this._extScope.getValue(Y,K)}scopeRefs(Y){return this._extScope.scopeRefs(Y,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(Y,K,te,q){const Oe=this._scope.toName(K);return te!==void 0&&q&&(this._constants[Oe.str]=te),this._leafNode(new v(Y,Oe,te)),Oe}const(Y,K,te){return this._def(d.varKinds.const,Y,K,te)}let(Y,K,te){return this._def(d.varKinds.let,Y,K,te)}var(Y,K,te){return this._def(d.varKinds.var,Y,K,te)}assign(Y,K,te){return this._leafNode(new f(Y,K,te))}add(Y,K){return this._leafNode(new C(Y,t.operators.ADD,K))}code(Y){return typeof Y=="function"?Y():Y!==n.nil&&this._leafNode(new I(Y)),this}object(...Y){const K=["{"];for(const[te,q]of Y)K.length>1&&K.push(","),K.push(te),(te!==q||this.opts.es5)&&(K.push(":"),(0,n.addCodeArg)(K,q));return K.push("}"),new n._Code(K)}if(Y,K,te){if(this._blockNode(new l(Y)),K&&te)this.code(K).else().code(te).endIf();else if(K)this.code(K).endIf();else if(te)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(Y){return this._elseNode(new l(Y))}else(){return this._elseNode(new a)}endIf(){return this._endBlockNode(l,a)}_for(Y,K){return this._blockNode(Y),K&&this.code(K).endFor(),this}for(Y,K){return this._for(new b(Y),K)}forRange(Y,K,te,q,Oe=this.opts.es5?d.varKinds.var:d.varKinds.let){const me=this._scope.toName(Y);return this._for(new T(Oe,me,K,te),()=>q(me))}forOf(Y,K,te,q=d.varKinds.const){const Oe=this._scope.toName(Y);if(this.opts.es5){const me=K instanceof n.Name?K:this.var("_arr",K);return this.forRange("_i",0,(0,n._)`${me}.length`,De=>{this.var(Oe,(0,n._)`${me}[${De}]`),te(Oe)})}return this._for(new D("of",q,Oe,K),()=>te(Oe))}forIn(Y,K,te,q=this.opts.es5?d.varKinds.var:d.varKinds.const){if(this.opts.ownProperties)return this.forOf(Y,(0,n._)`Object.keys(${K})`,te);const Oe=this._scope.toName(Y);return this._for(new D("in",q,Oe,K),()=>te(Oe))}endFor(){return this._endBlockNode(R)}label(Y){return this._leafNode(new y(Y))}break(Y){return this._leafNode(new S(Y))}return(Y){const K=new M;if(this._blockNode(K),this.code(Y),K.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(M)}try(Y,K,te){if(!K&&!te)throw new Error('CodeGen: "try" without "catch" and "finally"');const q=new V;if(this._blockNode(q),this.code(Y),K){const Oe=this.name("e");this._currNode=q.catch=new B(Oe),K(Oe)}return te&&(this._currNode=q.finally=new re,this.code(te)),this._endBlockNode(B,re)}throw(Y){return this._leafNode(new P(Y))}block(Y,K){return this._blockStarts.push(this._nodes.length),Y&&this.code(Y).endBlock(K),this}endBlock(Y){const K=this._blockStarts.pop();if(K===void 0)throw new Error("CodeGen: not in self-balancing block");const te=this._nodes.length-K;if(te<0||Y!==void 0&&te!==Y)throw new Error(`CodeGen: wrong number of nodes: ${te} vs ${Y} expected`);return this._nodes.length=K,this}func(Y,K=n.nil,te,q){return this._blockNode(new U(Y,K,te)),q&&this.code(q).endFunc(),this}endFunc(){return this._endBlockNode(U)}optimize(Y=1){for(;Y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(Y){return this._currNode.nodes.push(Y),this}_blockNode(Y){this._currNode.nodes.push(Y),this._nodes.push(Y)}_endBlockNode(Y,K){const te=this._currNode;if(te instanceof Y||K&&te instanceof K)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${K?`${Y.kind}/${K.kind}`:Y.kind}"`)}_elseNode(Y){const K=this._currNode;if(!(K instanceof l))throw new Error('CodeGen: "else" without "if"');return this._currNode=K.else=Y,this}get _root(){return this._nodes[0]}get _currNode(){const Y=this._nodes;return Y[Y.length-1]}set _currNode(Y){const K=this._nodes;K[K.length-1]=Y}}t.CodeGen=ne;function ue(G,Y){for(const K in Y)G[K]=(G[K]||0)+(Y[K]||0);return G}function oe(G,Y){return Y instanceof n._CodeOrName?ue(G,Y.names):G}function pe(G,Y,K){if(G instanceof n.Name)return te(G);if(!q(G))return G;return new n._Code(G._items.reduce((Oe,me)=>(me instanceof n.Name&&(me=te(me)),me instanceof n._Code?Oe.push(...me._items):Oe.push(me),Oe),[]));function te(Oe){const me=K[Oe.str];return me===void 0||Y[Oe.str]!==1?Oe:(delete Y[Oe.str],me)}function q(Oe){return Oe instanceof n._Code&&Oe._items.some(me=>me instanceof n.Name&&Y[me.str]===1&&K[me.str]!==void 0)}}function Re(G,Y){for(const K in Y)G[K]=(G[K]||0)-(Y[K]||0)}function Ae(G){return typeof G=="boolean"||typeof G=="number"||G===null?!G:(0,n._)`!${W(G)}`}const ve=H(t.operators.AND);function xe(...G){return G.reduce(ve)}const be=H(t.operators.OR);function Z(...G){return G.reduce(be)}function H(G){return(Y,K)=>Y===n.nil?K:K===n.nil?Y:(0,n._)`${W(Y)} ${G} ${W(K)}`}function W(G){return G instanceof n.Name?G:(0,n._)`(${G})`}},34863:(g,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(76202);class d extends Error{constructor(y){super(`CodeGen: "code" for ${y} not defined`),this.value=y.value}}var u;(function(C){C[C.Started=0]="Started",C[C.Completed=1]="Completed"})(u||(t.UsedValueState=u={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class O{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=O;class p 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=p;const v=(0,n._)`\n`;class f extends O{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 p(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 I=this.toName(y),{prefix:E}=I,x=(P=S.key)!==null&&P!==void 0?P:S.ref;let o=this._values[E];if(o){const R=o.get(x);if(R)return R}else o=this._values[E]=new Map;o.set(x,I);const a=this._scope[E]||(this._scope[E]=[]),l=a.length;return a[l]=S.ref,I.setValue(S,{property:E,itemIndex:l}),I}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,I=>{if(I.value===void 0)throw new Error(`CodeGen: name "${I}" has no value`);return I.value.code},S,P)}_reduceValues(y,S,P={},I){let E=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,u.Started);let R=S(l);if(R){const b=this.opts.es5?t.varKinds.var:t.varKinds.const;E=(0,n._)`${E}${b} ${l} = ${R};${this.opts._n}`}else if(R=I?.(l))E=(0,n._)`${E}${R}${this.opts._n}`;else throw new d(l);a.set(l,u.Completed)})}return E}}t.ValueScope=f},39054:(g,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyword$DataError=t.keywordError=void 0,t.reportError=O,t.reportExtraError=p,t.resetErrorsCount=v,t.extendErrors=f;const n=e(57287),d=e(977),u=e(5057);t.keywordError={message:({keyword:a})=>(0,n.str)`must pass "${a}" keyword validation`},t.keyword$DataError={message:({keyword:a,schemaType:l})=>l?(0,n.str)`"${a}" keyword must be ${l} ($data)`:(0,n.str)`"${a}" keyword is invalid ($data)`};function O(a,l=t.keywordError,R,b){const{it:T}=a,{gen:D,compositeRule:U,allErrors:M}=T,V=P(a,l,R);b??(U||M)?C(D,V):y(T,(0,n._)`[${V}]`)}function p(a,l=t.keywordError,R){const{it:b}=a,{gen:T,compositeRule:D,allErrors:U}=b,M=P(a,l,R);C(T,M),D||U||y(b,u.default.vErrors)}function v(a,l){a.assign(u.default.errors,l),a.if((0,n._)`${u.default.vErrors} !== null`,()=>a.if(l,()=>a.assign((0,n._)`${u.default.vErrors}.length`,l),()=>a.assign(u.default.vErrors,null)))}function f({gen:a,keyword:l,schemaValue:R,data:b,errsCount:T,it:D}){if(T===void 0)throw new Error("ajv implementation error");const U=a.name("err");a.forRange("i",T,u.default.errors,M=>{a.const(U,(0,n._)`${u.default.vErrors}[${M}]`),a.if((0,n._)`${U}.instancePath === undefined`,()=>a.assign((0,n._)`${U}.instancePath`,(0,n.strConcat)(u.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`,b))})}function C(a,l){const R=a.const("err",l);a.if((0,n._)`${u.default.vErrors} === null`,()=>a.assign(u.default.vErrors,(0,n._)`[${R}]`),(0,n._)`${u.default.vErrors}.push(${R})`),a.code((0,n._)`${u.default.errors}++`)}function y(a,l){const{gen:R,validateName:b,schemaEnv:T}=a;T.$async?R.throw((0,n._)`new ${a.ValidationError}(${l})`):(R.assign((0,n._)`${b}.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:b}=a.it;return b===!1?(0,n._)`{}`:I(a,l,R)}function I(a,l,R={}){const{gen:b,it:T}=a,D=[E(T,R),x(a,R)];return o(a,l,D),b.object(...D)}function E({errorPath:a},{instancePath:l}){const R=l?(0,n.str)`${a}${(0,d.getErrorPath)(l,d.Type.Str)}`:a;return[u.default.instancePath,(0,n.strConcat)(u.default.instancePath,R)]}function x({keyword:a,it:{errSchemaPath:l}},{schemaPath:R,parentSchema:b}){let T=b?l:(0,n.str)`${l}/${a}`;return R&&(T=(0,n.str)`${T}${(0,d.getErrorPath)(R,d.Type.Str)}`),[S.schemaPath,T]}function o(a,{params:l,message:R},b){const{keyword:T,data:D,schemaValue:U,it:M}=a,{opts:V,propertyName:B,topSchemaRef:re,schemaPath:ne}=M;b.push([S.keyword,T],[S.params,typeof l=="function"?l(a):l||(0,n._)`{}`]),V.messages&&b.push([S.message,typeof R=="function"?R(a):R]),V.verbose&&b.push([S.schema,U],[S.parentSchema,(0,n._)`${re}${ne}`],[u.default.data,D]),B&&b.push([S.propertyName,B])}},65545:(g,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaEnv=void 0,t.compileSchema=C,t.resolveRef=y,t.getCompilingSchema=P,t.resolveSchema=x;const n=e(57287),d=e(84012),u=e(5057),O=e(95421),p=e(977),v=e(9804);class f{constructor(R){var b;this.refs={},this.dynamicAnchors={};let T;typeof R.schema=="object"&&(T=R.schema),this.schema=R.schema,this.schemaId=R.schemaId,this.root=R.root||this,this.baseId=(b=R.baseId)!==null&&b!==void 0?b:(0,O.normalizeId)(T?.[R.schemaId||"$id"]),this.schemaPath=R.schemaPath,this.localRefs=R.localRefs,this.meta=R.meta,this.$async=T?.$async,this.refs={}}}t.SchemaEnv=f;function C(l){const R=P.call(this,l);if(R)return R;const b=(0,O.getFullPath)(this.opts.uriResolver,l.root.baseId),{es5:T,lines:D}=this.opts.code,{ownProperties:U}=this.opts,M=new n.CodeGen(this.scope,{es5:T,lines:D,ownProperties:U});let V;l.$async&&(V=M.scopeValue("Error",{ref:d.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`}));const B=M.scopeName("validate");l.validateName=B;const re={gen:M,allErrors:this.opts.allErrors,data:u.default.data,parentData:u.default.parentData,parentDataProperty:u.default.parentDataProperty,dataNames:[u.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:M.scopeValue("schema",this.opts.code.source===!0?{ref:l.schema,code:(0,n.stringify)(l.schema)}:{ref:l.schema}),validateName:B,ValidationError:V,schema:l.schema,schemaEnv:l,rootId:b,baseId:l.baseId||b,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),M.optimize(this.opts.code.optimize);const ue=M.toString();ne=`const visitedNodesForRef = new WeakMap(); ${M.scopeRefs(u.default.scope)}return ${ue}`,this.opts.code.process&&(ne=this.opts.code.process(ne,l));const pe=new Function(`${u.default.self}`,`${u.default.scope}`,ne)(this,this.scope.get());if(this.scope.value(B,{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:B,validateCode:ue,scopeValues:M._values}),this.opts.unevaluated){const{props:Re,items:Ae}=re;pe.evaluated={props:Re instanceof n.Name?void 0:Re,items:Ae instanceof n.Name?void 0:Ae,dynamicProps:Re instanceof n.Name,dynamicItems:Ae instanceof n.Name},pe.source&&(pe.source.evaluated=(0,n.stringify)(pe.evaluated))}return l.validate=pe,l}catch(ue){throw delete l.validate,delete l.validateName,ne&&this.logger.error("Error compiling schema, function code:",ne),ue}finally{this._compilations.delete(l)}}function y(l,R,b){var T;const D=(0,O.resolveUrl)(this.opts.uriResolver,R,b),U=l.refs[D];if(U)return U;let M=E.call(this,l,D);if(M===void 0){const V=(T=l.localRefs)===null||T===void 0?void 0:T[D],{schemaId:B}=this.opts;V&&(M=new f({schema:V,schemaId:B,root:l,baseId:R}))}if(M===void 0&&this.opts.loadSchemaSync){const V=this.opts.loadSchemaSync(R,b,D);V&&!(this.refs[D]||this.schemas[D])&&(this.addSchema(V,D,void 0),M=E.call(this,l,D))}if(M!==void 0)return l.refs[D]=S.call(this,M)}function S(l){return(0,O.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(I(R,l))return R}function I(l,R){return l.schema===R.schema&&l.root===R.root&&l.baseId===R.baseId}function E(l,R){let b;for(;typeof(b=this.refs[R])=="string";)R=b;return b||this.schemas[R]||x.call(this,l,R)}function x(l,R){const b=this.opts.uriResolver.parse(R),T=(0,O._getFullPath)(this.opts.uriResolver,b);let D=(0,O.getFullPath)(this.opts.uriResolver,l.baseId,void 0);if(Object.keys(l.schema).length>0&&T===D)return a.call(this,b,l);const U=(0,O.normalizeId)(T),M=this.refs[U]||this.schemas[U];if(typeof M=="string"){const V=x.call(this,l,M);return typeof V?.schema!="object"?void 0:a.call(this,b,V)}if(typeof M?.schema=="object"){if(M.validate||C.call(this,M),U===(0,O.normalizeId)(R)){const{schema:V}=M,{schemaId:B}=this.opts,re=V[B];return re&&(D=(0,O.resolveUrl)(this.opts.uriResolver,D,re)),new f({schema:V,schemaId:B,root:l,baseId:D})}return a.call(this,b,M)}}const o=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function a(l,{baseId:R,schema:b,root:T}){var D;if(((D=l.fragment)===null||D===void 0?void 0:D[0])!=="/")return;for(const V of l.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const B=b[(0,p.unescapeFragment)(V)];if(B===void 0)return;b=B;const re=typeof b=="object"&&b[this.opts.schemaId];!o.has(V)&&re&&(R=(0,O.resolveUrl)(this.opts.uriResolver,R,re))}let U;if(typeof b!="boolean"&&b.$ref&&!(0,p.schemaHasRulesButRef)(b,this.RULES)){const V=(0,O.resolveUrl)(this.opts.uriResolver,R,b.$ref);U=x.call(this,T,V)}const{schemaId:M}=this.opts;if(U=U||new f({schema:b,schemaId:M,root:T,baseId:R}),U.schema!==U.root.schema)return U}},5057:(g,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(57287),d={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=d},78805:(g,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(95421);class d extends Error{constructor(O,p,v,f){super(f||`can't resolve reference ${v} from id ${p}`),this.missingRef=(0,n.resolveUrl)(O,p,v),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(O,this.missingRef))}}t.default=d},95421:(g,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inlineRef=p,t.getFullPath=y,t._getFullPath=S,t.normalizeId=I,t.resolveUrl=E,t.getSchemaRefs=o;const n=e(977),d=e(67371),u=e(50205),O=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function p(a,l=!0){return typeof a=="boolean"?!0:l===!0?!f(a):l?C(a)<=l:!1}const v=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function f(a){for(const l in a){if(v.has(l))return!0;const R=a[l];if(Array.isArray(R)&&R.some(f)||typeof R=="object"&&f(R))return!0}return!1}function C(a){let l=0;for(const R in a){if(R==="$ref")return 1/0;if(l++,!O.has(R)&&(typeof a[R]=="object"&&(0,n.eachItem)(a[R],b=>l+=C(b)),l===1/0))return 1/0}return l}function y(a,l="",R){R!==!1&&(l=I(l));const b=a.parse(l);return S(a,b)}function S(a,l){return a.serialize(l).split("#")[0]+"#"}const P=/#\/?$/;function I(a){return a?a.replace(P,""):""}function E(a,l,R){return R=I(R),a.resolve(l,R)}const x=/^[a-z_][-a-z0-9._]*$/i;function o(a,l){if(typeof a=="boolean")return{};const{schemaId:R,uriResolver:b}=this.opts,T=I(a[R]||l),D={"":T},U=y(b,T,!1),M={},V=new Set;return u(a,{allKeys:!0},(ne,ue,oe,pe)=>{if(pe===void 0)return;const Re=U+ue;let Ae=D[pe];typeof ne[R]=="string"&&(Ae=ve.call(this,ne[R])),xe.call(this,ne.$anchor),xe.call(this,ne.$dynamicAnchor),D[ue]=Ae;function ve(be){const Z=this.opts.uriResolver.resolve;if(be=I(Ae?Z(Ae,be):be),V.has(be))throw re(be);V.add(be);let H=this.refs[be];return typeof H=="string"&&(H=this.refs[H]),typeof H=="object"?B(ne,H.schema,be):be!==I(Re)&&(be[0]==="#"?(B(ne,M[be],be),M[be]=ne):this.refs[be]=Re),be}function xe(be){if(typeof be=="string"){if(!x.test(be))throw new Error(`invalid anchor "${be}"`);ve.call(this,`#${be}`)}}}),M;function B(ne,ue,oe){if(ue!==void 0&&!d(ne,ue))throw re(oe)}function re(ne){return new Error(`reference "${ne}" resolves to more than one schema`)}}},68561:(g,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJSONType=d,t.getRules=u;const e=["string","number","integer","boolean","null","object","array"],n=new Set(e);function d(O){return typeof O=="string"&&n.has(O)}function u(){const O={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...O,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},O.number,O.string,O.array,O.object],post:{rules:[]},all:{},keywords:{}}}},977:(g,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.mergeEvaluated=void 0,t.toHash=u,t.alwaysValidSchema=O,t.checkUnknownRules=p,t.schemaHasRules=v,t.schemaHasRulesButRef=f,t.schemaRefOrVal=C,t.unescapeFragment=y,t.escapeFragment=S,t.escapeJsonPointer=P,t.unescapeJsonPointer=I,t.eachItem=E,t.evaluatedPropsToName=o,t.setEvaluated=a,t.useFunc=R,t.getErrorPath=T,t.checkStrictMode=D;const n=e(57287),d=e(76202);function u(U){const M={};for(const V of U)M[V]=!0;return M}function O(U,M){return typeof M=="boolean"?M:Object.keys(M).length===0?!0:(p(U,M),!v(M,U.self.RULES.all))}function p(U,M=U.schema){const{opts:V,self:B}=U;if(!V.strictSchema||typeof M=="boolean")return;const re=B.RULES.keywords;for(const ne in M)re[ne]||D(U,`unknown keyword: "${ne}"`)}function v(U,M){if(typeof U=="boolean")return!U;for(const V in U)if(M[V])return!0;return!1}function f(U,M){if(typeof U=="boolean")return!U;for(const V in U)if(V!=="$ref"&&M.all[V])return!0;return!1}function C({topSchemaRef:U,schemaPath:M},V,B,re){if(!re){if(typeof V=="number"||typeof V=="boolean")return V;if(typeof V=="string")return(0,n._)`${V}`}return(0,n._)`${U}${M}${(0,n.getProperty)(B)}`}function y(U){return I(decodeURIComponent(U))}function S(U){return encodeURIComponent(P(U))}function P(U){return typeof U=="number"?`${U}`:U.replace(/~/g,"~0").replace(/\//g,"~1")}function I(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")}function E(U,M){if(Array.isArray(U))for(const V of U)M(V);else M(U)}function x({mergeNames:U,mergeToName:M,mergeValues:V,resultToName:B}){return(re,ne,ue,oe)=>{const pe=ue===void 0?ne:ue instanceof n.Name?(ne instanceof n.Name?U(re,ne,ue):M(re,ne,ue),ue):ne instanceof n.Name?(M(re,ue,ne),ne):V(ne,ue);return oe===n.Name&&!(pe instanceof n.Name)?B(re,pe):pe}}t.mergeEvaluated={props:x({mergeNames:(U,M,V)=>U.if((0,n._)`${V} !== true && ${M} !== undefined`,()=>{U.if((0,n._)`${M} === true`,()=>U.assign(V,!0),()=>U.assign(V,(0,n._)`${V} || {}`).code((0,n._)`Object.assign(${V}, ${M})`))}),mergeToName:(U,M,V)=>U.if((0,n._)`${V} !== true`,()=>{M===!0?U.assign(V,!0):(U.assign(V,(0,n._)`${V} || {}`),a(U,V,M))}),mergeValues:(U,M)=>U===!0?!0:{...U,...M},resultToName:o}),items:x({mergeNames:(U,M,V)=>U.if((0,n._)`${V} !== true && ${M} !== undefined`,()=>U.assign(V,(0,n._)`${M} === true ? true : ${V} > ${M} ? ${V} : ${M}`)),mergeToName:(U,M,V)=>U.if((0,n._)`${V} !== true`,()=>U.assign(V,M===!0?!0:(0,n._)`${V} > ${M} ? ${V} : ${M}`)),mergeValues:(U,M)=>U===!0?!0:Math.max(U,M),resultToName:(U,M)=>U.var("items",M)})};function o(U,M){if(M===!0)return U.var("props",!0);const V=U.var("props",(0,n._)`{}`);return M!==void 0&&a(U,V,M),V}function a(U,M,V){Object.keys(V).forEach(B=>U.assign((0,n._)`${M}${(0,n.getProperty)(B)}`,!0))}const l={};function R(U,M){return U.scopeValue("func",{ref:M,code:l[M.code]||(l[M.code]=new d._Code(M.code))})}var b;(function(U){U[U.Num=0]="Num",U[U.Str=1]="Str"})(b||(t.Type=b={}));function T(U,M,V){if(U instanceof n.Name){const B=M===b.Num;return V?B?(0,n._)`"[" + ${U} + "]"`:(0,n._)`"['" + ${U} + "']"`:B?(0,n._)`"/" + ${U}`:(0,n._)`"/" + ${U}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return V?(0,n.getProperty)(U).toString():"/"+P(U)}function D(U,M,V=U.opts.strictSchema){if(V){if(M=`strict mode: ${M}`,V===!0)throw new Error(M);U.self.logger.warn(M)}}},5413:(g,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schemaHasRulesForType=e,t.shouldUseGroup=n,t.shouldUseRule=d;function e({schema:u,self:O},p){const v=O.RULES.types[p];return v&&v!==!0&&n(u,v)}function n(u,O){return O.rules.some(p=>d(u,p))}function d(u,O){var p;return u[O.keyword]!==void 0||((p=O.definition.implements)===null||p===void 0?void 0:p.some(v=>u[v]!==void 0))}},98213:(g,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.topBoolOrEmptySchema=p,t.boolOrEmptySchema=v;const n=e(39054),d=e(57287),u=e(5057),O={message:"boolean schema is false"};function p(C){const{gen:y,schema:S,validateName:P}=C;S===!1?f(C,!1):typeof S=="object"&&S.$async===!0?y.return(u.default.data):(y.assign((0,d._)`${P}.errors`,null),y.return(!0))}function v(C,y){const{gen:S,schema:P}=C;P===!1?(S.var(y,!1),f(C)):S.var(y,!0)}function f(C,y){const{gen:S,data:P}=C,I={gen:S,keyword:"false schema",data:P,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:C};(0,n.reportError)(I,O,void 0,y)}},41434:(g,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataType=void 0,t.getSchemaTypes=f,t.getJSONTypes=C,t.coerceAndCheckDataType=y,t.checkDataType=x,t.checkDataTypes=o,t.reportTypeError=l;const n=e(68561),d=e(5413),u=e(39054),O=e(57287),p=e(977);var v;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(v||(t.DataType=v={}));function f(b){const T=C(b.type);if(T.includes("null")){if(b.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!T.length&&b.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');b.nullable===!0&&T.push("null")}return T}function C(b){const T=Array.isArray(b)?b:b?[b]:[];if(T.every(n.isJSONType))return T;throw new Error("type must be JSONType or JSONType[]: "+T.join(","))}function y(b,T){const{gen:D,data:U,opts:M}=b,V=P(T,M.coerceTypes),B=T.length>0&&!(V.length===0&&T.length===1&&(0,d.schemaHasRulesForType)(b,T[0]));if(B){const re=o(T,U,M.strictNumbers,v.Wrong);D.if(re,()=>{V.length?I(b,T,V):l(b)})}return B}const S=new Set(["string","number","integer","boolean","null"]);function P(b,T){return T?b.filter(D=>S.has(D)||T==="array"&&D==="array"):[]}function I(b,T,D){const{gen:U,data:M,opts:V}=b,B=U.let("dataType",(0,O._)`typeof ${M}`),re=U.let("coerced",(0,O._)`undefined`);V.coerceTypes==="array"&&U.if((0,O._)`${B} == 'object' && Array.isArray(${M}) && ${M}.length == 1`,()=>U.assign(M,(0,O._)`${M}[0]`).assign(B,(0,O._)`typeof ${M}`).if(o(T,M,V.strictNumbers),()=>U.assign(re,M))),U.if((0,O._)`${re} !== undefined`);for(const ue of D)(S.has(ue)||ue==="array"&&V.coerceTypes==="array")&&ne(ue);U.else(),l(b),U.endIf(),U.if((0,O._)`${re} !== undefined`,()=>{U.assign(M,re),E(b,re)});function ne(ue){switch(ue){case"string":U.elseIf((0,O._)`${B} == "number" || ${B} == "boolean"`).assign(re,(0,O._)`"" + ${M}`).elseIf((0,O._)`${M} === null`).assign(re,(0,O._)`""`);return;case"number":U.elseIf((0,O._)`${B} == "boolean" || ${M} === null
|
|
8
8
|
|| (${B} == "string" && ${M} && ${M} == +${M})`).assign(re,(0,O._)`+${M}`);return;case"integer":U.elseIf((0,O._)`${B} === "boolean" || ${M} === null
|
|
@@ -8320,15 +8320,15 @@ ${q}`}}const T=K=>Array.isArray(K)&&K.some(te=>(0,d.isObject)(te)),D=K=>K.filter
|
|
|
8320
8320
|
|
|
8321
8321
|
background-color: ${({$variant:ge})=>ge==="ghost"?"transparent":"var(--card-icon-bg-color)"};
|
|
8322
8322
|
border: ${({$variant:ge})=>ge==="ghost"?"none":"1px solid var(--card-icon-border-color)"};
|
|
8323
|
-
`;var ze=e(82817);function tt({title:ge,image:Pe,icon:Be,iconRawContent:ft,imagePosition:Ft="start",layout:At="vertical",variant:dn="filled",lineClamp:an,iconVariant:Cn,align:On="start",to:cr,children:Wn}){const In=`card-title-${ge.replace(/\s+/g,"-").toLowerCase()}`,Gn=On==="center"?"center":On==="end"?"flex-end":"flex-start",er=On==="center"?"center":On==="end"?"flex-end":"flex-start",gn=On==="center"?"center":On==="end"?"right":"left";return Cn=Cn??(dn==="ghost"?"filled":"ghost"),jsx(Ot,{as:cr?Link:"div",to:cr,"aria-labelledby":In
|
|
8323
|
+
`;var ze=e(82817);function tt({title:ge,image:Pe,icon:Be,iconRawContent:ft,imagePosition:Ft="start",layout:At="vertical",variant:dn="filled",lineClamp:an,iconVariant:Cn,align:On="start",to:cr,children:Wn}){const In=`card-title-${ge.replace(/\s+/g,"-").toLowerCase()}`,Gn=On==="center"?"center":On==="end"?"flex-end":"flex-start",er=On==="center"?"center":On==="end"?"flex-end":"flex-start",gn=On==="center"?"center":On==="end"?"right":"left";return Cn=Cn??(dn==="ghost"?"filled":"ghost"),jsx(Ot,{as:cr?Link:"div",to:cr,"aria-labelledby":In,$variant:dn,$layout:At,$isCardLink:!!cr,children:jsxs(Fragment,{children:[Pe?jsx(CardImage,{src:Pe,alt:ge,position:Ft}):null,jsxs(mt,{$layout:At,$alignItems:er,$textAlign:gn,$hasImage:Pe!==void 0,children:[Be&&jsx(CardIcon,{variant:Cn,src:Be,rawContent:ft}),jsxs(Ne,{children:[jsxs(ke,{id:In,$isCardLink:!!cr,$justifyContent:Gn,children:[ge,!!cr&&jsx(it,{})]}),jsx(Pt,{$lineClamp:an,children:Wn})]})]})]})})}const mt=Ae.Ay.div`
|
|
8324
8324
|
display: flex;
|
|
8325
|
-
flex-direction: ${({layout:ge})=>ge==="horizontal"?"row":"column"};
|
|
8325
|
+
flex-direction: ${({$layout:ge})=>ge==="horizontal"?"row":"column"};
|
|
8326
8326
|
gap: var(--card-icon-gap);
|
|
8327
|
-
align-items: ${({alignItems:ge})=>ge};
|
|
8328
|
-
text-align: ${({textAlign:ge})=>ge};
|
|
8327
|
+
align-items: ${({$alignItems:ge})=>ge};
|
|
8328
|
+
text-align: ${({$textAlign:ge})=>ge};
|
|
8329
8329
|
flex-grow: 1;
|
|
8330
8330
|
padding: var(--card-padding);
|
|
8331
|
-
height: ${({hasImage:ge})=>ge?"auto":"100%"};
|
|
8331
|
+
height: ${({$hasImage:ge})=>ge?"auto":"100%"};
|
|
8332
8332
|
`,Ne=Ae.Ay.div`
|
|
8333
8333
|
display: flex;
|
|
8334
8334
|
flex-direction: column;
|
|
@@ -10538,4 +10538,4 @@ Error generating stack: `+ie.message+`
|
|
|
10538
10538
|
`,ng=({pointer:j,schema:w})=>{const{options:N,parser:Ce}=useAtomValue(globalStoreAtom),Ve=w||{$ref:j},ct=getSchema({parser:Ce,schemaOrRef:Ve,pointer:j||"",options:N,deps:{operation:{pointer:"RedocSchema"}}});return jsx(Row,{children:jsx(FullWidthPanel,{children:jsx(Schema,{schema:ct,level:1,disableDeepLinks:!0})})})},rg=({pointer:j,mimeType:w,encoding:N})=>{const Ce=useAtomValue(globalParserAtom),Ve=useAtomValue(layoutAtom),ct=getExamples({parser:Ce,infoOrRef:{$ref:j},mime:w,encoding:N});return jsx(Row,{layout:Ve,children:jsx(ExamplesWrap,{children:jsx(Example,{example:ct,mimeType:w})})})},Lh=b.Ay.div`
|
|
10539
10539
|
padding: 20px;
|
|
10540
10540
|
color: red;
|
|
10541
|
-
`;class og 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,g.jsxs)(Lh,{children:[(0,g.jsx)("h1",{children:"Something went wrong..."}),(0,g.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,g.jsx)("p",{children:(0,g.jsxs)("details",{children:[(0,g.jsx)("summary",{children:"Stack trace"}),(0,g.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,g.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,g.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,g.jsx)(g.Fragment,{children:o.Children.only(this.props.children)})}}var wh=Object.defineProperty,zf=Object.getOwnPropertySymbols,Bh=Object.prototype.hasOwnProperty,$h=Object.prototype.propertyIsEnumerable,Wf=(j,w,N)=>w in j?wh(j,w,{enumerable:!0,configurable:!0,writable:!0,value:N}):j[w]=N,Hf=(j,w)=>{for(var N in w||(w={}))Bh.call(w,N)&&Wf(j,N,w[N]);if(zf)for(var N of zf(w))$h.call(w,N)&&Wf(j,N,w[N]);return j};const Vf=(0,R.JA)(),Fh=Vf?(0,x.dirname)(Vf)+"/":"";function Nh(j){const w={},N=j.attributes;for(let Ce=0;Ce<N.length;Ce++){const Ve=N[Ce];w[Ve.name]=Ve.value}return w}function Uh(j){const w=Nh(j),N={};for(const Ce in w){const Ve=Ce.replace(/-(.)/g,(ct,It)=>It.toUpperCase());N[Ve]=w[Ce]}return N}function zh(j,w=document.querySelector("redoc")){(0,a.c)(w,(0,g.jsx)(Uf,{store:j}))}function Kf(j,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,Ve;typeof j=="string"?Ce=j:typeof j=="object"&&(Ve=j),(0,a.H)(N).render((0,o.createElement)(Mh,{definition:Ve,definitionUrl:Ce,options:Hf(Hf({},w),Uh(N))},["Loading..."]))}function kf(j){gr.p=j}const Wh="3.3.
|
|
10541
|
+
`;class og 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,g.jsxs)(Lh,{children:[(0,g.jsx)("h1",{children:"Something went wrong..."}),(0,g.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,g.jsx)("p",{children:(0,g.jsxs)("details",{children:[(0,g.jsx)("summary",{children:"Stack trace"}),(0,g.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,g.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,g.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,g.jsx)(g.Fragment,{children:o.Children.only(this.props.children)})}}var wh=Object.defineProperty,zf=Object.getOwnPropertySymbols,Bh=Object.prototype.hasOwnProperty,$h=Object.prototype.propertyIsEnumerable,Wf=(j,w,N)=>w in j?wh(j,w,{enumerable:!0,configurable:!0,writable:!0,value:N}):j[w]=N,Hf=(j,w)=>{for(var N in w||(w={}))Bh.call(w,N)&&Wf(j,N,w[N]);if(zf)for(var N of zf(w))$h.call(w,N)&&Wf(j,N,w[N]);return j};const Vf=(0,R.JA)(),Fh=Vf?(0,x.dirname)(Vf)+"/":"";function Nh(j){const w={},N=j.attributes;for(let Ce=0;Ce<N.length;Ce++){const Ve=N[Ce];w[Ve.name]=Ve.value}return w}function Uh(j){const w=Nh(j),N={};for(const Ce in w){const Ve=Ce.replace(/-(.)/g,(ct,It)=>It.toUpperCase());N[Ve]=w[Ce]}return N}function zh(j,w=document.querySelector("redoc")){(0,a.c)(w,(0,g.jsx)(Uf,{store:j}))}function Kf(j,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,Ve;typeof j=="string"?Ce=j:typeof j=="object"&&(Ve=j),(0,a.H)(N).render((0,o.createElement)(Mh,{definition:Ve,definitionUrl:Ce,options:Hf(Hf({},w),Uh(N))},["Loading..."]))}function kf(j){gr.p=j}const Wh="3.3.18",Hh="826bb56";function Vh(){const j=(0,R.iT)("redoc");if(!j)return;const w=j.getAttribute("spec-url");w&&Kf(w,{},j)}l.IS_BROWSER&&kf(Fh),Vh()})(),Sd})());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.18",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"url": "~0.11.0",
|
|
46
46
|
"url-template": "^2.0.8",
|
|
47
47
|
"util": "~0.12.5",
|
|
48
|
-
"@redocly/replay": "0.5.
|
|
48
|
+
"@redocly/replay": "0.5.14",
|
|
49
49
|
"@redocly/config": "0.11.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"webpack": "5.91.0",
|
|
94
94
|
"webpack-cli": "5.1.4",
|
|
95
95
|
"webpack-dev-server": "4.15.2",
|
|
96
|
-
"@redocly/theme": "0.42.
|
|
96
|
+
"@redocly/theme": "0.42.3"
|
|
97
97
|
},
|
|
98
98
|
"scripts": {
|
|
99
99
|
"start": "webpack serve --mode=development --hot",
|