@redocly/cli 2.62.2 → 2.63.0

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.
Files changed (133) hide show
  1. package/lib/chunks/{HYE4U6V5.js → 24AVTWC7.js} +1 -1
  2. package/lib/chunks/{TKLMYBPI.js → 2G2Q42ND.js} +1 -1
  3. package/lib/chunks/{KRCCY64H.js → 3LGZAJES.js} +1 -1
  4. package/lib/chunks/3SFDVGEQ.js +7 -0
  5. package/lib/chunks/{4AM55DEH.js → 4C44BO5N.js} +1 -1
  6. package/lib/chunks/{DS4SCWID.js → 4JKMQCWY.js} +1 -1
  7. package/lib/chunks/{3JYQOGV3.js → 5IIJHGNO.js} +1 -1
  8. package/lib/chunks/{6MH5ZWLD.js → 5VDBZVBF.js} +1 -1
  9. package/lib/chunks/6AB3BDX4.js +20 -0
  10. package/lib/chunks/{LRLGVYCG.js → 6LEQ46KS.js} +1 -1
  11. package/lib/chunks/{2OQM5ARW.js → 6QRNEF7K.js} +1 -1
  12. package/lib/chunks/{PTNNX4IU.js → 6WESXERF.js} +1 -1
  13. package/lib/chunks/{5X35UU2C.js → 7AWM5GPD.js} +1 -1
  14. package/lib/chunks/{CQKQB4PJ.js → 7LNKXEIU.js} +1 -1
  15. package/lib/chunks/{FDGP3ZYZ.js → 7RQW6KPZ.js} +156 -58
  16. package/lib/chunks/{SLQPKXO2.js → A22GELRX.js} +1 -1
  17. package/lib/chunks/{HUWKDZPP.js → AAPHKNGA.js} +1 -1
  18. package/lib/chunks/{22EANOP2.js → ACMV5RZA.js} +1 -1
  19. package/lib/chunks/AU7VOB4V.js +20 -0
  20. package/lib/chunks/{2OBVZIAW.js → B4ONRSDG.js} +3 -3
  21. package/lib/chunks/BC3XCWQE.js +11 -0
  22. package/lib/chunks/{VXONEXYX.js → BFIZTFWS.js} +1 -1
  23. package/lib/chunks/{HWTYAU4Y.js → BS3AUVYD.js} +1 -1
  24. package/lib/chunks/{ZCVUIIPU.js → C2OCU4E3.js} +1 -1
  25. package/lib/chunks/{US7X4XPD.js → CQMZF72H.js} +1 -1
  26. package/lib/chunks/{3C6UUCEW.js → CTPVBOG5.js} +1 -1
  27. package/lib/chunks/{3JYY42DL.js → CVUPOCX4.js} +1 -1
  28. package/lib/chunks/{FDMXHRDK.js → DEXQ6S3P.js} +1 -1
  29. package/lib/chunks/{RPHIT72T.js → DQFNUDOT.js} +1 -1
  30. package/lib/chunks/{7WM6VLB3.js → E2D25T4G.js} +1 -1
  31. package/lib/chunks/{4OEXH5EV.js → FCZH3476.js} +1 -1
  32. package/lib/chunks/{7WTV5KH3.js → FRM6TZ42.js} +1 -1
  33. package/lib/chunks/{3WHXM4DJ.js → HTG3RKCV.js} +1 -1
  34. package/lib/chunks/{M3XPS7UF.js → HW7ZCN7J.js} +1 -1
  35. package/lib/chunks/{I5CGSLGR.js → I3M476SQ.js} +1 -1
  36. package/lib/chunks/{KOR5TUJG.js → IODGA6FG.js} +1 -1
  37. package/lib/chunks/{WX24BERR.js → ITUUIAOZ.js} +1 -1
  38. package/lib/chunks/{CIDSJFJO.js → IYKYAJDC.js} +1 -1
  39. package/lib/chunks/{XFBJHVYU.js → J373CXCH.js} +1 -1
  40. package/lib/chunks/{JLVGRO3I.js → J7J4PH3V.js} +7 -7
  41. package/lib/chunks/{IUSSBOYO.js → JGBWIR5U.js} +1 -1
  42. package/lib/chunks/{S6NFOZ34.js → JHK6XIMG.js} +1 -1
  43. package/lib/chunks/{YDVWNFMS.js → KMP5ZE2D.js} +1 -1
  44. package/lib/chunks/{6EGJEFXO.js → L2EBKZQZ.js} +1 -1
  45. package/lib/chunks/{SHZZKTDE.js → LLWU7A5G.js} +1 -1
  46. package/lib/chunks/{LVGVWPDB.js → LXSCIQFU.js} +1 -1
  47. package/lib/chunks/{5PG3ST2N.js → NCBLLIQ3.js} +2 -2
  48. package/lib/chunks/{73RBZL53.js → NERCHMVY.js} +1 -1
  49. package/lib/chunks/{XJE2OFDN.js → NR3R4HFM.js} +45 -18
  50. package/lib/chunks/{ENSYM7KY.js → OFJ2KV5N.js} +1 -1
  51. package/lib/chunks/{6WZUCZGV.js → OYUXHAGQ.js} +1 -1
  52. package/lib/chunks/{37WWN4MA.js → PHWKGYUT.js} +1 -1
  53. package/lib/chunks/{6NB3FKVN.js → Q4UGLPO2.js} +1 -1
  54. package/lib/chunks/{36IHQANV.js → QNCKZURN.js} +1 -1
  55. package/lib/chunks/{GWXT3QO6.js → RFGNVCAR.js} +2 -2
  56. package/lib/chunks/{HBENVUR4.js → SXIFTBZB.js} +1 -1
  57. package/lib/chunks/{XJTGJYVS.js → TCALQAX5.js} +1 -1
  58. package/lib/chunks/{TBZEEKTV.js → U52CY34I.js} +1 -1
  59. package/lib/chunks/VB4PNWOR.js +7 -0
  60. package/lib/chunks/{SYWAPWW7.js → VSBSD3XZ.js} +1 -1
  61. package/lib/chunks/{V3ILUN2S.js → WV2NAII3.js} +1 -1
  62. package/lib/chunks/{3FXYWWTJ.js → X2V5QOZP.js} +1 -1
  63. package/lib/chunks/{SXBAAS4M.js → XNNK5G6V.js} +1 -1
  64. package/lib/chunks/Y4UTXOI2.js +59 -0
  65. package/lib/chunks/{6DO6IN4A.js → YKST56C6.js} +1 -1
  66. package/lib/chunks/{2XK7ML3U.js → YXH72HCU.js} +1 -1
  67. package/lib/chunks/{MNH2K4WM.js → Z52TEGV5.js} +1 -1
  68. package/lib/chunks/{3DEJQSYG.js → Z5QYTPVY.js} +1 -1
  69. package/lib/chunks/{OP7NIAI7.js → Z7J6WWCO.js} +1 -1
  70. package/lib/chunks/{2OVI7BIW.js → ZK27F53P.js} +1 -1
  71. package/lib/chunks/{V2YF33JL.js → ZP54RCIQ.js} +1 -1
  72. package/lib/eject-assets/generators/cli/docs.ts +1 -1
  73. package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
  74. package/lib/eject-assets/generators/cli/index.ts +2 -2
  75. package/lib/eject-assets/generators/cli/render.ts +1 -1
  76. package/lib/eject-assets/generators/go/client.ts +1 -1
  77. package/lib/eject-assets/generators/go/descriptor.ts +2 -1
  78. package/lib/eject-assets/generators/go/index.ts +2 -2
  79. package/lib/eject-assets/generators/go/models.ts +1 -1
  80. package/lib/eject-assets/generators/go/naming.ts +1 -1
  81. package/lib/eject-assets/generators/go/operations.ts +1 -1
  82. package/lib/eject-assets/generators/go/pagination.ts +1 -1
  83. package/lib/eject-assets/generators/go/types.ts +1 -1
  84. package/lib/eject-assets/generators/mock/faker.ts +1 -1
  85. package/lib/eject-assets/generators/mock/index.ts +2 -2
  86. package/lib/eject-assets/generators/mock/render.ts +1 -1
  87. package/lib/eject-assets/generators/mock/sample.ts +1 -1
  88. package/lib/eject-assets/generators/mock/values.ts +1 -1
  89. package/lib/eject-assets/generators/php/client.ts +1 -1
  90. package/lib/eject-assets/generators/php/descriptor.ts +2 -1
  91. package/lib/eject-assets/generators/php/index.ts +2 -2
  92. package/lib/eject-assets/generators/php/models.ts +1 -1
  93. package/lib/eject-assets/generators/php/naming.ts +1 -1
  94. package/lib/eject-assets/generators/php/operations.ts +1 -1
  95. package/lib/eject-assets/generators/php/pagination.ts +1 -1
  96. package/lib/eject-assets/generators/php/types.ts +1 -1
  97. package/lib/eject-assets/generators/python/client.ts +1 -1
  98. package/lib/eject-assets/generators/python/descriptor.ts +2 -1
  99. package/lib/eject-assets/generators/python/index.ts +2 -2
  100. package/lib/eject-assets/generators/python/models.ts +1 -1
  101. package/lib/eject-assets/generators/python/naming.ts +1 -1
  102. package/lib/eject-assets/generators/python/operations.ts +1 -1
  103. package/lib/eject-assets/generators/python/pagination.ts +1 -1
  104. package/lib/eject-assets/generators/python/types.ts +1 -1
  105. package/lib/eject-assets/generators/swr/index.ts +2 -2
  106. package/lib/eject-assets/generators/swr/render.ts +1 -1
  107. package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
  108. package/lib/eject-assets/generators/tanstack-query/render.ts +56 -9
  109. package/lib/eject-assets/generators/transformers/index.ts +2 -2
  110. package/lib/eject-assets/generators/transformers/render.ts +1 -1
  111. package/lib/eject-assets/generators/typescript/banner.ts +1 -1
  112. package/lib/eject-assets/generators/typescript/client.ts +1 -1
  113. package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
  114. package/lib/eject-assets/generators/typescript/index.ts +2 -2
  115. package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
  116. package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
  117. package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
  118. package/lib/eject-assets/generators/typescript/operations.ts +1 -1
  119. package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
  120. package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
  121. package/lib/eject-assets/generators/typescript/types.ts +1 -1
  122. package/lib/eject-assets/generators/zod/index.ts +2 -2
  123. package/lib/eject-assets/generators/zod/schemas.ts +1 -1
  124. package/lib/eject-assets/skills/tanstack-query-generator/SKILL.md +5 -2
  125. package/lib/eject-assets/skills/typescript-generator/SKILL.md +5 -0
  126. package/lib/index.js +5 -5
  127. package/package.json +1 -1
  128. package/lib/chunks/5SIJI5LC.js +0 -42
  129. package/lib/chunks/EDQ6QRIB.js +0 -20
  130. package/lib/chunks/LCFG5N4V.js +0 -7
  131. package/lib/chunks/PWGFZ5ZK.js +0 -7
  132. package/lib/chunks/RU7T4CKG.js +0 -11
  133. package/lib/chunks/Z6GHMX6Z.js +0 -20
