((!e.targetTouches || 1 !== e.targetTouches.length) && (!e.pointerType || 'mouse' === e.pointerType || e.pointerType === e.MSPOINTER_TYPE_MOUSE)) ); } function c(e) { if (l(e)) { var t = s(e); (n.pageX = t.pageX), (n.pageY = t.pageY), (r = new Date().getTime()), null !== i && clearInterval(i); } } function u(i) { if (l(i)) { var c = s(i), u = { pageX: c.pageX, pageY: c.pageY }, p = u.pageX - n.pageX, d = u.pageY - n.pageY; if ( (function (e, n, r) { if (!t.contains(e)) return !1; for (var o = e; o && o !== t; ) { if (o.classList.contains(Qp)) return !0; var i = Up(o); if (r && i.overflowY.match(/(scroll|auto)/)) { var a = o.scrollHeight - o.clientHeight; if ( a > 0 && ((o.scrollTop > 0 && r < 0) || (o.scrollTop < a && r > 0)) ) return !0; } if (n && i.overflowX.match(/(scroll|auto)/)) { var s = o.scrollWidth - o.clientWidth; if ( s > 0 && ((o.scrollLeft > 0 && n < 0) || (o.scrollLeft < s && n > 0)) ) return !0; } o = o.parentNode; } return !1; })(i.target, p, d) ) return; a(p, d), (n = u); var f = new Date().getTime(), h = f - r; h > 0 && ((o.x = p / h), (o.y = d / h), (r = f)), (function (n, r) { var o = Math.floor(t.scrollTop), i = t.scrollLeft, a = Math.abs(n), s = Math.abs(r); if (s > a) { if ( (r < 0 && o === e.contentHeight - e.containerHeight) || (r > 0 && 0 === o) ) return 0 === window.scrollY && r > 0 && ud.isChrome; } else if ( a > s && ((n < 0 && i === e.contentWidth - e.containerWidth) || (n > 0 && 0 === i)) ) return !0; return !0; })(p, d) && i.preventDefault(); } } function p() { e.settings.swipeEasing && (clearInterval(i), (i = setInterval(function () { e.isInitialized ? clearInterval(i) : o.x || o.y ? Math.abs(o.x) < 0.01 && Math.abs(o.y) < 0.01 ? clearInterval(i) : e.element ? (a(30 * o.x, 30 * o.y), (o.x *= 0.8), (o.y *= 0.8)) : clearInterval(i) : clearInterval(i); }, 10))); } } }, md = function (e, t) { var n = this; if ( (void 0 === t && (t = {}), 'string' == typeof e && (e = document.querySelector(e)), !e || !e.nodeName) ) throw new Error( 'no element is specified to initialize PerfectScrollbar' ); for (var r in ((this.element = e), e.classList.add('ps'), (this.settings = { handlers: [ 'click-rail', 'drag-thumb', 'keyboard', 'wheel', 'touch' ], maxScrollbarLength: null, minScrollbarLength: null, scrollingThreshold: 1e3, scrollXMarginOffset: 0, scrollYMarginOffset: 0, suppressScrollX: !1, suppressScrollY: !1, swipeEasing: !0, useBothWheelAxes: !1, wheelPropagation: !0, wheelSpeed: 1 }), t)) this.settings[r] = t[r]; (this.containerWidth = null), (this.containerHeight = null), (this.contentWidth = null), (this.contentHeight = null); var o, i, a = function () { return e.classList.add(Xp); }, s = function () { return e.classList.remove(Xp); }; (this.isRtl = 'rtl' === Up(e).direction), !0 === this.isRtl && e.classList.add('ps__rtl'), (this.isNegativeScroll = ((i = e.scrollLeft), (e.scrollLeft = -1), (o = e.scrollLeft < 0), (e.scrollLeft = i), o)), (this.negativeScrollAdjustment = this.isNegativeScroll ? e.scrollWidth - e.clientWidth : 0), (this.event = new ad()), (this.ownerDocument = e.ownerDocument || document), (this.scrollbarXRail = Bp(Gp('x'))), e.appendChild(this.scrollbarXRail), (this.scrollbarX = Bp(Kp('x'))), this.scrollbarXRail.appendChild(this.scrollbarX), this.scrollbarX.setAttribute('tabindex', 0), this.event.bind(this.scrollbarX, 'focus', a), this.event.bind(this.scrollbarX, 'blur', s), (this.scrollbarXActive = null), (this.scrollbarXWidth = null), (this.scrollbarXLeft = null); var l = Up(this.scrollbarXRail); (this.scrollbarXBottom = parseInt(l.bottom, 10)), isNaN(this.scrollbarXBottom) ? ((this.isScrollbarXUsingBottom = !1), (this.scrollbarXTop = cd(l.top))) : (this.isScrollbarXUsingBottom = !0), (this.railBorderXWidth = cd(l.borderLeftWidth) + cd(l.borderRightWidth)), Vp(this.scrollbarXRail, { display: 'block' }), (this.railXMarginWidth = cd(l.marginLeft) + cd(l.marginRight)), Vp(this.scrollbarXRail, { display: '' }), (this.railXWidth = null), (this.railXRatio = null), (this.scrollbarYRail = Bp(Gp('y'))), e.appendChild(this.scrollbarYRail), (this.scrollbarY = Bp(Kp('y'))), this.scrollbarYRail.appendChild(this.scrollbarY), this.scrollbarY.setAttribute('tabindex', 0), this.event.bind(this.scrollbarY, 'focus', a), this.event.bind(this.scrollbarY, 'blur', s), (this.scrollbarYActive = null), (this.scrollbarYHeight = null), (this.scrollbarYTop = null); var c = Up(this.scrollbarYRail); (this.scrollbarYRight = parseInt(c.right, 10)), isNaN(this.scrollbarYRight) ? ((this.isScrollbarYUsingRight = !1), (this.scrollbarYLeft = cd(c.left))) : (this.isScrollbarYUsingRight = !0), (this.scrollbarYOuterWidth = this.isRtl ? (function (e) { var t = Up(e); return ( cd(t.width) + cd(t.paddingLeft) + cd(t.paddingRight) + cd(t.borderLeftWidth) + cd(t.borderRightWidth) ); })(this.scrollbarY) : null), (this.railBorderYWidth = cd(c.borderTopWidth) + cd(c.borderBottomWidth)), Vp(this.scrollbarYRail, { display: 'block' }), (this.railYMarginHeight = cd(c.marginTop) + cd(c.marginBottom)), Vp(this.scrollbarYRail, { display: '' }), (this.railYHeight = null), (this.railYRatio = null), (this.reach = { x: e.scrollLeft <= 0 ? 'start' : e.scrollLeft >= this.contentWidth - this.containerWidth ? 'end' : null, y: e.scrollTop <= 0 ? 'start' : e.scrollTop >= this.contentHeight - this.containerHeight ? 'end' : null }), (this.isAlive = !0), this.settings.handlers.forEach(function (e) { return hd[e](n); }), (this.lastScrollTop = Math.floor(e.scrollTop)), (this.lastScrollLeft = e.scrollLeft), this.event.bind(this.element, 'scroll', function (e) { return n.onScroll(e); }), pd(this); }; (md.prototype.update = function () { this.isAlive && ((this.negativeScrollAdjustment = this.isNegativeScroll ? this.element.scrollWidth - this.element.clientWidth : 0), Vp(this.scrollbarXRail, { display: 'block' }), Vp(this.scrollbarYRail, { display: 'block' }), (this.railXMarginWidth = cd(Up(this.scrollbarXRail).marginLeft) + cd(Up(this.scrollbarXRail).marginRight)), (this.railYMarginHeight = cd(Up(this.scrollbarYRail).marginTop) + cd(Up(this.scrollbarYRail).marginBottom)), Vp(this.scrollbarXRail, { display: 'none' }), Vp(this.scrollbarYRail, { display: 'none' }), pd(this), ld(this, 'top', 0, !1, !0), ld(this, 'left', 0, !1, !0), Vp(this.scrollbarXRail, { display: '' }), Vp(this.scrollbarYRail, { display: '' })); }), (md.prototype.onScroll = function (e) { this.isAlive && (pd(this), ld(this, 'top', this.element.scrollTop - this.lastScrollTop), ld(this, 'left', this.element.scrollLeft - this.lastScrollLeft), (this.lastScrollTop = Math.floor(this.element.scrollTop)), (this.lastScrollLeft = this.element.scrollLeft)); }), (md.prototype.destroy = function () { this.isAlive && (this.event.unbindAll(), Hp(this.scrollbarX), Hp(this.scrollbarY), Hp(this.scrollbarXRail), Hp(this.scrollbarYRail), this.removePsClasses(), (this.element = null), (this.scrollbarX = null), (this.scrollbarY = null), (this.scrollbarXRail = null), (this.scrollbarYRail = null), (this.isAlive = !1)); }), (md.prototype.removePsClasses = function () { this.element.className = this.element.className .split(' ') .filter(function (e) { return !e.match(/^ps([-_].+|)$/); }) .join(' '); }); var gd = md, yd = Object.defineProperty, vd = Object.getOwnPropertySymbols, bd = Object.prototype.hasOwnProperty, wd = Object.prototype.propertyIsEnumerable, xd = (e, t, n) => t in e ? yd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n); const kd = gd || t; let _d = ''; qr && ((_d = r(3433)), (_d = ('function' == typeof _d.toString && _d.toString()) || ''), (_d = '[object Object]' === _d ? '' : _d)); const Od = da\`\${_d}\`, Sd = ga.div\` position: relative; \`; class Ed extends n.Component { constructor() { super(...arguments), (this.handleRef = e => { this._container = e; }); } componentDidMount() { const e = (this._container.parentElement && this._container.parentElement.scrollTop) || 0; (this.inst = new kd(this._container, this.props.options || {})), this._container.scrollTo && this._container.scrollTo(0, e); } componentDidUpdate() { this.inst.update(); } componentWillUnmount() { this.inst.destroy(); } render() { const { children: e, className: t, updateFn: r } = this.props; return ( r && r(this.componentDidUpdate.bind(this)), n.createElement( n.Fragment, null, _d && n.createElement(Od, null), n.createElement( Sd, { className: \`scrollbar-container \${t}\`, ref: this.handleRef }, e ) ) ); } } function Pd(e) { return n.createElement(Sa.Consumer, null, t => t.nativeScrollbars ? n.createElement( 'div', { style: { overflow: 'auto', overscrollBehavior: 'contain', msOverflowStyle: '-ms-autohiding-scrollbar' } }, e.children ) : n.createElement( Ed, ((e, t) => { for (var n in t || (t = {})) bd.call(t, n) && xd(e, n, t[n]); if (vd) for (var n of vd(t)) wd.call(t, n) && xd(e, n, t[n]); return e; })({}, e), e.children ) ); } const Ad = ga(({ className: e, style: t }) => n.createElement( 'svg', { className: e, style: t, xmlns: 'http://www.w3.org/2000/svg', width: '16', height: '16', viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }, n.createElement('polyline', { points: '6 9 12 15 18 9' }) ) )\` position: absolute; pointer-events: none; z-index: 1; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); right: 8px; margin: auto; text-align: center; polyline { color: \${e => 'dark' === e.variant && 'white'}; } \`, $d = n.memo(e => { const { options: t, onChange: r, placeholder: o, value: i = '', variant: a, className: s } = e; return n.createElement( 'div', { className: s }, n.createElement(Ad, { variant: a }), n.createElement( 'select', { onChange: e => { const { selectedIndex: n } = e.target; r(t[o ? n - 1 : n]); }, value: i, className: 'dropdown-select' }, o && n.createElement( 'option', { disabled: !0, hidden: !0, value: o }, o ), t.map(({ idx: e, value: t, title: r }, o) => n.createElement( 'option', { key: e || t + o, value: t }, r || t ) ) ), n.createElement('label', null, i) ); }), Cd = ca($d)\` label { box-sizing: border-box; min-width: 100px; outline: none; display: inline-block; font-family: \${e => e.theme.typography.headings.fontFamily}; color: \${({ theme: e }) => e.colors.text.primary}; vertical-align: bottom; width: \${({ fullWidth: e }) => (e ? '100%' : 'auto')}; text-transform: none; padding: 0 22px 0 4px; font-size: 0.929em; line-height: 1.5em; font-family: inherit; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .dropdown-select { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; border: none; appearance: none; cursor: pointer; color: \${({ theme: e }) => e.colors.text.primary}; line-height: inherit; font-family: inherit; } box-sizing: border-box; min-width: 100px; outline: none; display: inline-block; border-radius: 2px; border: 1px solid rgba(38, 50, 56, 0.5); vertical-align: bottom; padding: 2px 0px 2px 6px; position: relative; width: auto; background: white; color: #263238; font-family: \${e => e.theme.typography.headings.fontFamily}; font-size: 0.929em; line-height: 1.5em; cursor: pointer; transition: border 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; &:hover, &:focus-within { border: 1px solid \${e => e.theme.colors.primary.main}; color: \${e => e.theme.colors.primary.main}; box-shadow: 0px 0px 0px 1px \${e => e.theme.colors.primary.main}; } \`, Rd = ca(Cd)\` margin-left: 10px; text-transform: none; font-size: 0.969em; font-size: 1em; border: none; padding: 0 1.2em 0 0; background: transparent; &:hover, &:focus-within { border: none; box-shadow: none; label { color: \${e => e.theme.colors.primary.main}; text-shadow: 0px 0px 0px \${e => e.theme.colors.primary.main}; } } \`, jd = ca.span\` margin-left: 10px; text-transform: none; font-size: 0.929em; color: black; \`; var Td = Object.defineProperty, Id = Object.defineProperties, Nd = Object.getOwnPropertyDescriptors, Dd = Object.getOwnPropertySymbols, Ld = Object.prototype.hasOwnProperty, Md = Object.prototype.propertyIsEnumerable, Fd = (e, t, n) => t in e ? Td(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n), zd = (e, t) => { for (var n in t || (t = {})) Ld.call(t, n) && Fd(e, n, t[n]); if (Dd) for (var n of Dd(t)) Md.call(t, n) && Fd(e, n, t[n]); return e; }, Ud = (e, t) => Id(e, Nd(t)); class Vd { 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(Xa); 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 _u( e, Ud(zd({}, r), { httpVerb: t }), void 0, n, !1 ); this.operations.push(i); } } } } class Bd { constructor(e, t, n) { const { resolved: r } = e.deref(n); (this.id = t), (this.sectionId = hs + 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 qd { constructor(e) { const t = (e.spec.components && e.spec.components.securitySchemes) || {}; this.schemes = Object.keys(t).map(n => new Bd(e, n, t[n])); } } var Wd = Object.defineProperty, Hd = Object.getOwnPropertySymbols, Yd = Object.prototype.hasOwnProperty, Kd = Object.prototype.propertyIsEnumerable, Gd = (e, t, n) => t in e ? Wd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n), Qd = (e, t) => { for (var n in t || (t = {})) Yd.call(t, n) && Gd(e, n, t[n]); if (Hd) for (var n of Hd(t)) Kd.call(t, n) && Gd(e, n, t[n]); return e; }; class Xd { constructor(e, t, n) { var r, o, i; (this.options = n), (this.parser = new fc(e, t, n)), (this.info = new Il(this.parser, this.options)), (this.externalDocs = this.parser.spec.externalDocs), (this.contentItems = df.buildStructure( this.parser, this.options )), (this.securitySchemes = new qd(this.parser)); const a = Qd( Qd( {}, 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 Vd(this.parser, n, a); } } var Jd = Object.defineProperty, Zd = Object.getOwnPropertyDescriptor, ef = (e, t, n, r) => { for ( var o, i = r > 1 ? void 0 : r ? Zd(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 && Jd(t, n, i), i; }; class tf { constructor(e, t, n) { (this.items = []), (this.active = !1), (this.expanded = !1), tn(this), (this.id = t.id || e + '/' + no(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 = jl.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; } } ef([Ae], tf.prototype, 'active', 2), ef([Ae], tf.prototype, 'expanded', 2), ef([Pt], tf.prototype, 'activate', 1), ef([Pt], tf.prototype, 'expand', 1), ef([Pt], tf.prototype, 'collapse', 1), ef([Pt], tf.prototype, 'deactivate', 1); var nf = Object.defineProperty, rf = Object.defineProperties, of = Object.getOwnPropertyDescriptors, af = Object.getOwnPropertySymbols, sf = Object.prototype.hasOwnProperty, lf = Object.prototype.propertyIsEnumerable, cf = (e, t, n) => t in e ? nf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n), uf = (e, t) => { for (var n in t || (t = {})) sf.call(t, n) && cf(e, n, t[n]); if (af) for (var n of af(t)) lf.call(t, n) && cf(e, n, t[n]); return e; }, pf = (e, t) => rf(e, of(t)); class df { static buildStructure(e, t) { const n = e.spec, r = [], o = df.getTagsWithOperations(e, n); return ( r.push( ...df.addMarkdownItems(n.info.description || '', void 0, 1, t) ), n['x-tagGroups'] && n['x-tagGroups'].length > 0 ? r.push( ...df.getTagGroupsItems(e, void 0, n['x-tagGroups'], o, t) ) : r.push(...df.getTagsItems(e, o, void 0, void 0, t)), r ); } static addMarkdownItems(e, t, n, r) { const o = new jl(r, null == t ? void 0 : t.id).extractHeadings( e || '' ); o.length && t && t.description && (t.description = jl.getTextBeforeHading( t.description, o[0].name )); const i = (e, t, n = 1) => t.map(t => { const r = new tf('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 tf('group', a, t); (n.depth = 0), (n.items = df.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 tf('tag', t, n); if (((r.depth = 1), '' !== t.name)) (r.items = [ ...df.addMarkdownItems( t.description || '', r, r.depth + 1, o ), ...this.getOperationsItems(e, r, t, r.depth + 1, o) ]), s.push(r); else { const n = [ ...df.addMarkdownItems( t.description || '', r, r.depth + 1, o ), ...this.getOperationsItems(e, void 0, t, r.depth + 1, o) ]; s.push(...n); } } return o.sortTagsAlphabetically && s.sort(Cs('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 _u(e, a, t, o); (n.depth = r), i.push(n); } return o.sortOperationsAlphabetically && i.sort(Cs('name')), i; } static getTagsWithOperations(e, t) { const n = {}, r = t['x-webhooks'] || t.webhooks; for (const e of t.tags || []) n[e.name] = pf(uf({}, e), { operations: [] }); function o(e, t, r) { for (const i of Object.keys(t)) { const a = t[i], s = Object.keys(a).filter(Xa); 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( pf(uf({}, s), { pathName: i, pointer: Da.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; } } var ff = Object.defineProperty, hf = Object.getOwnPropertyDescriptor, mf = (e, t, n, r) => { for ( var o, i = r > 1 ? void 0 : r ? hf(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 && ff(t, n, i), i; }; const gf = 'data-section-id'; class yf { 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(hs) && ((t = this.flatItems.find(e => hs.startsWith(e.id))), this.activateAndScroll(t, !1)), this.scroll.scrollIntoViewBySelector( \`[\${gf}="\${oo(e)}"]\` )); }), (this.getItemById = e => this.flatItems.find(t => t.id === e)), tn(this), (this.items = e.contentItems), (this.flatItems = (function (e, t) { const n = [], r = e => { for (const t of e) n.push(t), t.items && r(t.items); }; return r(e), n; })(this.items || [])), this.flatItems.forEach((e, t) => (e.absoluteIdx = t)), this.subscribe(); } static updateOnHistory(e = Ns.currentId, t) { e && t.scrollIntoViewBySelector(\`[\${gf}="\${oo(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 && Wr(\`[\${gf}="\${oo(t.id)}"]\`)) || null; } getElementAtOrFirstChild(e) { let t = this.flatItems[e]; return ( t && 'group' === t.type && (t = t.items[0]), (t && Wr(\`[\${gf}="\${oo(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(); } } mf([Ae], yf.prototype, 'activeItemIdx', 2), mf([Ae], yf.prototype, 'sideBarOpened', 2), mf([Pt], yf.prototype, 'toggleSidebar', 1), mf([Pt], yf.prototype, 'closeSidebar', 1), mf([Pt], yf.prototype, 'activate', 1), mf([Pt.bound], yf.prototype, 'activateAndScroll', 1); var vf = Object.defineProperty, bf = Object.getOwnPropertyDescriptor; const wf = 'scroll'; class xf { constructor(e) { (this.options = e), (this._prevOffsetY = 0), (this._scrollParent = qr ? window : void 0), (this._emiter = new ja()), 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(wf); } 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(wf, e); return () => t.removeListener(wf, e); } scrollIntoView(e) { null !== e && (e.scrollIntoView(), this._scrollParent && this._scrollParent.scrollBy && this._scrollParent.scrollBy( 0, 1 - this.options.scrollYOffset() )); } scrollIntoViewBySelector(e) { const t = Wr(e); this.scrollIntoView(t); } handleScroll() { const e = this.scrollY() - this._prevOffsetY > 0; (this._prevOffsetY = this.scrollY()), this._emiter.emit(wf, e); } } ((e, t, n, r) => { for (var o, i = bf(t, n), a = e.length - 1; a >= 0; a--) (o = e[a]) && (i = o(t, n, i) || i); i && vf(t, n, i); })( [ Ra.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 l = new Date().getTime(), c = t - (l - a); return ( (n = this), (r = arguments), c <= 0 || c > t ? (i && (clearTimeout(i), (i = null)), (a = l), (o = e.apply(n, r)), i || (n = r = null)) : i || (i = setTimeout(s, c)), o ); }; })(n.value, 100); }) ], xf.prototype, 'handleScroll' ); class kf { constructor() { this.searchWorker = (function () { let e; if (qr) try { e = r(6980); } catch (t) { e = r(4798).default; } else e = r(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); } } var _f = Object.defineProperty, Of = Object.getOwnPropertySymbols, Sf = Object.prototype.hasOwnProperty, Ef = Object.prototype.propertyIsEnumerable, Pf = (e, t, n) => t in e ? _f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n); function Af(e) { const { Label: t = jd, Dropdown: r = Rd } = e; return 1 === e.options.length ? n.createElement(t, null, e.options[0].value) : n.createElement( r, ((e, t) => { for (var n in t || (t = {})) Sf.call(t, n) && Pf(e, n, t[n]); if (Of) for (var n of Of(t)) Ef.call(t, n) && Pf(e, n, t[n]); return e; })({}, e) ); } var $f = r(7856); const Cf = pa\` a { text-decoration: \${e => e.theme.typography.links.textDecoration}; color: \${e => e.theme.typography.links.color}; &:visited { color: \${e => e.theme.typography.links.visited}; } &:hover { color: \${e => e.theme.typography.links.hover}; text-decoration: \${e => e.theme.typography.links.hoverTextDecoration}; } } \`, Rf = ga(Lp)\` font-family: \${e => e.theme.typography.fontFamily}; font-weight: \${e => e.theme.typography.fontWeightRegular}; line-height: \${e => e.theme.typography.lineHeight}; p { &:last-child { margin-bottom: 0; } } \${({ compact: e }) => e && '\\n p:first-child {\\n margin-top: 0;\\n }\\n p:last-child {\\n margin-bottom: 0;\\n }\\n '} \${({ inline: e }) => e && ' p {\\n display: inline-block;\\n }'} h1 { \${Cu(1)}; color: \${e => e.theme.colors.primary.main}; margin-top: 0; } h2 { \${Cu(2)}; color: \${e => e.theme.colors.text.primary}; } code { color: \${({ theme: e }) => e.typography.code.color}; background-color: \${({ theme: e }) => e.typography.code.backgroundColor}; font-family: \${e => e.theme.typography.code.fontFamily}; border-radius: 2px; border: 1px solid rgba(38, 50, 56, 0.1); padding: 0 \${({ theme: e }) => e.spacing.unit}px; font-size: \${e => e.theme.typography.code.fontSize}; font-weight: \${({ theme: e }) => e.typography.code.fontWeight}; word-break: break-word; } pre { font-family: \${e => e.theme.typography.code.fontFamily}; white-space: \${({ theme: e }) => e.typography.code.wrap ? 'pre-wrap' : 'pre'}; background-color: \${({ theme: e }) => e.codeBlock.backgroundColor}; color: white; padding: \${e => 4 * e.theme.spacing.unit}px; overflow-x: auto; line-height: normal; border-radius: 0px; border: 1px solid rgba(38, 50, 56, 0.1); code { background-color: transparent; color: white; padding: 0; &:before, &:after { content: none; } } } blockquote { margin: 0; margin-bottom: 1em; padding: 0 15px; color: #777; border-left: 4px solid #ddd; } img { max-width: 100%; box-sizing: content-box; } ul, ol { padding-left: 2em; margin: 0; margin-bottom: 1em; ul, ol { margin-bottom: 0; margin-top: 0; } } table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; border-collapse: collapse; border-spacing: 0; margin-top: 1.5em; margin-bottom: 1.5em; } table tr { background-color: #fff; border-top: 1px solid #ccc; &:nth-child(2n) { background-color: \${({ theme: e }) => e.schema.nestedBackground}; } } table th, table td { padding: 6px 13px; border: 1px solid #ddd; } table th { text-align: left; font-weight: bold; } \${Fu('.share-link')}; \${Cf} \${ya('Markdown')}; \`; var jf = Object.defineProperty, Tf = Object.getOwnPropertySymbols, If = Object.prototype.hasOwnProperty, Nf = Object.prototype.propertyIsEnumerable, Df = (e, t, n) => t in e ? jf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : (e[t] = n); const Lf = Rf.withComponent('span'); function Mf(e) { const t = e.inline ? Lf : Rf; return n.createElement(Pa, null, r => { return n.createElement( t, ((e, t) => { for (var n in t || (t = {})) If.call(t, n) && Df(e, n, t[n]); if (Tf) for (var n of Tf(t)) Nf.call(t, n) && Df(e, n, t[n]); return e; })( { className: 'redoc-markdown ' + (e.className || ''), dangerouslySetInnerHTML: { __html: ((o = r.untrustedSpec), (i = e.html), o ? $f.sanitize(i) : i) }, 'data-role': e['data-role'] }, e ) ); var o, i; }); } class Ff extends n.Component { render() { const { source: e, inline: t, compact: r, className: o, 'data-role': i } = this.props, a = new jl(); return n.createElement(Mf, { html: a.renderMd(e), inline: t, compact: r, className: o, 'data-role': i }); } } const zf = ga.div\` position: relative; \`, Uf = ga.div\` position: absolute; min-width: 80px; max-width: 500px; background: #fff; bottom: 100%; left: 50%; margin-bottom: 10px; transform: translateX(-50%); border-radius: 4px; padding: 0.3em 0.6em; text-align: center; box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1); \`, Vf = ga.div\` background: #fff; color: #000; display: inline; font-size: 0.85em; white-space: nowrap; \`, Bf = ga.div\` position: absolute; width: 0; height: 0; bottom: -5px; left: 50%; margin-left: -5px; border-left: solid transparent 5px; border-right: solid transparent 5px; border-top: solid #fff 5px; \`, qf = ga.div\` position: absolute; width: 100%; height: 20px; bottom: -20px; \`; class Wf extends n.Component { render() { const { open: e, title: t, children: r } = this.props; return n.createElement( zf, null, r, e && n.createElement( Uf, null, n.createElement(Vf, null, t), n.createElement(Bf, null), n.createElement(qf, null) ) ); } } const Hf = 'undefined' != typeof document && document.queryCommandSupported && document.queryCommandSupported('copy'); class Yf { static isSupported() { return Hf; } static selectElement(e) { let t, n; document.body.createTextRange ? ((t = document.body.createTextRange()), t.moveToElementText(e), t.select()) : document.createRange && window.getSelection && ((n = window.getSelection()), (t = document.createRange()), t.selectNodeContents(e), n.removeAllRanges(), n.addRange(t)); } static deselect() { if (document.selection) document.selection.empty(); else if (window.getSelection) { const e = window.getSelection(); e && e.removeAllRanges(); } } static copySelected() { let e; try { e = document.execCommand('copy'); } catch (t) { e = !1; } return e; } static copyElement(e) { Yf.selectElement(e); const t = Yf.copySelected(); return t && Yf.deselect(), t; } static copyCustom(e) { const t = document.createElement('textarea'); (t.style.position = 'fixed'), (t.style.top = '0'), (t.style.left = '0'), (t.style.width = '2em'), (t.style.height = '2em'), (t.style.padding = '0'), (t.style.border = 'none'), (t.style.outline = 'none'), (t.style.boxShadow = 'none'), (t.style.background = 'transparent'), (t.value = e), document.body.appendChild(t), t.select(); const n = Yf.copySelected(); return document.body.removeChild(t), n; } } const Kf = e => { const [t, r] = n.useState(!1), o = () => { const t = 'string' == typeof e.data ? e.data : JSON.stringify(e.data, null, 2); Yf.copyCustom(t), i(); }, i = () => { r(!0), setTimeout(() => { r(!1); }, 1500); }; return e.children({ renderCopyButton: () => n.createElement( 'button', { onClick: o }, n.createElement( Wf, { title: Yf.isSupported() ? 'Copied' : 'Not supported in your browser', open: t }, 'Copy' ) ) }); }; let Gf = 1; function Qf(e, t) { Gf = 1; let n = ''; return ( (n += '
'), (n += ''), (n += th(e, t)), (n += ''), (n += '
'), n ); } function Xf(e) { return void 0 !== e ? e .toString() .replace(/&/g, '&') .replace(/"/g, '"') .replace(//g, '>') : ''; } function Jf(e) { return JSON.stringify(e).slice(1, -1); } function Zf(e, t) { return '' + Xf(e) + ''; } function eh(e) { return '' + e + ''; } function th(e, t) { const n = typeof e; let r = ''; return ( null == e ? (r += Zf('null', 'token keyword')) : e && e.constructor === Array ? (Gf++, (r += (function (e, t) { const n = Gf > t ? 'collapsed' : ''; let r = \`\${eh( '[' )}\${eh(']')}\`), o || (r = eh('[ ]')), r; })(e, t)), Gf--) : e && e.constructor === Date ? (r += Zf('"' + e.toISOString() + '"', 'token string')) : 'object' === n ? (Gf++, (r += (function (e, t) { const n = Gf > t ? 'collapsed' : '', r = Object.keys(e), o = r.length; let i = \`\${eh( '{' )}\${eh('}')}\`), a || (i = eh('{ }')), i; })(e, t)), Gf--) : 'number' === n ? (r += Zf(e, 'token number')) : 'string' === n ? /^(http|https):\\/\\/[^\\s]+$/.test(e) ? (r += Zf('"', 'token string') + '' + Xf(Jf(e)) + '' + Zf('"', 'token string')) : (r += Zf('"' + Jf(e) + '"', 'token string')) : 'boolean' === n && (r += Zf(e, 'token boolean')), r ); } const nh = pa\` .redoc-json code > .collapser { display: none; pointer-events: none; } font-family: \${e => e.theme.typography.code.fontFamily}; font-size: \${e => e.theme.typography.code.fontSize}; white-space: \${({ theme: e }) => e.typography.code.wrap ? 'pre-wrap' : 'pre'}; contain: content; overflow-x: auto; .callback-function { color: gray; } .collapser:after { content: '-'; cursor: pointer; } .collapsed > .collapser:after { content: '+'; cursor: pointer; } .ellipsis:after { content: ' \u2026 '; } .collapsible { margin-left: 2em; } .hoverable { padding-top: 1px; padding-bottom: 1px; padding-left: 2px; padding-right: 2px; border-radius: 2px; } .hovered { background-color: rgba(235, 238, 249, 1); } .collapser { background-color: transparent; border: 0; color: #fff; font-family: \${e => e.theme.typography.code.fontFamily}; font-size: \${e => e.theme.typography.code.fontSize}; padding-right: 6px; padding-left: 6px; padding-top: 0; padding-bottom: 0; display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; position: absolute; top: 4px; left: -1.5em; cursor: default; user-select: none; -webkit-user-select: none; padding: 2px; &:focus { outline-color: #fff; outline-style: dotted; outline-width: 1px; } } ul { list-style-type: none; padding: 0px; margin: 0px 0px 0px 26px; } li { position: relative; display: block; } .hoverable { display: inline-block; } .selected { outline-style: solid; outline-width: 1px; outline-style: dotted; } .collapsed > .collapsible { display: none; } .ellipsis { display: none; } .collapsed > .ellipsis { display: inherit; } \`, rh = ga.div\` &:hover > \${Mp} { opacity: 1; } \`, oh = ga(e => { const [t, r] = n.useState(), o = ({ renderCopyButton: t }) => { const o = e.data && Object.values(e.data).some( e => 'object' == typeof e && null !== e ); return n.createElement( rh, null, n.createElement( Mp, null, t(), o && n.createElement( n.Fragment, null, n.createElement( 'button', { onClick: i }, ' Expand all ' ), n.createElement( 'button', { onClick: a }, ' Collapse all ' ) ) ), n.createElement(Sa.Consumer, null, t => n.createElement(Lp, { className: e.className, ref: e => r(e), dangerouslySetInnerHTML: { __html: Qf(e.data, t.jsonSampleExpandLevel) } }) ) ); }, i = () => { const e = null == t ? void 0 : t.getElementsByClassName('collapsible'); for (const t of Array.prototype.slice.call(e)) { const e = t.parentNode; e.classList.remove('collapsed'), e .querySelector('.collapser') .setAttribute('aria-label', 'collapse'); } }, a = () => { const e = null == t ? void 0 : t.getElementsByClassName('collapsible'), n = Array.prototype.slice.call(e, 1); for (const e of n) { const t = e.parentNode; t.classList.add('collapsed'), t .querySelector('.collapser') .setAttribute('aria-label', 'expand'); } }, s = e => { let t; 'collapser' === e.className && ((t = e.parentElement.getElementsByClassName('collapsible')[0]), t.parentElement.classList.contains('collapsed') ? (t.parentElement.classList.remove('collapsed'), e.setAttribute('aria-label', 'collapse')) : (t.parentElement.classList.add('collapsed'), e.setAttribute('aria-label', 'expand'))); }, l = n.useCallback(e => { s(e.target); }, []), c = n.useCallback(e => { 'Enter' === e.key && s(e.target); }, []); return ( n.useEffect( () => ( null == t || t.addEventListener('click', l), null == t || t.addEventListener('focus', c), () => { null == t || t.removeEventListener('click', l), null == t || t.removeEventListener('focus', c); } ), [l, c, t] ), n.createElement(Kf, { data: e.data }, o) ); })\` \${nh}; \`, ih = e => { const { source: t, lang: r } = e; return n.createElement(zp, { dangerouslySetInnerHTML: { __html: vs(t, r) } }); }, ah = e => { const { source: t, lang: r } = e; return n.createElement(Kf, { data: t }, ({ renderCopyButton: e }) => n.createElement( Fp, null, n.createElement(Mp, null, e()), n.createElement(ih, { lang: r, source: t }) ) );