diff --git a/redoc-demo.bundle.js b/redoc-demo.bundle.js index d7924be5..b04ed0e7 100644 --- a/redoc-demo.bundle.js +++ b/redoc-demo.bundle.js @@ -6,7 +6,7 @@ `,xn=hn;function wn(e){return t=>{if(t.theme.extensionsHook)return t.theme.extensionsHook(e,t)}}const kn=xn.div` padding: 20px; color: red; -`;class On extends r.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?r.createElement(kn,null,r.createElement("h1",null,"Something went wrong..."),r.createElement("small",null," ",this.state.error.message," "),r.createElement("p",null,r.createElement("details",null,r.createElement("summary",null,"Stack trace"),r.createElement("pre",null,this.state.error.stack))),r.createElement("small",null," ReDoc Version: ","2.1.0")," ",r.createElement("br",null),r.createElement("small",null," Commit: ","ae74ef95")):r.createElement(r.Fragment,null,r.Children.only(this.props.children))}}const Sn=yn` +`;class On extends r.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?r.createElement(kn,null,r.createElement("h1",null,"Something went wrong..."),r.createElement("small",null," ",this.state.error.message," "),r.createElement("p",null,r.createElement("details",null,r.createElement("summary",null,"Stack trace"),r.createElement("pre",null,this.state.error.stack))),r.createElement("small",null," ReDoc Version: ","2.1.1")," ",r.createElement("br",null),r.createElement("small",null," Commit: ","c86fd7f5")):r.createElement(r.Fragment,null,r.Children.only(this.props.children))}}const Sn=yn` 0% { transform: rotate(0deg); } 100% { @@ -30,7 +30,7 @@ font-size: 25px; margin: 30px 0 20px 0; color: ${e=>e.color}; -`;class jn extends r.PureComponent{render(){return r.createElement("div",{style:{textAlign:"center"}},r.createElement(_n,{color:this.props.color},"Loading ..."),r.createElement(En,{color:this.props.color}))}}var An=n(5697);const Pn=r.createContext(new fn({})),Cn=Pn.Provider,Tn=Pn.Consumer;function In(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var hr=Symbol("mobx-stored-annotations");function mr(e){return Object.assign((function(t,n){gr(t,n,e)}),e)}function gr(e,t,n){ir(e,hr)||Kn(e,hr,cr({},e[hr])),function(e){return e.annotationType_===Sr}(n)||(e[hr][t]=n)}var yr=Symbol("mobx administration"),br=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=yo.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return zo(this)},t.reportChanged=function(){Mo(),Uo(this),Fo()},t.toString=function(){return this.name_},e}(),vr=Jn("Atom",br);function xr(e,t,n){void 0===t&&(t=Vn),void 0===n&&(n=Vn);var r=new br(e);return t!==Vn&&li(ii,r,t,undefined),n!==Vn&&si(r,n),r}var wr={identity:function(e,t){return e===t},structural:function(e,t){return xa(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return xa(e,t,1)}};function kr(e,t,n){return vi(e)?e:Array.isArray(e)?to.array(e,{name:n}):Gn(e)?to.object(e,void 0,{name:n}):er(e)?to.map(e,{name:n}):tr(e)?to.set(e,{name:n}):"function"!=typeof e||ri(e)||bi(e)?e:Xn(e)?gi(e):ni(n,e)}function Or(e){return e}var Sr="override";function Er(e,t){return{annotationType_:e,options_:t,make_:_r,extend_:jr}}function _r(e,t,n,r){var o;if(null==(o=this.options_)?void 0:o.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(ri(n.value))return 1;var i=Ar(e,this,t,n,!1);return Dn(r,t,i),2}function jr(e,t,n,r){var o=Ar(e,this,t,n);return e.defineProperty_(t,o,r)}function Ar(e,t,n,r,o){var i,a,s,l,c,u;void 0===o&&(o=$o.safeDescriptors),u=r,t.annotationType_,u.value;var p,d=r.value;return(null==(i=t.options_)?void 0:i.bound)&&(d=d.bind(null!=(p=e.proxy_)?p:e.target_)),{value:po(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),d,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function Pr(e,t){return{annotationType_:e,options_:t,make_:Cr,extend_:Tr}}function Cr(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if((null==(o=this.options_)?void 0:o.bound)&&!bi(e.target_[t])&&null===this.extend_(e,t,n,!1))return 0;if(bi(n.value))return 1;var i=Ir(e,this,0,n,!1,!1);return Dn(r,t,i),2}function Tr(e,t,n,r){var o,i=Ir(e,this,0,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function Ir(e,t,n,r,o,i){var a;void 0===i&&(i=$o.safeDescriptors),a=r,t.annotationType_,a.value;var s,l=r.value;return o&&(l=l.bind(null!=(s=e.proxy_)?s:e.target_)),{value:gi(l),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function Rr(e,t){return{annotationType_:e,options_:t,make_:Nr,extend_:$r}}function Nr(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function $r(e,t,n,r){return o=n,this.annotationType_,o.get,e.defineComputedProperty_(t,cr({},this.options_,{get:n.get,set:n.set}),r);var o}function Lr(e,t){return{annotationType_:e,options_:t,make_:Dr,extend_:Mr}}function Dr(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function Mr(e,t,n,r){var o,i;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:kr,r)}var Fr="true",zr=Ur();function Ur(e){return{annotationType_:Fr,options_:e,make_:Br,extend_:qr}}function Br(e,t,n,r){var o,i,a,s;if(n.get)return io.make_(e,t,n,r);if(n.set){var l=po(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!$o.safeDescriptors||e.isPlainObject_,set:l})?0:2:(Dn(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return Xn(n.value)?((null==(s=this.options_)?void 0:s.autoBind)?gi.bound:gi).make_(e,t,n,r):((null==(a=this.options_)?void 0:a.autoBind)?ni.bound:ni).make_(e,t,n,r);var c,u=!1===(null==(o=this.options_)?void 0:o.deep)?to.ref:to;return"function"==typeof n.value&&(null==(i=this.options_)?void 0:i.autoBind)&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_)),u.make_(e,t,n,r)}function qr(e,t,n,r){var o,i,a;return n.get?io.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!$o.safeDescriptors||e.isPlainObject_,set:po(t.toString(),n.set)},r):("function"==typeof n.value&&(null==(o=this.options_)?void 0:o.autoBind)&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(i=this.options_)?void 0:i.deep)?to.ref:to).extend_(e,t,n,r))}var Wr={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Vr(e){return e||Wr}Object.freeze(Wr);var Hr=Lr("observable"),Yr=Lr("observable.ref",{enhancer:Or}),Qr=Lr("observable.shallow",{enhancer:function(e,t,n){return null==e||aa(e)||qi(e)||Xi(e)||Ji(e)?e:Array.isArray(e)?to.array(e,{name:n,deep:!1}):Gn(e)?to.object(e,void 0,{name:n,deep:!1}):er(e)?to.map(e,{name:n,deep:!1}):tr(e)?to.set(e,{name:n,deep:!1}):void 0}}),Gr=Lr("observable.struct",{enhancer:function(e,t){return xa(e,t)?t:e}}),Xr=mr(Hr);function Kr(e){return!0===e.deep?kr:!1===e.deep?Or:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:kr;var t,n,r}function Zr(e,t,n){if(!Yn(t))return vi(e)?e:Gn(e)?to.object(e,t,n):Array.isArray(e)?to.array(e,t):er(e)?to.map(e,t):tr(e)?to.set(e,t):"object"==typeof e&&null!==e?e:to.box(e,t);gr(e,t,Hr)}Object.assign(Zr,Xr);var Jr,eo,to=$n(Zr,{box:function(e,t){var n=Vr(t);return new go(e,Kr(n),n.name,!0,n.equals)},array:function(e,t){var n=Vr(t);return(!1===$o.useProxies||!1===n.proxy?ma:Ni)(e,Kr(n),n.name)},map:function(e,t){var n=Vr(t);return new Gi(e,Kr(n),n.name)},set:function(e,t){var n=Vr(t);return new Zi(e,Kr(n),n.name)},object:function(e,t,n){return function(e,t,n,r){var o=ar(t),i=ra(e,r)[yr];Mo();try{rr(o).forEach((function(e){i.extend_(e,o[e],!n||!(e in n)||n[e])}))}finally{Fo()}return e}(!1===$o.useProxies||!1===(null==n?void 0:n.proxy)?ra({},n):function(e,t){var n,r;return qn(),null!=(r=(n=(e=ra(e,t))[yr]).proxy_)?r:n.proxy_=new Proxy(e,ki)}({},n),e,t)},ref:mr(Yr),shallow:mr(Qr),deep:Xr,struct:mr(Gr)}),no="computed",ro=Rr(no),oo=Rr("computed.struct",{equals:wr.structural}),io=function(e,t){if(Yn(t))return gr(e,t,ro);if(Gn(e))return mr(Rr(no,e));var n=Gn(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new vo(n)};Object.assign(io,ro),io.struct=mr(oo);var ao,so=0,lo=1,co=null!=(Jr=null==(eo=Ln((function(){}),"name"))?void 0:eo.configurable)&&Jr,uo={value:"action",configurable:!0,writable:!1,enumerable:!1};function po(e,t,n,r){function o(){return function(e,t,n,r,o){var i=function(e,t,n,r){var o=!1,i=0,a=$o.trackingDerivation,s=!t||!a;Mo();var l=$o.allowStateChanges;s&&(jo(),l=fo(!0));var c={runAsAction_:s,prevDerivation_:a,prevAllowStateChanges_:l,prevAllowStateReads_:Po(!0),notifySpy_:o,startTime_:i,actionId_:lo++,parentActionId_:so};return so=c.actionId_,c}(0,t);try{return n.apply(r,o)}catch(e){throw i.error_=e,e}finally{!function(e){so!==e.actionId_&&In(30),so=e.parentActionId_,void 0!==e.error_&&($o.suppressReactionErrors=!0),ho(e.prevAllowStateChanges_),Co(e.prevAllowStateReads_),Fo(),e.runAsAction_&&Ao(e.prevDerivation_),$o.suppressReactionErrors=!1}(i)}}(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),o.isMobxAction=!0,co&&(uo.value=e,Object.defineProperty(o,"name",uo)),o}function fo(e){var t=$o.allowStateChanges;return $o.allowStateChanges=e,t}function ho(e){$o.allowStateChanges=e}ao=Symbol.toPrimitive;var mo,go=function(e){function t(t,n,r,o,i){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=wr.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=i,a.value_=n(t,void 0,r),a}ur(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==$o.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(Oi(this)){var t=Ei(this,{object:this,type:Ti,newValue:e});if(!t)return $o.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?$o.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),_i(this)&&Ai(this,{type:Ti,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return Si(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Ti,newValue:this.value_,oldValue:void 0}),ji(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return or(this.get())},n[ao]=function(){return this.valueOf()},t}(br);mo=Symbol.toPrimitive;var yo,bo,vo=function(){function e(e){this.dependenciesState_=yo.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=yo.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new wo(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=bo.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||In(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=po("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?wr.structural:wr.default),this.scope_=e.context,this.requiresReaction_=!!e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){var e;(e=this).lowestObserverState_===yo.UP_TO_DATE_&&(e.lowestObserverState_=yo.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===yo.UP_TO_DATE_&&(e.dependenciesState_=yo.POSSIBLY_STALE_,e.onBecomeStale_())})))},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&In(32,this.name_,this.derivation),0!==$o.inBatch||0!==this.observers_.size||this.keepAlive_){if(zo(this),Oo(this)){var e=$o.trackingContext;this.keepAlive_&&!e&&($o.trackingContext=this),this.trackAndCompute()&&((t=this).lowestObserverState_!==yo.STALE_&&(t.lowestObserverState_=yo.STALE_,t.observers_.forEach((function(e){e.dependenciesState_===yo.POSSIBLY_STALE_?e.dependenciesState_=yo.STALE_:e.dependenciesState_===yo.UP_TO_DATE_&&(t.lowestObserverState_=yo.UP_TO_DATE_)})))),$o.trackingContext=e}}else Oo(this)&&(this.warnAboutUntrackedRead_(),Mo(),this.value_=this.computeValue_(!1),Fo());var t,n=this.value_;if(ko(n))throw n.cause;return n},t.set=function(e){if(this.setter_){this.isRunningSetter_&&In(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else In(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===yo.NOT_TRACKING_,n=this.computeValue_(!0),r=t||ko(e)||ko(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=fo(!1);if(e)t=So(this,this.derivation,this.scope_);else if(!0===$o.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new wo(e)}return ho(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Eo(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return function(e,t){var n,r;void 0===t&&(t=zn);var o,i=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var a=function(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:oi}(t),s=!1;o=new Bo(i,(function(){s||(s=!0,a((function(){s=!1,o.isDisposed_||o.track(l)})))}),t.onError,t.requiresObservable)}else o=new Bo(i,(function(){this.track(l)}),t.onError,t.requiresObservable);function l(){e(o)}return o.schedule_(),o.getDisposer_()}((function(){var i=n.get();if(!r||t){var a=jo();e({observableKind:"computed",debugObjectName:n.name_,type:Ti,object:n,newValue:i,oldValue:o}),Ao(a)}r=!1,o=i}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return or(this.get())},t[mo]=function(){return this.valueOf()},e}(),xo=Jn("ComputedValue",vo);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(yo||(yo={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(bo||(bo={}));var wo=function(e){this.cause=void 0,this.cause=e};function ko(e){return e instanceof wo}function Oo(e){switch(e.dependenciesState_){case yo.UP_TO_DATE_:return!1;case yo.NOT_TRACKING_:case yo.STALE_:return!0;case yo.POSSIBLY_STALE_:for(var t=Po(!0),n=jo(),r=e.observing_,o=r.length,i=0;ir&&(r=s.dependenciesState_)}for(n.length=o,e.newObserving_=null,i=t.length;i--;){var l=t[i];0===l.diffValue_&&Lo(l,e),l.diffValue_=0}for(;o--;){var c=n[o];1===c.diffValue_&&(c.diffValue_=0,p=e,(u=c).observers_.add(p),u.lowestObserverState_>p.dependenciesState_&&(u.lowestObserverState_=p.dependenciesState_))}var u,p;r!==yo.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),Co(r),o}function Eo(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Lo(t[n],e);e.dependenciesState_=yo.NOT_TRACKING_}function _o(e){var t=jo();try{return e()}finally{Ao(t)}}function jo(){var e=$o.trackingDerivation;return $o.trackingDerivation=null,e}function Ao(e){$o.trackingDerivation=e}function Po(e){var t=$o.allowStateReads;return $o.allowStateReads=e,t}function Co(e){$o.allowStateReads=e}function To(e){if(e.dependenciesState_!==yo.UP_TO_DATE_){e.dependenciesState_=yo.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=yo.UP_TO_DATE_}}var Io=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Ro=!0,No=!1,$o=function(){var e=Nn();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Ro=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Io).version&&(Ro=!1),Ro?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Io):(setTimeout((function(){No||In(35)}),1),new Io)}();function Lo(e,t){e.observers_.delete(t),0===e.observers_.size&&Do(e)}function Do(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,$o.pendingUnobservations.push(e))}function Mo(){$o.inBatch++}function Fo(){if(0==--$o.inBatch){Vo();for(var e=$o.pendingUnobservations,t=0;t0&&Do(e),!1)}function Uo(e){e.lowestObserverState_!==yo.STALE_&&(e.lowestObserverState_=yo.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===yo.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=yo.STALE_})))}var Bo=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),void 0===r&&(r=!1),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=yo.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=bo.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,$o.pendingReactions.push(this),Vo())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){Mo(),this.isScheduled_=!1;var e=$o.trackingContext;if($o.trackingContext=this,Oo(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}$o.trackingContext=e,Fo()}},t.track=function(e){if(!this.isDisposed_){Mo(),this.isRunning_=!0;var t=$o.trackingContext;$o.trackingContext=this;var n=So(this,e,void 0);$o.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Eo(this),ko(n)&&this.reportExceptionInDerivation_(n.cause),Fo()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if($o.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";$o.suppressReactionErrors||console.error(n,e),$o.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Mo(),Eo(this),Fo()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[yr]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){In("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),r=0;r0||$o.isRunningReactions||Wo(Ho)}function Ho(){$o.isRunningReactions=!0;for(var e=$o.pendingReactions,t=0;e.length>0;){++t===qo&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r",t,e):Hn(n)?po(t,n,e):Yn(n)?gr(t,n,e?Zo:Xo):Yn(t)?mr(Er(e?Go:Qo,{name:t,autoAction:e})):void 0}}var ti=ei(!1);Object.assign(ti,Xo);var ni=ei(!0);function ri(e){return Hn(e)&&!0===e.isMobxAction}Object.assign(ni,Zo),ti.bound=mr(Ko),ni.bound=mr(Jo);var oi=function(e){return e()};var ii="onBO",ai="onBUO";function si(e,t,n){return li(ai,e,t,n)}function li(e,t,n,r){var o="function"==typeof r?ga(t,n):ga(t),i=Hn(r)?r:n,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var ci="always";function ui(e){!0===e.isolateGlobalState&&function(){if(($o.pendingReactions.length||$o.inBatch||$o.isRunningReactions)&&In(36),No=!0,Ro){var e=Nn();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),$o=new Io}}();var t,n,r=e.useProxies,o=e.enforceActions;if(void 0!==r&&($o.useProxies=r===ci||"never"!==r&&"undefined"!=typeof Proxy),"ifavailable"===r&&($o.verifyProxies=!0),void 0!==o){var i=o===ci?ci:"observed"===o;$o.enforceActions=i,$o.allowStateChanges=!0!==i&&i!==ci}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&($o[t]=!!e[t])})),$o.allowStateReads=!$o.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=Wo,Wo=function(e){return t((function(){return n(e)}))})}function pi(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(pi)),n}var di=0;function fi(){this.message="FLOW_CANCELLED"}fi.prototype=Object.create(Error.prototype);var hi=Pr("flow"),mi=Pr("flow.bound",{bound:!0}),gi=Object.assign((function(e,t){if(Yn(t))return gr(e,t,hi);var n=e,r=n.name||"",o=function(){var e,t=arguments,o=++di,i=ti(r+" - runid: "+o+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function l(e){var t;a=void 0;try{t=ti(r+" - runid: "+o+" - yield "+s++,i.next).call(i,e)}catch(e){return n(e)}u(t)}function c(e){var t;a=void 0;try{t=ti(r+" - runid: "+o+" - yield "+s++,i.throw).call(i,e)}catch(e){return n(e)}u(t)}function u(e){if(!Hn(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,c);e.then(u,n)}e=n,l(void 0)}));return s.cancel=ti(r+" - runid: "+o+" - cancel",(function(){try{a&&yi(a);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(Vn,Vn),yi(n),e(new fi)}catch(t){e(t)}})),s};return o.isMobXFlow=!0,o}),hi);function yi(e){Hn(e.cancel)&&e.cancel()}function bi(e){return!0===(null==e?void 0:e.isMobXFlow)}function vi(e){return function(e,t){return!!e&&(void 0!==t?!!aa(e)&&e[yr].values_.has(t):aa(e)||!!e[yr]||vr(e)||Yo(e)||xo(e))}(e)}function xi(e,t){void 0===t&&(t=void 0),Mo();try{return e.apply(t)}finally{Fo()}}function wi(e){return e[yr]}gi.bound=mr(mi);var ki={has:function(e,t){return wi(e).has_(t)},get:function(e,t){return wi(e).get_(t)},set:function(e,t,n){var r;return!!Yn(t)&&(null==(r=wi(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!Yn(t)&&(null==(n=wi(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=wi(e).defineProperty_(t,n))||r},ownKeys:function(e){return wi(e).ownKeys_()},preventExtensions:function(e){In(13)}};function Oi(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function Si(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),Wn((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Ei(e,t){var n=jo();try{for(var r=[].concat(e.interceptors_||[]),o=0,i=r.length;o0}function ji(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),Wn((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Ai(e,t){var n=jo(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o0?e.map(this.dehancer):e},t.intercept_=function(e){return Si(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),ji(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||e<0)&&In("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r0&&ha(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=Fn),Oi(this)){var i=Ei(this,{object:this.proxy_,type:Ci,index:e,removedCount:t,added:n});if(!i)return Fn;t=i.removedCount,n=i.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(o,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var o=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length=e+n.length-t;for(var a=0;a2?n-2:0),o=2;o-1&&(this.splice(n,1),!0)}};function Li(e,t){"function"==typeof Array.prototype[e]&&($i[e]=t(e))}function Di(e){return function(){var t=this[yr];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Mi(e){return function(t,n){var r=this,o=this[yr];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e]((function(e,o){return t.call(n,e,o,r)}))}}function Fi(e){return function(){var t=this,n=this[yr];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(e,n,r,t)},r[e].apply(r,arguments)}}Li("concat",Di),Li("flat",Di),Li("includes",Di),Li("indexOf",Di),Li("join",Di),Li("lastIndexOf",Di),Li("slice",Di),Li("toString",Di),Li("toLocaleString",Di),Li("every",Mi),Li("filter",Mi),Li("find",Mi),Li("findIndex",Mi),Li("flatMap",Mi),Li("forEach",Mi),Li("map",Mi),Li("some",Mi),Li("reduce",Fi),Li("reduceRight",Fi);var zi,Ui,Bi=Jn("ObservableArrayAdministration",Ri);function qi(e){return Qn(e)&&Bi(e[yr])}var Wi={},Vi="add",Hi="delete";zi=Symbol.iterator,Ui=Symbol.toStringTag;var Yi,Qi,Gi=function(){function e(e,t,n){void 0===t&&(t=kr),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[yr]=Wi,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,Hn(Map)||In(18),this.keysAtom_=xr("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,this.merge(e)}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!$o.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new go(this.has_(e),Or,"ObservableMap.key?",!1);this.hasMap_.set(e,r),si(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Oi(this)){var r=Ei(this,{type:n?Ti:Vi,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,Oi(this)&&!Ei(this,{type:Hi,object:this,name:e}))return!1;if(this.has_(e)){var n=_i(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Hi,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return xi((function(){t.keysAtom_.reportChanged(),t.updateHasMapEntry_(e,!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&Ai(this,r),!0}return!1},t.updateHasMapEntry_=function(e,t){var n=this.hasMap_.get(e);n&&n.setNewValue_(t)},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==$o.UNCHANGED){var r=_i(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:Ti,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&Ai(this,o)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,xi((function(){var r=new go(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,r),t=r.value_,n.updateHasMapEntry_(e,!0),n.keysAtom_.reportChanged()}));var r=_i(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:Vi,object:this,name:e,newValue:t}:null;r&&Ai(this,o)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return Oa({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return Oa({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[zi]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=fr(this);!(n=r()).done;){var o=n.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return Xi(e)&&(e=new Map(e)),xi((function(){Gn(e)?function(e){var t=Object.keys(e);if(!nr)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return Mn.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):er(e)?(e.constructor!==Map&&In(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&In(20,e)})),this},t.clear=function(){var e=this;xi((function(){_o((function(){for(var t,n=fr(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return xi((function(){for(var n,r=function(e){if(er(e)||Xi(e))return e;if(Array.isArray(e))return new Map(e);if(Gn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return In(21,e)}(e),o=new Map,i=!1,a=fr(t.data_.keys());!(n=a()).done;){var s=n.value;if(!r.has(s))if(t.delete(s))i=!0;else{var l=t.data_.get(s);o.set(s,l)}}for(var c,u=fr(r.entries());!(c=u()).done;){var p=c.value,d=p[0],f=p[1],h=t.data_.has(d);if(t.set(d,f),t.data_.has(d)){var m=t.data_.get(d);o.set(d,m),h||(i=!0)}}if(!i)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),y=o.keys(),b=g.next(),v=y.next();!b.done;){if(b.value!==v.value){t.keysAtom_.reportChanged();break}b=g.next(),v=y.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return ji(this,e)},t.intercept_=function(e){return Si(this,e)},lr(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Ui,get:function(){return"Map"}}]),e}(),Xi=Jn("ObservableMap",Gi),Ki={};Yi=Symbol.iterator,Qi=Symbol.toStringTag;var Zi=function(){function e(e,t,n){void 0===t&&(t=kr),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[yr]=Ki,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,Hn(Set)||In(22),this.atom_=xr(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;xi((function(){_o((function(){for(var t,n=fr(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=fr(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(this.atom_,Oi(this)&&!Ei(this,{type:Vi,object:this,newValue:e}))return this;if(!this.has(e)){xi((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=_i(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Vi,object:this,newValue:e}:null;n&&Ai(this,r)}return this},t.delete=function(e){var t=this;if(Oi(this)&&!Ei(this,{type:Hi,object:this,oldValue:e}))return!1;if(this.has(e)){var n=_i(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Hi,object:this,oldValue:e}:null;return xi((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&Ai(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Oa({next:function(){var r=e;return e+=1,rua){for(var t=ua;t=0&&n++}e=ka(e),t=ka(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(Hn(l)&&l instanceof l&&Hn(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return o[u]===t;if(r.push(e),o.push(t),s){if((u=e.length)!==t.length)return!1;for(;u--;)if(!wa(e[u],t[u],n-1,r,o))return!1}else{var p,d=Object.keys(e);if(u=d.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!ir(t,p=d[u])||!wa(e[p],t[p],n-1,r,o))return!1}return r.pop(),o.pop(),!0}function ka(e){return qi(e)?e.slice():er(e)||Xi(e)||tr(e)||Ji(e)?Array.from(e.entries()):e}function Oa(e){return e[Symbol.iterator]=Sa,e}function Sa(){return this}["Symbol","Map","Set","Symbol"].forEach((function(e){void 0===Nn()[e]&&In("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:ba},$mobx:yr});var Ea=n(3675),_a=n(3777),ja=n(8925),Aa=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));var Pa=n(1851),Ca=n(6729),Ta=n(3573),Ia=n.n(Ta);const Ra=Ta.parse;class Na{static baseName(e,t=1){const n=Na.parse(e);return n[n.length-t]}static dirName(e,t=1){const n=Na.parse(e);return Ta.compile(n.slice(0,n.length-t))}static relative(e,t){const n=Na.parse(e);return Na.parse(t).slice(n.length)}static parse(e){let t=e;return"#"===t.charAt(0)&&(t=t.substring(1)),Ra(t)}static join(e,t){const n=Na.parse(e).concat(t);return Ta.compile(n)}static get(e,t){return Ta.get(e,t)}static compile(e){return Ta.compile(e)}static escape(e){return Ta.escape(e)}}Ta.parse=Na.parse,Object.assign(Na,Ta);var $a=n(6470),La=n(3578),Da=Object.defineProperty,Ma=Object.defineProperties,Fa=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertySymbols,Ua=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable,qa=(e,t,n)=>t in e?Da(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wa=(e,t)=>{for(var n in t||(t={}))Ua.call(t,n)&&qa(e,n,t[n]);if(za)for(var n of za(t))Ba.call(t,n)&&qa(e,n,t[n]);return e},Va=(e,t)=>Ma(e,Fa(t));function Ha(e){return"string"==typeof e&&/\dxx/i.test(e)}function Ya(e,t=!1){if("default"===e)return t?"error":"success";let n="string"==typeof e?parseInt(e,10):e;if(Ha(e)&&(n*=100),n<100||n>599)throw new Error("invalid HTTP code");let r="success";return n>=300&&n<400?r="redirect":n>=400?r="error":n<200&&(r="info"),r}const Qa={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function Ga(e){return e in Qa}const Xa={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",unevaluatedProperties:"object",properties:"object",patternProperties:"object"};function Ka(e,t=e.type){if(e["x-circular-ref"])return!0;if(void 0!==e.oneOf||void 0!==e.anyOf)return!1;if(e.if&&e.then||e.if&&e.else)return!1;let n=!0;const r=Kt(t);return("object"===t||r&&(null==t?void 0:t.includes("object")))&&(n=void 0!==e.properties?0===Object.keys(e.properties).length:void 0===e.additionalProperties&&void 0===e.unevaluatedProperties&&void 0===e.patternProperties),!Kt(e.items)&&!Kt(e.prefixItems)&&(void 0!==e.items&&!Zt(e.items)&&("array"===t||r&&(null==t?void 0:t.includes("array")))&&(n=Ka(e.items,e.items.type)),n)}function Za(e){return-1!==e.search(/json/i)}function Ja(e,t,n){return Kt(e)?e.map((e=>e.toString())).join(n):"object"==typeof e?Object.keys(e).map((t=>`${t}${n}${e[t]}`)).join(n):t+"="+e.toString()}function es(e,t){return Kt(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):"object"==typeof e?Object.keys(e).map((n=>`${t}[${n}]=${e[n]}`)).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+e.toString()),"")}function ts(e,t,n){const r="__redoc_param_name__",o=t?"*":"";return La.parse(`{?${r}${o}}`).expand({[r]:n}).substring(1).replace(/__redoc_param_name__/g,e)}function ns(e,t){return Za(t)?JSON.stringify(e):(console.warn(`Parameter serialization as ${t} is not supported`),"")}function rs(e,t){return e.in?decodeURIComponent(function(e,t){const{name:n,style:r,explode:o=!1,serializationMime:i}=e;if(i)switch(e.in){case"path":case"header":return ns(t,i);case"cookie":case"query":return`${n}=${ns(t,i)}`;default:return console.warn("Unexpected parameter location: "+e.in),""}if(!r)return console.warn(`Missing style attribute or content for parameter ${n}`),"";switch(e.in){case"path":return function(e,t,n,r){const o=n?"*":"";let i="";"label"===t?i=".":"matrix"===t&&(i=";");const a="__redoc_param_name__";return La.parse(`{${i}${a}${o}}`).expand({[a]:r}).replace(/__redoc_param_name__/g,e)}(n,r,o,t);case"query":return function(e,t,n,r){switch(t){case"form":return ts(e,n,r);case"spaceDelimited":return Kt(r)?n?ts(e,n,r):`${e}=${r.join("%20")}`:(console.warn("The style spaceDelimited is only applicable to arrays"),"");case"pipeDelimited":return Kt(r)?n?ts(e,n,r):`${e}=${r.join("|")}`:(console.warn("The style pipeDelimited is only applicable to arrays"),"");case"deepObject":return!n||Kt(r)||"object"!=typeof r?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):es(r,e);default:return console.warn("Unexpected style for query: "+t),""}}(n,r,o,t);case"header":return function(e,t,n){if("simple"===e){const e=t?"*":"",r="__redoc_param_name__",o=La.parse(`{${r}${e}}`);return decodeURIComponent(o.expand({[r]:n}))}return console.warn("Unexpected style for header: "+e),""}(r,o,t);case"cookie":return function(e,t,n,r){return"form"===t?ts(e,n,r):(console.warn("Unexpected style for cookie: "+t),"")}(n,r,o,t);default:return console.warn("Unexpected parameter location: "+e.in),""}}(e,t)):t}const os=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function is(e){return os.test(e||"")}function as(e){var t;const[n]=(null==(t=null==e?void 0:e.match(os))?void 0:t.reverse())||[];return n}function ss(e,t,n){let r;return void 0!==t&&void 0!==n?r=t===n?`= ${t} ${e}`:`[ ${t} .. ${n} ] ${e}`:void 0!==n?r=`<= ${n} ${e}`:void 0!==t&&(r=1===t?"non-empty":`>= ${t} ${e}`),r}function ls(e){const t=[],n=ss("characters",e.minLength,e.maxLength);void 0!==n&&t.push(n);const r=ss("items",e.minItems,e.maxItems);void 0!==r&&t.push(r);const o=ss("properties",e.minProperties,e.maxProperties);void 0!==o&&t.push(o);const i=function(e){if(void 0===e)return;const t=e.toString(10);return/^0\.0*1$/.test(t)?`decimal places <= ${t.split(".")[1].length}`:`multiple of ${t}`}(e.multipleOf);void 0!==i&&t.push(i);const a=function(e){var t,n;const r="number"==typeof e.exclusiveMinimum?Math.min(e.exclusiveMinimum,null!=(t=e.minimum)?t:1/0):e.minimum,o="number"==typeof e.exclusiveMaximum?Math.max(e.exclusiveMaximum,null!=(n=e.maximum)?n:-1/0):e.maximum,i="number"==typeof e.exclusiveMinimum||e.exclusiveMinimum,a="number"==typeof e.exclusiveMaximum||e.exclusiveMaximum;return void 0!==r&&void 0!==o?`${i?"( ":"[ "}${r} .. ${o}${a?" )":" ]"}`:void 0!==o?`${a?"< ":"<= "}${o}`:void 0!==r?`${i?"> ":">= "}${r}`:void 0}(e);return void 0!==a&&t.push(a),e.uniqueItems&&t.push("unique"),t}function cs(e,t=[]){const n=[],r=[],o=[];return e.forEach((e=>{e.required?t.includes(e.name)?r.push(e):o.push(e):n.push(e)})),r.sort(((e,n)=>t.indexOf(e.name)-t.indexOf(n.name))),[...r,...o,...n]}function us(e,t){return[...e].sort(((e,n)=>e[t].localeCompare(n[t])))}function ps(e,t){const n=void 0===e?function(e){try{const t=Gt(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}((()=>{if(!Lt)return"";const e=window.location.href;return e.endsWith(".html")?(0,$a.dirname)(e):e})()):(0,$a.dirname)(e);return 0===t.length&&(t=[{url:"/"}]),t.map((e=>{return Va(Wa({},e),{url:(t=e.url,function(e,t){let n;if(t.startsWith("//"))try{n=`${new URL(e).protocol||"https:"}${t}`}catch(e){n=`https:${t}`}else if(function(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}(t))n=t;else if(t.startsWith("/"))try{const r=new URL(e);r.pathname=t,n=r.href}catch(e){n=t}else n=qt(e)+"/"+t;return qt(n)}(n,t)),description:e.description||""});var t}))}let ds="section/Authentication/";const fs=e=>({delete:"del",options:"opts"}[e]||e);function hs(e,t){return Object.keys(e).filter((e=>!0===t?e.startsWith("x-")&&!function(e){return e in{"x-circular-ref":!0,"x-parentRefs":!0,"x-refsStack":!0,"x-code-samples":!0,"x-codeSamples":!0,"x-displayName":!0,"x-examples":!0,"x-ignoredHeaderParameters":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-additionalPropertiesName":!0,"x-explicitMappingOnly":!0}}(e):e.startsWith("x-")&&t.indexOf(e)>-1)).reduce(((t,n)=>(t[n]=e[n],t)),{})}var ms=n(5660);n(7874),n(4279),n(5433),n(6213),n(2731),n(9016),n(7046),n(57),n(2503),n(6841),n(6854),n(4335),n(1426),n(8246),n(9945),n(366),n(2939),n(9385),n(2886),n(5266),n(874),n(3358),n(7899);const gs="clike";function ys(e,t=gs){t=t.toLowerCase();let n=ms.languages[t];return n||(n=ms.languages[function(e){return{json:"js","c++":"cpp","c#":"csharp","objective-c":"objectivec",shell:"bash",viml:"vim"}[e]||gs}(t)]),ms.highlight(e.toString(),n,t)}ms.languages.insertBefore("javascript","string",{"property string":{pattern:/([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,lookbehind:!0}},void 0),ms.languages.insertBefore("javascript","punctuation",{property:{pattern:/([{,]\s*)[a-z]\w*(?=\s*:)/i,lookbehind:!0}},void 0);var bs=Object.defineProperty,vs=Object.defineProperties,xs=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,ks=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,Ss=(e,t,n)=>t in e?bs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Es=(e,t)=>{for(var n in t||(t={}))ks.call(t,n)&&Ss(e,n,t[n]);if(ws)for(var n of ws(t))Os.call(t,n)&&Ss(e,n,t[n]);return e},_s=(e,t)=>vs(e,xs(t));const js={};function As(e,t,n){if("function"==typeof n.value)return function(e,t,n){if(!n.value||n.value.length>0)throw new Error("@memoize decorator can only be applied to methods of zero arguments");const r=`_memoized_${t}`,o=n.value;return e[r]=js,_s(Es({},n),{value(){return this[r]===js&&(this[r]=o.call(this)),this[r]}})}(e,t,n);if("function"==typeof n.get)return function(e,t,n){const r=`_memoized_${t}`,o=n.get;return e[r]=js,_s(Es({},n),{get(){return this[r]===js&&(this[r]=o.call(this)),this[r]}})}(e,t,n);throw new Error("@memoize decorator can be applied to methods or getters, got "+String(n.value)+" instead")}function Ps(e){let t=1;return"-"===e[0]&&(t=-1,e=e.substr(1)),(n,r)=>-1==t?r[e].localeCompare(n[e]):n[e].localeCompare(r[e])}var Cs=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor;const Is="hashchange";class Rs{constructor(){this.emit=()=>{this._emiter.emit(Is,this.currentId)},this._emiter=new Ca.EventEmitter,this.bind()}get currentId(){return Lt?decodeURIComponent(window.location.hash.substring(1)):""}linkForId(e){return e?"#"+e:""}subscribe(e){const t=this._emiter.addListener(Is,e);return()=>t.removeListener(Is,e)}bind(){Lt&&window.addEventListener("hashchange",this.emit,!1)}dispose(){Lt&&window.removeEventListener("hashchange",this.emit)}replace(e,t=!1){Lt&&null!=e&&e!==this.currentId&&(t?window.history.replaceState(null,"",window.location.href.split("#")[0]+this.linkForId(e)):(window.history.pushState(null,"",window.location.href.split("#")[0]+this.linkForId(e)),this.emit()))}}((e,t,n,r)=>{for(var o,i=Ts(t,n),a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);i&&Cs(t,n,i)})([Pa.bind,Pa.debounce],Rs.prototype,"replace");const Ns=new Rs;var $s=n(813);class Ls{constructor(){this.map=new Map,this.prevTerm=""}add(e){this.map.set(e,new $s(e))}delete(e){this.map.delete(e)}addOnly(e){this.map.forEach(((t,n)=>{-1===e.indexOf(n)&&(t.unmark(),this.map.delete(n))}));for(const t of e)this.map.has(t)||this.map.set(t,new $s(t))}clearAll(){this.unmark(),this.map.clear()}mark(e){(e||this.prevTerm)&&(this.map.forEach((t=>{t.unmark(),t.mark(e||this.prevTerm)})),this.prevTerm=e||this.prevTerm)}unmark(){this.map.forEach((e=>e.unmark())),this.prevTerm=""}}let Ds={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Ms=/[&<>"']/,Fs=/[&<>"']/g,zs=/[<>"']|&(?!#?\w+;)/,Us=/[<>"']|&(?!#?\w+;)/g,Bs={"&":"&","<":"<",">":">",'"':""","'":"'"},qs=e=>Bs[e];function Ws(e,t){if(t){if(Ms.test(e))return e.replace(Fs,qs)}else if(zs.test(e))return e.replace(Us,qs);return e}const Vs=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Hs(e){return e.replace(Vs,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Ys=/(^|[^\[])\^/g;function Qs(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(Ys,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const Gs=/[^\w:]/g,Xs=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ks(e,t,n){if(e){let e;try{e=decodeURIComponent(Hs(n)).replace(Gs,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Xs.test(n)&&(n=function(e,t){Zs[" "+e]||(Js.test(e)?Zs[" "+e]=e+"/":Zs[" "+e]=il(e,"/",!0));const n=-1===(e=Zs[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(el,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(tl,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Zs={},Js=/^[^:]+:\/*[^/]*$/,el=/^([^:]+:)[\s\S]*$/,tl=/^([^:]+:\/*[^/]*)[\s\S]*$/,nl={exec:function(){}};function rl(e){let t,n,r=1;for(;r{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})),r=n.split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ll(e,t,n,r){const o=t.href,i=t.title?Ws(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:o,title:i,text:a,tokens:r.inlineTokens(a,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:o,title:i,text:Ws(a)}}class cl{constructor(e){this.options=e||Ds}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:il(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=il(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,i,a,s,l,c,u,p,d,f,h=t[1].trim();const m=h.length>1,g={type:"list",raw:"",ordered:m,start:m?+h.slice(0,-1):"",loose:!1,items:[]};h=m?`\\d{1,9}\\${h.slice(-1)}`:`\\${h}`,this.options.pedantic&&(h=m?h:"[*+-]");const y=new RegExp(`^( {0,3}${h})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),f=!0),!f){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(c))&&!r.test(e);){if(c.search(/[^ ]/)>=i||!c.trim())d+="\n"+c.slice(i);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(o="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:d}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=d.trimRight(),g.raw=g.raw.trimRight();const b=g.items.length;for(a=0;a"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!g.loose&&e.length&&t&&(g.loose=!0,g.items[a].loose=!0)}return g}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):Ws(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:ol(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,o,i,a=e.align.length;for(n=0;n({text:e})));for(a=e.header.length,r=0;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Ws(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=il(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,o=0;for(;o-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),ll(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ll(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let o,i,a=n,s=0;const l="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(a-=i,a>0)continue;if(i=Math.min(i,i+a+s),Math.min(n,i)%2){const t=e.slice(1,n+r.index+i);return{type:"em",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+i-1);return{type:"strong",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Ws(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=Ws(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Ws(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=Ws(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=Ws(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Ws(n[0]):n[0]:Ws(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const ul={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:nl,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};ul.def=Qs(ul.def).replace("label",ul._label).replace("title",ul._title).getRegex(),ul.bullet=/(?:[*+-]|\d{1,9}[.)])/,ul.listItemStart=Qs(/^( *)(bull) */).replace("bull",ul.bullet).getRegex(),ul.list=Qs(ul.list).replace(/bull/g,ul.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ul.def.source+")").getRegex(),ul._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ul._comment=/|$)/,ul.html=Qs(ul.html,"i").replace("comment",ul._comment).replace("tag",ul._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ul.paragraph=Qs(ul._paragraph).replace("hr",ul.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ul._tag).getRegex(),ul.blockquote=Qs(ul.blockquote).replace("paragraph",ul.paragraph).getRegex(),ul.normal=rl({},ul),ul.gfm=rl({},ul.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ul.gfm.table=Qs(ul.gfm.table).replace("hr",ul.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ul._tag).getRegex(),ul.gfm.paragraph=Qs(ul._paragraph).replace("hr",ul.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ul.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ul._tag).getRegex(),ul.pedantic=rl({},ul.normal,{html:Qs("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ul._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nl,paragraph:Qs(ul.normal._paragraph).replace("hr",ul.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ul.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const pl={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:nl,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:nl,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}pl._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",pl.punctuation=Qs(pl.punctuation).replace(/punctuation/g,pl._punctuation).getRegex(),pl.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,pl.escapedEmSt=/\\\*|\\_/g,pl._comment=Qs(ul._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),pl.emStrong.lDelim=Qs(pl.emStrong.lDelim).replace(/punct/g,pl._punctuation).getRegex(),pl.emStrong.rDelimAst=Qs(pl.emStrong.rDelimAst,"g").replace(/punct/g,pl._punctuation).getRegex(),pl.emStrong.rDelimUnd=Qs(pl.emStrong.rDelimUnd,"g").replace(/punct/g,pl._punctuation).getRegex(),pl._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,pl._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,pl._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,pl.autolink=Qs(pl.autolink).replace("scheme",pl._scheme).replace("email",pl._email).getRegex(),pl._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,pl.tag=Qs(pl.tag).replace("comment",pl._comment).replace("attribute",pl._attribute).getRegex(),pl._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pl._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,pl._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,pl.link=Qs(pl.link).replace("label",pl._label).replace("href",pl._href).replace("title",pl._title).getRegex(),pl.reflink=Qs(pl.reflink).replace("label",pl._label).replace("ref",ul._label).getRegex(),pl.nolink=Qs(pl.nolink).replace("ref",ul._label).getRegex(),pl.reflinkSearch=Qs(pl.reflinkSearch,"g").replace("reflink",pl.reflink).replace("nolink",pl.nolink).getRegex(),pl.normal=rl({},pl),pl.pedantic=rl({},pl.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Qs(/^!?\[(label)\]\((.*?)\)/).replace("label",pl._label).getRegex(),reflink:Qs(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pl._label).getRegex()}),pl.gfm=rl({},pl.normal,{escape:Qs(pl.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=o.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,o,i,a,s,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,i.index)+"["+sl("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,i.index)+"["+sl("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,i.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(s=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,l,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,fl))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,fl))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(o,dl))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class ml{constructor(e){this.options=e||Ds}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'
'+(n?e:Ws(e,!0))+"
\n":"
"+(n?e:Ws(e,!0))+"
\n"}blockquote(e){return`
\n${e}
\n`}html(e){return e}heading(e,t,n,r){return this.options.headerIds?`${e}\n`:`${e}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • \n`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){if(null===(e=Ks(this.options.sanitize,this.options.baseUrl,e)))return n;let r='",r}image(e,t,n){if(null===(e=Ks(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`${n}":">",r}text(e){return e}}class gl{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class yl{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class bl{constructor(e){this.options=e||Ds,this.options.renderer=this.options.renderer||new ml,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new gl,this.slugger=new yl}static parse(e,t){return new bl(t).parse(e)}static parseInline(e,t){return new bl(t).parseInline(e)}parse(e,t=!0){let n,r,o,i,a,s,l,c,u,p,d,f,h,m,g,y,b,v,x,w="";const k=e.length;for(n=0;n0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=v+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=v+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:v}):m+=v),m+=this.parse(g.tokens,h),u+=this.renderer.listitem(m,b,y);w+=this.renderer.list(u,d,f);continue;case"html":w+=this.renderer.html(p.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1{r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),a--,0===a&&i()}))}),0))})),void(0===a&&i())}try{const n=hl.lex(e,t);return t.walkTokens&&vl.walkTokens(n,t.walkTokens),bl.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+Ws(e.message+"",!0)+"
    ";throw e}}vl.options=vl.setOptions=function(e){var t;return rl(vl.defaults,e),t=vl.defaults,Ds=t,vl},vl.getDefaults=function(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},vl.defaults=Ds,vl.use=function(...e){const t=rl({},...e),n=vl.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=vl.defaults.renderer||new ml;for(const t in e.renderer){const r=n[t];n[t]=(...o)=>{let i=e.renderer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.renderer=n}if(e.tokenizer){const n=vl.defaults.tokenizer||new cl;for(const t in e.tokenizer){const r=n[t];n[t]=(...o)=>{let i=e.tokenizer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.tokenizer=n}if(e.walkTokens){const n=vl.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),vl.setOptions(t)}))},vl.walkTokens=function(e,t){for(const n of e)switch(t.call(vl,n),n.type){case"table":for(const e of n.header)vl.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)vl.walkTokens(n.tokens,t);break;case"list":vl.walkTokens(n.items,t);break;default:vl.defaults.extensions&&vl.defaults.extensions.childTokens&&vl.defaults.extensions.childTokens[n.type]?vl.defaults.extensions.childTokens[n.type].forEach((function(e){vl.walkTokens(n[e],t)})):n.tokens&&vl.walkTokens(n.tokens,t)}},vl.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");al(t=rl({},vl.defaults,t||{}));try{const n=hl.lexInline(e,t);return t.walkTokens&&vl.walkTokens(n,t.walkTokens),bl.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+Ws(e.message+"",!0)+"
    ";throw e}},vl.Parser=bl,vl.parser=bl.parse,vl.Renderer=ml,vl.TextRenderer=gl,vl.Lexer=hl,vl.lexer=hl.lex,vl.Tokenizer=cl,vl.Slugger=yl,vl.parse=vl,vl.options,vl.setOptions,vl.use,vl.walkTokens,vl.parseInline,bl.parse,hl.lex;var xl=Object.defineProperty,wl=Object.defineProperties,kl=Object.getOwnPropertyDescriptors,Ol=Object.getOwnPropertySymbols,Sl=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable,_l=(e,t,n)=>t in e?xl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jl=(e,t)=>{for(var n in t||(t={}))Sl.call(t,n)&&_l(e,n,t[n]);if(Ol)for(var n of Ol(t))El.call(t,n)&&_l(e,n,t[n]);return e},Al=(e,t)=>wl(e,kl(t));const Pl=new vl.Renderer;vl.setOptions({renderer:Pl,highlight:(e,t)=>ys(e,t)});const Cl="(?:^ {0,3}\x3c!-- ReDoc-Inject:\\s+?<({component}).*?/?>\\s+?--\x3e\\s*$|(?:^ {0,3}<({component})([\\s\\S]*?)>([\\s\\S]*?)|^ {0,3}<({component})([\\s\\S]*?)(?:/>|\\n{2,})))";class Tl{constructor(e,t){this.options=e,this.parentId=t,this.headings=[],this.headingRule=(e,t,n,r)=>(1===t?this.currentTopHeading=this.saveHeading(e,t):2===t&&this.saveHeading(e,t,this.currentTopHeading&&this.currentTopHeading.items,this.currentTopHeading&&this.currentTopHeading.id),this.originalHeadingRule(e,t,n,r)),this.parentId=t,this.parser=new vl.Parser,this.headingEnhanceRenderer=new vl.Renderer,this.originalHeadingRule=this.headingEnhanceRenderer.heading.bind(this.headingEnhanceRenderer),this.headingEnhanceRenderer.heading=this.headingRule}static containsComponent(e,t){return new RegExp(Cl.replace(/{component}/g,t),"gmi").test(e)}static getTextBeforeHading(e,t){const n=e.search(new RegExp(`^##?\\s+${t}`,"m"));return n>-1?e.substring(0,n):e}saveHeading(e,t,n=this.headings,r){e=function(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&/g,"&").replace(/"/g,'"')}(e);const o={id:r?`${r}/${Qt(e)}`:`${this.parentId||"section"}/${Qt(e)}`,name:e,level:t,items:[]};return n.push(o),o}flattenHeadings(e){if(void 0===e)return[];const t=[];for(const n of e)t.push(n),t.push(...this.flattenHeadings(n.items));return t}attachHeadingsDescriptions(e){const t=e=>new RegExp(`##?\\s+${e.name.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}s*(\n|\r\n|$|s*)`),n=this.flattenHeadings(this.headings);if(n.length<1)return;let r=n[0],o=t(r),i=e.search(o);for(let a=1;a-1&&(this.description=this.description.substring(0,n)),this.downloadLink=this.getDownloadLink(),this.downloadFileName=this.getDownloadFileName()}getDownloadLink(){if(this.options.downloadDefinitionUrl)return this.options.downloadDefinitionUrl;if(this.parser.specUrl)return this.parser.specUrl;if(Lt&&window.Blob&&window.URL&&window.URL.createObjectURL){const e=new Blob([JSON.stringify(this.parser.spec,null,2)],{type:"application/json"});return window.URL.createObjectURL(e)}}getDownloadFileName(){return this.parser.specUrl||this.options.downloadDefinitionUrl?this.options.downloadFileName:this.options.downloadFileName||"openapi.json"}}var Nl=Object.defineProperty,$l=Object.defineProperties,Ll=Object.getOwnPropertyDescriptors,Dl=Object.getOwnPropertySymbols,Ml=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable,zl=(e,t,n)=>t in e?Nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class Ul{constructor(e,t){const n=t.spec.components&&t.spec.components.securitySchemes||{};this.schemes=Object.keys(e||{}).map((r=>{const{resolved:o}=t.deref(n[r]),i=e[r]||[];if(!o)return void console.warn(`Non existing security scheme referenced: ${r}. Skipping`);const a=o["x-displayName"]||r;return((e,t)=>$l(e,Ll(t)))(((e,t)=>{for(var n in t||(t={}))Ml.call(t,n)&&zl(e,n,t[n]);if(Dl)for(var n of Dl(t))Fl.call(t,n)&&zl(e,n,t[n]);return e})({},o),{id:r,sectionId:r,displayName:a,scopes:i})})).filter((e=>void 0!==e))}}var Bl=Object.defineProperty,ql=Object.defineProperties,Wl=Object.getOwnPropertyDescriptor,Vl=Object.getOwnPropertyDescriptors,Hl=Object.getOwnPropertySymbols,Yl=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable,Gl=(e,t,n)=>t in e?Bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xl=(e,t)=>{for(var n in t||(t={}))Yl.call(t,n)&&Gl(e,n,t[n]);if(Hl)for(var n of Hl(t))Ql.call(t,n)&&Gl(e,n,t[n]);return e},Kl=(e,t)=>ql(e,Vl(t)),Zl=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?Wl(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Bl(t,n,i),i};class Jl{constructor(e,t,n,r,o){this.expanded=!1,this.operations=[],Pi(this),this.name=t;const{resolved:i}=e.deref(n);for(const n of Object.keys(i)){const a=i[n],s=Object.keys(a).filter(Ga);for(const i of s){const s=a[i],l=new ku(e,Kl(Xl({},s),{pathName:n,pointer:Na.compile([r,t,n,i]),httpVerb:i,pathParameters:a.parameters||[],pathServers:a.servers}),void 0,o,!0);this.operations.push(l)}}}toggle(){this.expanded=!this.expanded}}Zl([to],Jl.prototype,"expanded",2),Zl([ti],Jl.prototype,"toggle",1);var ec=Object.defineProperty,tc=Object.defineProperties,nc=Object.getOwnPropertyDescriptors,rc=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,ic=Object.prototype.propertyIsEnumerable,ac=(e,t,n)=>t in e?ec(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sc=(e,t)=>{for(var n in t||(t={}))oc.call(t,n)&&ac(e,n,t[n]);if(rc)for(var n of rc(t))ic.call(t,n)&&ac(e,n,t[n]);return e},lc=(e,t)=>tc(e,nc(t)),cc=(e,t)=>{var n={};for(var r in e)oc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&rc)for(var r of rc(e))t.indexOf(r)<0&&ic.call(e,r)&&(n[r]=e[r]);return n};function uc(e,t){return t&&e[e.length-1]!==t?[...e,t]:e}function pc(e,t){return t?e.concat(t):e}class dc{constructor(e,t,n=new fn({})){this.options=n,this.allowMergeRefs=!1,this.byRef=e=>{let t;if(this.spec){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{t=Na.get(this.spec,e)}catch(e){}return t||{}}},this.validate(e),this.spec=e,this.allowMergeRefs=e.openapi.startsWith("3.1");const r=Lt?window.location.href:"";"string"==typeof t&&(this.specUrl=r?new URL(t,r).href:t)}validate(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}isRef(e){return!!e&&void 0!==e.$ref&&null!==e.$ref}deref(e,t=[],n=!1){const r=null==e?void 0:e["x-refsStack"];if(t=pc(t,r),this.isRef(e)){const r=as(e.$ref);if(r&&this.options.ignoreNamedSchemas.has(r))return{resolved:{type:"object",title:r},refsStack:t};let o=this.byRef(e.$ref);if(!o)throw new Error(`Failed to resolve $ref "${e.$ref}"`);let i=t;if(t.includes(e.$ref)||t.length>999)o=Object.assign({},o,{"x-circular-ref":!0});else if(this.isRef(o)){const e=this.deref(o,t,n);i=e.refsStack,o=e.resolved}return i=uc(t,e.$ref),o=this.allowMergeRefs?this.mergeRefs(e,o,n):o,{resolved:o,refsStack:i}}return{resolved:e,refsStack:pc(t,r)}}mergeRefs(e,t,n){const r=e,{$ref:o}=r,i=cc(r,["$ref"]),a=Object.keys(i);if(0===a.length)return t;if(n&&a.some((e=>!["description","title","externalDocs","x-refsStack","x-parentRefs","readOnly","writeOnly"].includes(e)))){const e=i,{description:n,title:r,readOnly:o,writeOnly:a}=e;return{allOf:[{description:n,title:r,readOnly:o,writeOnly:a},t,cc(e,["description","title","readOnly","writeOnly"])]}}return sc(sc({},t),i)}mergeAllOf(e,t,n){var r;if(e["x-circular-ref"])return e;if(void 0===(e=this.hoistOneOfs(e,n)).allOf)return e;let o=lc(sc({},e),{"x-parentRefs":[],allOf:void 0,title:e.title||as(t)});void 0!==o.properties&&"object"==typeof o.properties&&(o.properties=sc({},o.properties)),void 0!==o.items&&"object"==typeof o.items&&(o.items=sc({},o.items));const i=function(e,t){const n=new Set;return e.filter((e=>{const t=e.$ref;return!t||t&&!n.has(t)&&n.add(t)}))}(e.allOf.map((e=>{var t;const{resolved:r,refsStack:i}=this.deref(e,n,!0),a=e.$ref||void 0,s=this.mergeAllOf(r,a,i);if(!s["x-circular-ref"]||!s.allOf)return a&&(null==(t=o["x-parentRefs"])||t.push(...s["x-parentRefs"]||[],a)),{$ref:a,refsStack:uc(i,a),schema:s}})).filter((e=>void 0!==e)));for(const{schema:e,refsStack:n}of i){const i=e,{type:a,enum:s,properties:l,items:c,required:u,title:p,description:d,readOnly:f,writeOnly:h,oneOf:m,anyOf:g,"x-circular-ref":y}=i,b=cc(i,["type","enum","properties","items","required","title","description","readOnly","writeOnly","oneOf","anyOf","x-circular-ref"]);if(o.type!==a&&void 0!==o.type&&void 0!==a&&console.warn(`Incompatible types in allOf at "${t}": "${o.type}" and "${a}"`),void 0!==a&&(Array.isArray(a)&&Array.isArray(o.type)?o.type=[...a,...o.type]:o.type=a),void 0!==s&&(Array.isArray(s)&&Array.isArray(o.enum)?o.enum=Array.from(new Set([...s,...o.enum])):o.enum=s),void 0!==l&&"object"==typeof l){o.properties=o.properties||{};for(const e in l){const i=pc(n,null==(r=l[e])?void 0:r["x-refsStack"]);if(o.properties[e]){if(!y){const n=this.mergeAllOf({allOf:[o.properties[e],lc(sc({},l[e]),{"x-refsStack":i})],"x-refsStack":i},t+"/properties/"+e,i);o.properties[e]=n}}else o.properties[e]=lc(sc({},l[e]),{"x-refsStack":i})}}if(void 0!==c&&!y){const r="boolean"==typeof o.items?{}:Object.assign({},o.items),i="boolean"==typeof e.items?{}:Object.assign({},e.items);o.items=this.mergeAllOf({allOf:[r,i]},t+"/items",n)}void 0!==m&&(o.oneOf=m),void 0!==g&&(o.anyOf=g),void 0!==u&&(o.required=[...o.required||[],...u]),o=sc(lc(sc({},o),{title:o.title||p,description:o.description||d,readOnly:void 0!==o.readOnly?o.readOnly:f,writeOnly:void 0!==o.writeOnly?o.writeOnly:h,"x-circular-ref":o["x-circular-ref"]||y}),b)}return o}findDerived(e){const t={},n=this.spec.components&&this.spec.components.schemas||{};for(const r in n){const{resolved:o}=this.deref(n[r]);void 0!==o.allOf&&o.allOf.find((t=>void 0!==t.$ref&&e.indexOf(t.$ref)>-1))&&(t["#/components/schemas/"+r]=[o["x-discriminator-value"]||r])}return t}hoistOneOfs(e,t){if(void 0===e.allOf)return e;const n=e.allOf;for(let e=0;e({allOf:[...o,e,...i],"x-refsStack":t})))}}}return e}}var fc=Object.defineProperty,hc=Object.defineProperties,mc=Object.getOwnPropertyDescriptor,gc=Object.getOwnPropertyDescriptors,yc=Object.getOwnPropertySymbols,bc=Object.prototype.hasOwnProperty,vc=Object.prototype.propertyIsEnumerable,xc=(e,t,n)=>t in e?fc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wc=(e,t)=>{for(var n in t||(t={}))bc.call(t,n)&&xc(e,n,t[n]);if(yc)for(var n of yc(t))vc.call(t,n)&&xc(e,n,t[n]);return e},kc=(e,t)=>hc(e,gc(t)),Oc=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?mc(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&fc(t,n,i),i};const Sc=class{constructor(e,t,n,r,o=!1,i=[]){this.options=r,this.refsStack=i,this.typePrefix="",this.isCircular=!1,this.activeOneOf=0,Pi(this),this.pointer=t.$ref||n||"";const{resolved:a,refsStack:s}=e.deref(t,i,!0);this.refsStack=uc(s,this.pointer),this.rawSchema=a,this.schema=e.mergeAllOf(this.rawSchema,this.pointer,this.refsStack),this.init(e,o),r.showExtensions&&(this.extensions=hs(this.schema,r.showExtensions))}activateOneOf(e){this.activeOneOf=e}hasType(e){return this.type===e||Kt(this.type)&&this.type.includes(e)}init(e,t){var n,r,o,i,a,s,l,c;const u=this.schema;if(this.isCircular=!!u["x-circular-ref"],this.title=u.title||is(this.pointer)&&Na.baseName(this.pointer)||"",this.description=u.description||"",this.type=u.type||function(e){if(void 0!==e.type&&!Kt(e.type))return e.type;const t=Object.keys(Xa);for(const n of t){const t=Xa[n];if(void 0!==e[n])return t}return"any"}(u),this.format=u.format,this.enum=u.enum||[],this.example=u.example,this.examples=u.examples,this.deprecated=!!u.deprecated,this.pattern=u.pattern,this.externalDocs=u.externalDocs,this.constraints=ls(u),this.displayFormat=this.format,this.isPrimitive=Ka(u,this.type),this.default=u.default,this.readOnly=!!u.readOnly,this.writeOnly=!!u.writeOnly,this.const=u.const||"",this.contentEncoding=u.contentEncoding,this.contentMediaType=u.contentMediaType,this.minItems=u.minItems,this.maxItems=u.maxItems,(u.nullable||u["x-nullable"])&&(Kt(this.type)&&!this.type.some((e=>null===e||"null"===e))?this.type=[...this.type,"null"]:Kt(this.type)||null===this.type&&"null"===this.type||(this.type=[this.type,"null"])),this.displayType=Kt(this.type)?this.type.map((e=>null===e?"null":e)).join(" or "):this.type,!this.isCircular)if(u.if&&u.then||u.if&&u.else)this.initConditionalOperators(u,e);else if(t||void 0===jc(u)){if(t&&Kt(u.oneOf)&&u.oneOf.find((e=>e.$ref===this.pointer))&&delete u.oneOf,void 0!==u.oneOf)return this.initOneOf(u.oneOf,e),this.oneOfType="One of",void(void 0!==u.anyOf&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf at ${this.pointer}`));if(void 0!==u.anyOf)return this.initOneOf(u.anyOf,e),void(this.oneOfType="Any of");if(this.hasType("object"))this.fields=_c(e,u,this.pointer,this.options,this.refsStack);else if(this.hasType("array")&&(Kt(u.items)||Kt(u.prefixItems)?this.fields=_c(e,u,this.pointer,this.options,this.refsStack):u.items&&(this.items=new Sc(e,u.items,this.pointer+"/items",this.options,!1,this.refsStack)),this.displayType=u.prefixItems||Kt(u.items)?"items":((null==(n=this.items)?void 0:n.displayType)||this.displayType).split(" or ").map((e=>e.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2"))).join(" or "),this.displayFormat=(null==(r=this.items)?void 0:r.format)||"",this.typePrefix=(null==(o=this.items)?void 0:o.typePrefix)||""+en("arrayOf"),this.title=this.title||(null==(i=this.items)?void 0:i.title)||"",this.isPrimitive=void 0!==(null==(a=this.items)?void 0:a.isPrimitive)?null==(s=this.items)?void 0:s.isPrimitive:this.isPrimitive,void 0===this.example&&void 0!==(null==(l=this.items)?void 0:l.example)&&(this.example=[this.items.example]),(null==(c=this.items)?void 0:c.isPrimitive)&&(this.enum=this.items.enum),Kt(this.type))){const e=this.type.filter((e=>"array"!==e));e.length&&(this.displayType+=` or ${e.join(" or ")}`)}this.enum.length&&this.options.sortEnumValuesAlphabetically&&this.enum.sort()}else this.initDiscriminator(u,e)}initOneOf(e,t){if(this.oneOf=e.map(((e,n)=>{const{resolved:r,refsStack:o}=t.deref(e,this.refsStack,!0),i=t.mergeAllOf(r,this.pointer+"/oneOf/"+n,o),a=is(e.$ref)&&!i.title?Na.baseName(e.$ref):`${i.title||""}${void 0!==i.const&&JSON.stringify(i.const)||""}`;return new Sc(t,kc(wc({},i),{title:a,allOf:[kc(wc({},this.schema),{oneOf:void 0,anyOf:void 0})],discriminator:r.allOf?void 0:i.discriminator}),e.$ref||this.pointer+"/oneOf/"+n,this.options,!1,o)})),this.options.simpleOneOfTypeLabel){const e=function(e){const t=new Set;return function e(n){for(const r of n.oneOf||[])r.oneOf?e(r):r.type&&t.add(r.type)}(e),Array.from(t.values())}(this);this.displayType=e.join(" or ")}else this.displayType=this.oneOf.map((e=>{let t=e.typePrefix+(e.title?`${e.title} (${e.displayType})`:e.displayType);return t.indexOf(" or ")>-1&&(t=`(${t})`),t})).join(" or ")}initDiscriminator(e,t){const n=jc(e);this.discriminatorProp=n.propertyName;const r=t.findDerived([...this.schema["x-parentRefs"]||[],this.pointer]);if(e.oneOf)for(const t of e.oneOf){if(void 0===t.$ref)continue;const e=Na.baseName(t.$ref);r[t.$ref]=e}const o=n.mapping||{};let i=n["x-explicitMappingOnly"]||!1;0===Object.keys(o).length&&(i=!1);const a={};for(const e in o){const t=o[e];Kt(a[t])?a[t].push(e):a[t]=[e]}const s=wc(i?{}:wc({},r),a);let l=[];for(const e of Object.keys(s)){const t=s[e];if(Kt(t))for(const n of t)l.push({$ref:e,name:n});else l.push({$ref:e,name:t})}const c=Object.keys(o);0!==c.length&&(l=l.sort(((e,t)=>{const n=c.indexOf(e.name),r=c.indexOf(t.name);return n<0&&r<0?e.name.localeCompare(t.name):n<0?1:r<0?-1:n-r}))),this.oneOf=l.map((({$ref:e,name:n})=>{const r=new Sc(t,{$ref:e},e,this.options,!0,this.refsStack.slice(0,-1));return r.title=n,r}))}initConditionalOperators(e,t){const n=e,{if:r,else:o={},then:i={}}=n,a=((e,t)=>{var n={};for(var r in e)bc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&yc)for(var r of yc(e))t.indexOf(r)<0&&vc.call(e,r)&&(n[r]=e[r]);return n})(n,["if","else","then"]),s=[{allOf:[a,i,r],title:r&&r["x-displayName"]||(null==r?void 0:r.title)||"case 1"},{allOf:[a,o],title:o&&o["x-displayName"]||(null==o?void 0:o.title)||"case 2"}];this.oneOf=s.map(((e,n)=>new Sc(t,wc({},e),this.pointer+"/oneOf/"+n,this.options,!1,this.refsStack))),this.oneOfType="One of"}};let Ec=Sc;function _c(e,t,n,r,o){const i=t.properties||t.prefixItems||t.items||{},a=t.patternProperties||{},s=t.additionalProperties||t.unevaluatedProperties,l=t.prefixItems?t.items:t.additionalItems,c=t.default;let u=Object.keys(i||[]).map((a=>{let s=i[a];s||(console.warn(`Field "${a}" is invalid, skipping.\n Field must be an object but got ${typeof s} at "${n}"`),s={});const l=void 0!==t.required&&t.required.indexOf(a)>-1;return new Nc(e,{name:t.properties?a:`[${a}]`,required:l,schema:kc(wc({},s),{default:void 0===s.default&&c?c[a]:s.default})},n+"/properties/"+a,r,o)}));return r.sortPropsAlphabetically&&(u=us(u,"name")),r.requiredPropsFirst&&(u=cs(u,r.sortPropsAlphabetically?void 0:t.required)),u.push(...Object.keys(a).map((t=>{let i=a[t];return i||(console.warn(`Field "${t}" is invalid, skipping.\n Field must be an object but got ${typeof i} at "${n}"`),i={}),new Nc(e,{name:t,required:!1,schema:i,kind:"patternProperties"},`${n}/patternProperties/${t}`,r,o)}))),"object"!=typeof s&&!0!==s||u.push(new Nc(e,{name:("object"==typeof s&&s["x-additionalPropertiesName"]||"property name").concat("*"),required:!1,schema:!0===s?{}:s,kind:"additionalProperties"},n+"/additionalProperties",r,o)),u.push(...function({parser:e,schema:t=!1,fieldsCount:n,$ref:r,options:o,refsStack:i}){return Zt(t)?t?[new Nc(e,{name:`[${n}...]`,schema:{}},`${r}/additionalItems`,o,i)]:[]:Kt(t)?[...t.map(((t,a)=>new Nc(e,{name:`[${n+a}]`,schema:t},`${r}/additionalItems`,o,i)))]:Ht(t)?[new Nc(e,{name:`[${n}...]`,schema:t},`${r}/additionalItems`,o,i)]:[]}({parser:e,schema:l,fieldsCount:u.length,$ref:n,options:r,refsStack:o})),u}function jc(e){return e.discriminator||e["x-discriminator"]}Oc([to],Ec.prototype,"activeOneOf",2),Oc([ti],Ec.prototype,"activateOneOf",1);const Ac={};class Pc{constructor(e,t,n,r){this.mime=n;const{resolved:o}=e.deref(t);this.value=o.value,this.summary=o.summary,this.description=o.description,o.externalValue&&(this.externalValueUrl=new URL(o.externalValue,e.specUrl).href),"application/x-www-form-urlencoded"===n&&this.value&&"object"==typeof this.value&&(this.value=function(e,t={}){if(Kt(e))throw new Error("Payload must have fields: "+e.toString());return Object.keys(e).map((n=>{const r=e[n],{style:o="form",explode:i=!0}=t[n]||{};switch(o){case"form":return ts(n,i,r);case"spaceDelimited":return Ja(r,n,"%20");case"pipeDelimited":return Ja(r,n,"|");case"deepObject":return es(r,n);default:return console.warn("Incorrect or unsupported encoding style: "+o),""}})).join("&")}(this.value,r))}getExternalValue(e){return this.externalValueUrl?(this.externalValueUrl in Ac||(Ac[this.externalValueUrl]=fetch(this.externalValueUrl).then((t=>t.text().then((n=>{if(!t.ok)return Promise.reject(new Error(n));if(!Za(e))return n;try{return JSON.parse(n)}catch(e){return n}}))))),Ac[this.externalValueUrl]):Promise.resolve(void 0)}}var Cc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,Ic=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?Tc(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Cc(t,n,i),i};const Rc={path:{style:"simple",explode:!1},query:{style:"form",explode:!0},header:{style:"simple",explode:!1},cookie:{style:"form",explode:!0}};class Nc{constructor(e,t,n,r,o){var i,a,s,l,c;this.expanded=void 0,Pi(this);const{resolved:u}=e.deref(t);this.kind=t.kind||"field",this.name=t.name||u.name,this.in=u.in,this.required=!!u.required;let p=u.schema,d="";if(!p&&u.in&&u.content&&(d=Object.keys(u.content)[0],p=u.content[d]&&u.content[d].schema),this.schema=new Ec(e,p||{},n,r,!1,o),this.description=void 0===u.description?this.schema.description||"":u.description,this.example=u.example||this.schema.example,void 0!==u.examples||void 0!==this.schema.examples){const t=u.examples||this.schema.examples;this.examples=Kt(t)?t:Bt(t,((t,n)=>new Pc(e,t,n,u.encoding)))}d?this.serializationMime=d:u.style?this.style=u.style:this.in&&(this.style=null!=(a=null==(i=Rc[this.in])?void 0:i.style)?a:"form"),void 0===u.explode&&this.in?this.explode=null==(l=null==(s=Rc[this.in])?void 0:s.explode)||l:this.explode=!!u.explode,this.deprecated=void 0===u.deprecated?!!this.schema.deprecated:u.deprecated,r.showExtensions&&(this.extensions=hs(u,r.showExtensions)),this.const=(null==(c=this.schema)?void 0:c.const)||(null==u?void 0:u.const)||""}toggle(){this.expanded=!this.expanded}collapse(){this.expanded=!1}expand(){this.expanded=!0}}function $c(e){return e<10?"0"+e:e}function Lc(e,t){return t>e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function Dc(...e){const t=e=>e&&"object"==typeof e;return e.reduce(((e,n)=>(Object.keys(n||{}).forEach((r=>{const o=e[r],i=n[r];t(o)&&t(i)?e[r]=Dc(o,i):e[r]=i})),e)),Array.isArray(e[e.length-1])?[]:{})}function Mc(e){return{value:"object"===e?{}:"array"===e?[]:void 0}}function Fc(e,t){t&&e.pop()}Ic([to],Nc.prototype,"expanded",2),Ic([ti],Nc.prototype,"toggle",1),Ic([ti],Nc.prototype,"collapse",1),Ic([ti],Nc.prototype,"expand",1);const zc={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function Uc(e){if(void 0!==e.type)return Array.isArray(e.type)?0===e.type.length?null:e.type[0]:e.type;const t=Object.keys(zc);for(var n=0;nt.maxSampleDepth)return Fc(qc,r),Mc(Uc(e));if(e.$ref){if(!n)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let o=decodeURIComponent(e.$ref);o.startsWith("#")&&(o=o.substring(1));const i=Ia().get(n,o);let a;return!0!==Bc[o]?(Bc[o]=!0,a=Hc(i,t,n,r),Bc[o]=!1):a=Mc(Uc(i)),Fc(qc,r),a}if(void 0!==e.example)return Fc(qc,r),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(void 0!==e.allOf)return Fc(qc,r),Vc(e)||function(e,t,n,r,o){let i=Hc(e,n,r);const a=[];for(let e of t){const{type:t,readOnly:s,writeOnly:l,value:c}=Hc({type:i.type,...e},n,r,o);i.type&&t&&t!==i.type&&(console.warn("allOf: schemas with different types can't be merged"),i.type=t),i.type=i.type||t,i.readOnly=i.readOnly||s,i.writeOnly=i.writeOnly||l,null!=c&&a.push(c)}if("object"===i.type)return i.value=Dc(i.value||{},...a.filter((e=>"object"==typeof e))),i;{"array"===i.type&&(n.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const e=a[a.length-1];return i.value=null!=e?e:i.value,i}}({...e,allOf:void 0},e.allOf,t,n,r);if(e.oneOf&&e.oneOf.length)return e.anyOf&&(t.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),Fc(qc,r),a(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]));if(e.anyOf&&e.anyOf.length)return Fc(qc,r),a(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.anyOf[0]));if(e.if&&e.then){Fc(qc,r);const{if:o,then:i,...a}=e;return Hc(Dc(a,o,i),t,n,r)}let o=Wc(e),i=null;if(void 0===o){o=null,i=e.type,Array.isArray(i)&&e.type.length>0&&(i=e.type[0]),i||(i=Uc(e));let a=Kc[i];a&&(o=a(e,t,n,r))}return Fc(qc,r),{value:o,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i};function a(e,o){const i=Vc(e);if(void 0!==i)return i;const a=Hc({...e,oneOf:void 0,anyOf:void 0},t,n,r),s=Hc(o,t,n,r);if("object"==typeof a.value&&"object"==typeof s.value){const e=Dc(a.value,s.value);return{...s,value:e}}return s}}function Yc(e){let t=0;if("boolean"==typeof e.exclusiveMinimum||"boolean"==typeof e.exclusiveMaximum){if(e.maximum&&e.minimum)return t=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&t>=e.maximum||!e.exclusiveMaximum&&t>e.maximum)&&(t=(e.maximum+e.minimum)/2),t;if(e.minimum)return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(e.maximum)return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(e.minimum)return e.minimum;e.exclusiveMinimum?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):e.exclusiveMaximum?t=Math.floor(e.exclusiveMaximum)-1:e.maximum&&(t=e.maximum)}return t}function Qc({min:e,max:t,omitTime:n,omitDate:r}){let o=function(e,t,n,r){var o=n?"":e.getUTCFullYear()+"-"+$c(e.getUTCMonth()+1)+"-"+$c(e.getUTCDate());return t||(o+="T"+$c(e.getUTCHours())+":"+$c(e.getUTCMinutes())+":"+$c(e.getUTCSeconds())+"Z"),o}(new Date("2019-08-24T14:15:22.123Z"),n,r);return o.lengtht&&console.warn(`Using maxLength = ${t} is incorrect with format "date-time"`),o}function Gc(e,t){let n=Lc("string",e);return t&&n.length>t&&(n=n.substring(0,t)),n}const Xc={email:function(){return"user@example.com"},"idn-email":function(){return"пошта@укр.нет"},password:function(e,t){let n="pa$$word";return e>n.length&&(n+="_",n+=Lc("qwerty!@#$%^123456",e-n.length).substring(0,e-n.length)),n},"date-time":function(e,t){return Qc({min:e,max:t,omitTime:!1,omitDate:!1})},date:function(e,t){return Qc({min:e,max:t,omitTime:!0,omitDate:!1})},time:function(e,t){return Qc({min:e,max:t,omitTime:!1,omitDate:!0}).slice(1)},ipv4:function(){return"192.168.0.1"},ipv6:function(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"},hostname:function(){return"example.com"},"idn-hostname":function(){return"приклад.укр"},iri:function(){return"http://example.com/entity/1"},"iri-reference":function(){return"/entity/1"},uri:function(){return"http://example.com"},"uri-reference":function(){return"../dictionary"},"uri-template":function(){return"http://example.com/{endpoint}"},uuid:function(e,t,n){return function(e){var t=function(e){var t=0;if(0==e.length)return t;for(var n=0;n>>5)|0;return e=t^((n|=0)<<17|n>>>15),t=n+(r|=0)|0,n=r+o|0,((r=e+o|0)>>>0)/4294967296}}(t,t,t,t);return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{var t=16*n()%16|0;return("x"==e?t:3&t|8).toString(16)}))}(n||"id")},default:Gc,"json-pointer":function(){return"/json/pointer"},"relative-json-pointer":function(){return"1/relative/json/pointer"},regex:function(){return"/regex/"}};var Kc={};const Zc={skipReadOnly:!1,maxSampleDepth:15};function Jc(e,t,n){let r=Object.assign({},Zc,t);return Bc={},qc=[],Hc(e,r,n).value}function eu(e,t){Kc[e]=t}eu("array",(function(e,t={},n,r){const o=r&&r.depth||1;let i=Math.min(null!=e.maxItems?e.maxItems:1/0,e.minItems||1);const a=e.prefixItems||e.items||e.contains;Array.isArray(a)&&(i=Math.max(i,a.length));let s=[];if(!a)return s;for(let e=0;e(e[t]=!0,e)),{});Object.keys(e.properties).forEach((a=>{if(t.skipNonRequired&&!r.hasOwnProperty(a))return;const s=Hc(e.properties[a],t,n,{propertyName:a,depth:i+1});t.skipReadOnly&&s.readOnly||t.skipWriteOnly&&s.writeOnly||(o[a]=s.value)}))}if(e&&"object"==typeof e.additionalProperties){const r=e.additionalProperties["x-additionalPropertiesName"]||"property";o[`${String(r)}1`]=Hc(e.additionalProperties,t,n,{depth:i+1}).value,o[`${String(r)}2`]=Hc(e.additionalProperties,t,n,{depth:i+1}).value}return o})),eu("string",(function(e,t,n,r){let o=e.format||"default",i=Xc[o]||Gc,a=r&&r.propertyName;return i(0|e.minLength,e.maxLength,a)}));class tu{constructor(e,t,n,r,o){this.name=t,this.isRequestType=n,this.schema=r.schema&&new Ec(e,r.schema,"",o),this.onlyRequiredInSamples=o.onlyRequiredInSamples,this.generatedPayloadSamplesMaxDepth=o.generatedPayloadSamplesMaxDepth,void 0!==r.examples?this.examples=Bt(r.examples,(n=>new Pc(e,n,t,r.encoding))):void 0!==r.example?this.examples={default:new Pc(e,{value:e.deref(r.example).resolved},t,r.encoding)}:Za(t)&&this.generateExample(e,r)}generateExample(e,t){const n={skipReadOnly:this.isRequestType,skipWriteOnly:!this.isRequestType,skipNonRequired:this.isRequestType&&this.onlyRequiredInSamples,maxSampleDepth:this.generatedPayloadSamplesMaxDepth};if(this.schema&&this.schema.oneOf){this.examples={};for(const r of this.schema.oneOf){const o=Jc(r.rawSchema,n,e.spec);this.schema.discriminatorProp&&"object"==typeof o&&o&&(o[this.schema.discriminatorProp]=r.title),this.examples[r.title]=new Pc(e,{value:o},this.name,t.encoding)}}else this.schema&&(this.examples={default:new Pc(e,{value:Jc(t.schema,n,e.spec)},this.name,t.encoding)})}}var nu=Object.defineProperty,ru=Object.getOwnPropertyDescriptor,ou=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?ru(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&nu(t,n,i),i};class iu{constructor(e,t,n,r){this.isRequestType=n,this.activeMimeIdx=0,Pi(this),r.unstable_ignoreMimeParameters&&(t=function(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n],o=n.split(";")[0].trim();t[o]?t[o]=Wa(Wa({},t[o]),r):t[o]=r})),t}(t)),this.mediaTypes=Object.keys(t).map((o=>{const i=t[o];return new tu(e,o,n,i,r)}))}activate(e){this.activeMimeIdx=e}get active(){return this.mediaTypes[this.activeMimeIdx]}get hasSample(){return this.mediaTypes.filter((e=>!!e.examples)).length>0}}ou([to],iu.prototype,"activeMimeIdx",2),ou([ti],iu.prototype,"activate",1),ou([io],iu.prototype,"active",1);class au{constructor({parser:e,infoOrRef:t,options:n,isEvent:r}){const o=!r,{resolved:i}=e.deref(t);this.description=i.description||"",this.required=i.required;const a=function(e){let t=e.content;const n=e["x-examples"],r=e["x-example"];if(n){t=Wa({},t);for(const e of Object.keys(n)){const r=n[e];t[e]=Va(Wa({},t[e]),{examples:r})}}else if(r){t=Wa({},t);for(const e of Object.keys(r)){const n=r[e];t[e]=Va(Wa({},t[e]),{example:n})}}return t}(i);void 0!==a&&(this.content=new iu(e,a,o,n))}}var su=Object.defineProperty,lu=Object.defineProperties,cu=Object.getOwnPropertyDescriptor,uu=Object.getOwnPropertyDescriptors,pu=Object.getOwnPropertySymbols,du=Object.prototype.hasOwnProperty,fu=Object.prototype.propertyIsEnumerable,hu=(e,t,n)=>t in e?su(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mu=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?cu(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&su(t,n,i),i};class gu{constructor({parser:e,code:t,defaultAsError:n,infoOrRef:r,options:o,isEvent:i}){this.expanded=!1,this.headers=[],Pi(this),this.expanded="all"===o.expandResponses||o.expandResponses[t];const{resolved:a}=e.deref(r);this.code=t,void 0!==a.content&&(this.content=new iu(e,a.content,i,o)),void 0!==a["x-summary"]?(this.summary=a["x-summary"],this.description=a.description||""):(this.summary=a.description||"",this.description=""),this.type=Ya(t,n);const s=a.headers;void 0!==s&&(this.headers=Object.keys(s).map((t=>{const n=s[t];return new Nc(e,((e,t)=>lu(e,uu(t)))(((e,t)=>{for(var n in t||(t={}))du.call(t,n)&&hu(e,n,t[n]);if(pu)for(var n of pu(t))fu.call(t,n)&&hu(e,n,t[n]);return e})({},n),{name:t}),"",o)}))),o.showExtensions&&(this.extensions=hs(a,o.showExtensions))}toggle(){this.expanded=!this.expanded}}mu([to],gu.prototype,"expanded",2),mu([ti],gu.prototype,"toggle",1);var yu=Object.defineProperty,bu=Object.getOwnPropertyDescriptor,vu=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?bu(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&yu(t,n,i),i};function xu(e){return"payload"===e.lang&&e.requestBodyContent}let wu=!1;class ku{constructor(e,t,n,r,o=!1){var i;this.parser=e,this.operationSpec=t,this.options=r,this.type="operation",this.items=[],this.ready=!0,this.active=!1,this.expanded=!1,Pi(this),this.pointer=t.pointer,this.description=t.description,this.parent=n,this.externalDocs=t.externalDocs,this.deprecated=!!t.deprecated,this.httpVerb=t.httpVerb,this.deprecated=!!t.deprecated,this.operationId=t.operationId,this.path=t.pathName,this.isCallback=o,this.isWebhook=t.isWebhook,this.isEvent=this.isCallback||this.isWebhook,this.name=(i=t).summary||i.operationId||i.description&&i.description.substring(0,50)||i.pathName||"",this.sidebarLabel=r.sideNavStyle===tn.IdOnly?this.operationId||this.path:r.sideNavStyle===tn.PathOnly?this.path:this.name,this.isCallback?(this.security=(t.security||[]).map((t=>new Ul(t,e))),this.servers=ps("",t.servers||t.pathServers||[])):(this.operationHash=t.operationId&&"operation/"+t.operationId,this.id=void 0!==t.operationId?(n?n.id+"/":"")+this.operationHash:void 0!==n?n.id+this.pointer:this.pointer,this.security=(t.security||e.spec.security||[]).map((t=>new Ul(t,e))),this.servers=ps(e.specUrl,t.servers||t.pathServers||e.spec.servers||[])),r.showExtensions&&(this.extensions=hs(t,r.showExtensions))}activate(){this.active=!0}deactivate(){this.active=!1}toggle(){this.expanded=!this.expanded}expand(){this.parent&&this.parent.expand()}collapse(){}get requestBody(){return this.operationSpec.requestBody&&new au({parser:this.parser,infoOrRef:this.operationSpec.requestBody,options:this.options,isEvent:this.isEvent})}get codeSamples(){let e=this.operationSpec["x-codeSamples"]||this.operationSpec["x-code-samples"]||[];this.operationSpec["x-code-samples"]&&!wu&&(wu=!0,console.warn('"x-code-samples" is deprecated. Use "x-codeSamples" instead'));const t=this.requestBody&&this.requestBody.content;if(t&&t.hasSample){const n=Math.min(e.length,this.options.payloadSampleIdx);e=[...e.slice(0,n),{lang:"payload",label:"Payload",source:"",requestBodyContent:t},...e.slice(n)]}return e}get parameters(){const e=function(e,t=[],n=[]){const r={};return n.forEach((t=>{({resolved:t}=e.deref(t)),r[t.name+"_"+t.in]=!0})),(t=t.filter((t=>(({resolved:t}=e.deref(t)),!r[t.name+"_"+t.in])))).concat(n)}(this.parser,this.operationSpec.pathParameters,this.operationSpec.parameters).map((e=>new Nc(this.parser,e,this.pointer,this.options)));return this.options.sortPropsAlphabetically?us(e,"name"):this.options.requiredPropsFirst?cs(e):e}get responses(){let e=!1;return Object.keys(this.operationSpec.responses||[]).filter((t=>{return"default"===t||("success"===Ya(t)&&(e=!0),"default"===(n=t)||Wt(n)||Ha(n));var n})).map((t=>new gu({parser:this.parser,code:t,defaultAsError:e,infoOrRef:this.operationSpec.responses[t],options:this.options,isEvent:this.isEvent})))}get callbacks(){return Object.keys(this.operationSpec.callbacks||[]).map((e=>new Jl(this.parser,e,this.operationSpec.callbacks[e],this.pointer,this.options)))}}vu([to],ku.prototype,"ready",2),vu([to],ku.prototype,"active",2),vu([to],ku.prototype,"expanded",2),vu([ti],ku.prototype,"activate",1),vu([ti],ku.prototype,"deactivate",1),vu([ti],ku.prototype,"toggle",1),vu([As],ku.prototype,"requestBody",1),vu([As],ku.prototype,"codeSamples",1),vu([As],ku.prototype,"parameters",1),vu([As],ku.prototype,"responses",1),vu([As],ku.prototype,"callbacks",1);var Ou=Object.defineProperty,Su=Object.defineProperties,Eu=Object.getOwnPropertyDescriptors,_u=Object.getOwnPropertySymbols,ju=Object.prototype.hasOwnProperty,Au=Object.prototype.propertyIsEnumerable,Pu=(e,t,n)=>t in e?Ou(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cu=(e,t)=>{for(var n in t||(t={}))ju.call(t,n)&&Pu(e,n,t[n]);if(_u)for(var n of _u(t))Au.call(t,n)&&Pu(e,n,t[n]);return e},Tu=(e,t)=>Su(e,Eu(t));class Iu{constructor(e,t,n){this.operations=[];const{resolved:r}=e.deref(n||{});this.initWebhooks(e,r,t)}initWebhooks(e,t,n){for(const r of Object.keys(t)){const o=t[r],i=Object.keys(o).filter(Ga);for(const t of i){const r=o[t];if(o.$ref){const r=e.deref(o||{});this.initWebhooks(e,{[t]:r},n)}if(!r)continue;const i=new ku(e,Tu(Cu({},r),{httpVerb:t}),void 0,n,!1);this.operations.push(i)}}}}class Ru{constructor(e,t,n){const{resolved:r}=e.deref(n);this.id=t,this.sectionId=ds+t,this.type=r.type,this.displayName=r["x-displayName"]||t,this.description=r.description||"","apiKey"===r.type&&(this.apiKey={name:r.name,in:r.in}),"http"===r.type&&(this.http={scheme:r.scheme,bearerFormat:r.bearerFormat}),"openIdConnect"===r.type&&(this.openId={connectUrl:r.openIdConnectUrl}),"oauth2"===r.type&&r.flows&&(this.flows=r.flows)}}class Nu{constructor(e){const t=e.spec.components&&e.spec.components.securitySchemes||{};this.schemes=Object.keys(t).map((n=>new Ru(e,n,t[n])))}}var $u=Object.defineProperty,Lu=Object.getOwnPropertySymbols,Du=Object.prototype.hasOwnProperty,Mu=Object.prototype.propertyIsEnumerable,Fu=(e,t,n)=>t in e?$u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zu=(e,t)=>{for(var n in t||(t={}))Du.call(t,n)&&Fu(e,n,t[n]);if(Lu)for(var n of Lu(t))Mu.call(t,n)&&Fu(e,n,t[n]);return e};class Uu{constructor(e,t,n){var r,o,i;this.options=n,this.parser=new dc(e,t,n),this.info=new Rl(this.parser,this.options),this.externalDocs=this.parser.spec.externalDocs,this.contentItems=tp.buildStructure(this.parser,this.options),this.securitySchemes=new Nu(this.parser);const a=zu(zu({},null==(o=null==(r=this.parser)?void 0:r.spec)?void 0:o["x-webhooks"]),null==(i=this.parser)?void 0:i.spec.webhooks);this.webhooks=new Iu(this.parser,n,a)}}var Bu=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Wu=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?qu(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Bu(t,n,i),i};class Vu{constructor(e,t,n){this.items=[],this.active=!1,this.expanded=!1,Pi(this),this.id=t.id||e+"/"+Qt(t.name),this.type=e,this.name=t["x-displayName"]||t.name,this.level=t.level||1,this.sidebarLabel=this.name,this.description=t.description||"";const r=t.items;r&&r.length&&(this.description=Tl.getTextBeforeHading(this.description,r[0].name)),this.parent=n,this.externalDocs=t.externalDocs,"group"===this.type&&(this.expanded=!0)}activate(){this.active=!0}expand(){this.parent&&this.parent.expand(),this.expanded=!0}collapse(){"group"!==this.type&&(this.expanded=!1)}deactivate(){this.active=!1}}Wu([to],Vu.prototype,"active",2),Wu([to],Vu.prototype,"expanded",2),Wu([ti],Vu.prototype,"activate",1),Wu([ti],Vu.prototype,"expand",1),Wu([ti],Vu.prototype,"collapse",1),Wu([ti],Vu.prototype,"deactivate",1);var Hu=Object.defineProperty,Yu=Object.defineProperties,Qu=Object.getOwnPropertyDescriptors,Gu=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,Ku=Object.prototype.propertyIsEnumerable,Zu=(e,t,n)=>t in e?Hu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ju=(e,t)=>{for(var n in t||(t={}))Xu.call(t,n)&&Zu(e,n,t[n]);if(Gu)for(var n of Gu(t))Ku.call(t,n)&&Zu(e,n,t[n]);return e},ep=(e,t)=>Yu(e,Qu(t));class tp{static buildStructure(e,t){const n=e.spec,r=[],o=tp.getTagsWithOperations(e,n);return r.push(...tp.addMarkdownItems(n.info.description||"",void 0,1,t)),n["x-tagGroups"]&&n["x-tagGroups"].length>0?r.push(...tp.getTagGroupsItems(e,void 0,n["x-tagGroups"],o,t)):r.push(...tp.getTagsItems(e,o,void 0,void 0,t)),r}static addMarkdownItems(e,t,n,r){const o=new Tl(r,null==t?void 0:t.id).extractHeadings(e||"");o.length&&t&&t.description&&(t.description=Tl.getTextBeforeHading(t.description,o[0].name));const i=(e,t,n=1)=>t.map((t=>{const r=new Vu("section",t,e);return r.depth=n,t.items&&(r.items=i(r,t.items,n+1)),r}));return i(t,o,n)}static getTagGroupsItems(e,t,n,r,o){const i=[];for(const a of n){const n=new Vu("group",a,t);n.depth=0,n.items=tp.getTagsItems(e,r,n,a,o),i.push(n)}return i}static getTagsItems(e,t,n,r,o){let i;i=void 0===r?Object.keys(t):r.tags;const a=i.map((e=>t[e]?(t[e].used=!0,t[e]):(console.warn(`Non-existing tag "${e}" is added to the group "${r.name}"`),null))),s=[];for(const t of a){if(!t)continue;const r=new Vu("tag",t,n);if(r.depth=1,""===t.name){const n=[...tp.addMarkdownItems(t.description||"",r,r.depth+1,o),...this.getOperationsItems(e,void 0,t,r.depth+1,o)];s.push(...n);continue}const i=this.getTagRelatedSchema({parser:e,tag:t,parent:r});r.items=[...i,...tp.addMarkdownItems(t.description||"",r,r.depth+1,o),...this.getOperationsItems(e,r,t,r.depth+1,o)],s.push(r)}return o.sortTagsAlphabetically&&s.sort(Ps("name")),s}static getOperationsItems(e,t,n,r,o){if(0===n.operations.length)return[];const i=[];for(const a of n.operations){const n=new ku(e,a,t,o);n.depth=r,i.push(n)}return o.sortOperationsAlphabetically&&i.sort(Ps("name")),i}static getTagsWithOperations(e,t){const n={},r=t["x-webhooks"]||t.webhooks;for(const e of t.tags||[])n[e.name]=ep(Ju({},e),{operations:[]});function o(e,t,r){for(const i of Object.keys(t)){const a=t[i],s=Object.keys(a).filter(Ga);for(const t of s){const s=a[t];if(a.$ref){const{resolved:t}=e.deref(a);o(e,{[i]:t},r);continue}let l=null==s?void 0:s.tags;l&&l.length||(l=[""]);for(const e of l){let o=n[e];void 0===o&&(o={name:e,operations:[]},n[e]=o),o["x-traitTag"]||o.operations.push(ep(Ju({},s),{pathName:i,pointer:Na.compile(["paths",i,t]),httpVerb:t,pathParameters:a.parameters||[],pathServers:a.servers,isWebhook:!!r}))}}}}return r&&o(e,r,!0),t.paths&&o(e,t.paths),n}static getTagRelatedSchema({parser:e,tag:t,parent:n}){var r;return Object.entries((null==(r=e.spec.components)?void 0:r.schemas)||{}).map((([e,r])=>{const o=r["x-tags"];if(!(null==o?void 0:o.includes(t.name)))return null;const i=new Vu("schema",{name:e,"x-displayName":`${r.title||e}`,description:``},n);return i.depth=n.depth+1,i})).filter(Boolean)}}var np=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,op=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?rp(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&np(t,n,i),i};const ip="data-section-id";class ap{constructor(e,t,n){this.scroll=t,this.history=n,this.activeItemIdx=-1,this.sideBarOpened=!1,this.updateOnScroll=e=>{const t=e?1:-1;let n=this.activeItemIdx;for(;(-1!==n||e)&&!(n>=this.flatItems.length-1&&e);){if(e){const e=this.getElementAtOrFirstChild(n+1);if(this.scroll.isElementBellow(e))break}else{const e=this.getElementAt(n);if(this.scroll.isElementAbove(e))break}n+=t}this.activate(this.flatItems[n],!0,!0)},this.updateOnHistory=(e=this.history.currentId)=>{if(!e)return;let t;t=this.flatItems.find((t=>t.id===e)),t?this.activateAndScroll(t,!1):(e.startsWith(ds)&&(t=this.flatItems.find((e=>ds.startsWith(e.id))),this.activateAndScroll(t,!1)),this.scroll.scrollIntoViewBySelector(`[${ip}="${Xt(e)}"]`))},this.getItemById=e=>this.flatItems.find((t=>t.id===e)),Pi(this),this.items=e.contentItems,this.flatItems=function(e,t){const n=[],r=e=>{for(const o of e)n.push(o),o[t]&&r(o[t])};return r(e),n}(this.items||[],"items"),this.flatItems.forEach(((e,t)=>e.absoluteIdx=t)),this.subscribe()}static updateOnHistory(e=Ns.currentId,t){e&&t.scrollIntoViewBySelector(`[${ip}="${Xt(e)}"]`)}subscribe(){this._unsubscribe=this.scroll.subscribe(this.updateOnScroll),this._hashUnsubscribe=this.history.subscribe(this.updateOnHistory)}toggleSidebar(){this.sideBarOpened=!this.sideBarOpened}closeSidebar(){this.sideBarOpened=!1}getElementAt(e){const t=this.flatItems[e];return t&&Dt(`[${ip}="${Xt(t.id)}"]`)||null}getElementAtOrFirstChild(e){let t=this.flatItems[e];return t&&"group"===t.type&&(t=t.items[0]),t&&Dt(`[${ip}="${Xt(t.id)}"]`)||null}get activeItem(){return this.flatItems[this.activeItemIdx]||void 0}activate(e,t=!0,n=!1){if((this.activeItem&&this.activeItem.id)!==(e&&e.id)&&(!e||"group"!==e.type)){if(this.deactivate(this.activeItem),!e)return this.activeItemIdx=-1,void this.history.replace("",n);e.depth<=0||(this.activeItemIdx=e.absoluteIdx,t&&this.history.replace(encodeURI(e.id),n),e.activate(),e.expand())}}deactivate(e){if(void 0!==e)for(e.deactivate();void 0!==e;)e.collapse(),e=e.parent}activateAndScroll(e,t,n){const r=e&&this.getItemById(e.id)||e;this.activate(r,t,n),this.scrollToActive(),r&&r.items.length||this.closeSidebar()}scrollToActive(){this.scroll.scrollIntoView(this.getElementAt(this.activeItemIdx))}dispose(){this._unsubscribe(),this._hashUnsubscribe()}}op([to],ap.prototype,"activeItemIdx",2),op([to],ap.prototype,"sideBarOpened",2),op([ti],ap.prototype,"toggleSidebar",1),op([ti],ap.prototype,"closeSidebar",1),op([ti],ap.prototype,"activate",1),op([ti.bound],ap.prototype,"activateAndScroll",1);var sp=Object.defineProperty,lp=Object.getOwnPropertyDescriptor;const cp="scroll";class up{constructor(e){this.options=e,this._prevOffsetY=0,this._scrollParent=Lt?window:void 0,this._emiter=new Ca,this.bind()}bind(){this._prevOffsetY=this.scrollY(),this._scrollParent&&this._scrollParent.addEventListener("scroll",this.handleScroll)}dispose(){this._scrollParent&&this._scrollParent.removeEventListener("scroll",this.handleScroll),this._emiter.removeAllListeners(cp)}scrollY(){return"undefined"!=typeof HTMLElement&&this._scrollParent instanceof HTMLElement?this._scrollParent.scrollTop:void 0!==this._scrollParent?this._scrollParent.pageYOffset:0}isElementBellow(e){if(null!==e)return e.getBoundingClientRect().top>this.options.scrollYOffset()}isElementAbove(e){if(null===e)return;const t=e.getBoundingClientRect().top;return(t>0?Math.floor(t):Math.ceil(t))<=this.options.scrollYOffset()}subscribe(e){const t=this._emiter.addListener(cp,e);return()=>t.removeListener(cp,e)}scrollIntoView(e){null!==e&&(e.scrollIntoView(),this._scrollParent&&this._scrollParent.scrollBy&&this._scrollParent.scrollBy(0,1-this.options.scrollYOffset()))}scrollIntoViewBySelector(e){const t=Dt(e);this.scrollIntoView(t)}handleScroll(){const e=this.scrollY()-this._prevOffsetY>0;this._prevOffsetY=this.scrollY(),this._emiter.emit(cp,e)}}((e,t,n,r)=>{for(var o,i=lp(t,n),a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);i&&sp(t,n,i)})([Pa.bind,(100,(e,t,n)=>{n.value=function(e,t){let n,r,o,i=null,a=0;const s=()=>{a=(new Date).getTime(),i=null,o=e.apply(n,r),i||(n=r=null)};return function(){const t=(new Date).getTime(),l=100-(t-a);return n=this,r=arguments,l<=0||l>100?(i&&(clearTimeout(i),i=null),a=t,o=e.apply(n,r),i||(n=r=null)):i||(i=setTimeout(s,l)),o}}(n.value)})],up.prototype,"handleScroll");class pp{constructor(){this.searchWorker=function(){let e;if(Lt)try{e=n(722)}catch(t){e=n(4798).default}else e=n(4798).default;return new e}()}indexItems(e){const t=e=>{e.forEach((e=>{"group"!==e.type&&this.add(e.name,(e.description||"").concat(" ",e.path||""),e.id),t(e.items)}))};t(e),this.searchWorker.done()}add(e,t,n){this.searchWorker.add(e,t,n)}dispose(){this.searchWorker.terminate(),this.searchWorker.dispose()}search(e){return this.searchWorker.search(e)}toJS(){return e=this,null,t=function*(){return this.searchWorker.toJS()},new Promise(((n,r)=>{var o=e=>{try{a(t.next(e))}catch(e){r(e)}},i=e=>{try{a(t.throw(e))}catch(e){r(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,i);a((t=t.apply(e,null)).next())}));var e,t}load(e){this.searchWorker.load(e)}fromExternalJS(e,t){e&&t&&this.searchWorker.fromExternalJS(e,t)}}const dp=xn.div` +`;class jn extends r.PureComponent{render(){return r.createElement("div",{style:{textAlign:"center"}},r.createElement(_n,{color:this.props.color},"Loading ..."),r.createElement(En,{color:this.props.color}))}}var An=n(5697);const Pn=r.createContext(new fn({})),Cn=Pn.Provider,Tn=Pn.Consumer;function In(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var hr=Symbol("mobx-stored-annotations");function mr(e){return Object.assign((function(t,n){gr(t,n,e)}),e)}function gr(e,t,n){ir(e,hr)||Kn(e,hr,cr({},e[hr])),function(e){return e.annotationType_===Sr}(n)||(e[hr][t]=n)}var yr=Symbol("mobx administration"),br=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=yo.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return zo(this)},t.reportChanged=function(){Mo(),Uo(this),Fo()},t.toString=function(){return this.name_},e}(),vr=Jn("Atom",br);function xr(e,t,n){void 0===t&&(t=Vn),void 0===n&&(n=Vn);var r=new br(e);return t!==Vn&&li(ii,r,t,undefined),n!==Vn&&si(r,n),r}var wr={identity:function(e,t){return e===t},structural:function(e,t){return xa(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return xa(e,t,1)}};function kr(e,t,n){return vi(e)?e:Array.isArray(e)?to.array(e,{name:n}):Gn(e)?to.object(e,void 0,{name:n}):er(e)?to.map(e,{name:n}):tr(e)?to.set(e,{name:n}):"function"!=typeof e||ri(e)||bi(e)?e:Xn(e)?gi(e):ni(n,e)}function Or(e){return e}var Sr="override";function Er(e,t){return{annotationType_:e,options_:t,make_:_r,extend_:jr}}function _r(e,t,n,r){var o;if(null==(o=this.options_)?void 0:o.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(ri(n.value))return 1;var i=Ar(e,this,t,n,!1);return Dn(r,t,i),2}function jr(e,t,n,r){var o=Ar(e,this,t,n);return e.defineProperty_(t,o,r)}function Ar(e,t,n,r,o){var i,a,s,l,c,u;void 0===o&&(o=$o.safeDescriptors),u=r,t.annotationType_,u.value;var p,d=r.value;return(null==(i=t.options_)?void 0:i.bound)&&(d=d.bind(null!=(p=e.proxy_)?p:e.target_)),{value:po(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),d,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function Pr(e,t){return{annotationType_:e,options_:t,make_:Cr,extend_:Tr}}function Cr(e,t,n,r){var o;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if((null==(o=this.options_)?void 0:o.bound)&&!bi(e.target_[t])&&null===this.extend_(e,t,n,!1))return 0;if(bi(n.value))return 1;var i=Ir(e,this,0,n,!1,!1);return Dn(r,t,i),2}function Tr(e,t,n,r){var o,i=Ir(e,this,0,n,null==(o=this.options_)?void 0:o.bound);return e.defineProperty_(t,i,r)}function Ir(e,t,n,r,o,i){var a;void 0===i&&(i=$o.safeDescriptors),a=r,t.annotationType_,a.value;var s,l=r.value;return o&&(l=l.bind(null!=(s=e.proxy_)?s:e.target_)),{value:gi(l),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function Rr(e,t){return{annotationType_:e,options_:t,make_:Nr,extend_:$r}}function Nr(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function $r(e,t,n,r){return o=n,this.annotationType_,o.get,e.defineComputedProperty_(t,cr({},this.options_,{get:n.get,set:n.set}),r);var o}function Lr(e,t){return{annotationType_:e,options_:t,make_:Dr,extend_:Mr}}function Dr(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function Mr(e,t,n,r){var o,i;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(o=null==(i=this.options_)?void 0:i.enhancer)?o:kr,r)}var Fr="true",zr=Ur();function Ur(e){return{annotationType_:Fr,options_:e,make_:Br,extend_:qr}}function Br(e,t,n,r){var o,i,a,s;if(n.get)return io.make_(e,t,n,r);if(n.set){var l=po(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!$o.safeDescriptors||e.isPlainObject_,set:l})?0:2:(Dn(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return Xn(n.value)?((null==(s=this.options_)?void 0:s.autoBind)?gi.bound:gi).make_(e,t,n,r):((null==(a=this.options_)?void 0:a.autoBind)?ni.bound:ni).make_(e,t,n,r);var c,u=!1===(null==(o=this.options_)?void 0:o.deep)?to.ref:to;return"function"==typeof n.value&&(null==(i=this.options_)?void 0:i.autoBind)&&(n.value=n.value.bind(null!=(c=e.proxy_)?c:e.target_)),u.make_(e,t,n,r)}function qr(e,t,n,r){var o,i,a;return n.get?io.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!$o.safeDescriptors||e.isPlainObject_,set:po(t.toString(),n.set)},r):("function"==typeof n.value&&(null==(o=this.options_)?void 0:o.autoBind)&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(i=this.options_)?void 0:i.deep)?to.ref:to).extend_(e,t,n,r))}var Wr={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Vr(e){return e||Wr}Object.freeze(Wr);var Hr=Lr("observable"),Yr=Lr("observable.ref",{enhancer:Or}),Qr=Lr("observable.shallow",{enhancer:function(e,t,n){return null==e||aa(e)||qi(e)||Xi(e)||Ji(e)?e:Array.isArray(e)?to.array(e,{name:n,deep:!1}):Gn(e)?to.object(e,void 0,{name:n,deep:!1}):er(e)?to.map(e,{name:n,deep:!1}):tr(e)?to.set(e,{name:n,deep:!1}):void 0}}),Gr=Lr("observable.struct",{enhancer:function(e,t){return xa(e,t)?t:e}}),Xr=mr(Hr);function Kr(e){return!0===e.deep?kr:!1===e.deep?Or:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:kr;var t,n,r}function Zr(e,t,n){if(!Yn(t))return vi(e)?e:Gn(e)?to.object(e,t,n):Array.isArray(e)?to.array(e,t):er(e)?to.map(e,t):tr(e)?to.set(e,t):"object"==typeof e&&null!==e?e:to.box(e,t);gr(e,t,Hr)}Object.assign(Zr,Xr);var Jr,eo,to=$n(Zr,{box:function(e,t){var n=Vr(t);return new go(e,Kr(n),n.name,!0,n.equals)},array:function(e,t){var n=Vr(t);return(!1===$o.useProxies||!1===n.proxy?ma:Ni)(e,Kr(n),n.name)},map:function(e,t){var n=Vr(t);return new Gi(e,Kr(n),n.name)},set:function(e,t){var n=Vr(t);return new Zi(e,Kr(n),n.name)},object:function(e,t,n){return function(e,t,n,r){var o=ar(t),i=ra(e,r)[yr];Mo();try{rr(o).forEach((function(e){i.extend_(e,o[e],!n||!(e in n)||n[e])}))}finally{Fo()}return e}(!1===$o.useProxies||!1===(null==n?void 0:n.proxy)?ra({},n):function(e,t){var n,r;return qn(),null!=(r=(n=(e=ra(e,t))[yr]).proxy_)?r:n.proxy_=new Proxy(e,ki)}({},n),e,t)},ref:mr(Yr),shallow:mr(Qr),deep:Xr,struct:mr(Gr)}),no="computed",ro=Rr(no),oo=Rr("computed.struct",{equals:wr.structural}),io=function(e,t){if(Yn(t))return gr(e,t,ro);if(Gn(e))return mr(Rr(no,e));var n=Gn(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new vo(n)};Object.assign(io,ro),io.struct=mr(oo);var ao,so=0,lo=1,co=null!=(Jr=null==(eo=Ln((function(){}),"name"))?void 0:eo.configurable)&&Jr,uo={value:"action",configurable:!0,writable:!1,enumerable:!1};function po(e,t,n,r){function o(){return function(e,t,n,r,o){var i=function(e,t,n,r){var o=!1,i=0,a=$o.trackingDerivation,s=!t||!a;Mo();var l=$o.allowStateChanges;s&&(jo(),l=fo(!0));var c={runAsAction_:s,prevDerivation_:a,prevAllowStateChanges_:l,prevAllowStateReads_:Po(!0),notifySpy_:o,startTime_:i,actionId_:lo++,parentActionId_:so};return so=c.actionId_,c}(0,t);try{return n.apply(r,o)}catch(e){throw i.error_=e,e}finally{!function(e){so!==e.actionId_&&In(30),so=e.parentActionId_,void 0!==e.error_&&($o.suppressReactionErrors=!0),ho(e.prevAllowStateChanges_),Co(e.prevAllowStateReads_),Fo(),e.runAsAction_&&Ao(e.prevDerivation_),$o.suppressReactionErrors=!1}(i)}}(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),o.isMobxAction=!0,co&&(uo.value=e,Object.defineProperty(o,"name",uo)),o}function fo(e){var t=$o.allowStateChanges;return $o.allowStateChanges=e,t}function ho(e){$o.allowStateChanges=e}ao=Symbol.toPrimitive;var mo,go=function(e){function t(t,n,r,o,i){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=!0),void 0===i&&(i=wr.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=i,a.value_=n(t,void 0,r),a}ur(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==$o.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(Oi(this)){var t=Ei(this,{object:this,type:Ti,newValue:e});if(!t)return $o.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?$o.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),_i(this)&&Ai(this,{type:Ti,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return Si(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Ti,newValue:this.value_,oldValue:void 0}),ji(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return or(this.get())},n[ao]=function(){return this.valueOf()},t}(br);mo=Symbol.toPrimitive;var yo,bo,vo=function(){function e(e){this.dependenciesState_=yo.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=yo.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new wo(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=bo.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||In(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=po("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?wr.structural:wr.default),this.scope_=e.context,this.requiresReaction_=!!e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){var e;(e=this).lowestObserverState_===yo.UP_TO_DATE_&&(e.lowestObserverState_=yo.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===yo.UP_TO_DATE_&&(e.dependenciesState_=yo.POSSIBLY_STALE_,e.onBecomeStale_())})))},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&In(32,this.name_,this.derivation),0!==$o.inBatch||0!==this.observers_.size||this.keepAlive_){if(zo(this),Oo(this)){var e=$o.trackingContext;this.keepAlive_&&!e&&($o.trackingContext=this),this.trackAndCompute()&&((t=this).lowestObserverState_!==yo.STALE_&&(t.lowestObserverState_=yo.STALE_,t.observers_.forEach((function(e){e.dependenciesState_===yo.POSSIBLY_STALE_?e.dependenciesState_=yo.STALE_:e.dependenciesState_===yo.UP_TO_DATE_&&(t.lowestObserverState_=yo.UP_TO_DATE_)})))),$o.trackingContext=e}}else Oo(this)&&(this.warnAboutUntrackedRead_(),Mo(),this.value_=this.computeValue_(!1),Fo());var t,n=this.value_;if(ko(n))throw n.cause;return n},t.set=function(e){if(this.setter_){this.isRunningSetter_&&In(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else In(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===yo.NOT_TRACKING_,n=this.computeValue_(!0),r=t||ko(e)||ko(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=fo(!1);if(e)t=So(this,this.derivation,this.scope_);else if(!0===$o.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new wo(e)}return ho(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Eo(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,o=void 0;return function(e,t){var n,r;void 0===t&&(t=zn);var o,i=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var a=function(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:oi}(t),s=!1;o=new Bo(i,(function(){s||(s=!0,a((function(){s=!1,o.isDisposed_||o.track(l)})))}),t.onError,t.requiresObservable)}else o=new Bo(i,(function(){this.track(l)}),t.onError,t.requiresObservable);function l(){e(o)}return o.schedule_(),o.getDisposer_()}((function(){var i=n.get();if(!r||t){var a=jo();e({observableKind:"computed",debugObjectName:n.name_,type:Ti,object:n,newValue:i,oldValue:o}),Ao(a)}r=!1,o=i}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return or(this.get())},t[mo]=function(){return this.valueOf()},e}(),xo=Jn("ComputedValue",vo);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(yo||(yo={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(bo||(bo={}));var wo=function(e){this.cause=void 0,this.cause=e};function ko(e){return e instanceof wo}function Oo(e){switch(e.dependenciesState_){case yo.UP_TO_DATE_:return!1;case yo.NOT_TRACKING_:case yo.STALE_:return!0;case yo.POSSIBLY_STALE_:for(var t=Po(!0),n=jo(),r=e.observing_,o=r.length,i=0;ir&&(r=s.dependenciesState_)}for(n.length=o,e.newObserving_=null,i=t.length;i--;){var l=t[i];0===l.diffValue_&&Lo(l,e),l.diffValue_=0}for(;o--;){var c=n[o];1===c.diffValue_&&(c.diffValue_=0,p=e,(u=c).observers_.add(p),u.lowestObserverState_>p.dependenciesState_&&(u.lowestObserverState_=p.dependenciesState_))}var u,p;r!==yo.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),Co(r),o}function Eo(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Lo(t[n],e);e.dependenciesState_=yo.NOT_TRACKING_}function _o(e){var t=jo();try{return e()}finally{Ao(t)}}function jo(){var e=$o.trackingDerivation;return $o.trackingDerivation=null,e}function Ao(e){$o.trackingDerivation=e}function Po(e){var t=$o.allowStateReads;return $o.allowStateReads=e,t}function Co(e){$o.allowStateReads=e}function To(e){if(e.dependenciesState_!==yo.UP_TO_DATE_){e.dependenciesState_=yo.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=yo.UP_TO_DATE_}}var Io=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Ro=!0,No=!1,$o=function(){var e=Nn();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Ro=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Io).version&&(Ro=!1),Ro?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Io):(setTimeout((function(){No||In(35)}),1),new Io)}();function Lo(e,t){e.observers_.delete(t),0===e.observers_.size&&Do(e)}function Do(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,$o.pendingUnobservations.push(e))}function Mo(){$o.inBatch++}function Fo(){if(0==--$o.inBatch){Vo();for(var e=$o.pendingUnobservations,t=0;t0&&Do(e),!1)}function Uo(e){e.lowestObserverState_!==yo.STALE_&&(e.lowestObserverState_=yo.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===yo.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=yo.STALE_})))}var Bo=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),void 0===r&&(r=!1),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=yo.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=bo.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,$o.pendingReactions.push(this),Vo())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){Mo(),this.isScheduled_=!1;var e=$o.trackingContext;if($o.trackingContext=this,Oo(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}$o.trackingContext=e,Fo()}},t.track=function(e){if(!this.isDisposed_){Mo(),this.isRunning_=!0;var t=$o.trackingContext;$o.trackingContext=this;var n=So(this,e,void 0);$o.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Eo(this),ko(n)&&this.reportExceptionInDerivation_(n.cause),Fo()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if($o.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";$o.suppressReactionErrors||console.error(n,e),$o.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Mo(),Eo(this),Fo()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[yr]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){In("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),r=0;r0||$o.isRunningReactions||Wo(Ho)}function Ho(){$o.isRunningReactions=!0;for(var e=$o.pendingReactions,t=0;e.length>0;){++t===qo&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r",t,e):Hn(n)?po(t,n,e):Yn(n)?gr(t,n,e?Zo:Xo):Yn(t)?mr(Er(e?Go:Qo,{name:t,autoAction:e})):void 0}}var ti=ei(!1);Object.assign(ti,Xo);var ni=ei(!0);function ri(e){return Hn(e)&&!0===e.isMobxAction}Object.assign(ni,Zo),ti.bound=mr(Ko),ni.bound=mr(Jo);var oi=function(e){return e()};var ii="onBO",ai="onBUO";function si(e,t,n){return li(ai,e,t,n)}function li(e,t,n,r){var o="function"==typeof r?ga(t,n):ga(t),i=Hn(r)?r:n,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var e=o[a];e&&(e.delete(i),0===e.size&&delete o[a])}}var ci="always";function ui(e){!0===e.isolateGlobalState&&function(){if(($o.pendingReactions.length||$o.inBatch||$o.isRunningReactions)&&In(36),No=!0,Ro){var e=Nn();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),$o=new Io}}();var t,n,r=e.useProxies,o=e.enforceActions;if(void 0!==r&&($o.useProxies=r===ci||"never"!==r&&"undefined"!=typeof Proxy),"ifavailable"===r&&($o.verifyProxies=!0),void 0!==o){var i=o===ci?ci:"observed"===o;$o.enforceActions=i,$o.allowStateChanges=!0!==i&&i!==ci}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&($o[t]=!!e[t])})),$o.allowStateReads=!$o.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=Wo,Wo=function(e){return t((function(){return n(e)}))})}function pi(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(pi)),n}var di=0;function fi(){this.message="FLOW_CANCELLED"}fi.prototype=Object.create(Error.prototype);var hi=Pr("flow"),mi=Pr("flow.bound",{bound:!0}),gi=Object.assign((function(e,t){if(Yn(t))return gr(e,t,hi);var n=e,r=n.name||"",o=function(){var e,t=arguments,o=++di,i=ti(r+" - runid: "+o+" - init",n).apply(this,t),a=void 0,s=new Promise((function(t,n){var s=0;function l(e){var t;a=void 0;try{t=ti(r+" - runid: "+o+" - yield "+s++,i.next).call(i,e)}catch(e){return n(e)}u(t)}function c(e){var t;a=void 0;try{t=ti(r+" - runid: "+o+" - yield "+s++,i.throw).call(i,e)}catch(e){return n(e)}u(t)}function u(e){if(!Hn(null==e?void 0:e.then))return e.done?t(e.value):(a=Promise.resolve(e.value)).then(l,c);e.then(u,n)}e=n,l(void 0)}));return s.cancel=ti(r+" - runid: "+o+" - cancel",(function(){try{a&&yi(a);var t=i.return(void 0),n=Promise.resolve(t.value);n.then(Vn,Vn),yi(n),e(new fi)}catch(t){e(t)}})),s};return o.isMobXFlow=!0,o}),hi);function yi(e){Hn(e.cancel)&&e.cancel()}function bi(e){return!0===(null==e?void 0:e.isMobXFlow)}function vi(e){return function(e,t){return!!e&&(void 0!==t?!!aa(e)&&e[yr].values_.has(t):aa(e)||!!e[yr]||vr(e)||Yo(e)||xo(e))}(e)}function xi(e,t){void 0===t&&(t=void 0),Mo();try{return e.apply(t)}finally{Fo()}}function wi(e){return e[yr]}gi.bound=mr(mi);var ki={has:function(e,t){return wi(e).has_(t)},get:function(e,t){return wi(e).get_(t)},set:function(e,t,n){var r;return!!Yn(t)&&(null==(r=wi(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!Yn(t)&&(null==(n=wi(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=wi(e).defineProperty_(t,n))||r},ownKeys:function(e){return wi(e).ownKeys_()},preventExtensions:function(e){In(13)}};function Oi(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function Si(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),Wn((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Ei(e,t){var n=jo();try{for(var r=[].concat(e.interceptors_||[]),o=0,i=r.length;o0}function ji(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),Wn((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Ai(e,t){var n=jo(),r=e.changeListeners_;if(r){for(var o=0,i=(r=r.slice()).length;o0?e.map(this.dehancer):e},t.intercept_=function(e){return Si(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),ji(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||e<0)&&In("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;r0&&ha(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var o=this.values_.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:null==t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=Fn),Oi(this)){var i=Ei(this,{object:this.proxy_,type:Ci,index:e,removedCount:t,added:n});if(!i)return Fn;t=i.removedCount,n=i.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(o,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var o=this.values_.slice(e,e+t),i=this.values_.slice(e+t);this.values_.length=e+n.length-t;for(var a=0;a2?n-2:0),o=2;o-1&&(this.splice(n,1),!0)}};function Li(e,t){"function"==typeof Array.prototype[e]&&($i[e]=t(e))}function Di(e){return function(){var t=this[yr];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Mi(e){return function(t,n){var r=this,o=this[yr];return o.atom_.reportObserved(),o.dehanceValues_(o.values_)[e]((function(e,o){return t.call(n,e,o,r)}))}}function Fi(e){return function(){var t=this,n=this[yr];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(e,n,r){return o(e,n,r,t)},r[e].apply(r,arguments)}}Li("concat",Di),Li("flat",Di),Li("includes",Di),Li("indexOf",Di),Li("join",Di),Li("lastIndexOf",Di),Li("slice",Di),Li("toString",Di),Li("toLocaleString",Di),Li("every",Mi),Li("filter",Mi),Li("find",Mi),Li("findIndex",Mi),Li("flatMap",Mi),Li("forEach",Mi),Li("map",Mi),Li("some",Mi),Li("reduce",Fi),Li("reduceRight",Fi);var zi,Ui,Bi=Jn("ObservableArrayAdministration",Ri);function qi(e){return Qn(e)&&Bi(e[yr])}var Wi={},Vi="add",Hi="delete";zi=Symbol.iterator,Ui=Symbol.toStringTag;var Yi,Qi,Gi=function(){function e(e,t,n){void 0===t&&(t=kr),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[yr]=Wi,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,Hn(Map)||In(18),this.keysAtom_=xr("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,this.merge(e)}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!$o.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new go(this.has_(e),Or,"ObservableMap.key?",!1);this.hasMap_.set(e,r),si(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Oi(this)){var r=Ei(this,{type:n?Ti:Vi,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,Oi(this)&&!Ei(this,{type:Hi,object:this,name:e}))return!1;if(this.has_(e)){var n=_i(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Hi,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return xi((function(){t.keysAtom_.reportChanged(),t.updateHasMapEntry_(e,!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&Ai(this,r),!0}return!1},t.updateHasMapEntry_=function(e,t){var n=this.hasMap_.get(e);n&&n.setNewValue_(t)},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==$o.UNCHANGED){var r=_i(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:Ti,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&Ai(this,o)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,xi((function(){var r=new go(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,r),t=r.value_,n.updateHasMapEntry_(e,!0),n.keysAtom_.reportChanged()}));var r=_i(this),o=r?{observableKind:"map",debugObjectName:this.name_,type:Vi,object:this,name:e,newValue:t}:null;r&&Ai(this,o)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return Oa({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:e.get(o)}}})},t.entries=function(){var e=this,t=this.keys();return Oa({next:function(){var n=t.next(),r=n.done,o=n.value;return{done:r,value:r?void 0:[o,e.get(o)]}}})},t[zi]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=fr(this);!(n=r()).done;){var o=n.value,i=o[0],a=o[1];e.call(t,a,i,this)}},t.merge=function(e){var t=this;return Xi(e)&&(e=new Map(e)),xi((function(){Gn(e)?function(e){var t=Object.keys(e);if(!nr)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return Mn.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):er(e)?(e.constructor!==Map&&In(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&In(20,e)})),this},t.clear=function(){var e=this;xi((function(){_o((function(){for(var t,n=fr(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return xi((function(){for(var n,r=function(e){if(er(e)||Xi(e))return e;if(Array.isArray(e))return new Map(e);if(Gn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return In(21,e)}(e),o=new Map,i=!1,a=fr(t.data_.keys());!(n=a()).done;){var s=n.value;if(!r.has(s))if(t.delete(s))i=!0;else{var l=t.data_.get(s);o.set(s,l)}}for(var c,u=fr(r.entries());!(c=u()).done;){var p=c.value,d=p[0],f=p[1],h=t.data_.has(d);if(t.set(d,f),t.data_.has(d)){var m=t.data_.get(d);o.set(d,m),h||(i=!0)}}if(!i)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),y=o.keys(),b=g.next(),v=y.next();!b.done;){if(b.value!==v.value){t.keysAtom_.reportChanged();break}b=g.next(),v=y.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return ji(this,e)},t.intercept_=function(e){return Si(this,e)},lr(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Ui,get:function(){return"Map"}}]),e}(),Xi=Jn("ObservableMap",Gi),Ki={};Yi=Symbol.iterator,Qi=Symbol.toStringTag;var Zi=function(){function e(e,t,n){void 0===t&&(t=kr),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[yr]=Ki,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,Hn(Set)||In(22),this.atom_=xr(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;xi((function(){_o((function(){for(var t,n=fr(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=fr(this);!(n=r()).done;){var o=n.value;e.call(t,o,o,this)}},t.add=function(e){var t=this;if(this.atom_,Oi(this)&&!Ei(this,{type:Vi,object:this,newValue:e}))return this;if(!this.has(e)){xi((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=_i(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Vi,object:this,newValue:e}:null;n&&Ai(this,r)}return this},t.delete=function(e){var t=this;if(Oi(this)&&!Ei(this,{type:Hi,object:this,oldValue:e}))return!1;if(this.has(e)){var n=_i(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Hi,object:this,oldValue:e}:null;return xi((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&Ai(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Oa({next:function(){var r=e;return e+=1,rua){for(var t=ua;t=0&&n++}e=ka(e),t=ka(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(Hn(l)&&l instanceof l&&Hn(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),o=o||[];for(var u=(r=r||[]).length;u--;)if(r[u]===e)return o[u]===t;if(r.push(e),o.push(t),s){if((u=e.length)!==t.length)return!1;for(;u--;)if(!wa(e[u],t[u],n-1,r,o))return!1}else{var p,d=Object.keys(e);if(u=d.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!ir(t,p=d[u])||!wa(e[p],t[p],n-1,r,o))return!1}return r.pop(),o.pop(),!0}function ka(e){return qi(e)?e.slice():er(e)||Xi(e)||tr(e)||Ji(e)?Array.from(e.entries()):e}function Oa(e){return e[Symbol.iterator]=Sa,e}function Sa(){return this}["Symbol","Map","Set","Symbol"].forEach((function(e){void 0===Nn()[e]&&In("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:ba},$mobx:yr});var Ea=n(3675),_a=n(3777),ja=n(8925),Aa=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(e){o(e)}},a=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));var Pa=n(1851),Ca=n(6729),Ta=n(3573),Ia=n.n(Ta);const Ra=Ta.parse;class Na{static baseName(e,t=1){const n=Na.parse(e);return n[n.length-t]}static dirName(e,t=1){const n=Na.parse(e);return Ta.compile(n.slice(0,n.length-t))}static relative(e,t){const n=Na.parse(e);return Na.parse(t).slice(n.length)}static parse(e){let t=e;return"#"===t.charAt(0)&&(t=t.substring(1)),Ra(t)}static join(e,t){const n=Na.parse(e).concat(t);return Ta.compile(n)}static get(e,t){return Ta.get(e,t)}static compile(e){return Ta.compile(e)}static escape(e){return Ta.escape(e)}}Ta.parse=Na.parse,Object.assign(Na,Ta);var $a=n(6470),La=n(3578),Da=Object.defineProperty,Ma=Object.defineProperties,Fa=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertySymbols,Ua=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable,qa=(e,t,n)=>t in e?Da(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wa=(e,t)=>{for(var n in t||(t={}))Ua.call(t,n)&&qa(e,n,t[n]);if(za)for(var n of za(t))Ba.call(t,n)&&qa(e,n,t[n]);return e},Va=(e,t)=>Ma(e,Fa(t));function Ha(e){return"string"==typeof e&&/\dxx/i.test(e)}function Ya(e,t=!1){if("default"===e)return t?"error":"success";let n="string"==typeof e?parseInt(e,10):e;if(Ha(e)&&(n*=100),n<100||n>599)throw new Error("invalid HTTP code");let r="success";return n>=300&&n<400?r="redirect":n>=400?r="error":n<200&&(r="info"),r}const Qa={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function Ga(e){return e in Qa}const Xa={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",unevaluatedProperties:"object",properties:"object",patternProperties:"object"};function Ka(e,t=e.type){if(e["x-circular-ref"])return!0;if(void 0!==e.oneOf||void 0!==e.anyOf)return!1;if(e.if&&e.then||e.if&&e.else)return!1;let n=!0;const r=Kt(t);return("object"===t||r&&(null==t?void 0:t.includes("object")))&&(n=void 0!==e.properties?0===Object.keys(e.properties).length:void 0===e.additionalProperties&&void 0===e.unevaluatedProperties&&void 0===e.patternProperties),!Kt(e.items)&&!Kt(e.prefixItems)&&(void 0!==e.items&&!Zt(e.items)&&("array"===t||r&&(null==t?void 0:t.includes("array")))&&(n=Ka(e.items,e.items.type)),n)}function Za(e){return-1!==e.search(/json/i)}function Ja(e,t,n){return Kt(e)?e.map((e=>e.toString())).join(n):"object"==typeof e?Object.keys(e).map((t=>`${t}${n}${e[t]}`)).join(n):t+"="+e.toString()}function es(e,t){return Kt(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):"object"==typeof e?Object.keys(e).map((n=>`${t}[${n}]=${e[n]}`)).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+e.toString()),"")}function ts(e,t,n){const r="__redoc_param_name__",o=t?"*":"";return La.parse(`{?${r}${o}}`).expand({[r]:n}).substring(1).replace(/__redoc_param_name__/g,e)}function ns(e,t){return Za(t)?JSON.stringify(e):(console.warn(`Parameter serialization as ${t} is not supported`),"")}function rs(e,t){return e.in?decodeURIComponent(function(e,t){const{name:n,style:r,explode:o=!1,serializationMime:i}=e;if(i)switch(e.in){case"path":case"header":return ns(t,i);case"cookie":case"query":return`${n}=${ns(t,i)}`;default:return console.warn("Unexpected parameter location: "+e.in),""}if(!r)return console.warn(`Missing style attribute or content for parameter ${n}`),"";switch(e.in){case"path":return function(e,t,n,r){const o=n?"*":"";let i="";"label"===t?i=".":"matrix"===t&&(i=";");const a="__redoc_param_name__";return La.parse(`{${i}${a}${o}}`).expand({[a]:r}).replace(/__redoc_param_name__/g,e)}(n,r,o,t);case"query":return function(e,t,n,r){switch(t){case"form":return ts(e,n,r);case"spaceDelimited":return Kt(r)?n?ts(e,n,r):`${e}=${r.join("%20")}`:(console.warn("The style spaceDelimited is only applicable to arrays"),"");case"pipeDelimited":return Kt(r)?n?ts(e,n,r):`${e}=${r.join("|")}`:(console.warn("The style pipeDelimited is only applicable to arrays"),"");case"deepObject":return!n||Kt(r)||"object"!=typeof r?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):es(r,e);default:return console.warn("Unexpected style for query: "+t),""}}(n,r,o,t);case"header":return function(e,t,n){if("simple"===e){const e=t?"*":"",r="__redoc_param_name__",o=La.parse(`{${r}${e}}`);return decodeURIComponent(o.expand({[r]:n}))}return console.warn("Unexpected style for header: "+e),""}(r,o,t);case"cookie":return function(e,t,n,r){return"form"===t?ts(e,n,r):(console.warn("Unexpected style for cookie: "+t),"")}(n,r,o,t);default:return console.warn("Unexpected parameter location: "+e.in),""}}(e,t)):String(t)}const os=/^#\/components\/(schemas|pathItems)\/([^/]+)$/;function is(e){return os.test(e||"")}function as(e){var t;const[n]=(null==(t=null==e?void 0:e.match(os))?void 0:t.reverse())||[];return n}function ss(e,t,n){let r;return void 0!==t&&void 0!==n?r=t===n?`= ${t} ${e}`:`[ ${t} .. ${n} ] ${e}`:void 0!==n?r=`<= ${n} ${e}`:void 0!==t&&(r=1===t?"non-empty":`>= ${t} ${e}`),r}function ls(e){const t=[],n=ss("characters",e.minLength,e.maxLength);void 0!==n&&t.push(n);const r=ss("items",e.minItems,e.maxItems);void 0!==r&&t.push(r);const o=ss("properties",e.minProperties,e.maxProperties);void 0!==o&&t.push(o);const i=function(e){if(void 0===e)return;const t=e.toString(10);return/^0\.0*1$/.test(t)?`decimal places <= ${t.split(".")[1].length}`:`multiple of ${t}`}(e.multipleOf);void 0!==i&&t.push(i);const a=function(e){var t,n;const r="number"==typeof e.exclusiveMinimum?Math.min(e.exclusiveMinimum,null!=(t=e.minimum)?t:1/0):e.minimum,o="number"==typeof e.exclusiveMaximum?Math.max(e.exclusiveMaximum,null!=(n=e.maximum)?n:-1/0):e.maximum,i="number"==typeof e.exclusiveMinimum||e.exclusiveMinimum,a="number"==typeof e.exclusiveMaximum||e.exclusiveMaximum;return void 0!==r&&void 0!==o?`${i?"( ":"[ "}${r} .. ${o}${a?" )":" ]"}`:void 0!==o?`${a?"< ":"<= "}${o}`:void 0!==r?`${i?"> ":">= "}${r}`:void 0}(e);return void 0!==a&&t.push(a),e.uniqueItems&&t.push("unique"),t}function cs(e,t=[]){const n=[],r=[],o=[];return e.forEach((e=>{e.required?t.includes(e.name)?r.push(e):o.push(e):n.push(e)})),r.sort(((e,n)=>t.indexOf(e.name)-t.indexOf(n.name))),[...r,...o,...n]}function us(e,t){return[...e].sort(((e,n)=>e[t].localeCompare(n[t])))}function ps(e,t){const n=void 0===e?function(e){try{const t=Gt(e);return t.search="",t.hash="",t.toString()}catch(t){return e}}((()=>{if(!Lt)return"";const e=window.location.href;return e.endsWith(".html")?(0,$a.dirname)(e):e})()):(0,$a.dirname)(e);return 0===t.length&&(t=[{url:"/"}]),t.map((e=>{return Va(Wa({},e),{url:(t=e.url,function(e,t){let n;if(t.startsWith("//"))try{n=`${new URL(e).protocol||"https:"}${t}`}catch(e){n=`https:${t}`}else if(function(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}(t))n=t;else if(t.startsWith("/"))try{const r=new URL(e);r.pathname=t,n=r.href}catch(e){n=t}else n=qt(e)+"/"+t;return qt(n)}(n,t)),description:e.description||""});var t}))}let ds="section/Authentication/";const fs=e=>({delete:"del",options:"opts"}[e]||e);function hs(e,t){return Object.keys(e).filter((e=>!0===t?e.startsWith("x-")&&!function(e){return e in{"x-circular-ref":!0,"x-parentRefs":!0,"x-refsStack":!0,"x-code-samples":!0,"x-codeSamples":!0,"x-displayName":!0,"x-examples":!0,"x-ignoredHeaderParameters":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-additionalPropertiesName":!0,"x-explicitMappingOnly":!0}}(e):e.startsWith("x-")&&t.indexOf(e)>-1)).reduce(((t,n)=>(t[n]=e[n],t)),{})}var ms=n(5660);n(7874),n(4279),n(5433),n(6213),n(2731),n(9016),n(7046),n(57),n(2503),n(6841),n(6854),n(4335),n(1426),n(8246),n(9945),n(366),n(2939),n(9385),n(2886),n(5266),n(874),n(3358),n(7899);const gs="clike";function ys(e,t=gs){t=t.toLowerCase();let n=ms.languages[t];return n||(n=ms.languages[function(e){return{json:"js","c++":"cpp","c#":"csharp","objective-c":"objectivec",shell:"bash",viml:"vim"}[e]||gs}(t)]),ms.highlight(e.toString(),n,t)}ms.languages.insertBefore("javascript","string",{"property string":{pattern:/([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,lookbehind:!0}},void 0),ms.languages.insertBefore("javascript","punctuation",{property:{pattern:/([{,]\s*)[a-z]\w*(?=\s*:)/i,lookbehind:!0}},void 0);var bs=Object.defineProperty,vs=Object.defineProperties,xs=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,ks=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,Ss=(e,t,n)=>t in e?bs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Es=(e,t)=>{for(var n in t||(t={}))ks.call(t,n)&&Ss(e,n,t[n]);if(ws)for(var n of ws(t))Os.call(t,n)&&Ss(e,n,t[n]);return e},_s=(e,t)=>vs(e,xs(t));const js={};function As(e,t,n){if("function"==typeof n.value)return function(e,t,n){if(!n.value||n.value.length>0)throw new Error("@memoize decorator can only be applied to methods of zero arguments");const r=`_memoized_${t}`,o=n.value;return e[r]=js,_s(Es({},n),{value(){return this[r]===js&&(this[r]=o.call(this)),this[r]}})}(e,t,n);if("function"==typeof n.get)return function(e,t,n){const r=`_memoized_${t}`,o=n.get;return e[r]=js,_s(Es({},n),{get(){return this[r]===js&&(this[r]=o.call(this)),this[r]}})}(e,t,n);throw new Error("@memoize decorator can be applied to methods or getters, got "+String(n.value)+" instead")}function Ps(e){let t=1;return"-"===e[0]&&(t=-1,e=e.substr(1)),(n,r)=>-1==t?r[e].localeCompare(n[e]):n[e].localeCompare(r[e])}var Cs=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor;const Is="hashchange";class Rs{constructor(){this.emit=()=>{this._emiter.emit(Is,this.currentId)},this._emiter=new Ca.EventEmitter,this.bind()}get currentId(){return Lt?decodeURIComponent(window.location.hash.substring(1)):""}linkForId(e){return e?"#"+e:""}subscribe(e){const t=this._emiter.addListener(Is,e);return()=>t.removeListener(Is,e)}bind(){Lt&&window.addEventListener("hashchange",this.emit,!1)}dispose(){Lt&&window.removeEventListener("hashchange",this.emit)}replace(e,t=!1){Lt&&null!=e&&e!==this.currentId&&(t?window.history.replaceState(null,"",window.location.href.split("#")[0]+this.linkForId(e)):(window.history.pushState(null,"",window.location.href.split("#")[0]+this.linkForId(e)),this.emit()))}}((e,t,n,r)=>{for(var o,i=Ts(t,n),a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);i&&Cs(t,n,i)})([Pa.bind,Pa.debounce],Rs.prototype,"replace");const Ns=new Rs;var $s=n(813);class Ls{constructor(){this.map=new Map,this.prevTerm=""}add(e){this.map.set(e,new $s(e))}delete(e){this.map.delete(e)}addOnly(e){this.map.forEach(((t,n)=>{-1===e.indexOf(n)&&(t.unmark(),this.map.delete(n))}));for(const t of e)this.map.has(t)||this.map.set(t,new $s(t))}clearAll(){this.unmark(),this.map.clear()}mark(e){(e||this.prevTerm)&&(this.map.forEach((t=>{t.unmark(),t.mark(e||this.prevTerm)})),this.prevTerm=e||this.prevTerm)}unmark(){this.map.forEach((e=>e.unmark())),this.prevTerm=""}}let Ds={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Ms=/[&<>"']/,Fs=/[&<>"']/g,zs=/[<>"']|&(?!#?\w+;)/,Us=/[<>"']|&(?!#?\w+;)/g,Bs={"&":"&","<":"<",">":">",'"':""","'":"'"},qs=e=>Bs[e];function Ws(e,t){if(t){if(Ms.test(e))return e.replace(Fs,qs)}else if(zs.test(e))return e.replace(Us,qs);return e}const Vs=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Hs(e){return e.replace(Vs,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Ys=/(^|[^\[])\^/g;function Qs(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(Ys,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const Gs=/[^\w:]/g,Xs=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ks(e,t,n){if(e){let e;try{e=decodeURIComponent(Hs(n)).replace(Gs,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Xs.test(n)&&(n=function(e,t){Zs[" "+e]||(Js.test(e)?Zs[" "+e]=e+"/":Zs[" "+e]=il(e,"/",!0));const n=-1===(e=Zs[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(el,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(tl,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Zs={},Js=/^[^:]+:\/*[^/]*$/,el=/^([^:]+:)[\s\S]*$/,tl=/^([^:]+:\/*[^/]*)[\s\S]*$/,nl={exec:function(){}};function rl(e){let t,n,r=1;for(;r{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})),r=n.split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ll(e,t,n,r){const o=t.href,i=t.title?Ws(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:o,title:i,text:a,tokens:r.inlineTokens(a,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:o,title:i,text:Ws(a)}}class cl{constructor(e){this.options=e||Ds}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:il(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=il(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,i,a,s,l,c,u,p,d,f,h=t[1].trim();const m=h.length>1,g={type:"list",raw:"",ordered:m,start:m?+h.slice(0,-1):"",loose:!1,items:[]};h=m?`\\d{1,9}\\${h.slice(-1)}`:`\\${h}`,this.options.pedantic&&(h=m?h:"[*+-]");const y=new RegExp(`^( {0,3}${h})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,t=y.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),f=!0),!f){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(c))&&!r.test(e);){if(c.search(/[^ ]/)>=i||!c.trim())d+="\n"+c.slice(i);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(o="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:d}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=d.trimRight(),g.raw=g.raw.trimRight();const b=g.items.length;for(a=0;a"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!g.loose&&e.length&&t&&(g.loose=!0,g.items[a].loose=!0)}return g}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):Ws(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:ol(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,o,i,a=e.align.length;for(n=0;n({text:e})));for(a=e.header.length,r=0;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Ws(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=il(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,o=0;for(;o-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),ll(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ll(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let o,i,a=n,s=0;const l="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(a-=i,a>0)continue;if(i=Math.min(i,i+a+s),Math.min(n,i)%2){const t=e.slice(1,n+r.index+i);return{type:"em",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+i-1);return{type:"strong",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=Ws(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=Ws(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Ws(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=Ws(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=Ws(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Ws(n[0]):n[0]:Ws(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const ul={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:nl,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};ul.def=Qs(ul.def).replace("label",ul._label).replace("title",ul._title).getRegex(),ul.bullet=/(?:[*+-]|\d{1,9}[.)])/,ul.listItemStart=Qs(/^( *)(bull) */).replace("bull",ul.bullet).getRegex(),ul.list=Qs(ul.list).replace(/bull/g,ul.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ul.def.source+")").getRegex(),ul._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ul._comment=/|$)/,ul.html=Qs(ul.html,"i").replace("comment",ul._comment).replace("tag",ul._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ul.paragraph=Qs(ul._paragraph).replace("hr",ul.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ul._tag).getRegex(),ul.blockquote=Qs(ul.blockquote).replace("paragraph",ul.paragraph).getRegex(),ul.normal=rl({},ul),ul.gfm=rl({},ul.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ul.gfm.table=Qs(ul.gfm.table).replace("hr",ul.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ul._tag).getRegex(),ul.gfm.paragraph=Qs(ul._paragraph).replace("hr",ul.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ul.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ul._tag).getRegex(),ul.pedantic=rl({},ul.normal,{html:Qs("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ul._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nl,paragraph:Qs(ul.normal._paragraph).replace("hr",ul.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ul.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const pl={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:nl,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:nl,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}pl._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",pl.punctuation=Qs(pl.punctuation).replace(/punctuation/g,pl._punctuation).getRegex(),pl.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,pl.escapedEmSt=/\\\*|\\_/g,pl._comment=Qs(ul._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),pl.emStrong.lDelim=Qs(pl.emStrong.lDelim).replace(/punct/g,pl._punctuation).getRegex(),pl.emStrong.rDelimAst=Qs(pl.emStrong.rDelimAst,"g").replace(/punct/g,pl._punctuation).getRegex(),pl.emStrong.rDelimUnd=Qs(pl.emStrong.rDelimUnd,"g").replace(/punct/g,pl._punctuation).getRegex(),pl._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,pl._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,pl._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,pl.autolink=Qs(pl.autolink).replace("scheme",pl._scheme).replace("email",pl._email).getRegex(),pl._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,pl.tag=Qs(pl.tag).replace("comment",pl._comment).replace("attribute",pl._attribute).getRegex(),pl._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pl._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,pl._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,pl.link=Qs(pl.link).replace("label",pl._label).replace("href",pl._href).replace("title",pl._title).getRegex(),pl.reflink=Qs(pl.reflink).replace("label",pl._label).replace("ref",ul._label).getRegex(),pl.nolink=Qs(pl.nolink).replace("ref",ul._label).getRegex(),pl.reflinkSearch=Qs(pl.reflinkSearch,"g").replace("reflink",pl.reflink).replace("nolink",pl.nolink).getRegex(),pl.normal=rl({},pl),pl.pedantic=rl({},pl.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Qs(/^!?\[(label)\]\((.*?)\)/).replace("label",pl._label).getRegex(),reflink:Qs(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pl._label).getRegex()}),pl.gfm=rl({},pl.normal,{escape:Qs(pl.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=o.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,o,i,a,s,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,i.index)+"["+sl("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,i.index)+"["+sl("a",i[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,i.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(s=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,l,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,fl))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,fl))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(o,dl))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class ml{constructor(e){this.options=e||Ds}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'
    '+(n?e:Ws(e,!0))+"
    \n":"
    "+(n?e:Ws(e,!0))+"
    \n"}blockquote(e){return`
    \n${e}
    \n`}html(e){return e}heading(e,t,n,r){return this.options.headerIds?`${e}\n`:`${e}\n`}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • \n`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){if(null===(e=Ks(this.options.sanitize,this.options.baseUrl,e)))return n;let r='
    ",r}image(e,t,n){if(null===(e=Ks(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`${n}":">",r}text(e){return e}}class gl{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class yl{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class bl{constructor(e){this.options=e||Ds,this.options.renderer=this.options.renderer||new ml,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new gl,this.slugger=new yl}static parse(e,t){return new bl(t).parse(e)}static parseInline(e,t){return new bl(t).parseInline(e)}parse(e,t=!0){let n,r,o,i,a,s,l,c,u,p,d,f,h,m,g,y,b,v,x,w="";const k=e.length;for(n=0;n0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=v+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=v+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:v}):m+=v),m+=this.parse(g.tokens,h),u+=this.renderer.listitem(m,b,y);w+=this.renderer.list(u,d,f);continue;case"html":w+=this.renderer.html(p.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1{r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),a--,0===a&&i()}))}),0))})),void(0===a&&i())}try{const n=hl.lex(e,t);return t.walkTokens&&vl.walkTokens(n,t.walkTokens),bl.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+Ws(e.message+"",!0)+"
    ";throw e}}vl.options=vl.setOptions=function(e){var t;return rl(vl.defaults,e),t=vl.defaults,Ds=t,vl},vl.getDefaults=function(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},vl.defaults=Ds,vl.use=function(...e){const t=rl({},...e),n=vl.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=vl.defaults.renderer||new ml;for(const t in e.renderer){const r=n[t];n[t]=(...o)=>{let i=e.renderer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.renderer=n}if(e.tokenizer){const n=vl.defaults.tokenizer||new cl;for(const t in e.tokenizer){const r=n[t];n[t]=(...o)=>{let i=e.tokenizer[t].apply(n,o);return!1===i&&(i=r.apply(n,o)),i}}t.tokenizer=n}if(e.walkTokens){const n=vl.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),vl.setOptions(t)}))},vl.walkTokens=function(e,t){for(const n of e)switch(t.call(vl,n),n.type){case"table":for(const e of n.header)vl.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)vl.walkTokens(n.tokens,t);break;case"list":vl.walkTokens(n.items,t);break;default:vl.defaults.extensions&&vl.defaults.extensions.childTokens&&vl.defaults.extensions.childTokens[n.type]?vl.defaults.extensions.childTokens[n.type].forEach((function(e){vl.walkTokens(n[e],t)})):n.tokens&&vl.walkTokens(n.tokens,t)}},vl.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");al(t=rl({},vl.defaults,t||{}));try{const n=hl.lexInline(e,t);return t.walkTokens&&vl.walkTokens(n,t.walkTokens),bl.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+Ws(e.message+"",!0)+"
    ";throw e}},vl.Parser=bl,vl.parser=bl.parse,vl.Renderer=ml,vl.TextRenderer=gl,vl.Lexer=hl,vl.lexer=hl.lex,vl.Tokenizer=cl,vl.Slugger=yl,vl.parse=vl,vl.options,vl.setOptions,vl.use,vl.walkTokens,vl.parseInline,bl.parse,hl.lex;var xl=Object.defineProperty,wl=Object.defineProperties,kl=Object.getOwnPropertyDescriptors,Ol=Object.getOwnPropertySymbols,Sl=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable,_l=(e,t,n)=>t in e?xl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jl=(e,t)=>{for(var n in t||(t={}))Sl.call(t,n)&&_l(e,n,t[n]);if(Ol)for(var n of Ol(t))El.call(t,n)&&_l(e,n,t[n]);return e},Al=(e,t)=>wl(e,kl(t));const Pl=new vl.Renderer;vl.setOptions({renderer:Pl,highlight:(e,t)=>ys(e,t)});const Cl="(?:^ {0,3}\x3c!-- ReDoc-Inject:\\s+?<({component}).*?/?>\\s+?--\x3e\\s*$|(?:^ {0,3}<({component})([\\s\\S]*?)>([\\s\\S]*?)|^ {0,3}<({component})([\\s\\S]*?)(?:/>|\\n{2,})))";class Tl{constructor(e,t){this.options=e,this.parentId=t,this.headings=[],this.headingRule=(e,t,n,r)=>(1===t?this.currentTopHeading=this.saveHeading(e,t):2===t&&this.saveHeading(e,t,this.currentTopHeading&&this.currentTopHeading.items,this.currentTopHeading&&this.currentTopHeading.id),this.originalHeadingRule(e,t,n,r)),this.parentId=t,this.parser=new vl.Parser,this.headingEnhanceRenderer=new vl.Renderer,this.originalHeadingRule=this.headingEnhanceRenderer.heading.bind(this.headingEnhanceRenderer),this.headingEnhanceRenderer.heading=this.headingRule}static containsComponent(e,t){return new RegExp(Cl.replace(/{component}/g,t),"gmi").test(e)}static getTextBeforeHading(e,t){const n=e.search(new RegExp(`^##?\\s+${t}`,"m"));return n>-1?e.substring(0,n):e}saveHeading(e,t,n=this.headings,r){e=function(e){return e.replace(/&#(\d+);/g,((e,t)=>String.fromCharCode(parseInt(t,10)))).replace(/&/g,"&").replace(/"/g,'"')}(e);const o={id:r?`${r}/${Qt(e)}`:`${this.parentId||"section"}/${Qt(e)}`,name:e,level:t,items:[]};return n.push(o),o}flattenHeadings(e){if(void 0===e)return[];const t=[];for(const n of e)t.push(n),t.push(...this.flattenHeadings(n.items));return t}attachHeadingsDescriptions(e){const t=e=>new RegExp(`##?\\s+${e.name.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}s*(\n|\r\n|$|s*)`),n=this.flattenHeadings(this.headings);if(n.length<1)return;let r=n[0],o=t(r),i=e.search(o);for(let a=1;a-1&&(this.description=this.description.substring(0,n)),this.downloadLink=this.getDownloadLink(),this.downloadFileName=this.getDownloadFileName()}getDownloadLink(){if(this.options.downloadDefinitionUrl)return this.options.downloadDefinitionUrl;if(this.parser.specUrl)return this.parser.specUrl;if(Lt&&window.Blob&&window.URL&&window.URL.createObjectURL){const e=new Blob([JSON.stringify(this.parser.spec,null,2)],{type:"application/json"});return window.URL.createObjectURL(e)}}getDownloadFileName(){return this.parser.specUrl||this.options.downloadDefinitionUrl?this.options.downloadFileName:this.options.downloadFileName||"openapi.json"}}var Nl=Object.defineProperty,$l=Object.defineProperties,Ll=Object.getOwnPropertyDescriptors,Dl=Object.getOwnPropertySymbols,Ml=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable,zl=(e,t,n)=>t in e?Nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class Ul{constructor(e,t){const n=t.spec.components&&t.spec.components.securitySchemes||{};this.schemes=Object.keys(e||{}).map((r=>{const{resolved:o}=t.deref(n[r]),i=e[r]||[];if(!o)return void console.warn(`Non existing security scheme referenced: ${r}. Skipping`);const a=o["x-displayName"]||r;return((e,t)=>$l(e,Ll(t)))(((e,t)=>{for(var n in t||(t={}))Ml.call(t,n)&&zl(e,n,t[n]);if(Dl)for(var n of Dl(t))Fl.call(t,n)&&zl(e,n,t[n]);return e})({},o),{id:r,sectionId:r,displayName:a,scopes:i})})).filter((e=>void 0!==e))}}var Bl=Object.defineProperty,ql=Object.defineProperties,Wl=Object.getOwnPropertyDescriptor,Vl=Object.getOwnPropertyDescriptors,Hl=Object.getOwnPropertySymbols,Yl=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable,Gl=(e,t,n)=>t in e?Bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xl=(e,t)=>{for(var n in t||(t={}))Yl.call(t,n)&&Gl(e,n,t[n]);if(Hl)for(var n of Hl(t))Ql.call(t,n)&&Gl(e,n,t[n]);return e},Kl=(e,t)=>ql(e,Vl(t)),Zl=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?Wl(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Bl(t,n,i),i};class Jl{constructor(e,t,n,r,o){this.expanded=!1,this.operations=[],Pi(this),this.name=t;const{resolved:i}=e.deref(n);for(const n of Object.keys(i)){const a=i[n],s=Object.keys(a).filter(Ga);for(const i of s){const s=a[i],l=new ku(e,Kl(Xl({},s),{pathName:n,pointer:Na.compile([r,t,n,i]),httpVerb:i,pathParameters:a.parameters||[],pathServers:a.servers}),void 0,o,!0);this.operations.push(l)}}}toggle(){this.expanded=!this.expanded}}Zl([to],Jl.prototype,"expanded",2),Zl([ti],Jl.prototype,"toggle",1);var ec=Object.defineProperty,tc=Object.defineProperties,nc=Object.getOwnPropertyDescriptors,rc=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,ic=Object.prototype.propertyIsEnumerable,ac=(e,t,n)=>t in e?ec(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sc=(e,t)=>{for(var n in t||(t={}))oc.call(t,n)&&ac(e,n,t[n]);if(rc)for(var n of rc(t))ic.call(t,n)&&ac(e,n,t[n]);return e},lc=(e,t)=>tc(e,nc(t)),cc=(e,t)=>{var n={};for(var r in e)oc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&rc)for(var r of rc(e))t.indexOf(r)<0&&ic.call(e,r)&&(n[r]=e[r]);return n};function uc(e,t){return t&&e[e.length-1]!==t?[...e,t]:e}function pc(e,t){return t?e.concat(t):e}class dc{constructor(e,t,n=new fn({})){this.options=n,this.allowMergeRefs=!1,this.byRef=e=>{let t;if(this.spec){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{t=Na.get(this.spec,e)}catch(e){}return t||{}}},this.validate(e),this.spec=e,this.allowMergeRefs=e.openapi.startsWith("3.1");const r=Lt?window.location.href:"";"string"==typeof t&&(this.specUrl=r?new URL(t,r).href:t)}validate(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}isRef(e){return!!e&&void 0!==e.$ref&&null!==e.$ref}deref(e,t=[],n=!1){const r=null==e?void 0:e["x-refsStack"];if(t=pc(t,r),this.isRef(e)){const r=as(e.$ref);if(r&&this.options.ignoreNamedSchemas.has(r))return{resolved:{type:"object",title:r},refsStack:t};let o=this.byRef(e.$ref);if(!o)throw new Error(`Failed to resolve $ref "${e.$ref}"`);let i=t;if(t.includes(e.$ref)||t.length>999)o=Object.assign({},o,{"x-circular-ref":!0});else if(this.isRef(o)){const e=this.deref(o,t,n);i=e.refsStack,o=e.resolved}return i=uc(t,e.$ref),o=this.allowMergeRefs?this.mergeRefs(e,o,n):o,{resolved:o,refsStack:i}}return{resolved:e,refsStack:pc(t,r)}}mergeRefs(e,t,n){const r=e,{$ref:o}=r,i=cc(r,["$ref"]),a=Object.keys(i);if(0===a.length)return t;if(n&&a.some((e=>!["description","title","externalDocs","x-refsStack","x-parentRefs","readOnly","writeOnly"].includes(e)))){const e=i,{description:n,title:r,readOnly:o,writeOnly:a}=e;return{allOf:[{description:n,title:r,readOnly:o,writeOnly:a},t,cc(e,["description","title","readOnly","writeOnly"])]}}return sc(sc({},t),i)}mergeAllOf(e,t,n){var r;if(e["x-circular-ref"])return e;if(void 0===(e=this.hoistOneOfs(e,n)).allOf)return e;let o=lc(sc({},e),{"x-parentRefs":[],allOf:void 0,title:e.title||as(t)});void 0!==o.properties&&"object"==typeof o.properties&&(o.properties=sc({},o.properties)),void 0!==o.items&&"object"==typeof o.items&&(o.items=sc({},o.items));const i=function(e,t){const n=new Set;return e.filter((e=>{const t=e.$ref;return!t||t&&!n.has(t)&&n.add(t)}))}(e.allOf.map((e=>{var t;const{resolved:r,refsStack:i}=this.deref(e,n,!0),a=e.$ref||void 0,s=this.mergeAllOf(r,a,i);if(!s["x-circular-ref"]||!s.allOf)return a&&(null==(t=o["x-parentRefs"])||t.push(...s["x-parentRefs"]||[],a)),{$ref:a,refsStack:uc(i,a),schema:s}})).filter((e=>void 0!==e)));for(const{schema:e,refsStack:n}of i){const i=e,{type:a,enum:s,properties:l,items:c,required:u,title:p,description:d,readOnly:f,writeOnly:h,oneOf:m,anyOf:g,"x-circular-ref":y}=i,b=cc(i,["type","enum","properties","items","required","title","description","readOnly","writeOnly","oneOf","anyOf","x-circular-ref"]);if(o.type!==a&&void 0!==o.type&&void 0!==a&&console.warn(`Incompatible types in allOf at "${t}": "${o.type}" and "${a}"`),void 0!==a&&(Array.isArray(a)&&Array.isArray(o.type)?o.type=[...a,...o.type]:o.type=a),void 0!==s&&(Array.isArray(s)&&Array.isArray(o.enum)?o.enum=Array.from(new Set([...s,...o.enum])):o.enum=s),void 0!==l&&"object"==typeof l){o.properties=o.properties||{};for(const e in l){const i=pc(n,null==(r=l[e])?void 0:r["x-refsStack"]);if(o.properties[e]){if(!y){const n=this.mergeAllOf({allOf:[o.properties[e],lc(sc({},l[e]),{"x-refsStack":i})],"x-refsStack":i},t+"/properties/"+e,i);o.properties[e]=n}}else o.properties[e]=lc(sc({},l[e]),{"x-refsStack":i})}}if(void 0!==c&&!y){const r="boolean"==typeof o.items?{}:Object.assign({},o.items),i="boolean"==typeof e.items?{}:Object.assign({},e.items);o.items=this.mergeAllOf({allOf:[r,i]},t+"/items",n)}void 0!==m&&(o.oneOf=m),void 0!==g&&(o.anyOf=g),void 0!==u&&(o.required=[...o.required||[],...u]),o=sc(lc(sc({},o),{title:o.title||p,description:o.description||d,readOnly:void 0!==o.readOnly?o.readOnly:f,writeOnly:void 0!==o.writeOnly?o.writeOnly:h,"x-circular-ref":o["x-circular-ref"]||y}),b)}return o}findDerived(e){const t={},n=this.spec.components&&this.spec.components.schemas||{};for(const r in n){const{resolved:o}=this.deref(n[r]);void 0!==o.allOf&&o.allOf.find((t=>void 0!==t.$ref&&e.indexOf(t.$ref)>-1))&&(t["#/components/schemas/"+r]=[o["x-discriminator-value"]||r])}return t}hoistOneOfs(e,t){if(void 0===e.allOf)return e;const n=e.allOf;for(let e=0;e({allOf:[...o,e,...i],"x-refsStack":t})))}}}return e}}var fc=Object.defineProperty,hc=Object.defineProperties,mc=Object.getOwnPropertyDescriptor,gc=Object.getOwnPropertyDescriptors,yc=Object.getOwnPropertySymbols,bc=Object.prototype.hasOwnProperty,vc=Object.prototype.propertyIsEnumerable,xc=(e,t,n)=>t in e?fc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wc=(e,t)=>{for(var n in t||(t={}))bc.call(t,n)&&xc(e,n,t[n]);if(yc)for(var n of yc(t))vc.call(t,n)&&xc(e,n,t[n]);return e},kc=(e,t)=>hc(e,gc(t)),Oc=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?mc(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&fc(t,n,i),i};const Sc=class{constructor(e,t,n,r,o=!1,i=[]){this.options=r,this.refsStack=i,this.typePrefix="",this.isCircular=!1,this.activeOneOf=0,Pi(this),this.pointer=t.$ref||n||"";const{resolved:a,refsStack:s}=e.deref(t,i,!0);this.refsStack=uc(s,this.pointer),this.rawSchema=a,this.schema=e.mergeAllOf(this.rawSchema,this.pointer,this.refsStack),this.init(e,o),r.showExtensions&&(this.extensions=hs(this.schema,r.showExtensions))}activateOneOf(e){this.activeOneOf=e}hasType(e){return this.type===e||Kt(this.type)&&this.type.includes(e)}init(e,t){var n,r,o,i,a,s,l,c;const u=this.schema;if(this.isCircular=!!u["x-circular-ref"],this.title=u.title||is(this.pointer)&&Na.baseName(this.pointer)||"",this.description=u.description||"",this.type=u.type||function(e){if(void 0!==e.type&&!Kt(e.type))return e.type;const t=Object.keys(Xa);for(const n of t){const t=Xa[n];if(void 0!==e[n])return t}return"any"}(u),this.format=u.format,this.enum=u.enum||[],this.example=u.example,this.examples=u.examples,this.deprecated=!!u.deprecated,this.pattern=u.pattern,this.externalDocs=u.externalDocs,this.constraints=ls(u),this.displayFormat=this.format,this.isPrimitive=Ka(u,this.type),this.default=u.default,this.readOnly=!!u.readOnly,this.writeOnly=!!u.writeOnly,this.const=u.const||"",this.contentEncoding=u.contentEncoding,this.contentMediaType=u.contentMediaType,this.minItems=u.minItems,this.maxItems=u.maxItems,(u.nullable||u["x-nullable"])&&(Kt(this.type)&&!this.type.some((e=>null===e||"null"===e))?this.type=[...this.type,"null"]:Kt(this.type)||null===this.type&&"null"===this.type||(this.type=[this.type,"null"])),this.displayType=Kt(this.type)?this.type.map((e=>null===e?"null":e)).join(" or "):this.type,!this.isCircular)if(u.if&&u.then||u.if&&u.else)this.initConditionalOperators(u,e);else if(t||void 0===jc(u)){if(t&&Kt(u.oneOf)&&u.oneOf.find((e=>e.$ref===this.pointer))&&delete u.oneOf,void 0!==u.oneOf)return this.initOneOf(u.oneOf,e),this.oneOfType="One of",void(void 0!==u.anyOf&&console.warn(`oneOf and anyOf are not supported on the same level. Skipping anyOf at ${this.pointer}`));if(void 0!==u.anyOf)return this.initOneOf(u.anyOf,e),void(this.oneOfType="Any of");if(this.hasType("object"))this.fields=_c(e,u,this.pointer,this.options,this.refsStack);else if(this.hasType("array")&&(Kt(u.items)||Kt(u.prefixItems)?this.fields=_c(e,u,this.pointer,this.options,this.refsStack):u.items&&(this.items=new Sc(e,u.items,this.pointer+"/items",this.options,!1,this.refsStack)),this.displayType=u.prefixItems||Kt(u.items)?"items":((null==(n=this.items)?void 0:n.displayType)||this.displayType).split(" or ").map((e=>e.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2"))).join(" or "),this.displayFormat=(null==(r=this.items)?void 0:r.format)||"",this.typePrefix=(null==(o=this.items)?void 0:o.typePrefix)||""+en("arrayOf"),this.title=this.title||(null==(i=this.items)?void 0:i.title)||"",this.isPrimitive=void 0!==(null==(a=this.items)?void 0:a.isPrimitive)?null==(s=this.items)?void 0:s.isPrimitive:this.isPrimitive,void 0===this.example&&void 0!==(null==(l=this.items)?void 0:l.example)&&(this.example=[this.items.example]),(null==(c=this.items)?void 0:c.isPrimitive)&&(this.enum=this.items.enum),Kt(this.type))){const e=this.type.filter((e=>"array"!==e));e.length&&(this.displayType+=` or ${e.join(" or ")}`)}this.enum.length&&this.options.sortEnumValuesAlphabetically&&this.enum.sort()}else this.initDiscriminator(u,e)}initOneOf(e,t){if(this.oneOf=e.map(((e,n)=>{const{resolved:r,refsStack:o}=t.deref(e,this.refsStack,!0),i=t.mergeAllOf(r,this.pointer+"/oneOf/"+n,o),a=is(e.$ref)&&!i.title?Na.baseName(e.$ref):`${i.title||""}${void 0!==i.const&&JSON.stringify(i.const)||""}`;return new Sc(t,kc(wc({},i),{title:a,allOf:[kc(wc({},this.schema),{oneOf:void 0,anyOf:void 0})],discriminator:r.allOf?void 0:i.discriminator}),e.$ref||this.pointer+"/oneOf/"+n,this.options,!1,o)})),this.options.simpleOneOfTypeLabel){const e=function(e){const t=new Set;return function e(n){for(const r of n.oneOf||[])r.oneOf?e(r):r.type&&t.add(r.type)}(e),Array.from(t.values())}(this);this.displayType=e.join(" or ")}else this.displayType=this.oneOf.map((e=>{let t=e.typePrefix+(e.title?`${e.title} (${e.displayType})`:e.displayType);return t.indexOf(" or ")>-1&&(t=`(${t})`),t})).join(" or ")}initDiscriminator(e,t){const n=jc(e);this.discriminatorProp=n.propertyName;const r=t.findDerived([...this.schema["x-parentRefs"]||[],this.pointer]);if(e.oneOf)for(const t of e.oneOf){if(void 0===t.$ref)continue;const e=Na.baseName(t.$ref);r[t.$ref]=e}const o=n.mapping||{};let i=n["x-explicitMappingOnly"]||!1;0===Object.keys(o).length&&(i=!1);const a={};for(const e in o){const t=o[e];Kt(a[t])?a[t].push(e):a[t]=[e]}const s=wc(i?{}:wc({},r),a);let l=[];for(const e of Object.keys(s)){const t=s[e];if(Kt(t))for(const n of t)l.push({$ref:e,name:n});else l.push({$ref:e,name:t})}const c=Object.keys(o);0!==c.length&&(l=l.sort(((e,t)=>{const n=c.indexOf(e.name),r=c.indexOf(t.name);return n<0&&r<0?e.name.localeCompare(t.name):n<0?1:r<0?-1:n-r}))),this.oneOf=l.map((({$ref:e,name:n})=>{const r=new Sc(t,{$ref:e},e,this.options,!0,this.refsStack.slice(0,-1));return r.title=n,r}))}initConditionalOperators(e,t){const n=e,{if:r,else:o={},then:i={}}=n,a=((e,t)=>{var n={};for(var r in e)bc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&yc)for(var r of yc(e))t.indexOf(r)<0&&vc.call(e,r)&&(n[r]=e[r]);return n})(n,["if","else","then"]),s=[{allOf:[a,i,r],title:r&&r["x-displayName"]||(null==r?void 0:r.title)||"case 1"},{allOf:[a,o],title:o&&o["x-displayName"]||(null==o?void 0:o.title)||"case 2"}];this.oneOf=s.map(((e,n)=>new Sc(t,wc({},e),this.pointer+"/oneOf/"+n,this.options,!1,this.refsStack))),this.oneOfType="One of"}};let Ec=Sc;function _c(e,t,n,r,o){const i=t.properties||t.prefixItems||t.items||{},a=t.patternProperties||{},s=t.additionalProperties||t.unevaluatedProperties,l=t.prefixItems?t.items:t.additionalItems,c=t.default;let u=Object.keys(i||[]).map((a=>{let s=i[a];s||(console.warn(`Field "${a}" is invalid, skipping.\n Field must be an object but got ${typeof s} at "${n}"`),s={});const l=void 0!==t.required&&t.required.indexOf(a)>-1;return new Nc(e,{name:t.properties?a:`[${a}]`,required:l,schema:kc(wc({},s),{default:void 0===s.default&&c?c[a]:s.default})},n+"/properties/"+a,r,o)}));return r.sortPropsAlphabetically&&(u=us(u,"name")),r.requiredPropsFirst&&(u=cs(u,r.sortPropsAlphabetically?void 0:t.required)),u.push(...Object.keys(a).map((t=>{let i=a[t];return i||(console.warn(`Field "${t}" is invalid, skipping.\n Field must be an object but got ${typeof i} at "${n}"`),i={}),new Nc(e,{name:t,required:!1,schema:i,kind:"patternProperties"},`${n}/patternProperties/${t}`,r,o)}))),"object"!=typeof s&&!0!==s||u.push(new Nc(e,{name:("object"==typeof s&&s["x-additionalPropertiesName"]||"property name").concat("*"),required:!1,schema:!0===s?{}:s,kind:"additionalProperties"},n+"/additionalProperties",r,o)),u.push(...function({parser:e,schema:t=!1,fieldsCount:n,$ref:r,options:o,refsStack:i}){return Zt(t)?t?[new Nc(e,{name:`[${n}...]`,schema:{}},`${r}/additionalItems`,o,i)]:[]:Kt(t)?[...t.map(((t,a)=>new Nc(e,{name:`[${n+a}]`,schema:t},`${r}/additionalItems`,o,i)))]:Ht(t)?[new Nc(e,{name:`[${n}...]`,schema:t},`${r}/additionalItems`,o,i)]:[]}({parser:e,schema:l,fieldsCount:u.length,$ref:n,options:r,refsStack:o})),u}function jc(e){return e.discriminator||e["x-discriminator"]}Oc([to],Ec.prototype,"activeOneOf",2),Oc([ti],Ec.prototype,"activateOneOf",1);const Ac={};class Pc{constructor(e,t,n,r){this.mime=n;const{resolved:o}=e.deref(t);this.value=o.value,this.summary=o.summary,this.description=o.description,o.externalValue&&(this.externalValueUrl=new URL(o.externalValue,e.specUrl).href),"application/x-www-form-urlencoded"===n&&this.value&&"object"==typeof this.value&&(this.value=function(e,t={}){if(Kt(e))throw new Error("Payload must have fields: "+e.toString());return Object.keys(e).map((n=>{const r=e[n],{style:o="form",explode:i=!0}=t[n]||{};switch(o){case"form":return ts(n,i,r);case"spaceDelimited":return Ja(r,n,"%20");case"pipeDelimited":return Ja(r,n,"|");case"deepObject":return es(r,n);default:return console.warn("Incorrect or unsupported encoding style: "+o),""}})).join("&")}(this.value,r))}getExternalValue(e){return this.externalValueUrl?(this.externalValueUrl in Ac||(Ac[this.externalValueUrl]=fetch(this.externalValueUrl).then((t=>t.text().then((n=>{if(!t.ok)return Promise.reject(new Error(n));if(!Za(e))return n;try{return JSON.parse(n)}catch(e){return n}}))))),Ac[this.externalValueUrl]):Promise.resolve(void 0)}}var Cc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,Ic=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?Tc(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Cc(t,n,i),i};const Rc={path:{style:"simple",explode:!1},query:{style:"form",explode:!0},header:{style:"simple",explode:!1},cookie:{style:"form",explode:!0}};class Nc{constructor(e,t,n,r,o){var i,a,s,l,c;this.expanded=void 0,Pi(this);const{resolved:u}=e.deref(t);this.kind=t.kind||"field",this.name=t.name||u.name,this.in=u.in,this.required=!!u.required;let p=u.schema,d="";if(!p&&u.in&&u.content&&(d=Object.keys(u.content)[0],p=u.content[d]&&u.content[d].schema),this.schema=new Ec(e,p||{},n,r,!1,o),this.description=void 0===u.description?this.schema.description||"":u.description,this.example=u.example||this.schema.example,void 0!==u.examples||void 0!==this.schema.examples){const t=u.examples||this.schema.examples;this.examples=Kt(t)?t:Bt(t,((t,n)=>new Pc(e,t,n,u.encoding)))}d?this.serializationMime=d:u.style?this.style=u.style:this.in&&(this.style=null!=(a=null==(i=Rc[this.in])?void 0:i.style)?a:"form"),void 0===u.explode&&this.in?this.explode=null==(l=null==(s=Rc[this.in])?void 0:s.explode)||l:this.explode=!!u.explode,this.deprecated=void 0===u.deprecated?!!this.schema.deprecated:u.deprecated,r.showExtensions&&(this.extensions=hs(u,r.showExtensions)),this.const=(null==(c=this.schema)?void 0:c.const)||(null==u?void 0:u.const)||""}toggle(){this.expanded=!this.expanded}collapse(){this.expanded=!1}expand(){this.expanded=!0}}function $c(e){return e<10?"0"+e:e}function Lc(e,t){return t>e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function Dc(...e){const t=e=>e&&"object"==typeof e;return e.reduce(((e,n)=>(Object.keys(n||{}).forEach((r=>{const o=e[r],i=n[r];t(o)&&t(i)?e[r]=Dc(o,i):e[r]=i})),e)),Array.isArray(e[e.length-1])?[]:{})}function Mc(e){return{value:"object"===e?{}:"array"===e?[]:void 0}}function Fc(e,t){t&&e.pop()}Ic([to],Nc.prototype,"expanded",2),Ic([ti],Nc.prototype,"toggle",1),Ic([ti],Nc.prototype,"collapse",1),Ic([ti],Nc.prototype,"expand",1);const zc={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function Uc(e){if(void 0!==e.type)return Array.isArray(e.type)?0===e.type.length?null:e.type[0]:e.type;const t=Object.keys(zc);for(var n=0;nt.maxSampleDepth)return Fc(qc,r),Mc(Uc(e));if(e.$ref){if(!n)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let o=decodeURIComponent(e.$ref);o.startsWith("#")&&(o=o.substring(1));const i=Ia().get(n,o);let a;return!0!==Bc[o]?(Bc[o]=!0,a=Hc(i,t,n,r),Bc[o]=!1):a=Mc(Uc(i)),Fc(qc,r),a}if(void 0!==e.example)return Fc(qc,r),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(void 0!==e.allOf)return Fc(qc,r),Vc(e)||function(e,t,n,r,o){let i=Hc(e,n,r);const a=[];for(let e of t){const{type:t,readOnly:s,writeOnly:l,value:c}=Hc({type:i.type,...e},n,r,o);i.type&&t&&t!==i.type&&(console.warn("allOf: schemas with different types can't be merged"),i.type=t),i.type=i.type||t,i.readOnly=i.readOnly||s,i.writeOnly=i.writeOnly||l,null!=c&&a.push(c)}if("object"===i.type)return i.value=Dc(i.value||{},...a.filter((e=>"object"==typeof e))),i;{"array"===i.type&&(n.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const e=a[a.length-1];return i.value=null!=e?e:i.value,i}}({...e,allOf:void 0},e.allOf,t,n,r);if(e.oneOf&&e.oneOf.length)return e.anyOf&&(t.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),Fc(qc,r),a(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]));if(e.anyOf&&e.anyOf.length)return Fc(qc,r),a(e,Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.anyOf[0]));if(e.if&&e.then){Fc(qc,r);const{if:o,then:i,...a}=e;return Hc(Dc(a,o,i),t,n,r)}let o=Wc(e),i=null;if(void 0===o){o=null,i=e.type,Array.isArray(i)&&e.type.length>0&&(i=e.type[0]),i||(i=Uc(e));let a=Kc[i];a&&(o=a(e,t,n,r))}return Fc(qc,r),{value:o,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i};function a(e,o){const i=Vc(e);if(void 0!==i)return i;const a=Hc({...e,oneOf:void 0,anyOf:void 0},t,n,r),s=Hc(o,t,n,r);if("object"==typeof a.value&&"object"==typeof s.value){const e=Dc(a.value,s.value);return{...s,value:e}}return s}}function Yc(e){let t=0;if("boolean"==typeof e.exclusiveMinimum||"boolean"==typeof e.exclusiveMaximum){if(e.maximum&&e.minimum)return t=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&t>=e.maximum||!e.exclusiveMaximum&&t>e.maximum)&&(t=(e.maximum+e.minimum)/2),t;if(e.minimum)return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(e.maximum)return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(e.minimum)return e.minimum;e.exclusiveMinimum?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):e.exclusiveMaximum?t=Math.floor(e.exclusiveMaximum)-1:e.maximum&&(t=e.maximum)}return t}function Qc({min:e,max:t,omitTime:n,omitDate:r}){let o=function(e,t,n,r){var o=n?"":e.getUTCFullYear()+"-"+$c(e.getUTCMonth()+1)+"-"+$c(e.getUTCDate());return t||(o+="T"+$c(e.getUTCHours())+":"+$c(e.getUTCMinutes())+":"+$c(e.getUTCSeconds())+"Z"),o}(new Date("2019-08-24T14:15:22.123Z"),n,r);return o.lengtht&&console.warn(`Using maxLength = ${t} is incorrect with format "date-time"`),o}function Gc(e,t){let n=Lc("string",e);return t&&n.length>t&&(n=n.substring(0,t)),n}const Xc={email:function(){return"user@example.com"},"idn-email":function(){return"пошта@укр.нет"},password:function(e,t){let n="pa$$word";return e>n.length&&(n+="_",n+=Lc("qwerty!@#$%^123456",e-n.length).substring(0,e-n.length)),n},"date-time":function(e,t){return Qc({min:e,max:t,omitTime:!1,omitDate:!1})},date:function(e,t){return Qc({min:e,max:t,omitTime:!0,omitDate:!1})},time:function(e,t){return Qc({min:e,max:t,omitTime:!1,omitDate:!0}).slice(1)},ipv4:function(){return"192.168.0.1"},ipv6:function(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"},hostname:function(){return"example.com"},"idn-hostname":function(){return"приклад.укр"},iri:function(){return"http://example.com/entity/1"},"iri-reference":function(){return"/entity/1"},uri:function(){return"http://example.com"},"uri-reference":function(){return"../dictionary"},"uri-template":function(){return"http://example.com/{endpoint}"},uuid:function(e,t,n){return function(e){var t=function(e){var t=0;if(0==e.length)return t;for(var n=0;n>>5)|0;return e=t^((n|=0)<<17|n>>>15),t=n+(r|=0)|0,n=r+o|0,((r=e+o|0)>>>0)/4294967296}}(t,t,t,t);return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{var t=16*n()%16|0;return("x"==e?t:3&t|8).toString(16)}))}(n||"id")},default:Gc,"json-pointer":function(){return"/json/pointer"},"relative-json-pointer":function(){return"1/relative/json/pointer"},regex:function(){return"/regex/"}};var Kc={};const Zc={skipReadOnly:!1,maxSampleDepth:15};function Jc(e,t,n){let r=Object.assign({},Zc,t);return Bc={},qc=[],Hc(e,r,n).value}function eu(e,t){Kc[e]=t}eu("array",(function(e,t={},n,r){const o=r&&r.depth||1;let i=Math.min(null!=e.maxItems?e.maxItems:1/0,e.minItems||1);const a=e.prefixItems||e.items||e.contains;Array.isArray(a)&&(i=Math.max(i,a.length));let s=[];if(!a)return s;for(let e=0;e(e[t]=!0,e)),{});Object.keys(e.properties).forEach((a=>{if(t.skipNonRequired&&!r.hasOwnProperty(a))return;const s=Hc(e.properties[a],t,n,{propertyName:a,depth:i+1});t.skipReadOnly&&s.readOnly||t.skipWriteOnly&&s.writeOnly||(o[a]=s.value)}))}if(e&&"object"==typeof e.additionalProperties){const r=e.additionalProperties["x-additionalPropertiesName"]||"property";o[`${String(r)}1`]=Hc(e.additionalProperties,t,n,{depth:i+1}).value,o[`${String(r)}2`]=Hc(e.additionalProperties,t,n,{depth:i+1}).value}return o})),eu("string",(function(e,t,n,r){let o=e.format||"default",i=Xc[o]||Gc,a=r&&r.propertyName;return i(0|e.minLength,e.maxLength,a)}));class tu{constructor(e,t,n,r,o){this.name=t,this.isRequestType=n,this.schema=r.schema&&new Ec(e,r.schema,"",o),this.onlyRequiredInSamples=o.onlyRequiredInSamples,this.generatedPayloadSamplesMaxDepth=o.generatedPayloadSamplesMaxDepth,void 0!==r.examples?this.examples=Bt(r.examples,(n=>new Pc(e,n,t,r.encoding))):void 0!==r.example?this.examples={default:new Pc(e,{value:e.deref(r.example).resolved},t,r.encoding)}:Za(t)&&this.generateExample(e,r)}generateExample(e,t){const n={skipReadOnly:this.isRequestType,skipWriteOnly:!this.isRequestType,skipNonRequired:this.isRequestType&&this.onlyRequiredInSamples,maxSampleDepth:this.generatedPayloadSamplesMaxDepth};if(this.schema&&this.schema.oneOf){this.examples={};for(const r of this.schema.oneOf){const o=Jc(r.rawSchema,n,e.spec);this.schema.discriminatorProp&&"object"==typeof o&&o&&(o[this.schema.discriminatorProp]=r.title),this.examples[r.title]=new Pc(e,{value:o},this.name,t.encoding)}}else this.schema&&(this.examples={default:new Pc(e,{value:Jc(t.schema,n,e.spec)},this.name,t.encoding)})}}var nu=Object.defineProperty,ru=Object.getOwnPropertyDescriptor,ou=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?ru(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&nu(t,n,i),i};class iu{constructor(e,t,n,r){this.isRequestType=n,this.activeMimeIdx=0,Pi(this),r.unstable_ignoreMimeParameters&&(t=function(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n],o=n.split(";")[0].trim();t[o]?t[o]=Wa(Wa({},t[o]),r):t[o]=r})),t}(t)),this.mediaTypes=Object.keys(t).map((o=>{const i=t[o];return new tu(e,o,n,i,r)}))}activate(e){this.activeMimeIdx=e}get active(){return this.mediaTypes[this.activeMimeIdx]}get hasSample(){return this.mediaTypes.filter((e=>!!e.examples)).length>0}}ou([to],iu.prototype,"activeMimeIdx",2),ou([ti],iu.prototype,"activate",1),ou([io],iu.prototype,"active",1);class au{constructor({parser:e,infoOrRef:t,options:n,isEvent:r}){const o=!r,{resolved:i}=e.deref(t);this.description=i.description||"",this.required=i.required;const a=function(e){let t=e.content;const n=e["x-examples"],r=e["x-example"];if(n){t=Wa({},t);for(const e of Object.keys(n)){const r=n[e];t[e]=Va(Wa({},t[e]),{examples:r})}}else if(r){t=Wa({},t);for(const e of Object.keys(r)){const n=r[e];t[e]=Va(Wa({},t[e]),{example:n})}}return t}(i);void 0!==a&&(this.content=new iu(e,a,o,n))}}var su=Object.defineProperty,lu=Object.defineProperties,cu=Object.getOwnPropertyDescriptor,uu=Object.getOwnPropertyDescriptors,pu=Object.getOwnPropertySymbols,du=Object.prototype.hasOwnProperty,fu=Object.prototype.propertyIsEnumerable,hu=(e,t,n)=>t in e?su(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mu=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?cu(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&su(t,n,i),i};class gu{constructor({parser:e,code:t,defaultAsError:n,infoOrRef:r,options:o,isEvent:i}){this.expanded=!1,this.headers=[],Pi(this),this.expanded="all"===o.expandResponses||o.expandResponses[t];const{resolved:a}=e.deref(r);this.code=t,void 0!==a.content&&(this.content=new iu(e,a.content,i,o)),void 0!==a["x-summary"]?(this.summary=a["x-summary"],this.description=a.description||""):(this.summary=a.description||"",this.description=""),this.type=Ya(t,n);const s=a.headers;void 0!==s&&(this.headers=Object.keys(s).map((t=>{const n=s[t];return new Nc(e,((e,t)=>lu(e,uu(t)))(((e,t)=>{for(var n in t||(t={}))du.call(t,n)&&hu(e,n,t[n]);if(pu)for(var n of pu(t))fu.call(t,n)&&hu(e,n,t[n]);return e})({},n),{name:t}),"",o)}))),o.showExtensions&&(this.extensions=hs(a,o.showExtensions))}toggle(){this.expanded=!this.expanded}}mu([to],gu.prototype,"expanded",2),mu([ti],gu.prototype,"toggle",1);var yu=Object.defineProperty,bu=Object.getOwnPropertyDescriptor,vu=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?bu(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&yu(t,n,i),i};function xu(e){return"payload"===e.lang&&e.requestBodyContent}let wu=!1;class ku{constructor(e,t,n,r,o=!1){var i;this.parser=e,this.operationSpec=t,this.options=r,this.type="operation",this.items=[],this.ready=!0,this.active=!1,this.expanded=!1,Pi(this),this.pointer=t.pointer,this.description=t.description,this.parent=n,this.externalDocs=t.externalDocs,this.deprecated=!!t.deprecated,this.httpVerb=t.httpVerb,this.deprecated=!!t.deprecated,this.operationId=t.operationId,this.path=t.pathName,this.isCallback=o,this.isWebhook=t.isWebhook,this.isEvent=this.isCallback||this.isWebhook,this.name=(i=t).summary||i.operationId||i.description&&i.description.substring(0,50)||i.pathName||"",this.sidebarLabel=r.sideNavStyle===tn.IdOnly?this.operationId||this.path:r.sideNavStyle===tn.PathOnly?this.path:this.name,this.isCallback?(this.security=(t.security||[]).map((t=>new Ul(t,e))),this.servers=ps("",t.servers||t.pathServers||[])):(this.operationHash=t.operationId&&"operation/"+t.operationId,this.id=void 0!==t.operationId?(n?n.id+"/":"")+this.operationHash:void 0!==n?n.id+this.pointer:this.pointer,this.security=(t.security||e.spec.security||[]).map((t=>new Ul(t,e))),this.servers=ps(e.specUrl,t.servers||t.pathServers||e.spec.servers||[])),r.showExtensions&&(this.extensions=hs(t,r.showExtensions))}activate(){this.active=!0}deactivate(){this.active=!1}toggle(){this.expanded=!this.expanded}expand(){this.parent&&this.parent.expand()}collapse(){}get requestBody(){return this.operationSpec.requestBody&&new au({parser:this.parser,infoOrRef:this.operationSpec.requestBody,options:this.options,isEvent:this.isEvent})}get codeSamples(){let e=this.operationSpec["x-codeSamples"]||this.operationSpec["x-code-samples"]||[];this.operationSpec["x-code-samples"]&&!wu&&(wu=!0,console.warn('"x-code-samples" is deprecated. Use "x-codeSamples" instead'));const t=this.requestBody&&this.requestBody.content;if(t&&t.hasSample){const n=Math.min(e.length,this.options.payloadSampleIdx);e=[...e.slice(0,n),{lang:"payload",label:"Payload",source:"",requestBodyContent:t},...e.slice(n)]}return e}get parameters(){const e=function(e,t=[],n=[]){const r={};return n.forEach((t=>{({resolved:t}=e.deref(t)),r[t.name+"_"+t.in]=!0})),(t=t.filter((t=>(({resolved:t}=e.deref(t)),!r[t.name+"_"+t.in])))).concat(n)}(this.parser,this.operationSpec.pathParameters,this.operationSpec.parameters).map((e=>new Nc(this.parser,e,this.pointer,this.options)));return this.options.sortPropsAlphabetically?us(e,"name"):this.options.requiredPropsFirst?cs(e):e}get responses(){let e=!1;return Object.keys(this.operationSpec.responses||[]).filter((t=>{return"default"===t||("success"===Ya(t)&&(e=!0),"default"===(n=t)||Wt(n)||Ha(n));var n})).map((t=>new gu({parser:this.parser,code:t,defaultAsError:e,infoOrRef:this.operationSpec.responses[t],options:this.options,isEvent:this.isEvent})))}get callbacks(){return Object.keys(this.operationSpec.callbacks||[]).map((e=>new Jl(this.parser,e,this.operationSpec.callbacks[e],this.pointer,this.options)))}}vu([to],ku.prototype,"ready",2),vu([to],ku.prototype,"active",2),vu([to],ku.prototype,"expanded",2),vu([ti],ku.prototype,"activate",1),vu([ti],ku.prototype,"deactivate",1),vu([ti],ku.prototype,"toggle",1),vu([As],ku.prototype,"requestBody",1),vu([As],ku.prototype,"codeSamples",1),vu([As],ku.prototype,"parameters",1),vu([As],ku.prototype,"responses",1),vu([As],ku.prototype,"callbacks",1);var Ou=Object.defineProperty,Su=Object.defineProperties,Eu=Object.getOwnPropertyDescriptors,_u=Object.getOwnPropertySymbols,ju=Object.prototype.hasOwnProperty,Au=Object.prototype.propertyIsEnumerable,Pu=(e,t,n)=>t in e?Ou(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cu=(e,t)=>{for(var n in t||(t={}))ju.call(t,n)&&Pu(e,n,t[n]);if(_u)for(var n of _u(t))Au.call(t,n)&&Pu(e,n,t[n]);return e},Tu=(e,t)=>Su(e,Eu(t));class Iu{constructor(e,t,n){this.operations=[];const{resolved:r}=e.deref(n||{});this.initWebhooks(e,r,t)}initWebhooks(e,t,n){for(const r of Object.keys(t)){const o=t[r],i=Object.keys(o).filter(Ga);for(const t of i){const r=o[t];if(o.$ref){const r=e.deref(o||{});this.initWebhooks(e,{[t]:r},n)}if(!r)continue;const i=new ku(e,Tu(Cu({},r),{httpVerb:t}),void 0,n,!1);this.operations.push(i)}}}}class Ru{constructor(e,t,n){const{resolved:r}=e.deref(n);this.id=t,this.sectionId=ds+t,this.type=r.type,this.displayName=r["x-displayName"]||t,this.description=r.description||"","apiKey"===r.type&&(this.apiKey={name:r.name,in:r.in}),"http"===r.type&&(this.http={scheme:r.scheme,bearerFormat:r.bearerFormat}),"openIdConnect"===r.type&&(this.openId={connectUrl:r.openIdConnectUrl}),"oauth2"===r.type&&r.flows&&(this.flows=r.flows)}}class Nu{constructor(e){const t=e.spec.components&&e.spec.components.securitySchemes||{};this.schemes=Object.keys(t).map((n=>new Ru(e,n,t[n])))}}var $u=Object.defineProperty,Lu=Object.getOwnPropertySymbols,Du=Object.prototype.hasOwnProperty,Mu=Object.prototype.propertyIsEnumerable,Fu=(e,t,n)=>t in e?$u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zu=(e,t)=>{for(var n in t||(t={}))Du.call(t,n)&&Fu(e,n,t[n]);if(Lu)for(var n of Lu(t))Mu.call(t,n)&&Fu(e,n,t[n]);return e};class Uu{constructor(e,t,n){var r,o,i;this.options=n,this.parser=new dc(e,t,n),this.info=new Rl(this.parser,this.options),this.externalDocs=this.parser.spec.externalDocs,this.contentItems=tp.buildStructure(this.parser,this.options),this.securitySchemes=new Nu(this.parser);const a=zu(zu({},null==(o=null==(r=this.parser)?void 0:r.spec)?void 0:o["x-webhooks"]),null==(i=this.parser)?void 0:i.spec.webhooks);this.webhooks=new Iu(this.parser,n,a)}}var Bu=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Wu=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?qu(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Bu(t,n,i),i};class Vu{constructor(e,t,n){this.items=[],this.active=!1,this.expanded=!1,Pi(this),this.id=t.id||e+"/"+Qt(t.name),this.type=e,this.name=t["x-displayName"]||t.name,this.level=t.level||1,this.sidebarLabel=this.name,this.description=t.description||"";const r=t.items;r&&r.length&&(this.description=Tl.getTextBeforeHading(this.description,r[0].name)),this.parent=n,this.externalDocs=t.externalDocs,"group"===this.type&&(this.expanded=!0)}activate(){this.active=!0}expand(){this.parent&&this.parent.expand(),this.expanded=!0}collapse(){"group"!==this.type&&(this.expanded=!1)}deactivate(){this.active=!1}}Wu([to],Vu.prototype,"active",2),Wu([to],Vu.prototype,"expanded",2),Wu([ti],Vu.prototype,"activate",1),Wu([ti],Vu.prototype,"expand",1),Wu([ti],Vu.prototype,"collapse",1),Wu([ti],Vu.prototype,"deactivate",1);var Hu=Object.defineProperty,Yu=Object.defineProperties,Qu=Object.getOwnPropertyDescriptors,Gu=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,Ku=Object.prototype.propertyIsEnumerable,Zu=(e,t,n)=>t in e?Hu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ju=(e,t)=>{for(var n in t||(t={}))Xu.call(t,n)&&Zu(e,n,t[n]);if(Gu)for(var n of Gu(t))Ku.call(t,n)&&Zu(e,n,t[n]);return e},ep=(e,t)=>Yu(e,Qu(t));class tp{static buildStructure(e,t){const n=e.spec,r=[],o=tp.getTagsWithOperations(e,n);return r.push(...tp.addMarkdownItems(n.info.description||"",void 0,1,t)),n["x-tagGroups"]&&n["x-tagGroups"].length>0?r.push(...tp.getTagGroupsItems(e,void 0,n["x-tagGroups"],o,t)):r.push(...tp.getTagsItems(e,o,void 0,void 0,t)),r}static addMarkdownItems(e,t,n,r){const o=new Tl(r,null==t?void 0:t.id).extractHeadings(e||"");o.length&&t&&t.description&&(t.description=Tl.getTextBeforeHading(t.description,o[0].name));const i=(e,t,n=1)=>t.map((t=>{const r=new Vu("section",t,e);return r.depth=n,t.items&&(r.items=i(r,t.items,n+1)),r}));return i(t,o,n)}static getTagGroupsItems(e,t,n,r,o){const i=[];for(const a of n){const n=new Vu("group",a,t);n.depth=0,n.items=tp.getTagsItems(e,r,n,a,o),i.push(n)}return i}static getTagsItems(e,t,n,r,o){let i;i=void 0===r?Object.keys(t):r.tags;const a=i.map((e=>t[e]?(t[e].used=!0,t[e]):(console.warn(`Non-existing tag "${e}" is added to the group "${r.name}"`),null))),s=[];for(const t of a){if(!t)continue;const r=new Vu("tag",t,n);if(r.depth=1,""===t.name){const n=[...tp.addMarkdownItems(t.description||"",r,r.depth+1,o),...this.getOperationsItems(e,void 0,t,r.depth+1,o)];s.push(...n);continue}const i=this.getTagRelatedSchema({parser:e,tag:t,parent:r});r.items=[...i,...tp.addMarkdownItems(t.description||"",r,r.depth+1,o),...this.getOperationsItems(e,r,t,r.depth+1,o)],s.push(r)}return o.sortTagsAlphabetically&&s.sort(Ps("name")),s}static getOperationsItems(e,t,n,r,o){if(0===n.operations.length)return[];const i=[];for(const a of n.operations){const n=new ku(e,a,t,o);n.depth=r,i.push(n)}return o.sortOperationsAlphabetically&&i.sort(Ps("name")),i}static getTagsWithOperations(e,t){const n={},r=t["x-webhooks"]||t.webhooks;for(const e of t.tags||[])n[e.name]=ep(Ju({},e),{operations:[]});function o(e,t,r){for(const i of Object.keys(t)){const a=t[i],s=Object.keys(a).filter(Ga);for(const t of s){const s=a[t];if(a.$ref){const{resolved:t}=e.deref(a);o(e,{[i]:t},r);continue}let l=null==s?void 0:s.tags;l&&l.length||(l=[""]);for(const e of l){let o=n[e];void 0===o&&(o={name:e,operations:[]},n[e]=o),o["x-traitTag"]||o.operations.push(ep(Ju({},s),{pathName:i,pointer:Na.compile(["paths",i,t]),httpVerb:t,pathParameters:a.parameters||[],pathServers:a.servers,isWebhook:!!r}))}}}}return r&&o(e,r,!0),t.paths&&o(e,t.paths),n}static getTagRelatedSchema({parser:e,tag:t,parent:n}){var r;return Object.entries((null==(r=e.spec.components)?void 0:r.schemas)||{}).map((([e,r])=>{const o=r["x-tags"];if(!(null==o?void 0:o.includes(t.name)))return null;const i=new Vu("schema",{name:e,"x-displayName":`${r.title||e}`,description:``},n);return i.depth=n.depth+1,i})).filter(Boolean)}}var np=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,op=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?rp(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&np(t,n,i),i};const ip="data-section-id";class ap{constructor(e,t,n){this.scroll=t,this.history=n,this.activeItemIdx=-1,this.sideBarOpened=!1,this.updateOnScroll=e=>{const t=e?1:-1;let n=this.activeItemIdx;for(;(-1!==n||e)&&!(n>=this.flatItems.length-1&&e);){if(e){const e=this.getElementAtOrFirstChild(n+1);if(this.scroll.isElementBellow(e))break}else{const e=this.getElementAt(n);if(this.scroll.isElementAbove(e))break}n+=t}this.activate(this.flatItems[n],!0,!0)},this.updateOnHistory=(e=this.history.currentId)=>{if(!e)return;let t;t=this.flatItems.find((t=>t.id===e)),t?this.activateAndScroll(t,!1):(e.startsWith(ds)&&(t=this.flatItems.find((e=>ds.startsWith(e.id))),this.activateAndScroll(t,!1)),this.scroll.scrollIntoViewBySelector(`[${ip}="${Xt(e)}"]`))},this.getItemById=e=>this.flatItems.find((t=>t.id===e)),Pi(this),this.items=e.contentItems,this.flatItems=function(e,t){const n=[],r=e=>{for(const o of e)n.push(o),o[t]&&r(o[t])};return r(e),n}(this.items||[],"items"),this.flatItems.forEach(((e,t)=>e.absoluteIdx=t)),this.subscribe()}static updateOnHistory(e=Ns.currentId,t){e&&t.scrollIntoViewBySelector(`[${ip}="${Xt(e)}"]`)}subscribe(){this._unsubscribe=this.scroll.subscribe(this.updateOnScroll),this._hashUnsubscribe=this.history.subscribe(this.updateOnHistory)}toggleSidebar(){this.sideBarOpened=!this.sideBarOpened}closeSidebar(){this.sideBarOpened=!1}getElementAt(e){const t=this.flatItems[e];return t&&Dt(`[${ip}="${Xt(t.id)}"]`)||null}getElementAtOrFirstChild(e){let t=this.flatItems[e];return t&&"group"===t.type&&(t=t.items[0]),t&&Dt(`[${ip}="${Xt(t.id)}"]`)||null}get activeItem(){return this.flatItems[this.activeItemIdx]||void 0}activate(e,t=!0,n=!1){if((this.activeItem&&this.activeItem.id)!==(e&&e.id)&&(!e||"group"!==e.type)){if(this.deactivate(this.activeItem),!e)return this.activeItemIdx=-1,void this.history.replace("",n);e.depth<=0||(this.activeItemIdx=e.absoluteIdx,t&&this.history.replace(encodeURI(e.id),n),e.activate(),e.expand())}}deactivate(e){if(void 0!==e)for(e.deactivate();void 0!==e;)e.collapse(),e=e.parent}activateAndScroll(e,t,n){const r=e&&this.getItemById(e.id)||e;this.activate(r,t,n),this.scrollToActive(),r&&r.items.length||this.closeSidebar()}scrollToActive(){this.scroll.scrollIntoView(this.getElementAt(this.activeItemIdx))}dispose(){this._unsubscribe(),this._hashUnsubscribe()}}op([to],ap.prototype,"activeItemIdx",2),op([to],ap.prototype,"sideBarOpened",2),op([ti],ap.prototype,"toggleSidebar",1),op([ti],ap.prototype,"closeSidebar",1),op([ti],ap.prototype,"activate",1),op([ti.bound],ap.prototype,"activateAndScroll",1);var sp=Object.defineProperty,lp=Object.getOwnPropertyDescriptor;const cp="scroll";class up{constructor(e){this.options=e,this._prevOffsetY=0,this._scrollParent=Lt?window:void 0,this._emiter=new Ca,this.bind()}bind(){this._prevOffsetY=this.scrollY(),this._scrollParent&&this._scrollParent.addEventListener("scroll",this.handleScroll)}dispose(){this._scrollParent&&this._scrollParent.removeEventListener("scroll",this.handleScroll),this._emiter.removeAllListeners(cp)}scrollY(){return"undefined"!=typeof HTMLElement&&this._scrollParent instanceof HTMLElement?this._scrollParent.scrollTop:void 0!==this._scrollParent?this._scrollParent.pageYOffset:0}isElementBellow(e){if(null!==e)return e.getBoundingClientRect().top>this.options.scrollYOffset()}isElementAbove(e){if(null===e)return;const t=e.getBoundingClientRect().top;return(t>0?Math.floor(t):Math.ceil(t))<=this.options.scrollYOffset()}subscribe(e){const t=this._emiter.addListener(cp,e);return()=>t.removeListener(cp,e)}scrollIntoView(e){null!==e&&(e.scrollIntoView(),this._scrollParent&&this._scrollParent.scrollBy&&this._scrollParent.scrollBy(0,1-this.options.scrollYOffset()))}scrollIntoViewBySelector(e){const t=Dt(e);this.scrollIntoView(t)}handleScroll(){const e=this.scrollY()-this._prevOffsetY>0;this._prevOffsetY=this.scrollY(),this._emiter.emit(cp,e)}}((e,t,n,r)=>{for(var o,i=lp(t,n),a=e.length-1;a>=0;a--)(o=e[a])&&(i=o(t,n,i)||i);i&&sp(t,n,i)})([Pa.bind,(100,(e,t,n)=>{n.value=function(e,t){let n,r,o,i=null,a=0;const s=()=>{a=(new Date).getTime(),i=null,o=e.apply(n,r),i||(n=r=null)};return function(){const t=(new Date).getTime(),l=100-(t-a);return n=this,r=arguments,l<=0||l>100?(i&&(clearTimeout(i),i=null),a=t,o=e.apply(n,r),i||(n=r=null)):i||(i=setTimeout(s,l)),o}}(n.value)})],up.prototype,"handleScroll");class pp{constructor(){this.searchWorker=function(){let e;if(Lt)try{e=n(722)}catch(t){e=n(4798).default}else e=n(4798).default;return new e}()}indexItems(e){const t=e=>{e.forEach((e=>{"group"!==e.type&&this.add(e.name,(e.description||"").concat(" ",e.path||""),e.id),t(e.items)}))};t(e),this.searchWorker.done()}add(e,t,n){this.searchWorker.add(e,t,n)}dispose(){this.searchWorker.terminate(),this.searchWorker.dispose()}search(e){return this.searchWorker.search(e)}toJS(){return e=this,null,t=function*(){return this.searchWorker.toJS()},new Promise(((n,r)=>{var o=e=>{try{a(t.next(e))}catch(e){r(e)}},i=e=>{try{a(t.throw(e))}catch(e){r(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,i);a((t=t.apply(e,null)).next())}));var e,t}load(e){this.searchWorker.load(e)}fromExternalJS(e,t){e&&t&&this.searchWorker.fromExternalJS(e,t)}}const dp=xn.div` width: calc(100% - ${e=>e.theme.rightPanel.width}); padding: 0 ${e=>e.theme.spacing.sectionHorizontal}px;