@@ -119,7 +119,7 @@ ${" ".repeat(e.indent*t)}`}function SU(e,t,r,n,o,i){return{node:t,parent:r,level
119
119
  `;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return d.slice(1)}},r0=function(d,g){return g},sC=function(d,g){return g.length===0?d:{type:"LogicalOrExpr",left:d,right:g.length===1?g[0]:g.slice(1).reduce((_,R)=>({type:"LogicalOrExpr",left:_,right:R}),g[0])}},n0=function(d,g){return g},aC=function(d,g){return[d,...g]},cC=function(d){return d.length===1?d[0]:{type:"LogicalAndExpr",left:d[0],right:d.length===2?d[1]:d.slice(2).reduce((g,_)=>({type:"LogicalOrExpr",left:g,right:_}),d[1])}},pC=function(){return String.fromCharCode(Number.parseInt(RC(),16))},lC=function(d,g){return String.fromCharCode(Number.parseInt(d,16))+String.fromCharCode(Number.parseInt(g,16))},uC=function(d){return d},dC=function(d,g){return d!==null?{type:"LogicalNotExpr",expression:g}:g},fC=function(d,g,_){return{type:"ComparisonExpr",left:d,op:g,right:_}},mC=function(d,g){return d!==null?{type:"LogicalNotExpr",expression:{type:"TestExpr",expression:g}}:{type:"TestExpr",expression:g}},hC=function(d){return{type:"FilterQuery",value:d}},o0=function(d,g,_){return _},yC=function(d,g,_){return[g,..._]},gC=function(d,g){return{type:"FunctionExpr",name:d,arguments:g}},vC=function(d){return{type:"Literal",value:d}},bC=function(d){return{type:"RelQuery",segments:d}},xC=function(d){return Number(d)},SC=function(){return!0},wC=function(){return!1},_C=function(){return null},PC=function(d){return{type:"RelSingularQuery",segments:d}},$C=function(d){return{type:"AbsSingularQuery",segments:d}},i0=function(d){return{type:"SingularQuerySegment",node:d}},EC=function(d){return d},AC=function(d){return d},OC=function(d){return d},TC=function(d){return{type:"IndexSelector",selector:d}},v=t.peg$currPos|0,G=v,qi=[{line:1,column:1}],Vr=v,ap=t.peg$maxFailExpected||[],F=t.peg$silentFails|0,la;if(t.startRule){if(!(t.startRule in o))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');i=o[t.startRule]}function RC(){return e.substring(G,v)}function nne(){return G}function one(){return{source:n,start:G,end:v}}function ine(){return ua(G,v)}function sne(d,g){throw g=g!==void 0?g:ua(G,v),a0([IC(d)],e.substring(G,v),g)}function ane(d,g){throw g=g!==void 0?g:ua(G,v),CC(d,g)}function Fe(d,g){return{type:"literal",text:d,ignoreCase:g}}function ht(d,g,_){return{type:"class",parts:d,inverted:g,ignoreCase:_}}function cne(){return{type:"any"}}function kC(){return{type:"end"}}function IC(d){return{type:"other",description:d}}function s0(d){var g=qi[d],_;if(g)return g;if(d>=qi.length)_=qi.length-1;else for(_=d;!qi[--_];);for(g=qi[_],g={line:g.line,column:g.column};_<d;)e.charCodeAt(_)===10?(g.line++,g.column=1):g.column++,_++;return qi[d]=g,g}function ua(d,g,_){var R=s0(d),C=s0(g),U={source:n,start:{offset:d,line:R.line,column:R.column},end:{offset:g,line:C.line,column:C.column}};return _&&n&&typeof n.offset=="function"&&(U.start=n.offset(U.start),U.end=n.offset(U.end)),U}function L(d){v<Vr||(v>Vr&&(Vr=v,ap=[]),ap.push(d))}function CC(d,g){return new Go(d,null,null,g)}function a0(d,g,_){return new Go(Go.buildMessage(d,g),d,g,_)}function jd(){var d,g,_;return d=v,g=c0(),g!==r?(_=p0(),G=d,d=LI(_)):(v=d,d=r),d}function c0(){var d;return e.charCodeAt(v)===36?(d=s,v++):(d=r,F===0&&L(iI)),d}function p0(){var d,g,_,R;for(d=[],g=v,_=Ee(),R=l0(),R!==r?(G=g,g=e0(R)):(v=g,g=r);g!==r;)d.push(g),g=v,_=Ee(),R=l0(),R!==r?(G=g,g=e0(R)):(v=g,g=r);return d}function Ee(){var d,g;for(d=[],g=u0();g!==r;)d.push(g),g=u0();return d}function l0(){var d;return d=NC(),d===r&&(d=qC()),d}function u0(){var d;return d=e.charAt(v),_e.test(d)?v++:(d=r,F===0&&L(sI)),d}function NC(){var d,g,_,R;return d=v,g=d0(),g===r&&(g=v,e.charCodeAt(v)===46?(_=a,v++):(_=r,F===0&&L(Id)),_!==r?(R=Dd(),R===r&&(R=Md()),R!==r?(G=g,g=FI(R)):(v=g,g=r)):(v=g,g=r)),g!==r&&(G=d,g=UI(g)),d=g,d}function qC(){var d,g,_;return d=v,e.substr(v,2)===c?(g=c,v+=2):(g=r,F===0&&L(aI)),g!==r?(_=d0(),_===r&&(_=Dd(),_===r&&(_=Md())),_!==r?(G=d,d=zI(_)):(v=d,d=r)):(v=d,d=r),d}function d0(){var d,g,_,R,C,U,Q,ve,rt,Er,nr;if(d=v,e.charCodeAt(v)===91?(g=l,v++):(g=r,F===0&&L(Cd)),g!==r){if(_=v,R=Ee(),C=Ld(),C!==r){for(U=[],Q=v,ve=Ee(),e.charCodeAt(v)===44?(rt=p,v++):(rt=r,F===0&&L(op)),rt!==r?(Er=Ee(),nr=Ld(),nr!==r?(G=Q,Q=t0(C,nr)):(v=Q,Q=r)):(v=Q,Q=r);Q!==r;)U.push(Q),Q=v,ve=Ee(),e.charCodeAt(v)===44?(rt=p,v++):(rt=r,F===0&&L(op)),rt!==r?(Er=Ee(),nr=Ld(),nr!==r?(G=Q,Q=t0(C,nr)):(v=Q,Q=r)):(v=Q,Q=r);G=_,_=VI(C,U)}else v=_,_=r;_!==r?(R=Ee(),e.charCodeAt(v)===93?(C=u,v++):(C=r,F===0&&L(Nd)),C!==r?(G=d,d=BI(_)):(v=d,d=r)):(v=d,d=r)}else v=d,d=r;return d}function Dd(){var d,g;return d=v,e.charCodeAt(v)===42?(g=f,v++):(g=r,F===0&&L(cI)),g!==r&&(G=d,g=HI()),d=g,d}function Md(){var d,g,_,R,C,U;if(d=v,g=v,_=v,R=f0(),R!==r){for(C=[],U=m0();U!==r;)C.push(U),U=m0();R=[R,C],_=R}else v=_,_=r;return _!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=KI(g)),d=g,d}function Ld(){var d;return d=h0(),d===r&&(d=Dd(),d===r&&(d=jC(),d===r&&(d=y0(),d===r&&(d=DC())))),d}function f0(){var d,g,_;return d=e.charAt(v),Kt.test(d)?v++:(d=r,F===0&&L(pI)),d===r&&(d=v,g=e.charAt(v),st.test(g)?v++:(g=r,F===0&&L(Hb)),g!==r?(_=e.charAt(v),it.test(_)?v++:(_=r,F===0&&L(Kb)),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function m0(){var d;return d=f0(),d===r&&(d=Dn()),d}function h0(){var d,g;return d=v,g=g0(),g!==r&&(G=d,g=GI(g)),d=g,d}function jC(){var d,g,_,R,C,U,Q,ve,rt,Er,nr,Br;return d=v,g=v,_=v,R=v,C=da(),C!==r?(U=Ee(),C=[C,U],R=C):(v=R,R=r),R===r&&(R=null),_=e.substring(_,v),e.charCodeAt(v)===58?(R=m,v++):(R=r,F===0&&L(Gb)),R!==r?(C=Ee(),U=v,Q=v,ve=da(),ve!==r?(rt=Ee(),ve=[ve,rt],Q=ve):(v=Q,Q=r),Q===r&&(Q=null),U=e.substring(U,v),Q=v,e.charCodeAt(v)===58?(ve=m,v++):(ve=r,F===0&&L(Gb)),ve!==r?(rt=v,Er=v,nr=Ee(),Br=da(),Br===r&&(Br=null),nr=[nr,Br],Er=nr,rt=e.substring(rt,v),G=Q,Q=WI(_,U,rt)):(v=Q,Q=r),Q===r&&(Q=null),G=g,g=YI(_,U,Q)):(v=g,g=r),g!==r&&(G=d,g=QI(g)),d=g,d}function y0(){var d,g,_;return d=v,g=v,_=da(),_!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=JI(g)),d=g,d}function DC(){var d,g,_,R;return d=v,e.charCodeAt(v)===63?(g=h,v++):(g=r,F===0&&L(lI)),g!==r?(_=Ee(),R=Fd(),R!==r?(G=d,d=XI(R)):(v=d,d=r)):(v=d,d=r),d}function pne(){var d;return d=e.charAt(v),te.test(d)?v++:(d=r,F===0&&L(uI)),d}function Dn(){var d;return d=e.charAt(v),rr.test(d)?v++:(d=r,F===0&&L(dI)),d}function g0(){var d,g,_,R,C;if(d=v,g=v,e.charCodeAt(v)===34?(_=y,v++):(_=r,F===0&&L(ip)),_!==r){for(R=[],C=v0();C!==r;)R.push(C),C=v0();e.charCodeAt(v)===34?(C=y,v++):(C=r,F===0&&L(ip)),C!==r?(G=g,g=ZI(R)):(v=g,g=r)}else v=g,g=r;if(g===r)if(g=v,e.charCodeAt(v)===39?(_=b,v++):(_=r,F===0&&L(sp)),_!==r){for(R=[],C=b0();C!==r;)R.push(C),C=b0();e.charCodeAt(v)===39?(C=b,v++):(C=r,F===0&&L(sp)),C!==r?(G=g,g=eC(R)):(v=g,g=r)}else v=g,g=r;return g!==r&&(G=d,g=tC(g)),d=g,d}function da(){var d,g,_,R,C;if(e.charCodeAt(v)===48?(d=x,v++):(d=r,F===0&&L(fI)),d===r)if(d=v,e.charCodeAt(v)===45?(g=w,v++):(g=r,F===0&&L(mI)),g===r&&(g=null),_=MC(),_!==r){for(R=[],C=Dn();C!==r;)R.push(C),C=Dn();g=[g,_,R],d=g}else v=d,d=r;return d}function v0(){var d,g,_;return d=v,g=x0(),g!==r?d=e.substring(d,v):d=g,d===r&&(e.charCodeAt(v)===39?(d=b,v++):(d=r,F===0&&L(sp)),d===r&&(d=v,g=cp(),g!==r?(e.charCodeAt(v)===34?(_=y,v++):(_=r,F===0&&L(ip)),_!==r?(G=d,d=rC()):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,g=cp(),g!==r?(_=S0(),_!==r?(G=d,d=nC(_)):(v=d,d=r)):(v=d,d=r)))),d}function b0(){var d,g,_;return d=v,g=x0(),g!==r?d=e.substring(d,v):d=g,d===r&&(e.charCodeAt(v)===34?(d=y,v++):(d=r,F===0&&L(ip)),d===r&&(d=v,g=cp(),g!==r?(e.charCodeAt(v)===39?(_=b,v++):(_=r,F===0&&L(sp)),_!==r?(G=d,d=oC()):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,g=cp(),g!==r?(_=S0(),_!==r?(G=d,d=iC(_)):(v=d,d=r)):(v=d,d=r)))),d}function MC(){var d;return d=e.charAt(v),K.test(d)?v++:(d=r,F===0&&L(hI)),d}function Fd(){var d,g,_,R,C,U,Q,ve;if(d=v,g=Ud(),g!==r){for(_=[],R=v,C=Ee(),e.substr(v,2)===S?(U=S,v+=2):(U=r,F===0&&L(Wb)),U!==r?(Q=Ee(),ve=Ud(),ve!==r?(G=R,R=r0(g,ve)):(v=R,R=r)):(v=R,R=r);R!==r;)_.push(R),R=v,C=Ee(),e.substr(v,2)===S?(U=S,v+=2):(U=r,F===0&&L(Wb)),U!==r?(Q=Ee(),ve=Ud(),ve!==r?(G=R,R=r0(g,ve)):(v=R,R=r)):(v=R,R=r);G=d,d=sC(g,_)}else v=d,d=r;return d}function x0(){var d,g,_;return d=e.charAt(v),D.test(d)?v++:(d=r,F===0&&L(yI)),d===r&&(d=v,g=e.charAt(v),st.test(g)?v++:(g=r,F===0&&L(Hb)),g!==r?(_=e.charAt(v),it.test(_)?v++:(_=r,F===0&&L(Kb)),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function cp(){var d;return e.charCodeAt(v)===92?(d=E,v++):(d=r,F===0&&L(Yb)),d}function S0(){var d,g,_;return d=e.charAt(v),ae.test(d)?v++:(d=r,F===0&&L(gI)),d===r&&(d=v,e.charCodeAt(v)===117?(g=P,v++):(g=r,F===0&&L(Qb)),g!==r?(_=LC(),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function Ud(){var d,g,_,R,C,U,Q,ve,rt;if(d=v,g=v,_=zd(),_!==r){for(R=[],C=v,U=Ee(),e.substr(v,2)===O?(Q=O,v+=2):(Q=r,F===0&&L(Jb)),Q!==r?(ve=Ee(),rt=zd(),rt!==r?(G=C,C=n0(_,rt)):(v=C,C=r)):(v=C,C=r);C!==r;)R.push(C),C=v,U=Ee(),e.substr(v,2)===O?(Q=O,v+=2):(Q=r,F===0&&L(Jb)),Q!==r?(ve=Ee(),rt=zd(),rt!==r?(G=C,C=n0(_,rt)):(v=C,C=r)):(v=C,C=r);G=g,g=aC(_,R)}else v=g,g=r;return g!==r&&(G=d,g=cC(g)),d=g,d}function LC(){var d,g,_,R,C,U,Q;return d=v,g=v,_=FC(),_!==r&&(G=g,_=pC()),g=_,g===r&&(g=v,_=v,R=UC(),R!==r?_=e.substring(_,v):_=R,_!==r?(e.charCodeAt(v)===92?(R=E,v++):(R=r,F===0&&L(Yb)),R!==r?(e.charCodeAt(v)===117?(C=P,v++):(C=r,F===0&&L(Qb)),C!==r?(U=v,Q=zC(),Q!==r?U=e.substring(U,v):U=Q,U!==r?(G=g,g=lC(_,U)):(v=g,g=r)):(v=g,g=r)):(v=g,g=r)):(v=g,g=r)),g!==r&&(G=d,g=uC(g)),d=g,d}function zd(){var d;return d=VC(),d===r&&(d=BC(),d===r&&(d=HC())),d}function FC(){var d,g,_,R,C,U;if(d=v,g=Dn(),g===r&&(g=e.charAt(v),M.test(g)?v++:(g=r,F===0&&L(vI))),g!==r){for(_=v,R=[],C=io();C!==r;)R.push(C),R.length>=3?C=r:C=io();R.length<3?(v=_,_=r):_=R,_!==r?(g=[g,_],d=g):(v=d,d=r)}else v=d,d=r;if(d===r)if(d=v,g=e.charAt(v),g.toLowerCase()===q?v++:(g=r,F===0&&L(qd)),g!==r)if(_=e.charAt(v),H.test(_)?v++:(_=r,F===0&&L(bI)),_!==r){for(R=v,C=[],U=io();U!==r;)C.push(U),C.length>=2?U=r:U=io();C.length<2?(v=R,R=r):R=C,R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function UC(){var d,g,_,R,C,U;if(d=v,g=e.charAt(v),g.toLowerCase()===q?v++:(g=r,F===0&&L(qd)),g!==r)if(_=e.charAt(v),Pe.test(_)?v++:(_=r,F===0&&L(xI)),_===r&&(_=e.charAt(v),Ze.test(_)?v++:(_=r,F===0&&L(SI))),_!==r){for(R=v,C=[],U=io();U!==r;)C.push(U),C.length>=2?U=r:U=io();C.length<2?(v=R,R=r):R=C,R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function zC(){var d,g,_,R,C,U;if(d=v,g=e.charAt(v),g.toLowerCase()===q?v++:(g=r,F===0&&L(qd)),g!==r)if(_=e.charAt(v),ke.test(_)?v++:(_=r,F===0&&L(wI)),_!==r){for(R=v,C=[],U=io();U!==r;)C.push(U),C.length>=2?U=r:U=io();C.length<2?(v=R,R=r):R=C,R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function VC(){var d,g,_,R,C,U,Q;return d=v,g=v,_=w0(),_!==r?(R=Ee(),_=[_,R],g=_):(v=g,g=r),g===r&&(g=null),e.charCodeAt(v)===40?(_=I,v++):(_=r,F===0&&L(Xb)),_!==r?(R=Ee(),C=Fd(),C!==r?(U=Ee(),e.charCodeAt(v)===41?(Q=k,v++):(Q=r,F===0&&L(Zb)),Q!==r?(G=d,d=dC(g,C)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}function BC(){var d,g,_,R,C,U;return d=v,g=_0(),g!==r?(_=Ee(),R=KC(),R!==r?(C=Ee(),U=_0(),U!==r?(G=d,d=fC(g,R,U)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}function HC(){var d,g,_,R;return d=v,g=v,_=w0(),_!==r?(R=Ee(),_=[_,R],g=_):(v=g,g=r),g===r&&(g=null),_=P0(),_===r&&(_=Vd()),_!==r?(G=d,d=mC(g,_)):(v=d,d=r),d}function io(){var d;return d=Dn(),d===r&&(d=e.charAt(v),Pr.test(d)?v++:(d=r,F===0&&L(_I))),d}function w0(){var d;return e.charCodeAt(v)===33?(d=A,v++):(d=r,F===0&&L(PI)),d}function _0(){var d;return d=$0(),d===r&&(d=GC(),d===r&&(d=Vd())),d}function KC(){var d;return e.substr(v,2)===se?(d=se,v+=2):(d=r,F===0&&L($I)),d===r&&(e.substr(v,2)===X?(d=X,v+=2):(d=r,F===0&&L(EI)),d===r&&(e.substr(v,2)===fe?(d=fe,v+=2):(d=r,F===0&&L(AI)),d===r&&(e.substr(v,2)===N?(d=N,v+=2):(d=r,F===0&&L(OI)),d===r&&(d=e.charAt(v),$r.test(d)?v++:(d=r,F===0&&L(TI)))))),d}function P0(){var d,g;return d=v,g=WC(),g===r&&(g=jd()),g!==r&&(G=d,g=hC(g)),d=g,d}function Vd(){var d,g,_,R,C,U,Q,ve,rt,Er,nr,Br;if(d=v,g=YC(),g!==r)if(e.charCodeAt(v)===40?(_=I,v++):(_=r,F===0&&L(Xb)),_!==r){if(R=Ee(),C=v,U=Bd(),U!==r){for(Q=[],ve=v,rt=Ee(),e.charCodeAt(v)===44?(Er=p,v++):(Er=r,F===0&&L(op)),Er!==r?(nr=Ee(),Br=Bd(),Br!==r?(G=ve,ve=o0(g,U,Br)):(v=ve,ve=r)):(v=ve,ve=r);ve!==r;)Q.push(ve),ve=v,rt=Ee(),e.charCodeAt(v)===44?(Er=p,v++):(Er=r,F===0&&L(op)),Er!==r?(nr=Ee(),Br=Bd(),Br!==r?(G=ve,ve=o0(g,U,Br)):(v=ve,ve=r)):(v=ve,ve=r);G=C,C=yC(g,U,Q)}else v=C,C=r;C===r&&(C=null),U=Ee(),e.charCodeAt(v)===41?(Q=k,v++):(Q=r,F===0&&L(Zb)),Q!==r?(G=d,d=gC(g,C)):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function $0(){var d,g;return d=v,g=QC(),g===r&&(g=g0(),g===r&&(g=JC(),g===r&&(g=XC(),g===r&&(g=ZC())))),g!==r&&(G=d,g=vC(g)),d=g,d}function GC(){var d;return d=eN(),d===r&&(d=tN()),d}function WC(){var d,g,_;return d=v,g=E0(),g!==r?(_=p0(),_!==r?(G=d,d=bC(_)):(v=d,d=r)):(v=d,d=r),d}function YC(){var d,g,_,R,C;if(d=v,g=v,_=oN(),_!==r){for(R=[],C=A0();C!==r;)R.push(C),C=A0();_=[_,R],g=_}else v=g,g=r;return g!==r?d=e.substring(d,v):d=g,d}function Bd(){var d;return d=$0(),d===r&&(d=P0(),d===r&&(d=Vd(),d===r&&(d=Fd()))),d}function QC(){var d,g,_,R,C,U;return d=v,g=v,_=v,R=da(),R===r&&(e.substr(v,2)===j?(R=j,v+=2):(R=r,F===0&&L(RI))),R!==r?(C=rN(),C===r&&(C=null),U=nN(),U===r&&(U=null),R=[R,C,U],_=R):(v=_,_=r),_!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=xC(g)),d=g,d}function JC(){var d,g;return d=v,e.substr(v,4)===mt?(g=mt,v+=4):(g=r,F===0&&L(kI)),g!==r&&(G=d,g=SC()),d=g,d}function XC(){var d,g;return d=v,e.substr(v,5)===$e?(g=$e,v+=5):(g=r,F===0&&L(II)),g!==r&&(G=d,g=wC()),d=g,d}function ZC(){var d,g;return d=v,e.substr(v,4)===ie?(g=ie,v+=4):(g=r,F===0&&L(CI)),g!==r&&(G=d,g=_C()),d=g,d}function eN(){var d,g,_;return d=v,g=E0(),g!==r?(_=O0(),G=d,d=PC(_)):(v=d,d=r),d}function tN(){var d,g,_;return d=v,g=c0(),g!==r?(_=O0(),G=d,d=$C(_)):(v=d,d=r),d}function E0(){var d;return e.charCodeAt(v)===64?(d=Xe,v++):(d=r,F===0&&L(NI)),d}function A0(){var d;return d=e.charAt(v),rI.test(d)?v++:(d=r,F===0&&L(qI)),d}function rN(){var d,g,_,R;if(d=v,e.charCodeAt(v)===46?(g=a,v++):(g=r,F===0&&L(Id)),g!==r){if(_=[],R=Dn(),R!==r)for(;R!==r;)_.push(R),R=Dn();else _=r;_!==r?(g=[g,_],d=g):(v=d,d=r)}else v=d,d=r;return d}function nN(){var d,g,_,R,C;if(d=v,g=e.charAt(v),g.toLowerCase()===Ue?v++:(g=r,F===0&&L(jI)),g!==r){if(_=e.charAt(v),nI.test(_)?v++:(_=r,F===0&&L(DI)),_===r&&(_=null),R=[],C=Dn(),C!==r)for(;C!==r;)R.push(C),C=Dn();else R=r;R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;return d}function O0(){var d,g,_,R,C;for(d=v,g=[],_=v,R=Ee(),C=T0(),C===r&&(C=R0()),C!==r?(G=_,_=i0(C)):(v=_,_=r);_!==r;)g.push(_),_=v,R=Ee(),C=T0(),C===r&&(C=R0()),C!==r?(G=_,_=i0(C)):(v=_,_=r);return G=d,g=EC(g),d=g,d}function oN(){var d;return d=e.charAt(v),oI.test(d)?v++:(d=r,F===0&&L(MI)),d}function T0(){var d,g,_,R;return d=v,e.charCodeAt(v)===91?(g=l,v++):(g=r,F===0&&L(Cd)),g!==r?(_=h0(),_!==r?(e.charCodeAt(v)===93?(R=u,v++):(R=r,F===0&&L(Nd)),R!==r?(G=d,d=AC(_)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,e.charCodeAt(v)===46?(g=a,v++):(g=r,F===0&&L(Id)),g!==r?(_=Md(),_!==r?(G=d,d=OC(_)):(v=d,d=r)):(v=d,d=r)),d}function R0(){var d,g,_,R;return d=v,e.charCodeAt(v)===91?(g=l,v++):(g=r,F===0&&L(Cd)),g!==r?(_=y0(),_!==r?(e.charCodeAt(v)===93?(R=u,v++):(R=r,F===0&&L(Nd)),R!==r?(G=d,d=TC(_)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}if(la=i(),t.peg$library)return{peg$result:la,peg$currPos:v,peg$FAILED:r,peg$maxFailExpected:ap,peg$maxFailPos:Vr};if(la!==r&&v===e.length)return la;throw la!==r&&v<e.length&&L(kC()),a0(ap,Vr<e.length?e.charAt(Vr):null,Vr<e.length?ua(Vr,Vr+1):ua(Vr,Vr))}function Rp(e){return hS(e)}var ns=class{head=null;tail=null;size=0;push(t){let r={value:t,next:null};this.tail!==null&&(this.tail.next=r),this.tail=r,this.head===null&&(this.head=r),this.size++}pop(){if(this.head===null)return;let t=this.head.value;return this.head=this.head.next,this.head===null&&(this.tail=null),this.size--,t}};function zn(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var os=e=>Array.isArray(e.value),is=e=>zn(e.value);var yS=new WeakSet,ct=e=>typeof e=="object"&&e!==null&&yS.has(e),gS=e=>{switch(typeof e){case"string":case"number":case"boolean":return!0;case"object":return e===null||zn(e)||dm(e);default:return!1}},dm=e=>Array.isArray(e)&&!ct(e),kp=()=>{let e=[];return yS.add(e),e},Tr=Symbol("Nothing");var vS={declaration:function(t,r){return ct(r)?r.length:0},definition:{parameters:["NodesType"],returnType:"ValueType"}};function dV(e){let t=0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);(n>=0&&n<=55295||n>=57344&&n<=1114111)&&t++}return t}var bS={declaration:function(t,r){return typeof r=="string"?dV(r):Array.isArray(r)?r.length:zn(r)?Object.keys(r).length:Tr},definition:{parameters:["ValueType"],returnType:"ValueType"}};function xS(e){return e===92}function fV(e,t){let r=!1,n=t;for(;n<e.length;){let o=e.charCodeAt(n);if(n++,xS(o)){r=!0;continue}if(o===93){if(!r)break;r=!1}}return n}function mV(e){let t=e;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);xS(n)?r++:n===91?r=fV(e,r):n===46&&(t=`${e.slice(0,r)}[^
120
120
  \r]${e.slice(r+1)}`)}return t}function Ea({cache:e},t){let r=e.get("regexps")??{};if(e.has("regexps")||e.set("regexps",r),Object.hasOwn(r,t))return r[t];try{let n=RegExp(mV(t),"u");return r[t]=n,n}catch{return r[t]=null,null}}var SS={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:Ea(t,`^${n}$`)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}};var wS={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:Ea(t,n)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}};var _S={declaration:function(t,r){return r.length===1?r[0]:Tr},definition:{parameters:["NodesType"],returnType:"ValueType"}};var fm=[];function St(e,t){return e===fm?fm:typeof t=="number"?[...e,t]:[...e,gV(t)]}function PS(e){return e?[]:fm}var hV=/[\u0000-\u001f'\\]/g;function yV(e){let t=e.charCodeAt(0);switch(t){case 8:return"\\b";case 12:return"\\f";case 10:return"\\n";case 13:return"\\r";case 9:return"\\t";case 39:return"\\'";case 92:return"\\\\";default:return`\\u${t.toString(16).padStart(4,"0")}`}}function gV(e){return e.replace(hV,yV)}function $S(e){let t="$";for(let r of e)typeof r=="number"?t+=`[${r}]`:t+=`['${r}']`;return t}function cr(e){throw new TypeError(`Unexpected node type: ${e.type}`)}function Wt(e){throw new TypeError(`Unexpected comparison operator: ${e}`)}function Ip(e,t){throw new Error(t)}function Wo(e){switch(typeof e){case"object":if(e===null)return"null";if(ct(e))return"NodeList";if(dm(e))return"array";if(zn(e))return"object";throw new TypeError(`Unknown type: ${e}`);case"string":return"string";case"number":return"number";case"boolean":return"boolean";default:if(e===Tr)return"Nothing";throw new TypeError(`Unknown type: ${e}`)}}function vV(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!yn(e[r],t[r]))return!1;return!0}function bV(e,t){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o of r)if(!Object.hasOwn(t,o)||!yn(e[o],t[o]))return!1;return!0}function yn(e,t){if(Wo(e)!==Wo(t))return!1;switch(Wo(e)){case"string":case"number":case"boolean":case"null":return e===t;case"object":return bV(e,t);case"array":case"NodeList":return vV(e,t);default:return!1}}function Cp(e,t,r){switch(r){case"==":case">=":case"<=":return!ct(e)&&!ct(t)&&yn(e,t);case"<":case">":return!1;case"!=":return!Cp(e,t,"==");default:Wt(r)}}function Np(e,t,r){switch(r){case"==":case"<=":case">=":return ct(e)&&(ct(t)&&yn(e,t)||t===Tr);case"<":case">":return!1;case"!=":return!Np(e,t,"==");default:Wt(r)}}function qp(e,t,r){switch(r){case"==":case"<=":case">=":return t===Tr||ct(t)&&t.length===0;case"<":case">":return!1;case"!=":return!qp(e,t,"==");default:Wt(r)}}function Vn(e,t,r){switch(r){case"==":return e===t;case"<":return typeof t=="number"&&e<t;case"!=":return!Vn(e,t,"==");case"<=":return Vn(e,t,"<")||Vn(e,t,"==");case">":return typeof t=="number"&&Vn(t,e,"<");case">=":return typeof t=="number"&&Vn(t,e,"<")||Vn(e,t,"==");default:Wt(r)}}function mm(e,t,r){switch(r){case"==":case"<=":case">=":return yn(e,t);case"<":case">":return!1;case"!=":return!yn(e,t);default:Wt(r)}}function jp(e,t,r){switch(r){case"==":case"<=":case">=":return e===t;case"<":case">":return!1;case"!=":return!jp(e,t,"==");default:Wt(r)}}function Yo(e,t,r){if(typeof e!="string"||typeof t!="string")return!1;switch(r){case"==":return e===t;case"<":{let n=0;for(;e.length>n&&t.length>n;){let o=e.charCodeAt(n),i=t.charCodeAt(n);if(o===i){n++;continue}return e.charCodeAt(n)<t.charCodeAt(n)}return e.length<t.length}default:Wt(r)}}function ES(e,t,r){switch(r){case"==":case"<":return Yo(e,t,r);case"!=":return!Yo(e,t,"==");case"<=":return Yo(e,t,"<")||Yo(e,t,"==");case">":return Yo(t,e,"<");case">=":return Yo(t,e,"<")||Yo(e,t,"==");default:Wt(r)}}function hm(e,t,r){let n=ct(e)&&e.length===1?e[0]:e,o=Wo(n),i=ct(t)&&t.length===1?t[0]:t;switch(o){case"string":return ES(n,i,r);case"number":return Vn(n,i,r);case"boolean":case"null":return jp(n,i,r);case"object":return mm(n,i,r);case"array":return Cp(n,i,r);case"Nothing":return qp(n,i,r);case"NodeList":return Np(n,i,r);default:Ip(o,"Unknown type")}}function Aa(e,t,r){let n=kp();switch(r.value.type){case"RelQuery":lo(e,t.root,t.value,r.value,o=>{n.push(o)});break;case"JsonPathQuery":lo(e,t.root,t.root,r.value,o=>{n.push(o)});break;default:cr(r.value)}return n}function ym(e,t,r){switch(r.expression.type){case"FilterQuery":return Aa(e,t,r.expression).length>0;case"FunctionExpr":return Qo(e,t,r.expression)===!0;default:cr(r.expression)}}function gn(e,t,r){switch(r.type){case"LogicalNotExpr":return!gn(e,t,r.expression);case"LogicalAndExpr":return gn(e,t,r.left)&&gn(e,t,r.right);case"LogicalOrExpr":return gn(e,t,r.left)||gn(e,t,r.right);case"TestExpr":return ym(e,t,r);case"ComparisonExpr":return Oa(e,t,r);default:cr(r)}}function gm(e,t,r){switch(r.type){case"FunctionExpr":return Qo(e,t,r);case"FilterQuery":return Aa(e,t,r);case"LogicalNotExpr":case"LogicalAndExpr":case"LogicalOrExpr":case"TestExpr":return gn(e,t,r);case"Literal":return r.value;default:cr(r)}}function xV(e){return ct(e)?e.length===1?e[0]:Tr:e}function Qo(e,t,r){if(!SV(e.functions,r.name))return!1;let n=e.functions[r.name];if(n.definition.parameters.length!==r.arguments.length)return!1;let o=[];for(let i=0;i<r.arguments.length;i++){let s=gm(e,t,r.arguments[i]),a=n.definition.parameters[i];switch(a){case"ValueType":if(!ct(s)&&!gS(s))return!1;o.push(xV(s));break;case"NodesType":if(!ct(s))return!1;o.push(s);break;case"LogicalType":if(typeof s=="boolean")o.push(s);else if(ct(s))o.push(s.length>0);else return!1;break;default:Ip(a,"Unknown function argument type")}}return n.declaration(e,...o)}function SV(e,t){return Object.hasOwn(e,t)}function Dp(e,t,r){switch(r.type){case"Literal":return r.value;case"RelSingularQuery":case"AbsSingularQuery":{let n=r.type==="RelSingularQuery"?t.value:t.root;if(r.segments.length===0)return n;let o=kp();return lo(e,t.root,n,r,i=>{o.push(i)}),o}case"FunctionExpr":return Qo(e,t,r);default:cr(r)}}function Oa(e,t,r){let n=Dp(e,t,r.left),o=Dp(e,t,r.right);return hm(n,o,r.op)}function Mp(e,t,r){if(r.value.type==="ComparisonExpr"){if(!Oa(e,t,r.value))return}else if(!gn(e,t,r.value))return;e.stack.push({root:t.root,path:t.path,value:t.value,index:t.index+1})}function wV(e,t){return e<0?t+e:e}function Ta(e,t,r){let n=wV(r.value,t.value.length);n>=0&&n<t.value.length&&e.stack.push({root:t.root,path:St(t.path,n),value:t.value[n],index:t.index+1})}function Ra(e,{root:t,path:r,value:n,index:o},i){Object.hasOwn(n,i.value)&&e.stack.push({root:t,path:St(r,i.value),value:n[i.value],index:o+1})}function Lp(e,t){return e>=0?e:t+e}function _V(e,t,r,n){let o=Lp(e,n),i=Lp(t,n);if(r>=0){let c=Math.min(Math.max(o,0),n),l=Math.min(Math.max(i,0),n);return[c,l]}let s=Math.min(Math.max(o,-1),n-1);return[Math.min(Math.max(i,-1),n-1),s]}function vm(e,{root:t,path:r,value:n,index:o},i){let s=i.step??1,a=s>=0?0:n.length-1,c=s>=0?n.length:-n.length-1,l=i.start===null?a:Lp(i.start,n.length),p=i.end===null?c:Lp(i.end,n.length),[u,f]=_V(l,p,s,n.length);if(s>0){let m=u;for(;m<f;)e.stack.push({root:t,path:St(r,m),value:n[m],index:o+1}),m+=s}else if(s<0){let m=f;for(;u<m;)e.stack.push({root:t,path:St(r,m),value:n[m],index:o+1}),m+=s}}function ka(e,{root:t,path:r,value:n,index:o}){if(Array.isArray(n))for(let i=0;i<n.length;i++)e.stack.push({root:t,path:St(r,i),value:n[i],index:o+1});else if(zn(n))for(let i of Object.keys(n))e.stack.push({root:t,path:St(r,i),value:n[i],index:o+1})}function bm(e,t,r){for(let n of r.selectors)switch(n.type){case"NameSelector":is(t)&&Ra(e,t,n);break;case"SliceSelector":os(t)&&vm(e,t,n);break;case"IndexSelector":{os(t)&&Ta(e,t,n);break}case"WildcardSelector":ka(e,t);break;case"FilterSelector":{os(t)?PV(e,t,n):is(t)&&$V(e,t,n);break}default:cr(n)}}function PV(e,{root:t,path:r,value:n,index:o},i){for(let s=0;s<n.length;s++)Mp(e,{root:t,path:St(r,s),value:n[s],index:o},i)}function $V(e,{root:t,path:r,value:n,index:o},i){for(let s of Object.keys(n))Mp(e,{root:t,path:St(r,s),value:n[s],index:o},i)}function xm(e,{root:t,path:r,value:n,index:o},i){Object.hasOwn(n,i.value)&&e.stack.push({root:t,path:St(r,i.value),value:n[i.value],index:o+1})}function AS(e,t,r){switch(r.type){case"BracketedSelection":return bm(e,t,r);case"WildcardSelector":return ka(e,t);case"MemberNameShorthand":is(t)&&xm(e,t,r);break;case"NameSelector":is(t)&&Ra(e,t,r);break;case"IndexSelector":os(t)&&Ta(e,t,r);break;default:cr(r)}}function lo(e,t,r,n,o){let i=new ns;i.push({root:t,path:PS(e.capturePaths),value:r,index:0});let s={cache:e.cache,capturePaths:!1,functions:e.functions,regexp:e.regexp,stack:i};for(;i.size>0;){let a=i.pop();if(a.index===n.segments.length){o(a.value,a.path);continue}let{path:c,value:l,index:p}=a,u=n.segments[p];if(AS(s,a,u.node),u.type==="DescendantSegment"){if(Array.isArray(l))for(let f=0;f<l.length;f++)i.push({root:t,path:St(c,f),value:l[f],index:p});else if(l!==null&&typeof l=="object")for(let f of Object.keys(l))i.push({root:t,path:St(c,f),value:l[f],index:p})}}}function Fp(e,t,r,n){let o={cache:new Map,capturePaths:r.capturePaths,functions:{count:vS,search:wS,value:_S,match:SS,length:bS},regexp:"i-regexp",stack:new ns};lo(o,e,e,Rp(t),n)}var EV={capturePaths:!0};function pce(e,t){let r=[];return Fp(e,t,{capturePaths:!1},n=>{r.push(n)}),r}function OS(e,t){let r=[];return Fp(e,t,EV,(n,o)=>{r.push($S(o))}),r}import*as Vp from"node:path";function Ia(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}var TS="#/components/actions/";function RS(e,t,r){let n=Kr(ma),o={problems:[],specVersion:"overlay1",visitorsData:{}},i=new Set,{$self:s,components:a}=t.parsed,c=typeof s=="string"?r.resolveExternalRef(t.source.absoluteRef,s):t.source.absoluteRef,l=(u,f,m)=>{let h=S=>{let E=u[S];if(typeof E!="string"){m({message:`The \`${S}\` field must be a JSONPath expression.`,location:f.child([S])});return}try{return AV(e.parsed,E)}catch(P){m({message:`Invalid JSONPath expression: ${P.message}`,location:f.child([S])});return}},y=h("target");if(!y)return;if(u.remove===!0){if(y.some(({keys:S})=>S.length===0)){m({message:"Cannot remove the root of the document.",location:f.child(["target"])});return}TV(e.parsed,y,i);return}if(u.update!==void 0&&u.copy!==void 0){m({message:"An action can't have both `update` and `copy`.",location:f});return}let b,x;if(u.copy===void 0)b=structuredClone(u.update),x="update",Sm(b,S=>{let E=r.resolveExternalRef(c,S),P=e.source.absoluteRef;return pe(E)||pe(P)?E:Ia(Vp.relative(Vp.dirname(P),E))});else{let S=h("copy");if(!S)return;if(S.length!==1){m({message:`The copy expression must select exactly one node, but it selected ${S.length}.`,location:f.child(["copy"])});return}b=wm(e.parsed,S[0].keys),x="copy"}if(b===void 0)return;if(new Set(y.map(({keys:S})=>{let E=wm(e.parsed,S);return Array.isArray(E)?"array":T(E)?"object":"primitive"})).size>1){m({message:"The target must select only objects, only arrays, or only primitive values.",location:f.child(["target"])});return}for(let S of y){let E=OV(e.parsed,S,b,i);if(E){m({message:E,location:f.child([x])});return}}},p={Root({actions:u},{report:f,location:m}){if(!Array.isArray(u)){f({message:"The overlay must have a list of `actions`.",location:m.child(["actions"])});return}u.forEach((h,y)=>{let b=m.child(["actions",y]);if(!T(h)){f({message:"An action must be an object.",location:b});return}if(!B(h)){l(h,b,f);return}let{$ref:x,target:w,description:S,...E}=h,P=Object.keys(E).find(q=>!q.startsWith("x-"));if(P){f({message:`Property \`${P}\` is not expected here because it is defined alongside \`$ref\`.`,location:b.child([P]).key()});return}let O=x.startsWith(TS)?tt(a?.actions??{},lp(x.slice(TS.length))):void 0;if(!O){f({message:`Can't find the reusable action \`${x}\`.`,location:b.child(["$ref"])});return}l({...O.fields,target:w},b,f)})}};return Lt({document:t,rootType:n.Root,normalizedVisitors:Mt([{severity:"error",ruleId:"overlay",visitor:p}],n),resolvedRefMap:new Map,ctx:o}),o.problems}function Sm(e,t){if(Array.isArray(e))for(let r of e)Sm(r,t);else if(T(e))for(let[r,n]of Object.entries(e))if(r==="$ref"&&typeof n=="string"){let[o,...i]=n.split("#");o!==""&&(e.$ref=[t(o),...i].join("#"))}else Sm(n,t)}function AV(e,t){return[...new Set(OS(e,t))].map(r=>({jsonPath:r,keys:Rp(r).segments.flatMap(({node:n})=>n.type==="BracketedSelection"?n.selectors.flatMap(o=>o.type==="NameSelector"||o.type==="IndexSelector"?[o.value]:[]):[])}))}function OV(e,{jsonPath:t,keys:r},n,o){let i=wm(e,r);if(zp(i)){if(!zp(n))return _m(n,i,t);Up(e,r.slice(0,-1),o)[r[r.length-1]]=n;return}let s=Up(e,r,o);if(Array.isArray(s)){s.push(...Array.isArray(n)?structuredClone(n):[structuredClone(n)]);return}return T(n)?kS(s,n,t,o):_m(n,s,t)}function kS(e,t,r,n){for(let[o,i]of Object.entries(t)){let s=e[o];if(!Object.hasOwn(e,o))e[o]=structuredClone(i);else if(T(s)&&T(i)){let a=kS(Up(e,[o],n),i,`${r}['${o}']`,n);if(a)return a}else if(Array.isArray(s)&&Array.isArray(i))e[o]=[...s,...structuredClone(i)];else if(zp(s)&&zp(i))e[o]=i;else return _m(i,s,`${r}['${o}']`)}}function TV(e,t,r){let n=t.map(({keys:i})=>({parent:Up(e,i.slice(0,-1),r),key:i[i.length-1]})),o=i=>typeof i=="number"?i:-1;n.sort((i,s)=>o(s.key)-o(i.key));for(let{parent:i,key:s}of n)Array.isArray(i)?i.splice(s,1):delete i[s]}function wm(e,t){return t.reduce((r,n)=>r[n],e)}function Up(e,t,r){let n=e;for(let o of t){if(!r.has(n[o])){let i=Object.assign(Array.isArray(n[o])?[]:{},n[o]);r.add(i),n[o]=i}n=n[o]}return n}function zp(e){return!T(e)&&!Array.isArray(e)}function _m(e,t,r){let n=o=>o===null?"null":Array.isArray(o)?"array":typeof o;return`Cannot apply ${n(e)} to ${n(t)} at ${r}.`}var Et=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&Jo(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(let o of Object.keys(e)){let i=r({$ref:e[o]});if(i.node!==void 0)return;Jo(i,t,n.child(o))}}});function Jo(e,t,r){let n=e.error;n instanceof mn&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});let o=e.error?.message;t({location:r,message:`Can't resolve $ref${o?": "+o:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}function IS(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Bp(e){let t=T(e)&&et(e.title)?e.title.trim():"",r=IS(t).replace(new RegExp(`[^${dp}]`,"g"),"-");return{title:t,name:r}}function wr(e,t){let r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&wr(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n&&!Object.prototype.hasOwnProperty.call(t,r)||!(r in t)||!wr(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Xo(e){return e.chain?.[0]??{node:e.node,location:e.location}}function Pm(e,t){switch(t){case"oas3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";case"MediaTypesMap":return"mediaTypes";default:return null}case"oas2":switch(e){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(e){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null;case"openrpc1":switch(e){case"ContentDescriptor":return"contentDescriptors";case"Schema":return"schemas";case"Example":return"examples";case"Link":return"links";case"ErrorObject":return"errors";case"ExamplePairing":return"examplePairingObjects";case"Tag":return"tags";default:return null}default:return null}}function CS({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:o,componentRenamingConflicts:i="warn",componentNamesStrategy:s="basename"}){let a,c,l=new Map,p=Pm("Schema",e),u={ref:{leave(w,S,E){if(!E.location||E.node===void 0){Jo(E,S.report,S.location);return}let P=Xo(E);if(P.location.source===r.source&&P.location.source===S.location.source&&S.type.name!=="scalar"&&!t){ao(w.$ref).uri!==null&&w.$ref!==P.location.pointer&&(w.$ref=P.location.pointer);return}if(o&&pe(w.$ref))return;let O=Pm(S.type.name,e);O?t?(m(O,P,S),fa(w,P,S)):(w.$ref=m(O,P,S),f(w,E,S)):fa(w,P,S)}},Example:{leave(w,S){if(pp(w)&&w.value===void 0){let E=S.resolve({$ref:w.externalValue});if(!E.location||E.node===void 0){Jo(E,S.report,S.location);return}if(o&&pe(w.externalValue))return;w.value=S.resolve({$ref:w.externalValue}).node,delete w.externalValue}}},Root:{enter(w,S){c=S.location,e==="oas3"?a=w.components=w.components||{}:e==="oas2"?a=w:e==="async2"?a=w.components=w.components||{}:e==="async3"?a=w.components=w.components||{}:e==="arazzo1"?a=w.components=w.components||{}:e==="openrpc1"&&(a=w.components=w.components||{})}}};e==="oas3"&&(u.Discriminator={leave(w,S){if(typeof w.defaultMapping!="string"||!fn(w.defaultMapping))return;let E=S.resolve({$ref:w.defaultMapping});if(!E.location||E.node===void 0){Jo(E,S.report,S.location.child("defaultMapping"));return}w.defaultMapping=m(p,Xo(E),S)},DiscriminatorMapping:{leave(w,S){for(let E of Object.keys(w)){let P=w[E];if(!fn(P))continue;let O=S.resolve({$ref:P});if(!O.location||O.node===void 0){Jo(O,S.report,S.location.child(E));return}w[E]=m(p,Xo(O),S)}}}});function f(w,S,E){let P={resolved:!0,isRemote:!1,node:S.node,chain:S.chain,document:r,nodePointer:w.$ref};n.set(Fn(E.location.source.absoluteRef,w.$ref),P),n.set(Fn(r.source.absoluteRef,w.$ref),P)}function m(w,S,E){a[w]=a[w]||{};let P=x(S,w,E);return a[w][P]=S.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${w}/${P}`:`#/${w}/${P}`}function h(w,S,E){if(B(w)){let P=E.resolve(w,c.absolutePointer);if((P.location&&Xo(P).location)?.absolutePointer===S.location.absolutePointer)return!0}return wr(w,S.node)}function y(w,S,E){let{title:P,name:O}=Bp(w.node),q=w.location.child("title");return P===""?{key:O,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:w.location,forceSeverity:"error"}}:S[O]&&!h(S[O],w,E)?{key:O,problem:{message:`Title "${P}" maps to component name \`${O}\`, already used by another schema. Rename one of the titles.`,location:q,from:l.get(O),forceSeverity:i}}:{key:O}}function b(w,S,E){let P=I0(w.location.pointer)||C0(w.location.source.absoluteRef),O=P;for(let q=2;S[O]&&!h(S[O],w,E);q++)O=`${P}-${q}`;return{name:O,prevName:P}}function x(w,S,E){let P=a[S];if(s==="title"&&S===p){let{key:I,problem:k}=y(w,P,E);if(!k)return l.set(I,w.location.child("title")),I;let{name:A}=b(w,P,E);return P[A]||(E.report(k),l.set(A,w.location)),A}let{name:O,prevName:q}=b(w,P,E);return!P[O]&&q!==O&&E.report({message:`Two schemas are referenced with the same name but different content. Renamed ${q} to ${O}.`,location:E.location,forceSeverity:i}),O}return u}var RV=["definitions","parameters","responses","securityDefinitions"],Hp=()=>{let e=new Map;function t(o,i){let s=`${o}/${i}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:o,name:i})}function r(o){if(!o.startsWith("#/"))return;let[i,s]=ao(o).pointer;if(!(!i||!s)&&RV.includes(i))return`${i}/${s}`}function n(o,i=new Set){let s=i.size;for(let[a,{usedIn:c,name:l,componentType:p}]of e)!c.some(f=>f!==a&&!i.has(f))&&p&&(i.add(a),delete o[p][l],e.delete(a),vr(o[p])&&delete o[p]);return i.size>s?n(o,i):i.size}return{ref:{leave(o,{location:i,type:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(s.name)){let c=r(o.$ref);if(!c)return;let l=r(i.pointer)??i.pointer,p=e.get(c);p?p.usedIn.push(l):e.set(c,{usedIn:[l],name:a.toString()})}}},Root:{leave(o,i){let s=i.getVisitorData();s.removedCount=n(o)}},NamedSchemas:{Schema(o,{key:i}){o.allOf||t("definitions",i.toString())}},NamedParameters:{Parameter(o,{key:i}){t("parameters",i.toString())}},NamedResponses:{Response(o,{key:i}){t("responses",i.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{key:i}){t("securityDefinitions",i.toString())}},SecurityRequirement(o){for(let i of Object.keys(o)){let s=`securityDefinitions/${i}`,a=e.get(s);a?a.usedIn.push("SecurityRequirement"):e.set(s,{usedIn:["SecurityRequirement"],name:i})}}}};function NS(e,t){return t in e}function qS(e){if(!e.startsWith("#/components/"))return;let[t,r,n]=ao(e).pointer;if(!(!r||!n))return`${r}/${n}`}var Kp=()=>{let e=new Map;function t(n,o,i=!1){let s=`${n}/${o}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:n,name:o,referencesDiscriminator:i})}function r(n,o=new Set){let i=o.size;for(let[s,{usedIn:a,name:c,componentType:l,referencesDiscriminator:p}]of e)if(!(a.some(f=>f!==s&&!o.has(f))||p)&&l&&n.components&&NS(n.components,l)){o.add(s);let f=n.components[l];delete f[c],e.delete(s),vr(f)&&delete n.components[l]}return o.size>i?r(n,o):o.size}return{ref:{leave(n,{location:o,type:i,key:s}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap","SecurityScheme"].includes(i.name)){let a=qS(n.$ref);if(!a)return;let c=qS(o.pointer)??o.pointer,l=e.get(a);l?l.usedIn.push(c):e.set(a,{usedIn:[c],name:s.toString()})}}},Root:{leave(n,o){let i=o.getVisitorData();i.removedCount=r(n),vr(n.components)&&delete n.components}},NamedSchemas:{Schema(n,o){let i=n.allOf?.some(s=>B(s)&&o.resolve(s)?.node?.discriminator);t("schemas",o.key.toString(),i)}},NamedParameters:{Parameter(n,{key:o}){t("parameters",o.toString())}},NamedResponses:{Response(n,{key:o}){t("responses",o.toString())}},NamedExamples:{Example(n,{key:o}){t("examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{key:o}){t("requestBodies",o.toString())}},NamedHeaders:{Header(n,{key:o}){t("headers",o.toString())}},NamedMediaTypes:{MediaTypesMap(n,{key:o}){t("mediaTypes",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{key:o}){t("securitySchemes",o.toString())}},SecurityRequirement(n){for(let o of Object.keys(n)){let i=`securitySchemes/${o}`,s=e.get(i);s?s.usedIn.push("SecurityRequirement"):e.set(i,{usedIn:["SecurityRequirement"],name:o})}}}};async function $m(e){let{document:t,config:r,types:n,externalRefResolver:o,dereference:i=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1,componentRenamingConflicts:c,componentNamesStrategy:l="basename",overlays:p=[]}=e,u=Un(t.parsed),f=$a(u),m=r.getRulesForSpecVersion(f),h=Kr(r.extendTypes(n,u),r),y=ji(m,r,"preprocessors",u),b=ji(m,r,"decorators",u),x={problems:[],specVersion:u,config:r,refTypes:new Map,visitorsData:{}},w=await Sr({rootDocument:t,rootType:h.Root,externalRefResolver:o});y.length>0&&(Lt({document:t,rootType:h.Root,normalizedVisitors:Mt(y,h),resolvedRefMap:w,ctx:x}),w=await Sr({rootDocument:t,rootType:h.Root,externalRefResolver:o}));let S=(P,O)=>({severity:"error",ruleId:"bundler",visitor:CS({version:f,dereference:O,rootDocument:t,resolvedRefMap:P,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:l})}),E=b.filter(P=>P.ruleId!=="remove-unused-components");if(Lt({document:t,rootType:h.Root,normalizedVisitors:Mt(p.length>0?[S(w,!1)]:[S(w,i),...E],h),resolvedRefMap:w,ctx:x}),p.length>0){for(let I of p){let k=await o.resolveDocument(null,I,!0).catch(se=>{throw new rs(`Failed to load overlay at ${I}: ${se.message}`)});if(k instanceof Error)throw k;let A=T(k.parsed)?k.parsed.overlay:void 0;if(typeof A!="string"||!Tp.test(A))throw new rs(`${I} is not an Overlay 1.0, 1.1, or 1.2 document.`);x.problems.push(...RS(t,k,o))}let P=await Sr({rootDocument:t,rootType:h.Root,externalRefResolver:o}),O={...x,problems:[]};Lt({document:t,rootType:h.Root,normalizedVisitors:Mt([S(P,i),...E],h),resolvedRefMap:P,ctx:O});let q=new Set(x.problems.map(({ruleId:I,message:k})=>`${I}:${k}`));x.problems.push(...O.problems.filter(({ruleId:I,message:k})=>!q.has(`${I}:${k}`)))}if(s||r.getDecoratorSettings("remove-unused-components",u).severity!=="off"){let P=await Sr({rootDocument:t,rootType:h.Root,externalRefResolver:o}),O=Mt([{severity:"error",ruleId:"remove-unused-components",visitor:f==="oas2"?Hp({}):Kp({})}],h);Lt({document:t,rootType:h.Root,normalizedVisitors:O,resolvedRefMap:P,ctx:x})}return{bundle:t,problems:x.problems.map(P=>r.addProblemToIgnore(P)),fileDependencies:o.getFiles(),rootType:h.Root,refTypes:x.refTypes,visitorsData:x.visitorsData}}var ss="redocly.yaml",jS={extends:["recommended"]},Ca=".redocly.lint-ignore.yaml",DS=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
