@redocly/reference-docs 2.22.0 → 2.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var Cc=Object.defineProperty,Tc=Object.defineProperties;var Ac=Object.getOwnProp
2
2
  * Redocly Reference Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "2.22.0"
5
+ * Version: "2.22.1"
6
6
  */(function(fi,ui){typeof exports=="object"&&typeof module=="object"?module.exports=ui(require("null")):typeof define=="function"&&define.amd?define(["null"],ui):typeof exports=="object"?exports.RedoclyReferenceDocs=ui(require("null")):fi.RedoclyReferenceDocs=ui(fi.null)})(this,function(vi){return(()=>{var fi={43675:function(D,c,e){"use strict";var r=this&&this.__awaiter||function(v,$,S,F){function H(se){return se instanceof S?se:new S(function(ue){ue(se)})}return new(S||(S=Promise))(function(se,ue){function ne(Ee){try{Ve(F.next(Ee))}catch(oe){ue(oe)}}function Se(Ee){try{Ve(F.throw(Ee))}catch(oe){ue(oe)}}function Ve(Ee){Ee.done?se(Ee.value):H(Ee.value).then(ne,Se)}Ve((F=F.apply(v,$||[])).next())})};Object.defineProperty(c,"__esModule",{value:!0}),c.mapTypeToComponent=c.bundleDocument=c.bundle=c.OasVersion=void 0;const n=e(72307),s=e(44182),o=e(68065),a=e(85241),h=e(80388),u=e(22608),l=e(45220),d=e(69443),p=e(71510),g=e(27468),y=e(75030),b=e(20348),m=e(10771),E=e(81094),x=e(54508),T=e(16350);var w;(function(v){v.Version2="oas2",v.Version3_0="oas3_0",v.Version3_1="oas3_1"})(w=c.OasVersion||(c.OasVersion={}));function R(v){return r(this,void 0,void 0,function*(){const{ref:$,doc:S,externalRefResolver:F=new s.BaseResolver(v.config.resolve),base:H=null}=v;if(!($||S))throw new Error(`Document or reference is required.
7
7
  `);const se=S!==void 0?S:yield F.resolveDocument(H,$,!0);if(se instanceof Error)throw se;return P(Object.assign(Object.assign({document:se},v),{config:v.config.lint,externalRefResolver:F}))})}c.bundle=R;function P(v){return r(this,void 0,void 0,function*(){const{document:$,config:S,customTypes:F,externalRefResolver:H,dereference:se=!1,skipRedoclyRegistryRefs:ue=!1,removeUnusedComponents:ne=!1}=v,Se=p.detectOpenAPI($.parsed),Ve=p.openAPIMajor(Se),Ee=S.getRulesForOasVersion(Ve),oe=l.normalizeTypes(S.extendTypes((F!=null?F:Ve===p.OasMajorVersion.Version3)?Se===w.Version3_1?u.Oas3_1Types:a.Oas3Types:h.Oas2Types,Se),S),ge=y.initRules(Ee,S,"preprocessors",Se),K=y.initRules(Ee,S,"decorators",Se),Y={problems:[],oasVersion:Se,refTypes:new Map,visitorsData:{}};ne&&K.push({severity:"error",ruleId:"remove-unused-components",visitor:Ve===p.OasMajorVersion.Version2?x.RemoveUnusedComponents({}):T.RemoveUnusedComponents({})});const q=yield s.resolveDocument({rootDocument:$,rootType:oe.DefinitionRoot,externalRefResolver:H}),Pe=o.normalizeVisitors([...ge,{severity:"error",ruleId:"bundler",visitor:B(Ve,se,ue,$,q)},...K],oe);return d.walkDocument({document:$,rootType:oe.DefinitionRoot,normalizedVisitors:Pe,resolvedRefMap:q,ctx:Y}),{bundle:$,problems:Y.problems.map(Re=>S.addProblemToIgnore(Re)),fileDependencies:H.getFiles(),rootType:oe.DefinitionRoot,refTypes:Y.refTypes,visitorsData:Y.visitorsData}})}c.bundleDocument=P;function _(v,$){switch($){case p.OasMajorVersion.Version3:switch(v){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";default:return null}case p.OasMajorVersion.Version2:switch(v){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}}}c.mapTypeToComponent=_;function B(v,$,S,F,H){let se;const ue={ref:{leave(ge,K,Y){if(!Y.location||Y.node===void 0){b.reportUnresolvedRef(Y,K.report,K.location);return}if(Y.location.source===F.source&&Y.location.source===K.location.source&&K.type.name!=="scalar"&&!$||S&&E.isRedoclyRegistryURL(ge.$ref))return;const q=_(K.type.name,v);q?$?(Ve(q,Y,K),Se(ge,Y,K)):(ge.$ref=Ve(q,Y,K),ne(ge,Y,K)):Se(ge,Y,K)}},DefinitionRoot:{enter(ge){v===p.OasMajorVersion.Version3?se=ge.components=ge.components||{}:v===p.OasMajorVersion.Version2&&(se=ge)}}};v===p.OasMajorVersion.Version3&&(ue.DiscriminatorMapping={leave(ge,K){for(const Y of Object.keys(ge)){const q=ge[Y],Pe=K.resolve({$ref:q});if(!Pe.location||Pe.node===void 0){b.reportUnresolvedRef(Pe,K.report,K.location.child(Y));return}const Re=_("Schema",v);$?Ve(Re,Pe,K):ge[Y]=Ve(Re,Pe,K)}}});function ne(ge,K,Y){const q=s.makeRefId(Y.location.source.absoluteRef,ge.$ref);H.set(q,{document:F,isRemote:!1,node:K.node,nodePointer:ge.$ref,resolved:!0})}function Se(ge,K,Y){m.isPlainObject(K.node)?(delete ge.$ref,Object.assign(ge,K.node)):Y.parent[Y.key]=K.node}function Ve(ge,K,Y){se[ge]=se[ge]||{};const q=oe(K,ge,Y);return se[ge][q]=K.node,v===p.OasMajorVersion.Version3?`#/components/${ge}/${q}`:`#/${ge}/${q}`}function Ee(ge,K,Y){var q;return g.isRef(ge)&&((q=Y.resolve(ge).location)===null||q===void 0?void 0:q.absolutePointer)===K.location.absolutePointer?!0:n(ge,K.node)}function oe(ge,K,Y){const[q,Pe]=[ge.location.source.absoluteRef,ge.location.pointer],Re=se[K];let he="";const Le=Pe.slice(2).split("/").filter(Boolean);for(;Le.length>0;)if(he=Le.pop()+(he?`-${he}`:""),!Re||!Re[he]||Ee(Re[he],ge,Y))return he;if(he=g.refBaseName(q)+(he?`_${he}`:""),!Re[he]||Ee(Re[he],ge,Y))return he;const ze=he;let ft=2;for(;Re[he]&&!Ee(Re[he],ge,Y);)he=`${ze}-${ft}`,ft++;return Re[he]||Y.report({message:`Two schemas are referenced with the same name but different content. Renamed ${ze} to ${he}.`,location:Y.location,forceSeverity:"warn"}),he}return ue}},76877:(D,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default={rules:{"info-description":"error","info-contact":"error","info-license":"error","info-license-url":"error","tag-description":"error","tags-alphabetical":"error","parameter-description":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-path-trailing-slash":"error","path-segment-plural":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error",assertions:"error","operation-operationId":"error","operation-summary":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-security-defined":"error","operation-singular-tag":"error","no-unresolved-refs":"error","no-enum-type-mismatch":"error","boolean-parameter-prefixes":"error","paths-kebab-case":"error","no-http-verbs-in-paths":"error","path-excludes-patterns":{severity:"error",patterns:[]},"request-mime-type":"error",spec:"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error"},oas3_0Rules:{"no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-servers-empty-enum":"error"},oas3_1Rules:{"no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-servers-empty-enum":"error"}}},76242:(D,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.defaultPlugin=c.builtInConfigs=void 0;const r=e(88057),n=e(76877),s=e(59016),o=e(10226),a=e(57523),h=e(10226),u=e(57523),l=e(1753),d=e(77060);c.builtInConfigs={recommended:r.default,minimal:s.default,all:n.default,"redocly-registry":{decorators:{"registry-dependencies":"on"}}},c.defaultPlugin={id:"",rules:{oas3:o.rules,oas2:a.rules},preprocessors:{oas3:h.preprocessors,oas2:u.preprocessors},decorators:{oas3:l.decorators,oas2:d.decorators},configs:c.builtInConfigs}},17040:function(D,c,e){"use strict";var r=this&&this.__awaiter||function(P,_,B,v){function $(S){return S instanceof B?S:new B(function(F){F(S)})}return new(B||(B=Promise))(function(S,F){function H(ne){try{ue(v.next(ne))}catch(Se){F(Se)}}function se(ne){try{ue(v.throw(ne))}catch(Se){F(Se)}}function ue(ne){ne.done?S(ne.value):$(ne.value).then(H,se)}ue((v=v.apply(P,_||[])).next())})},n=this&&this.__rest||function(P,_){var B={};for(var v in P)Object.prototype.hasOwnProperty.call(P,v)&&_.indexOf(v)<0&&(B[v]=P[v]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,v=Object.getOwnPropertySymbols(P);$<v.length;$++)_.indexOf(v[$])<0&&Object.prototype.propertyIsEnumerable.call(P,v[$])&&(B[v[$]]=P[v[$]]);return B};Object.defineProperty(c,"__esModule",{value:!0}),c.resolvePreset=c.resolveLint=c.resolveApis=c.resolvePlugins=c.resolveConfig=void 0;const s=e(26470),o=e(9485),a=e(27468),h=e(44182),u=e(76242),l=e(2565),d=e(10771),p=e(63777);function g(P,_){var B,v,$,S,F;return r(this,void 0,void 0,function*(){if((v=(B=P.lint)===null||B===void 0?void 0:B.extends)===null||v===void 0?void 0:v.some(d.isNotString))throw new Error("Error configuration format not detected in extends value must contain strings");const H=new h.BaseResolver(l.getResolveConfig(P.resolve)),se=(S=($=P==null?void 0:P.lint)===null||$===void 0?void 0:$.extends)!==null&&S!==void 0?S:["recommended"],ue=!((F=P==null?void 0:P.lint)===null||F===void 0?void 0:F.extends),ne=Object.assign(Object.assign({},P==null?void 0:P.lint),{extends:se,recommendedFallback:ue}),Se=yield b({rawConfig:Object.assign(Object.assign({},P),{lint:ne}),configPath:_,resolver:H}),Ve=yield E({lintConfig:ne,configPath:_,resolver:H});return new p.Config(Object.assign(Object.assign({},P),{apis:Se,lint:Ve}),_)})}c.resolveConfig=g;function y(P,_=""){if(!P)return[];const B=require,v=new Map;return P.map($=>{if(d.isString($)&&a.isAbsoluteUrl($))throw new Error(o.red("We don't support remote plugins yet."));const S=d.isString($)?B(s.resolve(s.dirname(_),$)):$,F=S.id;if(typeof F!="string")throw new Error(o.red(`Plugin must define \`id\` property in ${o.blue($.toString())}.`));if(v.has(F)){const se=v.get(F);throw new Error(o.red(`Plugin "id" must be unique. Plugin ${o.blue($.toString())} uses id "${o.blue(F)}" already seen in ${o.blue(se)}`))}v.set(F,$.toString());const H=Object.assign(Object.assign({id:F},S.configs?{configs:S.configs}:{}),S.typeExtension?{typeExtension:S.typeExtension}:{});if(S.rules){if(!S.rules.oas3&&!S.rules.oas2)throw new Error(`Plugin rules must have \`oas3\` or \`oas2\` rules "${$}.`);H.rules={},S.rules.oas3&&(H.rules.oas3=l.prefixRules(S.rules.oas3,F)),S.rules.oas2&&(H.rules.oas2=l.prefixRules(S.rules.oas2,F))}if(S.preprocessors){if(!S.preprocessors.oas3&&!S.preprocessors.oas2)throw new Error(`Plugin \`preprocessors\` must have \`oas3\` or \`oas2\` preprocessors "${$}.`);H.preprocessors={},S.preprocessors.oas3&&(H.preprocessors.oas3=l.prefixRules(S.preprocessors.oas3,F)),S.preprocessors.oas2&&(H.preprocessors.oas2=l.prefixRules(S.preprocessors.oas2,F))}if(S.decorators){if(!S.decorators.oas3&&!S.decorators.oas2)throw new Error(`Plugin \`decorators\` must have \`oas3\` or \`oas2\` decorators "${$}.`);H.decorators={},S.decorators.oas3&&(H.decorators.oas3=l.prefixRules(S.decorators.oas3,F)),S.decorators.oas2&&(H.decorators.oas2=l.prefixRules(S.decorators.oas2,F))}return H}).filter(d.notUndefined)}c.resolvePlugins=y;function b({rawConfig:P,configPath:_="",resolver:B}){var v,$;return r(this,void 0,void 0,function*(){const{apis:S={},lint:F={}}=P;let H={};for(const[se,ue]of Object.entries(S||{})){if(($=(v=ue.lint)===null||v===void 0?void 0:v.extends)===null||$===void 0?void 0:$.some(d.isNotString))throw new Error("Error configuration format not detected in extends value must contain strings");const ne=w(F,ue.lint),Se=yield E({lintConfig:ne,configPath:_,resolver:B});H[se]=Object.assign(Object.assign({},ue),{lint:Se})}return H})}c.resolveApis=b;function m({lintConfig:P,configPath:_="",resolver:B=new h.BaseResolver},v=[],$=[]){var S,F,H;return r(this,void 0,void 0,function*(){if(v.includes(_))throw new Error(`Circular dependency in config file: "${_}"`);const se=l.getUniquePlugins(y([...(P==null?void 0:P.plugins)||[],u.defaultPlugin],_)),ue=(S=P==null?void 0:P.plugins)===null||S===void 0?void 0:S.filter(d.isString).map(ge=>s.resolve(s.dirname(_),ge)),ne=a.isAbsoluteUrl(_)?_:_&&s.resolve(_),Se=yield Promise.all(((F=P==null?void 0:P.extends)===null||F===void 0?void 0:F.map(ge=>r(this,void 0,void 0,function*(){if(!a.isAbsoluteUrl(ge)&&!s.extname(ge))return x(ge,se);const K=a.isAbsoluteUrl(ge)?ge:a.isAbsoluteUrl(_)?new URL(ge,_).href:s.resolve(s.dirname(_),ge),Y=yield T(K,B);return yield m({lintConfig:Y,configPath:K,resolver:B},[...v,ne],$)})))||[]),Ve=l.mergeExtends([...Se,Object.assign(Object.assign({},P),{plugins:se,extends:void 0,extendPaths:[...v,ne],pluginPaths:ue})]),{plugins:Ee=[]}=Ve,oe=n(Ve,["plugins"]);return Object.assign(Object.assign({},oe),{extendPaths:(H=oe.extendPaths)===null||H===void 0?void 0:H.filter(ge=>ge&&!a.isAbsoluteUrl(ge)),plugins:l.getUniquePlugins(Ee),recommendedFallback:P==null?void 0:P.recommendedFallback,doNotResolveExamples:P==null?void 0:P.doNotResolveExamples})})}function E(P,_=[],B=[]){return r(this,void 0,void 0,function*(){const v=yield m(P,_,B);return Object.assign(Object.assign({},v),{rules:v.rules&&R(v.rules)})})}c.resolveLint=E;function x(P,_){var B;const{pluginId:v,configName:$}=l.parsePresetName(P),S=_.find(H=>H.id===v);if(!S)throw new Error(`Invalid config ${o.red(P)}: plugin ${v} is not included.`);const F=(B=S.configs)===null||B===void 0?void 0:B[$];if(!F)throw new Error(v?`Invalid config ${o.red(P)}: plugin ${v} doesn't export config with name ${$}.`:`Invalid config ${o.red(P)}: there is no such built-in config.`);return F}c.resolvePreset=x;function T(P,_){return r(this,void 0,void 0,function*(){try{const B=yield _.loadExternalRef(P),v=l.transformConfig(d.parseYaml(B.body));if(!v.lint)throw new Error(`Lint configuration format not detected: "${P}"`);return v.lint}catch(B){throw new Error(`Failed to load "${P}": ${B.message}`)}})}function w(P,_){return Object.assign(Object.assign(Object.assign({},P),_),{rules:Object.assign(Object.assign({},P==null?void 0:P.rules),_==null?void 0:_.rules),oas2Rules:Object.assign(Object.assign({},P==null?void 0:P.oas2Rules),_==null?void 0:_.oas2Rules),oas3_0Rules:Object.assign(Object.assign({},P==null?void 0:P.oas3_0Rules),_==null?void 0:_.oas3_0Rules),oas3_1Rules:Object.assign(Object.assign({},P==null?void 0:P.oas3_1Rules),_==null?void 0:_.oas3_1Rules),preprocessors:Object.assign(Object.assign({},P==null?void 0:P.preprocessors),_==null?void 0:_.preprocessors),oas2Preprocessors:Object.assign(Object.assign({},P==null?void 0:P.oas2Preprocessors),_==null?void 0:_.oas2Preprocessors),oas3_0Preprocessors:Object.assign(Object.assign({},P==null?void 0:P.oas3_0Preprocessors),_==null?void 0:_.oas3_0Preprocessors),oas3_1Preprocessors:Object.assign(Object.assign({},P==null?void 0:P.oas3_1Preprocessors),_==null?void 0:_.oas3_1Preprocessors),decorators:Object.assign(Object.assign({},P==null?void 0:P.decorators),_==null?void 0:_.decorators),oas2Decorators:Object.assign(Object.assign({},P==null?void 0:P.oas2Decorators),_==null?void 0:_.oas2Decorators),oas3_0Decorators:Object.assign(Object.assign({},P==null?void 0:P.oas3_0Decorators),_==null?void 0:_.oas3_0Decorators),oas3_1Decorators:Object.assign(Object.assign({},P==null?void 0:P.oas3_1Decorators),_==null?void 0:_.oas3_1Decorators),recommendedFallback:(_==null?void 0:_.extends)?!1:P.recommendedFallback})}function R(P){if(!P)return P;const _={},B=[];for(const[v,$]of Object.entries(P))if(v.startsWith("assert/")&&typeof $=="object"&&$!==null){const S=$;B.push(Object.assign(Object.assign({},S),{assertionId:v.replace("assert/","")}))}else _[v]=$;return B.length>0&&(_.assertions=B),_}},63777:(D,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Config=c.LintConfig=c.AVAILABLE_REGIONS=c.DOMAINS=c.DEFAULT_REGION=c.IGNORE_FILE=c.env=void 0;const r=e(15101),n=e(26470),s=e(55273),o=e(10771),a=e(71510),h=e(2565);c.env=typeof process!="undefined"?{}:{},c.IGNORE_FILE=".redocly.lint-ignore.yaml";const u=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
8
8
  # See https://redoc.ly/docs/cli/ for more information.
@@ -2022,7 +2022,7 @@ globstar while`,v,Ee,$,oe,ge),this.matchOne(v.slice(Ee),$.slice(oe),S))return th
2022
2022
  text-decoration: ${({deprecated:A})=>A?"line-through":"none"};
2023
2023
  margin: 0 4px;
2024
2024
  vertical-align: middle;
2025
- `,Ho=({expanded:A,toggle:j,operation:{name:V,httpVerb:Te,deprecated:Ge}})=>n.createElement(Re.h4,{onClick:j},n.createElement(Re.xz,null,n.createElement(ze.FH,{type:Te},(0,Do.e$)(Te)),n.createElement(yo,{deprecated:Ge},V),Ge?n.createElement(s.Ct,{type:"warning"},(0,Gt.l)("deprecated")):null),n.createElement(me.xF,{direction:A?"down":"right"})),ha=({operation:A})=>{const j=({expanded:V,toggle:Te})=>n.createElement(Ho,{operation:A,toggle:Te,expanded:V});return n.createElement(Re.NJ,{header:j,expanded:Boolean(A.expanded)},n.createElement(js,{operation:A}))};class to extends n.PureComponent{render(){const{callbacks:j}=this.props;return!j||j.length===0?null:n.createElement("div",null,j.map(V=>V.operations.map((Te,Ge)=>n.createElement(ha,{key:`${V.name}_${Ge}`,operation:Te}))))}}var $s=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,ga=(A,j,V)=>j in A?$s(A,j,{enumerable:!0,configurable:!0,writable:!0,value:V}):A[j]=V,qn=(A,j,V,Te)=>{for(var Ge=Te>1?void 0:Te?ma(j,V):j,Tt=A.length-1,jt;Tt>=0;Tt--)(jt=A[Tt])&&(Ge=(Te?jt(j,V,Ge):jt(Ge))||Ge);return Te&&Ge&&$s(j,V,Ge),Ge},Li=(A,j,V)=>(ga(A,typeof j!="symbol"?j+"":j,V),V);let ki=class extends n.Component{constructor(A){super(A);Li(this,"switchItem",({idx:j})=>{this.props.items&&j&&this.setState({activeItemIdx:j})}),this.state={activeItemIdx:0}}render(){const{items:A,options:j,renderDropdown:V,label:Te,children:Ge}=this.props;if(!A||!A.length)return null;const Tt=({children:jt})=>Te?n.createElement(qt,null,n.createElement(pn,null,Te),jt):jt;return n.createElement(n.Fragment,null,n.createElement(Tt,null,V({value:j[this.state.activeItemIdx].value,options:j,onChange:this.switchItem,ariaLabel:Te||"Callback"})),Ge(A[this.state.activeItemIdx]))}};ki=qn([r.Pi],ki);var Lo=e(76671),va=e(9996),ko=e.n(va),Vo=e(67897),No=e(64776),Ko=e(21560),us=e(23424),cs=e(33899),ya=Object.defineProperty,Ms=(A,j,V)=>j in A?ya(A,j,{enumerable:!0,configurable:!0,writable:!0,value:V}):A[j]=V,ba=(A,j,V)=>(Ms(A,typeof j!="symbol"?j+"":j,V),V);class Fs extends n.PureComponent{constructor(j){super(j);ba(this,"copy",()=>{const V=typeof this.props.data=="string"?this.props.data:JSON.stringify(this.props.data,null,2);us.Y.copyCustom(V),this.showTooltip()}),ba(this,"renderCopyButton",()=>n.createElement(cs.u,{variant:"light",placement:"top",tip:us.Y.isSupported()?"Copied":"Not supported in your browser",open:this.state.tooltipShown},n.createElement(Ko.J4,{onClick:this.copy},"Copy"))),this.state={tooltipShown:!1}}render(){return this.props.children({renderCopyButton:this.renderCopyButton})}showTooltip(){this.setState({tooltipShown:!0}),setTimeout(()=>{this.setState({tooltipShown:!1})},1500)}}var Oa=e(1330);let Yi=1;function Bs(A,j){Yi=1;let V="";return V+='<div class="redoc-json">',V+="<code>",V+=fs(A,j),V+="</code>",V+="</div>",V}function di(A){return A!==void 0?A.toString().replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):""}function jo(A){return JSON.stringify(A).slice(1,-1)}function ni(A,j){return'<span class="'+j+'">'+di(A)+"</span>"}function uo(A){return'<span class="token punctuation">'+A+"</span>"}function fs(A,j){const V=typeof A;let Te="";return A==null?Te+=ni("null","token keyword"):A&&A.constructor===Array?(Yi++,Te+=Sa(A,j),Yi--):A&&A.constructor===Date?Te+=ni('"'+A.toISOString()+'"',"token string"):V==="object"?(Yi++,Te+=Ui(A,j),Yi--):V==="number"?Te+=ni(A,"token number"):V==="string"?/^(http|https):\/\/[^\s]+$/.test(A)?Te+=ni('"',"token string")+'<a href="'+encodeURI(A)+'">'+di(jo(A))+"</a>"+ni('"',"token string"):Te+=ni('"'+jo(A)+'"',"token string"):V==="boolean"&&(Te+=ni(A,"token boolean")),Te}function Sa(A,j){const V=Yi>j?"collapsed":"";let Te=`<button class="collapser" aria-label="${Yi>j+1?"expand":"collapse"}"></button>${uo("[")}<span class="ellipsis"></span><ul class="array collapsible">`,Ge=!1;const Tt=A.length;for(let jt=0;jt<Tt;jt++)Ge=!0,Te+='<li><div class="hoverable '+V+'">',Te+=fs(A[jt],j),jt<Tt-1&&(Te+=","),Te+="</div></li>";return Te+=`</ul>${uo("]")}`,Ge||(Te=uo("[ ]")),Te}function Ui(A,j){const V=Yi>j?"collapsed":"",Te=Object.keys(A),Ge=Te.length;let Tt=`<button class="collapser" aria-label="${Yi>j+1?"expand":"collapse"}"></button>${uo("{")}<span class="ellipsis"></span><ul class="obj collapsible">`,jt=!1;for(let tn=0;tn<Ge;tn++){const an=Te[tn];jt=!0,Tt+='<li><div class="hoverable '+V+'">',Tt+='<span class="property token string">"'+di(an)+'"</span>: ',Tt+=fs(A[an],j),tn<Ge-1&&(Tt+=uo(",")),Tt+="</div></li>"}return Tt+=`</ul>${uo("}")}`,jt||(Tt=uo("{ }")),Tt}const Us=o.iv`
2025
+ `,Ho=({expanded:A,toggle:j,operation:{name:V,httpVerb:Te,deprecated:Ge}})=>n.createElement(Re.h4,{onClick:j},n.createElement(Re.xz,null,n.createElement(ze.FH,{type:Te},(0,Do.e$)(Te)),n.createElement(yo,{deprecated:Ge},V),Ge?n.createElement(s.Ct,{type:"warning"},(0,Gt.l)("deprecated")):null),n.createElement(me.xF,{direction:A?"down":"right"})),ha=({operation:A})=>{const j=({expanded:V,toggle:Te})=>n.createElement(Ho,{operation:A,toggle:Te,expanded:V});return n.createElement(Re.NJ,{header:j,expanded:Boolean(A.expanded)},n.createElement(js,{operation:A}))};class to extends n.PureComponent{render(){const{callbacks:j}=this.props;return!j||j.length===0?null:n.createElement("div",null,j.map(V=>V.operations.map((Te,Ge)=>n.createElement(ha,{key:`${V.name}_${Ge}`,operation:Te}))))}}var $s=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,ga=(A,j,V)=>j in A?$s(A,j,{enumerable:!0,configurable:!0,writable:!0,value:V}):A[j]=V,qn=(A,j,V,Te)=>{for(var Ge=Te>1?void 0:Te?ma(j,V):j,Tt=A.length-1,jt;Tt>=0;Tt--)(jt=A[Tt])&&(Ge=(Te?jt(j,V,Ge):jt(Ge))||Ge);return Te&&Ge&&$s(j,V,Ge),Ge},Li=(A,j,V)=>(ga(A,typeof j!="symbol"?j+"":j,V),V);let ki=class extends n.Component{constructor(A){super(A);Li(this,"switchItem",({idx:j})=>{this.props.items&&j&&this.setState({activeItemIdx:j})}),this.state={activeItemIdx:0}}render(){const{items:A,options:j,renderDropdown:V,label:Te,children:Ge}=this.props;if(!A||!A.length)return null;const Tt=({children:jt})=>Te?n.createElement(qt,null,n.createElement(pn,null,Te),jt):jt;return n.createElement(n.Fragment,null,n.createElement(Tt,null,V({value:j[this.state.activeItemIdx].value,options:j,onChange:this.switchItem,ariaLabel:Te||"Callback"})),Ge(A[this.state.activeItemIdx]))}};ki=qn([r.Pi],ki);var Lo=e(76671),va=e(9996),ko=e.n(va),Vo=e(67897),No=e(64776),Ko=e(21560),us=e(23424),cs=e(33899),ya=Object.defineProperty,Ms=(A,j,V)=>j in A?ya(A,j,{enumerable:!0,configurable:!0,writable:!0,value:V}):A[j]=V,ba=(A,j,V)=>(Ms(A,typeof j!="symbol"?j+"":j,V),V);class Fs extends n.PureComponent{constructor(j){super(j);ba(this,"copy",()=>{const V=typeof this.props.data=="string"?this.props.data:JSON.stringify(this.props.data,(Te,Ge)=>Ge===void 0?null:Ge,2);us.Y.copyCustom(V),this.showTooltip()}),ba(this,"renderCopyButton",()=>n.createElement(cs.u,{variant:"light",placement:"top",tip:us.Y.isSupported()?"Copied":"Not supported in your browser",open:this.state.tooltipShown},n.createElement(Ko.J4,{onClick:this.copy},"Copy"))),this.state={tooltipShown:!1}}render(){return this.props.children({renderCopyButton:this.renderCopyButton})}showTooltip(){this.setState({tooltipShown:!0}),setTimeout(()=>{this.setState({tooltipShown:!1})},1500)}}var Oa=e(1330);let Yi=1;function Bs(A,j){Yi=1;let V="";return V+='<div class="redoc-json">',V+="<code>",V+=fs(A,j),V+="</code>",V+="</div>",V}function di(A){return A!==void 0?A.toString().replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):""}function jo(A){return JSON.stringify(A).slice(1,-1)}function ni(A,j){return'<span class="'+j+'">'+di(A)+"</span>"}function uo(A){return'<span class="token punctuation">'+A+"</span>"}function fs(A,j){const V=typeof A;let Te="";return A==null?Te+=ni("null","token keyword"):A&&A.constructor===Array?(Yi++,Te+=Sa(A,j),Yi--):A&&A.constructor===Date?Te+=ni('"'+A.toISOString()+'"',"token string"):V==="object"?(Yi++,Te+=Ui(A,j),Yi--):V==="number"?Te+=ni(A,"token number"):V==="string"?/^(http|https):\/\/[^\s]+$/.test(A)?Te+=ni('"',"token string")+'<a href="'+encodeURI(A)+'">'+di(jo(A))+"</a>"+ni('"',"token string"):Te+=ni('"'+jo(A)+'"',"token string"):V==="boolean"&&(Te+=ni(A,"token boolean")),Te}function Sa(A,j){const V=Yi>j?"collapsed":"";let Te=`<button class="collapser" aria-label="${Yi>j+1?"expand":"collapse"}"></button>${uo("[")}<span class="ellipsis"></span><ul class="array collapsible">`,Ge=!1;const Tt=A.length;for(let jt=0;jt<Tt;jt++)Ge=!0,Te+='<li><div class="hoverable '+V+'">',Te+=fs(A[jt],j),jt<Tt-1&&(Te+=","),Te+="</div></li>";return Te+=`</ul>${uo("]")}`,Ge||(Te=uo("[ ]")),Te}function Ui(A,j){const V=Yi>j?"collapsed":"",Te=Object.keys(A),Ge=Te.length;let Tt=`<button class="collapser" aria-label="${Yi>j+1?"expand":"collapse"}"></button>${uo("{")}<span class="ellipsis"></span><ul class="obj collapsible">`,jt=!1;for(let tn=0;tn<Ge;tn++){const an=Te[tn];jt=!0,Tt+='<li><div class="hoverable '+V+'">',Tt+='<span class="property token string">"'+di(an)+'"</span>: ',Tt+=fs(A[an],j),tn<Ge-1&&(Tt+=uo(",")),Tt+="</div></li>"}return Tt+=`</ul>${uo("}")}`,jt||(Tt=uo("{ }")),Tt}const Us=o.iv`
2026
2026
  .redoc-json code > .collapser {
2027
2027
  display: none;
2028
2028
  pointer-events: none;
@@ -2676,7 +2676,7 @@ ${q}`}}const B=(K,...Y)=>{if(!Y.length)return K;const q=Y.shift();return q===voi
2676
2676
  ${Ke("background-color",(de=re.schema.examples)==null?void 0:de.backgroundColor)};
2677
2677
  ${Ke("border",(xe=re.schema.examples)==null?void 0:xe.border)}
2678
2678
  ${Ke("word-break",(le=(ht=re.typography)==null?void 0:ht.code)==null?void 0:le.wordBreak)}
2679
- `},Prism:({theme:re})=>{var de,xe,ht;return It((de=re==null?void 0:re.codeBlock)==null?void 0:de.tokens)+Ke("word-break",(ht=(xe=re.typography)==null?void 0:xe.code)==null?void 0:ht.wordBreak)}};function cn(re,de){return Yt[re]&&Yt[re](de)}var At=e(64776),$e=(re,de,xe)=>new Promise((ht,le)=>{var Ae=vt=>{try{Ye(xe.next(vt))}catch(Ut){le(Ut)}},_e=vt=>{try{Ye(xe.throw(vt))}catch(Ut){le(Ut)}},Ye=vt=>vt.done?ht(vt.value):Promise.resolve(vt.value).then(Ae,_e);Ye((xe=xe.apply(re,de)).next())});function X(re){return"then"in re?re:new Promise(de=>{re.oncomplete=xe=>{de(xe.target.result)}})}function I(re){const de=new ArrayBuffer(re.length),xe=new Uint8Array(de);for(let ht=0,le=re.length;ht<le;ht++)xe[ht]=re.charCodeAt(ht);return de}const Q=()=>{var re;const de=I(atob("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMHjNir5fXx/ZXoaEeXQ5XyxbNJ4YJYczoCRdSkL6NLzw1FHnng5Vfcgk5+bvox9QRYRbuk84mA4f2NhywDbXKECAwEAAQ=="));return X((re=At.EA)==null?void 0:re.subtle.importKey("spki",de,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!0,["verify"]))};function ve(re){if(window.TextEncoder)return new TextEncoder().encode(re);const de=unescape(encodeURIComponent(re)),xe=new Uint8Array(de.length);for(let ht=0;ht<de.length;ht++)xe[ht]=de.charCodeAt(ht);return xe}function Me(re,de){return $e(this,null,function*(){var xe;return X((xe=At.EA)==null?void 0:xe.subtle.verify({name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},yield Q(),I(atob(de)),ve(re)))})}function ot(re,de){return de===!0?!0:Array.isArray(de)&&typeof window!="undefined"?re==="localhost"||re==="127.0.0.1"||re.endsWith(".localhost")||!!de.find(xe=>xe===re||re.endsWith("."+xe))?!0:!!de.find(xe=>{if(xe.indexOf("*")!==xe.lastIndexOf("*"))return;const[ht,le]=xe.split("*");return le&&re.startsWith(ht)&&re.endsWith(le)&&le.split(".").length>2}):!1}function mt(re){return $e(this,null,function*(){const de=window.location.hostname;if(!re)return de==="localhost"||de==="127.0.0.1"||de.endsWith(".localhost")?{local:!0}:{};const[xe,ht]=re.split(".");let le;try{if(!(yield Me(atob(xe),ht)))return{valid:!1};le=JSON.parse(atob(xe))}catch(Ae){return{valid:!1,cryptoMissing:!0}}return le.valid=!0,(!le.e||Date.now()/1e3>le.e)&&(le.expired=!0),le.allowed=ot(de,le.h),le})}var ke=e(24787),Qe=e(20906),Xe=Object.defineProperty,lt=Object.defineProperties,dt=Object.getOwnPropertyDescriptor,pt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,qt=(re,de,xe)=>de in re?Xe(re,de,{enumerable:!0,configurable:!0,writable:!0,value:xe}):re[de]=xe,On=(re,de)=>{for(var xe in de||(de={}))en.call(de,xe)&&qt(re,xe,de[xe]);if(Ht)for(var xe of Ht(de))pn.call(de,xe)&&qt(re,xe,de[xe]);return re},Hn=(re,de)=>lt(re,pt(de)),gn=(re,de,xe,ht)=>{for(var le=ht>1?void 0:ht?dt(de,xe):de,Ae=re.length-1,_e;Ae>=0;Ae--)(_e=re[Ae])&&(le=(ht?_e(de,xe,le):_e(le))||le);return ht&&le&&Xe(de,xe,le),le},Gt=(re,de,xe)=>(qt(re,typeof de!="symbol"?de+"":de,xe),xe),Fn=(re,de,xe)=>new Promise((ht,le)=>{var Ae=vt=>{try{Ye(xe.next(vt))}catch(Ut){le(Ut)}},_e=vt=>{try{Ye(xe.throw(vt))}catch(Ut){le(Ut)}},Ye=vt=>vt.done?ht(vt.value):Promise.resolve(vt.value).then(Ae,_e);Ye((xe=xe.apply(re,de)).next())});const Gn=typeof window=="undefined"?{__REDOCLY_SEARCH_URL:void 0}:window;class Zn{constructor(de,xe,ht,le){Gt(this,"id"),Gt(this,"absoluteIdx"),Gt(this,"name"),Gt(this,"description"),Gt(this,"type"),Gt(this,"linkable"),Gt(this,"items",[]),Gt(this,"parent"),Gt(this,"externalDocs"),Gt(this,"active",!1),Gt(this,"expanded",!1),Gt(this,"depth"),Gt(this,"level"),(0,r.rC)(this),this.id="section/"+de,this.type="nesting-group",this.name=ht||"",this.level=1,this.depth=1,this.description="",this.parent=void 0,this.expanded=!1,this.items=xe,this.linkable=!!le,xe.forEach(Ae=>Ae.parent=this),Er(xe)}activate(){this.active=!0}expand(){this.expanded=!0,this.parent&&this.parent.expand()}collapse(){this.expanded=!1}deactivate(){this.active=!1}}gn([r.LO],Zn.prototype,"active",2),gn([r.LO],Zn.prototype,"expanded",2),gn([r.aD],Zn.prototype,"activate",1),gn([r.aD],Zn.prototype,"expand",1),gn([r.aD],Zn.prototype,"collapse",1),gn([r.aD],Zn.prototype,"deactivate",1);function Er(re){!Array.isArray(re)||re.forEach(de=>{de.depth++,de.parent&&de.parent.type==="group"&&(de.depth=de.parent.depth),Er(de.items)})}const wr=class{constructor(re,de,xe={},ht=!0){Gt(this,"rawOptions"),Gt(this,"options"),Gt(this,"menu"),Gt(this,"definition"),Gt(this,"marker",new o.MarkerService),Gt(this,"scroll"),Gt(this,"disposer"),Gt(this,"search"),Gt(this,"tryItOperation"),Gt(this,"showRightPanel",!0),Gt(this,"layout",ke.N.THREE_PANEL),Gt(this,"activeSampleLanguage"),Gt(this,"isLoading"),Gt(this,"l"),(0,r.rC)(this),this.initProOptions(xe),o.IS_BROWSER&&(this.l=mt(xe.licenseKey),this.l.then(_e=>{(!_e.valid||!_e.allowed||_e.expired)&&!_e.local&&(this.menu.items=[],this.menu.flatItems=this.menu.flatItems.slice(0,1),this.menu.renderItems=[])}));const le=typeof re=="object"&&"versions"in re,Ae=this.options.disableSidebar?new ue.GZ(this.options):this.options.routingStrategy==="browser"?new ue.bM(this.options,le):new ue.nI(this.options,le);this.definition=le?new Ve.C(re,this.options,Ae.currentId.split("/")[0]):new o.SpecStore(re,de,this.options),xe.downloadDefinitionUrl&&(this.definition.info.downloadFileName=""),this.scroll=new o.ScrollService(this.options),this.options.disableSidebar||Ot.updateOnHistory(Ae.currentId,this.scroll),this.menu=new Ot(this.definition,this.scroll,this.options,Ae),this.menu.initOnHistory(),this.options.disableSearch||this.initSearch(this.options,ht),this.disposer=(0,r.N7)(this.menu,this.options.pagination==="none"?"activeItemIdx":"activeRenderItemIdx",_e=>{setTimeout(()=>this.updateMarkOnMenu(_e.newValue))}),(0,R._3)(this)}initProOptions(re){var de,xe,ht,le,Ae;re=gt(re),this.rawOptions=Ie(re),this.options=new o.RedocNormalizedOptions(this.rawOptions,er),this.rawOptions.showConsole!=null&&console.warn('"showConsole" option is deprecated. Please, use "hideTryItPanel" instead.'),this.options.showConsole=this.rawOptions.hideTryItPanel!=null?!this.rawOptions.hideTryItPanel:(de=this.rawOptions.showConsole)!=null?de:!0,this.options.hideRightPanel=(xe=this.rawOptions.hideRightPanel)!=null?xe:!1,this.showRightPanel=!this.options.hideRightPanel,this.options.showRightPanelToggle=(ht=this.rawOptions.showRightPanelToggle)!=null?ht:!0,this.options.showChangeLayoutButton=(le=this.rawOptions.showChangeLayoutButton)!=null?le:!0,this.options.layout=this.rawOptions.layout||ke.N.THREE_PANEL,this.options.defaultSampleLanguage=this.rawOptions.defaultSampleLanguage||"",this.options.deepLinkSeparator=this.rawOptions.deepLinkSeparator||"/",this.options.deepLinkPrefix=this.rawOptions.deepLinkPrefix||"!",this.options.disableDeepLinks=this.rawOptions.disableDeepLinks||!1,this.options.sideNavStyle=this.rawOptions.sideNavStyle||Qe.s.SummaryOnly,this.options.whiteLabel=!!this.rawOptions.whiteLabel,this.options.hideLogo=!!this.rawOptions.hideLogo,this.options.hideInfoSection=!!this.rawOptions.hideInfoSection,this.options.oAuth2RedirectURI=this.rawOptions.oAuth2RedirectURI||null,this.options.oAuth2RedirectURI=this.rawOptions.oAuth2RedirectURI||null,this.options.events=this.rawOptions.events||{},this.options.corsProxyUrl=this.rawOptions.corsProxyUrl?Rr(this.rawOptions.corsProxyUrl):null,this.options.authCorsProxyUrl=this.rawOptions.authCorsProxyUrl?Rr(this.rawOptions.authCorsProxyUrl):null,this.options.theme.scrollYOffset=this.options.scrollYOffset,this.options.linkForId=this.rawOptions.linkForId||null,this.options.generateDeepLink=this.rawOptions.generateDeepLink||null,this.options.onDeepLinkClick=this.rawOptions.onDeepLinkClick||null,this.options.requestInterceptor=this.rawOptions.requestInterceptor||null,this.options.sidebarLinks=this.rawOptions.sidebarLinks||{};const _e=typeof this.rawOptions.layout=="object"?this.rawOptions.layout:null;if(this.options.pagination=this.rawOptions.pagination||"none",this.options.routingStrategy=this.options.pagination==="none"?"hash":"browser",!((Ae=this.rawOptions)==null?void 0:Ae.pagination)&&!!(_e==null?void 0:_e.scope))switch(console.warn('"layout.scope" and "routingStrategy" settings are deprecated. Please, use "pagination" instead.'),_e==null?void 0:_e.scope){case"all":this.options.pagination="none",this.options.routingStrategy="hash";break;case"section":this.options.pagination="section",this.options.routingStrategy="browser";break;case"item":this.options.pagination="item",this.options.routingStrategy="browser";break;default:this.options.pagination="none",this.options.routingStrategy="hash";break}this.options.markdownItemsPagination="none",this.rawOptions.showNextButton!==!1&&(this.options.showNextButton=!0),this.options.disableSidebar=!!re.disableSidebar,this.options.disableSidebar&&(this.options.theme.sidebar.width="0px"),this.options.skipBundleAndConvert=!!re.skipBundleAndConvert,this.options.routingBasePath=re.routingBasePath&&(0,At.AH)(re.routingBasePath)||"",this.options.searchAutoExpand=re.searchAutoExpand!==!1,this.options.searchMode=re.searchMode||"default",this.options.ctrlFHijack=re.ctrlFHijack===void 0||re.ctrlFHijack,this.options.disablePaginationLoadingAnimation=!!re.disablePaginationLoadingAnimation||this.options.pagination==="none",this.options.showConsole,this.options.generateCodeSamples=re.generateCodeSamples||{languages:[]},this.options.searchMaxDepth=this.rawOptions.searchMaxDepth||ee}initSearch(re,de){Gn.__REDOCLY_SEARCH_URL?this.search=new C(Gn.__REDOCLY_SEARCH_URL):this.search=new We(re),de&&setTimeout(()=>{var xe;return(xe=this.search)==null?void 0:xe.indexItems(this.menu.items)},50),this.definition instanceof Ve.C&&(0,r.N7)(this.definition,"activeVersionIdx",xe=>{var ht,le;const Ae=this.definition;(ht=this.search)==null||ht.dispose(),this.search=new We(re);const _e=Ae.versions[xe.newValue]._searchIndexName;if(!o.IS_BROWSER||!_e)setTimeout(()=>{var Ye;(Ye=this.search)==null||Ye.indexItems(this.menu.items)},0);else{const Ye=Ae.versions[xe.newValue]._searchIndexName,vt=new URL(window.location.href);vt.pathname=vr(this.options.routingBasePath,Ye),(le=this.search)==null||le.fromExternalJS(vt.toString(),__redoc_state.searchIndexExport),this.observeAllAndRemark()}}),o.IS_BROWSER&&this.observeAllAndRemark()}onDidMount(){if(this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx),this.layout=(0,R.Y9)("layoutVariant")||this.options.layout||this.layout,this.activeSampleLanguage=(0,R.Y9)("activeSampleLanguage")||this.options.defaultSampleLanguage,this.options.showRightPanelToggle){const re=(0,R.YQ)("showRightPanelToggleState");re&&(this.showRightPanel=re==="true")}}toggleRightPanel(re){this.showRightPanel=re!=null?re:!this.showRightPanel,(0,R.WW)("showRightPanelToggleState",JSON.stringify(this.showRightPanel))}toggleLayout(re=ke.N.THREE_PANEL){this.layout=re,(0,R.Im)("layoutVariant",re)}disableConsole(){this.options.showConsole=!1}enableConsole(){this.options.showConsole=!0}tryItOut(re){this.tryItOperation=re}setActiveSampleLanguage(re){if(this.activeSampleLanguage===re)return this.stopLoader();this.activeSampleLanguage=re,(0,R.Im)("activeSampleLanguage",re)}activateSampleLanguage(re){this.setActiveSampleLanguage(re)}startLoader(){this.isLoading||(this.isLoading=!0)}stopLoader(){this.isLoading&&(this.isLoading=!1)}dereferenceSpecForTryIt(re){return Fn(this,null,function*(){var de,xe,ht,le;const Ae=this.definition.parser.definition,_e=JSON.parse(JSON.stringify(Ae)),Ye=Hn(On({},it(_e)),{components:_e.components,paths:{[re.path]:{[re.httpVerb]:(xe=(de=_e.paths)==null?void 0:de[re.path])==null?void 0:xe[re.httpVerb],parameters:(le=(ht=_e.paths)==null?void 0:ht[re.path])==null?void 0:le.parameters}}}),vt=new n.De({}),Ut=(0,o.createParsedDocument)(Ye),zt={config:vt,doc:Ut,dereference:!0};return yield(0,n.gR)(zt),_e})}observeAllAndRemark(){const re=(xe,ht=0)=>{if(!(!xe||xe.isCircular||ht>this.options.searchMaxDepth)){if(xe.items){re(xe.items,ht+1);return}for(const le of xe.fields||[])(le.schema.fields||le.schema.items)&&((0,r.N7)(le,"expanded",Ae=>this.remark(Ae)),re(le.schema,ht+1))}},de=xe=>{for(const ht of xe)if(ht.type==="operation"){const le=ht.responses;for(const Ae of le)(0,r.N7)(Ae,"expanded",_e=>this.remark(_e))}else ht.type==="tag"&&de(ht.items||[])};de(this.menu.renderItems),this.options.pagination!=="none"&&(0,r.N7)(this.menu,"renderItems",()=>de(this.menu.renderItems))}remark(re){re.newValue&&setTimeout(()=>this.marker.mark(),0)}static fromJS(re){var de;const xe=new wr(re.definition.data,re.definition.url,re.options,!1);(0,R._3)(xe),xe.menu.activeItemIdx=re.menu.activeItemIdx!==void 0?re.menu.activeItemIdx:-1,xe.definition instanceof Ve.C&&re.definition.activeVersionIdx&&(xe.definition.activeVersionIdx=re.definition.activeVersionIdx||0);const ht=xe.menu.flatItems[xe.menu.activeItemIdx];if(ht&&xe.menu.activate(ht,!1),!xe.options.disableSearch){const le=new URL(window.location.href);le.pathname=re.searchIndexPath&&re.searchIndexPath.startsWith("/")?re.searchIndexPath:le.pathname+(le.pathname.endsWith("/")?"":"/")+re.searchIndexPath,(de=xe.search)==null||de.fromExternalJS(le.toString(),re.searchIndexExport)}return re.tryItOperationId&&(xe.tryItOperation=xe.menu.flatItems.find(le=>le.id===re.tryItOperationId)),setTimeout(()=>xe.observeAllAndRemark(),0),xe}toJS(){return Fn(this,null,function*(){var re;return{menu:{activeItemIdx:this.menu.activeItemIdx},definition:this.definition instanceof Ve.C?{url:void 0,data:this.definition.toJS()}:{url:this.definition.parser.definitionUrl,data:this.definition.parser.definition},searchIndex:this.search?yield this.search.toJS():void 0,options:this.rawOptions,tryItOperationId:(re=this.tryItOperation)==null?void 0:re.id}})}dispose(){this.scroll.dispose(),this.menu.dispose(),this.search&&this.search.dispose(),this.disposer()}updateMarkOnMenu(re){const de=Math.max(0,re),xe=Math.min(this.menu.flatItems.length,de+5),ht=[];for(let le=de;le<xe;le++){const Ae=this.menu.getElementAt(le);!Ae||Ae&&ht.push(Ae)}if(this.options.pagination==="item"){const{parent:le}=this.menu.flatItems[re]||{};if(le==null?void 0:le.absoluteIdx){const Ae=this.menu.getElementAt(le.absoluteIdx);Ae&&ht.push(Ae)}}this.marker.addOnly(ht),this.marker.mark()}};let Nn=wr;gn([r.LO],Nn.prototype,"search",2),gn([r.LO],Nn.prototype,"tryItOperation",2),gn([r.LO],Nn.prototype,"showRightPanel",2),gn([r.LO],Nn.prototype,"layout",2),gn([r.LO],Nn.prototype,"activeSampleLanguage",2),gn([r.LO],Nn.prototype,"isLoading",2),gn([r.aD],Nn.prototype,"onDidMount",1),gn([r.aD],Nn.prototype,"toggleRightPanel",1),gn([r.aD],Nn.prototype,"toggleLayout",1),gn([r.aD],Nn.prototype,"disableConsole",1),gn([r.aD],Nn.prototype,"enableConsole",1),gn([r.aD],Nn.prototype,"tryItOut",1),gn([r.aD],Nn.prototype,"setActiveSampleLanguage",1),gn([s.bind,(0,s.debounce)(500)],Nn.prototype,"activateSampleLanguage",1),gn([r.aD],Nn.prototype,"startLoader",1),gn([r.aD],Nn.prototype,"stopLoader",1);const er={ignoreNamedSchemas:["java.io.ObjectStreamField"],allowedMdComponents:{RedocResponse:{component:E,propsSelector(re){return{store:re}}},PullRight:{component:d,propsSelector(){return{}}},[o.SCHEMA_DEFINITION_JSX_NAME]:{component:o.SchemaDefinition,propsSelector:re=>({parser:re.definition.parser,options:re.options,layout:re.layout,showRightPanel:re.showRightPanel})},[o.SECURITY_DEFINITIONS_COMPONENT_NAME]:{component:H,propsSelector:re=>({securitySchemes:re.definition.securitySchemes})},[o.SECURITY_DEFINITIONS_JSX_NAME]:{component:H,propsSelector:re=>({securitySchemes:re.definition.securitySchemes})}}};function vr(re,de){return re.endsWith("/")&&(re=re.slice(0,-1)),de.startsWith("/")&&(de=de.substring(1)),`${re}/${de}`}function Rr(re){return re.endsWith("/")?re:re+"/"}function it(re){if(re.openapi)return{openapi:re.openapi};if(re.swagger)return{swagger:re.swagger}}function gt(re){if(typeof re!="object"||re===null)return re;const de=Array.isArray(re)?[]:{};for(const xe in re){const ht=re[xe];de[xe]=gt(ht)}return de}},95669:(D,c,e)=>{"use strict";e.d(c,{C:()=>d});var r=e(68949),n=e(76671),s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=(p,g,y)=>g in p?s(p,g,{enumerable:!0,configurable:!0,writable:!0,value:y}):p[g]=y,h=(p,g,y,b)=>{for(var m=b>1?void 0:b?o(g,y):g,E=p.length-1,x;E>=0;E--)(x=p[E])&&(m=(b?x(g,y,m):x(m))||m);return b&&m&&s(g,y,m),m},u=(p,g,y)=>(a(p,typeof g!="symbol"?g+"":g,y),y);function l(p,g,y){p.forEach(b=>{if(b.items&&l(b.items,g,y),b.id=y+"/"+b.id,b.type==="operation"){b.specIdx=g;for(const m of b.security)for(const E of m.schemes)E.sectionId=y+"/"+E.sectionId}})}class d{constructor(g,y,b){if(this.config=g,this.options=y,u(this,"versions"),u(this,"activeVersionIdx",-1),(0,r.rC)(this),this.versions=[],!g.versions)return;let m=0,E=0;for(const x of g.versions||[]){x.isDefault&&(E=m);const T=new n.SpecStore(x.spec,void 0,y);this.versions.push(T),l(T.contentItems,m,x.id);for(const w of T.securitySchemes.schemes)w.sectionId=x.id+"/"+w.sectionId;x.id===b&&(this.activeVersionIdx=m),m++,x._searchIndexName&&(T._searchIndexName=x._searchIndexName)}this.activeVersionIdx===-1&&(this.activeVersionIdx=E),g.versions[E].isDefault=!0}get versionsInfo(){return this.config.versions||[]}get currentVersionId(){return this.versionsInfo[this.activeVersionIdx]&&this.versionsInfo[this.activeVersionIdx].id}get contentItems(){return this.versions[this.activeVersionIdx].contentItems}get securitySchemes(){return this.versions[this.activeVersionIdx].securitySchemes}get externalDocs(){return this.versions[this.activeVersionIdx].externalDocs}get parser(){return this.versions[this.activeVersionIdx].parser}get info(){return this.versions[this.activeVersionIdx].info}changeVersion(g){this.activeVersionIdx=g}toJS(){return this.config}}h([r.LO],d.prototype,"activeVersionIdx",2),h([r.aD],d.prototype,"changeVersion",1)},99098:(D,c,e)=>{"use strict";e.d(c,{Ez:()=>po,aP:()=>$i});var r=e(17563),n=e(89124),s=e(9996),o=e.n(s),a=e(76671),h=e(25446),u=e(64776),l=e(17673),d=e(8575),p=e(94110),g=e.n(p),y=e(89539),b;(function(M){M.NODEJS="Node.js",M.JAVASCRIPT="javascript",M.PYTHON="Python",M.JAVA8="Java8+Apache",M.JAVA="Java",M.CSHARP="C#",M.CURL="curl",M.GO="Go",M.PHP="PHP",M.RUBY="Ruby",M.R="R"})(b||(b={}));var m;(function(M){M.UNDER_SCORES="under_scores",M.CAMEL_CASE="camelCase",M.PASCAL_CASE="PascalCase"})(m||(m={}));var E;(function(M){M.IMPORT="import",M.CUSTOM="custom",M.PATH="path"})(E||(E={}));const x="\\ud800-\\udfff",T="\\u0300-\\u036f",w="\\ufe20-\\ufe2f",R="\\u20d0-\\u20ff",P="\\u1ab0-\\u1aff",_="\\u1dc0-\\u1dff",B=T+w+R+P+_,v="\\u2700-\\u27bf",$="a-z\\xdf-\\xf6\\xf8-\\xff",S="\\xac\\xb1\\xd7\\xf7",F="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",H="\\u2000-\\u206f",se=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ue="A-Z\\xc0-\\xd6\\xd8-\\xde",ne="\\ufe0e\\ufe0f",Se=S+F+H+se,Ve=/['\u2019]/g,Ee="['\u2019]",oe=`[${Se}]`,ge=`[${B}]`,K="\\d",Y=`[${v}]`,q=`[${$}]`,Pe=`[^${x}${Se+K+v+$+ue}]`,Re="\\ud83c[\\udffb-\\udfff]",he=`(?:${ge}|${Re})`,Le=`[^${x}]`,ze="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot=`[${ue}]`,Bt="\\u200d",Kt=`(?:${q}|${Pe})`,Qt=`(?:${Ot}|${Pe})`,k=`(?:${Ee}(?:d|ll|m|re|s|t|ve))?`,me=`(?:${Ee}(?:D|LL|M|RE|S|T|VE))?`,Ze=`${he}?`,St=`[${ne}]?`,ye=`(?:${Bt}(?:${[Le,ze,ft].join("|")})${St+Ze})*`,Fe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Z="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ee=St+Ze+ye,We=`(?:${[Y,ze,ft].join("|")})${ee}`,C=RegExp([`${Ot}?${q}+${k}(?=${[oe,Ot,"$"].join("|")})`,`${Qt}+${me}(?=${[oe,Ot+Kt,"$"].join("|")})`,`${Ot}?${Kt}+${k}`,`${Ot}+${me}`,Z,Fe,`${K}+`,We].join("|"),"g"),ie=M=>M.match(C),we=RegExp(`[${Bt+x+B+ne}]`),Ie=M=>we.test(M),Ne=`[${x}]`,rt=`(?:${[`${Le}${ge}?`,ge,ze,ft,Ne].join("|")})`,It=RegExp(`${Re}(?=${Re})|${rt+ee}`,"g"),Yt=M=>M.match(It)||[],cn=M=>M.split(""),At=M=>{const ce=Object.prototype.toString;return M==null?M===void 0?"[object Undefined]":"[object Null]":ce.call(M)},$e=M=>{const ce=typeof M;return ce=="symbol"||ce==="object"&&M!=null&&At(M)=="[object Symbol]"},X=1/0,I=M=>{if(M==null)return"";if(typeof M=="string")return M;if(Array.isArray(M))return`${M.map(He=>He==null?He:I(He))}`;if($e(M))return M.toString();const ce=`${M}`;return ce=="0"&&1/M==-X?"-0":ce},Q=RegExp.prototype.test.bind(/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/),ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Me=M=>M.match(ve),ot=(M,ce,He)=>{let O=M==null?0:M.length;if(!O)return[];ce=ce==null?0:ce,He=He===void 0?O:He,ce<0&&(ce=-ce>O?0:O+ce),He=He>O?O:He,He<0&&(He+=O),O=ce>He?0:He-ce>>>0,ce>>>=0;let N=-1;const W=new Array(O);for(;++N<O;)W[N]=M[N+ce];return W},mt=M=>(Q(M)?ie(M):Me(M))||[],ke=(M,ce)=>{const{length:He}=M,O=He;return!ce&&O>=He?M:ot(M,ce,O)},Qe=M=>Ie(M)?Yt(M):cn(M),lt=(M=>ce=>{if(!ce)return"";const He=Ie(ce)?Qe(ce):void 0,O=He?He[0]:ce[0],N=He?ke(He,1).join(""):ce.slice(1);return O[M]()+N})("toUpperCase"),dt=M=>mt(I(M).replace(/['\u2019]/g,"")).reduce((ce,He,O)=>(He=He.toLowerCase(),ce+(O?lt(He):He)),""),pt=M=>mt(I(M).replace(Ve,"")).reduce((ce,He,O)=>ce+(O?" ":"")+He.toLowerCase(),""),Ht=M=>mt(I(M).replace(/['\u2019]/g,"")).reduce((ce,He,O)=>ce+(O?"_":"")+He.toLowerCase(),""),en=M=>mt(`${M}`.replace(/['\u2019]/g,"")).reduce((ce,He,O)=>ce+(O?" ":"")+lt(He),"");class pn{static toCamelCase(ce){return dt(ce)}static toTitleCase(ce){return en(dt(ce))}static toPascalCase(ce){return en(dt(ce)).replace(/ /g,"")}static toLowerCase(ce){return pt(ce).replace(/ /g,"")}static toSnakeCase(ce){return Ht(ce)}}var qt=Object.defineProperty,On=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,Gt=(M,ce,He)=>ce in M?qt(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,Fn=(M,ce)=>{for(var He in ce||(ce={}))Hn.call(ce,He)&&Gt(M,He,ce[He]);if(On)for(var He of On(ce))gn.call(ce,He)&&Gt(M,He,ce[He]);return M},Gn=(M,ce,He)=>(Gt(M,typeof ce!="symbol"?ce+"":ce,He),He);const Zn={[b.NODEJS]:m.CAMEL_CASE,[b.JAVASCRIPT]:m.CAMEL_CASE,[b.PYTHON]:m.UNDER_SCORES,[b.JAVA8]:m.CAMEL_CASE,[b.JAVA]:m.CAMEL_CASE,[b.CSHARP]:m.PASCAL_CASE,[b.CURL]:m.CAMEL_CASE,[b.GO]:m.CAMEL_CASE,[b.PHP]:m.CAMEL_CASE,[b.RUBY]:m.UNDER_SCORES,[b.R]:m.UNDER_SCORES},Er={default:{joinSymbol:"",variableWrapperFn:M=>M,stringLiteral:M=>M,variableDeclaration:M=>M,urlFieldName:"url"},[b.CSHARP]:{joinSymbol:" + ",stringLiteral:M=>`"${M}"`,variableDeclaration:M=>`var ${M} = "%s";`,urlFieldName:"fullUrl"},[b.GO]:{joinSymbol:" + ",stringLiteral:M=>`"${M}"`,variableDeclaration:M=>`${M} := "%s";`},[b.JAVA]:{joinSymbol:" + ",stringLiteral:M=>`"${M}"`,variableDeclaration:M=>`var ${M} = "%s";`,urlFieldName:"pathname"},[b.JAVA8]:{joinSymbol:" + ",stringLiteral:M=>`"${M}"`,variableDeclaration:M=>`String ${M} = "%s";`,urlFieldName:"fullUrl"},[b.JAVASCRIPT]:{variableWrapperFn:M=>"${"+M+"}",variableDeclaration:M=>`const ${M} = '%s';`},[b.NODEJS]:{variableWrapperFn:M=>"${"+M+"}",variableDeclaration:M=>`const ${M} = '%s';`},[b.PHP]:{joinSymbol:" . ",stringLiteral:M=>`"${M}"`,variableDeclaration:M=>`const ${M} = "%s";`},[b.PYTHON]:{stringLiteral:M=>`"${M}"`,joinSymbol:" + ",variableDeclaration:M=>`${M} = "%s"`},[b.RUBY]:{joinSymbol:" + ",stringLiteral:M=>`'${M}'`,variableDeclaration:M=>`${M} = '%s'`},[b.CURL]:{variableWrapperFn:(M,ce)=>ce||`{${M}}`,urlFieldName:"fullUrl",rawName:!0},[b.R]:{joinSymbol:" %&% ",variableDeclaration:M=>`${M} = "%s"`,urlFieldName:"fullUrl",stringLiteral:M=>`"${M}"`,variableWrapperFn:M=>`${M}`}},wr=["response","request","requests","data","url","payload","main","accessToken","resp","Program","client","postData","App","httpClient","params","pathname","host","body","fetch","query"];class Nn{constructor({indentation:ce,lineJoin:He=`
2679
+ `},Prism:({theme:re})=>{var de,xe,ht;return It((de=re==null?void 0:re.codeBlock)==null?void 0:de.tokens)+Ke("word-break",(ht=(xe=re.typography)==null?void 0:xe.code)==null?void 0:ht.wordBreak)}};function cn(re,de){return Yt[re]&&Yt[re](de)}var At=e(64776),$e=(re,de,xe)=>new Promise((ht,le)=>{var Ae=vt=>{try{Ye(xe.next(vt))}catch(Ut){le(Ut)}},_e=vt=>{try{Ye(xe.throw(vt))}catch(Ut){le(Ut)}},Ye=vt=>vt.done?ht(vt.value):Promise.resolve(vt.value).then(Ae,_e);Ye((xe=xe.apply(re,de)).next())});function X(re){return"then"in re?re:new Promise(de=>{re.oncomplete=xe=>{de(xe.target.result)}})}function I(re){const de=new ArrayBuffer(re.length),xe=new Uint8Array(de);for(let ht=0,le=re.length;ht<le;ht++)xe[ht]=re.charCodeAt(ht);return de}const Q=()=>{var re;const de=I(atob("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMHjNir5fXx/ZXoaEeXQ5XyxbNJ4YJYczoCRdSkL6NLzw1FHnng5Vfcgk5+bvox9QRYRbuk84mA4f2NhywDbXKECAwEAAQ=="));return X((re=At.EA)==null?void 0:re.subtle.importKey("spki",de,{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!0,["verify"]))};function ve(re){if(window.TextEncoder)return new TextEncoder().encode(re);const de=unescape(encodeURIComponent(re)),xe=new Uint8Array(de.length);for(let ht=0;ht<de.length;ht++)xe[ht]=de.charCodeAt(ht);return xe}function Me(re,de){return $e(this,null,function*(){var xe;return X((xe=At.EA)==null?void 0:xe.subtle.verify({name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},yield Q(),I(atob(de)),ve(re)))})}function ot(re,de){return de===!0?!0:Array.isArray(de)&&typeof window!="undefined"?re==="localhost"||re==="127.0.0.1"||re.endsWith(".localhost")||!!de.find(xe=>xe===re||re.endsWith("."+xe))?!0:!!de.find(xe=>{if(xe.indexOf("*")!==xe.lastIndexOf("*"))return;const[ht,le]=xe.split("*");return le&&re.startsWith(ht)&&re.endsWith(le)&&le.split(".").length>2}):!1}function mt(re){return $e(this,null,function*(){const de=window.location.hostname;if(!re)return de==="localhost"||de==="127.0.0.1"||de.endsWith(".localhost")?{local:!0}:{};const[xe,ht]=re.split(".");let le;try{if(!(yield Me(atob(xe),ht)))return{valid:!1};le=JSON.parse(atob(xe))}catch(Ae){return{valid:!1,cryptoMissing:!0}}return le.valid=!0,(!le.e||Date.now()/1e3>le.e)&&(le.expired=!0),le.allowed=ot(de,le.h),le})}var ke=e(24787),Qe=e(20906),Xe=Object.defineProperty,lt=Object.defineProperties,dt=Object.getOwnPropertyDescriptor,pt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,qt=(re,de,xe)=>de in re?Xe(re,de,{enumerable:!0,configurable:!0,writable:!0,value:xe}):re[de]=xe,On=(re,de)=>{for(var xe in de||(de={}))en.call(de,xe)&&qt(re,xe,de[xe]);if(Ht)for(var xe of Ht(de))pn.call(de,xe)&&qt(re,xe,de[xe]);return re},Hn=(re,de)=>lt(re,pt(de)),gn=(re,de,xe,ht)=>{for(var le=ht>1?void 0:ht?dt(de,xe):de,Ae=re.length-1,_e;Ae>=0;Ae--)(_e=re[Ae])&&(le=(ht?_e(de,xe,le):_e(le))||le);return ht&&le&&Xe(de,xe,le),le},Gt=(re,de,xe)=>(qt(re,typeof de!="symbol"?de+"":de,xe),xe),Fn=(re,de,xe)=>new Promise((ht,le)=>{var Ae=vt=>{try{Ye(xe.next(vt))}catch(Ut){le(Ut)}},_e=vt=>{try{Ye(xe.throw(vt))}catch(Ut){le(Ut)}},Ye=vt=>vt.done?ht(vt.value):Promise.resolve(vt.value).then(Ae,_e);Ye((xe=xe.apply(re,de)).next())});const Gn=typeof window=="undefined"?{__REDOCLY_SEARCH_URL:void 0}:window;class Zn{constructor(de,xe,ht,le){Gt(this,"id"),Gt(this,"absoluteIdx"),Gt(this,"name"),Gt(this,"description"),Gt(this,"type"),Gt(this,"linkable"),Gt(this,"items",[]),Gt(this,"parent"),Gt(this,"externalDocs"),Gt(this,"active",!1),Gt(this,"expanded",!1),Gt(this,"depth"),Gt(this,"level"),(0,r.rC)(this),this.id="section/"+de,this.type="nesting-group",this.name=ht||"",this.level=1,this.depth=1,this.description="",this.parent=void 0,this.expanded=!1,this.items=xe,this.linkable=!!le,xe.forEach(Ae=>Ae.parent=this),Er(xe)}activate(){this.active=!0}expand(){this.expanded=!0,this.parent&&this.parent.expand()}collapse(){this.expanded=!1}deactivate(){this.active=!1}}gn([r.LO],Zn.prototype,"active",2),gn([r.LO],Zn.prototype,"expanded",2),gn([r.aD],Zn.prototype,"activate",1),gn([r.aD],Zn.prototype,"expand",1),gn([r.aD],Zn.prototype,"collapse",1),gn([r.aD],Zn.prototype,"deactivate",1);function Er(re){!Array.isArray(re)||re.forEach(de=>{de.depth++,de.parent&&de.parent.type==="group"&&(de.depth=de.parent.depth),Er(de.items)})}const wr=class{constructor(re,de,xe={},ht=!0){Gt(this,"rawOptions"),Gt(this,"options"),Gt(this,"menu"),Gt(this,"definition"),Gt(this,"marker",new o.MarkerService),Gt(this,"scroll"),Gt(this,"disposer"),Gt(this,"search"),Gt(this,"tryItOperation"),Gt(this,"showRightPanel",!0),Gt(this,"layout",ke.N.THREE_PANEL),Gt(this,"activeSampleLanguage"),Gt(this,"isLoading"),Gt(this,"l"),(0,r.rC)(this),this.initProOptions(xe),o.IS_BROWSER&&(this.l=mt(xe.licenseKey),this.l.then(_e=>{(!_e.valid||!_e.allowed||_e.expired)&&!_e.local&&(this.menu.items=[],this.menu.flatItems=this.menu.flatItems.slice(0,1),this.menu.renderItems=[])}));const le=typeof re=="object"&&"versions"in re,Ae=this.options.disableSidebar?new ue.GZ(this.options):this.options.routingStrategy==="browser"?new ue.bM(this.options,le):new ue.nI(this.options,le);this.definition=le?new Ve.C(re,this.options,Ae.currentId.split("/")[0]):new o.SpecStore(re,de,this.options),xe.downloadDefinitionUrl&&(this.definition.info.downloadFileName=""),this.scroll=new o.ScrollService(this.options),this.options.disableSidebar||Ot.updateOnHistory(Ae.currentId,this.scroll),this.menu=new Ot(this.definition,this.scroll,this.options,Ae),this.menu.initOnHistory(),this.options.disableSearch||this.initSearch(this.options,ht),this.disposer=(0,r.N7)(this.menu,this.options.pagination==="none"?"activeItemIdx":"activeRenderItemIdx",_e=>{setTimeout(()=>this.updateMarkOnMenu(_e.newValue))}),(0,R._3)(this)}initProOptions(re){var de,xe,ht,le,Ae;re=gt(re),this.rawOptions=Ie(re),this.options=new o.RedocNormalizedOptions(this.rawOptions,er),this.rawOptions.showConsole!=null&&console.warn('"showConsole" option is deprecated. Please, use "hideTryItPanel" instead.'),this.options.showConsole=this.rawOptions.hideTryItPanel!=null?!this.rawOptions.hideTryItPanel:(de=this.rawOptions.showConsole)!=null?de:!0,this.options.hideRightPanel=(xe=this.rawOptions.hideRightPanel)!=null?xe:!1,this.showRightPanel=!this.options.hideRightPanel,this.options.showRightPanelToggle=(ht=this.rawOptions.showRightPanelToggle)!=null?ht:!0,this.options.showChangeLayoutButton=(le=this.rawOptions.showChangeLayoutButton)!=null?le:!0,this.options.layout=this.rawOptions.layout||ke.N.THREE_PANEL,this.options.defaultSampleLanguage=this.rawOptions.defaultSampleLanguage||"",this.options.deepLinkSeparator=this.rawOptions.deepLinkSeparator||"/",this.options.deepLinkPrefix=this.rawOptions.deepLinkPrefix||"!",this.options.disableDeepLinks=this.rawOptions.disableDeepLinks||!1,this.options.sideNavStyle=this.rawOptions.sideNavStyle||Qe.s.SummaryOnly,this.options.whiteLabel=!!this.rawOptions.whiteLabel,this.options.hideLogo=!!this.rawOptions.hideLogo,this.options.hideInfoSection=!!this.rawOptions.hideInfoSection,this.options.oAuth2RedirectURI=this.rawOptions.oAuth2RedirectURI||null,this.options.oAuth2RedirectURI=this.rawOptions.oAuth2RedirectURI||null,this.options.events=this.rawOptions.events||{},this.options.corsProxyUrl=this.rawOptions.corsProxyUrl?Rr(this.rawOptions.corsProxyUrl):null,this.options.authCorsProxyUrl=this.rawOptions.authCorsProxyUrl?Rr(this.rawOptions.authCorsProxyUrl):null,this.options.theme.scrollYOffset=this.options.scrollYOffset,this.options.linkForId=this.rawOptions.linkForId||null,this.options.generateDeepLink=this.rawOptions.generateDeepLink||null,this.options.onDeepLinkClick=this.rawOptions.onDeepLinkClick||null,this.options.requestInterceptor=this.rawOptions.requestInterceptor||null,this.options.sidebarLinks=this.rawOptions.sidebarLinks||{};const _e=typeof this.rawOptions.layout=="object"?this.rawOptions.layout:null;if(this.options.pagination=this.rawOptions.pagination||"none",this.options.routingStrategy=this.rawOptions.routingStrategy!==void 0?this.options.routingStrategy:this.options.pagination==="none"?"hash":"browser",!((Ae=this.rawOptions)==null?void 0:Ae.pagination)&&!!(_e==null?void 0:_e.scope))switch(console.warn('"layout.scope" and "routingStrategy" settings are deprecated. Please, use "pagination" instead.'),_e==null?void 0:_e.scope){case"all":this.options.pagination="none",this.options.routingStrategy="hash";break;case"section":this.options.pagination="section",this.options.routingStrategy="browser";break;case"item":this.options.pagination="item",this.options.routingStrategy="browser";break;default:this.options.pagination="none",this.options.routingStrategy="hash";break}this.options.markdownItemsPagination="none",this.rawOptions.showNextButton!==!1&&(this.options.showNextButton=!0),this.options.disableSidebar=!!re.disableSidebar,this.options.disableSidebar&&(this.options.theme.sidebar.width="0px"),this.options.skipBundleAndConvert=!!re.skipBundleAndConvert,this.options.routingBasePath=re.routingBasePath&&(0,At.AH)(re.routingBasePath)||"",this.options.searchAutoExpand=re.searchAutoExpand!==!1,this.options.searchMode=re.searchMode||"default",this.options.ctrlFHijack=re.ctrlFHijack===void 0||re.ctrlFHijack,this.options.disablePaginationLoadingAnimation=!!re.disablePaginationLoadingAnimation||this.options.pagination==="none",this.options.showConsole,this.options.generateCodeSamples=re.generateCodeSamples||{languages:[]},this.options.searchMaxDepth=this.rawOptions.searchMaxDepth||ee}initSearch(re,de){Gn.__REDOCLY_SEARCH_URL?this.search=new C(Gn.__REDOCLY_SEARCH_URL):this.search=new We(re),de&&setTimeout(()=>{var xe;return(xe=this.search)==null?void 0:xe.indexItems(this.menu.items)},50),this.definition instanceof Ve.C&&(0,r.N7)(this.definition,"activeVersionIdx",xe=>{var ht,le;const Ae=this.definition;(ht=this.search)==null||ht.dispose(),this.search=new We(re);const _e=Ae.versions[xe.newValue]._searchIndexName;if(!o.IS_BROWSER||!_e)setTimeout(()=>{var Ye;(Ye=this.search)==null||Ye.indexItems(this.menu.items)},0);else{const Ye=Ae.versions[xe.newValue]._searchIndexName,vt=new URL(window.location.href);vt.pathname=vr(this.options.routingBasePath,Ye),(le=this.search)==null||le.fromExternalJS(vt.toString(),__redoc_state.searchIndexExport),this.observeAllAndRemark()}}),o.IS_BROWSER&&this.observeAllAndRemark()}onDidMount(){if(this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx),this.layout=(0,R.Y9)("layoutVariant")||this.options.layout||this.layout,this.activeSampleLanguage=(0,R.Y9)("activeSampleLanguage")||this.options.defaultSampleLanguage,this.options.showRightPanelToggle){const re=(0,R.YQ)("showRightPanelToggleState");re&&(this.showRightPanel=re==="true")}}toggleRightPanel(re){this.showRightPanel=re!=null?re:!this.showRightPanel,(0,R.WW)("showRightPanelToggleState",JSON.stringify(this.showRightPanel))}toggleLayout(re=ke.N.THREE_PANEL){this.layout=re,(0,R.Im)("layoutVariant",re)}disableConsole(){this.options.showConsole=!1}enableConsole(){this.options.showConsole=!0}tryItOut(re){this.tryItOperation=re}setActiveSampleLanguage(re){if(this.activeSampleLanguage===re)return this.stopLoader();this.activeSampleLanguage=re,(0,R.Im)("activeSampleLanguage",re)}activateSampleLanguage(re){this.setActiveSampleLanguage(re)}startLoader(){this.isLoading||(this.isLoading=!0)}stopLoader(){this.isLoading&&(this.isLoading=!1)}dereferenceSpecForTryIt(re){return Fn(this,null,function*(){var de,xe,ht,le;const Ae=this.definition.parser.definition,_e=JSON.parse(JSON.stringify(Ae)),Ye=Hn(On({},it(_e)),{components:_e.components,paths:{[re.path]:{[re.httpVerb]:(xe=(de=_e.paths)==null?void 0:de[re.path])==null?void 0:xe[re.httpVerb],parameters:(le=(ht=_e.paths)==null?void 0:ht[re.path])==null?void 0:le.parameters}}}),vt=new n.De({}),Ut=(0,o.createParsedDocument)(Ye),zt={config:vt,doc:Ut,dereference:!0};return yield(0,n.gR)(zt),_e})}observeAllAndRemark(){const re=(xe,ht=0)=>{if(!(!xe||xe.isCircular||ht>this.options.searchMaxDepth)){if(xe.items){re(xe.items,ht+1);return}for(const le of xe.fields||[])(le.schema.fields||le.schema.items)&&((0,r.N7)(le,"expanded",Ae=>this.remark(Ae)),re(le.schema,ht+1))}},de=xe=>{for(const ht of xe)if(ht.type==="operation"){const le=ht.responses;for(const Ae of le)(0,r.N7)(Ae,"expanded",_e=>this.remark(_e))}else ht.type==="tag"&&de(ht.items||[])};de(this.menu.renderItems),this.options.pagination!=="none"&&(0,r.N7)(this.menu,"renderItems",()=>de(this.menu.renderItems))}remark(re){re.newValue&&setTimeout(()=>this.marker.mark(),0)}static fromJS(re){var de;const xe=new wr(re.definition.data,re.definition.url,re.options,!1);(0,R._3)(xe),xe.menu.activeItemIdx=re.menu.activeItemIdx!==void 0?re.menu.activeItemIdx:-1,xe.definition instanceof Ve.C&&re.definition.activeVersionIdx&&(xe.definition.activeVersionIdx=re.definition.activeVersionIdx||0);const ht=xe.menu.flatItems[xe.menu.activeItemIdx];if(ht&&xe.menu.activate(ht,!1),!xe.options.disableSearch){const le=new URL(window.location.href);le.pathname=re.searchIndexPath&&re.searchIndexPath.startsWith("/")?re.searchIndexPath:le.pathname+(le.pathname.endsWith("/")?"":"/")+re.searchIndexPath,(de=xe.search)==null||de.fromExternalJS(le.toString(),re.searchIndexExport)}return re.tryItOperationId&&(xe.tryItOperation=xe.menu.flatItems.find(le=>le.id===re.tryItOperationId)),setTimeout(()=>xe.observeAllAndRemark(),0),xe}toJS(){return Fn(this,null,function*(){var re;return{menu:{activeItemIdx:this.menu.activeItemIdx},definition:this.definition instanceof Ve.C?{url:void 0,data:this.definition.toJS()}:{url:this.definition.parser.definitionUrl,data:this.definition.parser.definition},searchIndex:this.search?yield this.search.toJS():void 0,options:this.rawOptions,tryItOperationId:(re=this.tryItOperation)==null?void 0:re.id}})}dispose(){this.scroll.dispose(),this.menu.dispose(),this.search&&this.search.dispose(),this.disposer()}updateMarkOnMenu(re){const de=Math.max(0,re),xe=Math.min(this.menu.flatItems.length,de+5),ht=[];for(let le=de;le<xe;le++){const Ae=this.menu.getElementAt(le);!Ae||Ae&&ht.push(Ae)}if(this.options.pagination==="item"){const{parent:le}=this.menu.flatItems[re]||{};if(le==null?void 0:le.absoluteIdx){const Ae=this.menu.getElementAt(le.absoluteIdx);Ae&&ht.push(Ae)}}this.marker.addOnly(ht),this.marker.mark()}};let Nn=wr;gn([r.LO],Nn.prototype,"search",2),gn([r.LO],Nn.prototype,"tryItOperation",2),gn([r.LO],Nn.prototype,"showRightPanel",2),gn([r.LO],Nn.prototype,"layout",2),gn([r.LO],Nn.prototype,"activeSampleLanguage",2),gn([r.LO],Nn.prototype,"isLoading",2),gn([r.aD],Nn.prototype,"onDidMount",1),gn([r.aD],Nn.prototype,"toggleRightPanel",1),gn([r.aD],Nn.prototype,"toggleLayout",1),gn([r.aD],Nn.prototype,"disableConsole",1),gn([r.aD],Nn.prototype,"enableConsole",1),gn([r.aD],Nn.prototype,"tryItOut",1),gn([r.aD],Nn.prototype,"setActiveSampleLanguage",1),gn([s.bind,(0,s.debounce)(500)],Nn.prototype,"activateSampleLanguage",1),gn([r.aD],Nn.prototype,"startLoader",1),gn([r.aD],Nn.prototype,"stopLoader",1);const er={ignoreNamedSchemas:["java.io.ObjectStreamField"],allowedMdComponents:{RedocResponse:{component:E,propsSelector(re){return{store:re}}},PullRight:{component:d,propsSelector(){return{}}},[o.SCHEMA_DEFINITION_JSX_NAME]:{component:o.SchemaDefinition,propsSelector:re=>({parser:re.definition.parser,options:re.options,layout:re.layout,showRightPanel:re.showRightPanel})},[o.SECURITY_DEFINITIONS_COMPONENT_NAME]:{component:H,propsSelector:re=>({securitySchemes:re.definition.securitySchemes})},[o.SECURITY_DEFINITIONS_JSX_NAME]:{component:H,propsSelector:re=>({securitySchemes:re.definition.securitySchemes})}}};function vr(re,de){return re.endsWith("/")&&(re=re.slice(0,-1)),de.startsWith("/")&&(de=de.substring(1)),`${re}/${de}`}function Rr(re){return re.endsWith("/")?re:re+"/"}function it(re){if(re.openapi)return{openapi:re.openapi};if(re.swagger)return{swagger:re.swagger}}function gt(re){if(typeof re!="object"||re===null)return re;const de=Array.isArray(re)?[]:{};for(const xe in re){const ht=re[xe];de[xe]=gt(ht)}return de}},95669:(D,c,e)=>{"use strict";e.d(c,{C:()=>d});var r=e(68949),n=e(76671),s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=(p,g,y)=>g in p?s(p,g,{enumerable:!0,configurable:!0,writable:!0,value:y}):p[g]=y,h=(p,g,y,b)=>{for(var m=b>1?void 0:b?o(g,y):g,E=p.length-1,x;E>=0;E--)(x=p[E])&&(m=(b?x(g,y,m):x(m))||m);return b&&m&&s(g,y,m),m},u=(p,g,y)=>(a(p,typeof g!="symbol"?g+"":g,y),y);function l(p,g,y){p.forEach(b=>{if(b.items&&l(b.items,g,y),b.id=y+"/"+b.id,b.type==="operation"){b.specIdx=g;for(const m of b.security)for(const E of m.schemes)E.sectionId=y+"/"+E.sectionId}})}class d{constructor(g,y,b){if(this.config=g,this.options=y,u(this,"versions"),u(this,"activeVersionIdx",-1),(0,r.rC)(this),this.versions=[],!g.versions)return;let m=0,E=0;for(const x of g.versions||[]){x.isDefault&&(E=m);const T=new n.SpecStore(x.spec,void 0,y);this.versions.push(T),l(T.contentItems,m,x.id);for(const w of T.securitySchemes.schemes)w.sectionId=x.id+"/"+w.sectionId;x.id===b&&(this.activeVersionIdx=m),m++,x._searchIndexName&&(T._searchIndexName=x._searchIndexName)}this.activeVersionIdx===-1&&(this.activeVersionIdx=E),g.versions[E].isDefault=!0}get versionsInfo(){return this.config.versions||[]}get currentVersionId(){return this.versionsInfo[this.activeVersionIdx]&&this.versionsInfo[this.activeVersionIdx].id}get contentItems(){return this.versions[this.activeVersionIdx].contentItems}get securitySchemes(){return this.versions[this.activeVersionIdx].securitySchemes}get externalDocs(){return this.versions[this.activeVersionIdx].externalDocs}get parser(){return this.versions[this.activeVersionIdx].parser}get info(){return this.versions[this.activeVersionIdx].info}changeVersion(g){this.activeVersionIdx=g}toJS(){return this.config}}h([r.LO],d.prototype,"activeVersionIdx",2),h([r.aD],d.prototype,"changeVersion",1)},99098:(D,c,e)=>{"use strict";e.d(c,{Ez:()=>po,aP:()=>$i});var r=e(17563),n=e(89124),s=e(9996),o=e.n(s),a=e(76671),h=e(25446),u=e(64776),l=e(17673),d=e(8575),p=e(94110),g=e.n(p),y=e(89539),b;(function(M){M.NODEJS="Node.js",M.JAVASCRIPT="javascript",M.PYTHON="Python",M.JAVA8="Java8+Apache",M.JAVA="Java",M.CSHARP="C#",M.CURL="curl",M.GO="Go",M.PHP="PHP",M.RUBY="Ruby",M.R="R"})(b||(b={}));var m;(function(M){M.UNDER_SCORES="under_scores",M.CAMEL_CASE="camelCase",M.PASCAL_CASE="PascalCase"})(m||(m={}));var E;(function(M){M.IMPORT="import",M.CUSTOM="custom",M.PATH="path"})(E||(E={}));const x="\\ud800-\\udfff",T="\\u0300-\\u036f",w="\\ufe20-\\ufe2f",R="\\u20d0-\\u20ff",P="\\u1ab0-\\u1aff",_="\\u1dc0-\\u1dff",B=T+w+R+P+_,v="\\u2700-\\u27bf",$="a-z\\xdf-\\xf6\\xf8-\\xff",S="\\xac\\xb1\\xd7\\xf7",F="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",H="\\u2000-\\u206f",se=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ue="A-Z\\xc0-\\xd6\\xd8-\\xde",ne="\\ufe0e\\ufe0f",Se=S+F+H+se,Ve=/['\u2019]/g,Ee="['\u2019]",oe=`[${Se}]`,ge=`[${B}]`,K="\\d",Y=`[${v}]`,q=`[${$}]`,Pe=`[^${x}${Se+K+v+$+ue}]`,Re="\\ud83c[\\udffb-\\udfff]",he=`(?:${ge}|${Re})`,Le=`[^${x}]`,ze="(?:\\ud83c[\\udde6-\\uddff]){2}",ft="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot=`[${ue}]`,Bt="\\u200d",Kt=`(?:${q}|${Pe})`,Qt=`(?:${Ot}|${Pe})`,k=`(?:${Ee}(?:d|ll|m|re|s|t|ve))?`,me=`(?:${Ee}(?:D|LL|M|RE|S|T|VE))?`,Ze=`${he}?`,St=`[${ne}]?`,ye=`(?:${Bt}(?:${[Le,ze,ft].join("|")})${St+Ze})*`,Fe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Z="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ee=St+Ze+ye,We=`(?:${[Y,ze,ft].join("|")})${ee}`,C=RegExp([`${Ot}?${q}+${k}(?=${[oe,Ot,"$"].join("|")})`,`${Qt}+${me}(?=${[oe,Ot+Kt,"$"].join("|")})`,`${Ot}?${Kt}+${k}`,`${Ot}+${me}`,Z,Fe,`${K}+`,We].join("|"),"g"),ie=M=>M.match(C),we=RegExp(`[${Bt+x+B+ne}]`),Ie=M=>we.test(M),Ne=`[${x}]`,rt=`(?:${[`${Le}${ge}?`,ge,ze,ft,Ne].join("|")})`,It=RegExp(`${Re}(?=${Re})|${rt+ee}`,"g"),Yt=M=>M.match(It)||[],cn=M=>M.split(""),At=M=>{const ce=Object.prototype.toString;return M==null?M===void 0?"[object Undefined]":"[object Null]":ce.call(M)},$e=M=>{const ce=typeof M;return ce=="symbol"||ce==="object"&&M!=null&&At(M)=="[object Symbol]"},X=1/0,I=M=>{if(M==null)return"";if(typeof M=="string")return M;if(Array.isArray(M))return`${M.map(He=>He==null?He:I(He))}`;if($e(M))return M.toString();const ce=`${M}`;return ce=="0"&&1/M==-X?"-0":ce},Q=RegExp.prototype.test.bind(/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/),ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Me=M=>M.match(ve),ot=(M,ce,He)=>{let O=M==null?0:M.length;if(!O)return[];ce=ce==null?0:ce,He=He===void 0?O:He,ce<0&&(ce=-ce>O?0:O+ce),He=He>O?O:He,He<0&&(He+=O),O=ce>He?0:He-ce>>>0,ce>>>=0;let N=-1;const W=new Array(O);for(;++N<O;)W[N]=M[N+ce];return W},mt=M=>(Q(M)?ie(M):Me(M))||[],ke=(M,ce)=>{const{length:He}=M,O=He;return!ce&&O>=He?M:ot(M,ce,O)},Qe=M=>Ie(M)?Yt(M):cn(M),lt=(M=>ce=>{if(!ce)return"";const He=Ie(ce)?Qe(ce):void 0,O=He?He[0]:ce[0],N=He?ke(He,1).join(""):ce.slice(1);return O[M]()+N})("toUpperCase"),dt=M=>mt(I(M).replace(/['\u2019]/g,"")).reduce((ce,He,O)=>(He=He.toLowerCase(),ce+(O?lt(He):He)),""),pt=M=>mt(I(M).replace(Ve,"")).reduce((ce,He,O)=>ce+(O?" ":"")+He.toLowerCase(),""),Ht=M=>mt(I(M).replace(/['\u2019]/g,"")).reduce((ce,He,O)=>ce+(O?"_":"")+He.toLowerCase(),""),en=M=>mt(`${M}`.replace(/['\u2019]/g,"")).reduce((ce,He,O)=>ce+(O?" ":"")+lt(He),"");class pn{static toCamelCase(ce){return dt(ce)}static toTitleCase(ce){return en(dt(ce))}static toPascalCase(ce){return en(dt(ce)).replace(/ /g,"")}static toLowerCase(ce){return pt(ce).replace(/ /g,"")}static toSnakeCase(ce){return Ht(ce)}}var qt=Object.defineProperty,On=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,Gt=(M,ce,He)=>ce in M?qt(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,Fn=(M,ce)=>{for(var He in ce||(ce={}))Hn.call(ce,He)&&Gt(M,He,ce[He]);if(On)for(var He of On(ce))gn.call(ce,He)&&Gt(M,He,ce[He]);return M},Gn=(M,ce,He)=>(Gt(M,typeof ce!="symbol"?ce+"":ce,He),He);const Zn={[b.NODEJS]:m.CAMEL_CASE,[b.JAVASCRIPT]:m.CAMEL_CASE,[b.PYTHON]:m.UNDER_SCORES,[b.JAVA8]:m.CAMEL_CASE,[b.JAVA]:m.CAMEL_CASE,[b.CSHARP]:m.PASCAL_CASE,[b.CURL]:m.CAMEL_CASE,[b.GO]:m.CAMEL_CASE,[b.PHP]:m.CAMEL_CASE,[b.RUBY]:m.UNDER_SCORES,[b.R]:m.UNDER_SCORES},Er={default:{joinSymbol:"",variableWrapperFn:M=>M,stringLiteral:M=>M,variableDeclaration:M=>M,urlFieldName:"url"},[b.CSHARP]:{joinSymbol:" + ",stringLiteral:M=>`"${M}"`,variableDeclaration:M=>`var ${M} = "%s";`,urlFieldName:"fullUrl"},[b.GO]:{joinSymbol:" + ",stringLiteral:M=>`"${M}"`,variableDeclaration:M=>`${M} := "%s";`},[b.JAVA]:{joinSymbol:" + ",stringLiteral:M=>`"${M}"`,variableDeclaration:M=>`var ${M} = "%s";`,urlFieldName:"pathname"},[b.JAVA8]:{joinSymbol:" + ",stringLiteral:M=>`"${M}"`,variableDeclaration:M=>`String ${M} = "%s";`,urlFieldName:"fullUrl"},[b.JAVASCRIPT]:{variableWrapperFn:M=>"${"+M+"}",variableDeclaration:M=>`const ${M} = '%s';`},[b.NODEJS]:{variableWrapperFn:M=>"${"+M+"}",variableDeclaration:M=>`const ${M} = '%s';`},[b.PHP]:{joinSymbol:" . ",stringLiteral:M=>`"${M}"`,variableDeclaration:M=>`const ${M} = "%s";`},[b.PYTHON]:{stringLiteral:M=>`"${M}"`,joinSymbol:" + ",variableDeclaration:M=>`${M} = "%s"`},[b.RUBY]:{joinSymbol:" + ",stringLiteral:M=>`'${M}'`,variableDeclaration:M=>`${M} = '%s'`},[b.CURL]:{variableWrapperFn:(M,ce)=>ce||`{${M}}`,urlFieldName:"fullUrl",rawName:!0},[b.R]:{joinSymbol:" %&% ",variableDeclaration:M=>`${M} = "%s"`,urlFieldName:"fullUrl",stringLiteral:M=>`"${M}"`,variableWrapperFn:M=>`${M}`}},wr=["response","request","requests","data","url","payload","main","accessToken","resp","Program","client","postData","App","httpClient","params","pathname","host","body","fetch","query"];class Nn{constructor({indentation:ce,lineJoin:He=`
2680
2680
  `,variablesPrefix:O="",capitalize:N=!1,lang:W=b.CURL}){Gn(this,"code"),Gn(this,"indentation"),Gn(this,"variablesPrefix"),Gn(this,"lineJoin"),Gn(this,"capitalize"),Gn(this,"lang"),Gn(this,"langOptions"),this.code=[],this.indentation=ce,this.variablesPrefix=O,this.lineJoin=He||`
2681
2681
  `,this.capitalize=N,this.lang=W,this.langOptions=Fn(Fn({},Er.default),Er[W])}buildLine(ce,He){let O="",N=2;if(typeof ce=="string")N=1,He=ce,ce=0;else if(ce===null)return null;for(;ce;)O+=this.indentation,ce--;const W=Array.prototype.slice.call(arguments,N,arguments.length);return W.unshift(O+He),y.format.apply(this,W)}unshift(...ce){return this.code.unshift(this.buildLine.apply(this,ce)),this}push(...ce){return this.code.push(this.buildLine.apply(this,ce)),this}blank(){return this.code.push(null),this}join(){return this.code.join(this.lineJoin)}clean(){this.code.splice(1)}var(ce,He=E.CUSTOM){if(He===E.PATH){let O=this.variablesPrefix+ce;switch(wr.includes(O)&&(O=`${O}_path`),Zn[this.lang]){case m.UNDER_SCORES:O=pn.toSnakeCase(O);break;case m.PASCAL_CASE:O=pn.toPascalCase(O);break;case m.CAMEL_CASE:default:O=pn.toCamelCase(O);break}return O}return this.variablesPrefix?this.variablesPrefix+(this.capitalize?pn.toPascalCase(ce):ce):ce}}var er=Object.defineProperty,vr=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,gt=(M,ce,He)=>ce in M?er(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,re=(M,ce)=>{for(var He in ce||(ce={}))Rr.call(ce,He)&&gt(M,He,ce[He]);if(vr)for(var He of vr(ce))it.call(ce,He)&&gt(M,He,ce[He]);return M};function de({body:M,authorizationHeader:ce}){return function(He,O,N){return M&&O==="body"&&typeof He.body=="string"?He.body:ce&&O==="Authorization"&&typeof He.Authorization=="string"?He.Authorization:N}}function xe(M,{level:ce=0,indent:He=" ",firstLine:O=!0}={}){const N=He.repeat(ce),W=M.replace(/(\r\n|\n|\r)/gm,`
2682
2682
  ${N}`);return O?N.concat(W):W}function ht(M,ce){const O=Object.keys(ce).map(U=>({name:U,idx:M.indexOf(`{${U}}`)})).filter(({idx:U})=>U>-1).sort((U,J)=>U.idx-J.idx),N=[];let W=0;for(const{name:U,idx:J}of O)J>W&&N.push({type:"string",value:M.substring(W,J)}),N.push({type:"variable",name:U}),W=J+U.length+2;return W<M.length&&N.push({type:"string",value:M.substring(W)}),N}function le(M,ce){const{joinSymbol:He,variableWrapperFn:O,stringLiteral:N,urlFieldName:W,rawName:U}=ce.langOptions,{pathParameters:J={},serverVariables:ae={}}=M,De=re(re({},J),ae);return ht(M[W]||"",De).map(tt=>{if(tt.type==="variable"){const Ct=De[tt.name],st=U?tt.name:ce.var(tt.name,E.PATH);return O(st,Ct)}else return N(tt.value)}).join(He)}function Ae({pathParameters:M={},serverVariables:ce={}},He,O){Object.entries(re(re({},M),ce)).forEach(([N,W])=>{const U=W||`YOUR_${N}_PARAMETER`,J=He.var(N,E.PATH);O!==void 0?He.push(O,He.langOptions.variableDeclaration(J),U):He.push(He.langOptions.variableDeclaration(J),U)})}var _e=Object.defineProperty,Ye=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,Rn=(M,ce,He)=>ce in M?_e(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,vn=(M,ce)=>{for(var He in ce||(ce={}))zt.call(ce,He)&&Rn(M,He,ce[He]);if(Ut)for(var He of Ut(ce))fn.call(ce,He)&&Rn(M,He,ce[He]);return M},Sn=(M,ce)=>Ye(M,vt(ce));const rr=function(M,ce,{target:He,client:O}){var N,W,U,J,ae;const De=vn({indent:" ",credentials:null},ce),tt=new Nn({indentation:De.indent,variablesPrefix:De.variablesPrefix,capitalize:!0,lang:b.JAVASCRIPT}),Ct={method:M.method.toUpperCase()};Object.keys(M.headersObj).length&&(Ct.headers=M.headersObj);let st=!1;if(De.withComments&&Yn(tt),(N=M.securityOAuth2ExtraCalls)==null?void 0:N.length){const bn=new Oi((W=M.securityOAuth2ExtraCalls)==null?void 0:W[0]).convert(He,O,Sn(vn({},De),{withImports:!1,withComments:!1,variablesPrefix:"oAuth2"}));tt.push(bn),tt.blank(),Ct.headers=Ct.headers||{},Ct.headers.Authorization="'Bearer ' + oAuth2Data.access_token",st=!0}De.credentials!==null&&(Ct.credentials=De.credentials);const $t=Object.getOwnPropertyNames(M.queryObj).length;if($t&&tt.push(`const ${tt.var("query")} = new URLSearchParams(${g()(M.queryObj,{indent:De.indent,inlineCharacterLimit:25})}).toString();`).blank(),M.postData)switch((0,u.PP)(M.postData.mimeType)){case"application/x-www-form-urlencoded":Ct.body=M.postData.paramsObj?`new URLSearchParams(${tt.var("formData")}).toString()`:M.postData.text,M.postData.paramsObj&&tt.push(`const ${tt.var("formData")} = ${xe(g()(M.postData.paramsObj,{indent:De.indent,inlineCharacterLimit:25}),{level:0,firstLine:!1})};`).blank();break;case"application/json":M.postData.jsonObj&&(Ct.body=`JSON.stringify(${xe(g()(M.postData.jsonObj,{indent:De.indent,inlineCharacterLimit:25}),{level:1,firstLine:!1})})`);break;case"multipart/form-data":tt.push(`const ${tt.var("form")} = new FormData();`),((U=Ct==null?void 0:Ct.headers)==null?void 0:U["Content-Type"])&&((J=Ct.headers)==null||delete J["Content-Type"]),M.postData.params.forEach(function(bn){tt.push(`${tt.var("form")}.append(%s, %s);`,JSON.stringify(bn.name),JSON.stringify(bn.value||bn.fileName||""))}),Ct.body=tt.var("form"),tt.blank();break;default:M.postData.text&&(Ct.body=`\`${xe(M.postData.text,{level:2,indent:De.indent,firstLine:!1}).trim()}\``)}const _t=Ct.headers&&Ct.headers.Accept&&(0,u.PP)(Ct.headers.Accept)==="application/json"||(0,u.PP)((ae=M.postData)==null?void 0:ae.mimeType)==="application/json";if(M.basicAuth){const{username:bn,password:Ln}=M.basicAuth;Ct.headers=Ct.headers||{},Ct.headers.Authorization=`'Basic ' + btoa('${bn}:${Ln}')`,st=!0}Ae(M,tt);const Dn=le(M,tt);return tt.push(`const ${tt.var("resp")} = await fetch(`).push(1,"`"+Dn+($t?"?${"+tt.var("query")+"}":"")+"`,").push(xe(g()(Ct,{indent:De.indent,inlineCharacterLimit:25,transform:de({body:!0,authorizationHeader:st})}),{level:1,indent:De.indent})).push(");").blank().push(`const ${tt.var("data")} = await ${tt.var("resp")}.${_t?"json()":"text()"};`).push(`console.log(${tt.var("data")});`),tt.join()};function Yn(M){M.push("/**"),M.push(" * Requires ES8-compatible browser: https://caniuse.com/async-functions"),M.push(" */"),M.blank()}const wn={key:"fetch",title:"fetch",link:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch",description:"Perform asynchronous HTTP requests with the Fetch API"},_n={info:{key:"javascript",title:"JavaScript",extname:".js",default:"fetch"},fetch:rr};var Pn=Object.defineProperty,Mn=Object.defineProperties,Vn=Object.getOwnPropertyDescriptors,yr=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable,Qn=(M,ce,He)=>ce in M?Pn(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,Pr=(M,ce)=>{for(var He in ce||(ce={}))Kn.call(ce,He)&&Qn(M,He,ce[He]);if(yr)for(var He of yr(ce))or.call(ce,He)&&Qn(M,He,ce[He]);return M},kr=(M,ce)=>Mn(M,Vn(ce));const Ir=function(M,ce,{target:He,client:O}){var N,W,U,J,ae;const De=Object.assign({indent:" ",showBoilerplate:!0,level:1},ce),{level:tt}=De;let Ct=!1;const st=new Nn({indentation:De.indent,variablesPrefix:De.variablesPrefix,capitalize:!0,lang:b.NODEJS});De.withComments&&mr(st),De.withImports&&(st.push("import fetch from 'node-fetch';"),st.blank()),De.showBoilerplate&&st.push("async function run() {");const $t={method:M.method.toUpperCase()};Object.keys(M.headersObj).length&&($t.headers=M.headersObj);let _t=!1;if((N=M.securityOAuth2ExtraCalls)==null?void 0:N.length){const hn=new Oi((W=M.securityOAuth2ExtraCalls)==null?void 0:W[0]).convert(He,O,kr(Pr({},De),{withImports:!1,withComments:!1,variablesPrefix:"oAuth2",showBoilerplate:!1,level:1}));st.push(hn),st.blank(),$t.headers=$t.headers||{},$t.headers.Authorization="'Bearer ' + oAuth2Data.access_token",_t=!0}const Dn=Object.getOwnPropertyNames(M.queryObj).length;if(Dn&&st.push(tt,`const ${st.var("query")} = new URLSearchParams(${xe(g()(M.queryObj,{indent:De.indent,inlineCharacterLimit:25}),{level:tt,indent:De.indent,firstLine:!1})}).toString();`).blank(),M.postData)switch((0,u.PP)(M.postData.mimeType)){case"application/x-www-form-urlencoded":$t.body=M.postData.paramsObj?`new URLSearchParams(${st.var("formData")}).toString()`:M.postData.text,M.postData.paramsObj&&st.push(tt,`const ${st.var("formData")} = ${xe(g()(M.postData.paramsObj,{indent:De.indent,inlineCharacterLimit:25}),{level:tt,firstLine:!1})};`).blank();break;case"application/json":M.postData.jsonObj&&($t.body=`JSON.stringify(${xe(g()(M.postData.jsonObj,{indent:De.indent,inlineCharacterLimit:25}),{level:tt,firstLine:!1})})`);break;case"multipart/form-data":((U=$t==null?void 0:$t.headers)==null?void 0:U["Content-Type"])&&((J=$t.headers)==null||delete J["Content-Type"]),De.withImports&&st.unshift("import FormData from 'form-data';"),st.push(tt,`const ${st.var("form")} = new FormData();`),M.postData.params.forEach(function(hn){if(!hn.fileName&&!hn.fileName&&!hn.contentType){st.push(tt,"form.append('"+hn.name+"','"+hn.value+"');");return}hn.fileName&&(Ct=!0,st.blank(),st.push(tt,`${st.var("form")}.append('" + param.name + "', fs.createReadStream('" + param.fileName + "'));`))}),$t.body=st.var("form"),st.blank();break;default:M.postData.text&&($t.body=`\`${xe(M.postData.text,{level:tt+1,indent:De.indent,firstLine:!1}).trim()}\``)}if(M.cookies.length){let hn="";M.cookies.forEach(function(In){hn=hn+encodeURIComponent(In.name)+"="+encodeURIComponent(In.value)+"; "}),hn=hn.trim(),$t.headers||($t.headers={}),$t.headers.cookie=hn}if(M.basicAuth){const{username:hn,password:In}=M.basicAuth;$t.headers=$t.headers||{},$t.headers.Authorization=`'Basic ' + Buffer.from('${hn}:${In}').toString('base64')`,_t=!0}Ct&&De.withImports&&st.unshift("import fs from 'fs';");const bn=$t.headers&&$t.headers.Accept&&(0,u.PP)($t.headers.Accept)==="application/json"||(0,u.PP)((ae=M.postData)==null?void 0:ae.mimeType)==="application/json";Ae(M,st,tt);const Ln=le(M,st);return st.push(tt,`const ${st.var("resp")} = await fetch(`).push(tt+1,"`"+Ln+(Dn?"?${"+st.var("query")+"}":"")+"`,").push(tt+1,xe(g()($t,{indent:De.indent,inlineCharacterLimit:25,transform:de({body:!0,authorizationHeader:_t})}),{level:tt+1,indent:De.indent,firstLine:!1})).push(tt,");").blank().push(tt,`const ${st.var("data")} = await ${st.var("resp")}.${bn?"json()":"text()"};`).push(tt,`console.log(${st.var("data")});`),De.showBoilerplate&&st.push("}").blank().push("run();"),st.join().replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')};function mr(M){M.push("/**"),M.push(" * Requires Node.js >= 14"),M.push(" *"),M.push(' * Requires module "node-fetch" >= 2.6.1'),M.push(" * See here for installation details:"),M.push(" * https://www.npmjs.com/package/node-fetch"),M.push(" */"),M.blank()}const Ur={key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",description:"Simplified HTTP node-fetch client"},_r={info:{key:"node",title:"Node.js",extname:".js",default:"fetch"},fetch:Ir};var br=Object.defineProperty,yn=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,be=(M,ce,He)=>ce in M?br(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,Ce=(M,ce)=>{for(var He in ce||(ce={}))mn.call(ce,He)&&be(M,He,ce[He]);if(Xt)for(var He of Xt(ce))qe.call(ce,He)&&be(M,He,ce[He]);return M},ut=(M,ce)=>yn(M,Dt(ce));const Rt=function(M,ce,{target:He,client:O}){var N,W,U;const J=Object.assign({indent:" "},ce),ae=new Nn({indentation:J.indent,variablesPrefix:J.variablesPrefix,lang:b.PYTHON});J.withComments&&Wt(ae),J.withImports&&ae.push("import requests").blank();let De=!1,tt=M.allHeaders;if((N=M.securityOAuth2ExtraCalls)==null?void 0:N.length){const In=new Oi((W=M.securityOAuth2ExtraCalls)==null?void 0:W[0]).convert(He,O,ut(Ce({},J),{withImports:!1,withComments:!1,variablesPrefix:"oauth2_"}));ae.push(In),ae.blank(),tt=tt||{},tt.Authorization='"Bearer " + oauth2_data["access_token"]',De=!0}Ae(M,ae),ae.push(`${ae.var("url").toLowerCase()} = %s`,le(M,ae)).blank();let Ct;if(Object.keys(M.queryObj||{}).length){const In=Et(M.queryObj,J.indent);Ct="query = "+In,ae.push(Ct).blank()}let st;const $t=(0,u.PP)((U=M.postData)==null?void 0:U.mimeType);if(M.postData)switch($t){case"application/x-www-form-urlencoded":st=M.postData.paramsObj?`${xe(Et(M.postData.paramsObj,J.indent),{level:0,firstLine:!1})}`:M.postData.text;break;case"application/json":M.postData.jsonObj&&(st=xe(Et(M.postData.jsonObj,J.indent),{level:0,firstLine:!1}));break;case"multipart/form-data":ae.unshift(`# multipart/form-data is not supported yet
@@ -2707,7 +2707,7 @@ ${W.indent}`,variablesPrefix:W.variablesPrefix,capitalize:!0,lang:b.PHP});$t.len
2707
2707
  `).trim():""}function hs(M,ce){const He=M.map(({name:O,value:N})=>((ce==null?void 0:ce.indent)||"")+`${O} = "${N}"`).join(`,
2708
2708
  `);return`
2709
2709
  `+He+`
2710
- `}var Hs=Object.defineProperty,co=Object.defineProperties,Qo=Object.getOwnPropertyDescriptors,ji=Object.getOwnPropertySymbols,qr=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable,Ri=(M,ce,He)=>ce in M?Hs(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,Oo=(M,ce)=>{for(var He in ce||(ce={}))qr.call(ce,He)&&Ri(M,He,ce[He]);if(ji)for(var He of ji(ce))Ai.call(ce,He)&&Ri(M,He,ce[He]);return M},Vs=(M,ce)=>co(M,Qo(ce));const Hr=1,Mo={X_FORM_URLENCODED:"application/x-www-form-urlencoded",JSON:"application/json",FORM_DATA:"multipart/form-data"},Zi={javascript:_n,node:_r,python:un,shell:Sr,java8:dn,java:fa,csharp:js,go:Vo,php:Ui,ruby:ps,r:{info:{key:"r",title:"R",extname:".r",default:"httr"},httr:function(M,ce,{target:He,client:O}){var N,W,U,J;const ae=Object.assign({indent:" ",showBoilerplate:!0,printBody:!0},ce),De=new Nn({indentation:ae.indent,variablesPrefix:ae.variablesPrefix,lang:b.R}),tt=M.method.toUpperCase(),Ct=(N=M.securityOAuth2ExtraCalls)==null?void 0:N[0];if(ae.showBoilerplate&&De.push("library(httr)").blank(),Ct){const bn="oauth2_",Ln=new Oi(Ct).convert(He,O,Vs(Oo({},ae),{variablesPrefix:bn,showBoilerplate:!1})),hn=`${bn}data_req`;De.push(Ln).push(`access_token = content(${hn}, "parsed")$access_token`).blank(),M.allHeaders.Authorization='paste("Bearer", access_token)'}let st,$t="";if(M==null?void 0:M.postData)switch((0,u.PP)((W=M==null?void 0:M.postData)==null?void 0:W.mimeType)){case Mo.X_FORM_URLENCODED:{st="form",$t=De.var("body");const bn=hs(M.postData.params,ae);De.push(`${$t} <- list(${bn})`).blank();break}case Mo.JSON:{st="json",$t=De.var("body");const bn=wi(M.postData.jsonObj,ae);De.push(`${$t} = '${bn}'`).blank();break}case Mo.FORM_DATA:{st="multipart",$t=De.var("body");const bn=hs(M.postData.params,ae);De.push(`${$t} <- list(${bn})`).blank();break}default:((U=M.postData)==null?void 0:U.text)&&($t=De.var("body"),st="raw",De.push(`${$t} = ${wi((J=M.postData)==null?void 0:J.text)}`).blank())}Ae(M,De),Object.keys(Oo(Oo({},M.pathParameters),M.serverVariables)).length&&De.blank().push("# create you own operator").push('"%&%" <- function(x, y)paste0(x,y)').blank();const _t=le(M,De);De.push(`url = ${_t}`).blank();const Dn=De.var("data_req");if(De.push(`${Dn} <- ${tt}(`),De.push(Hr,"url,"),M.basicAuth){const{username:bn,password:Ln}=M.basicAuth;De.push(Hr,`authenticate("${bn}", "${Ln}")`)}if(Object.keys(M.allHeaders).length){const bn=`${Object.keys(M.allHeaders).map(Ln=>`"${Ln}" = ${M.allHeaders[Ln].startsWith("paste")?M.allHeaders[Ln]:`"${M.allHeaders[Ln]}"`}`).join(", ")}`;bn&&De.push(Hr,`add_headers(${bn}),`)}return $t&&(De.push(Hr,`body = ${$t},`),De.push(Hr,`encode = "${st}",`)),De.push(Hr,"verbose()"),De.push(")"),ae.printBody&&De.blank().push(`content(${Dn}${st==="raw"?', "text"':""})`),De.join()}}};function oi(M,ce){if(M[ce.name]===void 0)return M[ce.name]=ce.value,M;if(M[ce.name]instanceof Array)return M[ce.name].push(ce.value),M;const He=[M[ce.name],ce.value];return M[ce.name]=He,M}var fo=Object.defineProperty,Xi=Object.defineProperties,Bo=Object.getOwnPropertyDescriptors,ro=Object.getOwnPropertySymbols,gs=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,io=(M,ce,He)=>ce in M?fo(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,Ji=(M,ce)=>{for(var He in ce||(ce={}))gs.call(ce,He)&&io(M,He,ce[He]);if(ro)for(var He of ro(ce))Yr.call(ce,He)&&io(M,He,ce[He]);return M},oo=(M,ce)=>Xi(M,Bo(ce)),So=(M,ce,He)=>(io(M,typeof ce!="symbol"?ce+"":ce,He),He);class Oi{constructor(ce){So(this,"request");const He=Ji({},ce);this.request=this.prepare(oo(Ji({},He),{httpVersion:He.httpVersion||"HTTP/1.1",queryString:He.queryString||[],headers:He.headers||[],cookies:He.cookies||[],postData:He.postData?oo(Ji({},He.postData),{jsonObj:void 0,paramsObj:void 0}):void 0,bodySize:0,headersSize:0,queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},uriObj:{},fullUrl:"",pathParameters:He.pathParameters||{},serverVariables:He.serverVariables||{}}))}prepare(ce){var He;if(ce.queryString&&ce.queryString.length&&(ce.queryObj=ce.queryString.reduce(oi,{})),ce.headers&&ce.headers.length){const N=/^HTTP\/2/;ce.headersObj=ce.headers.reduce(function(W,U){let J=U.name;return ce.httpVersion.match(N)&&(J=J.toLowerCase()),W[J]=U.value,W},{})}ce.cookies&&ce.cookies.length&&(ce.cookiesObj=ce.cookies.reduceRight(function(N,W){return N[W.name]=W.value,N},{}));const O=ce.cookies.map(function(N){return encodeURIComponent(N.name)+"="+encodeURIComponent(N.value)});if(O.length&&(ce.allHeaders.cookie=O.join("; ")),ce.postData)switch((0,u.PP)(ce.postData.mimeType)){case"multipart/mixed":case"multipart/related":case"multipart/form-data":case"multipart/alternative":break;case"application/x-www-form-urlencoded":((He=ce.postData)==null?void 0:He.params)?(ce.postData.paramsObj=ce.postData.params.reduce(oi,{}),ce.postData.text=l.stringify(ce.postData.paramsObj)):ce.postData.text="";break;case"text/json":case"text/x-json":case"application/json":case"application/x-json":if(ce.postData.mimeType="application/json",ce.postData.text)try{ce.postData.jsonObj=JSON.parse(ce.postData.text)}catch(N){ce.postData.mimeType="text/plain"}break}return ce.allHeaders=Object.assign(ce.allHeaders,ce.headersObj),ce.uriObj=d.parse(ce.url,!0,!0),ce.queryObj=Object.assign(ce.queryObj,ce.uriObj.query),ce.uriObj.query=null,ce.uriObj.search=null,ce.uriObj.path=ce.uriObj.pathname=(0,u.mm)(ce.uriObj.pathname),ce.url=(0,u.mm)(d.format(ce.uriObj)),ce.uriObj.query=ce.queryObj,ce.uriObj.search=l.stringify(ce.queryObj),ce.uriObj.search&&(ce.uriObj.path=ce.uriObj.pathname+"?"+ce.uriObj.search),ce.fullUrl=(0,u.mm)(d.format(ce.uriObj)),ce}convert(ce,He,O){!O&&He&&(O=He);const N=this._matchTarget(ce,He);if(N){const W=N(this.request,O,{target:ce,client:He});return W.length===1?W[0]:W}throw new Error("Can not match target")}_matchTarget(ce,He){return Object.prototype.hasOwnProperty.call(Zi,ce)?typeof He=="string"&&typeof Zi[ce][He]=="function"?Zi[ce][He]:Zi[ce][Zi[ce].info.default]:!1}}var so=Object.defineProperty,jr=Object.defineProperties,zr=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,ci=(M,ce,He)=>ce in M?so(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,Vr=(M,ce)=>{for(var He in ce||(ce={}))zi.call(ce,He)&&ci(M,He,ce[He]);if(Br)for(var He of Br(ce))ei.call(ce,He)&&ci(M,He,ce[He]);return M},ao=(M,ce)=>jr(M,zr(ce));function Si(M,{exampleName:ce="",skipOptionalParameters:He=!1,withOAuth2Call:O=!1,spec:N,generatedPayloadSamplesMaxDepth:W=8,pathParams:U={},properties:J={}}){var ae,De,tt,Ct,st;const{securityHeaders:$t,securityCookies:_t,securityQueries:Dn,securityOAuth2ExtraCalls:bn,basicAuth:Ln}=Ii((ae=M.security)==null?void 0:ae[0],O),hn=(tt=(De=M.requestBody)==null?void 0:De.content)==null?void 0:tt.active,In={skipNonRequired:He,skipReadOnly:!0,maxSampleDepth:W};let Kr=!1;const li=M.parameters.filter(lr=>lr.in==="header").filter(lr=>!(He&&!lr.required)).map(lr=>({name:lr.name,value:(0,h.X_)("header",lr.name)||(0,a.serializeParameterValue)(lr,n.UP(lr.schema.rawSchema,In,N))})).map(lr=>((hn==null?void 0:hn.name)&&lr.name.toLowerCase()==="content-type"&&(Kr=!0,lr.value=hn.name),lr)).concat($t);!Kr&&(hn==null?void 0:hn.name)&&li.unshift({name:"Content-Type",value:hn==null?void 0:hn.name});const xo=M.parameters.filter(lr=>lr.in==="cookie").filter(lr=>!(He&&!lr.required)).map(lr=>(0,r.parse)((0,a.serializeParameterValue)(lr,n.UP(lr.schema.rawSchema,In,N)))).reduce((lr,xi)=>{for(const[qo,Vi]of Object.entries(xi))lr.push({name:qo,value:String(Vi)});return lr},[]).concat(_t),Pi=M.parameters.filter(lr=>lr.in==="query").filter(lr=>!(He&&!lr.required)).map(lr=>(0,r.parse)((0,a.serializeParameterValue)(lr,n.UP(lr.schema.rawSchema,In,N)))).reduce((lr,xi)=>{for(const[qo,Vi]of Object.entries(xi))lr.push({name:qo,value:String(Vi)});return lr},[]).concat(Dn),si=(Ct=M.activeServer)==null?void 0:Ct.url.replace(/\/$/,""),Hi=M.path.replace(/^\//,""),wo=`${si}/${Hi}`,Jo=M.parameters.filter(lr=>lr.in==="path").reduce((lr,xi)=>{const{in:qo,name:Vi}=xi;return lr[Vi]=U[Vi]||(0,h.X_)(qo,Vi),lr},{}),vs=(st=hn==null?void 0:hn.examples)==null?void 0:st[ce],xa=(hn==null?void 0:hn.examples)||{},[ys]=Object.values(xa),bs=(vs==null?void 0:vs.value)||(ys==null?void 0:ys.value)||(hn==null?void 0:hn.schema)&&n.UP(hn==null?void 0:hn.schema.rawSchema,In,N),Eo=bs&&typeof bs=="object"&&o()(bs,J,{arrayMerge:u.lN}),Mi=hn==null?void 0:hn.name.toLowerCase();let Fi="",Os=[];switch((0,u.PP)(Mi)){case"application/json":Fi=JSON.stringify(Eo);break;case"application/x-www-form-urlencoded":case"multipart/form-data":Fi=(0,r.stringify)(Eo),Os=Wi(Eo);break;default:Fi=String(bs||"")}const Ks=Fi?{mimeType:(hn==null?void 0:hn.name)||"application/octet-stream",text:Fi,params:Os}:void 0;return{method:M.httpVerb,url:wo,httpVersion:"HTTP/1.1",cookies:xo,headers:li,queryString:Pi,postData:Ks,headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:bn,basicAuth:Ln,pathParameters:Jo,serverVariables:M.activeServer.variables}}const gi={withImports:!0,withComments:!1},Uo={curl:{code:"shell",defaultTarget:"curl",defaultOptions:ao(Vr({},gi),{short:!0})},JavaScript:{code:"javascript",defaultTarget:"fetch",defaultOptions:ao(Vr({},gi),{withImports:!1})},"Node.js":{code:"node",defaultTarget:"fetch",defaultOptions:Vr({},gi)},Python:{code:"python",defaultTarget:"requests",defaultOptions:Vr({},gi)},"Java8+Apache":{code:"java8",defaultTarget:"apachehttp",defaultOptions:Vr({},gi)},Java:{code:"java",defaultTarget:"httpclient",defaultOptions:Vr({},gi)},"C#":{code:"csharp",defaultTarget:"httpclient",defaultOptions:Vr({},gi)},Go:{code:"go",defaultTarget:"http.DefaultClient",defaultOptions:Vr({},gi)},PHP:{code:"php",defaultTarget:"curl",defaultOptions:Vr({},gi)},Ruby:{code:"ruby",defaultTarget:"net::http",defaultOptions:Vr({},gi)},R:{code:"r",defaultTarget:"httr",defaultOptions:Vr({},gi)}};function $i({lang:M,operation:ce,exampleName:He,pathParams:O,properties:N,options:W={}}){try{const{skipOptionalParameters:U,withOAuth2Call:J,spec:ae,generatedPayloadSamplesMaxDepth:De}=W,tt=Si(ce,{exampleName:He,pathParams:O,properties:N,skipOptionalParameters:U,withOAuth2Call:J,spec:ae,generatedPayloadSamplesMaxDepth:De}),Ct=new Oi(tt);return Uo[M]?Ct.convert(Uo[M].code,Uo[M].defaultTarget,Vr(Vr({},Uo[M].defaultOptions),W)):"Language is not supported."}catch(U){return console.error(U),"Failed to generate code sample."}}function Ii(M,ce){var He,O,N,W;const U={securityHeaders:[],securityCookies:[],securityQueries:[],securityOAuth2ExtraCalls:[],basicAuth:void 0};for(const J of(M==null?void 0:M.schemes)||[]){const ae=(0,h.lX)(J.id);switch(J.type){case"openIdConnect":(He=U.securityHeaders)==null||He.push({name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"});break;case"oauth2":{const De=ae.token?`${ae.token.token_type||"Bearer"} ${ae.token.access_token}`:"Bearer <YOUR_TOKEN_HERE>";J.flows.clientCredentials&&ce?U.securityOAuth2ExtraCalls.push(Zo(J.flows.clientCredentials,J.scopes,ae)):J.flows.password&&ce&&U.securityOAuth2ExtraCalls.push(Yo(J.flows.password,J.scopes,ae)),(O=U.securityHeaders)==null||O.push({name:"Authorization",value:De});break}case"apiKey":{const De=ae.raw||"YOUR_API_KEY_HERE";J.in==="header"&&((N=U.securityHeaders)==null||N.push({name:J.name,value:De})),J.in==="cookie"&&U.securityCookies.push({name:J.name,value:De}),J.in==="query"&&U.securityQueries.push({name:J.name,value:De});break}case"http":J.scheme==="basic"?U.basicAuth={username:ae.username||"<username>",password:ae.password||"<password>"}:(W=U.securityHeaders)==null||W.push({name:"Authorization",value:`${po(J.scheme||"bearer")} <YOUR_${J.bearerFormat||"TOKEN"}_HERE>`});break}}return U}function Yo(M,ce,He){return{method:"POST",url:M.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"password"},{name:"client_id",value:He.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:He.client_secret||"YOUR_CLIENT_SECRET"},{name:"username",value:He.username||"<username>"},{name:"password",value:He.password||"<password>"},ce.length?{name:"scope",value:ce.join(" ")}:void 0].filter(Xo)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function Zo(M,ce,He){return{method:"POST",url:M.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:He.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:He.client_secret||"YOUR_CLIENT_SECRET"},ce.length?{name:"scope",value:ce.join(" ")}:void 0].filter(Xo)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function Wi(M){const ce=[];for(const[He,O]of Object.entries(M))ce.push({name:He,value:String(O)});return ce}function Xo(M){return M!==void 0}function po(M){return M.charAt(0).toUpperCase()+M.slice(1)}},50293:()=>{},61388:(D,c,e)=>{"use strict";e.d(c,{he:()=>n,Ix:()=>o,mi:()=>a});var r=e(17563);function n(h,u){return h===u||"#"+h===u||h==="#"+u}function s(h){var u,l,d,p,g,y,b,m,E,x,T,w,R,P,_;if(!h.in){if(h.deps.type==="request"&&((d=(l=(u=h.deps.operation)==null?void 0:u.requestBody)==null?void 0:l.content)==null?void 0:d.mediaTypes))return((y=(g=(p=h.deps.operation)==null?void 0:p.requestBody)==null?void 0:g.content)==null?void 0:y.mediaTypes.length)>1?(E=(m=(b=h.deps.operation)==null?void 0:b.requestBody)==null?void 0:m.content)==null?void 0:E.active.name:void 0;if(h.deps.type==="response"&&((T=(x=h.deps.response)==null?void 0:x.content)==null?void 0:T.mediaTypes))return((R=(w=h.deps.response)==null?void 0:w.content)==null?void 0:R.mediaTypes.length)>1?(_=(P=h.deps.response)==null?void 0:P.content)==null?void 0:_.active.name:void 0}}function o(h){var u,l,d,p;if(!h||!h.deps.operation||((u=h.deps.operation)==null?void 0:u.isCallback))return null;const g={t:h.deps.type,in:h.in||h.deps.in,c:h.deps.type==="response"?(l=h.deps.response)==null?void 0:l.code:void 0,cb:((d=h.deps.operation)==null?void 0:d.isCallback)?(p=h.deps.operation)==null?void 0:p.id:void 0,ct:s(h),path:h.fieldFullPath};return(0,r.stringify)(g,{encode:!1})}function a(h="",u="",l="/"){return h.endsWith(l)&&(h=h.slice(0,-l.length)),u.startsWith(l)&&(u=u.slice(l.length)),!h||!u?h+u:h+l+u}},7638:(D,c,e)=>{"use strict";e.d(c,{GZ:()=>$,nI:()=>T,bM:()=>g});var r=e(11851),n=e(26729),s=e.n(n),o=e(76671),a=e(61388),h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=(S,F,H)=>F in S?h(S,F,{enumerable:!0,configurable:!0,writable:!0,value:H}):S[F]=H,d=(S,F,H,se)=>{for(var ue=se>1?void 0:se?u(F,H):F,ne=S.length-1,Se;ne>=0;ne--)(Se=S[ne])&&(ue=(se?Se(F,H,ue):Se(ue))||ue);return se&&ue&&h(F,H,ue),ue},p=(S,F,H)=>(l(S,typeof F!="symbol"?F+"":F,H),H);class g{constructor(F,H){this.options=F,this.multispec=H,p(this,"_emiter"),p(this,"basePath"),p(this,"markdownItemsPagination"),p(this,"pagination"),p(this,"emit",()=>{this._emiter.emit("popstate",this.currentId)});const se=F.routingBasePath;this.markdownItemsPagination=F.markdownItemsPagination,this.pagination=F.pagination,this.basePath=se.endsWith("/")?se.substring(0,se.length-1):se,this.basePath.startsWith("/")&&(this.basePath=this.basePath.substring(1)),this._emiter=new(s()),this.bind()}get currentId(){if(!o.IS_BROWSER)return"";const F=decodeURIComponent(window.location.hash.substr(1));let H=window.location.pathname.substring(1);if(H.startsWith(this.basePath+"/")&&(H=H.substring(this.basePath.length+1)),H.endsWith("/")&&(H=H.substring(0,H.length-1)),F==null?void 0:F.startsWith("section/")){if(this.multispec){const[se]=H.split("/");return(0,a.mi)(se,F)}return F}return(F==null?void 0:F.startsWith("operation/"))?(0,a.mi)(H,F):H?this.pagination==="item"&&F.startsWith(this.options.deepLinkPrefix)?(0,a.mi)(H,F,this.options.deepLinkPrefix):(0,a.mi)(H,F):F}makeUrl(F,H){let se="";o.IS_BROWSER&&(se=window.location.search);let ue;return F.startsWith("/")?ue="/"+(0,a.mi)(this.basePath,F.substring(1),"/"):ue=F,ue+se?(0,a.mi)(ue+se,H,"#"):"#"+H}generateDeepLink(F,H){if(!H)return null;const se=this.options.pagination==="item"?"#":"";return H+se+this.options.deepLinkPrefix+F}linkForId(F=""){if(F==="")return this.makeUrl("/","");let H="";if(this.multispec&&(H="/"+F.split("/")[0],F=F.split("/").slice(1).join("/")),F.startsWith("operation/"))if(this.multispec&&o.IS_BROWSER){let ne=window.location.pathname.substring(1);ne.startsWith(this.basePath)&&(ne=ne.substring(this.basePath.length),ne.startsWith("/")&&(ne=ne.substring(1)));const Se="/"+ne.split("/")[0];return H===Se?this.makeUrl("",F):this.makeUrl(ne.replace(Se,H),F)}else return this.makeUrl("",F);let se=H,ue="";if(F.startsWith("section/")||!F){const[,ne]=(F||"").split("/");ne&&this.markdownItemsPagination==="section"?(se=H+"/section/"+ne,ue=F):(se=H+"/",ue=F)}if(F.startsWith("group/")){const ne=F.match(/group\/(.*)\/(paths\/.*\/\w+|operation\/[^/]*)/);if(ne){const Se=ne[1];se=H+"/group/"+Se,ue=ne[2]||""}else se=H+"/"+F,ue=""}if(this.pagination==="section"&&F.startsWith("tag/")){const ne=F.split("/");se=H+"/"+ne.slice(0,2).join("/"),ue=ne.slice(2).join("/")}if(this.pagination==="item"&&F.startsWith("tag/")){se=H+"/"+F;const ne=F.split("/");ne[2]==="section"&&(se=H+"/"+ne.slice(0,2).join("/"),ue=ne.slice(2).join("/"))}return this.makeUrl(se,ue)}subscribe(F){const H=this._emiter.addListener("popstate",F);return()=>H.removeListener("popstate",F)}bind(){o.IS_BROWSER&&window.addEventListener("popstate",this.emit,!1)}dispose(){o.IS_BROWSER&&window.removeEventListener("popstate",this.emit)}replace(F,H=!1){if(H)return this.replaceDebounced(F);this.replaceNow(F,H)}replaceForField(F,H=!1){if(!o.IS_BROWSER||!F)return;const se=ne=>{H&&window.history.replaceState(null,"",ne),window.history.pushState(null,"",ne)},ue=new URL(F,window.location.href);se(ue),this.emit()}replaceNow(F,H=!1){if(!o.IS_BROWSER||F==null||(0,a.he)(F,this.currentId))return;const se=new URL(this.linkForId(F),window.location.href);if(H){o.IS_BROWSER&&window.history.replaceState(null,"",se.href);return}o.IS_BROWSER&&(window.history.pushState(null,"",se.href),this.emit())}replaceDebounced(F){return this.replaceNow(F,!0)}}d([r.bind],g.prototype,"replace",1),d([r.bind],g.prototype,"replaceForField",1),d([r.bind,r.debounce],g.prototype,"replaceDebounced",1);var y=Object.defineProperty,b=Object.getOwnPropertyDescriptor,m=(S,F,H)=>F in S?y(S,F,{enumerable:!0,configurable:!0,writable:!0,value:H}):S[F]=H,E=(S,F,H,se)=>{for(var ue=se>1?void 0:se?b(F,H):F,ne=S.length-1,Se;ne>=0;ne--)(Se=S[ne])&&(ue=(se?Se(F,H,ue):Se(ue))||ue);return se&&ue&&y(F,H,ue),ue},x=(S,F,H)=>(m(S,typeof F!="symbol"?F+"":F,H),H);class T{constructor(F,H){this.options=F,this.multiSpec=H,x(this,"_emiter"),x(this,"basePath"),x(this,"emit",()=>{this._emiter.emit("popstate",this.currentId)});const se=F.routingBasePath||"";this.basePath=se.endsWith("/")?se.substring(0,se.length-1):se,this.basePath.startsWith("/")&&(this.basePath=this.basePath.substring(1)),this._emiter=new(s()),this.bind()}get currentId(){if(!o.IS_BROWSER)return"";const F=decodeURIComponent(window.location.hash.substr(1));let H=window.location.pathname.substring(1);if(H.startsWith(this.basePath+"/")&&(H=H.substring(this.basePath.length+1)),H.endsWith("/")&&(H=H.substring(0,H.length-1)),F.startsWith("operation/")||(F==null?void 0:F.startsWith("section/"))){if(this.multiSpec){const[se]=H.split("/");return(0,a.mi)(se,F)}return F}return H?(0,a.mi)(H,F):F}makeUrl(F,H){let se="";o.IS_BROWSER&&(se=window.location.search);let ue;return F.startsWith("/")?ue="/"+(this.basePath?this.basePath+"/":"")+F.substring(1):ue=F,ue+se+(H?"#"+H:"")}linkForId(F){if(!F)return"";if(F==="")return this.makeUrl("","");let H="";return this.multiSpec&&(H="/"+F.split("/")[0],F=F.split("/").slice(1).join("/")),this.makeUrl(H,F)}generateDeepLink(F,H){if(!!H)return H+this.options.deepLinkPrefix+F}subscribe(F){const H=this._emiter.addListener("popstate",F);return()=>H.removeListener("popstate",F)}bind(){o.IS_BROWSER&&(window.addEventListener("popstate",this.emit,!1),window.addEventListener("hashchange",this.emit,!1))}dispose(){o.IS_BROWSER&&(window.removeEventListener("popstate",this.emit),window.removeEventListener("hashchange",this.emit))}replace(F,H=!1){if(H)return this.replaceDebounced(F);this.replaceNow(F,H)}replaceForField(F,H=!1){if(!o.IS_BROWSER||!F)return;const se=ne=>{H?window.history.replaceState(null,"",ne):(window.history.pushState(null,"",ne),this.emit())},ue=new URL(F,window.location.href);se(ue)}replaceNow(F,H=!1){if(!o.IS_BROWSER||F==null||(0,a.he)(F,this.currentId))return;const se=new URL(this.linkForId(F),window.location.href);if(H){o.IS_BROWSER&&window.history.replaceState(null,"",se.href);return}o.IS_BROWSER&&(window.history.pushState(null,"",se.href),this.emit())}replaceDebounced(F){return this.replaceNow(F,!0)}}E([r.bind],T.prototype,"replace",1),E([r.bind],T.prototype,"replaceForField",1),E([r.bind,r.debounce],T.prototype,"replaceDebounced",1);var w=Object.defineProperty,R=Object.getOwnPropertyDescriptor,P=(S,F,H)=>F in S?w(S,F,{enumerable:!0,configurable:!0,writable:!0,value:H}):S[F]=H,_=(S,F,H,se)=>{for(var ue=se>1?void 0:se?R(F,H):F,ne=S.length-1,Se;ne>=0;ne--)(Se=S[ne])&&(ue=(se?Se(F,H,ue):Se(ue))||ue);return se&&ue&&w(F,H,ue),ue},B=(S,F,H)=>(P(S,typeof F!="symbol"?F+"":F,H),H);const v="itemchange";class ${constructor(F){this.options=F,B(this,"_emitter",new(s())),B(this,"basePath"),B(this,"currentId",""),B(this,"emit",()=>{this._emitter.emit(v,this.currentId)}),this.bind()}linkForId(F){return this.options.linkForId?this.options.linkForId(F):""}generateDeepLink(F,H){return F&&this.options.generateDeepLink?this.options.generateDeepLink(F,H):null}subscribe(F){const H=this._emitter.addListener(v,F);return()=>H.removeListener(v,F)}bind(){}dispose(){}replace(F,H=!1){}replaceForField(F,H=!1){this.currentId=(F||"").replace(/^#/,""),this.emit()}replaceNow(F,H=!1){}replaceDebounced(F){}}_([r.bind],$.prototype,"replace",1),_([r.bind],$.prototype,"replaceForField",1),_([r.bind,r.debounce],$.prototype,"replaceDebounced",1)},11429:(D,c,e)=>{"use strict";e.d(c,{nQ:()=>s.n,GZ:()=>n.GZ,N1:()=>s.N,SideNavStyle:()=>h.s});var r=e(3166),n=e(7638),s=e(24787),o=e(99098),a=e(50293),h=e(20906)},24787:(D,c,e)=>{"use strict";e.d(c,{N:()=>r,n:()=>n});var r;(function(s){s.STACKED="stacked",s.THREE_PANEL="three-panel"})(r||(r={}));var n;(function(s){s.CodeSampleLanguageSwitched="CodeSampleLanguageSwitched",s.CodeSampleCopied="CodeSampleCopied",s.OperationServerExpanded="OperationServerExpanded",s.PanelToggle="PanelToggle",s.TryItOpen="TryItOpen",s.TryItSent="TryItSent"})(n||(n={}))},20906:(D,c,e)=>{"use strict";e.d(c,{s:()=>r});var r;(function(n){n.SummaryOnly="summary-only",n.PathFirst="path-first",n.IdOnly="id-only"})(r||(r={}))},64776:(D,c,e)=>{"use strict";e.d(c,{AH:()=>g,PP:()=>b,mm:()=>m,lN:()=>E,Qr:()=>T,EA:()=>w,CY:()=>R,p8:()=>P,JQ:()=>_,rS:()=>B});var r=e(9996),n=e.n(r),s=e(10519),o=Object.defineProperty,a=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,l=(v,$,S)=>$ in v?o(v,$,{enumerable:!0,configurable:!0,writable:!0,value:S}):v[$]=S,d=(v,$)=>{for(var S in $||($={}))h.call($,S)&&l(v,S,$[S]);if(a)for(var S of a($))u.call($,S)&&l(v,S,$[S]);return v},p=(v,$,S)=>new Promise((F,H)=>{var se=Se=>{try{ne(S.next(Se))}catch(Ve){H(Ve)}},ue=Se=>{try{ne(S.throw(Se))}catch(Ve){H(Ve)}},ne=Se=>Se.done?F(Se.value):Promise.resolve(Se.value).then(se,ue);ne((S=S.apply(v,$)).next())});function g(v){return v.startsWith("/")||(v="/"+v),v.endsWith("/")&&(v=v.slice(0,-1)),v}function y(v,$){return!v||!$?!1:b(v)===b($)}function b(v){if(!!v)return v.split(";")[0].toLowerCase()}function m(v){const $=new RegExp("%7B","g"),S=new RegExp("%7D","g");return v.replace($,"{").replace(S,"}").replace("///","//")}function E(v,$){if(!(v.length&&x(v)))return $;const S=v.filter(F=>Object.keys(F).length>0);return $.forEach(function(F,H){(0,s.Gk)(F)?S[H]=n()(v[H],F,{arrayMerge:E}):Array.isArray(F)?S.push(F):S[H]=F}),S}const x=v=>v.some($=>(0,s.Kn)($)&&Object.keys($).length>0);function T(v){return!!v&&Object.keys(v).length===0}const w=typeof window!="undefined"&&(window.crypto||window.msCrypto)||void 0;function R(v=32){let $="";for(;$.length<v;)$+=Math.random().toString(32).substring(2);return $.substring(0,v)}function P(v){const $=d({randomStr:R()},v);return btoa(JSON.stringify($))}function _(v){return p(this,null,function*(){const $=new TextEncoder().encode(v);return w==null?void 0:w.subtle.digest("SHA-256",$)})}function B(v){if(!!v)return btoa(String.fromCharCode.apply(null,new Uint8Array(v))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},25446:(D,c,e)=>{"use strict";e.d(c,{zJ:()=>o,_3:()=>a,Ds:()=>h,WW:()=>u,YQ:()=>l,ZJ:()=>d,X_:()=>p,Im:()=>g,Y9:()=>y,Bs:()=>b,A8:()=>m,dw:()=>E,Fp:()=>x,xC:()=>T,lX:()=>w,Al:()=>R,U2:()=>_,s1:()=>v});var r=e(67294),n=e(76671);let s;const o=()=>s,a=$=>s=$;function h($,S,F){let H,se=0;return function(...ne){se++;function Se(){se>1&&$(...ne),se=0,H=null}H?clearTimeout(H):F&&$(...ne),H=setTimeout(Se,S)}}function u($,S){n.IS_BROWSER&&window.sessionStorage.setItem("redoc."+$,S)}function l($){return n.IS_BROWSER&&window.sessionStorage.getItem("redoc."+$)||""}function d($,S,F){u(`${$}.${S}`,JSON.stringify(F))}function p($,S){try{return JSON.parse(l(`${$}.${S}`))}catch(F){return null}}function g($,S){window.localStorage.setItem("redoc."+$,S)}function y($){return n.IS_BROWSER&&window.localStorage.getItem("redoc."+$)||""}function b($){const[S,F]=r.useState(null);return r.useLayoutEffect(()=>{if($){const H=()=>window.requestAnimationFrame(()=>F($.getBoundingClientRect()));return H(),window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}}},[$]),[S]}function m($){return $.replace(/[.[\]]/g,S=>({".":"%2e","[":"%5b","]":"%5d"})[S]||"")}function E($){return $.replace(/%2e|%5b|%5d/g,S=>({"%2e":".","%5b":"[","%5d":"]"})[S]||"")}function x($,S){$=m($),typeof S=="string"?u("auth."+$,S):S&&(u(`auth.${$}.password`,S.password||""),u(`auth.${$}.username`,S.username||""),u(`auth.${$}.token`,S.token&&JSON.stringify(S.token)||""),u(`auth.${$}.client_id`,S.client_id||""),u(`auth.${$}.client_secret`,S.client_secret||""),u(`auth.${$}.scopes`,S.scopes&&JSON.stringify(S.scopes)||""))}function T($,S){$=m($),u(`auth.${$}.variants`,JSON.stringify(S))}function w($){$=m($);const S=l(`auth.${$}`),F=l(`auth.${$}.token`);return{raw:S,password:l(`auth.${$}.password`),username:l(`auth.${$}.username`),token:F&&JSON.parse(F)||null,client_id:l(`auth.${$}.client_id`),client_secret:l(`auth.${$}.client_secret`),scopes:l(`auth.${$}.scopes`)}}function R($,S){$=m($);const F=l(`auth.${$}.variants`);if(!F)return null;const H=JSON.parse(F);return!H||!Array.isArray(H)?null:H.map(se=>se.details?S===""&&se.details&&typeof se.details=="string"?{label:se.label,value:se.details}:typeof se.details=="object"?{label:se.label,value:se.details[S]}:null:null).filter(P)}function P($){return $!==null}function _($,S,F){return typeof S=="string"&&(S=S.split(".")),S.reduce((H,se)=>H&&H[se]?H[se]:F,$)}function B($){return(...S)=>S.filter(Boolean).join($)}const v=B(".")},26729:D=>{"use strict";var c=Object.prototype.hasOwnProperty,e="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(e=!1));function n(h,u,l){this.fn=h,this.context=u,this.once=l||!1}function s(h,u,l,d,p){if(typeof l!="function")throw new TypeError("The listener must be a function");var g=new n(l,d||h,p),y=e?e+u:u;return h._events[y]?h._events[y].fn?h._events[y]=[h._events[y],g]:h._events[y].push(g):(h._events[y]=g,h._eventsCount++),h}function o(h,u){--h._eventsCount==0?h._events=new r:delete h._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],l,d;if(this._eventsCount===0)return u;for(d in l=this._events)c.call(l,d)&&u.push(e?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},a.prototype.listeners=function(u){var l=e?e+u:u,d=this._events[l];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,g=d.length,y=new Array(g);p<g;p++)y[p]=d[p].fn;return y},a.prototype.listenerCount=function(u){var l=e?e+u:u,d=this._events[l];return d?d.fn?1:d.length:0},a.prototype.emit=function(u,l,d,p,g,y){var b=e?e+u:u;if(!this._events[b])return!1;var m=this._events[b],E=arguments.length,x,T;if(m.fn){switch(m.once&&this.removeListener(u,m.fn,void 0,!0),E){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,l),!0;case 3:return m.fn.call(m.context,l,d),!0;case 4:return m.fn.call(m.context,l,d,p),!0;case 5:return m.fn.call(m.context,l,d,p,g),!0;case 6:return m.fn.call(m.context,l,d,p,g,y),!0}for(T=1,x=new Array(E-1);T<E;T++)x[T-1]=arguments[T];m.fn.apply(m.context,x)}else{var w=m.length,R;for(T=0;T<w;T++)switch(m[T].once&&this.removeListener(u,m[T].fn,void 0,!0),E){case 1:m[T].fn.call(m[T].context);break;case 2:m[T].fn.call(m[T].context,l);break;case 3:m[T].fn.call(m[T].context,l,d);break;case 4:m[T].fn.call(m[T].context,l,d,p);break;default:if(!x)for(R=1,x=new Array(E-1);R<E;R++)x[R-1]=arguments[R];m[T].fn.apply(m[T].context,x)}}return!0},a.prototype.on=function(u,l,d){return s(this,u,l,d,!1)},a.prototype.once=function(u,l,d){return s(this,u,l,d,!0)},a.prototype.removeListener=function(u,l,d,p){var g=e?e+u:u;if(!this._events[g])return this;if(!l)return o(this,g),this;var y=this._events[g];if(y.fn)y.fn===l&&(!p||y.once)&&(!d||y.context===d)&&o(this,g);else{for(var b=0,m=[],E=y.length;b<E;b++)(y[b].fn!==l||p&&!y[b].once||d&&y[b].context!==d)&&m.push(y[b]);m.length?this._events[g]=m.length===1?m[0]:m:o(this,g)}return this},a.prototype.removeAllListeners=function(u){var l;return u?(l=e?e+u:u,this._events[l]&&o(this,l)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=e,a.EventEmitter=a,D.exports=a},64063:D=>{"use strict";D.exports=function c(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,s,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(s=n;s--!=0;)if(!c(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(s=n;s--!=0;)if(!Object.prototype.hasOwnProperty.call(r,o[s]))return!1;for(s=n;s--!=0;){var a=o[s];if(!c(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}},4445:D=>{D.exports=o,o.default=o,o.stable=l,o.stableStringify=l;var c="[...]",e="[Circular]",r=[],n=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(g,y,b,m){typeof m=="undefined"&&(m=s()),h(g,"",0,[],void 0,0,m);var E;try{n.length===0?E=JSON.stringify(g,y,b):E=JSON.stringify(g,p(y),b)}catch(T){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var x=r.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return E}function a(g,y,b,m){var E=Object.getOwnPropertyDescriptor(m,b);E.get!==void 0?E.configurable?(Object.defineProperty(m,b,{value:g}),r.push([m,b,y,E])):n.push([y,b,g]):(m[b]=g,r.push([m,b,y]))}function h(g,y,b,m,E,x,T){x+=1;var w;if(typeof g=="object"&&g!==null){for(w=0;w<m.length;w++)if(m[w]===g){a(e,g,y,E);return}if(typeof T.depthLimit!="undefined"&&x>T.depthLimit){a(c,g,y,E);return}if(typeof T.edgesLimit!="undefined"&&b+1>T.edgesLimit){a(c,g,y,E);return}if(m.push(g),Array.isArray(g))for(w=0;w<g.length;w++)h(g[w],w,w,m,g,x,T);else{var R=Object.keys(g);for(w=0;w<R.length;w++){var P=R[w];h(g[P],P,w,m,g,x,T)}}m.pop()}}function u(g,y){return g<y?-1:g>y?1:0}function l(g,y,b,m){typeof m=="undefined"&&(m=s());var E=d(g,"",0,[],void 0,0,m)||g,x;try{n.length===0?x=JSON.stringify(E,y,b):x=JSON.stringify(E,p(y),b)}catch(w){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var T=r.pop();T.length===4?Object.defineProperty(T[0],T[1],T[3]):T[0][T[1]]=T[2]}}return x}function d(g,y,b,m,E,x,T){x+=1;var w;if(typeof g=="object"&&g!==null){for(w=0;w<m.length;w++)if(m[w]===g){a(e,g,y,E);return}try{if(typeof g.toJSON=="function")return}catch(B){return}if(typeof T.depthLimit!="undefined"&&x>T.depthLimit){a(c,g,y,E);return}if(typeof T.edgesLimit!="undefined"&&b+1>T.edgesLimit){a(c,g,y,E);return}if(m.push(g),Array.isArray(g))for(w=0;w<g.length;w++)d(g[w],w,w,m,g,x,T);else{var R={},P=Object.keys(g).sort(u);for(w=0;w<P.length;w++){var _=P[w];d(g[_],_,w,m,g,x,T),R[_]=g[_]}if(typeof E!="undefined")r.push([E,y,g]),E[y]=R;else return R}m.pop()}}function p(g){return g=typeof g!="undefined"?g:function(y,b){return b},function(y,b){if(n.length>0)for(var m=0;m<n.length;m++){var E=n[m];if(E[1]===y&&E[0]===b){b=E[2],n.splice(m,1);break}}return g.call(this,y,b)}}},92806:D=>{"use strict";D.exports=function(c,e){for(var r={},n=Object.keys(c),s=Array.isArray(e),o=0;o<n.length;o++){var a=n[o],h=c[a];(s?e.indexOf(a)!==-1:e(a,h,c))&&(r[a]=h)}return r}},49804:D=>{var c=Object.prototype.hasOwnProperty,e=Object.prototype.toString;D.exports=function(n,s,o){if(e.call(s)!=="[object Function]")throw new TypeError("iterator must be a function");var a=n.length;if(a===+a)for(var h=0;h<a;h++)s.call(o,n[h],h,n);else for(var u in n)c.call(n,u)&&s.call(o,n[u],u,n)}},46841:(D,c)=>{"use strict";var e;e={value:!0},c.Z=r=>Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))},8679:(D,c,e)=>{"use strict";var r=e(21296),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h={};h[r.ForwardRef]=o,h[r.Memo]=a;function u(E){return r.isMemo(E)?a:h[E.$$typeof]||n}var l=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=Object.prototype;function m(E,x,T){if(typeof x!="string"){if(b){var w=y(x);w&&w!==b&&m(E,w,T)}var R=d(x);p&&(R=R.concat(p(x)));for(var P=u(E),_=u(x),B=0;B<R.length;++B){var v=R[B];if(!s[v]&&!(T&&T[v])&&!(_&&_[v])&&!(P&&P[v])){var $=g(x,v);try{l(E,v,$)}catch(S){}}}}return E}D.exports=m},96103:(D,c)=>{"use strict";/** @license React v16.13.1
2710
+ `}var Hs=Object.defineProperty,co=Object.defineProperties,Qo=Object.getOwnPropertyDescriptors,ji=Object.getOwnPropertySymbols,qr=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable,Ri=(M,ce,He)=>ce in M?Hs(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,Oo=(M,ce)=>{for(var He in ce||(ce={}))qr.call(ce,He)&&Ri(M,He,ce[He]);if(ji)for(var He of ji(ce))Ai.call(ce,He)&&Ri(M,He,ce[He]);return M},Vs=(M,ce)=>co(M,Qo(ce));const Hr=1,Mo={X_FORM_URLENCODED:"application/x-www-form-urlencoded",JSON:"application/json",FORM_DATA:"multipart/form-data"},Zi={javascript:_n,node:_r,python:un,shell:Sr,java8:dn,java:fa,csharp:js,go:Vo,php:Ui,ruby:ps,r:{info:{key:"r",title:"R",extname:".r",default:"httr"},httr:function(M,ce,{target:He,client:O}){var N,W,U,J;const ae=Object.assign({indent:" ",showBoilerplate:!0,printBody:!0},ce),De=new Nn({indentation:ae.indent,variablesPrefix:ae.variablesPrefix,lang:b.R}),tt=M.method.toUpperCase(),Ct=(N=M.securityOAuth2ExtraCalls)==null?void 0:N[0];if(ae.showBoilerplate&&De.push("library(httr)").blank(),Ct){const bn="oauth2_",Ln=new Oi(Ct).convert(He,O,Vs(Oo({},ae),{variablesPrefix:bn,showBoilerplate:!1})),hn=`${bn}data_req`;De.push(Ln).push(`access_token = content(${hn}, "parsed")$access_token`).blank(),M.allHeaders.Authorization='paste("Bearer", access_token)'}let st,$t="";if(M==null?void 0:M.postData)switch((0,u.PP)((W=M==null?void 0:M.postData)==null?void 0:W.mimeType)){case Mo.X_FORM_URLENCODED:{st="form",$t=De.var("body");const bn=hs(M.postData.params,ae);De.push(`${$t} <- list(${bn})`).blank();break}case Mo.JSON:{st="json",$t=De.var("body");const bn=wi(M.postData.jsonObj,ae);De.push(`${$t} = '${bn}'`).blank();break}case Mo.FORM_DATA:{st="multipart",$t=De.var("body");const bn=hs(M.postData.params,ae);De.push(`${$t} <- list(${bn})`).blank();break}default:((U=M.postData)==null?void 0:U.text)&&($t=De.var("body"),st="raw",De.push(`${$t} = ${wi((J=M.postData)==null?void 0:J.text)}`).blank())}Ae(M,De),Object.keys(Oo(Oo({},M.pathParameters),M.serverVariables)).length&&De.blank().push("# create you own operator").push('"%&%" <- function(x, y)paste0(x,y)').blank();const _t=le(M,De);De.push(`url = ${_t}`).blank();const Dn=De.var("data_req");if(De.push(`${Dn} <- ${tt}(`),De.push(Hr,"url,"),M.basicAuth){const{username:bn,password:Ln}=M.basicAuth;De.push(Hr,`authenticate("${bn}", "${Ln}")`)}if(Object.keys(M.allHeaders).length){const bn=`${Object.keys(M.allHeaders).map(Ln=>`"${Ln}" = ${M.allHeaders[Ln].startsWith("paste")?M.allHeaders[Ln]:`"${M.allHeaders[Ln]}"`}`).join(", ")}`;bn&&De.push(Hr,`add_headers(${bn}),`)}return $t&&(De.push(Hr,`body = ${$t},`),De.push(Hr,`encode = "${st}",`)),De.push(Hr,"verbose()"),De.push(")"),ae.printBody&&De.blank().push(`content(${Dn}${st==="raw"?', "text"':""})`),De.join()}}};function oi(M,ce){if(M[ce.name]===void 0)return M[ce.name]=ce.value,M;if(M[ce.name]instanceof Array)return M[ce.name].push(ce.value),M;const He=[M[ce.name],ce.value];return M[ce.name]=He,M}var fo=Object.defineProperty,Xi=Object.defineProperties,Bo=Object.getOwnPropertyDescriptors,ro=Object.getOwnPropertySymbols,gs=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,io=(M,ce,He)=>ce in M?fo(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,Ji=(M,ce)=>{for(var He in ce||(ce={}))gs.call(ce,He)&&io(M,He,ce[He]);if(ro)for(var He of ro(ce))Yr.call(ce,He)&&io(M,He,ce[He]);return M},oo=(M,ce)=>Xi(M,Bo(ce)),So=(M,ce,He)=>(io(M,typeof ce!="symbol"?ce+"":ce,He),He);class Oi{constructor(ce){So(this,"request");const He=Ji({},ce);this.request=this.prepare(oo(Ji({},He),{httpVersion:He.httpVersion||"HTTP/1.1",queryString:He.queryString||[],headers:He.headers||[],cookies:He.cookies||[],postData:He.postData?oo(Ji({},He.postData),{jsonObj:void 0,paramsObj:void 0}):void 0,bodySize:0,headersSize:0,queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{},uriObj:{},fullUrl:"",pathParameters:He.pathParameters||{},serverVariables:He.serverVariables||{}}))}prepare(ce){var He;if(ce.queryString&&ce.queryString.length&&(ce.queryObj=ce.queryString.reduce(oi,{})),ce.headers&&ce.headers.length){const N=/^HTTP\/2/;ce.headersObj=ce.headers.reduce(function(W,U){let J=U.name;return ce.httpVersion.match(N)&&(J=J.toLowerCase()),W[J]=U.value,W},{})}ce.cookies&&ce.cookies.length&&(ce.cookiesObj=ce.cookies.reduceRight(function(N,W){return N[W.name]=W.value,N},{}));const O=ce.cookies.map(function(N){return encodeURIComponent(N.name)+"="+encodeURIComponent(N.value)});if(O.length&&(ce.allHeaders.cookie=O.join("; ")),ce.postData)switch((0,u.PP)(ce.postData.mimeType)){case"multipart/mixed":case"multipart/related":case"multipart/form-data":case"multipart/alternative":break;case"application/x-www-form-urlencoded":((He=ce.postData)==null?void 0:He.params)?(ce.postData.paramsObj=ce.postData.params.reduce(oi,{}),ce.postData.text=l.stringify(ce.postData.paramsObj)):ce.postData.text="";break;case"text/json":case"text/x-json":case"application/json":case"application/x-json":if(ce.postData.mimeType="application/json",ce.postData.text)try{ce.postData.jsonObj=JSON.parse(ce.postData.text)}catch(N){ce.postData.mimeType="text/plain"}break}return ce.allHeaders=Object.assign(ce.allHeaders,ce.headersObj),ce.uriObj=d.parse(ce.url,!0,!0),ce.queryObj=Object.assign(ce.queryObj,ce.uriObj.query),ce.uriObj.query=null,ce.uriObj.search=null,ce.uriObj.path=ce.uriObj.pathname=(0,u.mm)(ce.uriObj.pathname),ce.url=(0,u.mm)(d.format(ce.uriObj)),ce.uriObj.query=ce.queryObj,ce.uriObj.search=l.stringify(ce.queryObj),ce.uriObj.search&&(ce.uriObj.path=ce.uriObj.pathname+"?"+ce.uriObj.search),ce.fullUrl=(0,u.mm)(d.format(ce.uriObj)),ce}convert(ce,He,O){!O&&He&&(O=He);const N=this._matchTarget(ce,He);if(N){const W=N(this.request,O,{target:ce,client:He});return W.length===1?W[0]:W}throw new Error("Can not match target")}_matchTarget(ce,He){return Object.prototype.hasOwnProperty.call(Zi,ce)?typeof He=="string"&&typeof Zi[ce][He]=="function"?Zi[ce][He]:Zi[ce][Zi[ce].info.default]:!1}}var so=Object.defineProperty,jr=Object.defineProperties,zr=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,ci=(M,ce,He)=>ce in M?so(M,ce,{enumerable:!0,configurable:!0,writable:!0,value:He}):M[ce]=He,Vr=(M,ce)=>{for(var He in ce||(ce={}))zi.call(ce,He)&&ci(M,He,ce[He]);if(Br)for(var He of Br(ce))ei.call(ce,He)&&ci(M,He,ce[He]);return M},ao=(M,ce)=>jr(M,zr(ce));function Si(M,{exampleName:ce="",skipOptionalParameters:He=!1,withOAuth2Call:O=!1,spec:N,generatedPayloadSamplesMaxDepth:W=8,pathParams:U={},properties:J={}}){var ae,De,tt,Ct,st;const{securityHeaders:$t,securityCookies:_t,securityQueries:Dn,securityOAuth2ExtraCalls:bn,basicAuth:Ln}=Ii((ae=M.security)==null?void 0:ae[0],O),hn=(tt=(De=M.requestBody)==null?void 0:De.content)==null?void 0:tt.active,In={skipNonRequired:He,skipReadOnly:!0,maxSampleDepth:W};let Kr=!1;const li=M.parameters.filter(lr=>lr.in==="header").filter(lr=>!(He&&!lr.required)).map(lr=>({name:lr.name,value:(0,h.X_)("header",lr.name)||(0,a.serializeParameterValue)(lr,n.UP(lr.schema.rawSchema,In,N))})).map(lr=>((hn==null?void 0:hn.name)&&lr.name.toLowerCase()==="content-type"&&(Kr=!0,lr.value=hn.name),lr)).concat($t);!Kr&&(hn==null?void 0:hn.name)&&li.unshift({name:"Content-Type",value:hn==null?void 0:hn.name});const xo=M.parameters.filter(lr=>lr.in==="cookie").filter(lr=>!(He&&!lr.required)).map(lr=>(0,r.parse)((0,a.serializeParameterValue)(lr,n.UP(lr.schema.rawSchema,In,N)))).reduce((lr,xi)=>{for(const[qo,Vi]of Object.entries(xi))lr.push({name:qo,value:String(Vi)});return lr},[]).concat(_t),Pi=M.parameters.filter(lr=>lr.in==="query").filter(lr=>!(He&&!lr.required)).map(lr=>(0,r.parse)((0,a.serializeParameterValue)(lr,n.UP(lr.schema.rawSchema,In,N)))).reduce((lr,xi)=>{for(const[qo,Vi]of Object.entries(xi))lr.push({name:qo,value:String(Vi)});return lr},[]).concat(Dn),si=(Ct=M.activeServer)==null?void 0:Ct.url.replace(/\/$/,""),Hi=M.path.replace(/^\//,""),wo=`${si}/${Hi}`,Jo=M.parameters.filter(lr=>lr.in==="path").reduce((lr,xi)=>{const{in:qo,name:Vi}=xi;return lr[Vi]=U[Vi]||(0,h.X_)(qo,Vi),lr},{}),vs=(st=hn==null?void 0:hn.examples)==null?void 0:st[ce],xa=(hn==null?void 0:hn.examples)||{},[ys]=Object.values(xa),bs=(vs==null?void 0:vs.value)||(ys==null?void 0:ys.value)||(hn==null?void 0:hn.schema)&&n.UP(hn==null?void 0:hn.schema.rawSchema,In,N),Eo=bs&&typeof bs=="object"&&o()(bs,J,{arrayMerge:u.lN}),Mi=hn==null?void 0:hn.name.toLowerCase();let Fi="",Os=[];switch((0,u.PP)(Mi)){case"application/json":Fi=JSON.stringify(Eo);break;case"application/x-www-form-urlencoded":case"multipart/form-data":Fi=(0,r.stringify)(Eo),Os=Wi(Eo);break;default:Fi=String(bs||"")}const Ks=Fi?{mimeType:(hn==null?void 0:hn.name)||"application/octet-stream",text:Fi,params:Os}:void 0;return{method:M.httpVerb,url:wo,httpVersion:"HTTP/1.1",cookies:xo,headers:li,queryString:Pi,postData:Ks,headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:bn,basicAuth:Ln,pathParameters:Jo,serverVariables:M.activeServer.variables}}const gi={withImports:!0,withComments:!1},Uo={curl:{code:"shell",defaultTarget:"curl",defaultOptions:ao(Vr({},gi),{short:!0})},JavaScript:{code:"javascript",defaultTarget:"fetch",defaultOptions:ao(Vr({},gi),{withImports:!1})},"Node.js":{code:"node",defaultTarget:"fetch",defaultOptions:Vr({},gi)},Python:{code:"python",defaultTarget:"requests",defaultOptions:Vr({},gi)},"Java8+Apache":{code:"java8",defaultTarget:"apachehttp",defaultOptions:Vr({},gi)},Java:{code:"java",defaultTarget:"httpclient",defaultOptions:Vr({},gi)},"C#":{code:"csharp",defaultTarget:"httpclient",defaultOptions:Vr({},gi)},Go:{code:"go",defaultTarget:"http.DefaultClient",defaultOptions:Vr({},gi)},PHP:{code:"php",defaultTarget:"curl",defaultOptions:Vr({},gi)},Ruby:{code:"ruby",defaultTarget:"net::http",defaultOptions:Vr({},gi)},R:{code:"r",defaultTarget:"httr",defaultOptions:Vr({},gi)}};function $i({lang:M,operation:ce,exampleName:He,pathParams:O,properties:N,options:W={}}){try{const{skipOptionalParameters:U,withOAuth2Call:J,spec:ae,generatedPayloadSamplesMaxDepth:De}=W,tt=Si(ce,{exampleName:He,pathParams:O,properties:N,skipOptionalParameters:U,withOAuth2Call:J,spec:ae,generatedPayloadSamplesMaxDepth:De}),Ct=new Oi(tt);return Uo[M]?Ct.convert(Uo[M].code,Uo[M].defaultTarget,Vr(Vr({},Uo[M].defaultOptions),W)):"Language is not supported."}catch(U){return console.error(U),"Failed to generate code sample."}}function Ii(M,ce){var He,O,N,W;const U={securityHeaders:[],securityCookies:[],securityQueries:[],securityOAuth2ExtraCalls:[],basicAuth:void 0};for(const J of(M==null?void 0:M.schemes)||[]){const ae=(0,h.lX)(J.id);switch(J.type){case"openIdConnect":(He=U.securityHeaders)==null||He.push({name:"Authorization",value:"Bearer <YOUR_TOKEN_HERE>"});break;case"oauth2":{const De=ae.token?`${ae.token.token_type||"Bearer"} ${ae.token.access_token}`:"Bearer <YOUR_TOKEN_HERE>";J.flows.clientCredentials&&ce?U.securityOAuth2ExtraCalls.push(Zo(J.flows.clientCredentials,J.scopes,ae)):J.flows.password&&ce&&U.securityOAuth2ExtraCalls.push(Yo(J.flows.password,J.scopes,ae)),(O=U.securityHeaders)==null||O.push({name:"Authorization",value:De});break}case"apiKey":{const De=ae.raw||"YOUR_API_KEY_HERE";J.in==="header"&&((N=U.securityHeaders)==null||N.push({name:J.name,value:De})),J.in==="cookie"&&U.securityCookies.push({name:J.name,value:De}),J.in==="query"&&U.securityQueries.push({name:J.name,value:De});break}case"http":J.scheme==="basic"?U.basicAuth={username:ae.username||"<username>",password:ae.password||"<password>"}:(W=U.securityHeaders)==null||W.push({name:"Authorization",value:`${po(J.scheme||"bearer")} <YOUR_${J.bearerFormat||"TOKEN"}_HERE>`});break}}return U}function Yo(M,ce,He){return{method:"POST",url:M.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"password"},{name:"client_id",value:He.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:He.client_secret||"YOUR_CLIENT_SECRET"},{name:"username",value:He.username||"<username>"},{name:"password",value:He.password||"<password>"},ce.length?{name:"scope",value:ce.join(" ")}:void 0].filter(Xo)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function Zo(M,ce,He){return{method:"POST",url:M.tokenUrl,httpVersion:"HTTP/1.1",headers:[{name:"Content-Type",value:"application/x-www-form-urlencoded"},{name:"Accept",value:"application/json"}],queryString:[],postData:{mimeType:"application/x-www-form-urlencoded",text:"",params:[{name:"grant_type",value:"client_credentials"},{name:"client_id",value:He.client_id||"YOUR_CLIENT_ID"},{name:"client_secret",value:He.client_secret||"YOUR_CLIENT_SECRET"},ce.length?{name:"scope",value:ce.join(" ")}:void 0].filter(Xo)},cookies:[],headersSize:-1,bodySize:-1,securityOAuth2ExtraCalls:[]}}function Wi(M){const ce=[];for(const[He,O]of Object.entries(M))ce.push({name:He,value:String(O)});return ce}function Xo(M){return M!==void 0}function po(M){return M.charAt(0).toUpperCase()+M.slice(1)}},50293:()=>{},61388:(D,c,e)=>{"use strict";e.d(c,{he:()=>n,Ix:()=>o,mi:()=>a});var r=e(17563);function n(h,u){return h===u||"#"+h===u||h==="#"+u}function s(h){var u,l,d,p,g,y,b,m,E,x,T,w,R,P,_;if(!h.in){if(h.deps.type==="request"&&((d=(l=(u=h.deps.operation)==null?void 0:u.requestBody)==null?void 0:l.content)==null?void 0:d.mediaTypes))return((y=(g=(p=h.deps.operation)==null?void 0:p.requestBody)==null?void 0:g.content)==null?void 0:y.mediaTypes.length)>1?(E=(m=(b=h.deps.operation)==null?void 0:b.requestBody)==null?void 0:m.content)==null?void 0:E.active.name:void 0;if(h.deps.type==="response"&&((T=(x=h.deps.response)==null?void 0:x.content)==null?void 0:T.mediaTypes))return((R=(w=h.deps.response)==null?void 0:w.content)==null?void 0:R.mediaTypes.length)>1?(_=(P=h.deps.response)==null?void 0:P.content)==null?void 0:_.active.name:void 0}}function o(h){var u,l,d,p;if(!h||!h.deps.operation||((u=h.deps.operation)==null?void 0:u.isCallback))return null;const g={t:h.deps.type,in:h.in||h.deps.in,c:h.deps.type==="response"?(l=h.deps.response)==null?void 0:l.code:void 0,cb:((d=h.deps.operation)==null?void 0:d.isCallback)?(p=h.deps.operation)==null?void 0:p.id:void 0,ct:s(h),path:h.fieldFullPath};return(0,r.stringify)(g,{encode:!1})}function a(h="",u="",l="/"){return h.endsWith(l)&&(h=h.slice(0,-l.length)),u.startsWith(l)&&(u=u.slice(l.length)),!h||!u?h+u:h+l+u}},7638:(D,c,e)=>{"use strict";e.d(c,{GZ:()=>$,nI:()=>T,bM:()=>g});var r=e(11851),n=e(26729),s=e.n(n),o=e(76671),a=e(61388),h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=(S,F,H)=>F in S?h(S,F,{enumerable:!0,configurable:!0,writable:!0,value:H}):S[F]=H,d=(S,F,H,se)=>{for(var ue=se>1?void 0:se?u(F,H):F,ne=S.length-1,Se;ne>=0;ne--)(Se=S[ne])&&(ue=(se?Se(F,H,ue):Se(ue))||ue);return se&&ue&&h(F,H,ue),ue},p=(S,F,H)=>(l(S,typeof F!="symbol"?F+"":F,H),H);class g{constructor(F,H){this.options=F,this.multispec=H,p(this,"_emiter"),p(this,"basePath"),p(this,"markdownItemsPagination"),p(this,"pagination"),p(this,"emit",()=>{this._emiter.emit("popstate",this.currentId)});const se=F.routingBasePath;this.markdownItemsPagination=F.markdownItemsPagination,this.pagination=F.pagination,this.basePath=se.endsWith("/")?se.substring(0,se.length-1):se,this.basePath.startsWith("/")&&(this.basePath=this.basePath.substring(1)),this._emiter=new(s()),this.bind()}get currentId(){if(!o.IS_BROWSER)return"";const F=decodeURIComponent(window.location.hash.substr(1));let H=window.location.pathname.substring(1);if(H.startsWith(this.basePath+"/")&&(H=H.substring(this.basePath.length+1)),H.endsWith("/")&&(H=H.substring(0,H.length-1)),F==null?void 0:F.startsWith("section/")){if(this.multispec){const[se]=H.split("/");return(0,a.mi)(se,F)}return F}return(F==null?void 0:F.startsWith("operation/"))?(0,a.mi)(H,F):H?this.pagination==="item"&&F.startsWith(this.options.deepLinkPrefix)?(0,a.mi)(H,F,this.options.deepLinkPrefix):(0,a.mi)(H,F):F}makeUrl(F,H){let se="";o.IS_BROWSER&&(se=window.location.search);let ue;return F.startsWith("/")?ue="/"+(0,a.mi)(this.basePath,F.substring(1),"/"):ue=F,ue+se?(0,a.mi)(ue+se,H,"#"):"#"+H}generateDeepLink(F,H){if(!H)return null;const se=this.options.pagination==="item"?"#":"";return H+se+this.options.deepLinkPrefix+F}linkForId(F=""){if(F==="")return this.makeUrl("/","");let H="";if(this.multispec&&(H="/"+F.split("/")[0],F=F.split("/").slice(1).join("/")),F.startsWith("operation/"))if(this.multispec&&o.IS_BROWSER){let ne=window.location.pathname.substring(1);ne.startsWith(this.basePath)&&(ne=ne.substring(this.basePath.length),ne.startsWith("/")&&(ne=ne.substring(1)));const Se="/"+ne.split("/")[0];return H===Se?this.makeUrl("",F):this.makeUrl(ne.replace(Se,H),F)}else return this.makeUrl("",F);let se=H,ue="";if(F.startsWith("section/")||!F){const[,ne]=(F||"").split("/");ne&&this.markdownItemsPagination==="section"?(se=H+"/section/"+ne,ue=F):(se=H+"/",ue=F)}if(F.startsWith("group/")){const ne=F.match(/group\/(.*)\/(paths\/.*\/\w+|operation\/[^/]*)/);if(ne){const Se=ne[1];se=H+"/group/"+Se,ue=ne[2]||""}else se=H+"/"+F,ue=""}if(this.pagination==="section"&&F.startsWith("tag/")){const ne=F.split("/");se=H+"/"+ne.slice(0,2).join("/"),ue=ne.slice(2).join("/")}if(this.pagination==="item"&&F.startsWith("tag/")){se=H+"/"+F;const ne=F.split("/");ne[2]==="section"&&(se=H+"/"+ne.slice(0,2).join("/"),ue=ne.slice(2).join("/"))}return this.makeUrl(se,ue)}subscribe(F){const H=this._emiter.addListener("popstate",F);return()=>H.removeListener("popstate",F)}bind(){o.IS_BROWSER&&window.addEventListener("popstate",this.emit,!1)}dispose(){o.IS_BROWSER&&window.removeEventListener("popstate",this.emit)}replace(F,H=!1){if(H)return this.replaceDebounced(F);this.replaceNow(F,H)}replaceForField(F,H=!1){if(!o.IS_BROWSER||!F)return;const se=ne=>{H&&window.history.replaceState(null,"",ne),window.history.pushState(null,"",ne)},ue=new URL(F,window.location.href);se(ue),this.emit()}replaceNow(F,H=!1){if(!o.IS_BROWSER||F==null||(0,a.he)(F,this.currentId))return;const se=new URL(this.linkForId(F),window.location.href);if(H){o.IS_BROWSER&&window.history.replaceState(null,"",se.href);return}o.IS_BROWSER&&(window.history.pushState(null,"",se.href),this.emit())}replaceDebounced(F){return this.replaceNow(F,!0)}}d([r.bind],g.prototype,"replace",1),d([r.bind],g.prototype,"replaceForField",1),d([r.bind,r.debounce],g.prototype,"replaceDebounced",1);var y=Object.defineProperty,b=Object.getOwnPropertyDescriptor,m=(S,F,H)=>F in S?y(S,F,{enumerable:!0,configurable:!0,writable:!0,value:H}):S[F]=H,E=(S,F,H,se)=>{for(var ue=se>1?void 0:se?b(F,H):F,ne=S.length-1,Se;ne>=0;ne--)(Se=S[ne])&&(ue=(se?Se(F,H,ue):Se(ue))||ue);return se&&ue&&y(F,H,ue),ue},x=(S,F,H)=>(m(S,typeof F!="symbol"?F+"":F,H),H);class T{constructor(F,H){this.options=F,this.multiSpec=H,x(this,"_emiter"),x(this,"basePath"),x(this,"emit",()=>{this._emiter.emit("popstate",this.currentId)});const se=F.routingBasePath||"";this.basePath=se.endsWith("/")?se.substring(0,se.length-1):se,this.basePath.startsWith("/")&&(this.basePath=this.basePath.substring(1)),this._emiter=new(s()),this.bind()}get currentId(){if(!o.IS_BROWSER)return"";const F=decodeURIComponent(window.location.hash.substr(1));let H=window.location.pathname.substring(1);if(H.startsWith(this.basePath+(this.basePath.endsWith(".html")?"":"/"))&&(H=H.substring(this.basePath.length+1)),H.endsWith("/")&&(H=H.substring(0,H.length-1)),F.startsWith("operation/")||(F==null?void 0:F.startsWith("section/"))){if(this.multiSpec){const[se]=H.split("/");return(0,a.mi)(se,F)}return F}return H?(0,a.mi)(H,F):F}makeUrl(F,H){let se="";o.IS_BROWSER&&(se=window.location.search);let ue;return F.startsWith("/")?ue="/"+(this.basePath?this.basePath+"/":"")+F.substring(1):ue=F,ue+se+(H?"#"+H:"")}linkForId(F){if(!F)return"";if(F==="")return this.makeUrl("","");let H="";return this.multiSpec&&(H="/"+F.split("/")[0],F=F.split("/").slice(1).join("/")),this.makeUrl(H,F)}generateDeepLink(F,H){if(!!H)return H+this.options.deepLinkPrefix+F}subscribe(F){const H=this._emiter.addListener("popstate",F);return()=>H.removeListener("popstate",F)}bind(){o.IS_BROWSER&&(window.addEventListener("popstate",this.emit,!1),window.addEventListener("hashchange",this.emit,!1))}dispose(){o.IS_BROWSER&&(window.removeEventListener("popstate",this.emit),window.removeEventListener("hashchange",this.emit))}replace(F,H=!1){if(H)return this.replaceDebounced(F);this.replaceNow(F,H)}replaceForField(F,H=!1){if(!o.IS_BROWSER||!F)return;const se=ne=>{H?window.history.replaceState(null,"",ne):(window.history.pushState(null,"",ne),this.emit())},ue=new URL(F,window.location.href);se(ue)}replaceNow(F,H=!1){if(!o.IS_BROWSER||F==null||(0,a.he)(F,this.currentId))return;const se=new URL(this.linkForId(F),window.location.href);if(H){o.IS_BROWSER&&window.history.replaceState(null,"",se.href);return}o.IS_BROWSER&&(window.history.pushState(null,"",se.href),this.emit())}replaceDebounced(F){return this.replaceNow(F,!0)}}E([r.bind],T.prototype,"replace",1),E([r.bind],T.prototype,"replaceForField",1),E([r.bind,r.debounce],T.prototype,"replaceDebounced",1);var w=Object.defineProperty,R=Object.getOwnPropertyDescriptor,P=(S,F,H)=>F in S?w(S,F,{enumerable:!0,configurable:!0,writable:!0,value:H}):S[F]=H,_=(S,F,H,se)=>{for(var ue=se>1?void 0:se?R(F,H):F,ne=S.length-1,Se;ne>=0;ne--)(Se=S[ne])&&(ue=(se?Se(F,H,ue):Se(ue))||ue);return se&&ue&&w(F,H,ue),ue},B=(S,F,H)=>(P(S,typeof F!="symbol"?F+"":F,H),H);const v="itemchange";class ${constructor(F){this.options=F,B(this,"_emitter",new(s())),B(this,"basePath"),B(this,"currentId",""),B(this,"emit",()=>{this._emitter.emit(v,this.currentId)}),this.bind()}linkForId(F){return this.options.linkForId?this.options.linkForId(F):""}generateDeepLink(F,H){return F&&this.options.generateDeepLink?this.options.generateDeepLink(F,H):null}subscribe(F){const H=this._emitter.addListener(v,F);return()=>H.removeListener(v,F)}bind(){}dispose(){}replace(F,H=!1){}replaceForField(F,H=!1){this.currentId=(F||"").replace(/^#/,""),this.emit()}replaceNow(F,H=!1){}replaceDebounced(F){}}_([r.bind],$.prototype,"replace",1),_([r.bind],$.prototype,"replaceForField",1),_([r.bind,r.debounce],$.prototype,"replaceDebounced",1)},11429:(D,c,e)=>{"use strict";e.d(c,{nQ:()=>s.n,GZ:()=>n.GZ,N1:()=>s.N,SideNavStyle:()=>h.s});var r=e(3166),n=e(7638),s=e(24787),o=e(99098),a=e(50293),h=e(20906)},24787:(D,c,e)=>{"use strict";e.d(c,{N:()=>r,n:()=>n});var r;(function(s){s.STACKED="stacked",s.THREE_PANEL="three-panel"})(r||(r={}));var n;(function(s){s.CodeSampleLanguageSwitched="CodeSampleLanguageSwitched",s.CodeSampleCopied="CodeSampleCopied",s.OperationServerExpanded="OperationServerExpanded",s.PanelToggle="PanelToggle",s.TryItOpen="TryItOpen",s.TryItSent="TryItSent"})(n||(n={}))},20906:(D,c,e)=>{"use strict";e.d(c,{s:()=>r});var r;(function(n){n.SummaryOnly="summary-only",n.PathFirst="path-first",n.IdOnly="id-only"})(r||(r={}))},64776:(D,c,e)=>{"use strict";e.d(c,{AH:()=>g,PP:()=>b,mm:()=>m,lN:()=>E,Qr:()=>T,EA:()=>w,CY:()=>R,p8:()=>P,JQ:()=>_,rS:()=>B});var r=e(9996),n=e.n(r),s=e(10519),o=Object.defineProperty,a=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,l=(v,$,S)=>$ in v?o(v,$,{enumerable:!0,configurable:!0,writable:!0,value:S}):v[$]=S,d=(v,$)=>{for(var S in $||($={}))h.call($,S)&&l(v,S,$[S]);if(a)for(var S of a($))u.call($,S)&&l(v,S,$[S]);return v},p=(v,$,S)=>new Promise((F,H)=>{var se=Se=>{try{ne(S.next(Se))}catch(Ve){H(Ve)}},ue=Se=>{try{ne(S.throw(Se))}catch(Ve){H(Ve)}},ne=Se=>Se.done?F(Se.value):Promise.resolve(Se.value).then(se,ue);ne((S=S.apply(v,$)).next())});function g(v){return v.startsWith("/")||(v="/"+v),v.endsWith("/")&&(v=v.slice(0,-1)),v}function y(v,$){return!v||!$?!1:b(v)===b($)}function b(v){if(!!v)return v.split(";")[0].toLowerCase()}function m(v){const $=new RegExp("%7B","g"),S=new RegExp("%7D","g");return v.replace($,"{").replace(S,"}").replace("///","//")}function E(v,$){if(!(v.length&&x(v)))return $;const S=v.filter(F=>Object.keys(F).length>0);return $.forEach(function(F,H){(0,s.Gk)(F)?S[H]=n()(v[H],F,{arrayMerge:E}):Array.isArray(F)?S.push(F):S[H]=F}),S}const x=v=>v.some($=>(0,s.Kn)($)&&Object.keys($).length>0);function T(v){return!!v&&Object.keys(v).length===0}const w=typeof window!="undefined"&&(window.crypto||window.msCrypto)||void 0;function R(v=32){let $="";for(;$.length<v;)$+=Math.random().toString(32).substring(2);return $.substring(0,v)}function P(v){const $=d({randomStr:R()},v);return btoa(JSON.stringify($))}function _(v){return p(this,null,function*(){const $=new TextEncoder().encode(v);return w==null?void 0:w.subtle.digest("SHA-256",$)})}function B(v){if(!!v)return btoa(String.fromCharCode.apply(null,new Uint8Array(v))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},25446:(D,c,e)=>{"use strict";e.d(c,{zJ:()=>o,_3:()=>a,Ds:()=>h,WW:()=>u,YQ:()=>l,ZJ:()=>d,X_:()=>p,Im:()=>g,Y9:()=>y,Bs:()=>b,A8:()=>m,dw:()=>E,Fp:()=>x,xC:()=>T,lX:()=>w,Al:()=>R,U2:()=>_,s1:()=>v});var r=e(67294),n=e(76671);let s;const o=()=>s,a=$=>s=$;function h($,S,F){let H,se=0;return function(...ne){se++;function Se(){se>1&&$(...ne),se=0,H=null}H?clearTimeout(H):F&&$(...ne),H=setTimeout(Se,S)}}function u($,S){n.IS_BROWSER&&window.sessionStorage.setItem("redoc."+$,S)}function l($){return n.IS_BROWSER&&window.sessionStorage.getItem("redoc."+$)||""}function d($,S,F){u(`${$}.${S}`,JSON.stringify(F))}function p($,S){try{return JSON.parse(l(`${$}.${S}`))}catch(F){return null}}function g($,S){window.localStorage.setItem("redoc."+$,S)}function y($){return n.IS_BROWSER&&window.localStorage.getItem("redoc."+$)||""}function b($){const[S,F]=r.useState(null);return r.useLayoutEffect(()=>{if($){const H=()=>window.requestAnimationFrame(()=>F($.getBoundingClientRect()));return H(),window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}}},[$]),[S]}function m($){return $.replace(/[.[\]]/g,S=>({".":"%2e","[":"%5b","]":"%5d"})[S]||"")}function E($){return $.replace(/%2e|%5b|%5d/g,S=>({"%2e":".","%5b":"[","%5d":"]"})[S]||"")}function x($,S){$=m($),typeof S=="string"?u("auth."+$,S):S&&(u(`auth.${$}.password`,S.password||""),u(`auth.${$}.username`,S.username||""),u(`auth.${$}.token`,S.token&&JSON.stringify(S.token)||""),u(`auth.${$}.client_id`,S.client_id||""),u(`auth.${$}.client_secret`,S.client_secret||""),u(`auth.${$}.scopes`,S.scopes&&JSON.stringify(S.scopes)||""))}function T($,S){$=m($),u(`auth.${$}.variants`,JSON.stringify(S))}function w($){$=m($);const S=l(`auth.${$}`),F=l(`auth.${$}.token`);return{raw:S,password:l(`auth.${$}.password`),username:l(`auth.${$}.username`),token:F&&JSON.parse(F)||null,client_id:l(`auth.${$}.client_id`),client_secret:l(`auth.${$}.client_secret`),scopes:l(`auth.${$}.scopes`)}}function R($,S){$=m($);const F=l(`auth.${$}.variants`);if(!F)return null;const H=JSON.parse(F);return!H||!Array.isArray(H)?null:H.map(se=>se.details?S===""&&se.details&&typeof se.details=="string"?{label:se.label,value:se.details}:typeof se.details=="object"?{label:se.label,value:se.details[S]}:null:null).filter(P)}function P($){return $!==null}function _($,S,F){return typeof S=="string"&&(S=S.split(".")),S.reduce((H,se)=>H&&H[se]?H[se]:F,$)}function B($){return(...S)=>S.filter(Boolean).join($)}const v=B(".")},26729:D=>{"use strict";var c=Object.prototype.hasOwnProperty,e="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(e=!1));function n(h,u,l){this.fn=h,this.context=u,this.once=l||!1}function s(h,u,l,d,p){if(typeof l!="function")throw new TypeError("The listener must be a function");var g=new n(l,d||h,p),y=e?e+u:u;return h._events[y]?h._events[y].fn?h._events[y]=[h._events[y],g]:h._events[y].push(g):(h._events[y]=g,h._eventsCount++),h}function o(h,u){--h._eventsCount==0?h._events=new r:delete h._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],l,d;if(this._eventsCount===0)return u;for(d in l=this._events)c.call(l,d)&&u.push(e?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},a.prototype.listeners=function(u){var l=e?e+u:u,d=this._events[l];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,g=d.length,y=new Array(g);p<g;p++)y[p]=d[p].fn;return y},a.prototype.listenerCount=function(u){var l=e?e+u:u,d=this._events[l];return d?d.fn?1:d.length:0},a.prototype.emit=function(u,l,d,p,g,y){var b=e?e+u:u;if(!this._events[b])return!1;var m=this._events[b],E=arguments.length,x,T;if(m.fn){switch(m.once&&this.removeListener(u,m.fn,void 0,!0),E){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,l),!0;case 3:return m.fn.call(m.context,l,d),!0;case 4:return m.fn.call(m.context,l,d,p),!0;case 5:return m.fn.call(m.context,l,d,p,g),!0;case 6:return m.fn.call(m.context,l,d,p,g,y),!0}for(T=1,x=new Array(E-1);T<E;T++)x[T-1]=arguments[T];m.fn.apply(m.context,x)}else{var w=m.length,R;for(T=0;T<w;T++)switch(m[T].once&&this.removeListener(u,m[T].fn,void 0,!0),E){case 1:m[T].fn.call(m[T].context);break;case 2:m[T].fn.call(m[T].context,l);break;case 3:m[T].fn.call(m[T].context,l,d);break;case 4:m[T].fn.call(m[T].context,l,d,p);break;default:if(!x)for(R=1,x=new Array(E-1);R<E;R++)x[R-1]=arguments[R];m[T].fn.apply(m[T].context,x)}}return!0},a.prototype.on=function(u,l,d){return s(this,u,l,d,!1)},a.prototype.once=function(u,l,d){return s(this,u,l,d,!0)},a.prototype.removeListener=function(u,l,d,p){var g=e?e+u:u;if(!this._events[g])return this;if(!l)return o(this,g),this;var y=this._events[g];if(y.fn)y.fn===l&&(!p||y.once)&&(!d||y.context===d)&&o(this,g);else{for(var b=0,m=[],E=y.length;b<E;b++)(y[b].fn!==l||p&&!y[b].once||d&&y[b].context!==d)&&m.push(y[b]);m.length?this._events[g]=m.length===1?m[0]:m:o(this,g)}return this},a.prototype.removeAllListeners=function(u){var l;return u?(l=e?e+u:u,this._events[l]&&o(this,l)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=e,a.EventEmitter=a,D.exports=a},64063:D=>{"use strict";D.exports=function c(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,s,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(s=n;s--!=0;)if(!c(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(s=n;s--!=0;)if(!Object.prototype.hasOwnProperty.call(r,o[s]))return!1;for(s=n;s--!=0;){var a=o[s];if(!c(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}},4445:D=>{D.exports=o,o.default=o,o.stable=l,o.stableStringify=l;var c="[...]",e="[Circular]",r=[],n=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(g,y,b,m){typeof m=="undefined"&&(m=s()),h(g,"",0,[],void 0,0,m);var E;try{n.length===0?E=JSON.stringify(g,y,b):E=JSON.stringify(g,p(y),b)}catch(T){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var x=r.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return E}function a(g,y,b,m){var E=Object.getOwnPropertyDescriptor(m,b);E.get!==void 0?E.configurable?(Object.defineProperty(m,b,{value:g}),r.push([m,b,y,E])):n.push([y,b,g]):(m[b]=g,r.push([m,b,y]))}function h(g,y,b,m,E,x,T){x+=1;var w;if(typeof g=="object"&&g!==null){for(w=0;w<m.length;w++)if(m[w]===g){a(e,g,y,E);return}if(typeof T.depthLimit!="undefined"&&x>T.depthLimit){a(c,g,y,E);return}if(typeof T.edgesLimit!="undefined"&&b+1>T.edgesLimit){a(c,g,y,E);return}if(m.push(g),Array.isArray(g))for(w=0;w<g.length;w++)h(g[w],w,w,m,g,x,T);else{var R=Object.keys(g);for(w=0;w<R.length;w++){var P=R[w];h(g[P],P,w,m,g,x,T)}}m.pop()}}function u(g,y){return g<y?-1:g>y?1:0}function l(g,y,b,m){typeof m=="undefined"&&(m=s());var E=d(g,"",0,[],void 0,0,m)||g,x;try{n.length===0?x=JSON.stringify(E,y,b):x=JSON.stringify(E,p(y),b)}catch(w){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var T=r.pop();T.length===4?Object.defineProperty(T[0],T[1],T[3]):T[0][T[1]]=T[2]}}return x}function d(g,y,b,m,E,x,T){x+=1;var w;if(typeof g=="object"&&g!==null){for(w=0;w<m.length;w++)if(m[w]===g){a(e,g,y,E);return}try{if(typeof g.toJSON=="function")return}catch(B){return}if(typeof T.depthLimit!="undefined"&&x>T.depthLimit){a(c,g,y,E);return}if(typeof T.edgesLimit!="undefined"&&b+1>T.edgesLimit){a(c,g,y,E);return}if(m.push(g),Array.isArray(g))for(w=0;w<g.length;w++)d(g[w],w,w,m,g,x,T);else{var R={},P=Object.keys(g).sort(u);for(w=0;w<P.length;w++){var _=P[w];d(g[_],_,w,m,g,x,T),R[_]=g[_]}if(typeof E!="undefined")r.push([E,y,g]),E[y]=R;else return R}m.pop()}}function p(g){return g=typeof g!="undefined"?g:function(y,b){return b},function(y,b){if(n.length>0)for(var m=0;m<n.length;m++){var E=n[m];if(E[1]===y&&E[0]===b){b=E[2],n.splice(m,1);break}}return g.call(this,y,b)}}},92806:D=>{"use strict";D.exports=function(c,e){for(var r={},n=Object.keys(c),s=Array.isArray(e),o=0;o<n.length;o++){var a=n[o],h=c[a];(s?e.indexOf(a)!==-1:e(a,h,c))&&(r[a]=h)}return r}},49804:D=>{var c=Object.prototype.hasOwnProperty,e=Object.prototype.toString;D.exports=function(n,s,o){if(e.call(s)!=="[object Function]")throw new TypeError("iterator must be a function");var a=n.length;if(a===+a)for(var h=0;h<a;h++)s.call(o,n[h],h,n);else for(var u in n)c.call(n,u)&&s.call(o,n[u],u,n)}},46841:(D,c)=>{"use strict";var e;e={value:!0},c.Z=r=>Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))},8679:(D,c,e)=>{"use strict";var r=e(21296),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h={};h[r.ForwardRef]=o,h[r.Memo]=a;function u(E){return r.isMemo(E)?a:h[E.$$typeof]||n}var l=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,b=Object.prototype;function m(E,x,T){if(typeof x!="string"){if(b){var w=y(x);w&&w!==b&&m(E,w,T)}var R=d(x);p&&(R=R.concat(p(x)));for(var P=u(E),_=u(x),B=0;B<R.length;++B){var v=R[B];if(!s[v]&&!(T&&T[v])&&!(_&&_[v])&&!(P&&P[v])){var $=g(x,v);try{l(E,v,$)}catch(S){}}}}return E}D.exports=m},96103:(D,c)=>{"use strict";/** @license React v16.13.1
2711
2711
  * react-is.production.min.js
2712
2712
  *
2713
2713
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -3042,7 +3042,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
3042
3042
  * Redocly Reference Docs
3043
3043
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
3044
3044
  * -------------------------------------------------------------
3045
- * Version: "2.22.0"
3045
+ * Version: "2.22.1"
3046
3046
  */(()=>{var Y={336:(x,E,T)=>{var j,C;/**
3047
3047
  * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
3048
3048
  * Copyright (C) 2020 Oliver Nightingale
@@ -3418,4 +3418,4 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
3418
3418
  ${Nn} {
3419
3419
  ${({theme:pe,showRightPanel:Be,layout:nt})=>(0,x.mediaCSS)({width:{[x.ZERO_BREAKPOINT]:"none",small:`calc(100% - ${pe.sidebar.width})`},maxWidth:pe.layout[nt===w.N.THREE_PANEL&&Be?w.N.THREE_PANEL:w.N.STACKED].maxWidth})};
3420
3420
  }
3421
- `;let ct=class extends m.Component{constructor(pe){super(pe);Et(this,"_observer"),Et(this,"_updatedItems",!1),Et(this,"rootElementRef",m.createRef()),Et(this,"handleClose",()=>this.props.store.tryItOut()),this.state={searchPopUpShown:!1,searchPopUpValue:""}}componentDidMount(){var pe,Be;this.props.store.onDidMount(),(Be=(pe=this.props).onLoaded)==null||Be.call(pe),this._observer=(0,P.U5)(()=>this.props.store.menu.renderItems,()=>{this._updatedItems=!0})}componentDidUpdate(){this._updatedItems&&(this._updatedItems=!1,this.props.store.menu.scrollToActive())}componentWillUnmount(){this.props.store.dispose(),this._observer()}render(){const{store:pe,_forceRenderInfo:Be}=this.props,{definition:nt,menu:xt,options:z,search:te,marker:Oe}=pe,{hideDownloadButton:et,hideInfoSection:wt,pagination:Ft,disableSidebar:on}=z,dn=xt.renderItems,zn=Ft==="none"||xt.activeRenderItemIdx<=0;let Cn=wt?!1:zn;Cn&&Ft!=="none"&&on&&dn[0]&&dn[0].type!=="section"&&(Cn=!1),Be&&(Cn=!0);const nr=!Cn&&et!==null&&!et&&zn;return m.createElement(Ir,{store:pe},m.createElement(wr,{className:"redoc-wrap",ref:this.rootElementRef},m.createElement(Dt,{l:pe.l}),m.createElement(un,{whiteLabel:z.whiteLabel,showRightPanel:pe.showRightPanel,layout:pe.layout}),pe.tryItOperation&&m.createElement(Vn.M,{rootElement:this.rootElementRef.current,store:pe,operation:pe.tryItOperation,onClose:this.handleClose}),!z.disableSidebar&&m.createElement(x.StickyResponsiveSidebar,{menu:xt,className:"menu-content"},!z.hideLogo&&m.createElement(x.ApiLogo,{info:nt.info}),nt instanceof _.C&&m.createElement(be,{spec:nt,onChange:$n=>{$n.idx!==void 0&&nt.changeVersion($n.idx),xt.updateItemsByVersionChange(!0),pe.tryItOut(void 0)}}),!z.disableSearch&&m.createElement(K,{showPopUp:()=>this.setState({searchPopUpShown:!0}),searchValue:this.state.searchPopUpValue,marker:Oe,setSearchValue:$n=>this.setState({searchPopUpValue:$n})}),m.createElement(x.SideMenu,{menu:xt})),m.createElement(Nn,{className:(pe.isLoading?"loading ":"")+"api-content",layout:pe.layout===w.N.THREE_PANEL&&pe.showRightPanel?w.N.THREE_PANEL:w.N.STACKED},z.theme.layout.showDarkRightPanel&&pe.showRightPanel&&pe.layout!==w.N.STACKED&&m.createElement(er,null),Cn&&m.createElement(x.ApiInfo,{store:pe}),nr&&m.createElement(B.C,{store:pe}),m.createElement(x.ContentItems,{items:dn,store:pe}),z.showNextButton&&m.createElement(Ae,{pagination:z.pagination,menu:xt}),this.props.children),m.createElement(xe,null,m.createElement(Gn,{store:pe,isVisible:pe.layout===w.N.THREE_PANEL}),m.createElement(de,{store:pe,isVisible:pe.showRightPanel})),m.createElement(qt,{search:te,marker:Oe,menu:xt,onActivate:xt.activateAndScroll.bind(xt),options:z,shown:this.state.searchPopUpShown,hidePopUp:()=>this.setState({searchPopUpShown:!1}),showPopUp:()=>this.setState({searchPopUpShown:!0}),setSearchValue:$n=>this.setState({searchPopUpValue:$n}),searchValue:this.state.searchPopUpValue}),z.theme.layout.showDarkRightPanel&&pe.showRightPanel&&pe.layout!==w.N.STACKED&&m.createElement(vr,null)))}};ct=Wt([R.Pi],ct);function Mt(pe){const{definition:Be,definitionUrl:nt,options:xt={},activeItemId:z,activeSampleLanguage:te,activeDeepLink:Oe}=pe,et=(0,x.argValueToBoolean)(xt.hideLoading,!1),wt=new x.RedocNormalizedOptions(xt),Ft=m.createElement(rr,{definition:Be,definitionUrl:nt,options:xt,activeItemId:z,activeSampleLanguage:te,activeDeepLink:Oe},({loading:on,store:dn})=>on?et?null:m.createElement(x.Loading,{color:wt.theme.colors.primary.main}):m.createElement(ct,{store:dn}));return xt.disableErrorBoundary?Ft:m.createElement(x.ErrorBoundary,null,Ft)}class sn extends m.Component{render(){const{definitions:Be,options:nt={}}=this.props,xt=(0,x.argValueToBoolean)(nt.hideLoading,!1),z=new x.RedocNormalizedOptions(nt);return m.createElement(x.ErrorBoundary,null,m.createElement(rr,{definitions:Be,options:nt},({loading:te,store:Oe})=>te?xt?null:m.createElement(x.Loading,{color:z.theme.colors.primary.main}):m.createElement(ct,{store:Oe})))}}var rn=Object.defineProperty,Tn=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,Ue=(pe,Be,nt)=>Be in pe?rn(pe,Be,{enumerable:!0,configurable:!0,writable:!0,value:nt}):pe[Be]=nt,yt=(pe,Be)=>{for(var nt in Be||(Be={}))fr.call(Be,nt)&&Ue(pe,nt,Be[nt]);if(Tn)for(var nt of Tn(Be))Mr.call(Be,nt)&&Ue(pe,nt,Be[nt]);return pe};function kt(pe){const Be=(0,$e.zJ)();Be&&Be.toggleLayout((pe!=null?pe:Be.layout===w.N.STACKED)?w.N.THREE_PANEL:w.N.STACKED)}function Jt(pe){const Be=(0,$e.zJ)();Be&&Be.toggleRightPanel(pe)}const ir=Jr(),kn=ir?(0,b.dirname)(ir)+"/":"";function Sr(pe){const Be={},nt=pe.attributes;for(let xt=0;xt<nt.length;xt++){const z=nt[xt];Be[z.name]=z.value}return Be}function Tr(pe){const Be=Sr(pe),nt={};for(const xt in Be){const z=xt.replace(/-(.)/g,(te,Oe)=>Oe.toUpperCase());nt[z]=Be[xt]}return nt}function gr(pe,Be=document.querySelector("redoc")){const nt=T.r.fromJS(pe);(0,E.hydrate)(m.createElement(ct,{store:nt}),Be)}function En(pe,Be={},nt=(0,x.querySelector)("redoc"),xt){if(nt===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let z,te;if(typeof pe=="object"&&"versions"in pe){(0,E.render)(m.createElement(sn,{definitions:pe,options:yt(yt({},Be),Tr(nt))},["Loading..."]),nt,xt);return}typeof pe=="string"?z=pe:typeof pe=="object"&&(te=pe),(0,E.render)(m.createElement(Mt,{definition:te,definitionUrl:z,options:yt(yt({},Be),Tr(nt))},["Loading..."]),nt,xt)}function tr(pe){xn.p=pe}const Xr="2.22.0",Fr="416e8db";function Ar(){const pe=(0,x.querySelector)("redoc");if(!pe)return;const Be=pe.getAttribute("spec-url");Be&&En(Be,{},pe)}x.IS_BROWSER&&tr(kn),Ar();function Jr(){var pe;if(!x.IS_BROWSER)return"";const Be=+new Date+Math.random();try{return(!document.currentScript||!(document.currentScript.async||document.currentScript.defer))&&document.write(`<script id="dummy${Be}"><\/script>`),((pe=document.getElementById("dummy"+Be))==null?void 0:pe.previousSibling).src}catch(nt){return""}}})(),du})()});
3421
+ `;let ct=class extends m.Component{constructor(pe){super(pe);Et(this,"_observer"),Et(this,"_updatedItems",!1),Et(this,"rootElementRef",m.createRef()),Et(this,"handleClose",()=>this.props.store.tryItOut()),this.state={searchPopUpShown:!1,searchPopUpValue:""}}componentDidMount(){var pe,Be;this.props.store.onDidMount(),(Be=(pe=this.props).onLoaded)==null||Be.call(pe),this._observer=(0,P.U5)(()=>this.props.store.menu.renderItems,()=>{this._updatedItems=!0})}componentDidUpdate(){this._updatedItems&&(this._updatedItems=!1,this.props.store.menu.scrollToActive())}componentWillUnmount(){this.props.store.dispose(),this._observer()}render(){const{store:pe,_forceRenderInfo:Be}=this.props,{definition:nt,menu:xt,options:z,search:te,marker:Oe}=pe,{hideDownloadButton:et,hideInfoSection:wt,pagination:Ft,disableSidebar:on}=z,dn=xt.renderItems,zn=Ft==="none"||xt.activeRenderItemIdx<=0;let Cn=wt?!1:zn;Cn&&Ft!=="none"&&on&&dn[0]&&dn[0].type!=="section"&&(Cn=!1),Be&&(Cn=!0);const nr=!Cn&&et!==null&&!et&&zn;return m.createElement(Ir,{store:pe},m.createElement(wr,{className:"redoc-wrap",ref:this.rootElementRef},m.createElement(Dt,{l:pe.l}),m.createElement(un,{whiteLabel:z.whiteLabel,showRightPanel:pe.showRightPanel,layout:pe.layout}),pe.tryItOperation&&m.createElement(Vn.M,{rootElement:this.rootElementRef.current,store:pe,operation:pe.tryItOperation,onClose:this.handleClose}),!z.disableSidebar&&m.createElement(x.StickyResponsiveSidebar,{menu:xt,className:"menu-content"},!z.hideLogo&&m.createElement(x.ApiLogo,{info:nt.info}),nt instanceof _.C&&m.createElement(be,{spec:nt,onChange:$n=>{$n.idx!==void 0&&nt.changeVersion($n.idx),xt.updateItemsByVersionChange(!0),pe.tryItOut(void 0)}}),!z.disableSearch&&m.createElement(K,{showPopUp:()=>this.setState({searchPopUpShown:!0}),searchValue:this.state.searchPopUpValue,marker:Oe,setSearchValue:$n=>this.setState({searchPopUpValue:$n})}),m.createElement(x.SideMenu,{menu:xt})),m.createElement(Nn,{className:(pe.isLoading?"loading ":"")+"api-content",layout:pe.layout===w.N.THREE_PANEL&&pe.showRightPanel?w.N.THREE_PANEL:w.N.STACKED},z.theme.layout.showDarkRightPanel&&pe.showRightPanel&&pe.layout!==w.N.STACKED&&m.createElement(er,null),Cn&&m.createElement(x.ApiInfo,{store:pe}),nr&&m.createElement(B.C,{store:pe}),m.createElement(x.ContentItems,{items:dn,store:pe}),z.showNextButton&&m.createElement(Ae,{pagination:z.pagination,menu:xt}),this.props.children),m.createElement(xe,null,m.createElement(Gn,{store:pe,isVisible:pe.layout===w.N.THREE_PANEL}),m.createElement(de,{store:pe,isVisible:pe.showRightPanel})),m.createElement(qt,{search:te,marker:Oe,menu:xt,onActivate:xt.activateAndScroll.bind(xt),options:z,shown:this.state.searchPopUpShown,hidePopUp:()=>this.setState({searchPopUpShown:!1}),showPopUp:()=>this.setState({searchPopUpShown:!0}),setSearchValue:$n=>this.setState({searchPopUpValue:$n}),searchValue:this.state.searchPopUpValue}),z.theme.layout.showDarkRightPanel&&pe.showRightPanel&&pe.layout!==w.N.STACKED&&m.createElement(vr,null)))}};ct=Wt([R.Pi],ct);function Mt(pe){const{definition:Be,definitionUrl:nt,options:xt={},activeItemId:z,activeSampleLanguage:te,activeDeepLink:Oe}=pe,et=(0,x.argValueToBoolean)(xt.hideLoading,!1),wt=new x.RedocNormalizedOptions(xt),Ft=m.createElement(rr,{definition:Be,definitionUrl:nt,options:xt,activeItemId:z,activeSampleLanguage:te,activeDeepLink:Oe},({loading:on,store:dn})=>on?et?null:m.createElement(x.Loading,{color:wt.theme.colors.primary.main}):m.createElement(ct,{store:dn}));return xt.disableErrorBoundary?Ft:m.createElement(x.ErrorBoundary,null,Ft)}class sn extends m.Component{render(){const{definitions:Be,options:nt={}}=this.props,xt=(0,x.argValueToBoolean)(nt.hideLoading,!1),z=new x.RedocNormalizedOptions(nt);return m.createElement(x.ErrorBoundary,null,m.createElement(rr,{definitions:Be,options:nt},({loading:te,store:Oe})=>te?xt?null:m.createElement(x.Loading,{color:z.theme.colors.primary.main}):m.createElement(ct,{store:Oe})))}}var rn=Object.defineProperty,Tn=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,Ue=(pe,Be,nt)=>Be in pe?rn(pe,Be,{enumerable:!0,configurable:!0,writable:!0,value:nt}):pe[Be]=nt,yt=(pe,Be)=>{for(var nt in Be||(Be={}))fr.call(Be,nt)&&Ue(pe,nt,Be[nt]);if(Tn)for(var nt of Tn(Be))Mr.call(Be,nt)&&Ue(pe,nt,Be[nt]);return pe};function kt(pe){const Be=(0,$e.zJ)();Be&&Be.toggleLayout((pe!=null?pe:Be.layout===w.N.STACKED)?w.N.THREE_PANEL:w.N.STACKED)}function Jt(pe){const Be=(0,$e.zJ)();Be&&Be.toggleRightPanel(pe)}const ir=Jr(),kn=ir?(0,b.dirname)(ir)+"/":"";function Sr(pe){const Be={},nt=pe.attributes;for(let xt=0;xt<nt.length;xt++){const z=nt[xt];Be[z.name]=z.value}return Be}function Tr(pe){const Be=Sr(pe),nt={};for(const xt in Be){const z=xt.replace(/-(.)/g,(te,Oe)=>Oe.toUpperCase());nt[z]=Be[xt]}return nt}function gr(pe,Be=document.querySelector("redoc")){const nt=T.r.fromJS(pe);(0,E.hydrate)(m.createElement(ct,{store:nt}),Be)}function En(pe,Be={},nt=(0,x.querySelector)("redoc"),xt){if(nt===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let z,te;if(typeof pe=="object"&&"versions"in pe){(0,E.render)(m.createElement(sn,{definitions:pe,options:yt(yt({},Be),Tr(nt))},["Loading..."]),nt,xt);return}typeof pe=="string"?z=pe:typeof pe=="object"&&(te=pe),(0,E.render)(m.createElement(Mt,{definition:te,definitionUrl:z,options:yt(yt({},Be),Tr(nt))},["Loading..."]),nt,xt)}function tr(pe){xn.p=pe}const Xr="2.22.1",Fr="9a8f218";function Ar(){const pe=(0,x.querySelector)("redoc");if(!pe)return;const Be=pe.getAttribute("spec-url");Be&&En(Be,{},pe)}x.IS_BROWSER&&tr(kn),Ar();function Jr(){var pe;if(!x.IS_BROWSER)return"";const Be=+new Date+Math.random();try{return(!document.currentScript||!(document.currentScript.async||document.currentScript.defer))&&document.write(`<script id="dummy${Be}"><\/script>`),((pe=document.getElementById("dummy"+Be))==null?void 0:pe.previousSibling).src}catch(nt){return""}}})(),du})()});
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import type { RequestBodyModel } from '../../redoc-lib';
3
3
  import type { Console } from './Console';
4
4
  export interface RequestBodyProps {
@@ -9,4 +9,4 @@ export interface RequestBodyProps {
9
9
  id: string;
10
10
  properties: any;
11
11
  }
12
- export declare const RequestBody: ({ properties, ...props }: RequestBodyProps) => JSX.Element;
12
+ export declare const RequestBody: React.MemoExoticComponent<(props: RequestBodyProps) => JSX.Element>;
@@ -1,2 +1,2 @@
1
- "use strict";var _this=this;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RequestBody=void 0;var tslib_1=require("tslib"),React=(0,tslib_1.__importStar)(require("react")),react_1=require("react"),mobx_react_1=require("mobx-react"),deepmerge_1=(0,tslib_1.__importDefault)(require("deepmerge")),redoc_lib_1=require("../../redoc-lib"),Samples_1=require("../Samples"),utils_1=require("../../services/utils"),helper_1=require("../common/FileUpload/helper"),models_1=require("../../models"),Dropdown_1=require("../common/Dropdown"),RequestBodyForm_1=require("./RequestBodyForm"),RequestMimeLabel_1=require("./RequestMimeLabel"),CodemirrorInput_1=(0,tslib_1.__importDefault)(require("./CodemirrorInput"));exports.RequestBody=(0,mobx_react_1.observer)((function(e){var r,t=e.properties,a=void 0===t?{}:t,i=(0,tslib_1.__rest)(e,["properties"]),o=i.body.content,l=i.console.formApi,n=function(e){var r;if(!o||!o.hasSample)return"";var t=null===(r=o.active)||void 0===r?void 0:r.examples;if(!(null==t?void 0:t[e]))return"";var i=(0,deepmerge_1.default)(null==t?void 0:t[e].value,a,{arrayMerge:utils_1.arrayMergeStrategy});return JSON.stringify(i,null,2)},u=null===(r=null==o?void 0:o.operation)||void 0===r?void 0:r.activeExampleName,d=function(e){var r;null===(r=null==o?void 0:o.operation)||void 0===r||r.activateExampleName(e),l.setValue("body",n(e))},s=function(e){if(!e)return"";if("application/x-www-form-urlencoded"===e.mime)return e.value;var r=(0,deepmerge_1.default)(e.value,a,{arrayMerge:utils_1.arrayMergeStrategy});return JSON.stringify(r,null,2)},m=function(e,r){return(0,tslib_1.__awaiter)(void 0,void 0,void 0,(function(){return(0,tslib_1.__generator)(this,(function(t){return(0,l.setValue)("body."+e,r),[2]}))}))};(0,react_1.useEffect)((function(){!1!==u?u&&l.setValue("body",n(u)):l.setValue("body",JSON.stringify(a,null,2))}),[u]);var _=i.validate,c=i.body;return React.createElement(React.Fragment,null,React.createElement(redoc_lib_1.MediaTypesSwitch,{content:c.content,renderDropdown:function(e){return React.createElement(redoc_lib_1.DropdownOrLabel,(0,tslib_1.__assign)({},e,{variant:"dark",fullWidth:!0,Label:RequestMimeLabel_1.RequestMimeLabel,Dropdown:Dropdown_1.Dropdown}))}},(function(e){var r,t=e.examples||{},a=Object.keys(t),o=e.schema,n=(0,helper_1.isRootFileUpload)(o||{},e.name)||e.name===models_1.MediaTypes.MULTIPART||e.name===models_1.MediaTypes.URL_ENCODED,u=(0,Samples_1.useExampleKey)(e.operation,t).exampleKey,c=t[u];return React.createElement(React.Fragment,null,a.length&&1!==a.length&&React.createElement(Samples_1.ExampleSwitch,{examples:t,onChange:d,exampleKey:u})||null,n?React.createElement(RequestBodyForm_1.RequestBodyForm,{mediaType:e,formApi:l,onChange:m.bind(_this)}):React.createElement(CodemirrorInput_1.default,{id:"body"+i.id,field:"body",initialValue:s(c),schema:((null===(r=null==i?void 0:i.resolvedBody)||void 0===r?void 0:r.content[e.name])||{}).schema,mode:e.name,validate:_}))})))}));
1
+ "use strict";var _this=this;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RequestBody=void 0;var tslib_1=require("tslib"),React=(0,tslib_1.__importStar)(require("react")),react_1=require("react"),mobx_react_1=require("mobx-react"),deepmerge_1=(0,tslib_1.__importDefault)(require("deepmerge")),redoc_lib_1=require("../../redoc-lib"),Samples_1=require("../Samples"),utils_1=require("../../services/utils"),helper_1=require("../common/FileUpload/helper"),models_1=require("../../models"),Dropdown_1=require("../common/Dropdown"),RequestBodyForm_1=require("./RequestBodyForm"),RequestMimeLabel_1=require("./RequestMimeLabel"),CodemirrorInput_1=(0,tslib_1.__importDefault)(require("./CodemirrorInput")),RequestBodyComponent=(0,mobx_react_1.observer)((function(e){var r,t=e.body.content,o=e.console.formApi,a=function(e){return void 0===e&&(e={}),Array.isArray(e)?[]:{}},i=function(r){var o;if(!t||!t.hasSample)return"";var i=null===(o=t.active)||void 0===o?void 0:o.examples;if(!(null==i?void 0:i[r]))return"";var l=null==i?void 0:i[r].value,n=(0,deepmerge_1.default)(l,e.properties||a(l),{arrayMerge:utils_1.arrayMergeStrategy});return JSON.stringify(n,null,2)},l=null===(r=null==t?void 0:t.operation)||void 0===r?void 0:r.activeExampleName,n=function(e){var r;null===(r=null==t?void 0:t.operation)||void 0===r||r.activateExampleName(e),o.setValue("body",i(e))},u=function(r){if(!r)return"";if("application/x-www-form-urlencoded"===r.mime)return r.value;var t=r.value,o=(0,deepmerge_1.default)(t,e.properties||a(t),{arrayMerge:utils_1.arrayMergeStrategy});return JSON.stringify(o,null,2)},d=function(e,r){return(0,tslib_1.__awaiter)(void 0,void 0,void 0,(function(){return(0,tslib_1.__generator)(this,(function(t){return(0,o.setValue)("body."+e,r),[2]}))}))};(0,react_1.useEffect)((function(){!1!==l?l&&o.setValue("body",i(l)):o.setValue("body",JSON.stringify(e.properties||a(),null,2))}),[l]);var s=e.validate,m=e.body;return React.createElement(React.Fragment,null,React.createElement(redoc_lib_1.MediaTypesSwitch,{content:m.content,renderDropdown:function(e){return React.createElement(redoc_lib_1.DropdownOrLabel,(0,tslib_1.__assign)({},e,{variant:"dark",fullWidth:!0,Label:RequestMimeLabel_1.RequestMimeLabel,Dropdown:Dropdown_1.Dropdown}))}},(function(r){var t,a=r.examples||{},i=Object.keys(a),l=r.schema,m=(0,helper_1.isRootFileUpload)(l||{},r.name)||r.name===models_1.MediaTypes.MULTIPART||r.name===models_1.MediaTypes.URL_ENCODED,c=(0,Samples_1.useExampleKey)(r.operation,a).exampleKey,p=a[c];return React.createElement(React.Fragment,null,i.length&&1!==i.length&&React.createElement(Samples_1.ExampleSwitch,{examples:a,onChange:n,exampleKey:c})||null,m?React.createElement(RequestBodyForm_1.RequestBodyForm,{mediaType:r,formApi:o,onChange:d.bind(_this)}):React.createElement(CodemirrorInput_1.default,{id:"body"+e.id,field:"body",initialValue:u(p),schema:((null===(t=null==e?void 0:e.resolvedBody)||void 0===t?void 0:t.content[r.name])||{}).schema,mode:r.name,validate:s}))})))}));exports.RequestBody=React.memo(RequestBodyComponent);
2
2
  //# sourceMappingURL=RequestBody.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CopyButtonWrapper=void 0;var tslib_1=require("tslib"),React=(0,tslib_1.__importStar)(require("react")),ClipboardService_1=require("../services/ClipboardService"),samples_1=require("./samples"),Tooltip_1=require("./Tooltip"),CopyButtonWrapper=function(e){function t(t){var r=e.call(this,t)||this;return Object.defineProperty(r,"copy",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e="string"==typeof r.props.data?r.props.data:JSON.stringify(r.props.data,null,2);ClipboardService_1.ClipboardService.copyCustom(e),r.showTooltip()}}),Object.defineProperty(r,"renderCopyButton",{enumerable:!0,configurable:!0,writable:!0,value:function(){return React.createElement(Tooltip_1.Tooltip,{variant:"light",placement:"top",tip:ClipboardService_1.ClipboardService.isSupported()?"Copied":"Not supported in your browser",open:r.state.tooltipShown},React.createElement(samples_1.SamplesControlButton,{onClick:r.copy},"Copy"))}}),r.state={tooltipShown:!1},r}return(0,tslib_1.__extends)(t,e),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.props.children({renderCopyButton:this.renderCopyButton})}}),Object.defineProperty(t.prototype,"showTooltip",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this.setState({tooltipShown:!0}),setTimeout((function(){e.setState({tooltipShown:!1})}),1500)}}),t}(React.PureComponent);exports.CopyButtonWrapper=CopyButtonWrapper;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CopyButtonWrapper=void 0;var tslib_1=require("tslib"),React=(0,tslib_1.__importStar)(require("react")),ClipboardService_1=require("../services/ClipboardService"),samples_1=require("./samples"),Tooltip_1=require("./Tooltip"),CopyButtonWrapper=function(e){function t(t){var r=e.call(this,t)||this;return Object.defineProperty(r,"copy",{enumerable:!0,configurable:!0,writable:!0,value:function(){var e="string"==typeof r.props.data?r.props.data:JSON.stringify(r.props.data,(function(e,t){return void 0===t?null:t}),2);ClipboardService_1.ClipboardService.copyCustom(e),r.showTooltip()}}),Object.defineProperty(r,"renderCopyButton",{enumerable:!0,configurable:!0,writable:!0,value:function(){return React.createElement(Tooltip_1.Tooltip,{variant:"light",placement:"top",tip:ClipboardService_1.ClipboardService.isSupported()?"Copied":"Not supported in your browser",open:r.state.tooltipShown},React.createElement(samples_1.SamplesControlButton,{onClick:r.copy},"Copy"))}}),r.state={tooltipShown:!1},r}return(0,tslib_1.__extends)(t,e),Object.defineProperty(t.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.props.children({renderCopyButton:this.renderCopyButton})}}),Object.defineProperty(t.prototype,"showTooltip",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this.setState({tooltipShown:!0}),setTimeout((function(){e.setState({tooltipShown:!1})}),1500)}}),t}(React.PureComponent);exports.CopyButtonWrapper=CopyButtonWrapper;
2
2
  //# sourceMappingURL=CopyButtonWrapper.js.map