openapi-explorer 0.9.340 → 0.9.342
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! OpenAPI Explorer 0.9.
|
|
1
|
+
/*! OpenAPI Explorer 0.9.342 | Author - Rhosys Developers | License information can be found in openapi-explorer.min.js.LICENSE.txt */
|
|
2
2
|
(()=>{var e,t,n={4054:(e,t,n)=>{"use strict";const r=new WeakMap,a=e=>"function"==typeof e&&r.has(e),i="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,o=(e,t,n=null)=>{for(;t!==n;){const n=t.nextSibling;e.removeChild(t),t=n}},s={},c={},u=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${u}--\x3e`,p=new RegExp(`${u}|${l}`),d="$lit$";class f{constructor(e,t){this.parts=[],this.element=t;const n=[],r=[],a=document.createTreeWalker(t.content,133,null,!1);let i=0,o=-1,s=0;const{strings:c,values:{length:l}}=e;for(;s<l;){const e=a.nextNode();if(null!==e){if(o++,1===e.nodeType){if(e.hasAttributes()){const t=e.attributes,{length:n}=t;let r=0;for(let e=0;e<n;e++)h(t[e].name,d)&&r++;for(;r-- >0;){const t=c[s],n=g.exec(t)[2],r=n.toLowerCase()+d,a=e.getAttribute(r);e.removeAttribute(r);const i=a.split(p);this.parts.push({type:"attribute",index:o,name:n,strings:i}),s+=i.length-1}}"TEMPLATE"===e.tagName&&(r.push(e),a.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(u)>=0){const r=e.parentNode,a=t.split(p),i=a.length-1;for(let t=0;t<i;t++){let n,i=a[t];if(""===i)n=b();else{const e=g.exec(i);null!==e&&h(e[2],d)&&(i=i.slice(0,e.index)+e[1]+e[2].slice(0,-d.length)+e[3]),n=document.createTextNode(i)}r.insertBefore(n,e),this.parts.push({type:"node",index:++o})}""===a[i]?(r.insertBefore(b(),e),n.push(e)):e.data=a[i],s+=i}}else if(8===e.nodeType)if(e.data===u){const t=e.parentNode;null!==e.previousSibling&&o!==i||(o++,t.insertBefore(b(),e)),i=o,this.parts.push({type:"node",index:o}),null===e.nextSibling?e.data="":(n.push(e),o--),s++}else{let t=-1;for(;-1!==(t=e.data.indexOf(u,t+1));)this.parts.push({type:"node",index:-1}),s++}}else a.currentNode=r.pop()}for(const e of n)e.parentNode.removeChild(e)}}const h=(e,t)=>{const n=e.length-t.length;return n>=0&&e.slice(n)===t},m=e=>-1!==e.index,b=()=>document.createComment(""),g=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;class v{constructor(e,t,n){this.__parts=[],this.template=e,this.processor=t,this.options=n}update(e){let t=0;for(const n of this.__parts)void 0!==n&&n.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=i?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],n=this.template.parts,r=document.createTreeWalker(e,133,null,!1);let a,o=0,s=0,c=r.nextNode();for(;o<n.length;)if(a=n[o],m(a)){for(;s<a.index;)s++,"TEMPLATE"===c.nodeName&&(t.push(c),r.currentNode=c.content),null===(c=r.nextNode())&&(r.currentNode=t.pop(),c=r.nextNode());if("node"===a.type){const e=this.processor.handleTextExpression(this.options);e.insertAfterNode(c.previousSibling),this.__parts.push(e)}else this.__parts.push(...this.processor.handleAttributeExpressions(c,a.name,a.strings,this.options));o++}else this.__parts.push(void 0),o++;return i&&(document.adoptNode(e),customElements.upgrade(e)),e}}const y=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),x=` ${u} `;class w{constructor(e,t,n,r){this.strings=e,this.values=t,this.type=n,this.processor=r}getHTML(){const e=this.strings.length-1;let t="",n=!1;for(let r=0;r<e;r++){const e=this.strings[r],a=e.lastIndexOf("\x3c!--");n=(a>-1||n)&&-1===e.indexOf("--\x3e",a+1);const i=g.exec(e);t+=null===i?e+(n?x:l):e.substr(0,i.index)+i[1]+i[2]+d+i[3]+u}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");let t=this.getHTML();return void 0!==y&&(t=y.createHTML(t)),e.innerHTML=t,e}}const k=e=>null===e||!("object"==typeof e||"function"==typeof e),S=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class _{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(let e=0;e<n.length-1;e++)this.parts[e]=this._createPart()}_createPart(){return new A(this)}_getValue(){const e=this.strings,t=e.length-1,n=this.parts;if(1===t&&""===e[0]&&""===e[1]){const e=n[0].value;if("symbol"==typeof e)return String(e);if("string"==typeof e||!S(e))return e}let r="";for(let a=0;a<t;a++){r+=e[a];const t=n[a];if(void 0!==t){const e=t.value;if(k(e)||!S(e))r+="string"==typeof e?e:String(e);else for(const t of e)r+="string"==typeof t?t:String(t)}}return r+=e[t],r}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class A{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===s||k(e)&&e===this.value||(this.value=e,a(e)||(this.committer.dirty=!0))}commit(){for(;a(this.value);){const e=this.value;this.value=s,e(this)}this.value!==s&&this.committer.commit()}}class E{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(b()),this.endNode=e.appendChild(b())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=b()),e.__insert(this.endNode=b())}insertAfterPart(e){e.__insert(this.startNode=b()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null===this.startNode.parentNode)return;for(;a(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=s,e(this)}const e=this.__pendingValue;e!==s&&(k(e)?e!==this.value&&this.__commitText(e):e instanceof w?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):S(e)?this.__commitIterable(e):e===c?(this.value=c,this.clear()):this.__commitText(e))}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){const t=this.startNode.nextSibling,n="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=n:this.__commitNode(document.createTextNode(n)),this.value=e}__commitTemplateResult(e){const t=this.options.templateFactory(e);if(this.value instanceof v&&this.value.template===t)this.value.update(e.values);else{const n=new v(t,e.processor,this.options),r=n._clone();n.update(e.values),this.__commitNode(r),this.value=n}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());const t=this.value;let n,r=0;for(const a of e)n=t[r],void 0===n&&(n=new E(this.options),t.push(n),0===r?n.appendIntoPart(this):n.insertAfterPart(t[r-1])),n.setValue(a),n.commit(),r++;r<t.length&&(t.length=r,this.clear(n&&n.endNode))}clear(e=this.startNode){o(this.startNode.parentNode,e.nextSibling,this.endNode)}}class ${constructor(e,t,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=n}setValue(e){this.__pendingValue=e}commit(){for(;a(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=s,e(this)}if(this.__pendingValue===s)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=s}}class O extends _{constructor(e,t,n){super(e,t,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new C(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class C extends A{}let j=!1;(()=>{try{const e={get capture(){return j=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class T{constructor(e,t,n){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=n,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;a(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=s,e(this)}if(this.__pendingValue===s)return;const e=this.__pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),r=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=R(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=s}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const R=e=>e&&(j?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);const P=new class{handleAttributeExpressions(e,t,n,r){const a=t[0];if("."===a){return new O(e,t.slice(1),n).parts}if("@"===a)return[new T(e,t.slice(1),r.eventContext)];if("?"===a)return[new $(e,t.slice(1),n)];return new _(e,t,n).parts}handleTextExpression(e){return new E(e)}};function I(e){let t=L.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},L.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const r=e.strings.join(u);return n=t.keyString.get(r),void 0===n&&(n=new f(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}const L=new Map,N=new WeakMap;"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const M=(e,...t)=>new w(e,t,"html",P);window.JSCompiler_renameProperty=(e,t)=>e;const B={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},U=(e,t)=>t!==e&&(t==t||e==e),F={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:U},z="finalized";class q extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach(((t,n)=>{const r=this._attributeNameForProperty(n,t);void 0!==r&&(this._attributeToPropertyMap.set(r,n),e.push(r))})),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach(((e,t)=>this._classProperties.set(t,e)))}}static createProperty(e,t=F){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const n="symbol"==typeof e?Symbol():`__${e}`,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const a=this[e];this[t]=r,this.requestUpdateInternal(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||F}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(z)||e.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const n of t)this.createProperty(n,e[n])}}static _attributeNameForProperty(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=U){return n(e,t)}static _propertyValueFromAttribute(e,t){const n=t.type,r=t.converter||B,a="function"==typeof r?r:r.fromAttribute;return a?a(e,n):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const n=t.type,r=t.converter;return(r&&r.toAttribute||B.toAttribute)(e,n)}initialize(){this._updateState=0,this._updatePromise=new Promise((e=>this._enableUpdatingResolver=e)),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach(((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}}))}_applyInstanceProperties(){this._instanceProperties.forEach(((e,t)=>this[t]=e)),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=F){const r=this.constructor,a=r._attributeNameForProperty(e,n);if(void 0!==a){const e=r._propertyValueToAttribute(t,n);if(void 0===e)return;this._updateState=8|this._updateState,null==e?this.removeAttribute(a):this.setAttribute(a,e),this._updateState=-9&this._updateState}}_attributeToProperty(e,t){if(8&this._updateState)return;const n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){const e=n.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(t,e),this._updateState=-17&this._updateState}}requestUpdateInternal(e,t,n){let r=!0;if(void 0!==e){const a=this.constructor;n=n||a.getPropertyOptions(e),a._valueHasChanged(this[e],t,n.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==n.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,n))):r=!1}!this._hasRequestedUpdate&&r&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this.requestUpdateInternal(e,t),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(e){}const e=this.performUpdate();return null!=e&&await e,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{e=this.shouldUpdate(t),e?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach(((e,t)=>this._propertyToAttribute(t,this[t],e))),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}q.finalized=!0;const D=Element.prototype;D.msMatchesSelector||D.webkitMatchesSelector;const H=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W=Symbol();class V{constructor(e,t){if(t!==W)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(H?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const G=e=>new V(String(e),W),K=(e,...t)=>{const n=t.reduce(((t,n,r)=>t+(e=>{if(e instanceof V)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1]),e[0]);return new V(n,W)};(window.litElementVersions||(window.litElementVersions=[])).push("2.4.0");const Y={};class J extends q{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const e=this.getStyles();if(Array.isArray(e)){const t=(e,n)=>e.reduceRight(((e,n)=>Array.isArray(n)?t(n,e):(e.add(n),e)),n),n=t(e,new Set),r=[];n.forEach((e=>r.unshift(e))),this._styles=r}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map((e=>{if(e instanceof CSSStyleSheet&&!H){const t=Array.prototype.slice.call(e.cssRules).reduce(((e,t)=>e+t.cssText),"");return G(t)}return e}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?H?this.renderRoot.adoptedStyleSheets=e.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map((e=>e.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){const t=this.render();super.update(e),t!==Y&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)})))}render(){return Y}}function Z(){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}}J.finalized=!0,J.render=(e,t,n)=>{let r=N.get(t);void 0===r&&(o(t,t.firstChild),N.set(t,r=new E(Object.assign({templateFactory:I},n))),r.appendInto(t)),r.setValue(e),r.commit()};let Q={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 X=/[&<>"']/,ee=/[&<>"']/g,te=/[<>"']|&(?!#?\w+;)/,ne=/[<>"']|&(?!#?\w+;)/g,re={"&":"&","<":"<",">":">",'"':""","'":"'"},ae=e=>re[e];function ie(e,t){if(t){if(X.test(e))return e.replace(ee,ae)}else if(te.test(e))return e.replace(ne,ae);return e}const oe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function se(e){return e.replace(oe,((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 ce=/(^|[^\[])\^/g;function ue(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(ce,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const le=/[^\w:]/g,pe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function de(e,t,n){if(e){let e;try{e=decodeURIComponent(se(n)).replace(le,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!pe.test(n)&&(n=function(e,t){fe[" "+e]||(he.test(e)?fe[" "+e]=e+"/":fe[" "+e]=xe(e,"/",!0));const n=-1===(e=fe[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(me,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(be,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const fe={},he=/^[^:]+:\/*[^/]*$/,me=/^([^:]+:)[\s\S]*$/,be=/^([^:]+:\/*[^/]*)[\s\S]*$/;const ge={exec:function(){}};function ve(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function ye(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,a=t;for(;--a>=0&&"\\"===n[a];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function xe(e,t,n){const r=e.length;if(0===r)return"";let a=0;for(;a<r;){const i=e.charAt(r-a-1);if(i!==t||n){if(i===t||!n)break;a++}else a++}return e.slice(0,r-a)}function we(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ke(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Se(e,t,n,r){const a=t.href,i=t.title?ie(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:a,title:i,text:o,tokens:r.inlineTokens(o,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:a,title:i,text:ie(o)}}class _e{constructor(e){this.options=e||Q}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:xe(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=xe(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,a,i,o,s,c,u,l,p,d,f,h=t[1].trim();const m=h.length>1,b={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 g=new RegExp(`^( {0,3}${h})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,t=g.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),u=t[2].split("\n",1)[0],l=e.split("\n",1)[0],this.options.pedantic?(i=2,d=u.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=u.slice(i),i+=t[1].length),s=!1,!u&&/^ *$/.test(l)&&(n+=l+"\n",e=e.substring(l.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],u=p,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(u))&&!r.test(e);){if(u.search(/[^ ]/)>=i||!u.trim())d+="\n"+u.slice(i);else{if(s)break;d+="\n"+u}s||u.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}b.loose||(c?b.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(a="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),b.items.push({type:"list_item",raw:n,task:!!r,checked:a,loose:!1,text:d}),b.raw+=n}b.items[b.items.length-1].raw=n.trimRight(),b.items[b.items.length-1].text=d.trimRight(),b.raw=b.raw.trimRight();const v=b.items.length;for(o=0;o<v;o++){this.lexer.state.top=!1,b.items[o].tokens=this.lexer.blockTokens(b.items[o].text,[]);const e=b.items[o].tokens.filter((e=>"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}));!b.loose&&e.length&&t&&(b.loose=!0,b.items[o].loose=!0)}return b}}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]):ie(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{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:ye(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,a,i,o=e.align.length;for(n=0;n<o;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(o=e.rows.length,n=0;n<o;n++)e.rows[n]=ye(e.rows[n],e.header.length).map((e=>({text:e})));for(o=e.header.length,r=0;r<o;r++)e.header[r].tokens=[],this.lexer.inline(e.header[r].text,e.header[r].tokens);for(o=e.rows.length,r=0;r<o;r++)for(i=e.rows[r],a=0;a<i.length;a++)i[a].tokens=[],this.lexer.inline(i[a].text,i[a].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:ie(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/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]):ie(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)){if(!/>$/.test(e))return;const t=xe(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,a=0;for(;a<n;a++)if("\\"===e[a])a++;else if(e[a]===t[0])r++;else if(e[a]===t[1]&&(r--,r<0))return a;return-1}(t[2],"()");if(e>-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(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),Se(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 Se(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 a=r[1]||r[2]||"";if(!a||a&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let a,i,o=n,s=0;const c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=c.exec(t));){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(i=a.length,r[3]||r[4]){o+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(o-=i,o>0)continue;if(i=Math.min(i,i+o+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=ie(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=ie(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=ie(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=ie(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=ie(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]):ie(n[0]):n[0]:ie(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Ae={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]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:ge,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?'|\([^()]*\))/};Ae.def=ue(Ae.def).replace("label",Ae._label).replace("title",Ae._title).getRegex(),Ae.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ae.listItemStart=ue(/^( *)(bull) */).replace("bull",Ae.bullet).getRegex(),Ae.list=ue(Ae.list).replace(/bull/g,Ae.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ae.def.source+")").getRegex(),Ae._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",Ae._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ae.html=ue(Ae.html,"i").replace("comment",Ae._comment).replace("tag",Ae._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ae.paragraph=ue(Ae._paragraph).replace("hr",Ae.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ae._tag).getRegex(),Ae.blockquote=ue(Ae.blockquote).replace("paragraph",Ae.paragraph).getRegex(),Ae.normal=ve({},Ae),Ae.gfm=ve({},Ae.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ae.gfm.table=ue(Ae.gfm.table).replace("hr",Ae.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ae._tag).getRegex(),Ae.gfm.paragraph=ue(Ae._paragraph).replace("hr",Ae.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ae.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ae._tag).getRegex(),Ae.pedantic=ve({},Ae.normal,{html:ue("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ae._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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ge,paragraph:ue(Ae.normal._paragraph).replace("hr",Ae.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ae.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Ee={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ge,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\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:ge,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function $e(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Oe(e){let t,n,r="";const a=e.length;for(t=0;t<a;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}Ee._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ee.punctuation=ue(Ee.punctuation).replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ee.escapedEmSt=/\\\*|\\_/g,Ee._comment=ue(Ae._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ee.emStrong.lDelim=ue(Ee.emStrong.lDelim).replace(/punct/g,Ee._punctuation).getRegex(),Ee.emStrong.rDelimAst=ue(Ee.emStrong.rDelimAst,"g").replace(/punct/g,Ee._punctuation).getRegex(),Ee.emStrong.rDelimUnd=ue(Ee.emStrong.rDelimUnd,"g").replace(/punct/g,Ee._punctuation).getRegex(),Ee._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ee._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ee._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])?)+(?![-_])/,Ee.autolink=ue(Ee.autolink).replace("scheme",Ee._scheme).replace("email",Ee._email).getRegex(),Ee._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ee.tag=ue(Ee.tag).replace("comment",Ee._comment).replace("attribute",Ee._attribute).getRegex(),Ee._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ee._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ee._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ee.link=ue(Ee.link).replace("label",Ee._label).replace("href",Ee._href).replace("title",Ee._title).getRegex(),Ee.reflink=ue(Ee.reflink).replace("label",Ee._label).replace("ref",Ae._label).getRegex(),Ee.nolink=ue(Ee.nolink).replace("ref",Ae._label).getRegex(),Ee.reflinkSearch=ue(Ee.reflinkSearch,"g").replace("reflink",Ee.reflink).replace("nolink",Ee.nolink).getRegex(),Ee.normal=ve({},Ee),Ee.pedantic=ve({},Ee.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:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",Ee._label).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ee._label).getRegex()}),Ee.gfm=ve({},Ee.normal,{escape:ue(Ee.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]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ee.gfm.url=ue(Ee.gfm.url,"i").replace("email",Ee.gfm._extended_email).getRegex(),Ee.breaks=ve({},Ee.gfm,{br:ue(Ee.br).replace("{2,}","*").getRegex(),text:ue(Ee.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Ce{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Q,this.options.tokenizer=this.options.tokenizer||new _e,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Ae.normal,inline:Ee.normal};this.options.pedantic?(t.block=Ae.pedantic,t.inline=Ee.pedantic):this.options.gfm&&(t.block=Ae.gfm,this.options.breaks?t.inline=Ee.breaks:t.inline=Ee.gfm),this.tokenizer.rules=t}static get rules(){return{block:Ae,inline:Ee}}static lex(e,t){return new Ce(t).lex(e)}static lexInline(e,t){return new Ce(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,a,i;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>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(a=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&&(a=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a)))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=a.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,a,i,o,s,c=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(c));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,i.index)+"["+ke("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,i.index)+"["+ke("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,i.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(s=""),o=!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,c,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,Oe))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Oe))){if(a=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&&(a=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(a,$e))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),o=!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 je{constructor(e){this.options=e||Q}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?'<pre><code class="'+this.options.langPrefix+ie(r,!0)+'">'+(n?e:ie(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:ie(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=de(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+ie(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=de(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class Te{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 Re{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 Pe{constructor(e){this.options=e||Q,this.options.renderer=this.options.renderer||new je,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Te,this.slugger=new Re}static parse(e,t){return new Pe(t).parse(e)}static parseInline(e,t){return new Pe(t).parseInline(e)}parse(e,t=!0){let n,r,a,i,o,s,c,u,l,p,d,f,h,m,b,g,v,y,x,w="";const k=e.length;for(n=0;n<k;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(x=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==x||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))w+=x||"";else switch(p.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(p.tokens),p.depth,se(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(u="",c="",i=p.header.length,r=0;r<i;r++)c+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(u+=this.renderer.tablerow(c),l="",i=p.rows.length,r=0;r<i;r++){for(s=p.rows[r],c="",o=s.length,a=0;a<o;a++)c+=this.renderer.tablecell(this.parseInline(s[a].tokens),{header:!1,align:p.align[a]});l+=this.renderer.tablerow(c)}w+=this.renderer.table(u,l);continue;case"blockquote":l=this.parse(p.tokens),w+=this.renderer.blockquote(l);continue;case"list":for(d=p.ordered,f=p.start,h=p.loose,i=p.items.length,l="",r=0;r<i;r++)b=p.items[r],g=b.checked,v=b.task,m="",b.task&&(y=this.renderer.checkbox(g),h?b.tokens.length>0&&"paragraph"===b.tokens[0].type?(b.tokens[0].text=y+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&"text"===b.tokens[0].tokens[0].type&&(b.tokens[0].tokens[0].text=y+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:y}):m+=y),m+=this.parse(b.tokens,h),l+=this.renderer.listitem(m,v,g);w+=this.renderer.list(l,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(l=p.tokens?this.parseInline(p.tokens):p.text;n+1<k&&"text"===e[n+1].type;)p=e[++n],l+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);w+=t?this.renderer.paragraph(l):l;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let n,r,a,i="";const o=e.length;for(n=0;n<o;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(a=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==a||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=a||"";else switch(r.type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}function Ie(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),we(t=ve({},Ie.defaults,t||{})),n){const r=t.highlight;let a;try{a=Ce.lex(e,t)}catch(e){return n(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&Ie.walkTokens(a,t.walkTokens),i=Pe.parse(a,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,i)};if(!r||r.length<3)return i();if(delete t.highlight,!a.length)return i();let o=0;return Ie.walkTokens(a,(function(e){"code"===e.type&&(o++,setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),o--,0===o&&i()}))}),0))})),void(0===o&&i())}try{const n=Ce.lex(e,t);return t.walkTokens&&Ie.walkTokens(n,t.walkTokens),Pe.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ie(e.message+"",!0)+"</pre>";throw e}}Ie.options=Ie.setOptions=function(e){var t;return ve(Ie.defaults,e),t=Ie.defaults,Q=t,Ie},Ie.getDefaults=Z,Ie.defaults=Q,Ie.use=function(...e){const t=ve({},...e),n=Ie.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=Ie.defaults.renderer||new je;for(const t in e.renderer){const r=n[t];n[t]=(...a)=>{let i=e.renderer[t].apply(n,a);return!1===i&&(i=r.apply(n,a)),i}}t.renderer=n}if(e.tokenizer){const n=Ie.defaults.tokenizer||new _e;for(const t in e.tokenizer){const r=n[t];n[t]=(...a)=>{let i=e.tokenizer[t].apply(n,a);return!1===i&&(i=r.apply(n,a)),i}}t.tokenizer=n}if(e.walkTokens){const n=Ie.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}r&&(t.extensions=n),Ie.setOptions(t)}))},Ie.walkTokens=function(e,t){for(const n of e)switch(t.call(Ie,n),n.type){case"table":for(const e of n.header)Ie.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Ie.walkTokens(n.tokens,t);break;case"list":Ie.walkTokens(n.items,t);break;default:Ie.defaults.extensions&&Ie.defaults.extensions.childTokens&&Ie.defaults.extensions.childTokens[n.type]?Ie.defaults.extensions.childTokens[n.type].forEach((function(e){Ie.walkTokens(n[e],t)})):n.tokens&&Ie.walkTokens(n.tokens,t)}},Ie.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");we(t=ve({},Ie.defaults,t||{}));try{const n=Ce.lexInline(e,t);return t.walkTokens&&Ie.walkTokens(n,t.walkTokens),Pe.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ie(e.message+"",!0)+"</pre>";throw e}},Ie.Parser=Pe,Ie.parser=Pe.parse,Ie.Renderer=je,Ie.TextRenderer=Te,Ie.Lexer=Ce,Ie.lexer=Ce.lex,Ie.Tokenizer=_e,Ie.Slugger=Re,Ie.parse=Ie;Ie.options,Ie.setOptions,Ie.use,Ie.walkTokens,Ie.parseInline,Pe.parse,Ce.lex;var Le=n(5660),Ne=n.n(Le);n(5251),n(3358),n(7046),n(2503),n(4277),n(7874),n(366),n(57),n(9016);const Me=K`.hover-bg:hover{background:var(--bg3)}::selection{background:var(--selection-bg);color:var(--selection-fg)}.regular-font{font-family:var(--font-regular)}.mono-font{font-family:var(--font-mono)}.title{font-size:calc(var(--font-size-small) + 18px);font-weight:400}.sub-title{font-size:20px}.req-res-title{font-family:var(--font-regular);font-size:calc(var(--font-size-small) + 4px);font-weight:700}.tiny-title{font-size:calc(var(--font-size-small) + 1px);font-weight:700}.regular-font-size{font-size:var(--font-size-regular)}.small-font-size{font-size:var(--font-size-small)}.upper{text-transform:uppercase}.primary-text{color:var(--primary-color)}.bold-text{font-weight:700}.gray-text{color:var(--light-fg)}.red-text{color:var(--red)}.blue-text{color:var(--blue)}.multiline{overflow:scroll;max-height:var(--resp-area-height,300px);color:var(--fg3)}.method-fg.put{color:var(--orange)}.method-fg.post{color:var(--green)}.method-fg.get,.method-fg.head{color:var(--blue)}.method-fg.delete{color:var(--red)}.method-fg.options{color:var(--purple)}.method-fg.patch{color:var(--yellow)}h1{font-family:var(--font-regular);font-size:28px;padding-top:10px;letter-spacing:normal;font-weight:400}h2{font-family:var(--font-regular);font-size:24px;padding-top:10px;letter-spacing:normal;font-weight:400}h3{font-family:var(--font-regular);font-size:18px;padding-top:10px;letter-spacing:normal;font-weight:400}h4{font-family:var(--font-regular);font-size:16px;padding-top:10px;letter-spacing:normal;font-weight:400}h5{font-family:var(--font-regular);font-size:14px;padding-top:10px;letter-spacing:normal;font-weight:400}h6{font-family:var(--font-regular);font-size:14px;padding-top:10px;letter-spacing:normal;font-weight:400}h1,h2,h3,h4,h5{margin-block-end:.2em}h3{margin-top:0}p{margin-block-start:.5em}a{color:var(--blue);cursor:pointer}a.inactive-link{color:var(--fg);text-decoration:none;cursor:text}code,pre{margin:0;font-family:var(--font-mono);font-size:calc(var(--font-size-mono) - 1px)}.m-markdown,.m-markdown-small{display:block}.m-markdown li,.m-markdown p,.m-markdown span{font-size:var(--font-size-regular);line-height:calc(var(--font-size-regular) + 6px)}.m-markdown-small li,.m-markdown-small p,.m-markdown-small span{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 6px)}.m-markdown p:not(:first-child){margin-block-start:24px}.m-markdown-small p:not(:first-child){margin-block-start:12px}.m-markdown-small p:first-child{margin-block-start:0}.m-markdown p,.m-markdown-small p{margin-block-end:0}.toolbar .m-markdown p,.toolbar .m-markdown-small p{margin-block-start:0}.m-markdown code span{font-size:var(--font-size-mono)}.m-markdown code,.m-markdown-small code{padding:1px 6px;border-radius:2px;color:var(--inline-code-fg);background-color:var(--bg3);font-size:calc(var(--font-size-mono));line-height:1.2}.m-markdown-small code{font-size:calc(var(--font-size-mono) - 1px)}.m-markdown pre,.m-markdown-small pre{white-space:pre-wrap;overflow-x:auto;line-height:normal;border-radius:2px;border:1px solid var(--code-border-color)}.m-markdown pre{padding:8px;background-color:var(--code-bg);color:var(--code-fg)}.m-markdown-small pre{margin-top:4px;padding:2px 4px;background-color:var(--bg3);color:var(--fg2)}.m-markdown pre code,.m-markdown-small pre code{border:none;padding:0}.m-markdown pre code{color:var(--code-fg);background-color:var(--code-bg);background-color:transparent}.m-markdown-small pre code{color:var(--fg2);background-color:var(--bg3)}.m-markdown ol,.m-markdown ul{padding-inline-start:30px}.m-markdown-small ol,.m-markdown-small ul{padding-inline-start:20px}.m-markdown a,.m-markdown-small a{color:var(--blue)}.m-markdown img,.m-markdown-small img{max-width:100%}.m-markdown table,.m-markdown-small table{border-spacing:0;margin:10px 0;border-collapse:separate;border:1px solid var(--border-color);border-radius:var(--border-radius);font-size:calc(var(--font-size-small) + 1px);line-height:calc(var(--font-size-small) + 4px);max-width:100%}.m-markdown-small table{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 2px);margin:8px 0}.m-markdown td,.m-markdown th,.m-markdown-small td,.m-markdown-small th{vertical-align:top;border-top:1px solid var(--border-color);line-height:calc(var(--font-size-small) + 4px)}.m-markdown tr:first-child th,.m-markdown-small tr:first-child th{border-top:0 none}.m-markdown td,.m-markdown th{padding:10px 12px}.m-markdown-small td,.m-markdown-small th{padding:8px 8px}.m-markdown th,.m-markdown-small th{font-weight:600;background-color:var(--bg2);vertical-align:middle}.m-markdown-small table code{font-size:calc(var(--font-size-mono) - 2px)}.m-markdown table code{font-size:calc(var(--font-size-mono) - 1px)}.m-markdown blockquote,.m-markdown-small blockquote{margin-inline-start:0;margin-inline-end:0;border-left:3px solid var(--border-color);padding:6px 0 6px 6px}`,Be=K`.m-btn{border-radius:var(--border-radius);font-weight:600;display:inline-block;padding:6px 16px;font-size:var(--font-size-small);outline:0;line-height:1;text-align:center;white-space:nowrap;border:2px solid var(--primary-color);background-color:transparent;transition:background-color .2s;user-select:none;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.m-btn.primary{background-color:var(--primary-color);color:var(--primary-btn-text-color)}.m-btn.thin-border{border-width:1px}.m-btn.large{padding:8px 14px}.m-btn.small{padding:5px 12px}.m-btn.tiny{padding:5px 6px}.m-btn.circle{border-radius:50%}.m-btn:hover{background-color:var(--primary-color);color:var(--primary-btn-text-color)}.m-btn.nav{border:2px solid var(--secondary-color)}.m-btn.nav:hover{background-color:var(--secondary-color)}.m-btn:disabled{background-color:var(--bg3);color:var(--fg3);border-color:var(--fg3);cursor:progress;opacity:.4}.toolbar-copy-btn{cursor:pointer;padding:.125rem .5rem;margin:0 2px;font-size:.8rem;width:56px;color:var(--primary-btn-text-color);border-radius:2px;border:none;background-color:var(--primary-color)}.tab-content .toolbar-copy-btn{position:absolute;top:8px;right:8px;margin-right:8px}.tab-content .toolbar-copy-btn+pre{white-space:pre;max-height:400px;overflow:auto;display:flex;padding-right:70px}button,input,pre,select,textarea{color:var(--fg);outline:0;background-color:var(--input-bg);border:1px solid var(--border-color);border-radius:var(--border-radius)}button{font-family:var(--font-regular)}input[type=file],input[type=password],input[type=text],pre,select,textarea{font-family:var(--font-mono);font-weight:400;font-size:var(--font-size-small);transition:border .2s;padding:6px 5px}select{font-family:var(--font-regular);padding-right:30px;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3A1%201%200%2000.3%204.7l5%205a1%201%200%20001.4%200l5-5a1%201%200%2010-1.4-1.4z%22%20fill%3D%22%23777777%22%2F%3E%3C%2Fsvg%3E");background-position:calc(100% - 5px) center;background-repeat:no-repeat;background-size:10px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}select:hover{border-color:var(--primary-color)}input[type=password]::placeholder,input[type=text]::placeholder,textarea::placeholder{color:var(--placeholder-color);opacity:1}input[type=password]:active,input[type=password]:focus,input[type=text]:active,input[type=text]:focus,select:focus,textarea:active,textarea:focus{border:1px solid var(--primary-color)}input[type=file]{font-family:var(--font-regular);padding:2px;cursor:pointer;border:1px solid var(--primary-color);min-height:calc(var(--font-size-small) + 18px)}input[type=file]::-webkit-file-upload-button{font-family:var(--font-regular);font-size:var(--font-size-small);outline:0;cursor:pointer;padding:3px 8px;border:1px solid var(--primary-color);background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:var(--border-radius);-webkit-appearance:none}pre,textarea{scrollbar-width:thin;scrollbar-color:var(--border-color) var(--input-bg)}pre::-webkit-scrollbar,textarea::-webkit-scrollbar{width:8px;height:8px}pre::-webkit-scrollbar-track,textarea::-webkit-scrollbar-track{background:var(--input-bg)}pre::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-thumb{border-radius:2px;background-color:var(--border-color)}.link{font-size:var(--font-size-small);text-decoration:underline;color:var(--blue);font-family:var(--font-mono);margin-bottom:2px}input[type=checkbox]:focus{outline:0}input[type=checkbox]{appearance:none;display:inline-block;background-color:var(--light-bg);border-radius:9px;cursor:pointer;height:18px;position:relative;transition:border .15s,padding .25s;min-width:36px;width:36px;vertical-align:top}input[type=checkbox]:after{position:absolute;background-color:var(--bg);border-radius:8px;content:'';top:0;left:0;right:16px;display:block;height:16px;transition:left .25s .1s,right .15s .175s}input[type=checkbox]:checked{box-shadow:inset 0 0 0 13px var(--primary-color);border-color:var(--primary-color)}input[type=checkbox]:checked:after{border:1px solid var(--primary-color);left:16px;right:1px;transition:border .25s,left .15s .25s,right .25s .175s}input.oauth-client-id{flex-grow:1;max-width:300px}input.oauth-client-secret{flex-grow:1;max-width:300px}`,Ue=K`.col,.row{display:flex}.row{align-items:center;flex-direction:row}.col{align-items:stretch;flex-direction:column}`,Fe=K`.m-table{border-spacing:0;border-collapse:separate;border:1px solid var(--light-border-color);border-radius:var(--border-radius);margin:0;max-width:100%}.m-table tr:first-child td,.m-table tr:first-child th{border-top:0 none}.m-table td,.m-table th{font-size:var(--font-size-small);padding:4px 5px 4px}.m-table td:not([align]),.m-table th:not([align]){text-align:left}.m-table th{color:var(--fg2);font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 18px);font-weight:600;letter-spacing:normal;background-color:var(--bg2);vertical-align:bottom;border-bottom:1px solid var(--light-border-color)}.m-table>tbody>tr>td,.m-table>tr>td{border-top:1px solid var(--light-border-color)}.table-title{font-size:var(--font-size-small);font-weight:700;vertical-align:middle;margin:12px 0 4px 0}`,ze=K`.only-large-screen{display:none}.endpoint-head .path{display:flex;font-family:var(--font-mono);font-size:var(--font-size-small);align-items:center;overflow-wrap:break-word;word-break:break-all}.endpoint-head .descr{font-size:var(--font-size-small);color:var(--light-fg);font-weight:400;align-items:center;overflow-wrap:break-word;word-break:break-all;display:none}.m-endpoint.expanded{margin-bottom:16px}.m-endpoint>.endpoint-head{border-width:1px 1px 1px 5px;border-style:solid;border-color:transparent;border-top-color:var(--light-border-color);display:flex;padding:6px 16px;align-items:center;cursor:pointer}.m-endpoint>.endpoint-head.put.expanded,.m-endpoint>.endpoint-head.put:hover{border-color:var(--orange);background-color:var(--light-orange)}.m-endpoint>.endpoint-head.post.expanded,.m-endpoint>.endpoint-head.post:hover{border-color:var(--green);background-color:var(--light-green)}.m-endpoint>.endpoint-head.get.expanded,.m-endpoint>.endpoint-head.get:hover,.m-endpoint>.endpoint-head.head.expanded,.m-endpoint>.endpoint-head.head:hover{border-color:var(--blue);background-color:var(--light-blue)}.m-endpoint>.endpoint-head.delete.expanded,.m-endpoint>.endpoint-head.delete:hover{border-color:var(--red);background-color:var(--light-red)}.m-endpoint>.endpoint-head.patch.expanded,.m-endpoint>.endpoint-head.patch:hover{border-color:var(--yellow);background-color:var(--light-yellow)}.m-endpoint>.endpoint-head.options.expanded,.m-endpoint>.endpoint-head.options:hover{border-color:var(--purple);background-color:var(--light-purple)}.m-endpoint .endpoint-body{word-break:break-word;flex-wrap:wrap;padding:16px 0 0 0;border-width:0 1px 1px 5px;border-style:solid;box-shadow:0 4px 3px -3px rgba(0,0,0,.15)}.m-endpoint .endpoint-body.delete{border-color:var(--red)}.m-endpoint .endpoint-body.put{border-color:var(--orange)}.m-endpoint .endpoint-body.post{border-color:var(--green)}.m-endpoint .endpoint-body.get,.m-endpoint .endpoint-body.head{border-color:var(--blue)}.m-endpoint .endpoint-body.patch{border-color:var(--yellow)}.m-endpoint .endpoint-body.options{border-color:var(--purple)}.summary{padding:8px 8px}.summary .title{font-size:calc(var(--font-size-regular) + 2px);margin-bottom:6px;word-break:break-word}.method{padding:2px 5px;vertical-align:middle;font-size:var(--font-size-small);height:calc(var(--font-size-small) + 16px);line-height:calc(var(--font-size-small) + 8px);width:68px;flex-shrink:0;border-radius:2px;display:inline-block;text-align:center;font-weight:700;text-transform:uppercase;margin-right:5px}.method.delete{border:2px solid var(--red)}.method.put{border:2px solid var(--orange)}.method.post{border:2px solid var(--green)}.method.get,.method.head{border:2px solid var(--blue)}.method.patch{border:2px solid var(--yellow)}.method.options{border:2px solid var(--purple)}.req-resp-container{display:flex;margin-top:16px;align-items:stretch;flex-wrap:wrap;flex-direction:column}.view-request{flex:1;min-height:100px;max-width:100%;padding:16px 8px;overflow:hidden;border-width:0;border-style:dashed}.request,.response{flex:1;min-height:100px;max-width:100%;padding:16px 8px;overflow:hidden}.request{border-width:0 0 1px 0;border-style:dashed}.patch .request{border-top:1px dashed var(--yellow);border-color:var(--yellow)}.options .request{border-top:1px dashed var(--purple);border-color:var(--purple)}.put .request{border-top:1px dashed var(--orange);border-color:var(--orange)}.post .request{border-top:1px dashed var(--green);border-color:var(--green)}.get .request,.head .request{border-top:1px dashed var(--blue);border-color:var(--blue)}.delete .request{border-top:1px dashed var(--red);border-color:var(--red)}@media only screen and (min-width:1024px){.only-large-screen{display:block}.endpoint-head .path{font-size:var(--font-size-regular);min-width:400px}.endpoint-head .descr{display:flex}.descr .m-markdown-small,.endpoint-head .m-markdown-small{display:block}.req-resp-container{flex-direction:var(--layout,row)}.request{border-width:0 1px 0 0;padding:16px}.response{padding:16px}.summary{padding:8px 16px}}.security-info-button{position:absolute;top:3px;right:2px;font-size:var(--font-size-small);line-height:1.5}@media only screen and (max-width:768px){.security-info-button{display:none}}pre.code-sample{padding:8px;min-height:30px;font-family:var(--font-mono);font-size:var(--font-size-small)}`,qe=K`code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-]{white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:var(--light-fg)}.token.punctuation{color:var(--fg)}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:var(--pink)}.token.function-name{color:var(--blue)}.token.boolean,.token.function,.token.number{color:var(--red)}.token.class-name,.token.constant,.token.property,.token.symbol{color:var(--code-property-color)}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:var(--code-keyword-color)}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:var(--green);white-space:pre-wrap;line-break:anywhere}.token.entity,.token.operator,.token.url{color:var(--code-operator-color)}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}`,De=K`.tab-panel{border:none}.tab-buttons{height:30px;border-bottom:1px solid var(--light-border-color);align-items:stretch;overflow-y:hidden;overflow-x:auto;scrollbar-width:thin}.tab-buttons::-webkit-scrollbar{height:1px;background-color:var(--border-color)}.tab-btn{border:none;border-bottom:3px solid transparent;color:var(--light-fg);background-color:transparent;white-space:nowrap;cursor:pointer;outline:0;font-family:var(--font-regular);font-size:var(--font-size-small);margin-right:16px;padding:1px}.tab-btn.active{border-bottom:3px solid var(--primary-color);font-weight:700;color:var(--primary-color)}.tab-btn:hover{color:var(--primary-color)}.tab-content{position:relative}`,He=K`.nav-bar{width:0;height:100%;overflow:hidden;color:var(--nav-text-color);background-color:var(--nav-bg-color);background-blend-mode:multiply;line-height:calc(var(--font-size-small) + 4px);display:none;position:relative;flex-direction:column;flex-wrap:nowrap;word-break:break-word}.nav-scroll{overflow-x:hidden;overflow-y:auto;overflow-y:overlay;scrollbar-width:thin;scrollbar-color:var(--nav-hover-bg-color) transparent}.nav-bar-tag{display:flex;align-items:center;justify-content:space-between;flex-direction:row}.nav-bar-tag-icon{font-size:16px;padding-right:1px;color:var(--nav-text-color)}.nav-bar-tag-icon:hover{color:var(--nav-hover-text-color)}.nav-bar.focused .nav-bar-tag-and-paths.collapsed .nav-bar-paths-under-tag{display:none}.nav-bar-tag-and-paths.collapsed .nav-bar-tag-icon.collapse-button-arrow{display:none}.nav-bar-tag-and-paths.expanded .nav-bar-tag-icon.expand-button-arrow{display:none}.nav-bar.focused,.nav-scroll{border-top:1px solid var(--secondary-color)}.nav-scroll::-webkit-scrollbar{width:10px}.nav-scroll::-webkit-scrollbar-track{background:0 0}.nav-scroll::-webkit-scrollbar-thumb{background-color:var(--nav-hover-bg-color)}.nav-bar-tag{font-size:var(--font-size-regular);color:var(--secondary-color);border-left:4px solid transparent;font-weight:700;padding:15px 15px 15px 10px}.nav-bar-components,.nav-bar-h1,.nav-bar-h2,.nav-bar-info,.nav-bar-path,.nav-bar-tag,slot[name=nav-section]::slotted(*){display:flex;cursor:pointer;border-left:4px solid transparent}.nav-bar-h1,.nav-bar-h2,.nav-bar-path{font-size:calc(var(--font-size-small) + 1px);padding:var(--nav-item-padding)}.nav-bar-path.small-font{font-size:var(--font-size-small)}.nav-bar-info,slot[name=nav-section]::slotted(*){font-size:var(--font-size-regular);padding:16px 10px;font-weight:700}.nav-bar-section{display:flex;flex-direction:row;justify-content:space-between;font-size:var(--font-size-small);color:var(--nav-text-color);padding:15px 15px 5px 5px;font-weight:700;border-bottom:1px solid var(--nav-text-color);background:var(--nav-bg-color)}.sticky-scroll-element{position:sticky;top:0}.nav-bar-h2{margin-left:12px}.nav-bar-h1.active,.nav-bar-h1.active:hover,.nav-bar-h2.active,.nav-bar-h2.active:hover,.nav-bar-info.active,.nav-bar-info.active:hover,.nav-bar-path.active,.nav-bar-path.active:hover,.nav-bar-tag.active,.nav-bar-tag.active:hover,slot[name=nav-section]::slotted(.active),slot[name=nav-section]::slotted(.active:hover){border-left:4px solid var(--secondary-color);color:var(--secondary-color);background-color:var(--nav-hover-bg-color)}.nav-bar-h1:hover,.nav-bar-h2:hover,.nav-bar-info:hover,.nav-bar-path:hover,.nav-bar-tag:hover,slot[name=nav-section]::slotted(:hover){color:var(--nav-hover-text-color);background-color:var(--nav-hover-bg-color)}`,We=K`#api-info{font-size:calc(var(--font-size-regular) - 1px);margin-top:8px margin-left: -15px}#api-info span:before{content:"|";display:inline-block;opacity:.5;width:15px;text-align:center}#api-info span:first-child:before{content:"";width:0}`,Ve=K`*,:after,:before{box-sizing:border-box}.dialog-box-overlay{background-color:var(--overlay-bg);position:fixed;left:0;top:0;width:100vw;height:100vh;overflow:hidden;z-index:var(--dialog-z-index)}.dialog-box{position:fixed;top:100px;left:50%;transform:translate(-50%,0);display:flex;flex-direction:column;width:50vw;background-color:var(--bg2);color:var(--fg2);border-radius:4px;overflow:hidden;border:1px solid var(--border-color);box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}.dialog-box-header{position:sticky;top:0;align-self:stretch;display:flex;align-items:center;padding:0 16px;min-height:60px;max-height:60px;border-bottom:1px solid var(--light-border-color);overflow:hidden}.dialog-box .m-btn{padding:1px 6px}.dialog-box-content{padding:16px;display:block}.dialog-box-title{flex-grow:1;font-size:20px}.advanced-search-dialog-input{width:100%}#advanced-search-dialog-input{width:100%}.advanced-search-locations{display:flex;flex-direction:column;margin:8px 0 24px}.advanced-search-locations label{font-size:var(--font-size-small)}.advanced-search-results{max-height:400px;overflow:auto}`;const Ge=new RegExp(/[\s#:?&={}]/,"g");function Ke(e){return new Promise((t=>setTimeout(t,e)))}function Ye(e,t){const n=t.currentTarget,r=document.createElement("textarea");r.value=e,r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy"),n.innerText="Copied",setTimeout((()=>{n.innerText="Copy"}),5e3)}catch(e){console.error("Unable to copy",e)}document.body.removeChild(r)}function Je(e,t){return`${t.method} ${t.path} ${t.summary||t.description||""} ${t.operationId||""}`.toLowerCase().includes(e.toLowerCase())}function Ze(e,t=new Set){return e?(Object.keys(e).forEach((n=>{t.add(n),e[n].properties?Ze(e[n].properties,t):e[n].items&&e[n].items.properties&&Ze(e[n].items.properties,t)})),t):t}function Qe(){const e=(window.location.hash||"").split("?")[1],t=new URLSearchParams(e);return decodeURIComponent(t.get("route")||"")}function Xe(e){const t=e&&e.replace(/^#/,"")||"",n=(window.location.hash||"").split("?")[0].replace(/^#/,""),r=(window.location.hash||"").split("?")[1],a=new URLSearchParams(r);a.delete("route");const i=a.toString().length>1?`${a.toString()}&route=${t}`:`route=${t}`;window.history.replaceState(null,null,`#${n}?${i}`)}var et=n(3735),tt=n.n(et);async function nt(e,t=""){const n="string"==typeof e&&e.match(/^http/)||"object"==typeof e&&"string"==typeof e.href;let r;try{r=await tt()(e)}catch(e){throw console.error("Error parsing specification",e),Error("SpecificationNotFound")}if(!r)throw Error("SpecificationNotFound");const a=function(e){const t=["get","put","post","delete","patch","head","options"],n=e.tags&&Array.isArray(e.tags)?e.tags.map((e=>({elementId:`tag--${e.name.replace(Ge,"-")}`,name:e.name,description:e.description||"",headers:e.description?rt(e.description):[],paths:[],expanded:!0}))):[],r=e.paths||{};if(e.webhooks)for(const[t,n]of Object.entries(e.webhooks))n._type="webhook",r[t]=n;for(const a in r){const i=r[a].parameters,o={servers:r[a].servers||[],parameters:r[a].parameters||[]},s="webhook"===r[a]._type;t.forEach((t=>{if(r[a][t]){const r=e.paths[a][t],c=Array.isArray(r.tags)?r.tags:r.tags&&[r.tags]||[];0===c.length&&c.push("General ⦂"),c.forEach((c=>{let u,l;e.tags&&(l=e.tags.find((e=>e.name.toLowerCase()===c.toLowerCase()))),u=n.find((e=>e.name===c)),u||(u={elementId:`tag--${c.replace(Ge,"-")}`,name:c,description:l&&l.description||"",headers:l&&l.description?rt(l.description):[],paths:[],expanded:!0},n.push(u));let p=(r.summary||r.description||`${t.toUpperCase()} ${a}`).trim();p.length>100&&(p=p.split(/[.|!|?]\s|[\r?\n]/)[0]);let d=[];if(d=i?r.parameters?i.filter((e=>{if(!r.parameters.some((t=>e.name===t.name&&e.in===t.in)))return e})).concat(r.parameters):i.slice(0):r.parameters?r.parameters.slice(0):[],r.callbacks)for(const[e,t]of Object.entries(r.callbacks)){const n=Object.entries(t),a=n.filter((e=>"object"==typeof e[1]))||[];r.callbacks[e]=Object.fromEntries(a),a.length!==n.length&&console.warn(`OpenAPI Explorer: Invalid Callback found in ${e}`)}u.paths.push({expanded:!1,isWebhook:s,expandedAtLeastOnce:!1,summary:r.summary||"",description:r.description||"",shortSummary:p,method:t,path:a,operationId:r.operationId,elementId:`${t}-${a.replace(Ge,"-")}`,servers:r.servers?o.servers.concat(r.servers):o.servers,parameters:d,requestBody:r.requestBody,responses:r.responses,callbacks:r.callbacks,deprecated:r.deprecated,security:r.security||e.security,xCodeSamples:r["x-codeSamples"]||r["x-code-samples"]||""})}))}}))}return n.filter((e=>e.paths&&e.paths.length>0))}(r),i=function(e){if(!e.components)return[];const t=[];for(const n in e.components){const r=Object.keys(e.components[n]).map((t=>({expanded:!0,id:`${n.toLowerCase()}-${t.toLowerCase()}`.replace(Ge,"-"),name:t,component:e.components[n][t]}))).sort(((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase())));let a,i;switch(n){case"schemas":i="Schemas",a="";break;case"responses":i="Responses",a="Describes responses from an API Operation, including design-time, static links to operations based on the response.";break;case"parameters":i="Parameters",a="Describes operation parameters. A unique parameter is defined by a combination of a name and location.";break;case"examples":i="Examples",a="List of Examples for operations, can be requests, responses and objects examples.";break;case"requestBodies":case"securitySchemes":break;case"headers":i="Headers",a='Headers follows the structure of the Parameters but they are explicitly in "header"';break;case"links":i="Links",a="Links represent a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.";break;case"callbacks":i="Callbacks",a="A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the path item object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.";break;default:i=n,a=n}i&&t.push({expanded:!0,name:i,description:a,subComponents:r})}return t}(r),o=r.info&&r.info.description?rt(r.info.description):[],s=[];r.components&&r.components.securitySchemes&&Object.entries(r.components.securitySchemes).forEach((e=>{const t={apiKeyId:e[0],...e[1]};t.value="",t.finalKeyValue="","apiKey"===e[1].type||"http"===e[1].type?(t.name=e[1].name||"Authorization",t.user="",t.password=""):"oauth2"===e[1].type&&(t.name="Authorization",t.clientId="",t.clientSecret=""),s.push(t)})),s.forEach((e=>{"http"===e.type?e.typeDisplay="basic"===e.scheme?"HTTP Basic":"HTTP Bearer":"apiKey"===e.type?e.typeDisplay=`API Key (${e.name})`:"oauth2"===e.type?e.typeDisplay="OAuth2.0":e.typeDisplay=e.type}));let c=[];Array.isArray(r.servers)&&r.servers.length?(r.servers.forEach((e=>{let t=e.url.trim();t.startsWith("http")||t.startsWith("//")||t.startsWith("{")||window.location.origin.startsWith("http")&&(e.url=window.location.origin+e.url,t=e.url),e.variables&&Object.entries(e.variables).forEach((e=>{const n=new RegExp(`{${e[0]}}`,"g");t=t.replace(n,e[1].default||""),e[1].value=e[1].default||""})),e.computedUrl=t})),t&&!r.servers.some((e=>e.url===t||e.computedUrl===t))&&(r.servers=[{url:t,computedUrl:t}].concat(r.servers))):t?r.servers=[{url:t,computedUrl:t}]:n?r.servers=[{url:new URL(e).origin,computedUrl:new URL(e).origin}]:window.location.origin.startsWith("http")?r.servers=[{url:window.location.origin,computedUrl:window.location.origin}]:r.servers=[{url:"http://localhost",computedUrl:"http://localhost"}],c=r.servers;return{info:r.info,infoDescriptionHeaders:o,tags:a,components:i,externalDocs:r.externalDocs,securitySchemes:s,servers:c}}function rt(e){return Ie.lexer(e).filter((e=>"heading"===e.type&&e.depth<=2))||[]}const at=new WeakMap,it=(ot=e=>t=>{if(!(t instanceof E))throw new Error("unsafeHTML can only be used in text bindings");const n=at.get(t);if(void 0!==n&&k(e)&&e===n.value&&t.value===n.fragment)return;const r=document.createElement("template");r.innerHTML=e;const a=document.importNode(r.content,!0);t.setValue(a),at.set(t,{value:e,fragment:a})},(...e)=>{const t=ot(...e);return r.set(t,!0),t});var ot,st=n(5772),ct=n.n(st);function ut(e,t){let n="";const r=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e));if(!r)return;const a=t.target.closest("tr");if(r.type&&"http"===r.type&&r.scheme&&"basic"===r.scheme.toLowerCase()){const e=a.querySelector(".api-key-user").value.trim(),t=a.querySelector(".api-key-password").value.trim();t&&(n=`Basic ${btoa(`${e}:${t}`)}`)}else n=a.querySelector(".api-key-input").value.trim(),n&&r.scheme&&"bearer"===r.scheme.toLowerCase()&&(n=`Bearer ${n.replace(/^Bearer\s+/i,"")}`);r.finalKeyValue=n,this.requestUpdate()}function lt(){this.resolvedSpec.securitySchemes.forEach((e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""})),this.requestUpdate()}function pt(e,t="Bearer",n){const r=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e)),a=t&&"bearer"===t.toLowerCase()?"Bearer":t;r.finalKeyValue=`${a}${a?" ":""}${n}`,this.requestUpdate()}async function dt(e,t,n,r,a,i,o="header",s,c,u=null){const l=c?c.querySelector(".oauth-resp-display"):void 0,p=new URLSearchParams,d=new Headers;p.append("grant_type",a),r&&p.append("redirect_uri",r),i&&p.append("code",i),"header"===o?d.set("Authorization",`Basic ${btoa(`${t}:${n}`)}`):(p.append("client_id",t),n&&p.append("client_secret",n)),u&&p.append("scope",u);const{codeVerifier:f}=JSON.parse(localStorage.getItem("openapi-explorer-oauth")||"{}");localStorage.removeItem("openapi-explorer-oauth"),f&&p.append("code_verifier",f);try{const t=await fetch(e,{method:"POST",headers:d,body:p}),n=await t.json();if(!t.ok)return void(l&&(l.innerHTML=`<span style="color:var(--red)">${n.error_description||n.error_description||"Unable to get access token"}</span>`));n.token_type&&n.access_token&&(pt.call(this,s,n.token_type,n.access_token),l&&(l.innerHTML='<span style="color:var(--green)">Access Token Received</span>'))}catch(e){l&&(l.innerHTML='<span style="color:var(--red)">Failed to get access token</span>')}}function ft(e){const t={},n=e&&e.entries()||[];for(const[e,r]of n)t[e]=r;return t}async function ht(e){const t=ft(new URLSearchParams(window.location.search)),n=ft(new URLSearchParams(window.location.hash.slice(1)));Object.assign(t,n);const r=new URL(window.location);if(r.searchParams.delete("nonce"),r.searchParams.delete("expires_in"),r.searchParams.delete("access_token"),r.searchParams.delete("token_type"),r.searchParams.delete("id_token"),r.searchParams.delete("state"),r.searchParams.delete("code"),r.searchParams.delete("iss"),r.searchParams.delete("scope"),r.searchParams.delete("prompt"),r.searchParams.delete("hd"),r.searchParams.delete("authuser"),r.searchParams.delete("redirect_auth"),!t.state)return;const a=r.toString().replace(/#((code|state|access_token|id_token|authuser|expires_in|hd|prompt|scope|token_type)=[^&]+&?)*$/gi,"");history.replaceState({},void 0,a);const{apiKeyId:i,flowId:o,url:s}=JSON.parse(ct().decode(t.state));if(e&&s&&!t.redirect_auth){const e=new URL(s);return Object.keys(t).forEach((n=>e.searchParams.append(n,t[n]))),e.searchParams.append("redirect_auth",!0),void window.location.replace(e.toString())}if(t.code){const e=this.resolvedSpec.securitySchemes.find((e=>e.apiKeyId===i)),n=e&&e.flows[o]&&new URL(e.flows[o].tokenUrl||"",this.selectedServer.computedUrl);await dt.call(this,n,e.clientId,e.clientSecret,e.redirectUri||window.location.href,"authorization_code",t.code,null,i)}else pt.call(this,i,t.token_type,t.access_token)}async function mt(e,t,n,r,a){const i=a.target.closest(".oauth-flow"),o=i.querySelector(".oauth-client-id")?i.querySelector(".oauth-client-id").value.trim():"",s=i.querySelector(".oauth-client-secret")?i.querySelector(".oauth-client-secret").value.trim():"",c=i.querySelector(".oauth-send-client-secret-in")?i.querySelector(".oauth-send-client-secret-in").value.trim():"header",u=[...i.querySelectorAll('input[type="checkbox"]:checked')],l=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e));let p="",d="";if([...i.parentNode.querySelectorAll(".oauth-resp-display")].forEach((e=>{e.innerHTML=""})),"authorizationCode"===t||"implicit"===t){const r=new URL(n),a=new URLSearchParams(r.search);if("authorizationCode"===t){const e=new Uint32Array(3);(window.crypto||window.msCrypto).getRandomValues(e),a.set("nonce",e.toString("hex").split(",").join("")),p="authorization_code",d="code";const t=e.toString("hex").split(",").join(""),n=await(window.crypto||window.msCrypto).subtle.digest("SHA-256",(new TextEncoder).encode(t)),r=ct()(n);a.set("code_challenge",r),a.set("code_challenge_method","S256"),localStorage.setItem("openapi-explorer-oauth",JSON.stringify({codeVerifier:t}))}else"implicit"===t&&(d="token");const i=u.map((e=>e.value)).join(" ");i&&a.set("scope",i),a.set("client_id",o),a.set("redirect_uri",l.redirectUri||window.location.href),a.set("response_type",d),a.set("state",ct().encode(JSON.stringify({apiKeyId:e,flowId:t,url:window.location.href}))),r.search=a.toString(),window.location.assign(r.toString())}else if("clientCredentials"===t){p="client_credentials";const t=u.map((e=>e.value)).join(" ");dt.call(this,r,o,s,"",p,"",c,e,i,t)}}function bt(e,t,n){const r=t.apiKeyId,a=e=>e?new URL(e,this.selectedServer.computedUrl):void 0,i=a(n.authorizationUrl,this.selectedServer.computedUrl),o=a(n.tokenUrl,this.selectedServer.computedUrl),s=a(n.refreshUrl,this.selectedServer.computedUrl);let c;return c="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":e,M` <div class="oauth-flow" style="padding:10px 0;margin-bottom:10px"> <div class="tiny-title upper" style="margin-bottom:5px">${c}</div> ${i?M`<div><span style="width:75px;display:inline-block">Auth URL</span> <span class="mono-font"> ${i} </span></div>`:""} ${o?M`<div><span style="width:75px;display:inline-block">Token URL</span> <span class="mono-font">${o}</span></div>`:""} ${s?M`<div><span style="width:75px;display:inline-block">Refresh URL</span> <span class="mono-font">${s}</span></div>`:""} ${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?M` ${n.scopes?M` <span> Scopes </span> <div class="oauth-scopes" part="section-auth-scopes" style="width:100%;display:flex;flex-direction:column;flex-wrap:wrap;margin:0 0 .125rem 0"> ${Object.entries(n.scopes).map(((t,n)=>M` <div class="m-checkbox" style="display:inline-flex;align-items:center"> <input type="checkbox" checked="checked" part="checkbox checkbox-auth-scope" id="${e}${n}" value="${t[0]}"> <label for="${e}${n}" style="margin-left:5px"> <span class="mono-font">${t[0]}</span> ${t[0]!==t[1]?` - ${t[1]||""}`:""} </label> </div> `))} </div> `:""} <div style="display:flex"> <input type="text" part="textbox textbox-auth-client-id" value="${t.clientId||""}" placeholder="Client ID" spellcheck="false" class="oauth-client-id"> ${"clientCredentials"===e?M` <input type="password" part="textbox textbox-auth-client-secret" value="" placeholder="Client Secret" spellcheck="false" class="oauth-client-secret" style="margin:0 5px"> <select aria-label="oauth client secret location" style="margin-right:5px" class="oauth-send-client-secret-in"> <option value="header" selected="selected"> Authorization Header </option> <option value="request-body"> Request Body </option> </select>`:M`<div style="width:5px"></div>`} ${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?M` <button class="m-btn thin-border" part="btn btn-outline" @click="${t=>{mt.call(this,r,e,i,o,t)}}">GET TOKEN</button>`:""} </div> <div class="oauth-resp-display red-text small-font-size"></div> `:""} </div> `}function gt(){const e=this.resolvedSpec&&this.resolvedSpec.securitySchemes;if(!e)return;const t=e.filter((e=>e.finalKeyValue));return M` <section id="auth" part="section-auth" class="observe-me ${"focused"===this.renderStyle?"section-gap--focused-mode":"section-gap"}"> <slot name="authentication"> <div class="section-padding"> <div class="sub-title regular-font">AUTHENTICATION</div> <div class="small-font-size" style="display:flex;align-items:center;min-height:30px"> ${t.length>0?M` <div class="blue-text"> ${t.length} API key applied </div> <div style="flex:1"></div> <button class="m-btn thin-border" part="btn btn-outline" @click="${()=>{lt.call(this)}}">CLEAR ALL API KEYS</button>`:M`<div class="red-text">No API key applied</div>`} </div> ${e.length>0?M` <table role="presentation" class="m-table" style="width:100%"> ${e.map((e=>M` <tr> <td style="max-width:500px;overflow-wrap:break-word"> <div style="min-height:24px"> <span style="font-weight:700">${e.typeDisplay}</span> ${e.finalKeyValue?M` <span class="blue-text"> ${e.finalKeyValue?"Key Applied":""} </span> <button class="m-btn thin-border small" part="btn btn-outline" @click="${()=>{e.finalKeyValue="",this.requestUpdate()}}">REMOVE</button> `:""} </div> ${e.description?M` <div class="m-markdown"> ${it(Ie(e.description||""))} </div>`:""} </td> <td> ${e.type&&("apikey"===e.type.toLowerCase()||"http"===e.type.toLowerCase()&&e.scheme&&"bearer"===e.scheme.toLowerCase())?M` ${"apikey"===e.type.toLowerCase()?M`Send <code>${e.name}</code> in <code>${e.in}</code> with the given value:`:M`Send <code>Authorization</code> in <code>header</code> containing the word <code>Bearer</code> followed by a space and a Token String.`} <form style="display:flex"> ${"cookie"===e.in?M` <div style="display:block"> <input type="text" value="${function(e){const t=(document.cookie||"").split(";").find((t=>t.split("=")[0]===e));return t&&t.split("=")[1]||""}(e.apiKeyId)}" disabled="disabled" class="api-key-input" placeholder="IygRVGf54B59e0GAkKmigGfuiVlp/uhFfk2ifA+jMMJzau2F1jPldc09gPTfnMw13BFBxqUZIFDm55DPfwkb0A==" spellcheck="false" style="resize:horizontal;width:100%"> <br> <small> <strong>Cookies</strong> are set and configured by the remote service, therefore it is not possible to configure them from the browser. </small> </div>`:M` <input type="text" value="${e.value}" class="api-key-input" placeholder="api-token" spellcheck="false"> <button type="submit" class="m-btn thin-border" style="margin-left:5px" part="btn btn-outline" @click="${t=>{ut.call(this,e.apiKeyId,t)}}"> ${e.finalKeyValue?"UPDATE":"SET"} </button>`} </form>`:""} ${e.type&&"http"===e.type.toLowerCase()&&e.scheme&&"basic"===e.scheme.toLowerCase()?M` Send the <code>Authorization</code> header containing the type <code>Basic</code> followed by a space and a base64 encoded string of <code>username:password</code>. <form style="display:flex"> <input type="text" value="${e.user}" placeholder="username" spellcheck="false" class="api-key-user" style="width:100px"> <input type="password" value="${e.password}" placeholder="password" spellcheck="false" class="api-key-password" style="width:100px;margin:0 5px"> <button type="submit" class="m-btn thin-border" @click="${t=>{ut.call(this,e.apiKeyId,t)}}" part="btn btn-outline"> ${e.finalKeyValue?"UPDATE":"SET"} </button> </form>`:""} </td> </tr> ${"oauth2"===e.type.toLowerCase()?M` <tr> <td colspan="2" style="border:none;padding-left:48px"> ${Object.keys(e.flows).map((t=>bt.call(this,t,e,e.flows[t])))} </td> </tr> `:""} `))} </table>`:""} </div> </slot> </section> `}function vt(e){return e&&e.length&&Array.isArray(e)?M` <div> <b>Required scopes:</b> <br> <div style="margin-left:8px"> ${e.map((e=>M`<span>${e}</span> `))} </div> </div>`:""}function yt(e){if(this.resolvedSpec.securitySchemes&&e){const t=[];return e.forEach((e=>{const n=[],r=[];Object.keys(e).forEach((t=>{const a=this.resolvedSpec.securitySchemes.find((e=>e.apiKeyId===t));a&&(r.push(a.typeDisplay),n.push({...a,scopes:e[t]}))})),t.push({securityTypes:r.length>1?`${r[0]} + ${r.length-1} more`:r[0],securityDefs:n})})),M`<div class="security-info-button" data-content-id="auth" @click="${e=>this.scrollToEventTarget(e,!1)}"> <div style="position:relative;display:flex;min-width:350px;max-width:700px;justify-content:flex-end"> <svg width="16" height="24" style="cursor:pointer"> <g> <path style="fill:var(--fg3)" d="m13.8,8.5l0,-2.6l0,0c0,-3.2 -2.6,-5.8 -5.8,-5.8s-5.8,2.6 -5.8,5.8l0,0l0,2.6l-2.1,0l0,11.2l16,0l0,-11.2l-2.1,0l-0,0l0,0l0,0l-0,0zm-9.8,-2.6c0,0 0,0 0,0c0,-2.2 1.8,-4 4,-4c2.2,0 4,1.8 4,4c0,0 0,0 0,0l0,2.6l-8.03,0l0,-2.6l0,0l0,0z"/> </g> </svg> ${t.map(((e,t)=>M` ${0!==t?M`<div style="padding:3px 4px"> OR </div>`:""} <div class="tooltip" style="cursor:pointer"> <div style="padding:2px 4px;white-space:nowrap;text-overflow:ellipsis;max-width:150px;overflow:hidden"> <span part="anchor anchor-operation-security"> ${e.securityTypes} </span> </div> <div class="tooltip-text" style="position:absolute;color:var(--fg);top:26px;right:0;border:1px solid var(--border-color);padding:2px 4px;display:block"> ${e.securityDefs.length>1?M`<div>Requires <b>all</b> of the following </div>`:""} <div style="padding-left:8px"> ${e.securityDefs.map(((t,n)=>M` ${"oauth2"===t.type?M` <div> ${e.securityDefs.length>1?M`<b>${n+1}.</b> `:M`Requires`} OAuth token (${t.apiKeyId}) in <b>Authorization header</b> ${vt(t.scopes)} </div>`:"http"===t.type?M` <div> ${e.securityDefs.length>1?M`<b>${n+1}.</b> `:M`Requires`} ${"basic"===t.scheme?"Base 64 encoded username:password":"Bearer Token"} in <b>Authorization header</b> ${vt(t.scopes)} </div>`:M` <div> ${e.securityDefs.length>1?M`<b>${n+1}.</b> `:M`Requires`} Token in <b>${t.name} ${t.in}</b> ${vt(t.scopes)} </div>`} `))} </div> </div> </div> `))} </div> </div>`}return""}function xt(e){return M` <section class="table-title top-gap"> CODE SAMPLES <div class="tab-panel col" @click="${e=>{if(!e.target.classList.contains("tab-btn"))return;const t=e.target.dataset.tab,n=[...e.currentTarget.querySelectorAll(".tab-btn")],r=[...e.currentTarget.querySelectorAll(".tab-content")];n.forEach((e=>e.classList[e.dataset.tab===t?"add":"remove"]("active"))),r.forEach((e=>{e.style.display=e.dataset.tab===t?"block":"none"}))}}"> <div class="tab-buttons row" style="width:100"> ${e.map(((e,t)=>M`<button class="tab-btn ${0===t?"active":""}" data-tab="${e.lang}${t}"> ${e.label||e.lang} </button>`))} </div> ${e.map(((e,t)=>M` <div class="tab-content m-markdown code-sample-wrapper" style="display:${0===t?"block":"none"}" data-tab="${e.lang}${t}"> <button class="toolbar-copy-btn" @click="${t=>{Ye(e.source,t)}}">Copy</button> <pre>
|
|
3
3
|
<code>${Ne().languages[e.lang&&e.lang.toLowerCase()]?it(Ne().highlight(e.source,Ne().languages[e.lang&&e.lang.toLowerCase()],e.lang&&e.lang.toLowerCase())):e.source}</code>
|
|
4
4
|
</pre> </div>`))} </div></section>`}function wt(e){return M` <div class="api-request col regular-font request-panel ${this.renderStyle}-mode"> ${Object.entries(e).map((e=>M` <div class="${this.renderStyle}-request"> <div class="req-res-title">CALLBACKS</div> <div class="table-title">${e[0]}</div> ${Object.entries(e[1]).map((e=>M` <div class="mono-font small-font-size" style="display:flex"> <div style="width:100%"> ${Object.entries(e[1]).map((t=>M` <div> <div style="margin-top:12px"> <div class="method method-fg ${t[0]}" style="width:70px;border:none;margin:0;padding:0;line-height:20px;vertical-align:baseline;text-align:left"> <span style="font-size:20px"> ⥄ </span> ${t[0]} </div> <span style="line-height:20px;vertical-align:baseline">${e[0]} </span> </div> <div class="expanded-req-resp-container"> <api-request class="request-panel" callback="true" method="${t[0]||""}" , path="${e[0]||""}" .parameters="${t[1]&&t[1].parameters||""}" .request_body="${t[1]&&t[1].requestBody||""}" fill-defaults="${this.fillRequestWithDefault}" enable-console="false" render-style="${this.renderStyle}" schema-style="${this.displaySchemaAsTable?"table":"tree"}" active-schema-tab="${this.defaultSchemaTab}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" schema-hide-read-only="${this.schemaHideReadOnly}" fetch-credentials="${this.fetchCredentials}" exportparts="btn btn-fill btn-outline btn-try"> </api-request> <api-response callback="true" .responses="${t[1]&&t[1].responses}" render-style="${this.renderStyle}" schema-style="${this.displaySchemaAsTable?"table":"tree"}" active-schema-tab="${this.defaultSchemaTab}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" exportparts="btn--resp btn-fill--resp btn-outline--resp"> </api-response> </div> </div> `))} </div> </div> `))} </div> `))} </div> `}var kt=n(5234);const St=/^\s*([^;\s]*)(?:;|\s|$)/;function _t(e){if(!e||"string"!=typeof e)return!1;const t=St.exec(e),n=t&&exports.extensions[t[1].toLowerCase()];return!(!n||!n.length)&&n[0]}const At={},Et={};!function(){const e=["nginx","apache",void 0,"iana"];Object.keys(kt).forEach((function(t){const n=kt[t],r=n.extensions;if(r&&r.length){At[t]=r;for(let a=0;a<r.length;a++){const i=r[a];if(Et[i]){const t=e.indexOf(kt[Et[i]].source),r=e.indexOf(n.source);if("application/octet-stream"!==Et[i]&&(t>r||t===r&&"application/"===Et[i].substr(0,12)))continue}Et[i]=t}}}))}();var $t=n(3131),Ot=n.n($t),Ct=n(3465),jt=n.n(Ct),Tt=n(6890);const Rt={"&":"&",'"':""","'":"'","<":"<",">":">"};function Pt(e){return e&&e.replace?e.replace(/([&"<>'])/g,(function(e,t){return Rt[t]})):e}function It(e,t){let n=t;"object"!=typeof n&&(n={indent:n});let r="";const a=n.indent?!0===n.indent?" ":n.indent:"";let i=!0;function o(e,t){void 0!==t&&(r+=t)}function s(e,t){Nt(o,Lt(e,a,a?1:0),t)}var c;return c=function(){i=!1},i?process.nextTick(c):c(),n.declaration&&function(e){const t={version:"1.0",encoding:e.encoding||"UTF-8"};e.standalone&&(t.standalone=e.standalone),s({"?xml":{_attr:t}}),r=r.replace("/>","?>")}(n.declaration),e&&e.forEach?e.forEach((function(t,n){s(t,n+1===e.length)})):s(e,!0),r}function Lt(e,t,n){const r=n||0,a=(i=t,new Array(r||0).join(i||""));var i;let o,s=e;if("object"==typeof e){if(o=Object.keys(e)[0],s=e[o],s&&s._elem)return s._elem.name=o,s._elem.icount=r,s._elem.indent=t,s._elem.indents=a,s._elem.interrupt=s,s._elem}const c=[],u=[];let l;function p(e){Object.keys(e).forEach((function(t){c.push(function(e,t){return`${e}="${Pt(t)}"`}(t,e[t]))}))}switch(typeof s){case"object":if(null===s)break;s._attr&&p(s._attr),s._cdata&&u.push(`${`<![CDATA[${s._cdata}`.replace(/\]\]>/g,"]]]]><![CDATA[>")}]]>`),s.forEach&&(l=!1,u.push(""),s.forEach((function(e){if("object"==typeof e){"_attr"===Object.keys(e)[0]?p(e._attr):u.push(Lt(e,t,r+1))}else u.pop(),l=!0,u.push(Pt(e))})),l||u.push(""));break;default:u.push(Pt(s))}return{name:o,interrupt:!1,attributes:c,content:u,icount:r,indents:a,indent:t}}function Nt(e,t,n){if("object"!=typeof t)return void e(!1,t);const r=t.interrupt?1:t.content.length;function a(){for(;t.content.length;){const n=t.content.shift();if(void 0!==n){if(i(n))return;Nt(e,n)}}e(!1,(r>1?t.indents:"")+(t.name?`</${t.name}>`:"")+(t.indent&&!n?"\n":""))}function i(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=a,t.interrupt=!1,e(!0),!0)}e(!1,t.indents+(t.name?`<${t.name}`:"")+(t.attributes.length?` ${t.attributes.join(" ")}`:"")+(r?t.name?">":"":t.name?"/>":"")+(t.indent&&r>1?"\n":"")),r?i(t)||a():e(!1,t.indent?"\n":"")}function Mt(e){if(!e)return;let t="",n="";if(e.circularReference)t=`{recursive: ${e.circularReference.name}} `;else if(e.type){const n=Array.isArray(e.type)?e.type:"string"==typeof e.type?e.type.split("┃"):e.type;t=Array.isArray(n)?n.filter((e=>"null"!==e)).join("┃"):e.type,(e.format||e.enum)&&(t=t.replace("string",e.enum?"enum":e.format))}else t="";const r={type:t,format:e.format||"",pattern:e.pattern&&!e.enum?e.pattern:"",readOrWriteOnly:(e.readOnly?"🆁":e.writeOnly&&"🆆")||"",deprecated:!!e.deprecated,example:Array.isArray(e.example)?e.example:void 0!==e.example?`${e.example}`:"",default:e.default||"",title:e.title||"",description:e.description||"",constraint:"",allowedValues:"",arrayType:"",html:""};if(r.allowedValues=Array.isArray(e.enum)?e.enum.join("┃"):"","array"===t&&e.items){var a;const t=e.items.type,n=null!==(a=e.items.default)&&void 0!==a?a:"";r.arrayType=`${e.type} of ${Array.isArray(t)?t.join(""):t}`,r.default=n,r.allowedValues=Array.isArray(e.items.enum)?e.items.enum.join("┃"):""}if(t.match(/integer|number/g)){var i,o;const t=null!==(i=e.minimum)&&void 0!==i?i:e.exclusiveMinimum,r=null!==(o=e.maximum)&&void 0!==o?o:e.exclusiveMaximum,a=void 0!==e.minimum?"[":"(",s=void 0!==e.maximum?"]":")";"number"!=typeof t&&"number"!=typeof r||(n=`Range: ${a}${null!=t?t:""},${null!=r?r:""}${s}`),void 0!==e.multipleOf&&(n+=`${n?", ":""}Multiples: ${e.multipleOf}`)}return t.match(/string/g)&&(void 0!==e.minLength&&void 0!==e.maxLength?n+=`Min length: ${e.minLength}, Max length: ${e.maxLength}`:void 0!==e.minLength?n+=`Min length: ${e.minLength}`:void 0!==e.maxLength&&(n+=`Max length: ${e.maxLength}`)),r.constraint=n,r.html=JSON.stringify({type:r.type,readOrWriteOnly:r.readOrWriteOnly,constraint:r.constraint,defaultValue:r.default,example:r.example,allowedValues:r.allowedValues,pattern:r.pattern,schemaDescription:r.description,schemaTitle:r.title,deprecated:r.deprecated}),r}function Bt(e,t={}){if(!e)return[];const n={},r=[],{prefix:a,namespace:i}=e.xml||{};i&&(n[a?`xmlns:${a}`:"xmlns"]=i);const o=e.items&&e.items.xml&&e.items.xml.name||e.xml&&e.xml.name||t.propertyName||"root",s=a?`${a}:${o}`:o;if(e.allOf)return Bt(e.allOf[0],t);if(e.oneOf)return e.oneOf.map((e=>Bt(e,t))).flat(1);if(e.anyOf)return e.anyOf.map((e=>Bt(e,t))).flat(1);if("array"===e.type||e.items){if(!t.xml)return[Bt(e.items||{},t)];if(!e.xml||!e.xml.wrapped){const a=Bt(e.items||{},t);return r.push({[s]:a[0]},{_attr:n}),[r]}const a=Bt(e.items||{},{...t,propertyName:s});return r.push({[s]:a[0]},{_attr:n}),[r]}if("object"===e.type||e.properties){let o=[{}];return Object.keys(e.properties||{}).forEach((s=>{const c=e.properties[s];if(c.deprecated)return;if(c.readOnly&&!t.includeReadOnly)return;if(c.writeOnly&&!t.includeWriteOnly)return;const u=Bt(c,{...t,propertyName:s});o=function(e,t,n){return e.reduce(((e,r)=>{const a=n.slice(0,2).map((e=>({...jt()(r),[t]:e})));return e.concat(...a)}),[]).slice(0,10)}(o,s,u),c.xml&&c.xml.namespace&&(n[c.xml.prefix?`xmlns:${c.xml.prefix}`:"xmlns"]=i);const l=c.xml&&c.xml.name||s||t.propertyName,p=a?`${a}:${l}`:l;c.xml&&c.xml.attribute?n[p]=u[0]:r.push({[p]:u[0]})})),Object.keys(n).length&&r.push({_attr:n}),t.xml?[r]:o}return[function(e,t,n){var r;const a=e.examples?e.examples[0]:e.example;if(""===a)return"";if(null===a)return null;if(0===a)return 0;if(n&&"string"==typeof a)return"";if(a)return a;if(e.default)return e.default;if(0===Object.keys(e).length)return null;if(e.$ref)return e.$ref;const i=Array.isArray(e.type)?e.type.filter((e=>"null"!==e))[0]:null!==(r=e.type)&&void 0!==r?r:"";if(i.match(/^integer|^number/g)){const t=Number.isNaN(Number(e.multipleOf))?void 0:Number(e.multipleOf),n=Number.isNaN(Number(e.maximum))?void 0:Number(e.maximum),r=Number.isNaN(Number(e.minimum))?Number.isNaN(Number(e.exclusiveMinimum))?n||0:Number(e.exclusiveMinimum)+(i.startsWith("integer")?1:.001):Number(e.minimum);return t?t>=r?t:r%t==0?r:Math.ceil(r/t)*t:r}if(i.match(/^boolean/g))return!1;if(i.match(/^null/g))return null;if(n&&i.match(/^string/g))return"";if(i.match(/^string/g)){if(e.enum)return e.enum[0];if(e.pattern){const n=e.pattern.replace(/[+*](?![^\][]*[\]])/g,"{8}").replace(/\{\d*,(\d+)?\}/g,"{8}");return(0,Tt.expandN)(n,1)[0]||t||"string"}if(!e.format)return t||"string";switch(e.format.toLowerCase()){case"url":return"https://example.com";case"uri":return"urn:namespace:type:example/resource";case"date":return(new Date).toISOString().split("T")[0];case"time":return(new Date).toISOString().split("T")[1];case"date-time":return(new Date).toISOString();case"duration":return"P3Y6M4DT12H30M5S";case"email":case"idn-email":return"user@example.com";case"hostname":case"idn-hostname":return"www.example.com";case"ipv4":return"192.168.0.1";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"uuid":return"4e0ba220-9575-11eb-a8b3-0242ac130003";default:return e.format}}return"?"}(e,t.propertyName,t.skipExampleStrings)]}function Ut(e,t,n=0,r=""){if(e){if(e.allOf){const r={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){return`${Mt(e.allOf[0]).html}`}e.allOf.map(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const a=(e.anyOf||e.oneOf)&&t>0?t:"",i=Ut(e,{},n+1,a);Object.assign(r,i)}else if("array"===e.type||e.items){const t=Ut(e,{},n+1);Object.assign(r,t)}else if(e.type){const t=`prop${Object.keys(r).length}`,n=Mt(e);r[t]=`${n.html}`}})),t=r}else if(e.anyOf||e.oneOf){if(t["::description"]=e.description||"","object"===e.type||e.properties){t["::description"]=e.description||"",t["::flags"]={"🆁":e.readOnly&&"🆁","🆆":e.writeOnly&&"🆆"},t["::type"]="object";for(const r in e.properties)e.required&&e.required.includes(r)?t[`${r}*`]=Ut(e.properties[r],{},n+1):t[r]=Ut(e.properties[r],{},n+1)}const a={},i=e.anyOf?"anyOf":"oneOf";e[i].forEach(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const n=Ut(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=n,a["::type"]="xxx-of-option"}else if("array"===e.type||e.items){const n=Ut(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=n,a["::type"]="xxx-of-array"}else{const n=`::OPTION~${t+1}${e.title?`~${e.title}`:""}`;a[n]=`${Mt(e).html}`,a["::type"]="xxx-of-option"}})),t[e.anyOf?`::ANY~OF ${r}`:`::ONE~OF ${r}`]=a,t["::type"]="xxx-of"}else if(Array.isArray(e.type)){const r=JSON.parse(JSON.stringify(e)),a=[],i=[];let o;if(r.type.forEach((t=>{t.match(/integer|number|string|null|boolean/g)?a.push(t):"array"===t&&"string"==typeof(r.items&&r.items.type)&&e.items&&r.items.type.match(/integer|number|string|null|boolean/g)?"string"===r.items.type&&r.items.format?a.push(`${r.items.format}[]`):a.push(`${r.items.type}[]`):i.push(t)})),a.length>0&&(r.type=a.join("┃"),o=Mt(r),0===i.length))return`${o&&o.html||""}`;if(i.length>0){t["::type"]="xxx-of";const a={"::type":"xxx-of-option"};i.forEach(((t,i)=>{if("null"===t)a[`::OPTION~${i+1}`]="NULL~|~~|~~|~~|~~|~~|~~|~~|~";else if("integer, number, string, boolean,".includes(`${t},`)){r.type=Array.isArray(t)?t.join("┃"):t;const e=Mt(r);a[`::OPTION~${i+1}`]=e.html}else if("object"===t){const t={"::title":e.title||"","::description":e.description||"","::flags":{"🆁":e.readOnly&&"🆁","🆆":e.writeOnly&&"🆆"},"::type":"object","::deprecated":e.deprecated||!1};for(const r in e.properties)e.required&&e.required.includes(r)?t[`${r}*`]=Ut(e.properties[r],{},n+1):t[r]=Ut(e.properties[r],{},n+1);a[`::OPTION~${i+1}`]=t}else"array"===t&&(a[`::OPTION~${i+1}`]={"::title":e.title||"","::description":e.description||"","::flags":{"🆁":e.readOnly&&"🆁","🆆":e.writeOnly&&"🆆"},"::type":"array","::props":Ut(Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.items),{},n+1)})})),a[`::OPTION~${i.length+1}`]=o&&o.html||"",t["::ONE~OF"]=a}}else if("object"===e.type||e.properties){t["::title"]=e.title||"",t["::description"]=e.description||"",t["::flags"]={"🆁":e.readOnly&&"🆁","🆆":e.writeOnly&&"🆆"},t["::type"]="object",t["::deprecated"]=e.deprecated||!1;for(const r in e.properties)e.required&&e.required.includes(r)?t[`${r}*`]=Ut(e.properties[r],{},n+1):t[r]=Ut(e.properties[r],{},n+1);e.additionalProperties&&(t["<any-key>"]=Ut(e.additionalProperties,{}))}else{if("array"!==e.type&&!e.items){const t=Mt(e);return t&&t.html?`${t.html}`:""}t["::title"]=e.title||"",t["::description"]=e.description?e.description:e.items&&e.items.description?`array<${e.items.description}>`:"",t["::flags"]={"🆁":e.readOnly&&"🆁","🆆":e.writeOnly&&"🆆"},t["::type"]="array",t["::deprecated"]=e.deprecated||!1,t["::props"]=Ut(Object.assign({deprecated:e.deprecated,readOnly:e.readOnly,writeOnly:e.writeOnly},e.items),{},n+1)}return t}}function Ft(e,t,n,r,a=!0,i=!0,o,s=!1){const c=r||"application/json",u=[];if(e)for(const t in e){let n="",r="json";if(c.toLowerCase().includes("json")){if("text"===o)n="string"==typeof e[t].value?e[t].value:JSON.stringify(e[t].value,void 0,2),r="text";else if(n=e[t].value,"string"==typeof e[t].value)try{const a=e[t].value.replace(/([\w]+)(:)/g,'"$1"$2').replace(/'/g,'"');n=JSON.parse(a),r="json"}catch(a){r="text",n=e[t].value}}else n=e[t].value,r="text";u.push({exampleId:t,exampleSummary:e[t].summary||t,exampleDescription:e[t].description||"",exampleType:c,exampleValue:n,exampleFormat:r})}else if(t){let e="",n="json";if(c.toLowerCase().includes("json")){if("text"===o)e="string"==typeof t?t:JSON.stringify(t,void 0,2),n="text";else if("object"==typeof t)e=t,n="json";else if("string"==typeof t)try{e=JSON.parse(t),n="json"}catch(r){n="text",e=t}}else e=t,n="text";u.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:c,exampleValue:e,exampleFormat:n})}if(u.length)return u;if(n&&n.example)return[{exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:c,exampleValue:n.example,exampleFormat:c.toLowerCase().includes("json")&&"object"==typeof n.example?"json":"text"}];const l=function(e,t={}){if(t.xml)return Bt("object"===e.type?{properties:{_root:e}}:e,t).map((e=>e[0]));return Bt(e,t)}(n,{includeReadOnly:a,includeWriteOnly:i,skipExampleStrings:s,xml:c.toLowerCase().includes("xml")});return l&&(c.toLowerCase().includes("json")||c.toLowerCase().includes("text")||c.toLowerCase().includes("*/*")||c.toLowerCase().includes("xml"))?l.map(((e,t)=>{let n="";return n=c.toLowerCase().includes("xml")?It(e,{declaration:!0,indent:" "}):"text"===o?JSON.stringify(e,null,8):e,{exampleId:`Example-${t}`,exampleSummary:`Example ${t+1}`,exampleDescription:"",exampleType:c,exampleFormat:c.toLowerCase().includes("xml")?"text":o,exampleValue:n}})).filter((e=>e)):[{exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:c,exampleValue:"",exampleFormat:"text"}]}const zt=K`.border-top{border-top:1px solid var(--border-color)}.border{border:1px solid var(--border-color);border-radius:var(--border-radius)}.light-border{border:1px solid var(--light-border-color);border-radius:var(--border-radius)}.pad-8-16{padding:8px 16px}.pad-top-8{padding-top:8px}.mar-top-8{margin-top:8px}`;class qt extends J{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"}}}static get styles(){return[Me,zt,Be,K`:host{display:flex}.json-tree{background:#333;color:#fff;padding:12px;min-height:30px;font-family:var(--font-mono);font-size:var(--font-size-small);overflow:hidden;word-break:break-all;flex:1;line-height:calc(var(--font-size-small) + 6px)}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.collapsed.open-bracket{padding-right:0}.tree>.open-bracket{margin-left:-2px}.open-bracket:hover{color:var(--primary-color);background-color:var(--hover-color);border:1px solid var(--border-color)}.inside-bracket{padding-left:16px;border-left:1px dotted var(--border-color)}.open-bracket.collapsed+.inside-bracket,.open-bracket.collapsed+.inside-bracket+.close-bracket{display:none}.close-bracket{margin-left:-2px}.string{color:var(--green)}.number{color:var(--blue)}.null{color:var(--red)}.boolean{color:var(--orange)}.object{color:#fff}.toolbar{display:none}.tree .toolbar{display:flex;justify-content:space-between;width:100%}.tree .item{border-bottom:1px dotted transparent}.toolbar-item{cursor:pointer;padding:5px 0 5px 1rem;margin:0 1rem!important;color:#38b3f9;flex-shrink:0}.tree .toolbar .toolbar-item{display:none}.inside-bracket.xxx-of{padding:5px 0;border-style:dotted;border-width:0 0 1px 0;border-color:var(--primary-color)}.schema-root-type.xxx-of{display:none}.toolbar-item:first-of-type{margin:0 2px 0 0}@media only screen and (min-width:576px){.key-descr{display:block}.tree .toolbar .toolbar-item{display:block}.toolbar{display:flex}}.toolbar-backup{position:absolute;right:6px;display:flex;align-items:center}`]}render(){return M` <div class="json-tree tree"> <div class="toolbar"> <div> </div> <div class="toolbar-item"> <button class="toolbar-copy-btn" part="btn btn-fill" @click="${e=>{Ye(JSON.stringify(this.data,null,2),e)}}">Copy</button> </div> </div> ${this.generateTree(this.data,!0)} </div> `}generateTree(e,t=!1){if(null===e)return M`<div class="null" style="display:inline">null</div>`;if("object"==typeof e&&e instanceof Date==!1){const n=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?M`${Array.isArray(e)?"[ ],":"{ },"}`:M` <div class="open-bracket expanded ${"array"===n?"array":"object"}" @click="${this.toggleExpand}"> ${"array"===n?"[":"{"}</div> <div class="inside-bracket"> ${Object.keys(e).map(((t,r,a)=>M` <div class="item"> ${"pure_object"===n?M`"${t}":`:""} ${this.generateTree(e[t],r===a.length-1)} </div>`))} </div> <div class="close-bracket">${"array"===n?"]":"}"}${t?"":","}</div> `}return"string"==typeof e||e instanceof Date?M`<span class="${typeof e}">"${e}"</span>${t?"":","}`:M`<span class="${typeof e}">${e}</span>${t?"":","}`}toggleExpand(e){const t=e.target;t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{")}}customElements.get("openapi-explorer")||customElements.define("json-tree",qt);const Dt=K`*,:after,:before{box-sizing:border-box}.tr{display:flex;flex:none;width:100%;box-sizing:content-box;border-bottom:1px dotted transparent}.td{display:block;flex:0 0 auto}.key{font-family:var(--font-mono);white-space:normal;word-break:break-all}.key-descr{font-family:var(--font-regular);flex-shrink:1;text-overflow:ellipsis;overflow:hidden;display:none;max-height:auto}.toolbar{display:none}.tr.xxx-of{border-top:1px dotted var(--primary-color)}.xxx-of-key{font-size:calc(var(--font-size-small) - 2px);font-weight:700;background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:2px;line-height:calc(var(--font-size-small) + 6px);padding:0 5px;margin-bottom:1px;display:inline-block}.xxx-of-descr{font-family:var(--font-regular);color:var(--primary-color);font-size:calc(var(--font-size-small) - 1px);margin-left:2px}.bina,.byte,.date,.emai,.host,.ipv4,.pass,.stri,.string,.uri,.url,.uuid{color:var(--green)}.deci .blue,.doub,.floa,.int3,.int6,.inte,.numb,.number{color:var(--blue)}.null{color:var(--red)}.bool,.boolean{color:var(--orange)}.enum{color:var(--yellow)}.tree .toolbar{display:flex;justify-content:space-between}.toolbar{width:100%}.toolbar-item{cursor:pointer;padding:5px 0 5px 1rem;margin:0 1rem!important;color:#38b3f9;flex-shrink:0}.tree .toolbar .toolbar-item{display:none}.schema-root-type{cursor:auto;color:var(--fg2);font-weight:700;text-transform:uppercase}.schema-root-type.xxx-of{display:none}.toolbar-item:first-of-type{margin:0 2px 0 0}@media only screen and (min-width:576px){.key-descr{display:block}.tree .toolbar .toolbar-item{display:block}.toolbar{display:flex}}`;class Ht extends J{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="true"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[Me,Dt,zt,K`.tree{min-height:30px;background:#333;padding:12px;color:#fff;font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.tree .key{max-width:300px}.key.deprecated .key-label{text-decoration:line-through}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.collapsed .open-bracket{padding-right:0}.td.key>.open-bracket:first-child{margin-left:-2px}.open-bracket:hover{color:var(--primary-color);background-color:var(--hover-color);border:1px solid var(--border-color)}.close-bracket{display:inline-block;font-family:var(--font-mono);margin-left:-2px}.tr.collapsed .close-bracket{margin-left:0}.tr.collapsed+.inside-bracket,.tr.collapsed+.inside-bracket+.close-bracket{display:none}.inside-bracket.array,.inside-bracket.object{border-left:1px dotted var(--border-color)}.inside-bracket.xxx-of{padding:5px 0;border-style:dotted;border-width:0 0 1px 0;border-color:var(--primary-color)}`]}render(){return M` <div class="tree"> <div class="toolbar"> ${this.data&&this.data["::description"]?M`<span class="m-markdown" style="margin-block-start:0"> ${it(Ie(this.data["::description"]||""))}</span>`:M`<div> </div>`} <div class="toolbar-item" @click="${()=>this.toggleSchemaDescription()}"> ${"true"===this.schemaDescriptionExpanded?"Collapse descriptions":"Expand descriptions"} </div> </div> ${this.data?M`${this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"])}`:M`<span class="mono-font" style="color:var(--red)"> Schema not found </span>`} </div> `}toggleSchemaDescription(){this.schemaDescriptionExpanded=!this.schemaDescriptionExpanded,this.requestUpdate()}generateTree(e,t="object",n="",r="",a=0,i=0){if(!e)return M`<div class="null" style="display:inline">null</div>`;if(0===Object.keys(e).length)return M`<span class="key object">${n}:{ }</span>`;let o="",s="";if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))o=n.replace("::","").replace("~"," ");else if(n.startsWith("::OPTION")){const e=n.split("~");o=e[1],s=e[2]}else o=n;const c=250-16*i;let u="",l="";const p=e["::type"]&&e["::type"].startsWith("xxx-of")?a:a+1,d="xxx-of-option"===t||"xxx-of-option"===e["::type"]||n.startsWith("::OPTION")?i:i+1;if("object"===e["::type"]?"array"===t?(u=a<this.schemaExpandLevel?M`<span class="open-bracket array-of-object" @click="${this.toggleObjectExpand}">[{</span>`:M`<span class="open-bracket array-of-object" @click="${this.toggleObjectExpand}">[{...}]</span>`,l="}]"):(u=a<this.schemaExpandLevel?M`<span class="open-bracket object" @click="${this.toggleObjectExpand}">{</span>`:M`<span class="open-bracket object" @click="${this.toggleObjectExpand}">{...}</span>`,l="}"):"array"===e["::type"]&&("array"===t?(u=a<this.schemaExpandLevel?M`<span class="open-bracket array-of-array" @click="${this.toggleObjectExpand}">[[</span>`:M`<span class="open-bracket array-of-array" @click="${this.toggleObjectExpand}">[[...]]</span>`,l="]]"):(u=a<this.schemaExpandLevel?M`<span class="open-bracket array" @click="${this.toggleObjectExpand}">[</span>`:M`<span class="open-bracket array" @click="${this.toggleObjectExpand}">[...]</span>`,l="]")),"object"==typeof e){const i=e["::flags"]||{};if(i["🆁"]&&"true"===this.schemaHideReadOnly)return;if(i["🆆"]&&"true"===this.schemaHideWriteOnly)return;const f=[i["🆁"]||i["🆆"],r].filter((e=>e)).join(" ");return M` <div class="tr ${a<this.schemaExpandLevel||e["::type"]&&e["::type"].startsWith("xxx-of")?"expanded":"collapsed"} ${e["::type"]||"no-type-info"}"> <div class="td key ${e["::deprecated"]?"deprecated":""}" style="min-width:${c}px"> ${"xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]||n.startsWith("::OPTION")?M`<span class="key-label xxx-of-key">${o}</span><span class="xxx-of-descr">${s}</span>`:o.endsWith("*")?M`<span class="key-label">${o.substring(0,o.length-1)}</span><span style="color:var(--red)">*</span>:`:"::props"===o||"::ARRAY~OF"===o?"":a>0?M`<span class="key-label">${o}:</span>`:""} ${"xxx-of"===e["::type"]&&"array"===t?M`<span style="color:var(--primary-color)">ARRAY</span>`:""} ${u} </div> <div class="td key-descr"> <span class="m-markdown-small" style="font-family:var(--font-mono);vertical-align:middle" title="${(i["🆁"]?"Read only attribute":i["🆆"]&&"Write only attribute")||""}"> ${it(Ie(f))} </span> </div> </div> <div class="inside-bracket ${e["::type"]||"no-type-info"}" style="padding-left:${"xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]?0:16}px"> ${Array.isArray(e)&&e[0]?M`${this.generateTree(e[0],"xxx-of-option","::ARRAY~OF","",p,d)}`:M` ${Object.keys(e).map((t=>t.startsWith("::")&&"array"!==e[t]["::type"]&&"object"!==e[t]["::type"]?"":M`${this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],p,d)}`))}`} </div> ${e["::type"]&&e["::type"].includes("xxx-of")?"":M`<div class="close-bracket"> ${l} </div>`} `}const{type:f,readOrWriteOnly:h,constraint:m,defaultValue:b,example:g,allowedValues:v,pattern:y,schemaDescription:x,schemaTitle:w,deprecated:k}=JSON.parse(e);if("🆁"===h&&"true"===this.schemaHideReadOnly)return;if("🆆"===h&&"true"===this.schemaHideWriteOnly)return;const S=f.replace(/┃.*/g,"").replace(/[^a-zA-Z0-9+]/g,"").substring(0,4).toLowerCase();return M` <div class="tr primitive"> <div class="td key ${k?"deprecated":""}" style="min-width:${c}px"> ${o.endsWith("*")?M`<span class="key-label">${o.substring(0,o.length-1)}</span><span style="color:var(--red)">*</span>:`:n.startsWith("::OPTION")?M`<span class="key-label xxx-of-key">${o}</span><span class="xxx-of-descr">${s}</span>`:a>0?M`<span class="key-label">${o}:</span>`:""} <span class="${S}"> ${"array"===t?`${f}[]`:`${f}`} </span> </div> <div class="td key-descr"> <span class="m-markdown-small" style="font-family:var(--font-mono);vertical-align:middle" title="${("🆁"===h?"Read only attribute":"🆆"===h&&"Write only attribute")||""}"> ${it(Ie(`${h&&`${h} `||""}${"array"===t&&r||`${w?`**${w}:**`:""} ${x}`||""}`))} </span> ${this.schemaDescriptionExpanded?M` ${m?M`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Constraints: </span>${m}</div><br>`:""} ${b?M`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Default: </span>${b}</div><br>`:""} ${v?M`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Allowed: </span>${v}</div><br>`:""} ${y?M`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Pattern: </span>${y}</div><br>`:""} ${g?M`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Example: </span>${g}</div><br>`:""}`:""} </div> </div> `}toggleObjectExpand(e){const t=e.target.closest(".tr");t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{...}]":e.target.classList.contains("array-of-array")?"[[...]]":e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{":e.target.classList.contains("array-of-array")?"[[":e.target.classList.contains("object")?"{":"[")}}customElements.get("openapi-explorer")||customElements.define("schema-tree",Ht);class Wt extends J{render(){const e=M`${(this.value||[]).filter((e=>e.trim())).map((e=>M`<span class="tag">${e}</span>`))}`;return M` <div class="tags" tabindex="0"> ${e} <input type="text" class="editor" @paste="${e=>this.afterPaste(e)}" @keydown="${this.afterKeyDown}" placeholder="${this.placeholder||""}"> </div> `}static get properties(){return{placeholder:{type:String},value:{type:Array,attribute:"value"}}}connectedCallback(){super.connectedCallback(),Array.isArray(this.value)||(this.value=""!==this.value?[this.value]:[])}attributeChangedCallback(e,t,n){"value"===e&&n&&t!==n&&(this.value=n.split(",").filter((e=>e.trim()))),super.attributeChangedCallback(e,t,n)}afterPaste(e){const t=(e.clipboardData||window.clipboardData).getData("Text"),n=t&&t.split(",").filter((e=>e.trim()))||[];this.value=this.value.concat(n),e.preventDefault()}afterKeyDown(e){13===e.keyCode?(e.stopPropagation(),e.preventDefault(),this.value=this.value.concat(e.target.value||[]),e.target.value=""):8===e.keyCode&&0===e.target.value.length&&(this.value=this.value.slice(0,-1))}static get styles(){return[K`.tags{display:flex;flex-wrap:wrap;outline:0;padding:0;border-radius:var(--border-radius);border:1px solid var(--border-color);cursor:text;overflow:hidden;background:var(--input-bg)}.editor,.tag{padding:3px;margin:2px}.tag{border:1px solid var(--border-color);background-color:var(--bg3);color:var(--fg3);border-radius:var(--border-radius);word-break:break-all;font-size:var(--font-size-small)}.tag:hover~#cursor{display:block}.editor{flex:1;border:1px solid transparent;color:var(--fg);min-width:60px;outline:0;line-height:inherit;font-family:inherit;background:0 0;font-size:calc(var(--font-size-small) + 1px)}.editor::placeholder{color:var(--placeholder-color);opacity:1}`]}}customElements.get("openapi-explorer")||customElements.define("tag-input",Wt);const Vt=RegExp("^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$|^application/vnd."),Gt=RegExp("^audio/|^image/|^video/");class Kt extends J{createRenderRoot(){return this}constructor(){super(),this.responseMessage="",this.responseStatus="",this.responseHeaders="",this.responseText="",this.responseUrl="",this.responseElapsedMs=0,this.curlSyntax="",this.activeResponseTab="response",this.selectedRequestBodyType="",this.selectedRequestBodyExample=""}static get properties(){return{serverUrl:{type:String,attribute:"server-url"},servers:{type:Array},method:{type:String},path:{type:String},parameters:{type:Array},request_body:{type:Object},api_keys:{type:Array},parser:{type:Object},accept:{type:String},callback:{type:String},responseMessage:{type:String,attribute:!1},responseText:{type:String,attribute:!1},responseHeaders:{type:String,attribute:!1},responseStatus:{type:String,attribute:!1},responseUrl:{type:String,attribute:!1},responseElapsedMs:{type:Number,attribute:!1},fillRequestWithDefault:{type:String,attribute:"fill-defaults"},allowTry:{type:String,attribute:"enable-console"},renderStyle:{type:String,attribute:"render-style"},schemaStyle:{type:String,attribute:"schema-style"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},fetchCredentials:{type:String,attribute:"fetch-credentials"},activeResponseTab:{type:String},selectedRequestBodyType:{type:String,attribute:"selected-request-body-type"},selectedRequestBodyExample:{type:String,attribute:"selected-request-body-example"}}}render(){return M` <div class="api-request col regular-font request-panel ${"focused"===this.renderStyle||"true"===this.callback?"focused-mode":"view-mode"}"> <div class="${"true"===this.callback?"tiny-title":"req-res-title"}"> ${"true"===this.callback?"CALLBACK REQUEST":"REQUEST"} </div> <div> ${this.inputParametersTemplate("path")} ${this.inputParametersTemplate("query")} ${this.requestBodyTemplate()} ${this.inputParametersTemplate("header")} ${this.inputParametersTemplate("cookie")} ${"false"===this.allowTry?"":M`${this.apiCallTemplate()}`} </div> </div> `}updated(e){if("focused"!==this.renderStyle)return;if(1===e.size&&e.has("activeSchemaTab"))return;[...this.querySelectorAll('textarea[data-ptype="form-data"]')].forEach((e=>{const t=this.querySelector(`textarea[data-pname='hidden-${e.dataset.pname}']`);t&&(e.value=t.value)}))}inputParametersTemplate(e){const t=this.parameters?this.parameters.filter((t=>t.in===e)):[];if(0===t.length)return"";let n="";"path"===e?n="PATH PARAMETERS":"query"===e?n="QUERY-STRING PARAMETERS":"header"===e?n="REQUEST HEADERS":"cookie"===e&&(n="COOKIES");const r=[];for(const n of t){if(!n.schema)continue;const t=Mt(n.schema);if(!t)continue;const o=Array.isArray(t.default)?t.default:`${t.default}`;let s="form",c=!0;"query"===e&&(n.style&&"form spaceDelimited pipeDelimited".includes(n.style)&&(s=n.style),"boolean"==typeof n.explode&&(c=n.explode)),r.push(M` <tr> <td style="width:160px;min-width:50px"> <div class="param-name ${t.deprecated?"deprecated":""}"> ${n.name}${!t.deprecated&&n.required?M`<span style="color:var(--red)">*</span>`:""} </div> <div class="param-type"> ${"array"===t.type?`${t.arrayType}`:`${t.format?t.format:t.type}`}${!t.deprecated&&n.required?M`<span style="opacity:0">*</span>`:""} </div> </td> ${"true"===this.allowTry?M` <td style="min-width:160px"> ${"array"===t.type?M` <tag-input class="request-param" style="width:100%" data-ptype="${e}" data-pname="${n.name}" data-default="${Array.isArray(o)?o.join("~|~"):o}" data-param-serialize-style="${s}" data-param-serialize-explode="${c}" data-array="true" placeholder="${t.example||(Array.isArray(o)?o[0]:o)||"add-multiple ↩"}" .value="${Array.isArray(o)?o:o.split(",")}"> </tag-input>`:"object"===t.type?M` <textarea class="textarea request-param" part="textarea textarea-param" data-ptype="${e}-object" data-pname="${n.name}" data-default="${o}" data-param-serialize-style="${s}" data-param-serialize-explode="${c}" spellcheck="false" placeholder="${t.example||o||""}" style="resize:vertical;width:100%;height:${"read focused".includes(this.renderStyle)?"180px":"120px"}">${"true"===this.fillRequestWithDefault?o:""}</textarea>`:M` <input type="${"password"===t.format?"password":"text"}" spellcheck="false" style="width:100%" placeholder="${t.example||o||""}" class="request-param" part="textbox textbox-param" data-ptype="${e}" data-pname="${n.name}" data-default="${Array.isArray(o)?o.join("~|~"):o}" data-array="false" @keyup="${this.requestParamFunction}" .value="${"true"===this.fillRequestWithDefault?o:""}">`} </td>`:""} ${"focused"===this.renderStyle?M` <td> ${t.default||t.constraint||t.allowedValues||t.pattern?M` <div class="param-constraint"> ${t.constraint?M`<span style="font-weight:700">Constraints: </span>${t.constraint}<br>`:""} ${t.pattern?M`<span style="font-weight:700">Pattern: </span>${a=t.pattern,i=60,a&&a.length>i?`${a.substring(0,i-1)}…`:a}<br>`:""} ${t.allowedValues&&t.allowedValues.split("┃").map(((e,r)=>M` ${r>0?"|":M`<span style="font-weight:700">Allowed: </span>`} ${M` <a part="anchor anchor-param-constraint" class="${"true"===this.allowTry?"":"inactive-link"}" data-type="${"array"===t.type?t.type:"string"}" data-enum="${e.trim()}" @click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${n.name}"]`);t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)}}"> ${e} </a>`}`))} </div>`:""} </td> `:""} </tr>`)}var a,i;return M` <div class="table-title top-gap">${n}${"path"===e?M`<span style="color:var(--red)">*</span>`:""}</div> <div style="display:block;overflow-x:auto;max-width:100%"> <table role="presentation" class="m-table" style="width:100%;word-break:break-word"> ${r} </table> </div>`}resetRequestBodySelection(){this.selectedRequestBodyType="",this.selectedRequestBodyExample="",this.clearResponseData()}onSelectExample(e){this.selectedRequestBodyExample=e.target.value;const t=e.target;window.setTimeout((e=>{const t=e.closest(".example-panel").querySelector(".request-body-param");e.closest(".example-panel").querySelector(".request-body-param-user-input").value=t.value}),0,t)}onMimeTypeChange(e){this.selectedRequestBodyType=e.target.value;const t=e.target;this.selectedRequestBodyExample="",window.setTimeout((e=>{const t=e.closest(".request-body-container").querySelector(".request-body-param");if(t){e.closest(".request-body-container").querySelector(".request-body-param-user-input").value=t.value}}),0,t)}requestBodyTemplate(){if(!this.request_body)return"";if(0===Object.keys(this.request_body).length)return"";let e="",t="",n="",r="",a="";const i=[],o=this.request_body.content;for(const e in o)i.push({mimeType:e,schema:o[e].schema,example:o[e].example,examples:o[e].examples}),this.selectedRequestBodyType||(this.selectedRequestBodyType=e);return e=1===i.length?"":M` <select aria-label="mime type" style="min-width:100px;max-width:100%;margin-bottom:-1px" @change="${e=>this.onMimeTypeChange(e)}"> ${i.map((e=>M` <option value="${e.mimeType}" ?selected="${e.mimeType===this.selectedRequestBodyType}"> ${e.mimeType} </option> `))} </select> `,i.forEach((e=>{let i=[];if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text"))e.mimeType===this.selectedRequestBodyType&&(i=Ft(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,!0,"text",!0),this.selectedRequestBodyExample||(this.selectedRequestBodyExample=i.length>0?i[0].exampleId:""),a=M` ${a} <div class="example-panel border-top pad-top-8"> ${1===i.length?"":M` <select aria-label="request body example" style="min-width:100px;max-width:100%;margin-bottom:-1px" @change="${e=>this.onSelectExample(e)}"> ${i.map((e=>M`<option value="${e.exampleId}" ?selected="${e.exampleId===this.selectedRequestBodyExample}"> ${e.exampleSummary.length>80?e.exampleId:e.exampleSummary?e.exampleSummary:e.exampleId} </option>`))} </select> `} ${i.filter((e=>e.exampleId===this.selectedRequestBodyExample)).map((t=>M` <div class="example ${t.exampleId===this.selectedRequestBodyExample?"example-selected":""}" data-default="${t.exampleId}"> ${t.exampleSummary&&t.exampleSummary.length>80?M`<div style="padding:4px 0"> ${t.exampleSummary} </div>`:""} ${t.exampleDescription?M`<div class="m-markdown-small" style="padding:4px 0"> ${it(Ie(t.exampleDescription||""))} </div>`:""} <textarea class="textarea request-body-param-user-input" part="textarea textarea-param" spellcheck="false" data-ptype="${e.mimeType}" data-default="${"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,8)}" data-default-format="${t.exampleFormat}" style="width:100%;resize:vertical">${"true"===this.fillRequestWithDefault?"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,8):""}</textarea> <textarea class="textarea is-hidden request-body-param ${e.mimeType.substring(e.mimeType.indexOf("/")+1)}" spellcheck="false" data-ptype="${e.mimeType}" style="width:100%;resize:vertical;display:none">${"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,8)}</textarea> </div> `))} </div> `);else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){if(e.mimeType===this.selectedRequestBodyType){const t=Ft(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,!0,"text",!0);e.schema&&(n=this.formDataTemplate(e.schema,e.mimeType,t[0]?t[0].exampleValue:""))}}else(Gt.test(this.selectedRequestBodyType)||Vt.test(this.selectedRequestBodyType))&&e.mimeType===this.selectedRequestBodyType&&(t=M` <div class="small-font-size bold-text row"> <input type="file" part="file-input" style="max-width:100%" class="request-body-param-file" data-ptype="${e.mimeType}" spellcheck="false"> </div> `);if(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text")){const t=Ut(e.schema,{});r="table"===this.schemaStyle?M` ${r} <schema-table class="${e.mimeType.substring(e.mimeType.indexOf("/")+1)} pad-top-8" style="display:${this.selectedRequestBodyType===e.mimeType?"block":"none"}" .data="${t}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" schema-hide-read-only="${this.schemaHideReadOnly.includes(this.method)}" schema-hide-write-only="false"> </schema-table> `:M` ${r} <schema-tree class="${e.mimeType.substring(e.mimeType.indexOf("/")+1)} pad-top-8" style="display:${this.selectedRequestBodyType===e.mimeType?"block":"none"}" .data="${t}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" schema-hide-read-only="${this.schemaHideReadOnly.includes(this.method)}" schema-hide-write-only="false"> </schema-tree> `}})),M` <div class="request-body-container" data-selected-request-body-type="${this.selectedRequestBodyType}"> <div class="table-title top-gap row"> REQUEST BODY ${this.request_body.required?M`<span class="mono-font" style="color:var(--red)">*</span>`:""} <span style="font-weight:400;margin-left:5px"> ${this.selectedRequestBodyType}</span> <span style="flex:1"></span> ${e} </div> ${this.request_body.description?M`<div class="m-markdown" style="margin-bottom:12px">${it(Ie(this.request_body.description))}</div>`:""} ${this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")?M` <div class="tab-panel col" style="border-width:0 0 1px 0"> <div class="tab-buttons row" @click="${e=>{"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)}}"> <button class="tab-btn ${"model"===this.activeSchemaTab?"active":""}" data-tab="model">MODEL</button> <button class="tab-btn ${"body"===this.activeSchemaTab?"active":""}" data-tab="body">BODY</button> </div> ${M`<div class="tab-content col" style="display:${"model"===this.activeSchemaTab?"block":"none"}"> ${r}</div>`} ${M`<div class="tab-content col" style="display:${"model"===this.activeSchemaTab?"none":"block"}"> ${a}</div>`} </div>`:M` ${t} ${n}`} </div> `}formDataTemplate(e,t,n=""){const r=[];if(e.properties){for(const n in e.properties){const a=e.properties[n];if(a.readOnly)continue;const i=a.type,o=Ut(a,{}),s=Mt(a),c=Ft("",a.example?a.example:"",a,"json",!1,!0,"text",!0);r.push(M` <tr> <td style="width:160px;min-width:100px"> <div class="param-name ${a.deprecated?"deprecated":""}"> ${n}${!a.deprecated&&(e.required&&e.required.includes(n)||a.required)?M`<span style="color:var(--red)">*</span>`:""} </div> <div class="param-type">${s.type}</div> </td> <td style="${"object"===i?"width:100%; padding:0;":"true"===this.allowTry?"":"display:none;"} min-width:100px" colspan="${"object"===i?2:1}"> ${"array"===i?a.items&&"binary"===a.items.format?M` <div class="file-input-container col" style="align-items:flex-end" @click="${e=>this.onAddRemoveFileInput(e,n,t)}"> <div class="input-set row"> <input type="file" part="file-input" style="width:100%" data-pname="${n}" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-array="false" data-file-array="true"> <button class="file-input-remove-btn"> ✕ </button> </div> <button class="m-btn primary file-input-add-btn" part="btn btn-fill" style="margin:2px 25px 0 0;padding:2px 6px">ADD</button> </div> `:M` <tag-input style="width:100%" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-pname="${n}" data-default="${s.default||""}" data-array="true" placeholder="${(Array.isArray(s.example)?s.example[0]:s.example)||"add-multiple ↩"}" .value="${s.default||""}"> </tag-input> `:M` ${"object"===i?M` <div class="tab-panel row" style="min-height:220px;border-left:6px solid var(--light-border-color);align-items:stretch"> <div style="width:24px;background-color:var(--light-border-color)"> <div class="row" style="flex-direction:row-reverse;width:160px;height:24px;transform:rotate(270deg) translateX(-160px);transform-origin:top left;display:block" @click="${e=>{if(e.target.classList.contains("v-tab-btn")){const t=e.target.dataset.tab;if(t){const n=e.target.closest(".tab-panel"),r=n.querySelector(`.v-tab-btn[data-tab="${t}"]`),a=[...n.querySelectorAll(`.v-tab-btn:not([data-tab="${t}"])`)],i=n.querySelector(`.tab-content[data-tab="${t}"]`),o=[...n.querySelectorAll(`.tab-content:not([data-tab="${t}"])`)];r.classList.add("active"),i.style.display="block",a.forEach((e=>{e.classList.remove("active")})),o.forEach((e=>{e.style.display="none"}))}}"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)}}"> <button class="v-tab-btn ${"model"===this.activeSchemaTab?"active":""}" data-tab="model">MODEL</button> <button class="v-tab-btn ${"body"===this.activeSchemaTab?"active":""}" data-tab="body">REQUEST BODY</button> </div> </div> ${M` <div class="tab-content col" data-tab="model" style="display:${"model"===this.activeSchemaTab?"block":"none"};padding-left:5px;width:100%"> <schema-tree .data="${o}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}"> </schema-tree> </div>`} ${M` <div class="tab-content col" data-tab="example" style="display:${"body"===this.activeSchemaTab?"block":"none"};padding-left:5px;width:100%"> <textarea class="textarea" placeholder="${c[0]&&c[0].exampleValue||s.default||""}" part="textarea textarea-param" style="width:100%;border:none;resize:vertical" data-array="false" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-pname="${n}" data-default="${s.default||""}" spellcheck="false">${"true"===this.fillRequestWithDefault?s.default:""}</textarea> <textarea data-pname="hidden-${n}" data-ptype="${t.includes("form-urlencode")?"hidden-form-urlencode":"hidden-form-data"}" class="is-hidden" style="display:none">${s.default}</textarea> </div>`} </div>`:M` ${"true"===this.allowTry?M`<input placeholder="${s.example||s.default||""}" .value="${"true"===this.fillRequestWithDefault&&s.default||""}" spellcheck="false" type="${"binary"===a.format?"file":"password"===a.format?"password":"text"}" part="textbox textbox-param" style="width:100%" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-pname="${n}" data-default="${s.default||""}" data-array="false">`:""} `}`} </td> ${"object"===i?"":M` <td> ${s.default||s.constraint||s.allowedValues||s.pattern?M` <div class="param-constraint"> ${s.pattern?M`<span style="font-weight:700">Pattern: </span>${s.pattern}<br>`:""} ${s.constraint?M`<span style="font-weight:700">Constraints: </span>${s.constraint}<br>`:""} ${s.allowedValues&&s.allowedValues.split("┃").map(((e,t)=>M` ${t>0?"|":M`<span style="font-weight:700">Allowed: </span>`} ${M` <a part="anchor anchor-param-constraint" class="${"true"===this.allowTry?"":"inactive-link"}" data-type="${"array"===s.type?s.type:"string"}" data-enum="${e.trim()}" @click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${n}"]`);t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)}}"> ${e} </a>`}`))} </div>`:""} </td>`} </tr> ${"object"===i?"":M` <tr> <td style="border:none"> </td> <td colspan="2" style="border:none;margin-top:0;padding:0 5px 8px 5px"> <span class="m-markdown-small">${it(Ie(a.description||""))}</span> ${s.example?M` <span> <span style="font-weight:700"> Example: </span> ${"array"===s.type?"[ ":""} <a part="anchor anchor-param-example" class="${"true"===this.allowTry?"":"inactive-link"}" data-default-type="${"array"===s.type?s.type:"string"}" data-default="${Array.isArray(s.example)&&s.example.join("~|~")||s.example||""}" @click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${n}"]`);t&&("array"===e.target.dataset.exampleType?t.value=e.target.dataset.example.split("~|~"):t.value=e.target.dataset.example)}}"> ${"array"===s.type?s.example.join(", "):s.example} </a> ${"array"===s.type?"] ":""} </span>`:""} </td> </tr> `}`)}return M` <table role="presentation" style="width:100%" class="m-table"> ${r} </table> `}return M` <textarea class="textarea dynamic-form-param ${t}" part="textarea textarea-param" spellcheck="false" data-pname="dynamic-form" data-ptype="${t}" style="width:100%">${n}</textarea> ${e.description?M`<span class="m-markdown-small">${it(Ie(e.description))}</span>`:""} `}apiResponseTabTemplate(){const e=this.responseHeaders.includes("json")?"json":this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?"html":"";return M` <div class="row" style="font-size:var(--font-size-small);margin:5px 0"> ${this.responseMessage?M`<div class="response-message ${this.responseStatus}">Response Status: ${this.responseMessage} ${this.responseElapsedMs?M`<span><br>Execution Time: ${this.responseElapsedMs}ms</span>`:""} </div>`:""} <div style="flex:1"></div> <button class="m-btn" part="btn btn-outline" @click="${this.clearResponseData}">CLEAR RESPONSE</button> </div> <div class="tab-panel col" style="border-width:0 0 1px 0"> <div id="tab_buttons" class="tab-buttons row" @click="${e=>{!1!==e.target.classList.contains("tab-btn")&&(this.activeResponseTab=e.target.dataset.tab)}}"> <button class="tab-btn ${"response"===this.activeResponseTab?"active":""}" data-tab="response">RESPONSE</button> <button class="tab-btn ${"headers"===this.activeResponseTab?"active":""}" data-tab="headers">RESPONSE HEADERS</button> <button class="tab-btn ${"curl"===this.activeResponseTab?"active":""}" data-tab="curl">CURL</button> </div> ${this.responseIsBlob?M` <div class="tab-content col" style="flex:1;display:${"response"===this.activeResponseTab?"flex":"none"}"> <button class="m-btn thin-border mar-top-8" style="width:135px" @click="${this.downloadResponseBlob}" part="btn btn-outline">DOWNLOAD</button> ${"view"===this.responseBlobType?M`<button class="m-btn thin-border mar-top-8" style="width:135px" @click="${this.viewResponseBlob}" part="btn btn-outline">VIEW (NEW TAB)</button>`:""} </div>`:M` <div class="tab-content col m-markdown" style="flex:1;display:${"response"===this.activeResponseTab?"flex":"none"}"> <button class="toolbar-copy-btn" @click="${e=>{Ye(this.responseText,e)}}" part="btn btn-fill">Copy</button> <pre>${e?M`<code>${it(Ne().highlight(this.responseText,Ne().languages[e],e))}</code>`:`${this.responseText}`}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openapi-explorer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.342",
|
|
4
4
|
"description": "OpenAPI Explorer - API viewer with dynamically generated components, documentation, and interaction console",
|
|
5
5
|
"author": "Rhosys Developers <developers@rhosys.ch>",
|
|
6
6
|
"repository": {
|