121
121
  # See https://redocly.com/docs/cli/ for more information.
122
- `,Gp="configBundler",Wp="pluginsCollector",MS=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];var ZS={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Na={type:"object",properties:ZS,additionalProperties:!1},kV={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},ja={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...ZS,like:Na,dislike:Na,satisfied:Na,neutral:Na,dissatisfied:Na},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:kV},additionalProperties:!1}},additionalProperties:!1},IV={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},Tm={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Zp={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:ja,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Tm,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:IV,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Ae={type:"string",uiHint:"color"},Rr={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var CV={rules:Rr,oas2Rules:Rr,oas3_0Rules:Rr,oas3_1Rules:Rr,oas3_2Rules:Rr,async2Rules:Rr,async3Rules:Rr,arazzo1Rules:Rr,arazzo1_1Rules:Rr,overlay1Rules:Rr,openrpc1Rules:Rr,graphqlRules:Rr};var Yr={nodeTypeName:void 0,type:"object",additionalProperties:!0},NV={preprocessors:Yr,oas2Preprocessors:Yr,oas3_0Preprocessors:Yr,oas3_1Preprocessors:Yr,oas3_2Preprocessors:Yr,async2Preprocessors:Yr,async3Preprocessors:Yr,arazzo1Preprocessors:Yr,arazzo1_1Preprocessors:Yr,overlay1Preprocessors:Yr,openrpc1Preprocessors:Yr},Qr={nodeTypeName:void 0,type:"object",additionalProperties:!0};var qV={decorators:Qr,oas2Decorators:Qr,oas3_0Decorators:Qr,oas3_1Decorators:Qr,oas3_2Decorators:Qr,async2Decorators:Qr,async3Decorators:Qr,arazzo1Decorators:Qr,arazzo1_1Decorators:Qr,overlay1Decorators:Qr,openrpc1Decorators:Qr},jV={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},sl={...CV,...qV,...NV,extends:jV},as={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},DV={type:"object",properties:{name:{type:"string"},items:as,queries:as,mutations:as,subscriptions:as,types:as,directives:as},required:["name"],additionalProperties:!1},MV={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:DV},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},LV={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},FV={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},UV={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string",uiHint:"textarea"},termsOfService:{type:"string",format:"uri"},contact:LV,license:FV},additionalProperties:!1},el={type:"object",properties:{menu:{type:"object",properties:{...MV.properties},additionalProperties:!1},downloadUrls:Tm,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:Ae}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:ja,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:UV},additionalProperties:!1},Rm={type:"object",properties:{downloadUrls:Tm,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:ja,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},zV={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},VV={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},LS={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},BV={type:"object",properties:{beforeInfo:{type:"array",items:LS},end:{type:"array",items:LS}}},Zo={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Yp={type:"object",properties:{backgroundColor:Ae,borderColor:Ae,color:Ae,tabTextColor:Ae}},HV={type:"object",properties:al(Zo.properties,["light","dark"])},KV={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},GV={type:"object",properties:{error:Yp,info:Yp,redirect:Yp,success:Yp}},WV={type:"object",properties:cs(Zo.properties,["dark"])},YV={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},QV={type:"object",properties:{accent:Zo,border:HV,error:Zo,http:KV,primary:Zo,responses:GV,secondary:WV,success:Zo,text:YV,tonalOffset:{type:"number"},warning:Zo}},Qp={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},JV={type:"object",properties:{small:Qp,medium:Qp,large:Qp,xlarge:Qp}},bn={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},XV={type:"object",properties:{...cs(bn.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:JV}},FS={type:"object",properties:al(bn.properties,["fontSize","lineHeight"])},ZV={type:"object",properties:{medium:FS,small:FS}},eB={type:"object",properties:{...cs(bn.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:Ae,sizes:ZV}},tB={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},rB={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:Ae}},US={type:"object",properties:{fullWidth:{type:"boolean"}}},nB={type:"object",properties:{buttons:XV,httpBadges:eB,layoutControls:tB,panels:rB,tryItButton:US,tryItSendButton:US}},tl={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},oB={type:"object",properties:{maxWidth:tl}},iB={type:"object",properties:{maxWidth:tl,middlePanelMaxWidth:tl}},sB={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:oB,"three-panel":iB}},zS={type:"object",properties:{backgroundColor:Ae,border:{type:"string"}}},aB={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:Ae,caretSize:{type:"string"},constraints:zS,defaultDetailsWidth:{type:"string"},examples:zS,labelsTextSize:{type:"string"},linesColor:Ae,nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:Ae,typeNameColor:Ae,typeTitleColor:Ae}},ew={type:"object",properties:{subItemsColor:Ae,textTransform:{type:"string"},fontWeight:{type:"string"}}},cB={type:"object",properties:al(ew.properties,["textTransform"])},pB={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},lB={type:"object",properties:{...cs(bn.properties,["fontWeight","lineHeight"]),activeBgColor:Ae,activeTextColor:Ae,backgroundColor:Ae,borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:Ae,caretSize:{type:"string"},groupItems:ew,level1items:cB,rightLineColor:Ae,separatorLabelColor:Ae,showAtBreakpoint:{type:"string"},spacing:pB,textColor:Ae,width:{type:"string"}}},Jp={type:"object",properties:{...bn.properties,color:Ae,transform:{type:"string"}}},uB={type:"object",properties:{...bn.properties,backgroundColor:Ae,color:Ae,wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},dB={type:"object",properties:cs(bn.properties,["fontSize"])},fB={type:"object",properties:{color:Ae,hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},mB={type:"object",properties:{code:uB,fieldName:bn,...al(bn.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Jp,heading2:Jp,heading3:Jp,headings:dB,lineHeight:{type:"string"},links:fB,optimizeSpeed:{type:"boolean"},rightPanelHeading:Jp,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},hB={type:"object",properties:{color:Ae,...cs(bn.properties,["fontWeight"])}},yB={type:"object",properties:{backgroundColor:Ae,borderRadius:{type:"string"},tokens:hB}},gB={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},vB={type:"object",properties:{backgroundColor:Ae,color:Ae}},VS={type:"object",properties:{custom:{type:"string"}}},bB={type:"object",properties:{DownloadButton:VS,NextSectionButton:VS}},xB={type:"object",properties:{backgroundColor:Ae,panelBackgroundColor:Ae,panelControlsBackgroundColor:Ae,showAtBreakpoint:{type:"string"},textColor:Ae,width:{type:"string"}}},SB={type:"object",properties:{borderRadius:{type:"string"}}},wB={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},_B={type:"object",properties:{breakpoints:tl,codeBlock:yB,colors:QV,components:nB,layout:sB,logo:gB,fab:vB,overrides:bB,rightPanel:xB,schema:aB,shape:SB,sidebar:lB,spacing:wB,typography:mB,links:{type:"object",properties:{color:Ae}},codeSample:{type:"object",properties:{backgroundColor:Ae}}}},PB={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:zV}},required:["languages"]},tw={type:"object",properties:{theme:_B,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:PB,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:VV,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:BV,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function al(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function cs(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var rw=e=>e,At=rw({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),wt={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},BS={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"},consent:{type:"string",enum:["analytics","marketing"]}},required:["src"],additionalProperties:!0},Em={type:"object",properties:{page:{type:"string",uiHint:"file"},directory:{type:"string",uiHint:"file"},disconnect:{type:"boolean"},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},km={type:"array",items:{...Em,properties:{...Em.properties,items:{type:"array",items:Em}}}},$B={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},EB={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},AB={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},OB={type:"object",properties:{facets:AB,...wt.properties},additionalProperties:!1},TB={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},nw={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},ow={type:"object",properties:{items:km,...wt.properties},additionalProperties:!1},iw={type:"object",additionalProperties:$B},sw={type:"object",properties:{items:km,copyrightText:{type:"string",uiHint:"textarea"},logo:wt,...wt.properties},additionalProperties:!1},aw={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...wt.properties},additionalProperties:!1},cw={type:"object",properties:{head:{type:"array",items:BS},body:{type:"array",items:BS}},additionalProperties:!1},pw={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},lw={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:EB,filters:OB,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:TB},...wt.properties},additionalProperties:!1},uw={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string",uiHint:"textarea"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},dw={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...wt.properties},additionalProperties:!1},Im={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},RB={type:"object",properties:{...wt.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode","docs-mcp-claude"]}}},additionalProperties:!1},fw={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...wt.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...wt.properties},additionalProperties:!1},actions:RB},additionalProperties:!1},mw={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...wt.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...wt.properties},additionalProperties:!1},expand:{type:"object",properties:{...wt.properties},additionalProperties:!1},collapse:{type:"object",properties:{...wt.properties},additionalProperties:!1}},additionalProperties:!1},hw={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...wt.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...wt.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...wt.properties},additionalProperties:!1},template:{type:"object",uiHint:"list",additionalProperties:{type:"string"}}},additionalProperties:!1},rl={...Zp,properties:{...Zp.properties,...tw.properties}},ppe={...Zp,properties:{...Zp.properties,...tw.properties}},kB={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},IB={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},CB={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},NB={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},qB={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},jB={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},DB={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},yw={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},MB={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:yw}},additionalProperties:!1,required:["trackingId"]},gw={type:"object",properties:{adobe:kB,amplitude:IB,fullstory:CB,heap:NB,rudderstack:qB,segment:jB,gtm:DB,ga:MB}},LB={type:"object",properties:{mode:{type:"string",enum:["auto","opt-in","opt-out","none","onetrust","cookiebot","trustarc","tcf"]},privacyPolicyUrl:{type:"string"},expires:{type:"number"},settingsLink:{type:"string",enum:["auto","footer","none"]}},additionalProperties:!1},vw={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...wt.properties},additionalProperties:!1},bw={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},xw={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1}}},additionalProperties:!1},FB={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},UB={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:FB},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:km,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},nl={type:"object",patternProperties:{".*":UB}},ol={nodeTypeName:At.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:At.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:At.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:At.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...sl},additionalProperties:!1}},targets:{nodeTypeName:At.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:At.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:At.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:At.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string",uiHint:"file"}},fromProjectUrl:{type:"string",format:"uri"}}},zB={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},VB={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},BB={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Bn={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:VB},excludes:{type:"array",items:zB},filters:{type:"array",items:BB},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},HB={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},KB={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:HB},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},GB={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:KB,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},WB={type:"object",additionalProperties:GB},Sw={type:"object",properties:{show:{type:"boolean"},entityTypes:WB,catalogs:{type:"object",properties:{all:Bn,services:Bn,domains:Bn,teams:Bn,users:Bn,apiDescriptions:Bn,dataSchemas:Bn,apiOperations:Bn},additionalProperties:Bn}},additionalProperties:!1},HS={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Cm={type:"string",enum:["and","or"]},Am={type:"object",properties:{field:{type:"string"},operator:HS,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:HS,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},YB={type:"object",properties:{operator:Cm,conditions:{type:"array",items:Am}},required:["operator","conditions"],additionalProperties:!1},KS={type:"array",items:{oneOf:[Am,{type:"object",properties:{operator:Cm,conditions:{type:"array",items:{oneOf:[Am,YB]}}},required:["operator","conditions"],additionalProperties:!1}]}},ww={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},QB={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:ww},required:["subject","assertions"],additionalProperties:!1}},JB={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:ww,where:QB,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},XB={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},JB]}},ZB={type:"object",properties:{name:{type:"string"},extends:sl.extends,rules:XB},required:["name"],additionalProperties:!1},GS={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},e3={oneOf:[GS,{type:"array",items:GS}]},t3={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[KS,{type:"object",properties:{operator:Cm,conditions:KS},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:ZB,minItems:1},trigger:e3},required:["name","key","entities","levels"],additionalProperties:!1},_w={type:"array",items:t3},vn={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:nw,navbar:ow,products:iw,footer:sw,sidebar:aw,scripts:cw,links:pw,feedback:ja,search:lw,aiAssistant:uw,colorMode:dw,palette:Im,navigation:fw,codeSnippet:mw,markdown:hw,openapi:rl,asyncapi:Rm,graphql:el,analytics:gw,userMenu:vw,versionPicker:bw,breadcrumbs:xw,catalog:nl,entitiesCatalog:Sw,catalogClassic:nl,scorecard:ol,scorecardClassic:ol,scorecards:_w},additionalProperties:!0};var r3=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(r3||{}),n3=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(n3||{});var o3=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(o3||{});var Pw="^[a-z0-9]+(?:-[a-z0-9]+)*$",lpe=new RegExp(Pw);var i3=63,upe=`Unique ID cannot exceed ${i3} characters`,$w="redocly",Ew=[$w,"corporate","guest"],dpe=`Unique ID cannot be a reserved word (${Ew.join(", ")})`,WS=["REDOCLY","CORPORATE","GUEST"],s3={type:"object",additionalProperties:{type:"string"}},a3={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Xp={type:"string",enum:["error","warn","off"]},c3={type:"object",additionalProperties:!1,properties:{schemaCheck:Xp,statusCodeCheck:Xp,contentTypeCheck:Xp,successCriteriaCheck:Xp}},p3={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},l3={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},u3={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},d3={type:"object",additionalProperties:{type:"object",properties:{type:{type:"string",enum:["http"]},url:{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"},description:{type:"string"},headers:{type:"object",additionalProperties:{type:"string"}}},required:["url"],additionalProperties:!1}},f3={type:"object",properties:{provider:{type:"string",minLength:1},repository:{type:"string",minLength:1},branch:{type:"string",minLength:1},path:{type:"string"}},required:["provider","repository"],additionalProperties:!1},m3={type:"object",properties:{name:{type:"string",enum:["feedback","discovery","followUpOnPullRequest","updateFromCodeChanges"]},enabled:{type:"boolean"}},required:["name"],additionalProperties:!1},h3={type:"object",properties:{name:{type:"string",enum:["review"]},enabled:{type:"boolean"},rules:{type:"string"},sourceRepositories:{oneOf:[{type:"string",enum:["none","all"]},{type:"array",items:f3}]},specialists:{type:"array",items:{type:"object",properties:{name:{type:"string",enum:["config","apiDescription","owasp","docs"]},enabled:{type:"boolean"}},required:["name","enabled"],additionalProperties:!1}}},required:["name"],additionalProperties:!1},y3={type:"object",properties:{enabled:{type:"boolean"},defaultReviewers:{type:"array",items:{type:"string",minLength:1}},rules:{type:"object",properties:{custom:{type:"string"},style:{type:"string"}},additionalProperties:!1},duties:{type:"array",items:{oneOf:[m3,h3]}},mcpServers:d3},additionalProperties:!1},g3={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[p3,l3]},inputs:s3,servers:a3,severity:c3,slo:u3},required:["path","trigger","agent"],additionalProperties:!1}},agent:y3},additionalProperties:!1},Aw={type:"string",enum:["off","info","warn","error"]},qa={type:"array",items:{type:"string"}},v3={type:"object",properties:{severity:Aw,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:qa,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:qa,excludes:qa,exceptions:{type:"object",properties:{files:qa,lines:qa},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},b3={oneOf:[Aw,v3]},YS={type:"object",additionalProperties:b3},x3={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},S3={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:x3}},additionalProperties:!1},w3={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:S3},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},_3={oneOf:[{type:"boolean"},w3]},P3={type:"object",properties:{rules:YS,excludes:{type:"array",items:{type:"string",minLength:1}},markdoc:_3,apiDescriptions:{type:"object",properties:{rules:YS},additionalProperties:!1}},additionalProperties:!1},$3={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},E3={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:$3,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},A3={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},O3={oneOf:[E3,A3],discriminator:{propertyName:"type"}},T3={type:"object",additionalProperties:O3},Ow={oneOf:[{type:"array",items:{type:"string",enum:WS},uniqueItems:!0},{type:"string",enum:WS}]},QS={type:"string",pattern:Pw,not:{enum:Ew.filter(e=>e!==$w)}},Tw={oneOf:[{type:"array",items:QS,uniqueItems:!0},QS]},Rw={type:"boolean"},kw={type:"string",pattern:"^https?://.*"},Iw={type:"string",pattern:"^https?://.*"},R3={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:At.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},k3={type:"object",additionalProperties:R3,nodeTypeName:At.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},I3={type:"string",enum:["info","success","warning","error"]},ze={type:"object",uiHint:"list",additionalProperties:{type:"string"}},C3={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:I3,rbac:ze,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},N3={type:"array",items:C3},Cw={type:"object",properties:{root:{type:"string",uiHint:"file"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:ze,openapi:rl,graphql:el,asyncapi:Rm,theme:{type:"object",properties:{openapi:rl,graphql:el},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...sl},required:["root"]},q3={type:"object",additionalProperties:!0},j3={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},D3={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string",uiHint:"textarea"},details:{type:"object",properties:{path:{type:"string",uiHint:"file"},content:{type:"string",uiHint:"textarea"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string",uiHint:"file"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string",uiHint:"file"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},M3={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string",uiHint:"textarea"},siteUrl:{type:"string"},image:{type:"string",uiHint:"file"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:D3},additionalProperties:!1},L3={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},F3={type:"object",properties:{catalogs:{type:"object",properties:{all:ze,services:ze,domains:ze,teams:ze,users:ze,apiDescriptions:ze,dataSchemas:ze,apiOperations:ze},additionalProperties:ze},entitiesTypes:{type:"object",properties:{service:ze,domain:ze,team:ze,user:ze,apiDescription:ze,apiOperation:ze,dataSchema:ze},additionalProperties:ze},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:ze},additionalProperties:!1}},entities:{type:"object",properties:{"**":ze},additionalProperties:ze}},additionalProperties:!1},Nw={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ze,cms:ze,reunite:ze,features:{type:"object",properties:{aiSearch:ze,mcp:ze},additionalProperties:!1},content:{type:"object",properties:{"**":ze},additionalProperties:ze},entitiesCatalog:F3},additionalProperties:ze},U3={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},z3={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},V3={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[U3,z3]}},additionalProperties:!1,required:["type","apiBaseUrl"]},B3={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},H3={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Om={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[B3,H3],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},K3={...Om,properties:{...Om.properties,type:{type:"string",const:"APIGEE_EDGE"}}},G3={type:"object",oneOf:[Om,K3,V3],discriminator:{propertyName:"type"}},W3={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:G3}}},JS={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},Y3={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},Q3={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},J3={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},X3={type:"object",properties:{requiresLogin:Rw,logoutReturnUrl:kw,residency:Iw,sso:Ow,idps:Tw,rbac:Nw},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},il={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:k3,seo:M3,rbac:Nw,apiFunctions:L3,requiresLogin:Rw,responseHeaders:{type:"object",additionalProperties:{type:"array",items:Y3}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",uiHint:"list",additionalProperties:Cw},...sl,ssoDirect:T3,sso:Ow,idps:Tw,residency:Iw,logoutReturnUrl:kw,access:X3,developerOnboarding:W3,removeAttribution:{type:"boolean"},i18n:JS,l10n:JS,metadata:q3,metadataGlobs:j3,ignore:{type:"array",items:{type:"string"}},theme:vn,reunite:g3,logo:nw,navbar:ow,products:iw,footer:sw,sidebar:aw,scripts:cw,links:pw,feedback:ja,search:lw,aiAssistant:uw,colorMode:dw,palette:Im,navigation:fw,codeSnippet:mw,markdown:hw,openapi:rl,graphql:el,asyncapi:Rm,analytics:gw,consent:LB,userMenu:vw,versionPicker:bw,breadcrumbs:xw,catalog:nl,entitiesCatalog:Sw,catalogClassic:nl,scorecard:ol,scorecardClassic:ol,scorecards:_w,mcp:Q3,skills:J3,recheck:P3,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:N3},not:{required:["sso","idps"]},additionalProperties:!0},Z3={...il,additionalProperties:!1},ps={$id:"root-redocly-config",...il,properties:{plugins:{type:"array",items:{type:"string"}},...il.properties,env:{type:"object",additionalProperties:Z3}},additionalProperties:!1},XS={type:"object",properties:{logo:vn.properties.logo,navbar:vn.properties.navbar,footer:vn.properties.footer,sidebar:vn.properties.sidebar,search:vn.properties.search,codeSnippet:vn.properties.codeSnippet,breadcrumbs:vn.properties.breadcrumbs,openapi:vn.properties.openapi,feedback:vn.properties.feedback,palette:Im,mockServer:il.properties.mockServer,analytics:{type:"object",properties:{ga:yw}}},additionalProperties:!0},fpe={$id:"product-config-override",type:"object",properties:{...XS.properties,apis:{type:"object",additionalProperties:Cw},theme:XS},additionalProperties:!1},e9=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],ut=rw({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),t9={type:"object",nodeTypeName:ut.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},r9={type:"object",nodeTypeName:ut.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},n9={type:"object",nodeTypeName:ut.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},o9={type:"object",nodeTypeName:ut.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},i9={type:"object",properties:{},nodeTypeName:ut.EntityMetadata,additionalProperties:!0},s9={type:"object",nodeTypeName:ut.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},a9={type:"object",nodeTypeName:ut.EntitySlackContact,properties:{channels:{type:"array",items:s9}},required:["channels"],additionalProperties:!1},c9={type:"object",nodeTypeName:ut.EntityContact,properties:{slack:a9},additionalProperties:!1},p9={type:"object",nodeTypeName:ut.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},l9={type:"object",nodeTypeName:ut.EntityRelation,properties:{type:{type:"string",enum:e9},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},uo={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:c9,links:{type:"array",nodeTypeName:ut.EntityLinkList,items:p9},relations:{type:"array",nodeTypeName:ut.EntityRelationList,items:l9},metadata:i9},mpe={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...uo,type:{type:"string",const:"user"},metadata:t9},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:ut.UserEntity},{type:"object",nodeTypeName:ut.ApiOperationEntity,properties:{...uo,type:{type:"string",const:"api-operation"},metadata:n9},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ut.DataSchemaEntity,properties:{...uo,type:{type:"string",const:"data-schema"},metadata:o9},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ut.ApiDescriptionEntity,properties:{...uo,type:{type:"string",const:"api-description"},metadata:r9},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ut.ServiceEntity,properties:{...uo,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ut.DomainEntity,properties:{...uo,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ut.TeamEntity,properties:{...uo,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},hpe={type:"object",nodeTypeName:ut.Entity,properties:{...uo},required:["key","title","type"],additionalProperties:!1};import dY from"node:path";var qw=["Name","Document","OperationDefinition","VariableDefinition","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","Variable","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","DirectiveExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","TypeCoordinate","MemberCoordinate","ArgumentCoordinate","DirectiveCoordinate","DirectiveArgumentCoordinate"];function cl(e){return e.includes("/")}var V$=un(Zy(),1);var eg;function lY(){return eg||(eg=new V$.Ajv2020({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0})),eg}function z$(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>lY().validate(o,r));return n===-1&&(n=0),t[n]}}function As(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);if(t.type==="string"||t.type==="number"||t.type==="integer"||t.type==="boolean"){let{default:n,format:o,...i}=t;return i}if(t.type==="object"&&!t.properties&&!t.oneOf){if(t.additionalProperties===void 0||t.additionalProperties===!0)return{type:"object"};if(t.additionalProperties===!1)return{type:"object",properties:{}}}if(t.allOf)throw new Error(`Unexpected allOf in ${e}.`);if(t.anyOf)throw new Error(`Unexpected anyOf in ${e}.`);if(T(t.properties)||T(t.additionalProperties)||T(t.items)&&(T(t.items.properties)||T(t.items.additionalProperties)||t.items.oneOf))return uY(e,t,r);if(t.oneOf)if(t.discriminator){let n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);let o={},i=t.oneOf.map((s,a)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${a} in oneOf.`);let c=s?.properties?.[n];if(!c||typeof c=="boolean")throw new Error(`Unexpected property '${c}' schema in ${e} at position ${a} in oneOf.`);let l=c.const,p=As(l,s,r);return typeof p=="string"&&(o[l]=p),p});return(s,a)=>{if(T(s)){let c=s[n];if(typeof c=="string"){let l=o[c];if(l&&r[l])return l}}return z$(t.oneOf,i)(s,a)}}else{let n=t.oneOf.map((o,i)=>As(e+"_"+i,o,r));return z$(t.oneOf,n)}return t}function uY(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);let n=t.nodeTypeName??e,o={};for(let[c,l]of Object.entries(t.properties||{}))o[c]=As(n+"."+c,l,r);let i;T(t.additionalProperties)&&(i=As(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let s;T(t.items)&&(T(t.items.properties)||T(t.items.additionalProperties)||t.items.oneOf)&&(s=As(e+"_items",t.items,r));let a=t.required;return t.oneOf&&t.oneOf.every(c=>!!c.required)&&(a=c=>{let l=t.oneOf.map(u=>[...t.required||[],...u.required]),p=l.findIndex(u=>u.every(f=>c[f]!==void 0));return p===-1&&(p=0),l[p]}),r[n]={properties:o,additionalProperties:i,items:s,required:a,description:t.description,documentationLink:t.documentationLink},n}function tg(e,t){let r={},n=As(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}var fY=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type","no-duplicated-tag-names","spec-ref-siblings"],mY=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-illogical-composition-keywords","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","no-mixed-number-range-constraints","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization","no-duplicated-tag-names","nullable-type-sibling","spec-no-invalid-tag-parents","spec-no-invalid-encoding-combinations","spec-discriminator-defaultMapping","spec-example-values","spec-querystring-parameters","spec-ref-siblings"],hY=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],yY=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],gY=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","spec-step-mutually-exclusive-fields","workflow-dependsOn","outputs-defined","parameters-unique","step-onSuccess-unique","step-onFailure-unique","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-both-scheme-and-scheme-name","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","x-security-scheme-name-reference"],vY=["info-contact","spec-ref-siblings"],bY=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],xY=["no-unused-types","type-description"],SY=["struct","no-unresolved-refs"],wY=[...fY,...mY,...hY,...yY,...gY,...vY,...bY,...xY,...SY],_Y=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],PY=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","media-type-examples-override","remove-unused-components"],B$=[...PY,..._Y],H$={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!pe(e)&&!dY.extname(e)?{type:"string"}:{...hc,directResolveAs:{name:"ConfigGovernance",...hc}},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends#extends"},plugins:{type:"array",items:{type:"string"}},rules:"Rules",oas2Rules:"Rules",oas3_0Rules:"Rules",oas3_1Rules:"Rules",oas3_2Rules:"Rules",async2Rules:"Rules",async3Rules:"Rules",arazzo1Rules:"Rules",arazzo1_1Rules:"Rules",overlay1Rules:"Rules",openrpc1Rules:"Rules",graphqlRules:"Rules",preprocessors:"Preprocessors",oas2Preprocessors:"Preprocessors",oas3_0Preprocessors:"Preprocessors",oas3_1Preprocessors:"Preprocessors",oas3_2Preprocessors:"Preprocessors",async2Preprocessors:"Preprocessors",async3Preprocessors:"Preprocessors",arazzo1Preprocessors:"Preprocessors",arazzo1_1Preprocessors:"Preprocessors",overlay1Preprocessors:"Preprocessors",openrpc1Preprocessors:"Preprocessors",decorators:"Decorators",oas2Decorators:"Decorators",oas3_0Decorators:"Decorators",oas3_1Decorators:"Decorators",oas3_2Decorators:"Decorators",async2Decorators:"Decorators",async3Decorators:"Decorators",arazzo1Decorators:"Decorators",arazzo1_1Decorators:"Decorators",overlay1Decorators:"Decorators",openrpc1Decorators:"Decorators"},hc={properties:H$},$Y=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...hc.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),EY={properties:{},additionalProperties:"ConfigApisProperties",description:"The `apis` configuration section is used when a project contains multiple API descriptions to set up different rules and settings for individual APIs. It allows defining specific configurations for each API, which must be identified by a unique name.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/apis"},AY=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Vi(hc.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),OY={properties:{headers:{type:"array",items:{type:"string"}}}},TY={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:z("ClientGeneratorOptions"),pagination:"ClientPagination"}},RY={properties:{},additionalProperties:{}},K$={properties:{style:{enum:["cursor","offset","page","link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},kY={properties:{...K$.properties,exclude:{type:"array",items:{type:"string"}},operations:z("ClientPaginationRule")}},IY={properties:{},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules",additionalProperties:(e,t)=>{if(t.startsWith("rule/"))return typeof e=="string"?{enum:["error","warn","off"]}:"ConfigurableRule";if(wY.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(cl(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},CY={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Built-in rules are the default linting rules included with Redocly CLI. They enforce widely accepted API design standards and best practices. Each built-in rule has a default severity of error, but you can change the severity or turn off any built-in rule in your configuration file.",documentationLink:"https://redocly.com/docs/cli/rules/built-in-rules"},NY={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Custom rules are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-rules"},qY={properties:{},description:"Decorators define transformations that can be applied to the API document during the bundle step.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/decorators",additionalProperties:(e,t)=>{if(B$.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(cl(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},jY={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},DY={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},MY={properties:{},description:"Preprocessors define transformations that can be applied to the API document before bundling.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/preprocessors",additionalProperties:(e,t)=>{if(B$.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(cl(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},LY={properties:{},additionalProperties:{},description:"Built-in preprocessors are the default preprocessors included with Redocly CLI. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},FY={properties:{},additionalProperties:{},description:"Custom preprocessors are defined by users via plugins. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"};function UY(e){return{properties:{type:{enum:[...new Set(["any",...e,"SpecExtension"])],description:"REQUIRED. Locates the API node type that the lint command evaluates.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"},property:t=>Array.isArray(t)?{type:"array",items:{type:"string"},description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"}:t===null?null:{type:"string",description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"},filterInParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that locates where assertions run. An example value given the subject Operation could be filterInParentKeys: [get, put] means that only GET and PUT operations are evaluated for the assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},filterOutParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that excludes where assertions run. An example value given the subject Operation could be filterOutParentKeys: [delete] means that all operations except DELETE operations are evaluated for the assertions."},matchParentKeys:{type:"string",description:"Applies a regex pattern to the subject's parent keys to determine where assertions run. An example value given the subject Operation could be matchParentKeys: /^p/ means that POST, PUT, and PATCH operations are evaluated for the assertions."}},required:["type"],description:"REQUIRED. Narrows the subject further by specifying its type, and optionally property, filterParentKeys, etc.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"}}function zY(e){return{...e[At.ScorecardClassicLevel],properties:{...e[At.ScorecardClassicLevel]?.properties,...H$}}}var VY={properties:{enum:{type:"array",items:{type:"string"},description:"Asserts a value is within a predefined list of values. Providing a single value in a list is an equality check.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#enum-example"},pattern:{type:"string",description:"Asserts a value matches a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#pattern-example"},notPattern:{type:"string",description:"Asserts a value doesn't match a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#notpattern-example"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"],description:"Asserts a casing style. Supported styles are: camelCase, kebab-case, snake_case, PascalCase, MACRO_CASE, COBOL-CASE, flatcase.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#casing-example"},mutuallyExclusive:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually exclusive.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyexclusive-example"},mutuallyRequired:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually required.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},required:{type:"array",items:{type:"string"},description:"Asserts all listed values are defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#required-example"},requireAny:{type:"array",items:{type:"string"},description:"Asserts that at least one of the listed properties (key names only) is defined. ",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#requireany-example"},contains:{type:"array",items:{type:"string"},description:"Asserts that all listed strings are included in the value array.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#contains-example"},disallowed:{type:"array",items:{type:"string"},description:"Asserts all listed values are not defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#disallowed-example"},defined:{type:"boolean",description:"Asserts a property is defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#defined-example"},nonEmpty:{type:"boolean",description:"Asserts a property is not empty.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#nonempty-example"},minLength:{type:"integer",description:"Asserts a minimum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#minlength-example"},maxLength:{type:"integer",description:"Asserts a maximum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#maxlength-example"},schema:"Schema",ref:e=>typeof e=="string"?{type:"string",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"}:{type:"boolean",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"},const:e=>{if(typeof e=="string")return{type:"string",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="number")return{type:"number",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="boolean")return{type:"boolean",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"}}},additionalProperties:(e,t)=>{if(/^\w+\/\w+$/.test(t))return{}},description:"A minimum of one assertion property is required to be defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#assertion-object"},BY={properties:{subject:"Subject",assertions:"Assertions"},required:["subject","assertions"],description:"The where object is part of a where list which must be defined in order from the root node. Each node can only be used in one where object for each assertion. Each subsequent node must be a descendant of the previous one. Rules that use multiple where objects must target each one on a different node. However, the same node could be used in the last where object and in the root subject object. Nodes may be skipped in between the subject node types of the where list and those defined in the root subject type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#where-object"},HY={properties:{subject:"Subject",assertions:"Assertions",where:V("Where"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},reference:{type:"string"},severity:{enum:["error","warn","off"]}},required:["subject","assertions"],description:"Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object"};function Bl(e,t){let r=Bi.flatMap(o=>{let i=zo(o),s=t?t.extendTypes(i,o):i;return Object.keys(s)}),{ctx:n}=tg("rootRedoclyConfigSchema",e);return{...KY,ConfigRoot:$Y(n),ConfigApisProperties:AY(n),Subject:UY([...r,...qw]),...n,[At.ScorecardClassicLevel]:zY(n)}}var KY={ConfigurableRule:HY,ConfigApis:EY,ConfigGovernance:hc,ConfigHTTP:OY,Client:TY,ClientGeneratorOptions:RY,ClientPagination:kY,ClientPaginationRule:K$,Where:BY,BuiltinRule:CY,CustomRule:NY,BuiltinDecorator:jY,CustomDecorator:DY,BuiltinPreprocessor:LY,CustomPreprocessor:FY,Schema:be.Schema,SchemaProperties:be.SchemaProperties,PatternProperties:be.PatternProperties,NamedSchemas:be.NamedSchemas,DependentRequired:be.DependentRequired,Discriminator:be.Discriminator,DiscriminatorMapping:be.DiscriminatorMapping,ExternalDocs:be.ExternalDocs,Xml:be.Xml,Rules:IY,Decorators:qY,Preprocessors:MY,Assertions:VY},{theme:mue,...GY}=ps.properties,WY={...ps,properties:GY},G$=Bl(WY),bo=Kr(G$);import zZ from"node:path";import*as db from"node:fs";import FZ from"node:module";import*as tr from"node:path";import*as m1 from"node:url";function Hl(e){return!et(e)}var W$={};var Y$={};var Q$={};function Kl(e){return Array.isArray(e)&&e.length===0}function Gl(e,t,r){let{parent:n,key:o}=t,i=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(B(e[s])){let a=t.resolve(e[s]);r(a.node)&&(e.splice(s,1),i=!0,s--)}r(e[s])&&(e.splice(s,1),i=!0,s--)}else if(T(e))for(let s of Object.keys(e)){if(B(e[s])){let a=t.resolve(e[s]);r(a.node)&&(delete e[s],i=!0)}r(e[s])&&(delete e[s],i=!0)}i&&(vr(e)||Kl(e))&&delete n[o]}function xo(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=J$(t),e=J$(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function J$(e){return Array.isArray(e)?e:[e]}var YY="any",Wl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||YY;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let p of s){let u=B(a[p])?c.resolve(a[p]).node:a[p];if(T(u)){let f=u[e];xo(f,t,o)||delete a[p]}}s.some(p=>a[p])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];xo(c,t,o)||delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>s?.[e]&&!xo(s?.[e],t,o);return{any:{enter:(s,a)=>{Gl(s,a,i)}}}};var QY="any",Yl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||QY;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let p of s){let u=B(a[p])?c.resolve(a[p]).node:a[p];if(T(u)){let f=u[e];xo(f,t,o)&&delete a[p]}}s.some(p=>a[p])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];xo(c,t,o)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>xo(s?.[e],t,o);return{any:{enter:(s,a)=>{Gl(s,a,i)}}}};import*as Ql from"node:fs";import*as Jl from"node:path";function rg(e){let t=Ql.readFileSync(e,"utf-8");return Ho(t)}function Qn(e,t){return pe(e)||t===void 0?e:Jl.resolve(Jl.dirname(t),e)}function Os(e){return Ql.readFileSync(e,"utf-8")}var Xl=({filePath:e})=>({Info:{leave(t,{report:r,location:n,config:o}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=Os(Qn(e,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for "info.description".
122
+ `,Gp="configBundler",Wp="pluginsCollector",MS=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];var ZS={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Na={type:"object",properties:ZS,additionalProperties:!1},kV={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},ja={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...ZS,like:Na,dislike:Na,satisfied:Na,neutral:Na,dissatisfied:Na},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:kV},additionalProperties:!1}},additionalProperties:!1},IV={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},Tm={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Zp={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:ja,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Tm,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:IV,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Ae={type:"string",uiHint:"color"},Rr={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var CV={rules:Rr,oas2Rules:Rr,oas3_0Rules:Rr,oas3_1Rules:Rr,oas3_2Rules:Rr,async2Rules:Rr,async3Rules:Rr,arazzo1Rules:Rr,arazzo1_1Rules:Rr,overlay1Rules:Rr,openrpc1Rules:Rr,graphqlRules:Rr};var Yr={nodeTypeName:void 0,type:"object",additionalProperties:!0},NV={preprocessors:Yr,oas2Preprocessors:Yr,oas3_0Preprocessors:Yr,oas3_1Preprocessors:Yr,oas3_2Preprocessors:Yr,async2Preprocessors:Yr,async3Preprocessors:Yr,arazzo1Preprocessors:Yr,arazzo1_1Preprocessors:Yr,overlay1Preprocessors:Yr,openrpc1Preprocessors:Yr},Qr={nodeTypeName:void 0,type:"object",additionalProperties:!0};var qV={decorators:Qr,oas2Decorators:Qr,oas3_0Decorators:Qr,oas3_1Decorators:Qr,oas3_2Decorators:Qr,async2Decorators:Qr,async3Decorators:Qr,arazzo1Decorators:Qr,arazzo1_1Decorators:Qr,overlay1Decorators:Qr,openrpc1Decorators:Qr},jV={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},sl={...CV,...qV,...NV,extends:jV},as={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},DV={type:"object",properties:{name:{type:"string"},items:as,queries:as,mutations:as,subscriptions:as,types:as,directives:as},required:["name"],additionalProperties:!1},MV={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:DV},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},LV={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},FV={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},UV={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string",uiHint:"textarea"},termsOfService:{type:"string",format:"uri"},contact:LV,license:FV},additionalProperties:!1},el={type:"object",properties:{menu:{type:"object",properties:{...MV.properties},additionalProperties:!1},downloadUrls:Tm,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:Ae}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:ja,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:UV},additionalProperties:!1},Rm={type:"object",properties:{downloadUrls:Tm,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:ja,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},zV={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},VV={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},LS={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},BV={type:"object",properties:{beforeInfo:{type:"array",items:LS},end:{type:"array",items:LS}}},Zo={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Yp={type:"object",properties:{backgroundColor:Ae,borderColor:Ae,color:Ae,tabTextColor:Ae}},HV={type:"object",properties:al(Zo.properties,["light","dark"])},KV={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},GV={type:"object",properties:{error:Yp,info:Yp,redirect:Yp,success:Yp}},WV={type:"object",properties:cs(Zo.properties,["dark"])},YV={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},QV={type:"object",properties:{accent:Zo,border:HV,error:Zo,http:KV,primary:Zo,responses:GV,secondary:WV,success:Zo,text:YV,tonalOffset:{type:"number"},warning:Zo}},Qp={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},JV={type:"object",properties:{small:Qp,medium:Qp,large:Qp,xlarge:Qp}},bn={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},XV={type:"object",properties:{...cs(bn.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:JV}},FS={type:"object",properties:al(bn.properties,["fontSize","lineHeight"])},ZV={type:"object",properties:{medium:FS,small:FS}},eB={type:"object",properties:{...cs(bn.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:Ae,sizes:ZV}},tB={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},rB={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:Ae}},US={type:"object",properties:{fullWidth:{type:"boolean"}}},nB={type:"object",properties:{buttons:XV,httpBadges:eB,layoutControls:tB,panels:rB,tryItButton:US,tryItSendButton:US}},tl={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},oB={type:"object",properties:{maxWidth:tl}},iB={type:"object",properties:{maxWidth:tl,middlePanelMaxWidth:tl}},sB={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:oB,"three-panel":iB}},zS={type:"object",properties:{backgroundColor:Ae,border:{type:"string"}}},aB={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:Ae,caretSize:{type:"string"},constraints:zS,defaultDetailsWidth:{type:"string"},examples:zS,labelsTextSize:{type:"string"},linesColor:Ae,nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:Ae,typeNameColor:Ae,typeTitleColor:Ae}},ew={type:"object",properties:{subItemsColor:Ae,textTransform:{type:"string"},fontWeight:{type:"string"}}},cB={type:"object",properties:al(ew.properties,["textTransform"])},pB={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},lB={type:"object",properties:{...cs(bn.properties,["fontWeight","lineHeight"]),activeBgColor:Ae,activeTextColor:Ae,backgroundColor:Ae,borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:Ae,caretSize:{type:"string"},groupItems:ew,level1items:cB,rightLineColor:Ae,separatorLabelColor:Ae,showAtBreakpoint:{type:"string"},spacing:pB,textColor:Ae,width:{type:"string"}}},Jp={type:"object",properties:{...bn.properties,color:Ae,transform:{type:"string"}}},uB={type:"object",properties:{...bn.properties,backgroundColor:Ae,color:Ae,wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},dB={type:"object",properties:cs(bn.properties,["fontSize"])},fB={type:"object",properties:{color:Ae,hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},mB={type:"object",properties:{code:uB,fieldName:bn,...al(bn.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Jp,heading2:Jp,heading3:Jp,headings:dB,lineHeight:{type:"string"},links:fB,optimizeSpeed:{type:"boolean"},rightPanelHeading:Jp,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},hB={type:"object",properties:{color:Ae,...cs(bn.properties,["fontWeight"])}},yB={type:"object",properties:{backgroundColor:Ae,borderRadius:{type:"string"},tokens:hB}},gB={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},vB={type:"object",properties:{backgroundColor:Ae,color:Ae}},VS={type:"object",properties:{custom:{type:"string"}}},bB={type:"object",properties:{DownloadButton:VS,NextSectionButton:VS}},xB={type:"object",properties:{backgroundColor:Ae,panelBackgroundColor:Ae,panelControlsBackgroundColor:Ae,showAtBreakpoint:{type:"string"},textColor:Ae,width:{type:"string"}}},SB={type:"object",properties:{borderRadius:{type:"string"}}},wB={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},_B={type:"object",properties:{breakpoints:tl,codeBlock:yB,colors:QV,components:nB,layout:sB,logo:gB,fab:vB,overrides:bB,rightPanel:xB,schema:aB,shape:SB,sidebar:lB,spacing:wB,typography:mB,links:{type:"object",properties:{color:Ae}},codeSample:{type:"object",properties:{backgroundColor:Ae}}}},PB={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:zV}},required:["languages"]},tw={type:"object",properties:{theme:_B,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:PB,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:VV,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:BV,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function al(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function cs(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var rw=e=>e,At=rw({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),wt={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},BS={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"},consent:{type:"string",enum:["analytics","marketing"]}},required:["src"],additionalProperties:!0},Em={type:"object",properties:{page:{type:"string",uiHint:"file"},directory:{type:"string",uiHint:"file"},disconnect:{type:"boolean"},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},km={type:"array",items:{...Em,properties:{...Em.properties,items:{type:"array",items:Em}}}},$B={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},EB={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},AB={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},OB={type:"object",properties:{facets:AB,...wt.properties},additionalProperties:!1},TB={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},nw={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},ow={type:"object",properties:{items:km,...wt.properties},additionalProperties:!1},iw={type:"object",additionalProperties:$B},sw={type:"object",properties:{items:km,copyrightText:{type:"string",uiHint:"textarea"},logo:wt,...wt.properties},additionalProperties:!1},aw={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...wt.properties},additionalProperties:!1},cw={type:"object",properties:{head:{type:"array",items:BS},body:{type:"array",items:BS}},additionalProperties:!1},pw={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},lw={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:EB,filters:OB,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:TB},...wt.properties},additionalProperties:!1},uw={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string",uiHint:"textarea"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},dw={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...wt.properties},additionalProperties:!1},Im={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},RB={type:"object",properties:{...wt.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode","docs-mcp-claude"]}}},additionalProperties:!1},fw={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...wt.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...wt.properties},additionalProperties:!1},actions:RB},additionalProperties:!1},mw={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...wt.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...wt.properties},additionalProperties:!1},expand:{type:"object",properties:{...wt.properties},additionalProperties:!1},collapse:{type:"object",properties:{...wt.properties},additionalProperties:!1}},additionalProperties:!1},hw={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...wt.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...wt.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...wt.properties},additionalProperties:!1},template:{type:"object",uiHint:"list",additionalProperties:{type:"string"}}},additionalProperties:!1},rl={...Zp,properties:{...Zp.properties,...tw.properties}},ppe={...Zp,properties:{...Zp.properties,...tw.properties}},kB={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},IB={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},CB={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},NB={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},qB={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},jB={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},DB={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},yw={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},MB={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:yw}},additionalProperties:!1,required:["trackingId"]},gw={type:"object",properties:{adobe:kB,amplitude:IB,fullstory:CB,heap:NB,rudderstack:qB,segment:jB,gtm:DB,ga:MB}},LB={type:"object",properties:{mode:{type:"string",enum:["auto","opt-in","opt-out","none","onetrust","cookiebot","trustarc","tcf"]},privacyPolicyUrl:{type:"string"},expires:{type:"number"},settingsLink:{type:"string",enum:["auto","footer","none"]}},additionalProperties:!1},vw={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...wt.properties},additionalProperties:!1},bw={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},xw={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1}}},additionalProperties:!1},FB={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},UB={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:FB},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:km,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},nl={type:"object",patternProperties:{".*":UB}},ol={nodeTypeName:At.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:At.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:At.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:At.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...sl},additionalProperties:!1}},targets:{nodeTypeName:At.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:At.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:At.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:At.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string",uiHint:"file"}},fromProjectUrl:{type:"string",format:"uri"}}},zB={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},VB={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},BB={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Bn={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:VB},excludes:{type:"array",items:zB},filters:{type:"array",items:BB},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},HB={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},KB={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:HB},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},GB={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:KB,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},WB={type:"object",additionalProperties:GB},Sw={type:"object",properties:{show:{type:"boolean"},entityTypes:WB,catalogs:{type:"object",properties:{all:Bn,services:Bn,domains:Bn,teams:Bn,users:Bn,apiDescriptions:Bn,dataSchemas:Bn,apiOperations:Bn},additionalProperties:Bn}},additionalProperties:!1},HS={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Cm={type:"string",enum:["and","or"]},Am={type:"object",properties:{field:{type:"string"},operator:HS,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:HS,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},YB={type:"object",properties:{operator:Cm,conditions:{type:"array",items:Am}},required:["operator","conditions"],additionalProperties:!1},KS={type:"array",items:{oneOf:[Am,{type:"object",properties:{operator:Cm,conditions:{type:"array",items:{oneOf:[Am,YB]}}},required:["operator","conditions"],additionalProperties:!1}]}},ww={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},QB={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:ww},required:["subject","assertions"],additionalProperties:!1}},JB={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:ww,where:QB,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},XB={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},JB]}},ZB={type:"object",properties:{name:{type:"string"},extends:sl.extends,rules:XB},required:["name"],additionalProperties:!1},GS={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},e3={oneOf:[GS,{type:"array",items:GS}]},t3={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[KS,{type:"object",properties:{operator:Cm,conditions:KS},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:ZB,minItems:1},trigger:e3},required:["name","key","entities","levels"],additionalProperties:!1},_w={type:"array",items:t3},vn={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:nw,navbar:ow,products:iw,footer:sw,sidebar:aw,scripts:cw,links:pw,feedback:ja,search:lw,aiAssistant:uw,colorMode:dw,palette:Im,navigation:fw,codeSnippet:mw,markdown:hw,openapi:rl,asyncapi:Rm,graphql:el,analytics:gw,userMenu:vw,versionPicker:bw,breadcrumbs:xw,catalog:nl,entitiesCatalog:Sw,catalogClassic:nl,scorecard:ol,scorecardClassic:ol,scorecards:_w},additionalProperties:!0};var r3=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(r3||{}),n3=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(n3||{});var o3=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(o3||{});var Pw="^[a-z0-9]+(?:-[a-z0-9]+)*$",lpe=new RegExp(Pw);var i3=63,upe=`Unique ID cannot exceed ${i3} characters`,$w="redocly",Ew=[$w,"corporate","guest"],dpe=`Unique ID cannot be a reserved word (${Ew.join(", ")})`,WS=["REDOCLY","CORPORATE","GUEST"],s3={type:"object",additionalProperties:{type:"string"}},a3={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Xp={type:"string",enum:["error","warn","off"]},c3={type:"object",additionalProperties:!1,properties:{schemaCheck:Xp,statusCodeCheck:Xp,contentTypeCheck:Xp,successCriteriaCheck:Xp}},p3={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},l3={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},u3={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},d3={type:"object",additionalProperties:{type:"object",properties:{type:{type:"string",enum:["http"]},url:{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"},description:{type:"string"},headers:{type:"object",additionalProperties:{type:"string"}}},required:["url"],additionalProperties:!1}},f3={type:"object",properties:{provider:{type:"string",minLength:1},repository:{type:"string",minLength:1},branch:{type:"string",minLength:1},path:{type:"string"}},required:["provider","repository"],additionalProperties:!1},m3={type:"object",properties:{name:{type:"string",enum:["feedback","discovery","followUpOnPullRequest","updateFromCodeChanges"]},enabled:{type:"boolean"}},required:["name"],additionalProperties:!1},h3={type:"object",properties:{name:{type:"string",enum:["review"]},enabled:{type:"boolean"},rules:{type:"string"},sourceRepositories:{oneOf:[{type:"string",enum:["none","all"]},{type:"array",items:f3}]},specialists:{type:"array",items:{type:"object",properties:{name:{type:"string",enum:["config","apiDescription","owasp","docs"]},enabled:{type:"boolean"}},required:["name","enabled"],additionalProperties:!1}}},required:["name"],additionalProperties:!1},y3={type:"object",properties:{enabled:{type:"boolean"},defaultReviewers:{type:"array",items:{type:"string",minLength:1}},rules:{type:"object",properties:{custom:{type:"string"},style:{type:"string"}},additionalProperties:!1},duties:{type:"array",items:{oneOf:[m3,h3]}},mcpServers:d3},additionalProperties:!1},g3={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[p3,l3]},inputs:s3,servers:a3,severity:c3,slo:u3},required:["path","trigger","agent"],additionalProperties:!1}},agent:y3},additionalProperties:!1},Aw={type:"string",enum:["off","info","warn","error"]},qa={type:"array",items:{type:"string"}},v3={type:"object",properties:{severity:Aw,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:qa,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:qa,excludes:qa,exceptions:{type:"object",properties:{files:qa,lines:qa},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},b3={oneOf:[Aw,v3]},YS={type:"object",additionalProperties:b3},x3={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},S3={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:x3}},additionalProperties:!1},w3={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:S3},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},_3={oneOf:[{type:"boolean"},w3]},P3={type:"object",properties:{rules:YS,excludes:{type:"array",items:{type:"string",minLength:1}},markdoc:_3,apiDescriptions:{type:"object",properties:{rules:YS},additionalProperties:!1}},additionalProperties:!1},$3={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},E3={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:$3,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},A3={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},O3={oneOf:[E3,A3],discriminator:{propertyName:"type"}},T3={type:"object",additionalProperties:O3},Ow={oneOf:[{type:"array",items:{type:"string",enum:WS},uniqueItems:!0},{type:"string",enum:WS}]},QS={type:"string",pattern:Pw,not:{enum:Ew.filter(e=>e!==$w)}},Tw={oneOf:[{type:"array",items:QS,uniqueItems:!0},QS]},Rw={type:"boolean"},kw={type:"string",pattern:"^https?://.*"},Iw={type:"string",pattern:"^https?://.*"},R3={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:At.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},k3={type:"object",additionalProperties:R3,nodeTypeName:At.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},I3={type:"string",enum:["info","success","warning","error"]},ze={type:"object",uiHint:"list",additionalProperties:{type:"string"}},C3={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:I3,rbac:ze,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},N3={type:"array",items:C3},Cw={type:"object",properties:{root:{type:"string",uiHint:"file"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:ze,openapi:rl,graphql:el,asyncapi:Rm,theme:{type:"object",properties:{openapi:rl,graphql:el},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...sl},required:["root"]},q3={type:"object",additionalProperties:!0},j3={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},D3={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string",uiHint:"textarea"},details:{type:"object",properties:{path:{type:"string",uiHint:"file"},content:{type:"string",uiHint:"textarea"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string",uiHint:"file"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string",uiHint:"file"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},M3={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string",uiHint:"textarea"},siteUrl:{type:"string"},image:{type:"string",uiHint:"file"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:D3},additionalProperties:!1},L3={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},F3={type:"object",properties:{catalogs:{type:"object",properties:{all:ze,services:ze,domains:ze,teams:ze,users:ze,apiDescriptions:ze,dataSchemas:ze,apiOperations:ze},additionalProperties:ze},entitiesTypes:{type:"object",properties:{service:ze,domain:ze,team:ze,user:ze,apiDescription:ze,apiOperation:ze,dataSchema:ze},additionalProperties:ze},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:ze},additionalProperties:!1}},entities:{type:"object",properties:{"**":ze},additionalProperties:ze}},additionalProperties:!1},Nw={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ze,cms:ze,reunite:ze,features:{type:"object",properties:{aiSearch:ze,mcp:ze},additionalProperties:!1},content:{type:"object",properties:{"**":ze},additionalProperties:ze},entitiesCatalog:F3},additionalProperties:ze},U3={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},z3={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},V3={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[U3,z3]}},additionalProperties:!1,required:["type","apiBaseUrl"]},B3={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},H3={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Om={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[B3,H3],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},K3={...Om,properties:{...Om.properties,type:{type:"string",const:"APIGEE_EDGE"}}},G3={type:"object",oneOf:[Om,K3,V3],discriminator:{propertyName:"type"}},W3={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:G3}}},JS={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},Y3={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},Q3={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},J3={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},X3={type:"object",properties:{requiresLogin:Rw,logoutReturnUrl:kw,residency:Iw,sso:Ow,idps:Tw,rbac:Nw},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},il={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:k3,seo:M3,rbac:Nw,apiFunctions:L3,requiresLogin:Rw,responseHeaders:{type:"object",additionalProperties:{type:"array",items:Y3}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",uiHint:"list",additionalProperties:Cw},...sl,ssoDirect:T3,sso:Ow,idps:Tw,residency:Iw,logoutReturnUrl:kw,access:X3,developerOnboarding:W3,removeAttribution:{type:"boolean"},i18n:JS,l10n:JS,metadata:q3,metadataGlobs:j3,ignore:{type:"array",items:{type:"string"}},theme:vn,reunite:g3,logo:nw,navbar:ow,products:iw,footer:sw,sidebar:aw,scripts:cw,links:pw,feedback:ja,search:lw,aiAssistant:uw,colorMode:dw,palette:Im,navigation:fw,codeSnippet:mw,markdown:hw,openapi:rl,graphql:el,asyncapi:Rm,analytics:gw,consent:LB,userMenu:vw,versionPicker:bw,breadcrumbs:xw,catalog:nl,entitiesCatalog:Sw,catalogClassic:nl,scorecard:ol,scorecardClassic:ol,scorecards:_w,mcp:Q3,skills:J3,recheck:P3,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:N3},not:{required:["sso","idps"]},additionalProperties:!0},Z3={...il,additionalProperties:!1},ps={$id:"root-redocly-config",...il,properties:{plugins:{type:"array",items:{type:"string"}},...il.properties,env:{type:"object",additionalProperties:Z3}},additionalProperties:!1},XS={type:"object",properties:{logo:vn.properties.logo,navbar:vn.properties.navbar,footer:vn.properties.footer,sidebar:vn.properties.sidebar,search:vn.properties.search,codeSnippet:vn.properties.codeSnippet,breadcrumbs:vn.properties.breadcrumbs,openapi:vn.properties.openapi,feedback:vn.properties.feedback,palette:Im,mockServer:il.properties.mockServer,analytics:{type:"object",properties:{ga:yw}}},additionalProperties:!0},fpe={$id:"product-config-override",type:"object",properties:{...XS.properties,apis:{type:"object",additionalProperties:Cw},theme:XS},additionalProperties:!1},e9=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],ut=rw({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),t9={type:"object",nodeTypeName:ut.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},r9={type:"object",nodeTypeName:ut.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},n9={type:"object",nodeTypeName:ut.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},o9={type:"object",nodeTypeName:ut.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},i9={type:"object",properties:{},nodeTypeName:ut.EntityMetadata,additionalProperties:!0},s9={type:"object",nodeTypeName:ut.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},a9={type:"object",nodeTypeName:ut.EntitySlackContact,properties:{channels:{type:"array",items:s9}},required:["channels"],additionalProperties:!1},c9={type:"object",nodeTypeName:ut.EntityContact,properties:{slack:a9},additionalProperties:!1},p9={type:"object",nodeTypeName:ut.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},l9={type:"object",nodeTypeName:ut.EntityRelation,properties:{type:{type:"string",enum:e9},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},uo={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:c9,links:{type:"array",nodeTypeName:ut.EntityLinkList,items:p9},relations:{type:"array",nodeTypeName:ut.EntityRelationList,items:l9},metadata:i9},mpe={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...uo,type:{type:"string",const:"user"},metadata:t9},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:ut.UserEntity},{type:"object",nodeTypeName:ut.ApiOperationEntity,properties:{...uo,type:{type:"string",const:"api-operation"},metadata:n9},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ut.DataSchemaEntity,properties:{...uo,type:{type:"string",const:"data-schema"},metadata:o9},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ut.ApiDescriptionEntity,properties:{...uo,type:{type:"string",const:"api-description"},metadata:r9},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ut.ServiceEntity,properties:{...uo,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ut.DomainEntity,properties:{...uo,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ut.TeamEntity,properties:{...uo,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},hpe={type:"object",nodeTypeName:ut.Entity,properties:{...uo},required:["key","title","type"],additionalProperties:!1};import dY from"node:path";var qw=["Name","Document","OperationDefinition","VariableDefinition","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","Variable","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","DirectiveExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","TypeCoordinate","MemberCoordinate","ArgumentCoordinate","DirectiveCoordinate","DirectiveArgumentCoordinate"];function cl(e){return e.includes("/")}var V$=un(Zy(),1);var eg;function lY(){return eg||(eg=new V$.Ajv2020({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0})),eg}function z$(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>lY().validate(o,r));return n===-1&&(n=0),t[n]}}function As(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);if(t.type==="string"||t.type==="number"||t.type==="integer"||t.type==="boolean"){let{default:n,format:o,...i}=t;return i}if(t.type==="object"&&!t.properties&&!t.oneOf){if(t.additionalProperties===void 0||t.additionalProperties===!0)return{type:"object"};if(t.additionalProperties===!1)return{type:"object",properties:{}}}if(t.allOf)throw new Error(`Unexpected allOf in ${e}.`);if(t.anyOf)throw new Error(`Unexpected anyOf in ${e}.`);if(T(t.properties)||T(t.additionalProperties)||T(t.items)&&(T(t.items.properties)||T(t.items.additionalProperties)||t.items.oneOf))return uY(e,t,r);if(t.oneOf)if(t.discriminator){let n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);let o={},i=t.oneOf.map((s,a)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${a} in oneOf.`);let c=s?.properties?.[n];if(!c||typeof c=="boolean")throw new Error(`Unexpected property '${c}' schema in ${e} at position ${a} in oneOf.`);let l=c.const,p=As(l,s,r);return typeof p=="string"&&(o[l]=p),p});return(s,a)=>{if(T(s)){let c=s[n];if(typeof c=="string"){let l=o[c];if(l&&r[l])return l}}return z$(t.oneOf,i)(s,a)}}else{let n=t.oneOf.map((o,i)=>As(e+"_"+i,o,r));return z$(t.oneOf,n)}return t}function uY(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);let n=t.nodeTypeName??e,o={};for(let[c,l]of Object.entries(t.properties||{}))o[c]=As(n+"."+c,l,r);let i;T(t.additionalProperties)&&(i=As(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let s;T(t.items)&&(T(t.items.properties)||T(t.items.additionalProperties)||t.items.oneOf)&&(s=As(e+"_items",t.items,r));let a=t.required;return t.oneOf&&t.oneOf.every(c=>!!c.required)&&(a=c=>{let l=t.oneOf.map(u=>[...t.required||[],...u.required]),p=l.findIndex(u=>u.every(f=>c[f]!==void 0));return p===-1&&(p=0),l[p]}),r[n]={properties:o,additionalProperties:i,items:s,required:a,description:t.description,documentationLink:t.documentationLink},n}function tg(e,t){let r={},n=As(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}var fY=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type","no-duplicated-tag-names","spec-ref-siblings"],mY=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-illogical-composition-keywords","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","no-mixed-number-range-constraints","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization","no-duplicated-tag-names","nullable-type-sibling","spec-no-invalid-tag-parents","spec-no-invalid-encoding-combinations","spec-discriminator-defaultMapping","spec-example-values","spec-querystring-parameters","spec-ref-siblings"],hY=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],yY=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],gY=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","spec-step-mutually-exclusive-fields","workflow-dependsOn","outputs-defined","parameters-unique","step-onSuccess-unique","step-onFailure-unique","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-both-scheme-and-scheme-name","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","x-security-scheme-name-reference"],vY=["info-contact","spec-ref-siblings"],bY=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],xY=["no-unused-types","type-description"],SY=["struct","no-unresolved-refs"],wY=[...fY,...mY,...hY,...yY,...gY,...vY,...bY,...xY,...SY],_Y=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],PY=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","media-type-examples-override","remove-unused-components"],B$=[...PY,..._Y],H$={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!pe(e)&&!dY.extname(e)?{type:"string"}:{...hc,directResolveAs:{name:"ConfigGovernance",...hc}},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends#extends"},plugins:{type:"array",items:{type:"string"}},rules:"Rules",oas2Rules:"Rules",oas3_0Rules:"Rules",oas3_1Rules:"Rules",oas3_2Rules:"Rules",async2Rules:"Rules",async3Rules:"Rules",arazzo1Rules:"Rules",arazzo1_1Rules:"Rules",overlay1Rules:"Rules",openrpc1Rules:"Rules",graphqlRules:"Rules",preprocessors:"Preprocessors",oas2Preprocessors:"Preprocessors",oas3_0Preprocessors:"Preprocessors",oas3_1Preprocessors:"Preprocessors",oas3_2Preprocessors:"Preprocessors",async2Preprocessors:"Preprocessors",async3Preprocessors:"Preprocessors",arazzo1Preprocessors:"Preprocessors",arazzo1_1Preprocessors:"Preprocessors",overlay1Preprocessors:"Preprocessors",openrpc1Preprocessors:"Preprocessors",decorators:"Decorators",oas2Decorators:"Decorators",oas3_0Decorators:"Decorators",oas3_1Decorators:"Decorators",oas3_2Decorators:"Decorators",async2Decorators:"Decorators",async3Decorators:"Decorators",arazzo1Decorators:"Decorators",arazzo1_1Decorators:"Decorators",overlay1Decorators:"Decorators",openrpc1Decorators:"Decorators"},hc={properties:H$},$Y=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...hc.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),EY={properties:{},additionalProperties:"ConfigApisProperties",description:"The `apis` configuration section is used when a project contains multiple API descriptions to set up different rules and settings for individual APIs. It allows defining specific configurations for each API, which must be identified by a unique name.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/apis"},AY=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Vi(hc.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),OY={properties:{headers:{type:"array",items:{type:"string"}}}},TY={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:z("ClientGeneratorOptions"),pagination:"ClientPagination"}},RY={properties:{},additionalProperties:{}},K$={properties:{style:{enum:["cursor","offset","page","link","body-link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},nextLink:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},kY={properties:{...K$.properties,exclude:{type:"array",items:{type:"string"}},operations:z("ClientPaginationRule")}},IY={properties:{},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules",additionalProperties:(e,t)=>{if(t.startsWith("rule/"))return typeof e=="string"?{enum:["error","warn","off"]}:"ConfigurableRule";if(wY.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(cl(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},CY={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Built-in rules are the default linting rules included with Redocly CLI. They enforce widely accepted API design standards and best practices. Each built-in rule has a default severity of error, but you can change the severity or turn off any built-in rule in your configuration file.",documentationLink:"https://redocly.com/docs/cli/rules/built-in-rules"},NY={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Custom rules are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-rules"},qY={properties:{},description:"Decorators define transformations that can be applied to the API document during the bundle step.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/decorators",additionalProperties:(e,t)=>{if(B$.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(cl(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},jY={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},DY={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},MY={properties:{},description:"Preprocessors define transformations that can be applied to the API document before bundling.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/preprocessors",additionalProperties:(e,t)=>{if(B$.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(cl(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},LY={properties:{},additionalProperties:{},description:"Built-in preprocessors are the default preprocessors included with Redocly CLI. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},FY={properties:{},additionalProperties:{},description:"Custom preprocessors are defined by users via plugins. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"};function UY(e){return{properties:{type:{enum:[...new Set(["any",...e,"SpecExtension"])],description:"REQUIRED. Locates the API node type that the lint command evaluates.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"},property:t=>Array.isArray(t)?{type:"array",items:{type:"string"},description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"}:t===null?null:{type:"string",description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"},filterInParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that locates where assertions run. An example value given the subject Operation could be filterInParentKeys: [get, put] means that only GET and PUT operations are evaluated for the assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},filterOutParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that excludes where assertions run. An example value given the subject Operation could be filterOutParentKeys: [delete] means that all operations except DELETE operations are evaluated for the assertions."},matchParentKeys:{type:"string",description:"Applies a regex pattern to the subject's parent keys to determine where assertions run. An example value given the subject Operation could be matchParentKeys: /^p/ means that POST, PUT, and PATCH operations are evaluated for the assertions."}},required:["type"],description:"REQUIRED. Narrows the subject further by specifying its type, and optionally property, filterParentKeys, etc.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"}}function zY(e){return{...e[At.ScorecardClassicLevel],properties:{...e[At.ScorecardClassicLevel]?.properties,...H$}}}var VY={properties:{enum:{type:"array",items:{type:"string"},description:"Asserts a value is within a predefined list of values. Providing a single value in a list is an equality check.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#enum-example"},pattern:{type:"string",description:"Asserts a value matches a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#pattern-example"},notPattern:{type:"string",description:"Asserts a value doesn't match a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#notpattern-example"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"],description:"Asserts a casing style. Supported styles are: camelCase, kebab-case, snake_case, PascalCase, MACRO_CASE, COBOL-CASE, flatcase.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#casing-example"},mutuallyExclusive:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually exclusive.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyexclusive-example"},mutuallyRequired:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually required.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},required:{type:"array",items:{type:"string"},description:"Asserts all listed values are defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#required-example"},requireAny:{type:"array",items:{type:"string"},description:"Asserts that at least one of the listed properties (key names only) is defined. ",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#requireany-example"},contains:{type:"array",items:{type:"string"},description:"Asserts that all listed strings are included in the value array.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#contains-example"},disallowed:{type:"array",items:{type:"string"},description:"Asserts all listed values are not defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#disallowed-example"},defined:{type:"boolean",description:"Asserts a property is defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#defined-example"},nonEmpty:{type:"boolean",description:"Asserts a property is not empty.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#nonempty-example"},minLength:{type:"integer",description:"Asserts a minimum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#minlength-example"},maxLength:{type:"integer",description:"Asserts a maximum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#maxlength-example"},schema:"Schema",ref:e=>typeof e=="string"?{type:"string",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"}:{type:"boolean",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"},const:e=>{if(typeof e=="string")return{type:"string",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="number")return{type:"number",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="boolean")return{type:"boolean",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"}}},additionalProperties:(e,t)=>{if(/^\w+\/\w+$/.test(t))return{}},description:"A minimum of one assertion property is required to be defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#assertion-object"},BY={properties:{subject:"Subject",assertions:"Assertions"},required:["subject","assertions"],description:"The where object is part of a where list which must be defined in order from the root node. Each node can only be used in one where object for each assertion. Each subsequent node must be a descendant of the previous one. Rules that use multiple where objects must target each one on a different node. However, the same node could be used in the last where object and in the root subject object. Nodes may be skipped in between the subject node types of the where list and those defined in the root subject type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#where-object"},HY={properties:{subject:"Subject",assertions:"Assertions",where:V("Where"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},reference:{type:"string"},severity:{enum:["error","warn","off"]}},required:["subject","assertions"],description:"Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object"};function Bl(e,t){let r=Bi.flatMap(o=>{let i=zo(o),s=t?t.extendTypes(i,o):i;return Object.keys(s)}),{ctx:n}=tg("rootRedoclyConfigSchema",e);return{...KY,ConfigRoot:$Y(n),ConfigApisProperties:AY(n),Subject:UY([...r,...qw]),...n,[At.ScorecardClassicLevel]:zY(n)}}var KY={ConfigurableRule:HY,ConfigApis:EY,ConfigGovernance:hc,ConfigHTTP:OY,Client:TY,ClientGeneratorOptions:RY,ClientPagination:kY,ClientPaginationRule:K$,Where:BY,BuiltinRule:CY,CustomRule:NY,BuiltinDecorator:jY,CustomDecorator:DY,BuiltinPreprocessor:LY,CustomPreprocessor:FY,Schema:be.Schema,SchemaProperties:be.SchemaProperties,PatternProperties:be.PatternProperties,NamedSchemas:be.NamedSchemas,DependentRequired:be.DependentRequired,Discriminator:be.Discriminator,DiscriminatorMapping:be.DiscriminatorMapping,ExternalDocs:be.ExternalDocs,Xml:be.Xml,Rules:IY,Decorators:qY,Preprocessors:MY,Assertions:VY},{theme:mue,...GY}=ps.properties,WY={...ps,properties:GY},G$=Bl(WY),bo=Kr(G$);import zZ from"node:path";import*as db from"node:fs";import FZ from"node:module";import*as tr from"node:path";import*as m1 from"node:url";function Hl(e){return!et(e)}var W$={};var Y$={};var Q$={};function Kl(e){return Array.isArray(e)&&e.length===0}function Gl(e,t,r){let{parent:n,key:o}=t,i=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(B(e[s])){let a=t.resolve(e[s]);r(a.node)&&(e.splice(s,1),i=!0,s--)}r(e[s])&&(e.splice(s,1),i=!0,s--)}else if(T(e))for(let s of Object.keys(e)){if(B(e[s])){let a=t.resolve(e[s]);r(a.node)&&(delete e[s],i=!0)}r(e[s])&&(delete e[s],i=!0)}i&&(vr(e)||Kl(e))&&delete n[o]}function xo(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=J$(t),e=J$(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function J$(e){return Array.isArray(e)?e:[e]}var YY="any",Wl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||YY;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let p of s){let u=B(a[p])?c.resolve(a[p]).node:a[p];if(T(u)){let f=u[e];xo(f,t,o)||delete a[p]}}s.some(p=>a[p])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];xo(c,t,o)||delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>s?.[e]&&!xo(s?.[e],t,o);return{any:{enter:(s,a)=>{Gl(s,a,i)}}}};var QY="any",Yl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||QY;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let p of s){let u=B(a[p])?c.resolve(a[p]).node:a[p];if(T(u)){let f=u[e];xo(f,t,o)&&delete a[p]}}s.some(p=>a[p])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];xo(c,t,o)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>xo(s?.[e],t,o);return{any:{enter:(s,a)=>{Gl(s,a,i)}}}};import*as Ql from"node:fs";import*as Jl from"node:path";function rg(e){let t=Ql.readFileSync(e,"utf-8");return Ho(t)}function Qn(e,t){return pe(e)||t===void 0?e:Jl.resolve(Jl.dirname(t),e)}function Os(e){return Ql.readFileSync(e,"utf-8")}var Xl=({filePath:e})=>({Info:{leave(t,{report:r,location:n,config:o}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=Os(Qn(e,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for "info.description".
123
123
  ${i.message}`,location:n.child("description")})}}}});var Zl=e=>({Info:{leave(t){if(!T(e))throw new Error('"info-override" decorator should be called with an object');let{severity:r,...n}=e;Object.assign(t,n)}}});var eu=({operationIds:e})=>({Operation:{leave(t,{report:r,location:n,config:o}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');let i=t.operationId;if(e[i])try{let s=e[i];t.description=Os(Qn(s,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${i}".
124
124
  ${s.message}`,location:n.child("operationId").key()})}}}});var JY="x-internal",tu=({internalFlagProperty:e=JY})=>{function t(n,o,i){let{parent:s,key:a}=o,c=!1;if(Array.isArray(n))for(let l=0;l<n.length;l++){if(B(n[l])&&o.resolve(n[l]).node?.[e]){if(T(s.discriminator?.mapping))for(let u in s.discriminator.mapping)i?.[u]===n[l].$ref&&delete s.discriminator.mapping[u];n.splice(l,1),c=!0,l--}n[l]?.[e]&&(n.splice(l,1),c=!0,l--)}else if(T(n))for(let l of Object.keys(n)){if(B(n[l])){let p=o.resolve(n[l]);T(p.node)&&p.node?.[e]&&(delete n[l],c=!0)}T(n[l])&&n[l]?.[e]&&(delete n[l],c=!0)}c&&(vr(n)||Kl(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,o)=>{t(n,o,r)}}}};var ru=({tagNames:e})=>({Tag:{leave(t,{report:r,config:n}){if(!e)throw new Error('Parameter "tagNames" is not provided for "tag-description-override" rule');let o=e[t.name];if(o)try{t.description=Os(Qn(o,n?.configPath))}catch(i){r({message:`Failed to read markdown override file for tag "${t.name}".
125
125
  ${i.message}`})}}}});var X$={"operation-description-override":eu,"tag-description-override":ru,"info-description-override":Xl,"info-override":Zl,"remove-x-internal":tu,"filter-in":Wl,"filter-out":Yl,"remove-unused-components":Hp};var eE=({operationIds:e})=>({Operation:{enter(t,r){let n=t.operationId;if(!n)return;let o=e[n];if(o){if(o.responses&&t.responses)for(let i of Object.keys(o.responses)){let s=Z$(t.responses[i],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(o.responses[i]).forEach(a=>{let c=o.responses[i][a];s.content[a]={...s.content[a],examples:rg(Qn(c,r.config?.configPath))}}),t.responses[i]=s)}if(o.request&&t.requestBody){let i=Z$(t.requestBody,r.resolve);if(!i)return;i.content=i.content?i.content:{},Object.keys(o.request).forEach(s=>{let a=o.request[s];i.content[s]={...i.content[s],examples:rg(Qn(a,r.config?.configPath))}}),t.requestBody=i}}}}});function Z$(e,t){if(!B(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}var tE={"operation-description-override":eu,"tag-description-override":ru,"info-description-override":Xl,"info-override":Zl,"remove-x-internal":tu,"filter-in":Wl,"filter-out":Yl,"media-type-examples-override":eE,"remove-unused-components":Kp};var rE={};var nE={};var oE=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;let o=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(let i of e)o.includes(i?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${o.map(s=>`\`${s}\``).join(" or ")}.`,location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});function yc(e){return e?Object.keys(e):[]}function mi(e){let t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}function gc(e,t){let r=new Set(t),n=0;for(let o of e)r.has(o)&&n++;return n}function iE(e,t){let r=t.direction||t,n=t.property;for(let o=1;o<e.length;o++){let i=e[o],s=e[o-1];if(n){let c=e[o][n],l=e[o-1][n];if(!c||!l)return!1;i=c,s=l}if(typeof i=="string"&&typeof s=="string"&&(i=i.toLowerCase(),s=s.toLowerCase()),!(r==="asc"?i>=s:i<=s))return!1}return!0}var FO=un(Zy(),1),UO=un(fE(),1),zO=un(MO(),1);var IX=["title","description","example","examples","default","deprecated"];function LO(e){return e==="draft4"?"id":"$id"}function CX(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}var On=class{instances={};sharedValidators=new Map;validate(t,r,n){let{schemaLoc:o,instancePath:i,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:l}=n,p=CX(l),u=this.getValidator(r,o,s,a,p);if(!u)return{valid:!0,errors:[]};let f={instancePath:i,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!u.call(c??{},t,f),errors:(u.errors||[]).map(h)};function h(y){let b=y.message,x=y.keyword==="enum"?y.params.allowedValues:void 0;x&&(b+=` ${x.map(E=>`"${E}"`).join(", ")}`),y.keyword==="type"&&(b=`type ${b}`);let w=y.instancePath.substring(i.length+1),S=w.substring(w.lastIndexOf("/")+1);if(S&&(b=`\`${S}\` property ${b}`),y.keyword==="additionalProperties"||y.keyword==="unevaluatedProperties"){let E=y.params.additionalProperty||y.params.unevaluatedProperty;b=`${b} \`${E}\``,y.instancePath+="/"+dn(E)}return{...y,message:b,suggest:x}}}getAjv(t,r){if(!this.instances[r]){let n=LO(r),o={schemaId:n,meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,passContext:!0,logger:!1,loadSchemaSync(i,s,a){let c=decodeURI(i.split("#")[0]),l=t({$ref:s},c);return!l||!l.location?!1:{[n]:encodeURI(l.location.source.absoluteRef)+"#"+a,...l.node}}};this.instances[r]=r==="2020"?new FO.default(o):new UO.default(o),(0,zO.default)(this.instances[r])}return this.instances[r]}getValidator(t,r,n,o,i){let s=this.getAjv(n,i);if(B(t)&&!so(t)){let p=n(t,r.source.absoluteRef);p.location&&T(p.node)&&(t=p.node,r=p.location)}let a=T(t)?NX(t,i):void 0;if(a){let p=this.sharedValidators.get(a);if(p)return p;s.setDefaultUnevaluatedProperties(o);let u=s.compile(t);return this.sharedValidators.set(a,u),u}let c=encodeURI(r.absolutePointer),l=LO(i);return s.getSchema(c)||(s.setDefaultUnevaluatedProperties(o),s.addSchema({[l]:c,...t},c)),s.getSchema(c)}};function NX(e,t){let r={...e};for(let o of IX)delete r[o];let n=JSON.stringify(r);if(!n.includes('"$ref"'))return`${t}:${n}`}var qu=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),ju=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),VO=new WeakMap,qX=new qt(new hn("assertion",""),"#/schema"),Tn={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||T(e))return[];let o=Array.isArray(e)?e:[e],i=mi(t);return o.map(s=>!i?.test(s)&&{message:`${JSON.stringify(s)} should match a regex ${t}`,location:et(e)?r:T(n)?r.child(s).key():r.key()}).filter(yt)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||T(e))return[];let o=Array.isArray(e)?e:[e],i=mi(t);return o.map(s=>i?.test(s)&&{message:`${JSON.stringify(s)} should not match a regex ${t}`,location:et(e)?r:T(n)?r.child(s).key():r.key()}).filter(yt)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||T(e)?[]:(Array.isArray(e)?e:[e]).map(o=>!t.includes(o)&&{message:`${JSON.stringify(o)} should be one of the predefined values`,location:et(e)?r:r.child(o).key()}).filter(yt),defined:(e,t=!0,{baseLocation:r})=>{let n=typeof e<"u";return(t?n:!n)?[]:[{message:t?"Should be defined":"Should be not defined",location:r}]},required:(e,t,{baseLocation:r})=>t.map(n=>!e.includes(n)&&{message:`${n} is required`,location:r.key()}).filter(yt),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||T(e))return[];let n=Array.isArray(e)?e:[e];return t.map(o=>!n.includes(o)&&{message:`${o} should be in the list`,location:r}).filter(yt)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||T(e)?[]:(Array.isArray(e)?e:[e]).map(o=>t.includes(o)&&{message:`${JSON.stringify(o)} is disallowed`,location:et(e)?r:r.child(o).key()}).filter(yt),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`${JSON.stringify(n)} should be equal ${JSON.stringify(t)}`,location:et(e)?r:r.child(n).key()}).filter(yt):e!==t?[{message:`${JSON.stringify(e)} should be equal ${JSON.stringify(t)}`,location:r}]:[],nonEmpty:(e,t=!0,{baseLocation:r})=>{let n=typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0;return(t?!n:n)?[]:[{message:t?"Should not be empty":"Should be empty",location:r}]},minLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length>=t?[]:[{message:`Should have at least ${t} characters`,location:r}],maxLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length<=t?[]:[{message:`Should have at most ${t} characters`,location:r}],casing:(e,t,{baseLocation:r})=>{if(typeof e>"u"||T(e))return[];let n=Array.isArray(e)?e:[e],o={camelCase:/^[a-z][a-zA-Z0-9]*$/g,"kebab-case":/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/g,snake_case:/^([a-z][a-z0-9]*)(_[a-z0-9]+)*$/g,PascalCase:/^[A-Z][a-zA-Z0-9]+$/g,MACRO_CASE:/^([A-Z][A-Z0-9]*)(_[A-Z0-9]+)*$/g,"COBOL-CASE":/^([A-Z][A-Z0-9]*)(-[A-Z0-9]+)*$/g,flatcase:/^[a-z][a-z0-9]+$/g};return n.map(i=>!i.match(o[t])&&{message:`${JSON.stringify(i)} should use ${t}`,location:et(e)?r:r.child(i).key()}).filter(yt)},sortOrder:(e,t,{baseLocation:r})=>{let n=t.direction||t,o=t.property;return Array.isArray(e)&&e.length>0&&T(e[0])&&!o?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||iE(e,t)?[]:[{message:`Should be sorted in ${n==="asc"?"an ascending":"a descending"} order${o?` by property ${o}`:""}`,location:r}]},mutuallyExclusive:(e,t,{baseLocation:r})=>gc(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(gc(e,t)>0?gc(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>gc(e,t)>=1?[]:[{message:`Should have any of ${t.join(", ")}`,location:r.key()}],ref:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof n>"u")return[];let o=n.hasOwnProperty("$ref");if(typeof t=="boolean")return(t?o:!o)?[]:[{message:t?"should use $ref":"should not use $ref",location:o?r:r.key()}];let i=mi(t);return o&&i?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:o?r:r.key()}]},schema:(e,t,{baseLocation:r,rawValue:n,resolve:o})=>{if(typeof e>"u")return[];if(typeof t=="boolean")return t?[]:[{message:"boolean schema is false",location:r}];let i=VO.get(t);i||(i=new On,VO.set(t,i));let s=B(n)&&o(n)?.location||r,a;try{({errors:a}=i.validate(e,t,{schemaLoc:qX,instancePath:"",resolve:o,allowAdditionalProperties:!1,specVersion:"oas3_1"}))}catch(c){throw new Error(`the 'schema' assertion has an invalid schema: ${c.message}`)}return a.map(c=>{let l=c.instancePath?Gr(s.pointer,c.instancePath.slice(1)):s.pointer,p=new qt(s.source,l),u=c.keyword==="additionalProperties"||c.keyword==="unevaluatedProperties";return{message:c.message,location:u?p.key():p}})}};function BO(e){return(t,r,n)=>e.call(null,t,r,n)}var Gv={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function HO(e){let{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&mi(n),i=o&&(c=>o.test(c.toString())),s=Array.isArray(t)&&(c=>t.includes(c.toString())),a=Array.isArray(r)&&(c=>!r.includes(c.toString()));return[i,s,a].filter(yt)}function GO(e){let t=yc(Tn).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:qu.has(o),runsOnValues:ju.has(o)})),r=t.find(o=>o.runsOnKeys&&!o.runsOnValues),n=t.find(o=>o.runsOnValues&&!o.runsOnKeys);if(n&&!e.subject.property)throw new Error(`The '${n.name}' assertion can't be used on all keys. Please provide a single property.`);if(r&&e.subject.property)throw new Error(`The '${r.name}' assertion can't be used on properties. Please remove the 'property' key.`);return t}function WO({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function YO(e,t,r){let n=WO(e),o=[];for(let i of t)if(n.length)for(let s of n)o.push(KO({assert:i,ctx:r,assertionProperty:s}));else o.push(KO({assert:i,ctx:r}));return o.flat()}function QO(e,t){let r=HO(e.subject),n=r.length?(c,l)=>!r.every(p=>p(l)):void 0,o={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return o;let i={},s=i,a=e.where;for(let c=0;c<a.length;c++){let l=a[c];if(!et(l.subject?.type))throw new Error(`${e.assertionId} -> where -> [${c}]: 'type' (String) is required`);if(!T(l.assertions))throw new Error(`${e.assertionId} -> where -> [${c}]: 'assertions' (Object) is required`);let p=HO(l.subject),u=GO(l),f=(h,y,b)=>!p.every(x=>x(y))||!!YO(l,u,{...b,node:h}).length,m={...(p.length||u.length)&&{skip:f}};l.subject.type===e.subject.type&&c===a.length-1?o[e.subject.type]={enter:t,...m.skip&&{skip:m.skip}||n&&{skip:(h,y,b)=>!!(m.skip?.(h,y,b)||n?.(h,y))}}:i=i[l.subject?.type]=m}return i[e.subject.type]=o[e.subject.type],s}function JO(e,t){return(r,n)=>{let o=WO(t),i=`${ce.blue(e)} failed because the ${ce.blue(t.subject.type)} ${ce.blue(o.join(", "))} didn't meet the assertions: ${Gv.problems}`.replace(/ +/g," "),s=YO(t,GO(t),{...n,node:r});if(s.length)for(let a of jX(s)){let c=t.message||i,p={problems:Wv(a),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:Yv(n.location.source.absoluteRef)};n.report({message:Qv(c,p),location:DX(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function jX(e){let t={};for(let r of e){if(!r.location)continue;let n=r.location.absolutePointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function DX(e){return e.length?e[0].location:void 0}function Wv(e){return e.length===1?e[0].message??"":e.map(t=>`