@asyncapi/react-component 1.0.0-next.28 → 1.0.0-next.31

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.
@@ -5,14 +5,14 @@
5
5
  * @author Feross Aboukhadijeh <http://feross.org>
6
6
  * @license MIT
7
7
  */
8
- var n=r(81),i=r(82),a=r(60);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,r)}function l(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=f(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(t,r),i=(e=s(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):f(e,t);if("Buffer"===t.type&&a(t.data))return f(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(c(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function f(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var a,o=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,r/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;a<s;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var p=!0,f=0;f<u;f++)if(l(e,a+f)!==l(t,f)){p=!1;break}if(p)return a}return-1}function b(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function x(e,t,r,n){return z(L(t,e.length-r),e,r,n)}function E(e,t,r,n){return z(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return E(e,t,r,n)}function D(e,t,r,n){return z(U(t),e,r,n)}function A(e,t,r,n){return z(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,u,l=e[i],c=null,p=l>239?4:l>223?3:l>191?2:1;if(i+p<=r)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return l(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return c(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return p(null,e)},u.allocUnsafeSlow=function(e){return p(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):m.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(n,i),c=e.slice(t,r),p=0;p<s;++p)if(l[p]!==c[p]){a=l[p],o=c[p];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return x(this,e,t,r);case"ascii":return E(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return D(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function P(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function T(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=B(e[a]);return i}function j(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function F(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function O(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function $(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function I(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,a){return a||I(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function R(e,t,r,n,a){return a||I(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||F(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||F(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||F(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||F(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||_(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||_(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=u.isBuffer(e)?e:L(new u(e,n).toString()),s=o.length;for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function U(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(13))},function(e,t,r){"use strict";var n=r(49),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];e.exports=function(e,t){var r,o;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(r=t.styleAliases||null,o={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){o[String(t)]=e}))})),o),-1===a.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(51),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];var o=function(e,t){var r,o;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(r=t.styleAliases||null,o={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){o[String(t)]=e}))})),o),-1===a.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};t.Type=o},function(e,t){function r(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];"object"!=typeof n||Object.isFrozen(n)||r(n)})),e}var n=r,i=r;n.default=i;class a{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function o(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(e,...t){const r=Object.create(null);for(const t in e)r[t]=e[t];return t.forEach((function(e){for(const t in e)r[t]=e[t]})),r}const u=e=>!!e.kind;class l{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=o(e)}openNode(e){if(!u(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){u(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class c{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{c._collapse(e)}))}}class p extends c{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const r=e.root;r.kind=t,r.sublanguage=!0,this.add(r)}toHTML(){return new l(this,this.options).value()}finalize(){return!0}}function f(e){return e?"string"==typeof e?e:e.source:null}const h=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;const d="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",m={begin:"\\\\[\\s\\S]",relevance:0},y={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[m]},g={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[m]},v={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},b=function(e,t,r={}){const n=s({className:"comment",begin:e,end:t,contains:[]},r);return n.contains.push(v),n.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),n},x=b("//","$"),E=b("/\\*","\\*/"),w=b("#","$"),D={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},A={className:"number",begin:d,relevance:0},S={className:"number",begin:"\\b(0b[01]+)",relevance:0},k={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},C={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[m,{begin:/\[/,end:/\]/,relevance:0,contains:[m]}]}]},P={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},T={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},j={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var F=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:d,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>f(e)).join("")}(t,/.*\b/,e.binary,/\b.*/)),s({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:m,APOS_STRING_MODE:y,QUOTE_STRING_MODE:g,PHRASAL_WORDS_MODE:v,COMMENT:b,C_LINE_COMMENT_MODE:x,C_BLOCK_COMMENT_MODE:E,HASH_COMMENT_MODE:w,NUMBER_MODE:D,C_NUMBER_MODE:A,BINARY_NUMBER_MODE:S,CSS_NUMBER_MODE:k,REGEXP_MODE:C,TITLE_MODE:P,UNDERSCORE_TITLE_MODE:T,METHOD_GUARD:j,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function _(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function O(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=_,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function $(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map(e=>f(e)).join("|")+")"}(...e.illegal))}function I(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function N(e,t){void 0===e.relevance&&(e.relevance=1)}const R=["of","and","for","in","not","or","if","then","parent","list","value"];function M(e,t){return t?Number(t):function(e){return R.includes(e.toLowerCase())}(e)?0:1}function B(e,{plugins:t}){function r(t,r){return new RegExp(f(t),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=r(function(e,t="|"){let r=0;return e.map(e=>{r+=1;const t=r;let n=f(e),i="";for(;n.length>0;){const e=h.exec(n);if(!e){i+=n;break}i+=n.substring(0,e.index),n=n.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&r++)}return i}).map(e=>`(${e})`).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const r=t.findIndex((e,t)=>t>0&&void 0!==e),n=this.matchIndexes[r];return t.splice(0,r),Object.assign(t,n)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach(([e,r])=>t.addRule(e,r)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let r=t.exec(e);if(this.resumingScanAtSamePosition())if(r&&r.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,r=t.exec(e)}return r&&(this.regexIndex+=r.position+1,this.regexIndex===this.count&&this.considerAll()),r}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=s(e.classNameAliases||{}),function t(n,a){const o=n;if(n.isCompiled)return o;[I].forEach(e=>e(n,a)),e.compilerExtensions.forEach(e=>e(n,a)),n.__beforeBegin=null,[O,$,N].forEach(e=>e(n,a)),n.isCompiled=!0;let u=null;if("object"==typeof n.keywords&&(u=n.keywords.$pattern,delete n.keywords.$pattern),n.keywords&&(n.keywords=function e(t,r,n="keyword"){const i={};return"string"==typeof t?a(n,t.split(" ")):Array.isArray(t)?a(n,t):Object.keys(t).forEach((function(n){Object.assign(i,e(t[n],r,n))})),i;function a(e,t){r&&(t=t.map(e=>e.toLowerCase())),t.forEach((function(t){const r=t.split("|");i[r[0]]=[e,M(r[0],r[1])]}))}}(n.keywords,e.case_insensitive)),n.lexemes&&u)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return u=u||n.lexemes||/\w+/,o.keywordPatternRe=r(u,!0),a&&(n.begin||(n.begin=/\B|\b/),o.beginRe=r(n.begin),n.endSameAsBegin&&(n.end=n.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(o.endRe=r(n.end)),o.terminatorEnd=f(n.end)||"",n.endsWithParent&&a.terminatorEnd&&(o.terminatorEnd+=(n.end?"|":"")+a.terminatorEnd)),n.illegal&&(o.illegalRe=r(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return s(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(e))return s(e,{starts:e.starts?s(e.starts):null});if(Object.isFrozen(e))return s(e);return e}("self"===e?n:e)}))),n.contains.forEach((function(e){t(e,o)})),n.starts&&t(n.starts,a),o.matcher=function(e){const t=new i;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function L(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,o(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const U={"after:highlightElement":({el:e,result:t,text:r})=>{const n=q(e);if(!n.length)return;const i=document.createElement("div");i.innerHTML=t.value,t.value=function(e,t,r){let n=0,i="";const a=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function u(e){i+="<"+z(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+o(e.value)+'"'})).join("")+">"}function l(e){i+="</"+z(e)+">"}function c(e){("start"===e.event?u:l)(e.node)}for(;e.length||t.length;){let t=s();if(i+=o(r.substring(n,t[0].offset)),n=t[0].offset,t===e){a.reverse().forEach(l);do{c(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===n);a.reverse().forEach(u)}else"start"===t[0].event?a.push(t[0].node):a.pop(),c(t.splice(0,1)[0])}return i+o(r.substr(n))}(n,q(i),r)}};function z(e){return e.nodeName.toLowerCase()}function q(e){const t=[];return function e(r,n){for(let i=r.firstChild;i;i=i.nextSibling)3===i.nodeType?n+=i.nodeValue.length:1===i.nodeType&&(t.push({event:"start",offset:n,node:i}),n=e(i,n),z(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:n,node:i}));return n}(e,0),t}const H={},V=e=>{console.error(e)},J=(e,...t)=>{console.log("WARN: "+e,...t)},K=(e,t)=>{H[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),H[`${e}/${t}`]=!0)},X=o,W=s,Y=Symbol("nomatch");var G=function(e){const t=Object.create(null),r=Object.create(null),i=[];let o=!0;const s=/(^(<[^>]+>|\t|)+|\n)/gm,u="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let c={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:p};function f(e){return c.noHighlightRe.test(e)}function h(e,t,r,n){let i="",a="";"object"==typeof t?(i=e,r=t.ignoreIllegals,a=t.language,n=void 0):(K("10.7.0","highlight(lang, code, ...args) has been deprecated."),K("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),a=e,i=t);const o={code:i,language:a};k("before:highlight",o);const s=o.result?o.result:d(o.language,o.code,r,n);return s.code=o.code,k("after:highlight",s),s}function d(e,r,n,s){function l(e,t){const r=x.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,r)&&e.keywords[r]}function p(){null!=A.subLanguage?function(){if(""===C)return;let e=null;if("string"==typeof A.subLanguage){if(!t[A.subLanguage])return void k.addText(C);e=d(A.subLanguage,C,!0,S[A.subLanguage]),S[A.subLanguage]=e.top}else e=m(C,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(P+=e.relevance),k.addSublanguage(e.emitter,e.language)}():function(){if(!A.keywords)return void k.addText(C);let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(C),r="";for(;t;){r+=C.substring(e,t.index);const n=l(A,t);if(n){const[e,i]=n;if(k.addText(r),r="",P+=i,e.startsWith("_"))r+=t[0];else{const r=x.classNameAliases[e]||e;k.addKeyword(t[0],r)}}else r+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(C)}r+=C.substr(e),k.addText(r)}(),C=""}function f(e){return e.className&&k.openNode(x.classNameAliases[e.className]||e.className),A=Object.create(e,{parent:{value:A}}),A}function h(e){return 0===A.matcher.regexIndex?(C+=e[0],1):(F=!0,0)}function y(e){const t=e[0],r=e.rule,n=new a(r),i=[r.__beforeBegin,r["on:begin"]];for(const r of i)if(r&&(r(e,n),n.isMatchIgnored))return h(t);return r&&r.endSameAsBegin&&(r.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),r.skip?C+=t:(r.excludeBegin&&(C+=t),p(),r.returnBegin||r.excludeBegin||(C=t)),f(r),r.returnBegin?0:t.length}function g(e){const t=e[0],n=r.substr(e.index),i=function e(t,r,n){let i=function(e,t){const r=e&&e.exec(t);return r&&0===r.index}(t.endRe,n);if(i){if(t["on:end"]){const e=new a(t);t["on:end"](r,e),e.isMatchIgnored&&(i=!1)}if(i){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,r,n)}(A,e,n);if(!i)return Y;const o=A;o.skip?C+=t:(o.returnEnd||o.excludeEnd||(C+=t),p(),o.excludeEnd&&(C=t));do{A.className&&k.closeNode(),A.skip||A.subLanguage||(P+=A.relevance),A=A.parent}while(A!==i.parent);return i.starts&&(i.endSameAsBegin&&(i.starts.endRe=i.endRe),f(i.starts)),o.returnEnd?0:t.length}let v={};function b(t,i){const a=i&&i[0];if(C+=t,null==a)return p(),0;if("begin"===v.type&&"end"===i.type&&v.index===i.index&&""===a){if(C+=r.slice(i.index,i.index+1),!o){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=v.rule,t}return 1}if(v=i,"begin"===i.type)return y(i);if("illegal"===i.type&&!n){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(A.className||"<unnamed>")+'"');throw e.mode=A,e}if("end"===i.type){const e=g(i);if(e!==Y)return e}if("illegal"===i.type&&""===a)return 1;if(j>1e5&&j>3*i.index){throw new Error("potential infinite loop, way more iterations than matches")}return C+=a,a.length}const x=D(e);if(!x)throw V(u.replace("{}",e)),new Error('Unknown language: "'+e+'"');const E=B(x,{plugins:i});let w="",A=s||E;const S={},k=new c.__emitter(c);!function(){const e=[];for(let t=A;t!==x;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>k.openNode(e))}();let C="",P=0,T=0,j=0,F=!1;try{for(A.matcher.considerAll();;){j++,F?F=!1:A.matcher.considerAll(),A.matcher.lastIndex=T;const e=A.matcher.exec(r);if(!e)break;const t=b(r.substring(T,e.index),e);T=e.index+t}return b(r.substr(T)),k.closeAllNodes(),k.finalize(),w=k.toHTML(),{relevance:Math.floor(P),value:w,language:e,illegal:!1,emitter:k,top:A}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:r.slice(T-100,T+100),mode:t.mode},sofar:w,relevance:0,value:X(r),emitter:k};if(o)return{illegal:!1,relevance:0,value:X(r),emitter:k,language:e,top:A,errorRaised:t};throw t}}function m(e,r){r=r||c.languages||Object.keys(t);const n=function(e){const t={relevance:0,emitter:new c.__emitter(c),value:X(e),illegal:!1,top:l};return t.emitter.addText(e),t}(e),i=r.filter(D).filter(S).map(t=>d(t,e,!1));i.unshift(n);const a=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(D(e.language).supersetOf===t.language)return 1;if(D(t.language).supersetOf===e.language)return-1}return 0}),[o,s]=a,u=o;return u.second_best=s,u}const y={"before:highlightElement":({el:e})=>{c.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:e})=>{c.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},g=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:e})=>{c.tabReplace&&(e.value=e.value.replace(g,e=>e.replace(/\t/g,c.tabReplace)))}};function b(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const r=c.languageDetectRe.exec(t);if(r){const t=D(r[1]);return t||(J(u.replace("{}",r[1])),J("Falling back to no-highlight mode for this block.",e)),t?r[1]:"no-highlight"}return t.split(/\s+/).find(e=>f(e)||D(e))}(e);if(f(n))return;k("before:highlightElement",{el:e,language:n}),t=e;const i=t.textContent,a=n?h(i,{language:n,ignoreIllegals:!0}):m(i);k("after:highlightElement",{el:e,result:a,text:i}),e.innerHTML=a.value,function(e,t,n){const i=t?r[t]:n;e.classList.add("hljs"),i&&e.classList.add(i)}(e,n,a.language),e.result={language:a.language,re:a.relevance,relavance:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance,relavance:a.second_best.relevance})}const x=()=>{if(x.called)return;x.called=!0,K("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(b)};let E=!1;function w(){if("loading"===document.readyState)return void(E=!0);document.querySelectorAll("pre code").forEach(b)}function D(e){return e=(e||"").toLowerCase(),t[e]||t[r[e]]}function A(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{r[e.toLowerCase()]=t})}function S(e){const t=D(e);return t&&!t.disableAutodetect}function k(e,t){const r=e;i.forEach((function(e){e[r]&&e[r](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){E&&w()}),!1),Object.assign(e,{highlight:h,highlightAuto:m,highlightAll:w,fixMarkup:function(e){return K("10.2.0","fixMarkup will be removed entirely in v11.0"),K("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,c.tabReplace||c.useBR?t.replace(s,e=>"\n"===e?c.useBR?"<br>":e:c.tabReplace?e.replace(/\t/g,c.tabReplace):e):t;var t},highlightElement:b,highlightBlock:function(e){return K("10.7.0","highlightBlock will be removed entirely in v12.0"),K("10.7.0","Please use highlightElement now."),b(e)},configure:function(e){e.useBR&&(K("10.3.0","'useBR' will be removed entirely in v11.0"),K("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),c=W(c,e)},initHighlighting:x,initHighlightingOnLoad:function(){K("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),E=!0},registerLanguage:function(r,n){let i=null;try{i=n(e)}catch(e){if(V("Language definition for '{}' could not be registered.".replace("{}",r)),!o)throw e;V(e),i=l}i.name||(i.name=r),t[r]=i,i.rawDefinition=n.bind(null,e),i.aliases&&A(i.aliases,{languageName:r})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(r))r[t]===e&&delete r[t]},listLanguages:function(){return Object.keys(t)},getLanguage:D,registerAliases:A,requireLanguage:function(e){K("10.4.0","requireLanguage will be removed entirely in v11."),K("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=D(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:S,inherit:W,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),i.push(e)},vuePlugin:L(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString="10.7.3";for(const e in F)"object"==typeof F[e]&&n(F[e]);return Object.assign(e,F),e.addPlugin(y),e.addPlugin(U),e.addPlugin(v),e}({});e.exports=G},function(e,t){var r,n,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var u,l=[],c=!1,p=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):p=-1,l.length&&h())}function h(){if(!c){var e=s(f);c=!0;for(var t=l.length;t;){for(u=l,l=[];++p<t;)u&&u[p].run();p=-1,t=l.length}u=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new d(e,t)),1!==l.length||c||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){const{getMapValueOfType:n}=r(2),i=r(78),a={hasExternalDocs(){return!(!this._json.externalDocs||!Object.keys(this._json.externalDocs).length)},externalDocs(){return n(this._json,"externalDocs",i)}};e.exports=a},function(e,t,r){"use strict";(function(n){let i=/^win/.test(n.platform),a=/\//g,o=/^(\w{2,}):\/\//i,s=e.exports,u=/~1/g,l=/~0/g,c=[/\?/g,"%3F",/\#/g,"%23"],p=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];t.parse=r(63).parse,t.resolve=r(63).resolve,t.cwd=function(){if(n.browser)return location.href;let e=n.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:e+"/"},t.getProtocol=function(e){let t=o.exec(e);if(t)return t[1].toLowerCase()},t.getExtension=function(e){let t=e.lastIndexOf(".");return t>=0?s.stripQuery(e.substr(t).toLowerCase()):""},t.stripQuery=function(e){let t=e.indexOf("?");return t>=0&&(e=e.substr(0,t)),e},t.getHash=function(e){let t=e.indexOf("#");return t>=0?e.substr(t):"#"},t.stripHash=function(e){let t=e.indexOf("#");return t>=0&&(e=e.substr(0,t)),e},t.isHttp=function(e){let t=s.getProtocol(e);return"http"===t||"https"===t||void 0===t&&n.browser},t.isFileSystemPath=function(e){if(n.browser)return!1;let t=s.getProtocol(e);return void 0===t||"file"===t},t.fromFileSystemPath=function(e){i&&(e=e.replace(/\\/g,"/")),e=encodeURI(e);for(let t=0;t<c.length;t+=2)e=e.replace(c[t],c[t+1]);return e},t.toFileSystemPath=function(e,t){e=decodeURI(e);for(let t=0;t<p.length;t+=2)e=e.replace(p[t],p[t+1]);let r="file://"===e.substr(0,7).toLowerCase();return r&&(e="/"===e[7]?e.substr(8):e.substr(7),i&&"/"===e[1]&&(e=e[0]+":"+e.substr(1)),t?e="file:///"+e:(r=!1,e=i?e:"/"+e)),i&&!r&&":\\"===(e=e.replace(a,"\\")).substr(1,2)&&(e=e[0].toUpperCase()+e.substr(1)),e},t.safePointerToPath=function(e){return e.length<=1||"#"!==e[0]||"/"!==e[1]?[]:e.slice(2).split("/").map(e=>decodeURIComponent(e).replace(u,"/").replace(l,"~"))}}).call(this,r(16))},function(e,t,r){"use strict";const{Ono:n}=r(26),{stripHash:i,toFileSystemPath:a}=r(18),o=t.JSONParserError=class extends Error{constructor(e,t){super(),this.code="EUNKNOWN",this.message=e,this.source=t,this.path=null,n.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};u(o);const s=t.JSONParserErrorGroup=class e extends Error{constructor(e){super(),this.files=e,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${a(e.$refs._root$Ref.path)}'`,n.extend(this)}static getParserErrors(e){const t=[];for(const r of Object.values(e.$refs._$refs))r.errors&&t.push(...r.errors);return t}get errors(){return e.getParserErrors(this.files)}};u(s);u(t.ParserError=class extends o{constructor(e,t){super(`Error parsing ${t}: ${e}`,t),this.code="EPARSER"}});u(t.UnmatchedParserError=class extends o{constructor(e){super(`Could not find parser for "${e}"`,e),this.code="EUNMATCHEDPARSER"}});u(t.ResolverError=class extends o{constructor(e,t){super(e.message||`Error reading file "${t}"`,t),this.code="ERESOLVER","code"in e&&(this.ioErrorCode=String(e.code))}});u(t.UnmatchedResolverError=class extends o{constructor(e){super(`Could not find resolver for "${e}"`,e),this.code="EUNMATCHEDRESOLVER"}});u(t.MissingPointerError=class extends o{constructor(e,t){super(`Token "${e}" does not exist.`,i(t)),this.code="EMISSINGPOINTER"}});function u(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}u(t.InvalidPointerError=class extends o{constructor(e,t){super(`Invalid $ref pointer "${e}". Pointers must begin with "#/"`,i(t)),this.code="EINVALIDPOINTER"}}),t.isHandledError=function(e){return e instanceof o||e instanceof s},t.normalizeError=function(e){return null===e.path&&(e.path=[]),e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));const n=/\r?\n/,i=/\bono[ @]/;function a(e,t){let r=s(e.stack),n=t?t.stack:void 0;return r&&n?r+"\n\n"+n:r||n}function o(e,t,r){r?Object.defineProperty(t,"stack",{get:()=>a({stack:e.get.apply(t)},r),enumerable:!1,configurable:!0}):function(e,t){Object.defineProperty(e,"stack",{get:()=>s(t.get.apply(e)),enumerable:!1,configurable:!0})}(t,e)}function s(e){if(e){let t,r=e.split(n);for(let e=0;e<r.length;e++){let n=r[e];if(i.test(n))void 0===t&&(t=e);else if(void 0!==t){r.splice(t,e-t);break}}if(r.length>0)return r.join("\n")}return e}const u=["function","symbol","undefined"],l=["constructor","prototype","__proto__"],c=Object.getPrototypeOf({});function p(){let e={},t=this;for(let r of f(t))if("string"==typeof r){let n=t[r],i=typeof n;u.includes(i)||(e[r]=n)}return e}function f(e,t=[]){let r=[];for(;e&&e!==c;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let e of t.concat(l))n.delete(e);return n}const h=["name","message","stack"];function d(e,t,r){let n=e;return function(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");!function(e){return Boolean(e&&e.configurable&&"function"==typeof e.get)}(r)?function(e){return Boolean(!e||e.writable||"function"==typeof e.set)}(r)&&(e.stack=a(e,t)):o(r,e,t)}(n,t),t&&"object"==typeof t&&function(e,t){let r=f(t,h),n=e,i=t;for(let e of r)if(void 0===n[e])try{n[e]=i[e]}catch(e){}}(n,t),n.toJSON=p,r&&"object"==typeof r&&Object.assign(n,r),n}const m=y;function y(e,t){function r(...r){let{originalError:n,props:i,message:a}=function(e,t){let r,n,i,a="";return"string"==typeof e[0]?i=e:"string"==typeof e[1]?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(a=t.format?t.format.apply(void 0,i):i.join(" ")),t.concatMessages&&r&&r.message&&(a+=(a?" \n":"")+r.message),{originalError:r,props:n,message:a}}(r,t);return d(new e(a),n,i)}return t=function(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0!==e.format&&("function"==typeof e.format&&e.format)}}(t),r[Symbol.species]=e,r}y.toJSON=function(e){return p.call(e)},y.extend=function(e,t,r){return r||t instanceof Error?d(e,t,r):t?d(e,void 0,t):d(e)}},function(e,t,r){const{getMapValueByKey:n}=r(2),i={hasBindings(){return!(!this._json.bindings||!Object.keys(this._json.bindings).length)},bindings(){return this.hasBindings()?this._json.bindings:{}},bindingProtocols(){return Object.keys(this.bindings())},hasBinding(e){return this.hasBindings()&&!!this._json.bindings[String(e)]},binding(e){return n(this._json.bindings,e)}};e.exports=i},function(e,t,r){const{createMapOfType:n,getMapValueOfType:i,mix:a}=r(2),o=r(3),s=r(71),u=r(74),l=r(77),c=r(84),p=r(17),f=r(25),h=r(4),{xParserSpecParsed:d,xParserSpecStringified:m,xParserCircle:y}=r(24),{assignNameToAnonymousMessages:g,assignNameToComponentMessages:v,assignUidToComponentSchemas:b,assignUidToParameterSchemas:x,assignIdToAnonymousSchemas:E,assignUidToComponentParameterSchemas:w}=r(87),{traverseAsyncApiDocument:D}=r(45);class A extends o{constructor(...e){super(...e),!0!==this.ext(d)&&(v(this),g(this),b(this),w(this),x(this),E(this),this.json()[String(d)]=!0)}version(){return this._json.asyncapi}info(){return new s(this._json.info)}id(){return this._json.id}hasServers(){return!!this._json.servers}servers(){return n(this._json.servers,u)}serverNames(){return this._json.servers?Object.keys(this._json.servers):[]}server(e){return i(this._json.servers,e,u)}hasDefaultContentType(){return!!this._json.defaultContentType}defaultContentType(){return this._json.defaultContentType||null}hasChannels(){return!!this._json.channels}channels(){return n(this._json.channels,l,this)}channelNames(){return this._json.channels?Object.keys(this._json.channels):[]}channel(e){return i(this._json.channels,e,l,this)}hasComponents(){return!!this._json.components}components(){return this._json.components?new c(this._json.components):null}hasMessages(){return!!this.allMessages().size}allMessages(){const e=new Map;return this.hasChannels()&&this.channelNames().forEach(t=>{const r=this.channel(t);r.hasPublish()&&r.publish().messages().forEach(t=>{e.set(t.uid(),t)}),r.hasSubscribe()&&r.subscribe().messages().forEach(t=>{e.set(t.uid(),t)})}),this.hasComponents()&&Object.values(this.components().messages()).forEach(t=>{e.set(t.uid(),t)}),e}allSchemas(){const e=new Map;return D(this,t=>{t.uid()&&e.set(t.uid(),t)}),e}hasCircular(){return!!this._json[String(y)]}traverseSchemas(e,t){D(this,e,t)}static stringify(e,t){const r={...e.json()};return r[String(m)]=!0,JSON.stringify(r,function(){const e=new Map,t=new Map;let r=null;return function(n,i){const a=e.get(this)+(Array.isArray(this)?`[${n}]`:"."+n),o=i===Object(i);o&&e.set(i,a);const s=t.get(i)||"";if(!s&&o){const e=a.replace(/undefined\.\.?/,"");t.set(i,e)}const u="["===s[0]?"$":"$.";let l=s?`$ref:${u}${s}`:i;return null===r?r=i:l===r&&(l="$ref:$"),l}}(),t)}static parse(e){let t=e;if("string"==typeof e?t=JSON.parse(e):"object"==typeof e&&(t={...t}),"object"!=typeof t||!t[String(d)])throw new Error("Cannot parse invalid AsyncAPI document");if(!t[String(m)])return new A(t);delete t[String(m)];return function e(t,r,n,i,a){let o=t,s="$ref:$";if(void 0!==r){o=t[String(r)];const e=r?"."+r:"";s=i.get(t)+(Array.isArray(t)?`[${r}]`:e)}i.set(o,s),a.set(s,o);const u=a.get(o);u&&(t[String(r)]=u);"$ref:$"!==o&&"$ref:$"!==u||(t[String(r)]=n);if(o===Object(o))for(const t in o)e(o,t,n,i,a)}(t,void 0,t,new Map,new Map),new A(t)}}e.exports=a(A,f,p,h)},function(e,t){const r=(e,t)=>(t.type=e.type.startsWith("https://github.com/asyncapi/parser-js/")?e.type:"https://github.com/asyncapi/parser-js/"+e.type,t.title=e.title,e.detail&&(t.detail=e.detail),e.validationErrors&&(t.validationErrors=e.validationErrors),e.parsedJSON&&(t.parsedJSON=e.parsedJSON),e.location&&(t.location=e.location),e.refs&&(t.refs=e.refs),t);class n extends Error{constructor(e){super(),r(e,this),this.message=e.title}toJS(){return r(this,{})}}e.exports=n},function(e,t){e.exports={xParserSpecParsed:"x-parser-spec-parsed",xParserSpecStringified:"x-parser-spec-stringified",xParserMessageName:"x-parser-message-name",xParserSchemaId:"x-parser-schema-id",xParserCircle:"x-parser-circular",xParserCircleProps:"x-parser-circular-props"}},function(e,t,r){const n=r(80),i={hasTags(){return!(!Array.isArray(this._json.tags)||!this._json.tags.length)},tags(){return this.hasTags()?this._json.tags.map(e=>new n(e)):[]},tagNames(){return this.hasTags()?this._json.tags.map(e=>e.name):[]},hasTag(e){return this.hasTags()&&this._json.tags.some(t=>t.name===e)},tag(e){const t=this.hasTags()&&this._json.tags.find(t=>t.name===e);return t?new n(t):null}};e.exports=i},function(e,t,r){"use strict";r.r(t),function(e){var n=r(95);r.d(t,"ono",(function(){return n.a}));var i=r(20);r.d(t,"Ono",(function(){return i.a}));r(106);t.default=n.a,"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))}.call(this,r(175)(e))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return u}));var n=r(0),i=r.n(n),a=r(29);function o(e){return"undefined"!=typeof document?document.querySelector(e):null}function s(e){return function(t,r,n){null!==(r=r||o("asyncapi"))&&Object(a.render)(i.a.createElement(e,t),r,n)}}function u(e){return function(t,r,n){null!==(r=r||o("asyncapi"))&&Object(a.hydrate)(i.a.createElement(e,t),r,n)}}},function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=r(68)},function(e,t,r){const n=r(39),i=r(40),a=r(44);e.exports=class extends n{hasMultipleMessages(){return!!(this._json.message&&this._json.message.oneOf&&this._json.message.oneOf.length>1)||(this._json.message,!1)}traits(){const e=this._json["x-parser-original-traits"]||this._json.traits;return e?e.map(e=>new a(e)):[]}hasTraits(){return!!this._json["x-parser-original-traits"]||!!this._json.traits}messages(){return this._json.message?this._json.message.oneOf?this._json.message.oneOf.map(e=>new i(e)):[new i(this._json.message)]:[]}message(e){return this._json.message?this._json.message.oneOf?"number"!=typeof e||e>this._json.message.oneOf.length-1?null:new i(this._json.message.oneOf[+e]):new i(this._json.message):null}}},function(e,t,r){"use strict";function n(e,t,r,n){var i=n?" !== ":" === ",a=n?" || ":" && ",o=n?"!":"",s=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+a+"typeof "+t+i+'"object"'+a+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+a+s+"("+t+" % 1)"+a+t+i+t+(r?a+o+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?a+o+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){switch(e.length){case 1:return n(e[0],t,r,!0);default:var i="",o=a(e);for(var s in o.array&&o.object&&(i=o.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete o.null,delete o.array,delete o.object),o.number&&delete o.integer,o)i+=(i?" && ":"")+n(s,t,r,!0);return i}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var a=t[n];(i[a]||"array"===e&&"array"===a)&&(r[r.length]=a)}if(r.length)return r}else{if(i[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:a,getProperty:u,escapeQuotes:l,equal:r(61),ucs2length:r(134),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:c,getPathExpr:function(e,t,r,n){return h(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=c(r?"/"+d(t):u(t));return h(e,n)},getData:function(e,t,r){var n,i,a,o;if(""===e)return"rootData";if("/"==e[0]){if(!p.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,a="rootData"}else{if(!(o=e.match(f)))throw new Error("Invalid JSON-pointer: "+e);if(n=+o[1],"#"==(i=o[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(a="data"+(t-n||""),!i)return a}for(var s=a,l=i.split("/"),c=0;c<l.length;c++){var h=l[c];h&&(a+=u(m(h)),s+=" && "+a)}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var i=a(["string","number","integer","boolean","null"]);function a(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var o=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function u(e){return"number"==typeof e?"["+e+"]":o.test(e)?"."+e:"['"+l(e)+"']"}function l(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function c(e){return"'"+l(e)+"'"}var p=/^\/(?:[^~]|~0|~1)*$/,f=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function h(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},function(e,t,r){"use strict";var n=r(64),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=p;var a=Object.create(r(48));a.inherits=r(27);var o=r(113),s=r(117);a.inherits(p,o);for(var u=i(s.prototype),l=0;l<u.length;l++){var c=u[l];p.prototype[c]||(p.prototype[c]=s.prototype[c])}function p(e){if(!(this instanceof p))return new p(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t,r){"use strict";function n(e){return null==e}e.exports.isNothing=n,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:n(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},e.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},e.exports.extend=function(e,t){var r,n,i,a;if(t)for(r=0,n=(a=Object.keys(t)).length;r<n;r+=1)e[i=a[r]]=t[i];return e}},function(e,t,r){"use strict";var n=r(33),i=r(49),a=r(12);function o(e,t,r){var n=[];return e.include.forEach((function(e){r=o(e,t,r)})),e[t].forEach((function(e){r.forEach((function(t,r){t.tag===e.tag&&t.kind===e.kind&&n.push(r)})),r.push(e)})),r.filter((function(e,t){return-1===n.indexOf(t)}))}function s(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=o(this,"implicit",[]),this.compiledExplicit=o(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{}};function n(e){r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(this.compiledImplicit,this.compiledExplicit)}s.DEFAULT=null,s.create=function(){var e,t;switch(arguments.length){case 1:e=s.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(e=n.toArray(e),t=n.toArray(t),!e.every((function(e){return e instanceof s})))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every((function(e){return e instanceof a})))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:e,explicit:t})},e.exports=s},function(e,t,r){"use strict";function n(e){return null==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNothing=n,t.isObject=function(e){return"object"==typeof e&&null!==e},t.toArray=function(e){return Array.isArray(e)?e:n(e)?[]:[e]},t.extend=function(e,t){var r,n,i,a;if(t)for(r=0,n=(a=Object.keys(t)).length;r<n;r+=1)e[i=a[r]]=t[i];return e},t.repeat=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},t.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(128),o={schemaID:"",show:{sidebar:!1,info:!0,servers:!0,operations:!0,messages:!0,schemas:!0,errors:!0},sidebar:{showOperations:"byOperationsTags"}};var s=function(e){void 0===e&&(e={});var t=e.onResize,r=Object(n.useRef)(void 0);r.current=t;var i=Object(n.useRef)(),a=Object(n.useState)({width:void 0,height:void 0}),o=a[0],s=a[1],u=Object(n.useRef)(!1);Object(n.useEffect)((function(){return function(){u.current=!0}}),[]);var l=Object(n.useRef)({width:void 0,height:void 0}),c=function(e,t){var r=Object(n.useRef)(null),i=Object(n.useCallback)((function(e){r.current=e,s()}),[]),a=Object(n.useRef)(null),o=Object(n.useRef)(),s=function(){var n=null;r.current?n=r.current:t&&(n=t instanceof HTMLElement?t:t.current),a.current!==n&&(o.current&&(o.current(),o.current=null),a.current=n,n&&(o.current=e(n)))};return Object(n.useEffect)((function(){s()}),[t]),i}((function(e){return i.current||(i.current=new ResizeObserver((function(e){if(Array.isArray(e)){var t=e[0],n=Math.round(t.contentRect.width),i=Math.round(t.contentRect.height);if(l.current.width!==n||l.current.height!==i){var a={width:n,height:i};r.current?r.current(a):(l.current.width=n,l.current.height=i,u.current||s(a))}}}))),i.current.observe(e),function(){i.current&&i.current.unobserve(e)}}),e.ref);return Object(n.useMemo)((function(){return{ref:c,width:o.width,height:o.height}}),[c,o?o.width:null,o?o.height:null])},u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},c=function(e){var t=e.chevronProps,r=e.children,n=l(e,["chevronProps","children"]);return i.a.createElement("button",u({},n,{className:"focus:outline-none ".concat(n.className)}),r,i.a.createElement("svg",u({version:"1.1",viewBox:"0 0 24 24",x:"0",xmlns:"http://www.w3.org/2000/svg",y:"0"},t,{className:"inline-block align-baseline cursor-pointer -mb-1 w-5 transform transition-transform duration-150 ease-linear ".concat((null==t?void 0:t.className)||"")}),i.a.createElement("polygon",{points:"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "})))},p=i.a.createContext(null);function f(){return Object(n.useContext)(p)}var h=i.a.createContext({setShowSidebar:function(e){return e}}),d=function(e){var t=e.config,r=Object(n.useState)(!1),a=r[0],o=r[1],s=(null==t?void 0:t.showOperations)||"byDefault",u=f(),l=u.info(),c=l.ext("x-logo"),p=u.hasComponents()&&u.components(),d=p&&p.messages(),v=p&&p.schemas(),b=m;"bySpecTags"===s?b=y:"byOperationsTags"===s&&(b=g);var x=d&&Object.keys(d).length>0&&i.a.createElement("li",{className:"mb-3 mt-9"},i.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#messages",onClick:function(){return o(!1)}},"Messages"),i.a.createElement("ul",{className:"text-sm mt-2"},Object.entries(d).map((function(e){var t=e[0],r=e[1];return i.a.createElement("li",{key:t},i.a.createElement("a",{className:"flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900",href:"#message-".concat(t),onClick:function(){return o(!1)}},i.a.createElement("div",{className:"break-all inline-block"},r.uid())))})))),E=v&&Object.keys(v).length>0&&i.a.createElement("li",{className:"mb-3 mt-9"},i.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#schemas",onClick:function(){return o(!1)}},"Schemas"),i.a.createElement("ul",{className:"text-sm mt-2"},Object.keys(v).map((function(e){return i.a.createElement("li",{key:e},i.a.createElement("a",{className:"flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900",href:"#schema-".concat(e),onClick:function(){return o(!1)}},i.a.createElement("div",{className:"break-all inline-block"},e)))}))));return i.a.createElement(h.Provider,{value:{setShowSidebar:o}},i.a.createElement("div",{className:"burger-menu rounded-full h-16 w-16 bg-white fixed bottom-16 right-8 flex items-center justify-center z-30 cursor-pointer shadow-md bg-teal-500",onClick:function(){return o((function(e){return!e}))},"data-lol":a},i.a.createElement("svg",{viewBox:"0 0 100 70",width:"40",height:"30",className:"fill-current text-gray-200"},i.a.createElement("rect",{width:"100",height:"10"}),i.a.createElement("rect",{y:"30",width:"100",height:"10"}),i.a.createElement("rect",{y:"60",width:"100",height:"10"}))),i.a.createElement("div",{className:"".concat(a?"block fixed w-full":"hidden"," sidebar relative w-64 max-h-screen h-full bg-gray-200 shadow z-20")},i.a.createElement("div",{className:"".concat(a?"w-full":""," block fixed max-h-screen h-full font-sans px-4 pt-8 pb-16 overflow-y-auto bg-gray-200")},i.a.createElement("div",{className:"sidebar--content"},i.a.createElement("div",null,c?i.a.createElement("img",{src:c,alt:"".concat(l.title()," logo, ").concat(l.version()," version")}):i.a.createElement("h1",{className:"text-2xl font-light"},l.title()," ",l.version())),i.a.createElement("ul",{className:"text-sm mt-10 relative"},i.a.createElement("li",{className:"mb-3"},i.a.createElement("a",{className:"text-gray-700 no-underline hover:text-gray-900",href:"#introduction",onClick:function(){return o(!1)}},"Introduction")),u.hasServers()&&i.a.createElement("li",{className:"mb-3"},i.a.createElement("a",{className:"text-gray-700 no-underline hover:text-gray-900",href:"#servers",onClick:function(){return o(!1)}},"Servers")),u.hasChannels()&&i.a.createElement(i.a.Fragment,null,i.a.createElement("li",{className:"mb-3 mt-9"},i.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#operations",onClick:function(){return o(!1)}},"Operations"),i.a.createElement(b,null)),x,E))))))},m=function(){var e=f().channels(),t=[];return Object.entries(e).forEach((function(e){var r=e[0],n=e[1];n.hasPublish()&&t.push(i.a.createElement(b,{channelName:r,key:"pub-".concat(r)})),n.hasSubscribe()&&t.push(i.a.createElement(x,{channelName:r,key:"sub-".concat(r)}))})),i.a.createElement("ul",{className:"text-sm mt-2"},t)},y=function(){var e=f(),t=e.channels(),r=e.tags(),n=function(e){var r=[];return Object.entries(t).forEach((function(t){var n=t[0],o=t[1];o.hasPublish()&&a.a.containTags(o.publish(),e)&&r.push(i.a.createElement(b,{channelName:n,key:"pub-".concat(n)})),o.hasSubscribe()&&a.a.containTags(o.subscribe(),e)&&r.push(i.a.createElement(x,{channelName:n,key:"sub-".concat(n)}))})),r},o=[];return Object.entries(t).forEach((function(e){var t=e[0],n=e[1];!n.hasPublish()||n.publish().hasTags()&&a.a.containTags(n.publish(),r)||o.push(i.a.createElement(b,{channelName:t,key:"pub-".concat(t)})),!n.hasSubscribe()||n.subscribe().hasTags()&&a.a.containTags(n.subscribe(),r)||o.push(i.a.createElement(x,{channelName:t,key:"sub-".concat(t)}))})),i.a.createElement("div",null,i.a.createElement("ul",null,r&&r.map((function(e){return n(e).length>0&&i.a.createElement("li",{key:e.name()},i.a.createElement(v,{tagName:e.name()},n(e)))})),o.length>0&&i.a.createElement("li",null,i.a.createElement(v,{tagName:"Untagged"},o))))},g=function(){var e=f(),t=e.channels(),r=a.a.operationsTags(e),n=function(e){var r=[];return Object.entries(t).forEach((function(t){var n=t[0],o=t[1];o.hasPublish()&&a.a.containTags(o.publish(),e)&&r.push(i.a.createElement(b,{channelName:n,key:"pub-".concat(n)})),o.hasSubscribe()&&a.a.containTags(o.subscribe(),e)&&r.push(i.a.createElement(x,{channelName:n,key:"sub-".concat(n)}))})),r},o=[];return Object.entries(t).forEach((function(e){var t=e[0],n=e[1];!n.hasPublish()||n.publish().hasTags()&&a.a.containTags(n.publish(),r)||o.push(i.a.createElement(b,{channelName:t,key:"pub-".concat(t)})),!n.hasSubscribe()||n.subscribe().hasTags()&&a.a.containTags(n.subscribe(),r)||o.push(i.a.createElement(x,{channelName:t,key:"sub-".concat(t)}))})),i.a.createElement("div",null,i.a.createElement("ul",null,r&&r.map((function(e){return n(e).length>0&&i.a.createElement("li",{key:e.name()},i.a.createElement(v,{tagName:e.name()},n(e)))})),o.length>0&&i.a.createElement("li",null,i.a.createElement(v,{tagName:"Untagged"},o))))},v=function(e){var t=e.tagName,r=e.children,a=Object(n.useState)(!1),o=a[0],s=a[1];return i.a.createElement("div",null,i.a.createElement(c,{onClick:function(){return s((function(e){return!e}))},chevronProps:{className:o?"-rotate-180":"-rotate-90"}},i.a.createElement("span",{className:"text-sm inline-block mt-1 font-extralight"},t)),i.a.createElement("ul",{className:"".concat(o?"block":"hidden"," text-sm mt-2 font-light")},r))},b=function(e){var t=e.channelName,r=Object(n.useContext)(h).setShowSidebar;return i.a.createElement("li",null,i.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#operation-publish-".concat(t),onClick:function(){return r(!1)}},i.a.createElement("span",{className:"bg-blue-600 font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs",title:"Publish"},"Pub"),i.a.createElement("span",{className:"break-all inline-block"},t)))},x=function(e){var t=e.channelName,r=Object(n.useContext)(h).setShowSidebar;return i.a.createElement("li",null,i.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#operation-subscribe-".concat(t),onClick:function(){return r(!1)}},i.a.createElement("span",{className:"bg-green-600 font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs",title:"Subscribe"},"SUB"),i.a.createElement("span",{className:"break-all inline-block"},t)))},E=function(e){var t=e.href,r=e.title,n=e.className,a=e.children;return i.a.createElement("a",{href:t,title:r,className:n,target:"_blank",rel:"nofollow noopener noreferrer"},a)},w=r(53),D=r(54),A=r.n(D),S=r(15),k=r.n(S),C=r(55),P=r.n(C),T=r(56),j=r.n(T),F=r(57),_=r.n(F);k.a.registerLanguage("json",P.a),k.a.registerLanguage("yaml",j.a),k.a.registerLanguage("bash",_.a);var O={langPrefix:"hljs language-",highlight:function(e,t){if(!k.a.getLanguage(t))return e;try{return k.a.highlight(e,{language:t}).value}catch(t){return e}}};var $=function(e){var t,r=e.children;return r?"string"!=typeof r?i.a.createElement(i.a.Fragment,null,r):i.a.createElement("div",{className:"prose max-w-none text-sm",dangerouslySetInnerHTML:{__html:Object(w.sanitize)((t=r,A()(t,O)))}}):null},I=function(e){var t=e.tag,r="#".concat(t.name()),n=t.description()||"",a=t.externalDocs(),o=i.a.createElement("div",{title:n,className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1"},i.a.createElement("span",{className:a?"underline":""},r));return a?i.a.createElement(E,{href:a.url(),title:n},o):o},N=function(e){var t=e.tags;return t&&t.length?i.a.createElement("ul",{className:"flex flex-wrap leading-normal"},t.map((function(e){return i.a.createElement("li",{className:"inline-block mt-2 mr-2",key:e.name()},i.a.createElement(I,{tag:e}))}))):null},R=r(1),M=function(){var e=f(),t=e.info();if(!t)return null;var r=e.id(),n=e.externalDocs(),a=t.license(),o=t.termsOfService(),s=e.defaultContentType(),u=t.contact(),l=a||o||s||u||n;return i.a.createElement("div",{className:"panel-item"},i.a.createElement("div",{className:"panel-item--center px-8 text-left",id:"introduction"},i.a.createElement("div",{className:"text-4xl"},t.title()," ",t.version()),l&&i.a.createElement("ul",{className:"flex flex-wrap mt-2 leading-normal"},a&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.url()?i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:a.url()},i.a.createElement("span",null,a.name())):i.a.createElement("span",{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},a.name())),o&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:o},i.a.createElement("span",null,R.h))),s&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"".concat(R.a,"/").concat(s)},i.a.createElement("span",null,s))),n&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:n.url()},i.a.createElement("span",null,R.c))),u&&i.a.createElement(i.a.Fragment,null,u.url()&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(E,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:u.url()},i.a.createElement("span",null,u.name()||R.i))),u.email()&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(E,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"mailto:".concat(u.email())},i.a.createElement("span",null,u.email())))),r&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement("span",{className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},"ID: ",r))),t.hasDescription()&&i.a.createElement("div",{className:"mt-4"},i.a.createElement($,null,t.description())),e.hasTags()&&i.a.createElement("div",{className:"mt-4"},i.a.createElement(N,{tags:e.tags()}))),i.a.createElement("div",{className:"panel-item--right"}))},B=function(){function e(){}return e.securityType=function(e){switch(e){case"apiKey":return"API key";case"oauth2":return"OAuth2";case"openIdConnect":return"Open ID";case"http":return"HTTP";case"userPassword":return"User/Password";case"X509":return"X509:";case"symmetricEncryption":return"Symmetric Encription";case"asymmetricEncryption":return"Asymmetric Encription";case"httpApiKey":return"HTTP API key";case"scramSha256":return"ScramSha256";case"scramSha512":return"ScramSha512";case"gssapi":return"GSSAPI";default:return"API key"}},e.flowName=function(e){switch(e){case"implicit":return"Implicit";case"password":return"Password";case"clientCredentials":return"Client credentials";case"authorizationCode":return"Authorization Code";default:return"Implicit"}},e.getKafkaSecurity=function(e,t){var r,n;if(r="kafka"===e?t?"SASL_PLAINTEXT":"PLAINTEXT":t?"SASL_SSL":"SSL",t)switch(t.type()){case"plain":n="PLAIN";break;case"scramSha256":n="SCRAM-SHA-256";break;case"scramSha512":n="SCRAM-SHA-512";break;case"oauth2":n="OAUTHBEARER";break;case"gssapi":n="GSSAPI";break;case"X509":r="SSL"}return{securityProtocol:r,saslMechanism:n}},e}(),L=function(e){var t,r=e.serverRequirements,n=void 0===r?[]:r,a=e.protocol,o=void 0===a?"":a,s=f(),u=s.hasComponents()&&s.components().securitySchemes();if(n&&n.length&&u&&Object.keys(u).length){var l=n.map((function(e){var t=u[Object.keys(e.json())[0]];return t?i.a.createElement(z,{protocol:o,securitySchema:t,key:t.type()}):null})).filter(Boolean);t=i.a.createElement("ul",null,l.map((function(e,t){return i.a.createElement("li",{className:"mt-2",key:t},e)})))}else"kafka"!==o&&"kafka-secure"!==o||(t=i.a.createElement(z,{protocol:o,securitySchema:null}));return t?i.a.createElement("div",{className:"text-sm mt-4"},i.a.createElement("h5",{className:"text-gray-700 text-base"},"Security:"),t):null};var U,z=function(e){var t,r=e.securitySchema,n=e.protocol,a=function(e){var t=[];return e&&(e.name()&&t.push(i.a.createElement("span",null,"Name: ",e.name())),e.in()&&t.push(i.a.createElement("span",null,"In: ",e.in())),e.scheme()&&t.push(i.a.createElement("span",null,"Scheme: ",e.scheme())),e.bearerFormat()&&t.push(i.a.createElement("span",null,"Bearer format: ",e.bearerFormat())),e.openIdConnectUrl()&&t.push(i.a.createElement(E,{href:e.openIdConnectUrl(),className:"underline"},"Connect URL"))),t}(r);if(["kafka","kafka-secure"].includes(n)){var o=B.getKafkaSecurity(n,r),s=o.securityProtocol,u=o.saslMechanism;t=i.a.createElement("div",{className:"px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded"},s&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"security.protocol:"),i.a.createElement("span",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1"},s)),u&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"sasl.mechanism:"),i.a.createElement("span",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1"},u)))}var l=r&&r.flows(),c=l&&Object.entries(l).map((function(e){var t=e[0],r=e[1],n=r.authorizationUrl(),a=r.tokenUrl(),o=r.refreshUrl(),s=r.scopes();return i.a.createElement("div",{className:"px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded",key:t},i.a.createElement("div",null,i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Flow:"),i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},B.flowName(t))),n&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Auth URL:"),i.a.createElement(E,{href:n,className:"underline"},n)),a&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Token URL:"),i.a.createElement(E,{href:a,className:"underline"},a)),o&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Refresh URL:"),i.a.createElement(E,{href:o,className:"underline"},o)),s&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Scopes:"),i.a.createElement("ul",{className:"inline-block"},s&&Object.entries(s).map((function(e){var t=e[0],r=e[1];return i.a.createElement("li",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1",title:r,key:t},t)})))))}));return i.a.createElement("div",null,r&&a&&i.a.createElement("div",null,i.a.createElement("span",null,B.securityType(r.type()),a.length>0&&i.a.createElement("ul",{className:"inline-block ml-2"},a.map((function(e,t){return i.a.createElement("li",{className:"inline-block font-bold no-underline bg-blue-400 text-white text-xs uppercase rounded px-2 py-0 ml-1",key:t},e)}))))),r&&r.hasDescription()&&i.a.createElement("div",null,i.a.createElement($,null,r.description())),c&&c.length>0&&i.a.createElement("ul",{className:"my-2"},i.a.createElement("li",null,c)),t&&i.a.createElement("div",null,t))},q=r(10),H=r.n(q);!function(e){e.ANY="any",e.RESTRICTED_ANY="restricted any",e.NEVER="never",e.UNKNOWN="unknown"}(U||(U={}));var V=["string","number","integer","boolean","array","object","null"],J=Object.keys({maxLength:"string",minLength:"string",pattern:"string",contentMediaType:"string",contentEncoding:"string",multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",contains:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",properties:"object",patternProperties:"object",propertyNames:"object",dependencies:"object",additionalProperties:"object"}),K=function(){function e(){}return e.toSchemaType=function(e){var t=this;if(!e||"function"!=typeof e.json)return U.UNKNOWN;if(e.isBooleanSchema())return!0===e.json()?U.ANY:U.NEVER;if(0===Object.keys(e.json()).length)return U.ANY;var r=e.not();if(r&&this.inferType(r)===U.ANY)return U.NEVER;var n=this.inferType(e);if(Array.isArray(n))return n.map((function(r){return t.toType(r,e)})).join(" | ");n=this.toType(n,e);var i=this.toCombinedType(e);return n&&i?"".concat(n," ").concat(i):i||n},e.prettifyValue=function(e){var t=typeof e;return"string"===t?'"'.concat(e,'"'):"number"===t||"bigint"===t||"boolean"===t?e:Array.isArray(e)?"[".concat(e.toString(),"]"):JSON.stringify(e)},e.humanizeConstraints=function(e){var t=[],r=this.humanizeNumberRangeConstraint(e.minimum(),e.exclusiveMinimum(),e.maximum(),e.exclusiveMaximum());void 0!==r&&t.push(r);var n=this.humanizeMultipleOfConstraint(e.multipleOf());void 0!==n&&t.push(n);var i=this.humanizeRangeConstraint("characters",e.minLength(),e.maxLength());void 0!==i&&t.push(i);var a=e.uniqueItems(),o=this.humanizeRangeConstraint(a?"unique items":"items",e.minItems(),e.maxItems());void 0!==o&&t.push(o);var s=this.humanizeRangeConstraint("properties",e.minProperties(),e.maxProperties());return void 0!==s&&t.push(s),t},e.isExpandable=function(e){var t=this.inferType(e);if((t=Array.isArray(t)?t:[t]).includes("object")||t.includes("array"))return!0;if(e.oneOf()||e.anyOf()||e.allOf()||Object.keys(e.properties()).length||e.items()||e.not()||e.if()||e.then()||e.else())return!0;var r=this.getCustomExtensions(e);return!(!r||!Object.keys(r).length)},e.serverVariablesToSchema=function(e){var t;if(e&&Object.keys(e).length){var r=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var r=t[0],n=t[1];return e[r]=Object.assign({},n.json()),e[r].type="string",e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new H.a(r)}},e.parametersToSchema=function(e){var t,r=this;if(e&&Object.keys(e).length){var n=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var n=t[0],i=t[1];return e[n]=Object.assign({},i.schema().json()),e[n].description=i.description()||e[n].description,e[n][r.extParameterLocation]=i.location(),e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new H.a(n)}},e.jsonToSchema=function(e){var t=this.jsonFieldToSchema(e);return new H.a(t)},e.getCustomExtensions=function(e){if(e&&"function"==typeof e.extensions)return Object.entries(e.extensions()||{}).reduce((function(e,t){var r=t[0],n=t[1];return r.startsWith("x-parser-")||r.startsWith("x-schema-private-")||(e[r]=n),e}),{})},e.getDependentRequired=function(e,t){var r=[],n=t.dependencies();if(n){for(var i=0,a=Object.entries(n);i<a.length;i++){var o=a[i],s=o[0],u=o[1];Array.isArray(u)&&u.includes(e)&&r.push(s)}return r.length?r:void 0}},e.getDependentSchemas=function(e){var t,r=e.dependencies();if(r){for(var n={},i=0,a=Object.entries(r);i<a.length;i++){var o=a[i],s=o[0],u=o[1];"object"!=typeof u||Array.isArray(u)||(n[s]=u)}if(Object.keys(n).length){var l=((t={type:"object",properties:Object.entries(n).reduce((function(e,t){var r=t[0],n=t[1];return e[r]=Object.assign({},n.json()),e}),{})})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new H.a(l)}}},e.toType=function(e,t){if(t.isCircular())return e;if("array"===e){var r=t.items();return Array.isArray(r)?this.toItemsType(r,t):"array<".concat(r?this.toSchemaType(r)||U.UNKNOWN:U.ANY,">")}return e},e.toItemsType=function(e,t){var r=this,n=e.map((function(e){return r.toSchemaType(e)})).join(", "),i=t.additionalItems();if(void 0===i||i.json()){var a=void 0===i||!0===i.json()?U.ANY:this.toSchemaType(i);return"tuple<".concat(n||U.UNKNOWN,", ...optional<").concat(a,">>")}return"tuple<".concat(n||U.UNKNOWN,">")},e.toCombinedType=function(e){return e.oneOf()?"oneOf":e.anyOf()?"anyOf":e.allOf()?"allOf":void 0},e.inferType=function(e){var t=e.type();if(void 0!==t)return Array.isArray(t)?(t.includes("integer")&&t.includes("number")&&(t=t.filter((function(e){return"integer"!==e}))),1===t.length?t[0]:t):t;var r=e.const();if(void 0!==r)return typeof r;var n=e.enum();if(Array.isArray(n)&&n.length){var i=Array.from(new Set(n.map((function(e){return typeof e}))));return 1===i.length?i[0]:i}var a=Object.keys(e.json()||{})||[];return!0===J.some((function(e){return a.includes(e)}))?U.RESTRICTED_ANY:this.toCombinedType(e)?"":U.ANY},e.humanizeNumberRangeConstraint=function(e,t,r,n){var i,a=void 0!==t,o=void 0!==e||a,s=void 0!==n,u=void 0!==r||s;return o&&u?(i=a?"( ":"[ ",i+=a?t:e,i+=" .. ",i+=s?n:r,i+=s?" )":" ]"):o?(i=a?"> ":">= ",i+=a?t:e):u&&(i=s?"< ":"<= ",i+=s?n:r),i},e.humanizeMultipleOfConstraint=function(e){if(void 0!==e){var t=e.toString(10);return/^0\.0*1$/.test(t)?"decimal places <= ".concat(t.split(".")[1].length):"multiple of ".concat(t)}},e.humanizeRangeConstraint=function(e,t,r){var n;return void 0!==t&&void 0!==r?n=t===r?"".concat(t," ").concat(e):"[ ".concat(t," .. ").concat(r," ] ").concat(e):void 0!==r?n="<= ".concat(r," ").concat(e):void 0!==t&&(n=1===t?"non-empty":">= ".concat(t," ").concat(e)),n},e.jsonFieldToSchema=function(e){var t,r,n,i,a=this;return null==e?((t={type:"string",const:""})[this.extRawValue]=!0,t):"object"!=typeof e?((r={type:"string",const:"function"==typeof e.toString?e.toString():e})[this.extRawValue]=!0,r):this.isJSONSchema(e)?e:Array.isArray(e)?((n={type:"array",items:e.map((function(e){return a.jsonFieldToSchema(e)}))})[this.extRenderType]=!1,n[this.extRenderAdditionalInfo]=!1,n):((i={type:"object",properties:Object.entries(e).reduce((function(e,t){var r=t[0],n=t[1];return e[r]=a.jsonFieldToSchema(n),e}),{})})[this.extRenderType]=!1,i[this.extRenderAdditionalInfo]=!1,i)},e.isJSONSchema=function(e){return!(!e||"object"!=typeof e||!(V.includes(e.type)||Array.isArray(e.type)&&e.type.some((function(e){return!V.includes(e)}))))},e.extRenderType="x-schema-private-render-type",e.extRenderAdditionalInfo="x-schema-private-render-additional-info",e.extRawValue="x-schema-private-raw-value",e.extParameterLocation="x-schema-private-parameter-location",e}(),X=function(e){var t=e.name,r=void 0===t?"Extensions":t,n=e.item,a=K.getCustomExtensions(n);if(!a||!Object.keys(a).length)return null;var o=K.jsonToSchema(a);return o&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(Y,{schemaName:r,schema:o}))},W=i.a.createContext({reverse:!1}),Y=function(e){var t=e.schemaName,r=e.schema,a=e.required,o=void 0!==a&&a,s=e.isPatternProperty,u=void 0!==s&&s,l=e.isProperty,p=void 0!==l&&l,f=e.isCircular,h=void 0!==f&&f,d=e.dependentRequired,m=e.expanded,y=void 0!==m&&m,g=Object(n.useContext)(W).reverse,v=Object(n.useState)(y),b=v[0],x=v[1];if(!r||"string"==typeof t&&((null==t?void 0:t.startsWith("x-parser-"))||(null==t?void 0:t.startsWith("x-schema-private-"))))return null;var w=K.getDependentSchemas(r),D=K.humanizeConstraints(r),A=r.externalDocs(),S=!1!==r.ext(K.extRenderType),k=!0===r.ext(K.extRawValue),C=r.ext(K.extParameterLocation),P=K.isExpandable(r)||w,T=K.toSchemaType(r);h=h||r.isCircular()||r.ext("x-parser-circular")||!1;var j=r.uid(),F=r.items();F&&!Array.isArray(F)?(h=h||F.isCircular()||F.ext("x-parser-circular")||!1,j=F.uid(),h&&"function"==typeof F.circularSchema&&(T=K.toSchemaType(F.circularSchema()))):h&&"function"==typeof r.circularSchema&&(T=K.toSchemaType(r.circularSchema()));var _=p?"italic":"",O="string"==typeof t?i.a.createElement("span",{className:"break-words text-sm ".concat(_)},t):t;return i.a.createElement(W.Provider,{value:{reverse:!g}},i.a.createElement("div",null,i.a.createElement("div",{className:"flex py-2"},i.a.createElement("div",{className:"w-3/12 min-w-min mr-2"},P&&!h?i.a.createElement(c,{onClick:function(){return x((function(e){return!e}))},chevronProps:{className:b?"-rotate-180":"-rotate-90"}},O):i.a.createElement("span",{className:"break-words text-sm ".concat(p?"italic":"")},t),u&&i.a.createElement("div",{className:"text-gray-500 text-xs italic"},"(pattern property)"),o&&i.a.createElement("div",{className:"text-red-600 text-xs"},"required"),d&&i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"text-gray-500 text-xs"},"required when defined:"),i.a.createElement("div",{className:"text-red-600 text-xs"},d.join(", "))),r.deprecated()&&i.a.createElement("div",{className:"text-red-600 text-xs"},"deprecated"),r.writeOnly()&&i.a.createElement("div",{className:"text-gray-500 text-xs"},"write-only"),r.readOnly()&&i.a.createElement("div",{className:"text-gray-500 text-xs"},"read-only")),k?i.a.createElement("div",null,i.a.createElement("div",{className:"text-sm"},r.const())):i.a.createElement("div",null,i.a.createElement("div",null,S&&i.a.createElement("div",{className:"capitalize text-sm text-teal-500 font-bold inline-block mr-2"},h?"".concat(T," [CIRCULAR]"):T),i.a.createElement("div",{className:"inline-block"},r.format()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"format: ",r.format()),void 0!==r.pattern()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"must match: ",r.pattern()),void 0!==r.contentMediaType()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"media type: ",r.contentMediaType()),void 0!==r.contentEncoding()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"encoding: ",r.contentEncoding()),!!D.length&&D.map((function(e){return i.a.createElement("span",{className:"bg-purple-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs",key:e},e)})),j&&!j.startsWith("<anonymous-")&&i.a.createElement("span",{className:"border text-orange-600 rounded mr-2 p-1 text-xs"},"uid: ",j)),r.hasDescription()&&i.a.createElement("div",null,i.a.createElement($,null,r.description())),void 0!==r.default()&&i.a.createElement("div",{className:"text-xs"},"Default value:",i.a.createElement("span",{className:"border inline-block text-orange-600 rounded ml-1 py-0 px-2"},K.prettifyValue(r.default()))),void 0!==r.const()&&i.a.createElement("div",{className:"text-xs"},"Const:",i.a.createElement("span",{className:"border inline-block text-orange-600 rounded ml-1 py-0 px-2"},K.prettifyValue(r.const()))),r.enum()&&i.a.createElement("ul",{className:"text-xs"},"Allowed values:"," ",r.enum().map((function(e,t){return i.a.createElement("li",{key:t,className:"border inline-block text-orange-600 rounded ml-1 py-0 px-2"},i.a.createElement("span",null,K.prettifyValue(e)))}))),C&&i.a.createElement("div",{className:"text-xs"},"Parameter location:"," ",i.a.createElement("span",{className:"border text-orange-600 rounded mr-2 p-1 text-xs"},C)),A&&i.a.createElement("span",{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-2 py-0"},i.a.createElement(E,{href:A.url(),title:A.description()||""},"Documentation")),r.examples()&&i.a.createElement("ul",{className:"text-xs"},"Examples values:"," ",r.examples().map((function(e,t){return i.a.createElement("li",{key:t,className:"border inline-block text-orange-600 rounded ml-1 py-0 px-2 break-all"},i.a.createElement("span",null,K.prettifyValue(e)))})))))),h||!P?null:i.a.createElement("div",{className:"rounded p-4 py-2 border bg-gray-100 ".concat(g?"bg-gray-200":""," ").concat(b?"block":"hidden")},i.a.createElement(G,{schema:r}),i.a.createElement(Z,{schema:r}),r.oneOf()&&r.oneOf().map((function(e,t){return i.a.createElement(Y,{key:t,schema:e,schemaName:0===t?"Adheres to:":"Or to:"})})),r.anyOf()&&r.anyOf().map((function(e,t){return i.a.createElement(Y,{key:t,schema:e,schemaName:0===t?"Can adhere to:":"Or to:"})})),r.allOf()&&r.allOf().map((function(e,t){return i.a.createElement(Y,{key:t,schema:e,schemaName:0===t?"Consists of:":"And with:"})})),r.not()&&i.a.createElement(Y,{schema:r.not(),schemaName:"Cannot adhere to:"}),r.propertyNames()&&i.a.createElement(Y,{schema:r.propertyNames(),schemaName:"Property names must adhere to:"}),r.contains()&&i.a.createElement(Y,{schema:r.contains(),schemaName:"Array must contain at least one of:"}),r.if()&&i.a.createElement(Y,{schema:r.if(),schemaName:"If schema adheres to:"}),r.then()&&i.a.createElement(Y,{schema:r.then(),schemaName:"Then must adhere to:"}),r.else()&&i.a.createElement(Y,{schema:r.else(),schemaName:"Otherwise:"}),w&&i.a.createElement(Y,{schema:w,schemaName:"Dependent schemas:"}),i.a.createElement(X,{item:r}),i.a.createElement(Q,{schema:r}),i.a.createElement(ee,{schema:r}))))},G=function(e){var t=e.schema,r=t.properties()||{};if(!Object.keys(r))return null;var n=t.required()||[],a=t.patternProperties(),o=t.ext("x-parser-circular-props")||[];return i.a.createElement(i.a.Fragment,null,Object.entries(r).map((function(e){var r=e[0],a=e[1];return i.a.createElement(Y,{schema:a,schemaName:r,required:n.includes(r),isProperty:!0,isCircular:o.includes(r),dependentRequired:K.getDependentRequired(r,t),key:r})})),Object.entries(a).map((function(e){var t=e[0],r=e[1];return i.a.createElement(Y,{schema:r,schemaName:t,isPatternProperty:!0,isProperty:!0,isCircular:o.includes(t),key:t})})))},Q=function(e){var t=e.schema;if(!1===t.ext(K.extRenderAdditionalInfo))return null;var r=t.type();if(!(r=Array.isArray(r)?r:[r]).includes("object"))return null;var n=t.additionalProperties();return!0===n||void 0===n?i.a.createElement("p",{className:"mt-2 text-xs text-gray-700"},"Additional properties are allowed."):!1===n?i.a.createElement("p",{className:"mt-2 text-xs text-gray-700"},"Additional properties are ",i.a.createElement("strong",null,"NOT")," allowed."):i.a.createElement(Y,{schemaName:"Additional properties:",schema:n})},Z=function(e){var t=e.schema,r=t.type();if(!(r=Array.isArray(r)?r:[r]).includes("array"))return null;var n=t.items();return n&&!Array.isArray(n)&&Object.keys(n.properties()||{}).length?i.a.createElement(G,{schema:n}):Array.isArray(n)?i.a.createElement(i.a.Fragment,null,n.map((function(e,t){return i.a.createElement(Y,{schema:e,schemaName:"".concat(t+1," item:"),key:t})}))):i.a.createElement(Y,{schema:n,schemaName:"Items:"})},ee=function(e){var t=e.schema;if(!1===t.ext(K.extRenderAdditionalInfo))return null;var r=t.type();if(!(r=Array.isArray(r)?r:[r]).includes("array"))return null;if(!Array.isArray(t.items()))return null;var n=t.additionalItems();return!0===n||void 0===n?i.a.createElement("p",{className:"mt-2 text-xs text-gray-700"},"Additional items are allowed."):!1===n?i.a.createElement("p",{className:"mt-2 text-xs text-gray-700"},"Additional items are ",i.a.createElement("strong",null,"NOT")," allowed."):i.a.createElement(Y,{schemaName:"Additional items:",schema:n})},te=function(e){var t=e.name,r=void 0===t?"Binding specific information":t,n=e.bindings;if(!n||!Object.keys(n).length)return null;var a=Object.entries(n).map((function(e){var t=e[0],n=e[1],a=K.jsonToSchema(n),o=i.a.createElement("div",{className:"inline-block text-sm"},i.a.createElement("span",null,r),i.a.createElement("span",{className:"bg-teal-500 font-bold no-underline text-white uppercase rounded mx-2 px-2 py-1 text-xs"},t));return a&&i.a.createElement(Y,{schemaName:o,schema:a,key:t})}));return i.a.createElement(i.a.Fragment,null,a)},re=Object(n.createContext)({});function ne(){return Object(n.useContext)(re)}var ie=function(){function e(){}return e.getIdentifier=function(e,t){var r=null==t?void 0:t.schemaID;return r?"".concat(r,"-").concat(e):e},e}(),ae=function(e){var t=e.serverName,r=e.server,n=ne();if(!r)return null;var a=K.serverVariablesToSchema(r.variables()),o=r.protocolVersion(),s=r.security();return i.a.createElement("div",{className:"panel-item"},i.a.createElement("div",{className:"panel-item--center px-8"},i.a.createElement("div",{className:"shadow rounded bg-gray-200 p-4 border bg-gray-100"},i.a.createElement("div",null,i.a.createElement("span",{className:"font-mono text-base"},r.url()),i.a.createElement("span",{className:"bg-teal-500 font-bold no-underline text-white uppercase rounded mx-2 px-2 py-1 text-sm"},o?"".concat(r.protocol()," ").concat(o):r.protocol()),i.a.createElement("span",{className:"bg-blue-500 font-bold no-underline text-white uppercase rounded px-2 py-1 text-sm"},t)),r.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement($,null,r.description())),a&&i.a.createElement("div",{className:"mt-2",id:"".concat(ie.getIdentifier("server-".concat(t,"-url-variables"),n))},i.a.createElement(Y,{schemaName:"URL Variables",schema:a,expanded:!0})),i.a.createElement("div",{id:"".concat(ie.getIdentifier("server-".concat(t,"-security"),n))},i.a.createElement(L,{protocol:r.protocol(),serverRequirements:s})),r.hasBindings()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(te,{name:"Server specific information",bindings:r.bindings()})))),i.a.createElement("div",{className:"panel-item--right"}))},oe=function(){var e=f().servers(),t=ne();return Object.keys(e).length?i.a.createElement("section",{id:"".concat(ie.getIdentifier("servers",t)),className:"mt-16"},i.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},R.g),i.a.createElement("ul",null,Object.entries(e).map((function(e){var r=e[0],n=e[1];return i.a.createElement("li",{className:"mb-4",key:r,id:"".concat(ie.getIdentifier("server-".concat(r),t))},i.a.createElement(ae,{serverName:r,server:n,key:r}))})))):null},se=function(e){var t=e.snippet;return"object"==typeof t&&(t="```json\n"+JSON.stringify(t,void 0,2)+"\n```"),i.a.createElement($,null,t)};function ue(e){return e<10?"0"+e:e}function le(e,t){return t>e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function ce(...e){const t=e=>e&&"object"==typeof e;return e.reduce((e,r)=>(Object.keys(r).forEach(n=>{const i=e[n],a=r[n];t(i)&&t(a)?e[n]=ce(i,a):e[n]=a}),e),Array.isArray(e[e.length-1])?[]:{})}function pe(e){return{value:"object"===e?{}:"array"===e?[]:void 0}}function fe(e,t){t&&e.pop()}const he={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function de(e){if(void 0!==e.type)return Array.isArray(e.type)?0===e.type.length?null:e.type[0]:e.type;const t=Object.keys(he);for(var r=0;r<t.length;r++){let n=t[r],i=he[n];if(void 0!==e[n])return i}return null}var me=r(58),ye=r.n(me);let ge={},ve=[];function be(e){let t;return void 0!==e.const?t=e.const:void 0!==e.examples&&e.examples.length?t=e.examples[0]:void 0!==e.enum&&e.enum.length?t=e.enum[0]:void 0!==e.default&&(t=e.default),t}function xe(e){const t=be(e);if(void 0!==t)return{value:t,readOnly:e.readOnly,writeOnly:e.writeOnly,type:null}}function Ee(e,t,r,n){if(n){if(ve.includes(e))return pe(de(e));ve.push(e)}if(n&&n.depth>t.maxSampleDepth)return fe(ve,n),pe(de(e));if(e.$ref){if(!r)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let i=decodeURIComponent(e.$ref);i.startsWith("#")&&(i=i.substring(1));const a=ye.a.get(r,i);let o;if(!0!==ge[i])ge[i]=!0,o=Ee(a,t,r,n),ge[i]=!1;else{o=pe(de(a))}return fe(ve,n),o}if(void 0!==e.example)return fe(ve,n),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(void 0!==e.allOf)return fe(ve,n),xe(e)||function(e,t,r,n,i){let a=Ee(e,r,n);const o=[];for(let e of t){const{type:t,readOnly:s,writeOnly:u,value:l}=Ee({type:a.type,...e},r,n,i);a.type&&t&&t!==a.type&&(console.warn("allOf: schemas with different types can't be merged"),a.type=t),a.type=a.type||t,a.readOnly=a.readOnly||s,a.writeOnly=a.writeOnly||u,null!=l&&o.push(l)}if("object"===a.type)return a.value=ce(a.value||{},...o.filter(e=>"object"==typeof e)),a;{"array"===a.type&&(r.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const e=o[o.length-1];return a.value=null!=e?e:a.value,a}}({...e,allOf:void 0},e.allOf,t,r,n);if(e.oneOf&&e.oneOf.length){e.anyOf&&(t.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),fe(ve,n);const i=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]);return xe(e)||Ee(i,t,r,n)}if(e.anyOf&&e.anyOf.length)return fe(ve,n),xe(e)||Ee(e.anyOf[0],t,r,n);if(e.if&&e.then)return fe(ve,n),xe(e)||Ee(ce(e.if,e.then),t,r,n);let i=be(e),a=null;if(void 0===i){i=null,a=e.type,Array.isArray(a)&&e.type.length>0&&(a=e.type[0]),a||(a=de(e));let o=ke[a];o&&(i=o(e,t,r,n))}return fe(ve,n),{value:i,readOnly:e.readOnly,writeOnly:e.writeOnly,type:a}}function we(e){let t=0;if("boolean"==typeof e.exclusiveMinimum||"boolean"==typeof e.exclusiveMaximum){if(e.maximum&&e.minimum)return t=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&t>=e.maximum||!e.exclusiveMaximum&&t>e.maximum)&&(t=(e.maximum+e.minimum)/2),t;if(e.minimum)return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(e.maximum)return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(e.minimum)return e.minimum;e.exclusiveMinimum?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):e.exclusiveMaximum?t=Math.floor(e.exclusiveMaximum)-1:e.maximum&&(t=e.maximum)}return t}function De({min:e,max:t,omitTime:r,omitDate:n}){let i=function(e,t,r,n){var i=r?"":e.getUTCFullYear()+"-"+ue(e.getUTCMonth()+1)+"-"+ue(e.getUTCDate());return t||(i+="T"+ue(e.getUTCHours())+":"+ue(e.getUTCMinutes())+":"+ue(e.getUTCSeconds())+(n?"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5):"")+"Z"),i}(new Date("2019-08-24T14:15:22.123Z"),r,n,!1);return i.length<e&&console.warn(`Using minLength = ${e} is incorrect with format "date-time"`),t&&i.length>t&&console.warn(`Using maxLength = ${t} is incorrect with format "date-time"`),i}function Ae(e,t){let r=le("string",e);return t&&r.length>t&&(r=r.substring(0,t)),r}const Se={email:function(){return"user@example.com"},"idn-email":function(){return"пошта@укр.нет"},password:function(e,t){let r="pa$$word";return e>r.length&&(r+="_",r+=le("qwerty!@#$%^123456",e-r.length).substring(0,e-r.length)),r},"date-time":function(e,t){return De({min:e,max:t,omitTime:!1,omitDate:!1})},date:function(e,t){return De({min:e,max:t,omitTime:!0,omitDate:!1})},time:function(e,t){return De({min:e,max:t,omitTime:!1,omitDate:!0}).slice(1)},ipv4:function(){return"192.168.0.1"},ipv6:function(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"},hostname:function(){return"example.com"},"idn-hostname":function(){return"приклад.укр"},iri:function(){return"http://example.com"},"iri-reference":function(){return"../словник"},uri:function(){return"http://example.com"},"uri-reference":function(){return"../dictionary"},"uri-template":function(){return"http://example.com/{endpoint}"},uuid:function(e,t,r){return s=function(e){var t=0;if(0==e.length)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t&=t}return t}(r||"id"),n=s,i=s,a=s,o=s,u=function(){var e=(n|=0)-((i|=0)<<27|i>>>5)|0;return n=i^((a|=0)<<17|a>>>15),i=a+(o|=0)|0,a=o+e|0,((o=n+e|0)>>>0)/4294967296},"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{var t=16*u()%16|0;return("x"==e?t:3&t|8).toString(16)});var n,i,a,o,s,u},default:Ae,"json-pointer":function(){return"/json/pointer"},"relative-json-pointer":function(){return"1/relative/json/pointer"},regex:function(){return"/regex/"}};var ke={};const Ce={skipReadOnly:!1,maxSampleDepth:15};function Pe(e,t,r){let n=Object.assign({},Ce,t);return ge={},ve=[],Ee(e,n,r).value}function Te(e,t){ke[e]=t}Te("array",(function(e,t={},r,n){const i=n&&n.depth||1;let a=Math.min(null!=e.maxItems?e.maxItems:1/0,e.minItems||1);const o=e.items||e.contains;Array.isArray(o)&&(a=Math.max(a,o.length));let s=[];if(!o)return s;for(let n=0;n<a;n++){let a=(u=n,Array.isArray(e.items)?o[u]||{}:o||{}),{value:l}=Ee(a,t,r,{depth:i+1});s.push(l)}var u;return s})),Te("boolean",(function(e){return!0})),Te("integer",we),Te("number",we),Te("object",(function(e,t={},r,n){let i={};const a=n&&n.depth||1;if(e&&"object"==typeof e.properties){let n=(Array.isArray(e.required)?e.required:[]).reduce((e,t)=>(e[t]=!0,e),{});Object.keys(e.properties).forEach(o=>{if(t.skipNonRequired&&!n.hasOwnProperty(o))return;const s=Ee(e.properties[o],t,r,{propertyName:o,depth:a+1});t.skipReadOnly&&s.readOnly||t.skipWriteOnly&&s.writeOnly||(i[o]=s.value)})}return e&&"object"==typeof e.additionalProperties&&(i.property1=Ee(e.additionalProperties,t,r,{depth:a+1}).value,i.property2=Ee(e.additionalProperties,t,r,{depth:a+1}).value),i})),Te("string",(function(e,t,r,n){let i=e.format||"default",a=Se[i]||Ae,o=n&&n.propertyName;return a(0|e.minLength,e.maxLength,o)}));var je,Fe=function(){function e(){}return e.generateExample=function(e,t){void 0===t&&(t={});try{return this.sanitizeExample(Pe(e,t))||""}catch(e){return""}},e.sanitizeExample=function(e){var t=this;return"object"==typeof e&&e&&!Array.isArray(e)?Object.entries(e).reduce((function(e,r){var n=r[0],i=r[1];return n.startsWith("x-parser-")||n.startsWith("x-schema-private-")||(e[n]=t.sanitizeExample(i)),e}),{}):e},e.getPayloadExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.payload}))){var r=t.flatMap((function(e){if(e.payload)return{name:e.name,summary:e.summary,example:e.payload}})).filter(Boolean);if(r.length>0)return r}var n=e.payload();if(n&&n.examples())return n.examples().map((function(e){return{example:e}}))},e.getHeadersExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.headers}))){var r=t.flatMap((function(e){if(e.headers)return{name:e.name,summary:e.summary,example:e.headers}})).filter(Boolean);if(r.length>0)return r}var n=e.headers();if(n&&n.examples())return n.examples().map((function(e){return{example:e}}))},e}(),_e=function(e){var t=e.message;if(!t)return null;var r=t.payload(),n=t.headers();return i.a.createElement("div",{className:"bg-gray-800 px-8 py-4 mt-4 -mx-8 2xl:mx-0 2xl:px-4 2xl:rounded examples"},i.a.createElement("h4",{className:"text-white text-lg"},"Examples"),r&&i.a.createElement(Oe,{type:"Payload",schema:r,examples:Fe.getPayloadExamples(t)}),n&&i.a.createElement(Oe,{type:"Headers",schema:n,examples:Fe.getHeadersExamples(t)}))},Oe=function(e){var t=e.type,r=void 0===t?"Payload":t,a=e.schema,o=e.examples,s=void 0===o?[]:o,u=Object(n.useState)(!1),l=u[0],p=u[1];return i.a.createElement("div",{className:"mt-4"},i.a.createElement("div",null,i.a.createElement(c,{onClick:function(){return p((function(e){return!e}))},chevronProps:{className:"fill-current text-gray-200 ".concat(l?"-rotate-180":"-rotate-90")}},i.a.createElement("span",{className:"px-2 py-1 mr-2 text-gray-200 text-sm border rounded focus:outline-none"},r))),i.a.createElement("div",{className:l?"block":"hidden"},s&&s.length>0?i.a.createElement("ul",null,s.map((function(e,t){return i.a.createElement("li",{className:"mt-4",key:t},i.a.createElement("h5",{className:"text-xs font-bold text-gray-500"},e.name?"#".concat(t+1," Example - ").concat(e.name):"#".concat(t+1," Example")),e.summary&&i.a.createElement("p",{className:"text-xs font-bold text-gray-500"},e.summary),i.a.createElement("div",{className:"mt-1"},i.a.createElement(se,{snippet:Fe.sanitizeExample(e.example)})))}))):i.a.createElement("div",{className:"mt-4"},i.a.createElement(se,{snippet:Fe.generateExample(a.json())}),i.a.createElement("h6",{className:"text-xs font-bold text-gray-600 italic mt-2"},"This example has been generated automatically."))))},$e=function(e){var t=e.message,r=e.messageName,n=e.index,a=e.showExamples,o=void 0!==a&&a,s=ne();if(!t)return null;var u=t.title(),l=t.summary(),c=t.payload(),p=t.headers(),f=t.correlationId(),h=t.contentType(),d=t.externalDocs(),m=h||d;return i.a.createElement("div",{className:"panel-item"},i.a.createElement("div",{className:"panel-item--center px-8"},i.a.createElement("div",{className:"shadow rounded bg-gray-200 p-4 border"},i.a.createElement("div",null,void 0!==n&&i.a.createElement("span",{className:"text-gray-700 font-bold mr-2"},"#",n),u&&i.a.createElement("span",{className:"text-gray-700 mr-2"},u),i.a.createElement("span",{className:"border text-orange-600 rounded text-xs py-0 px-2"},t.uid())),l&&i.a.createElement("p",{className:"text-gray-600 text-sm"},l),m&&i.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},h&&i.a.createElement("li",{className:"inline-block"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"".concat(R.a,"/").concat(h)},i.a.createElement("span",null,h))),d&&i.a.createElement("li",{className:"inline-block"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:d.url()},i.a.createElement("span",null,R.c)))),f&&i.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},i.a.createElement("div",{className:"text-sm text-gray-700"},"Correlation ID",i.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},f.location())),f.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement($,null,f.description()))),t.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement($,null,t.description())),c&&i.a.createElement("div",{className:"mt-2",id:r?ie.getIdentifier("message-".concat(r,"-payload"),s):void 0},i.a.createElement(Y,{schemaName:"Payload",schema:c})),p&&i.a.createElement("div",{className:"mt-2",id:r?ie.getIdentifier("message-".concat(r,"-headers"),s):void 0},i.a.createElement(Y,{schemaName:"Headers",schema:p})),t.hasBindings()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(te,{name:"Message specific information",bindings:t.bindings()})),i.a.createElement(X,{item:t}),t.hasTags()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(N,{tags:t.tags()})))),o&&i.a.createElement("div",{className:"panel-item--right px-8"},i.a.createElement(_e,{message:t})))},Ie=r(7),Ne=function(){return(Ne=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Re=function(e){var t=ne(),r=e.type,n=void 0===r?Ie.a.PUBLISH:r,a=e.operation,o=e.channelName,s=e.channel;if(!a||!s)return null;var u="function"==typeof s.servers&&s.servers(),l=K.parametersToSchema(s.parameters());return i.a.createElement("div",null,i.a.createElement("div",{className:"panel-item--center px-8"},i.a.createElement(Me,Ne({},e)),u&&u.length>0?i.a.createElement("div",{className:"mt-2 text-sm"},i.a.createElement("p",null,"Available only on servers:"),i.a.createElement("ul",{className:"flex flex-wrap leading-normal"},u.map((function(e){return i.a.createElement("li",{className:"inline-block mt-2 mr-2",key:e},i.a.createElement("a",{href:"#".concat(ie.getIdentifier("server-"+e,t)),className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1 cursor-pointer"},i.a.createElement("span",{className:"underline"},e)))})))):null,l&&i.a.createElement("div",{className:"mt-2",id:ie.getIdentifier("operation-".concat(n,"-").concat(o,"-parameters"),t)},i.a.createElement(Y,{schemaName:"Parameters",schema:l,expanded:!0})),s.hasBindings()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(te,{name:"Channel specific information",bindings:s.bindings()})),i.a.createElement(X,{name:"Channel Extensions",item:s}),a.hasBindings()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(te,{name:"Operation specific information",bindings:a.bindings()})),i.a.createElement(X,{name:"Operation Extensions",item:a}),a.hasTags()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(N,{tags:a.tags()}))),i.a.createElement("div",{className:"w-full mt-4",id:ie.getIdentifier("operation-".concat(n,"-").concat(o,"-message"),t)},a.hasMultipleMessages()?i.a.createElement("div",{className:"mt-2"},i.a.createElement("p",{className:"px-8"},"Accepts ",i.a.createElement("strong",null,"one of")," the following messages:"),i.a.createElement("ul",null,a.messages().map((function(e,t){return i.a.createElement("li",{className:"mt-4",key:t},i.a.createElement($e,{message:e,index:t,showExamples:!0}))})))):i.a.createElement("div",{className:"mt-2"},i.a.createElement("p",{className:"px-8"},"Accepts the following message:"),i.a.createElement("div",{className:"mt-2"},i.a.createElement($e,{message:a.message(0),showExamples:!0})))))},Me=function(e){var t=e.type,r=void 0===t?Ie.a.PUBLISH:t,n=e.operation,a=e.channelName,o=e.channel,s=n.summary(),u=n.externalDocs(),l=n.id();return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mb-4"},i.a.createElement("h3",null,i.a.createElement("span",{className:"font-mono border uppercase p-1 rounded mr-2 ".concat(r===Ie.a.PUBLISH?"border-blue-600 text-blue-500":"border-green-600 text-green-600"),title:r},r===Ie.a.PUBLISH?"PUB":"SUB")," ",i.a.createElement("span",{className:"font-mono text-base"},a))),o.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement($,null,o.description())),s&&i.a.createElement("p",{className:"text-gray-600 text-sm mt-2"},s),n.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement($,null,n.description())),u&&i.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},u&&i.a.createElement("li",{className:"inline-block"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:u.url()},i.a.createElement("span",null,R.c)))),l&&i.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},i.a.createElement("div",{className:"text-sm text-gray-700"},"Operation ID",i.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},l))))},Be=function(){var e=f().channels(),t=ne();if(!Object.keys(e).length)return null;var r=[];return Object.entries(e).forEach((function(e){var n=e[0],a=e[1];a.hasPublish()&&r.push(i.a.createElement("li",{className:"mb-12",key:"pub-".concat(n),id:ie.getIdentifier("operation-".concat(Ie.a.PUBLISH,"-").concat(n),t)},i.a.createElement(Re,{type:Ie.a.PUBLISH,operation:a.publish(),channelName:n,channel:a}))),a.hasSubscribe()&&r.push(i.a.createElement("li",{className:"mb-12",key:"sub-".concat(n),id:ie.getIdentifier("operation-".concat(Ie.a.SUBSCRIBE,"-").concat(n),t)},i.a.createElement(Re,{type:Ie.a.SUBSCRIBE,operation:a.subscribe(),channelName:n,channel:a})))})),i.a.createElement("section",{id:"".concat(ie.getIdentifier("operations",t)),className:"mt-16"},i.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},R.e),i.a.createElement("ul",null,r))},Le=function(){var e=f(),t=ne(),r=e.hasComponents()&&e.components().messages();return r&&0!==Object.keys(r).length?i.a.createElement("section",{id:"".concat(ie.getIdentifier("messages",t)),className:"mt-16"},i.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},R.d),i.a.createElement("ul",null,Object.entries(r).map((function(e,r){var n=e[0],a=e[1];return i.a.createElement("li",{className:"mb-4",key:n,id:ie.getIdentifier("message-".concat(n),t)},i.a.createElement($e,{messageName:n,message:a,index:r+1,key:n}))})))):null},Ue=function(e){var t=e.schemaName,r=e.schema;return r?i.a.createElement("div",null,i.a.createElement("div",{className:"panel-item--center px-8"},i.a.createElement("div",{className:"shadow rounded px-4 py-2 border bg-gray-200"},i.a.createElement(Y,{schemaName:t,schema:r}))),i.a.createElement("div",{className:"w-full mt-4"})):null},ze=function(){var e=f(),t=ne(),r=e.hasComponents()&&e.components().schemas();return r&&0!==Object.keys(r).length?i.a.createElement("section",{id:"".concat(ie.getIdentifier("schemas",t)),className:"mt-16"},i.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},R.f),i.a.createElement("ul",null,Object.entries(r).map((function(e){var r=e[0],n=e[1];return i.a.createElement("li",{className:"mb-4",key:r,id:ie.getIdentifier("schema-".concat(r),t)},i.a.createElement(Ue,{schemaName:r,schema:n}))})))):null},qe=function(e){var t=e.error;if(!t)return null;var r,n=t.title,a=t.validationErrors;return i.a.createElement("div",{className:"panel-item"},i.a.createElement("div",{className:"panel-item--center p-8"},i.a.createElement("section",{className:"shadow rounded bg-gray-200 border-red-500 border-l-8"},i.a.createElement("h2",{className:"p-2"},n?"".concat(R.b,": ").concat(n):R.b),a&&a.length?i.a.createElement("div",{className:"bg-gray-800 text-white text-xs p-2"},i.a.createElement("pre",null,(r=a)?r.map((function(e,t){return e&&e.title&&e.location?i.a.createElement("div",{key:t,className:"flex"},i.a.createElement("span",null,"".concat(e.location.startLine,".")),i.a.createElement("code",{className:"whitespace-pre-wrap break-all ml-2"},e.title)):null})).filter(Boolean):null)):null)),i.a.createElement("div",{className:"panel-item--right"}))},He=function(e){var t,r,a,o,u,l,c,f=e.asyncapi,h=e.config,m=e.error,y=void 0===m?null:m,g=Object(n.useState)("container:xl"),v=g[0],b=g[1],x=s({onResize:function(e){var t=e.width;requestAnimationFrame((function(){if(void 0!==t){var e=t<=1280?"container:xl":"container:base";e!==v&&b(e)}}))}}).ref;return i.a.createElement(re.Provider,{value:h},i.a.createElement(p.Provider,{value:f},i.a.createElement("section",{className:"aui-root"},i.a.createElement("div",{className:"".concat(v," relative md:flex bg-white leading-normal"),id:h.schemaID||void 0,ref:x},(null===(t=h.show)||void 0===t?void 0:t.sidebar)&&i.a.createElement(d,{config:h.sidebar}),i.a.createElement("div",{className:"panel--center relative py-8 flex-1"},i.a.createElement("div",{className:"relative z-10"},(null===(r=h.show)||void 0===r?void 0:r.errors)&&y&&i.a.createElement(qe,{error:y}),(null===(a=h.show)||void 0===a?void 0:a.info)&&i.a.createElement(M,null),(null===(o=h.show)||void 0===o?void 0:o.servers)&&i.a.createElement(oe,null),(null===(u=h.show)||void 0===u?void 0:u.operations)&&i.a.createElement(Be,null),(null===(l=h.show)||void 0===l?void 0:l.messages)&&i.a.createElement(Le,null),(null===(c=h.show)||void 0===c?void 0:c.schemas)&&i.a.createElement(ze,null)),i.a.createElement("div",{className:"panel--right absolute top-0 right-0 h-full bg-gray-800"}))))))},Ve=(je=function(e,t){return(je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}je(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Je=function(){return(Je=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ke=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},Xe=function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},We=function(e){function t(t){var r=e.call(this,t)||this;r.state={asyncapi:void 0,error:void 0};var n=a.a.retrieveParsedSpec(t.schema);return n&&(r.state={asyncapi:n}),r}return Ve(t,e),t.prototype.componentDidMount=function(){return Ke(this,void 0,void 0,(function(){return Xe(this,(function(e){return this.state.asyncapi||this.updateState(this.props.schema),[2]}))}))},t.prototype.componentDidUpdate=function(e){return Ke(this,void 0,void 0,(function(){var t,r;return Xe(this,(function(n){return t=e.schema,r=this.props.schema,t!==r&&this.updateState(r),[2]}))}))},t.prototype.render=function(){var e,t=this.props,r=t.config,n=t.error,a=this.state,s=a.asyncapi,u=a.error,l=n||u,c=Je(Je(Je({},o),r),{show:Je(Je({},o.show),!!r&&r.show),sidebar:Je(Je({},o.sidebar),!!r&&r.sidebar)});return s?i.a.createElement(He,{asyncapi:s,config:c,error:l}):l?(null===(e=c.show)||void 0===e?void 0:e.errors)&&i.a.createElement(qe,{error:l}):null},t.prototype.updateState=function(e){var t=a.a.retrieveParsedSpec(e);t?this.setState({asyncapi:t}):this.setState({asyncapi:void 0})},t}(n.Component);t.a=We},function(e,t,r){"use strict";
8
+ var n=r(81),i=r(82),a=r(60);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,r)}function l(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=f(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(t,r),i=(e=s(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):f(e,t);if("Buffer"===t.type&&a(t.data))return f(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(c(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function f(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(n)return L(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var a,o=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,r/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;a<s;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var p=!0,f=0;f<u;f++)if(l(e,a+f)!==l(t,f)){p=!1;break}if(p)return a}return-1}function b(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function x(e,t,r,n){return z(L(t,e.length-r),e,r,n)}function E(e,t,r,n){return z(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return E(e,t,r,n)}function D(e,t,r,n){return z(U(t),e,r,n)}function A(e,t,r,n){return z(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,u,l=e[i],c=null,p=l>239?4:l>223?3:l>191?2:1;if(i+p<=r)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return l(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return c(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return p(null,e)},u.allocUnsafeSlow=function(e){return p(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):m.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(n,i),c=e.slice(t,r),p=0;p<s;++p)if(l[p]!==c[p]){a=l[p],o=c[p];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return x(this,e,t,r);case"ascii":return E(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return D(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function P(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function T(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=B(e[a]);return i}function j(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function F(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function O(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function $(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function I(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,a){return a||I(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function R(e,t,r,n,a){return a||I(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||F(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||F(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||F(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||F(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||_(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||_(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=u.isBuffer(e)?e:L(new u(e,n).toString()),s=o.length;for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function U(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(13))},function(e,t,r){"use strict";var n=r(49),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];e.exports=function(e,t){var r,o;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(r=t.styleAliases||null,o={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){o[String(t)]=e}))})),o),-1===a.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(51),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];var o=function(e,t){var r,o;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(r=t.styleAliases||null,o={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){o[String(t)]=e}))})),o),-1===a.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};t.Type=o},function(e,t){function r(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];"object"!=typeof n||Object.isFrozen(n)||r(n)})),e}var n=r,i=r;n.default=i;class a{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function o(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(e,...t){const r=Object.create(null);for(const t in e)r[t]=e[t];return t.forEach((function(e){for(const t in e)r[t]=e[t]})),r}const u=e=>!!e.kind;class l{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=o(e)}openNode(e){if(!u(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){u(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class c{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{c._collapse(e)}))}}class p extends c{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const r=e.root;r.kind=t,r.sublanguage=!0,this.add(r)}toHTML(){return new l(this,this.options).value()}finalize(){return!0}}function f(e){return e?"string"==typeof e?e:e.source:null}const h=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;const d="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",m={begin:"\\\\[\\s\\S]",relevance:0},y={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[m]},g={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[m]},v={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},b=function(e,t,r={}){const n=s({className:"comment",begin:e,end:t,contains:[]},r);return n.contains.push(v),n.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),n},x=b("//","$"),E=b("/\\*","\\*/"),w=b("#","$"),D={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},A={className:"number",begin:d,relevance:0},S={className:"number",begin:"\\b(0b[01]+)",relevance:0},k={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},C={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[m,{begin:/\[/,end:/\]/,relevance:0,contains:[m]}]}]},P={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},T={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},j={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var F=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:d,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>f(e)).join("")}(t,/.*\b/,e.binary,/\b.*/)),s({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:m,APOS_STRING_MODE:y,QUOTE_STRING_MODE:g,PHRASAL_WORDS_MODE:v,COMMENT:b,C_LINE_COMMENT_MODE:x,C_BLOCK_COMMENT_MODE:E,HASH_COMMENT_MODE:w,NUMBER_MODE:D,C_NUMBER_MODE:A,BINARY_NUMBER_MODE:S,CSS_NUMBER_MODE:k,REGEXP_MODE:C,TITLE_MODE:P,UNDERSCORE_TITLE_MODE:T,METHOD_GUARD:j,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function _(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function O(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=_,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function $(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map(e=>f(e)).join("|")+")"}(...e.illegal))}function I(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function N(e,t){void 0===e.relevance&&(e.relevance=1)}const R=["of","and","for","in","not","or","if","then","parent","list","value"];function M(e,t){return t?Number(t):function(e){return R.includes(e.toLowerCase())}(e)?0:1}function B(e,{plugins:t}){function r(t,r){return new RegExp(f(t),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=r(function(e,t="|"){let r=0;return e.map(e=>{r+=1;const t=r;let n=f(e),i="";for(;n.length>0;){const e=h.exec(n);if(!e){i+=n;break}i+=n.substring(0,e.index),n=n.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&r++)}return i}).map(e=>`(${e})`).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const r=t.findIndex((e,t)=>t>0&&void 0!==e),n=this.matchIndexes[r];return t.splice(0,r),Object.assign(t,n)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach(([e,r])=>t.addRule(e,r)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let r=t.exec(e);if(this.resumingScanAtSamePosition())if(r&&r.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,r=t.exec(e)}return r&&(this.regexIndex+=r.position+1,this.regexIndex===this.count&&this.considerAll()),r}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=s(e.classNameAliases||{}),function t(n,a){const o=n;if(n.isCompiled)return o;[I].forEach(e=>e(n,a)),e.compilerExtensions.forEach(e=>e(n,a)),n.__beforeBegin=null,[O,$,N].forEach(e=>e(n,a)),n.isCompiled=!0;let u=null;if("object"==typeof n.keywords&&(u=n.keywords.$pattern,delete n.keywords.$pattern),n.keywords&&(n.keywords=function e(t,r,n="keyword"){const i={};return"string"==typeof t?a(n,t.split(" ")):Array.isArray(t)?a(n,t):Object.keys(t).forEach((function(n){Object.assign(i,e(t[n],r,n))})),i;function a(e,t){r&&(t=t.map(e=>e.toLowerCase())),t.forEach((function(t){const r=t.split("|");i[r[0]]=[e,M(r[0],r[1])]}))}}(n.keywords,e.case_insensitive)),n.lexemes&&u)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return u=u||n.lexemes||/\w+/,o.keywordPatternRe=r(u,!0),a&&(n.begin||(n.begin=/\B|\b/),o.beginRe=r(n.begin),n.endSameAsBegin&&(n.end=n.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(o.endRe=r(n.end)),o.terminatorEnd=f(n.end)||"",n.endsWithParent&&a.terminatorEnd&&(o.terminatorEnd+=(n.end?"|":"")+a.terminatorEnd)),n.illegal&&(o.illegalRe=r(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return s(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(e))return s(e,{starts:e.starts?s(e.starts):null});if(Object.isFrozen(e))return s(e);return e}("self"===e?n:e)}))),n.contains.forEach((function(e){t(e,o)})),n.starts&&t(n.starts,a),o.matcher=function(e){const t=new i;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function L(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,o(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const U={"after:highlightElement":({el:e,result:t,text:r})=>{const n=q(e);if(!n.length)return;const i=document.createElement("div");i.innerHTML=t.value,t.value=function(e,t,r){let n=0,i="";const a=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function u(e){i+="<"+z(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+o(e.value)+'"'})).join("")+">"}function l(e){i+="</"+z(e)+">"}function c(e){("start"===e.event?u:l)(e.node)}for(;e.length||t.length;){let t=s();if(i+=o(r.substring(n,t[0].offset)),n=t[0].offset,t===e){a.reverse().forEach(l);do{c(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===n);a.reverse().forEach(u)}else"start"===t[0].event?a.push(t[0].node):a.pop(),c(t.splice(0,1)[0])}return i+o(r.substr(n))}(n,q(i),r)}};function z(e){return e.nodeName.toLowerCase()}function q(e){const t=[];return function e(r,n){for(let i=r.firstChild;i;i=i.nextSibling)3===i.nodeType?n+=i.nodeValue.length:1===i.nodeType&&(t.push({event:"start",offset:n,node:i}),n=e(i,n),z(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:n,node:i}));return n}(e,0),t}const H={},V=e=>{console.error(e)},J=(e,...t)=>{console.log("WARN: "+e,...t)},K=(e,t)=>{H[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),H[`${e}/${t}`]=!0)},X=o,W=s,Y=Symbol("nomatch");var G=function(e){const t=Object.create(null),r=Object.create(null),i=[];let o=!0;const s=/(^(<[^>]+>|\t|)+|\n)/gm,u="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let c={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:p};function f(e){return c.noHighlightRe.test(e)}function h(e,t,r,n){let i="",a="";"object"==typeof t?(i=e,r=t.ignoreIllegals,a=t.language,n=void 0):(K("10.7.0","highlight(lang, code, ...args) has been deprecated."),K("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),a=e,i=t);const o={code:i,language:a};k("before:highlight",o);const s=o.result?o.result:d(o.language,o.code,r,n);return s.code=o.code,k("after:highlight",s),s}function d(e,r,n,s){function l(e,t){const r=x.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,r)&&e.keywords[r]}function p(){null!=A.subLanguage?function(){if(""===C)return;let e=null;if("string"==typeof A.subLanguage){if(!t[A.subLanguage])return void k.addText(C);e=d(A.subLanguage,C,!0,S[A.subLanguage]),S[A.subLanguage]=e.top}else e=m(C,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(P+=e.relevance),k.addSublanguage(e.emitter,e.language)}():function(){if(!A.keywords)return void k.addText(C);let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(C),r="";for(;t;){r+=C.substring(e,t.index);const n=l(A,t);if(n){const[e,i]=n;if(k.addText(r),r="",P+=i,e.startsWith("_"))r+=t[0];else{const r=x.classNameAliases[e]||e;k.addKeyword(t[0],r)}}else r+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(C)}r+=C.substr(e),k.addText(r)}(),C=""}function f(e){return e.className&&k.openNode(x.classNameAliases[e.className]||e.className),A=Object.create(e,{parent:{value:A}}),A}function h(e){return 0===A.matcher.regexIndex?(C+=e[0],1):(F=!0,0)}function y(e){const t=e[0],r=e.rule,n=new a(r),i=[r.__beforeBegin,r["on:begin"]];for(const r of i)if(r&&(r(e,n),n.isMatchIgnored))return h(t);return r&&r.endSameAsBegin&&(r.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),r.skip?C+=t:(r.excludeBegin&&(C+=t),p(),r.returnBegin||r.excludeBegin||(C=t)),f(r),r.returnBegin?0:t.length}function g(e){const t=e[0],n=r.substr(e.index),i=function e(t,r,n){let i=function(e,t){const r=e&&e.exec(t);return r&&0===r.index}(t.endRe,n);if(i){if(t["on:end"]){const e=new a(t);t["on:end"](r,e),e.isMatchIgnored&&(i=!1)}if(i){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,r,n)}(A,e,n);if(!i)return Y;const o=A;o.skip?C+=t:(o.returnEnd||o.excludeEnd||(C+=t),p(),o.excludeEnd&&(C=t));do{A.className&&k.closeNode(),A.skip||A.subLanguage||(P+=A.relevance),A=A.parent}while(A!==i.parent);return i.starts&&(i.endSameAsBegin&&(i.starts.endRe=i.endRe),f(i.starts)),o.returnEnd?0:t.length}let v={};function b(t,i){const a=i&&i[0];if(C+=t,null==a)return p(),0;if("begin"===v.type&&"end"===i.type&&v.index===i.index&&""===a){if(C+=r.slice(i.index,i.index+1),!o){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=v.rule,t}return 1}if(v=i,"begin"===i.type)return y(i);if("illegal"===i.type&&!n){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(A.className||"<unnamed>")+'"');throw e.mode=A,e}if("end"===i.type){const e=g(i);if(e!==Y)return e}if("illegal"===i.type&&""===a)return 1;if(j>1e5&&j>3*i.index){throw new Error("potential infinite loop, way more iterations than matches")}return C+=a,a.length}const x=D(e);if(!x)throw V(u.replace("{}",e)),new Error('Unknown language: "'+e+'"');const E=B(x,{plugins:i});let w="",A=s||E;const S={},k=new c.__emitter(c);!function(){const e=[];for(let t=A;t!==x;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>k.openNode(e))}();let C="",P=0,T=0,j=0,F=!1;try{for(A.matcher.considerAll();;){j++,F?F=!1:A.matcher.considerAll(),A.matcher.lastIndex=T;const e=A.matcher.exec(r);if(!e)break;const t=b(r.substring(T,e.index),e);T=e.index+t}return b(r.substr(T)),k.closeAllNodes(),k.finalize(),w=k.toHTML(),{relevance:Math.floor(P),value:w,language:e,illegal:!1,emitter:k,top:A}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:r.slice(T-100,T+100),mode:t.mode},sofar:w,relevance:0,value:X(r),emitter:k};if(o)return{illegal:!1,relevance:0,value:X(r),emitter:k,language:e,top:A,errorRaised:t};throw t}}function m(e,r){r=r||c.languages||Object.keys(t);const n=function(e){const t={relevance:0,emitter:new c.__emitter(c),value:X(e),illegal:!1,top:l};return t.emitter.addText(e),t}(e),i=r.filter(D).filter(S).map(t=>d(t,e,!1));i.unshift(n);const a=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(D(e.language).supersetOf===t.language)return 1;if(D(t.language).supersetOf===e.language)return-1}return 0}),[o,s]=a,u=o;return u.second_best=s,u}const y={"before:highlightElement":({el:e})=>{c.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:e})=>{c.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},g=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:e})=>{c.tabReplace&&(e.value=e.value.replace(g,e=>e.replace(/\t/g,c.tabReplace)))}};function b(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const r=c.languageDetectRe.exec(t);if(r){const t=D(r[1]);return t||(J(u.replace("{}",r[1])),J("Falling back to no-highlight mode for this block.",e)),t?r[1]:"no-highlight"}return t.split(/\s+/).find(e=>f(e)||D(e))}(e);if(f(n))return;k("before:highlightElement",{el:e,language:n}),t=e;const i=t.textContent,a=n?h(i,{language:n,ignoreIllegals:!0}):m(i);k("after:highlightElement",{el:e,result:a,text:i}),e.innerHTML=a.value,function(e,t,n){const i=t?r[t]:n;e.classList.add("hljs"),i&&e.classList.add(i)}(e,n,a.language),e.result={language:a.language,re:a.relevance,relavance:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance,relavance:a.second_best.relevance})}const x=()=>{if(x.called)return;x.called=!0,K("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(b)};let E=!1;function w(){if("loading"===document.readyState)return void(E=!0);document.querySelectorAll("pre code").forEach(b)}function D(e){return e=(e||"").toLowerCase(),t[e]||t[r[e]]}function A(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{r[e.toLowerCase()]=t})}function S(e){const t=D(e);return t&&!t.disableAutodetect}function k(e,t){const r=e;i.forEach((function(e){e[r]&&e[r](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){E&&w()}),!1),Object.assign(e,{highlight:h,highlightAuto:m,highlightAll:w,fixMarkup:function(e){return K("10.2.0","fixMarkup will be removed entirely in v11.0"),K("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,c.tabReplace||c.useBR?t.replace(s,e=>"\n"===e?c.useBR?"<br>":e:c.tabReplace?e.replace(/\t/g,c.tabReplace):e):t;var t},highlightElement:b,highlightBlock:function(e){return K("10.7.0","highlightBlock will be removed entirely in v12.0"),K("10.7.0","Please use highlightElement now."),b(e)},configure:function(e){e.useBR&&(K("10.3.0","'useBR' will be removed entirely in v11.0"),K("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),c=W(c,e)},initHighlighting:x,initHighlightingOnLoad:function(){K("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),E=!0},registerLanguage:function(r,n){let i=null;try{i=n(e)}catch(e){if(V("Language definition for '{}' could not be registered.".replace("{}",r)),!o)throw e;V(e),i=l}i.name||(i.name=r),t[r]=i,i.rawDefinition=n.bind(null,e),i.aliases&&A(i.aliases,{languageName:r})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(r))r[t]===e&&delete r[t]},listLanguages:function(){return Object.keys(t)},getLanguage:D,registerAliases:A,requireLanguage:function(e){K("10.4.0","requireLanguage will be removed entirely in v11."),K("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=D(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:S,inherit:W,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),i.push(e)},vuePlugin:L(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString="10.7.3";for(const e in F)"object"==typeof F[e]&&n(F[e]);return Object.assign(e,F),e.addPlugin(y),e.addPlugin(U),e.addPlugin(v),e}({});e.exports=G},function(e,t){var r,n,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var u,l=[],c=!1,p=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):p=-1,l.length&&h())}function h(){if(!c){var e=s(f);c=!0;for(var t=l.length;t;){for(u=l,l=[];++p<t;)u&&u[p].run();p=-1,t=l.length}u=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new d(e,t)),1!==l.length||c||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){const{getMapValueOfType:n}=r(2),i=r(78),a={hasExternalDocs(){return!(!this._json.externalDocs||!Object.keys(this._json.externalDocs).length)},externalDocs(){return n(this._json,"externalDocs",i)}};e.exports=a},function(e,t,r){"use strict";(function(n){let i=/^win/.test(n.platform),a=/\//g,o=/^(\w{2,}):\/\//i,s=e.exports,u=/~1/g,l=/~0/g,c=[/\?/g,"%3F",/\#/g,"%23"],p=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];t.parse=r(63).parse,t.resolve=r(63).resolve,t.cwd=function(){if(n.browser)return location.href;let e=n.cwd(),t=e.slice(-1);return"/"===t||"\\"===t?e:e+"/"},t.getProtocol=function(e){let t=o.exec(e);if(t)return t[1].toLowerCase()},t.getExtension=function(e){let t=e.lastIndexOf(".");return t>=0?s.stripQuery(e.substr(t).toLowerCase()):""},t.stripQuery=function(e){let t=e.indexOf("?");return t>=0&&(e=e.substr(0,t)),e},t.getHash=function(e){let t=e.indexOf("#");return t>=0?e.substr(t):"#"},t.stripHash=function(e){let t=e.indexOf("#");return t>=0&&(e=e.substr(0,t)),e},t.isHttp=function(e){let t=s.getProtocol(e);return"http"===t||"https"===t||void 0===t&&n.browser},t.isFileSystemPath=function(e){if(n.browser)return!1;let t=s.getProtocol(e);return void 0===t||"file"===t},t.fromFileSystemPath=function(e){i&&(e=e.replace(/\\/g,"/")),e=encodeURI(e);for(let t=0;t<c.length;t+=2)e=e.replace(c[t],c[t+1]);return e},t.toFileSystemPath=function(e,t){e=decodeURI(e);for(let t=0;t<p.length;t+=2)e=e.replace(p[t],p[t+1]);let r="file://"===e.substr(0,7).toLowerCase();return r&&(e="/"===e[7]?e.substr(8):e.substr(7),i&&"/"===e[1]&&(e=e[0]+":"+e.substr(1)),t?e="file:///"+e:(r=!1,e=i?e:"/"+e)),i&&!r&&":\\"===(e=e.replace(a,"\\")).substr(1,2)&&(e=e[0].toUpperCase()+e.substr(1)),e},t.safePointerToPath=function(e){return e.length<=1||"#"!==e[0]||"/"!==e[1]?[]:e.slice(2).split("/").map(e=>decodeURIComponent(e).replace(u,"/").replace(l,"~"))}}).call(this,r(16))},function(e,t,r){"use strict";const{Ono:n}=r(26),{stripHash:i,toFileSystemPath:a}=r(18),o=t.JSONParserError=class extends Error{constructor(e,t){super(),this.code="EUNKNOWN",this.message=e,this.source=t,this.path=null,n.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};u(o);const s=t.JSONParserErrorGroup=class e extends Error{constructor(e){super(),this.files=e,this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${a(e.$refs._root$Ref.path)}'`,n.extend(this)}static getParserErrors(e){const t=[];for(const r of Object.values(e.$refs._$refs))r.errors&&t.push(...r.errors);return t}get errors(){return e.getParserErrors(this.files)}};u(s);u(t.ParserError=class extends o{constructor(e,t){super(`Error parsing ${t}: ${e}`,t),this.code="EPARSER"}});u(t.UnmatchedParserError=class extends o{constructor(e){super(`Could not find parser for "${e}"`,e),this.code="EUNMATCHEDPARSER"}});u(t.ResolverError=class extends o{constructor(e,t){super(e.message||`Error reading file "${t}"`,t),this.code="ERESOLVER","code"in e&&(this.ioErrorCode=String(e.code))}});u(t.UnmatchedResolverError=class extends o{constructor(e){super(`Could not find resolver for "${e}"`,e),this.code="EUNMATCHEDRESOLVER"}});u(t.MissingPointerError=class extends o{constructor(e,t){super(`Token "${e}" does not exist.`,i(t)),this.code="EMISSINGPOINTER"}});function u(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}u(t.InvalidPointerError=class extends o{constructor(e,t){super(`Invalid $ref pointer "${e}". Pointers must begin with "#/"`,i(t)),this.code="EINVALIDPOINTER"}}),t.isHandledError=function(e){return e instanceof o||e instanceof s},t.normalizeError=function(e){return null===e.path&&(e.path=[]),e}},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));const n=/\r?\n/,i=/\bono[ @]/;function a(e,t){let r=s(e.stack),n=t?t.stack:void 0;return r&&n?r+"\n\n"+n:r||n}function o(e,t,r){r?Object.defineProperty(t,"stack",{get:()=>a({stack:e.get.apply(t)},r),enumerable:!1,configurable:!0}):function(e,t){Object.defineProperty(e,"stack",{get:()=>s(t.get.apply(e)),enumerable:!1,configurable:!0})}(t,e)}function s(e){if(e){let t,r=e.split(n);for(let e=0;e<r.length;e++){let n=r[e];if(i.test(n))void 0===t&&(t=e);else if(void 0!==t){r.splice(t,e-t);break}}if(r.length>0)return r.join("\n")}return e}const u=["function","symbol","undefined"],l=["constructor","prototype","__proto__"],c=Object.getPrototypeOf({});function p(){let e={},t=this;for(let r of f(t))if("string"==typeof r){let n=t[r],i=typeof n;u.includes(i)||(e[r]=n)}return e}function f(e,t=[]){let r=[];for(;e&&e!==c;)r=r.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let n=new Set(r);for(let e of t.concat(l))n.delete(e);return n}const h=["name","message","stack"];function d(e,t,r){let n=e;return function(e,t){let r=Object.getOwnPropertyDescriptor(e,"stack");!function(e){return Boolean(e&&e.configurable&&"function"==typeof e.get)}(r)?function(e){return Boolean(!e||e.writable||"function"==typeof e.set)}(r)&&(e.stack=a(e,t)):o(r,e,t)}(n,t),t&&"object"==typeof t&&function(e,t){let r=f(t,h),n=e,i=t;for(let e of r)if(void 0===n[e])try{n[e]=i[e]}catch(e){}}(n,t),n.toJSON=p,r&&"object"==typeof r&&Object.assign(n,r),n}const m=y;function y(e,t){function r(...r){let{originalError:n,props:i,message:a}=function(e,t){let r,n,i,a="";return"string"==typeof e[0]?i=e:"string"==typeof e[1]?(e[0]instanceof Error?r=e[0]:n=e[0],i=e.slice(1)):(r=e[0],n=e[1],i=e.slice(2)),i.length>0&&(a=t.format?t.format.apply(void 0,i):i.join(" ")),t.concatMessages&&r&&r.message&&(a+=(a?" \n":"")+r.message),{originalError:r,props:n,message:a}}(r,t);return d(new e(a),n,i)}return t=function(e){return{concatMessages:void 0===(e=e||{}).concatMessages||Boolean(e.concatMessages),format:void 0!==e.format&&("function"==typeof e.format&&e.format)}}(t),r[Symbol.species]=e,r}y.toJSON=function(e){return p.call(e)},y.extend=function(e,t,r){return r||t instanceof Error?d(e,t,r):t?d(e,void 0,t):d(e)}},function(e,t,r){const{getMapValueByKey:n}=r(2),i={hasBindings(){return!(!this._json.bindings||!Object.keys(this._json.bindings).length)},bindings(){return this.hasBindings()?this._json.bindings:{}},bindingProtocols(){return Object.keys(this.bindings())},hasBinding(e){return this.hasBindings()&&!!this._json.bindings[String(e)]},binding(e){return n(this._json.bindings,e)}};e.exports=i},function(e,t,r){const{createMapOfType:n,getMapValueOfType:i,mix:a}=r(2),o=r(3),s=r(71),u=r(74),l=r(77),c=r(84),p=r(17),f=r(25),h=r(4),{xParserSpecParsed:d,xParserSpecStringified:m,xParserCircle:y}=r(24),{assignNameToAnonymousMessages:g,assignNameToComponentMessages:v,assignUidToComponentSchemas:b,assignUidToParameterSchemas:x,assignIdToAnonymousSchemas:E,assignUidToComponentParameterSchemas:w}=r(87),{traverseAsyncApiDocument:D}=r(45);class A extends o{constructor(...e){super(...e),!0!==this.ext(d)&&(v(this),g(this),b(this),w(this),x(this),E(this),this.json()[String(d)]=!0)}version(){return this._json.asyncapi}info(){return new s(this._json.info)}id(){return this._json.id}hasServers(){return!!this._json.servers}servers(){return n(this._json.servers,u)}serverNames(){return this._json.servers?Object.keys(this._json.servers):[]}server(e){return i(this._json.servers,e,u)}hasDefaultContentType(){return!!this._json.defaultContentType}defaultContentType(){return this._json.defaultContentType||null}hasChannels(){return!!this._json.channels}channels(){return n(this._json.channels,l,this)}channelNames(){return this._json.channels?Object.keys(this._json.channels):[]}channel(e){return i(this._json.channels,e,l,this)}hasComponents(){return!!this._json.components}components(){return this._json.components?new c(this._json.components):null}hasMessages(){return!!this.allMessages().size}allMessages(){const e=new Map;return this.hasChannels()&&this.channelNames().forEach(t=>{const r=this.channel(t);r.hasPublish()&&r.publish().messages().forEach(t=>{e.set(t.uid(),t)}),r.hasSubscribe()&&r.subscribe().messages().forEach(t=>{e.set(t.uid(),t)})}),this.hasComponents()&&Object.values(this.components().messages()).forEach(t=>{e.set(t.uid(),t)}),e}allSchemas(){const e=new Map;return D(this,t=>{t.uid()&&e.set(t.uid(),t)}),e}hasCircular(){return!!this._json[String(y)]}traverseSchemas(e,t){D(this,e,t)}static stringify(e,t){const r={...e.json()};return r[String(m)]=!0,JSON.stringify(r,function(){const e=new Map,t=new Map;let r=null;return function(n,i){const a=e.get(this)+(Array.isArray(this)?`[${n}]`:"."+n),o=i===Object(i);o&&e.set(i,a);const s=t.get(i)||"";if(!s&&o){const e=a.replace(/undefined\.\.?/,"");t.set(i,e)}const u="["===s[0]?"$":"$.";let l=s?`$ref:${u}${s}`:i;return null===r?r=i:l===r&&(l="$ref:$"),l}}(),t)}static parse(e){let t=e;if("string"==typeof e?t=JSON.parse(e):"object"==typeof e&&(t={...t}),"object"!=typeof t||!t[String(d)])throw new Error("Cannot parse invalid AsyncAPI document");if(!t[String(m)])return new A(t);delete t[String(m)];return function e(t,r,n,i,a){let o=t,s="$ref:$";if(void 0!==r){o=t[String(r)];const e=r?"."+r:"";s=i.get(t)+(Array.isArray(t)?`[${r}]`:e)}i.set(o,s),a.set(s,o);const u=a.get(o);u&&(t[String(r)]=u);"$ref:$"!==o&&"$ref:$"!==u||(t[String(r)]=n);if(o===Object(o))for(const t in o)e(o,t,n,i,a)}(t,void 0,t,new Map,new Map),new A(t)}}e.exports=a(A,f,p,h)},function(e,t){const r=(e,t)=>(t.type=e.type.startsWith("https://github.com/asyncapi/parser-js/")?e.type:"https://github.com/asyncapi/parser-js/"+e.type,t.title=e.title,e.detail&&(t.detail=e.detail),e.validationErrors&&(t.validationErrors=e.validationErrors),e.parsedJSON&&(t.parsedJSON=e.parsedJSON),e.location&&(t.location=e.location),e.refs&&(t.refs=e.refs),t);class n extends Error{constructor(e){super(),r(e,this),this.message=e.title}toJS(){return r(this,{})}}e.exports=n},function(e,t){e.exports={xParserSpecParsed:"x-parser-spec-parsed",xParserSpecStringified:"x-parser-spec-stringified",xParserMessageName:"x-parser-message-name",xParserSchemaId:"x-parser-schema-id",xParserCircle:"x-parser-circular",xParserCircleProps:"x-parser-circular-props"}},function(e,t,r){const n=r(80),i={hasTags(){return!(!Array.isArray(this._json.tags)||!this._json.tags.length)},tags(){return this.hasTags()?this._json.tags.map(e=>new n(e)):[]},tagNames(){return this.hasTags()?this._json.tags.map(e=>e.name):[]},hasTag(e){return this.hasTags()&&this._json.tags.some(t=>t.name===e)},tag(e){const t=this.hasTags()&&this._json.tags.find(t=>t.name===e);return t?new n(t):null}};e.exports=i},function(e,t,r){"use strict";r.r(t),function(e){var n=r(95);r.d(t,"ono",(function(){return n.a}));var i=r(20);r.d(t,"Ono",(function(){return i.a}));r(106);t.default=n.a,"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))}.call(this,r(175)(e))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return u}));var n=r(0),i=r.n(n),a=r(29);function o(e){return"undefined"!=typeof document?document.querySelector(e):null}function s(e){return function(t,r,n){null!==(r=r||o("asyncapi"))&&Object(a.render)(i.a.createElement(e,t),r,n)}}function u(e){return function(t,r,n){null!==(r=r||o("asyncapi"))&&Object(a.hydrate)(i.a.createElement(e,t),r,n)}}},function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=r(68)},function(e,t,r){const n=r(39),i=r(40),a=r(44);e.exports=class extends n{hasMultipleMessages(){return!!(this._json.message&&this._json.message.oneOf&&this._json.message.oneOf.length>1)||(this._json.message,!1)}traits(){const e=this._json["x-parser-original-traits"]||this._json.traits;return e?e.map(e=>new a(e)):[]}hasTraits(){return!!this._json["x-parser-original-traits"]||!!this._json.traits}messages(){return this._json.message?this._json.message.oneOf?this._json.message.oneOf.map(e=>new i(e)):[new i(this._json.message)]:[]}message(e){return this._json.message?this._json.message.oneOf?"number"!=typeof e||e>this._json.message.oneOf.length-1?null:new i(this._json.message.oneOf[+e]):new i(this._json.message):null}}},function(e,t,r){"use strict";function n(e,t,r,n){var i=n?" !== ":" === ",a=n?" || ":" && ",o=n?"!":"",s=n?"":"!";switch(e){case"null":return t+i+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+a+"typeof "+t+i+'"object"'+a+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+a+s+"("+t+" % 1)"+a+t+i+t+(r?a+o+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(r?a+o+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){switch(e.length){case 1:return n(e[0],t,r,!0);default:var i="",o=a(e);for(var s in o.array&&o.object&&(i=o.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete o.null,delete o.array,delete o.object),o.number&&delete o.integer,o)i+=(i?" && ":"")+n(s,t,r,!0);return i}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var a=t[n];(i[a]||"array"===e&&"array"===a)&&(r[r.length]=a)}if(r.length)return r}else{if(i[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:a,getProperty:u,escapeQuotes:l,equal:r(61),ucs2length:r(134),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:c,getPathExpr:function(e,t,r,n){return h(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=c(r?"/"+d(t):u(t));return h(e,n)},getData:function(e,t,r){var n,i,a,o;if(""===e)return"rootData";if("/"==e[0]){if(!p.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,a="rootData"}else{if(!(o=e.match(f)))throw new Error("Invalid JSON-pointer: "+e);if(n=+o[1],"#"==(i=o[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(a="data"+(t-n||""),!i)return a}for(var s=a,l=i.split("/"),c=0;c<l.length;c++){var h=l[c];h&&(a+=u(m(h)),s+=" && "+a)}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var i=a(["string","number","integer","boolean","null"]);function a(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var o=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function u(e){return"number"==typeof e?"["+e+"]":o.test(e)?"."+e:"['"+l(e)+"']"}function l(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function c(e){return"'"+l(e)+"'"}var p=/^\/(?:[^~]|~0|~1)*$/,f=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function h(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},function(e,t,r){"use strict";var n=r(64),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=p;var a=Object.create(r(48));a.inherits=r(27);var o=r(113),s=r(117);a.inherits(p,o);for(var u=i(s.prototype),l=0;l<u.length;l++){var c=u[l];p.prototype[c]||(p.prototype[c]=s.prototype[c])}function p(e){if(!(this instanceof p))return new p(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t,r){"use strict";function n(e){return null==e}e.exports.isNothing=n,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:n(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},e.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},e.exports.extend=function(e,t){var r,n,i,a;if(t)for(r=0,n=(a=Object.keys(t)).length;r<n;r+=1)e[i=a[r]]=t[i];return e}},function(e,t,r){"use strict";var n=r(33),i=r(49),a=r(12);function o(e,t,r){var n=[];return e.include.forEach((function(e){r=o(e,t,r)})),e[t].forEach((function(e){r.forEach((function(t,r){t.tag===e.tag&&t.kind===e.kind&&n.push(r)})),r.push(e)})),r.filter((function(e,t){return-1===n.indexOf(t)}))}function s(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=o(this,"implicit",[]),this.compiledExplicit=o(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{}};function n(e){r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(this.compiledImplicit,this.compiledExplicit)}s.DEFAULT=null,s.create=function(){var e,t;switch(arguments.length){case 1:e=s.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(e=n.toArray(e),t=n.toArray(t),!e.every((function(e){return e instanceof s})))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every((function(e){return e instanceof a})))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:e,explicit:t})},e.exports=s},function(e,t,r){"use strict";function n(e){return null==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNothing=n,t.isObject=function(e){return"object"==typeof e&&null!==e},t.toArray=function(e){return Array.isArray(e)?e:n(e)?[]:[e]},t.extend=function(e,t){var r,n,i,a;if(t)for(r=0,n=(a=Object.keys(t)).length;r<n;r+=1)e[i=a[r]]=t[i];return e},t.repeat=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},t.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}},function(e,t,r){"use strict";var n=r(0),i=r.n(n),a=r(128),o={schemaID:"",show:{sidebar:!1,info:!0,servers:!0,operations:!0,messages:!0,schemas:!0,errors:!0},sidebar:{showOperations:"byOperationsTags"}};var s=function(e){void 0===e&&(e={});var t=e.onResize,r=Object(n.useRef)(void 0);r.current=t;var i=Object(n.useRef)(),a=Object(n.useState)({width:void 0,height:void 0}),o=a[0],s=a[1],u=Object(n.useRef)(!1);Object(n.useEffect)((function(){return function(){u.current=!0}}),[]);var l=Object(n.useRef)({width:void 0,height:void 0}),c=function(e,t){var r=Object(n.useRef)(null),i=Object(n.useCallback)((function(e){r.current=e,s()}),[]),a=Object(n.useRef)(null),o=Object(n.useRef)(),s=function(){var n=null;r.current?n=r.current:t&&(n=t instanceof HTMLElement?t:t.current),a.current!==n&&(o.current&&(o.current(),o.current=null),a.current=n,n&&(o.current=e(n)))};return Object(n.useEffect)((function(){s()}),[t]),i}((function(e){return i.current||(i.current=new ResizeObserver((function(e){if(Array.isArray(e)){var t=e[0],n=Math.round(t.contentRect.width),i=Math.round(t.contentRect.height);if(l.current.width!==n||l.current.height!==i){var a={width:n,height:i};r.current?r.current(a):(l.current.width=n,l.current.height=i,u.current||s(a))}}}))),i.current.observe(e),function(){i.current&&i.current.unobserve(e)}}),e.ref);return Object(n.useMemo)((function(){return{ref:c,width:o.width,height:o.height}}),[c,o?o.width:null,o?o.height:null])},u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},c=function(e){var t=e.chevronProps,r=e.children,n=l(e,["chevronProps","children"]);return i.a.createElement("button",u({},n,{className:"focus:outline-none ".concat(n.className)}),r,i.a.createElement("svg",u({version:"1.1",viewBox:"0 0 24 24",x:"0",xmlns:"http://www.w3.org/2000/svg",y:"0"},t,{className:"inline-block align-baseline cursor-pointer -mb-1 w-5 transform transition-transform duration-150 ease-linear ".concat((null==t?void 0:t.className)||"")}),i.a.createElement("polygon",{points:"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "})))},p=i.a.createContext(null);function f(){return Object(n.useContext)(p)}var h=i.a.createContext({setShowSidebar:function(e){return e}}),d=function(e){var t=e.config,r=Object(n.useState)(!1),a=r[0],o=r[1],s=(null==t?void 0:t.showOperations)||"byDefault",u=f(),l=u.info(),c=l.ext("x-logo"),p=u.hasComponents()&&u.components(),d=p&&p.messages(),v=p&&p.schemas(),b=m;"bySpecTags"===s?b=y:"byOperationsTags"===s&&(b=g);var x=d&&Object.keys(d).length>0&&i.a.createElement("li",{className:"mb-3 mt-9"},i.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#messages",onClick:function(){return o(!1)}},"Messages"),i.a.createElement("ul",{className:"text-sm mt-2"},Object.entries(d).map((function(e){var t=e[0],r=e[1];return i.a.createElement("li",{key:t},i.a.createElement("a",{className:"flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900",href:"#message-".concat(t),onClick:function(){return o(!1)}},i.a.createElement("div",{className:"break-all inline-block"},r.uid())))})))),E=v&&Object.keys(v).length>0&&i.a.createElement("li",{className:"mb-3 mt-9"},i.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#schemas",onClick:function(){return o(!1)}},"Schemas"),i.a.createElement("ul",{className:"text-sm mt-2"},Object.keys(v).map((function(e){return i.a.createElement("li",{key:e},i.a.createElement("a",{className:"flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900",href:"#schema-".concat(e),onClick:function(){return o(!1)}},i.a.createElement("div",{className:"break-all inline-block"},e)))}))));return i.a.createElement(h.Provider,{value:{setShowSidebar:o}},i.a.createElement("div",{className:"burger-menu rounded-full h-16 w-16 bg-white fixed bottom-16 right-8 flex items-center justify-center z-30 cursor-pointer shadow-md bg-teal-500",onClick:function(){return o((function(e){return!e}))},"data-lol":a},i.a.createElement("svg",{viewBox:"0 0 100 70",width:"40",height:"30",className:"fill-current text-gray-200"},i.a.createElement("rect",{width:"100",height:"10"}),i.a.createElement("rect",{y:"30",width:"100",height:"10"}),i.a.createElement("rect",{y:"60",width:"100",height:"10"}))),i.a.createElement("div",{className:"".concat(a?"block fixed w-full":"hidden"," sidebar relative w-64 max-h-screen h-full bg-gray-200 shadow z-20")},i.a.createElement("div",{className:"".concat(a?"w-full":""," block fixed max-h-screen h-full font-sans px-4 pt-8 pb-16 overflow-y-auto bg-gray-200")},i.a.createElement("div",{className:"sidebar--content"},i.a.createElement("div",null,c?i.a.createElement("img",{src:c,alt:"".concat(l.title()," logo, ").concat(l.version()," version")}):i.a.createElement("h1",{className:"text-2xl font-light"},l.title()," ",l.version())),i.a.createElement("ul",{className:"text-sm mt-10 relative"},i.a.createElement("li",{className:"mb-3"},i.a.createElement("a",{className:"text-gray-700 no-underline hover:text-gray-900",href:"#introduction",onClick:function(){return o(!1)}},"Introduction")),u.hasServers()&&i.a.createElement("li",{className:"mb-3"},i.a.createElement("a",{className:"text-gray-700 no-underline hover:text-gray-900",href:"#servers",onClick:function(){return o(!1)}},"Servers")),u.hasChannels()&&i.a.createElement(i.a.Fragment,null,i.a.createElement("li",{className:"mb-3 mt-9"},i.a.createElement("a",{className:"text-xs uppercase text-gray-700 mt-10 mb-4 font-thin hover:text-gray-900",href:"#operations",onClick:function(){return o(!1)}},"Operations"),i.a.createElement(b,null)),x,E))))))},m=function(){var e=f().channels(),t=[];return Object.entries(e).forEach((function(e){var r=e[0],n=e[1];n.hasPublish()&&t.push(i.a.createElement(b,{channelName:r,key:"pub-".concat(r)})),n.hasSubscribe()&&t.push(i.a.createElement(x,{channelName:r,key:"sub-".concat(r)}))})),i.a.createElement("ul",{className:"text-sm mt-2"},t)},y=function(){var e=f(),t=e.channels(),r=e.tags(),n=function(e){var r=[];return Object.entries(t).forEach((function(t){var n=t[0],o=t[1];o.hasPublish()&&a.a.containTags(o.publish(),e)&&r.push(i.a.createElement(b,{channelName:n,key:"pub-".concat(n)})),o.hasSubscribe()&&a.a.containTags(o.subscribe(),e)&&r.push(i.a.createElement(x,{channelName:n,key:"sub-".concat(n)}))})),r},o=[];return Object.entries(t).forEach((function(e){var t=e[0],n=e[1];!n.hasPublish()||n.publish().hasTags()&&a.a.containTags(n.publish(),r)||o.push(i.a.createElement(b,{channelName:t,key:"pub-".concat(t)})),!n.hasSubscribe()||n.subscribe().hasTags()&&a.a.containTags(n.subscribe(),r)||o.push(i.a.createElement(x,{channelName:t,key:"sub-".concat(t)}))})),i.a.createElement("div",null,i.a.createElement("ul",null,r&&r.map((function(e){return n(e).length>0&&i.a.createElement("li",{key:e.name()},i.a.createElement(v,{tagName:e.name()},n(e)))})),o.length>0&&i.a.createElement("li",null,i.a.createElement(v,{tagName:"Untagged"},o))))},g=function(){var e=f(),t=e.channels(),r=a.a.operationsTags(e),n=function(e){var r=[];return Object.entries(t).forEach((function(t){var n=t[0],o=t[1];o.hasPublish()&&a.a.containTags(o.publish(),e)&&r.push(i.a.createElement(b,{channelName:n,key:"pub-".concat(n)})),o.hasSubscribe()&&a.a.containTags(o.subscribe(),e)&&r.push(i.a.createElement(x,{channelName:n,key:"sub-".concat(n)}))})),r},o=[];return Object.entries(t).forEach((function(e){var t=e[0],n=e[1];!n.hasPublish()||n.publish().hasTags()&&a.a.containTags(n.publish(),r)||o.push(i.a.createElement(b,{channelName:t,key:"pub-".concat(t)})),!n.hasSubscribe()||n.subscribe().hasTags()&&a.a.containTags(n.subscribe(),r)||o.push(i.a.createElement(x,{channelName:t,key:"sub-".concat(t)}))})),i.a.createElement("div",null,i.a.createElement("ul",null,r&&r.map((function(e){return n(e).length>0&&i.a.createElement("li",{key:e.name()},i.a.createElement(v,{tagName:e.name()},n(e)))})),o.length>0&&i.a.createElement("li",null,i.a.createElement(v,{tagName:"Untagged"},o))))},v=function(e){var t=e.tagName,r=e.children,a=Object(n.useState)(!1),o=a[0],s=a[1];return i.a.createElement("div",null,i.a.createElement(c,{onClick:function(){return s((function(e){return!e}))},chevronProps:{className:o?"-rotate-180":"-rotate-90"}},i.a.createElement("span",{className:"text-sm inline-block mt-1 font-extralight"},t)),i.a.createElement("ul",{className:"".concat(o?"block":"hidden"," text-sm mt-2 font-light")},r))},b=function(e){var t=e.channelName,r=Object(n.useContext)(h).setShowSidebar;return i.a.createElement("li",null,i.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#operation-publish-".concat(t),onClick:function(){return r(!1)}},i.a.createElement("span",{className:"bg-blue-600 font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs",title:"Publish"},"Pub"),i.a.createElement("span",{className:"break-all inline-block"},t)))},x=function(e){var t=e.channelName,r=Object(n.useContext)(h).setShowSidebar;return i.a.createElement("li",null,i.a.createElement("a",{className:"flex no-underline text-gray-700 mb-2 hover:text-gray-900",href:"#operation-subscribe-".concat(t),onClick:function(){return r(!1)}},i.a.createElement("span",{className:"bg-green-600 font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs",title:"Subscribe"},"SUB"),i.a.createElement("span",{className:"break-all inline-block"},t)))},E=function(e){var t=e.href,r=e.title,n=e.className,a=e.children;return i.a.createElement("a",{href:t,title:r,className:n,target:"_blank",rel:"nofollow noopener noreferrer"},a)},w=r(53),D=r(54),A=r(15),S=r.n(A),k=r(55),C=r.n(k),P=r(56),T=r.n(P),j=r(57),F=r.n(j);S.a.registerLanguage("json",C.a),S.a.registerLanguage("yaml",T.a),S.a.registerLanguage("bash",F.a);var _={langPrefix:"hljs language-",highlight:function(e,t){if(!S.a.getLanguage(t))return e;try{return S.a.highlight(e,{language:t}).value}catch(t){return e}}};var O=function(e){var t,r=e.children;return r?"string"!=typeof r?i.a.createElement(i.a.Fragment,null,r):i.a.createElement("div",{className:"prose max-w-none text-sm",dangerouslySetInnerHTML:{__html:Object(w.sanitize)((t=r,Object(D.marked)(t,_)))}}):null},$=function(e){var t=e.tag,r="#".concat(t.name()),n=t.description()||"",a=t.externalDocs(),o=i.a.createElement("div",{title:n,className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1"},i.a.createElement("span",{className:a?"underline":""},r));return a?i.a.createElement(E,{href:a.url(),title:n},o):o},I=function(e){var t=e.tags;return t&&t.length?i.a.createElement("ul",{className:"flex flex-wrap leading-normal"},t.map((function(e){return i.a.createElement("li",{className:"inline-block mt-2 mr-2",key:e.name()},i.a.createElement($,{tag:e}))}))):null},N=r(1),R=function(){var e=f(),t=e.info();if(!t)return null;var r=e.id(),n=e.externalDocs(),a=t.license(),o=t.termsOfService(),s=e.defaultContentType(),u=t.contact(),l=a||o||s||u||n;return i.a.createElement("div",{className:"panel-item"},i.a.createElement("div",{className:"panel-item--center px-8 text-left",id:"introduction"},i.a.createElement("div",{className:"text-4xl"},t.title()," ",t.version()),l&&i.a.createElement("ul",{className:"flex flex-wrap mt-2 leading-normal"},a&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},a.url()?i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:a.url()},i.a.createElement("span",null,a.name())):i.a.createElement("span",{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},a.name())),o&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:o},i.a.createElement("span",null,N.h))),s&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"".concat(N.a,"/").concat(s)},i.a.createElement("span",null,s))),n&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:n.url()},i.a.createElement("span",null,N.c))),u&&i.a.createElement(i.a.Fragment,null,u.url()&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(E,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:u.url()},i.a.createElement("span",null,u.name()||N.i))),u.email()&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement(E,{className:"border border-solid border-purple-300 hover:bg-purple-300 hover:text-purple-600 text-purple-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"mailto:".concat(u.email())},i.a.createElement("span",null,u.email())))),r&&i.a.createElement("li",{className:"inline-block mt-2 mr-2"},i.a.createElement("span",{className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs uppercase rounded px-3 py-1"},"ID: ",r))),t.hasDescription()&&i.a.createElement("div",{className:"mt-4"},i.a.createElement(O,null,t.description())),e.hasTags()&&i.a.createElement("div",{className:"mt-4"},i.a.createElement(I,{tags:e.tags()}))),i.a.createElement("div",{className:"panel-item--right"}))},M=function(){function e(){}return e.securityType=function(e){switch(e){case"apiKey":return"API key";case"oauth2":return"OAuth2";case"openIdConnect":return"Open ID";case"http":return"HTTP";case"userPassword":return"User/Password";case"X509":return"X509:";case"symmetricEncryption":return"Symmetric Encription";case"asymmetricEncryption":return"Asymmetric Encription";case"httpApiKey":return"HTTP API key";case"scramSha256":return"ScramSha256";case"scramSha512":return"ScramSha512";case"gssapi":return"GSSAPI";default:return"API key"}},e.flowName=function(e){switch(e){case"implicit":return"Implicit";case"password":return"Password";case"clientCredentials":return"Client credentials";case"authorizationCode":return"Authorization Code";default:return"Implicit"}},e.getKafkaSecurity=function(e,t){var r,n;if(r="kafka"===e?t?"SASL_PLAINTEXT":"PLAINTEXT":t?"SASL_SSL":"SSL",t)switch(t.type()){case"plain":n="PLAIN";break;case"scramSha256":n="SCRAM-SHA-256";break;case"scramSha512":n="SCRAM-SHA-512";break;case"oauth2":n="OAUTHBEARER";break;case"gssapi":n="GSSAPI";break;case"X509":r="SSL"}return{securityProtocol:r,saslMechanism:n}},e}(),B=function(e){var t,r=e.serverRequirements,n=void 0===r?[]:r,a=e.protocol,o=void 0===a?"":a,s=f(),u=s.hasComponents()&&s.components().securitySchemes();if(n&&n.length&&u&&Object.keys(u).length){var l=n.map((function(e){var t=u[Object.keys(e.json())[0]];return t?i.a.createElement(U,{protocol:o,securitySchema:t,key:t.type()}):null})).filter(Boolean);t=i.a.createElement("ul",null,l.map((function(e,t){return i.a.createElement("li",{className:"mt-2",key:t},e)})))}else"kafka"!==o&&"kafka-secure"!==o||(t=i.a.createElement(U,{protocol:o,securitySchema:null}));return t?i.a.createElement("div",{className:"text-sm mt-4"},i.a.createElement("h5",{className:"text-gray-700 text-base"},"Security:"),t):null};var L,U=function(e){var t,r=e.securitySchema,n=e.protocol,a=function(e){var t=[];return e&&(e.name()&&t.push(i.a.createElement("span",null,"Name: ",e.name())),e.in()&&t.push(i.a.createElement("span",null,"In: ",e.in())),e.scheme()&&t.push(i.a.createElement("span",null,"Scheme: ",e.scheme())),e.bearerFormat()&&t.push(i.a.createElement("span",null,"Bearer format: ",e.bearerFormat())),e.openIdConnectUrl()&&t.push(i.a.createElement(E,{href:e.openIdConnectUrl(),className:"underline"},"Connect URL"))),t}(r);if(["kafka","kafka-secure"].includes(n)){var o=M.getKafkaSecurity(n,r),s=o.securityProtocol,u=o.saslMechanism;t=i.a.createElement("div",{className:"px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded"},s&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"security.protocol:"),i.a.createElement("span",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1"},s)),u&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"sasl.mechanism:"),i.a.createElement("span",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1"},u)))}var l=r&&r.flows(),c=l&&Object.entries(l).map((function(e){var t=e[0],r=e[1],n=r.authorizationUrl(),a=r.tokenUrl(),o=r.refreshUrl(),s=r.scopes();return i.a.createElement("div",{className:"px-4 py-2 ml-2 mb-2 border border-gray-400 bg-gray-100 rounded",key:t},i.a.createElement("div",null,i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Flow:"),i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},M.flowName(t))),n&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Auth URL:"),i.a.createElement(E,{href:n,className:"underline"},n)),a&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Token URL:"),i.a.createElement(E,{href:a,className:"underline"},a)),o&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Refresh URL:"),i.a.createElement(E,{href:o,className:"underline"},o)),s&&i.a.createElement("div",{className:"mt-1"},i.a.createElement("span",{className:"text-xs font-bold text-gray-600 mt-1 mr-1 uppercase"},"Scopes:"),i.a.createElement("ul",{className:"inline-block"},s&&Object.entries(s).map((function(e){var t=e[0],r=e[1];return i.a.createElement("li",{className:"inline-block font-bold no-underline bg-indigo-400 text-white text-xs rounded py-0 px-1 ml-1",title:r,key:t},t)})))))}));return i.a.createElement("div",null,r&&a&&i.a.createElement("div",null,i.a.createElement("span",null,M.securityType(r.type()),a.length>0&&i.a.createElement("ul",{className:"inline-block ml-2"},a.map((function(e,t){return i.a.createElement("li",{className:"inline-block font-bold no-underline bg-blue-400 text-white text-xs uppercase rounded px-2 py-0 ml-1",key:t},e)}))))),r&&r.hasDescription()&&i.a.createElement("div",null,i.a.createElement(O,null,r.description())),c&&c.length>0&&i.a.createElement("ul",{className:"my-2"},i.a.createElement("li",null,c)),t&&i.a.createElement("div",null,t))},z=r(10),q=r.n(z);!function(e){e.ANY="any",e.RESTRICTED_ANY="restricted any",e.NEVER="never",e.UNKNOWN="unknown"}(L||(L={}));var H=["string","number","integer","boolean","array","object","null"],V=Object.keys({maxLength:"string",minLength:"string",pattern:"string",contentMediaType:"string",contentEncoding:"string",multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",contains:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",properties:"object",patternProperties:"object",propertyNames:"object",dependencies:"object",additionalProperties:"object"}),J=function(){function e(){}return e.toSchemaType=function(e){var t=this;if(!e||"function"!=typeof e.json)return L.UNKNOWN;if(e.isBooleanSchema())return!0===e.json()?L.ANY:L.NEVER;if(0===Object.keys(e.json()).length)return L.ANY;var r=e.not();if(r&&this.inferType(r)===L.ANY)return L.NEVER;var n=this.inferType(e);if(Array.isArray(n))return n.map((function(r){return t.toType(r,e)})).join(" | ");n=this.toType(n,e);var i=this.toCombinedType(e);return n&&i?"".concat(n," ").concat(i):i||n},e.prettifyValue=function(e){var t=typeof e;return"string"===t?'"'.concat(e,'"'):"number"===t||"bigint"===t||"boolean"===t?e:Array.isArray(e)?"[".concat(e.toString(),"]"):JSON.stringify(e)},e.humanizeConstraints=function(e){var t=[],r=this.humanizeNumberRangeConstraint(e.minimum(),e.exclusiveMinimum(),e.maximum(),e.exclusiveMaximum());void 0!==r&&t.push(r);var n=this.humanizeMultipleOfConstraint(e.multipleOf());void 0!==n&&t.push(n);var i=this.humanizeRangeConstraint("characters",e.minLength(),e.maxLength());void 0!==i&&t.push(i);var a=e.uniqueItems(),o=this.humanizeRangeConstraint(a?"unique items":"items",e.minItems(),e.maxItems());void 0!==o&&t.push(o);var s=this.humanizeRangeConstraint("properties",e.minProperties(),e.maxProperties());return void 0!==s&&t.push(s),t},e.isExpandable=function(e){var t=this.inferType(e);if((t=Array.isArray(t)?t:[t]).includes("object")||t.includes("array"))return!0;if(e.oneOf()||e.anyOf()||e.allOf()||Object.keys(e.properties()).length||e.items()||e.not()||e.if()||e.then()||e.else())return!0;var r=this.getCustomExtensions(e);return!(!r||!Object.keys(r).length)},e.serverVariablesToSchema=function(e){var t;if(e&&Object.keys(e).length){var r=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var r=t[0],n=t[1];return e[r]=Object.assign({},n.json()),e[r].type="string",e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new q.a(r)}},e.parametersToSchema=function(e){var t,r=this;if(e&&Object.keys(e).length){var n=((t={type:"object",properties:Object.entries(e).reduce((function(e,t){var n=t[0],i=t[1];return e[n]=Object.assign({},i.schema().json()),e[n].description=i.description()||e[n].description,e[n][r.extParameterLocation]=i.location(),e}),{}),required:Object.keys(e)})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new q.a(n)}},e.jsonToSchema=function(e){var t=this.jsonFieldToSchema(e);return new q.a(t)},e.getCustomExtensions=function(e){if(e&&"function"==typeof e.extensions)return Object.entries(e.extensions()||{}).reduce((function(e,t){var r=t[0],n=t[1];return r.startsWith("x-parser-")||r.startsWith("x-schema-private-")||(e[r]=n),e}),{})},e.getDependentRequired=function(e,t){var r=[],n=t.dependencies();if(n){for(var i=0,a=Object.entries(n);i<a.length;i++){var o=a[i],s=o[0],u=o[1];Array.isArray(u)&&u.includes(e)&&r.push(s)}return r.length?r:void 0}},e.getDependentSchemas=function(e){var t,r=e.dependencies();if(r){for(var n={},i=0,a=Object.entries(r);i<a.length;i++){var o=a[i],s=o[0],u=o[1];"object"!=typeof u||Array.isArray(u)||(n[s]=u)}if(Object.keys(n).length){var l=((t={type:"object",properties:Object.entries(n).reduce((function(e,t){var r=t[0],n=t[1];return e[r]=Object.assign({},n.json()),e}),{})})[this.extRenderType]=!1,t[this.extRenderAdditionalInfo]=!1,t);return new q.a(l)}}},e.toType=function(e,t){if(t.isCircular())return e;if("array"===e){var r=t.items();return Array.isArray(r)?this.toItemsType(r,t):"array<".concat(r?this.toSchemaType(r)||L.UNKNOWN:L.ANY,">")}return e},e.toItemsType=function(e,t){var r=this,n=e.map((function(e){return r.toSchemaType(e)})).join(", "),i=t.additionalItems();if(void 0===i||i.json()){var a=void 0===i||!0===i.json()?L.ANY:this.toSchemaType(i);return"tuple<".concat(n||L.UNKNOWN,", ...optional<").concat(a,">>")}return"tuple<".concat(n||L.UNKNOWN,">")},e.toCombinedType=function(e){return e.oneOf()?"oneOf":e.anyOf()?"anyOf":e.allOf()?"allOf":void 0},e.inferType=function(e){var t=e.type();if(void 0!==t)return Array.isArray(t)?(t.includes("integer")&&t.includes("number")&&(t=t.filter((function(e){return"integer"!==e}))),1===t.length?t[0]:t):t;var r=e.const();if(void 0!==r)return typeof r;var n=e.enum();if(Array.isArray(n)&&n.length){var i=Array.from(new Set(n.map((function(e){return typeof e}))));return 1===i.length?i[0]:i}var a=Object.keys(e.json()||{})||[];return!0===V.some((function(e){return a.includes(e)}))?L.RESTRICTED_ANY:this.toCombinedType(e)?"":L.ANY},e.humanizeNumberRangeConstraint=function(e,t,r,n){var i,a=void 0!==t,o=void 0!==e||a,s=void 0!==n,u=void 0!==r||s;return o&&u?(i=a?"( ":"[ ",i+=a?t:e,i+=" .. ",i+=s?n:r,i+=s?" )":" ]"):o?(i=a?"> ":">= ",i+=a?t:e):u&&(i=s?"< ":"<= ",i+=s?n:r),i},e.humanizeMultipleOfConstraint=function(e){if(void 0!==e){var t=e.toString(10);return/^0\.0*1$/.test(t)?"decimal places <= ".concat(t.split(".")[1].length):"multiple of ".concat(t)}},e.humanizeRangeConstraint=function(e,t,r){var n;return void 0!==t&&void 0!==r?n=t===r?"".concat(t," ").concat(e):"[ ".concat(t," .. ").concat(r," ] ").concat(e):void 0!==r?n="<= ".concat(r," ").concat(e):void 0!==t&&(n=1===t?"non-empty":">= ".concat(t," ").concat(e)),n},e.jsonFieldToSchema=function(e){var t,r,n,i,a=this;return null==e?((t={type:"string",const:""})[this.extRawValue]=!0,t):"object"!=typeof e?((r={type:"string",const:"function"==typeof e.toString?e.toString():e})[this.extRawValue]=!0,r):this.isJSONSchema(e)?e:Array.isArray(e)?((n={type:"array",items:e.map((function(e){return a.jsonFieldToSchema(e)}))})[this.extRenderType]=!1,n[this.extRenderAdditionalInfo]=!1,n):((i={type:"object",properties:Object.entries(e).reduce((function(e,t){var r=t[0],n=t[1];return e[r]=a.jsonFieldToSchema(n),e}),{})})[this.extRenderType]=!1,i[this.extRenderAdditionalInfo]=!1,i)},e.isJSONSchema=function(e){return!(!e||"object"!=typeof e||!(H.includes(e.type)||Array.isArray(e.type)&&e.type.some((function(e){return!H.includes(e)}))))},e.extRenderType="x-schema-private-render-type",e.extRenderAdditionalInfo="x-schema-private-render-additional-info",e.extRawValue="x-schema-private-raw-value",e.extParameterLocation="x-schema-private-parameter-location",e}(),K=function(e){var t=e.name,r=void 0===t?"Extensions":t,n=e.item,a=J.getCustomExtensions(n);if(!a||!Object.keys(a).length)return null;var o=J.jsonToSchema(a);return o&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(W,{schemaName:r,schema:o,onlyTitle:!0}))},X=i.a.createContext({reverse:!1}),W=function(e){var t=e.schemaName,r=e.schema,a=e.required,o=void 0!==a&&a,s=e.isPatternProperty,u=void 0!==s&&s,l=e.isProperty,p=void 0!==l&&l,f=e.isCircular,h=void 0!==f&&f,d=e.dependentRequired,m=e.expanded,y=void 0!==m&&m,g=e.onlyTitle,v=void 0!==g&&g,b=Object(n.useContext)(X).reverse,x=Object(n.useState)(y),w=x[0],D=x[1];if(!r||"string"==typeof t&&((null==t?void 0:t.startsWith("x-parser-"))||(null==t?void 0:t.startsWith("x-schema-private-"))))return null;var A=J.getDependentSchemas(r),S=J.humanizeConstraints(r),k=r.externalDocs(),C=!1!==r.ext(J.extRenderType),P=!0===r.ext(J.extRawValue),T=r.ext(J.extParameterLocation),j=J.isExpandable(r)||A,F=J.toSchemaType(r);h=h||r.isCircular()||r.ext("x-parser-circular")||!1;var _=r.uid(),$=r.items();$&&!Array.isArray($)?(h=h||$.isCircular()||$.ext("x-parser-circular")||!1,_=$.uid(),h&&"function"==typeof $.circularSchema&&(F=J.toSchemaType($.circularSchema()))):h&&"function"==typeof r.circularSchema&&(F=J.toSchemaType(r.circularSchema()));var I=p?"italic":"",N="string"==typeof t?i.a.createElement("span",{className:"break-words text-sm ".concat(I)},t):t;return i.a.createElement(X.Provider,{value:{reverse:!b}},i.a.createElement("div",null,i.a.createElement("div",{className:"flex py-2"},i.a.createElement("div",{className:"".concat(v?"":"min-w-1/4"," mr-2")},j&&!h?i.a.createElement(c,{onClick:function(){return D((function(e){return!e}))},chevronProps:{className:w?"-rotate-180":"-rotate-90"}},N):i.a.createElement("span",{className:"break-words text-sm ".concat(p?"italic":"")},t),u&&i.a.createElement("div",{className:"text-gray-500 text-xs italic"},"(pattern property)"),o&&i.a.createElement("div",{className:"text-red-600 text-xs"},"required"),d&&i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"text-gray-500 text-xs"},"required when defined:"),i.a.createElement("div",{className:"text-red-600 text-xs"},d.join(", "))),r.deprecated()&&i.a.createElement("div",{className:"text-red-600 text-xs"},"deprecated"),r.writeOnly()&&i.a.createElement("div",{className:"text-gray-500 text-xs"},"write-only"),r.readOnly()&&i.a.createElement("div",{className:"text-gray-500 text-xs"},"read-only")),P?i.a.createElement("div",null,i.a.createElement("div",{className:"text-sm"},r.const())):i.a.createElement("div",null,i.a.createElement("div",null,C&&i.a.createElement("div",{className:"capitalize text-sm text-teal-500 font-bold inline-block mr-2"},h?"".concat(F," [CIRCULAR]"):F),i.a.createElement("div",{className:"inline-block"},r.format()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"format: ",r.format()),void 0!==r.pattern()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"must match: ",r.pattern()),void 0!==r.contentMediaType()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"media type: ",r.contentMediaType()),void 0!==r.contentEncoding()&&i.a.createElement("span",{className:"bg-yellow-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs"},"encoding: ",r.contentEncoding()),!!S.length&&S.map((function(e){return i.a.createElement("span",{className:"bg-purple-600 font-bold no-underline text-white rounded lowercase mr-2 p-1 text-xs",key:e},e)})),_&&!_.startsWith("<anonymous-")&&i.a.createElement("span",{className:"border text-orange-600 rounded mr-2 p-1 text-xs"},"uid: ",_)),r.hasDescription()&&i.a.createElement("div",null,i.a.createElement(O,null,r.description())),void 0!==r.default()&&i.a.createElement("div",{className:"text-xs"},"Default value:",i.a.createElement("span",{className:"border inline-block text-orange-600 rounded ml-1 py-0 px-2"},J.prettifyValue(r.default()))),void 0!==r.const()&&i.a.createElement("div",{className:"text-xs"},"Const:",i.a.createElement("span",{className:"border inline-block text-orange-600 rounded ml-1 py-0 px-2"},J.prettifyValue(r.const()))),r.enum()&&i.a.createElement("ul",{className:"text-xs"},"Allowed values:"," ",r.enum().map((function(e,t){return i.a.createElement("li",{key:t,className:"border inline-block text-orange-600 rounded ml-1 py-0 px-2"},i.a.createElement("span",null,J.prettifyValue(e)))}))),T&&i.a.createElement("div",{className:"text-xs"},"Parameter location:"," ",i.a.createElement("span",{className:"border text-orange-600 rounded mr-2 p-1 text-xs"},T)),k&&i.a.createElement("span",{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-2 py-0"},i.a.createElement(E,{href:k.url(),title:k.description()||""},"Documentation")),r.examples()&&i.a.createElement("ul",{className:"text-xs"},"Examples values:"," ",r.examples().map((function(e,t){return i.a.createElement("li",{key:t,className:"border inline-block text-orange-600 rounded ml-1 py-0 px-2 break-all"},i.a.createElement("span",null,J.prettifyValue(e)))})))))),h||!j?null:i.a.createElement("div",{className:"rounded p-4 py-2 border bg-gray-100 ".concat(b?"bg-gray-200":""," ").concat(w?"block":"hidden")},i.a.createElement(Y,{schema:r}),i.a.createElement(Q,{schema:r}),r.oneOf()&&r.oneOf().map((function(e,t){return i.a.createElement(W,{key:t,schema:e,schemaName:0===t?"Adheres to:":"Or to:"})})),r.anyOf()&&r.anyOf().map((function(e,t){return i.a.createElement(W,{key:t,schema:e,schemaName:0===t?"Can adhere to:":"Or to:"})})),r.allOf()&&r.allOf().map((function(e,t){return i.a.createElement(W,{key:t,schema:e,schemaName:0===t?"Consists of:":"And with:"})})),r.not()&&i.a.createElement(W,{schema:r.not(),schemaName:"Cannot adhere to:"}),r.propertyNames()&&i.a.createElement(W,{schema:r.propertyNames(),schemaName:"Property names must adhere to:"}),r.contains()&&i.a.createElement(W,{schema:r.contains(),schemaName:"Array must contain at least one of:"}),r.if()&&i.a.createElement(W,{schema:r.if(),schemaName:"If schema adheres to:"}),r.then()&&i.a.createElement(W,{schema:r.then(),schemaName:"Then must adhere to:"}),r.else()&&i.a.createElement(W,{schema:r.else(),schemaName:"Otherwise:"}),A&&i.a.createElement(W,{schema:A,schemaName:"Dependent schemas:"}),i.a.createElement(K,{item:r}),i.a.createElement(G,{schema:r}),i.a.createElement(Z,{schema:r}))))},Y=function(e){var t=e.schema,r=t.properties()||{};if(!Object.keys(r))return null;var n=t.required()||[],a=t.patternProperties(),o=t.ext("x-parser-circular-props")||[];return i.a.createElement(i.a.Fragment,null,Object.entries(r).map((function(e){var r=e[0],a=e[1];return i.a.createElement(W,{schema:a,schemaName:r,required:n.includes(r),isProperty:!0,isCircular:o.includes(r),dependentRequired:J.getDependentRequired(r,t),key:r})})),Object.entries(a).map((function(e){var t=e[0],r=e[1];return i.a.createElement(W,{schema:r,schemaName:t,isPatternProperty:!0,isProperty:!0,isCircular:o.includes(t),key:t})})))},G=function(e){var t=e.schema;if(!1===t.ext(J.extRenderAdditionalInfo))return null;var r=t.type();if(!(r=Array.isArray(r)?r:[r]).includes("object"))return null;var n=t.additionalProperties();return!0===n||void 0===n?i.a.createElement("p",{className:"mt-2 text-xs text-gray-700"},"Additional properties are allowed."):!1===n?i.a.createElement("p",{className:"mt-2 text-xs text-gray-700"},"Additional properties are ",i.a.createElement("strong",null,"NOT")," allowed."):i.a.createElement(W,{schemaName:"Additional properties:",schema:n})},Q=function(e){var t=e.schema,r=t.type();if(!(r=Array.isArray(r)?r:[r]).includes("array"))return null;var n=t.items();return n&&!Array.isArray(n)&&Object.keys(n.properties()||{}).length?i.a.createElement(Y,{schema:n}):Array.isArray(n)?i.a.createElement(i.a.Fragment,null,n.map((function(e,t){return i.a.createElement(W,{schema:e,schemaName:"".concat(t+1," item:"),key:t})}))):i.a.createElement(W,{schema:n,schemaName:"Items:"})},Z=function(e){var t=e.schema;if(!1===t.ext(J.extRenderAdditionalInfo))return null;var r=t.type();if(!(r=Array.isArray(r)?r:[r]).includes("array"))return null;if(!Array.isArray(t.items()))return null;var n=t.additionalItems();return!0===n||void 0===n?i.a.createElement("p",{className:"mt-2 text-xs text-gray-700"},"Additional items are allowed."):!1===n?i.a.createElement("p",{className:"mt-2 text-xs text-gray-700"},"Additional items are ",i.a.createElement("strong",null,"NOT")," allowed."):i.a.createElement(W,{schemaName:"Additional items:",schema:n})},ee=function(e){var t=e.name,r=void 0===t?"Binding specific information":t,n=e.bindings;if(!n||!Object.keys(n).length)return null;var a=Object.entries(n).map((function(e){var t=e[0],n=e[1],a=J.jsonToSchema(n),o=i.a.createElement("div",{className:"inline-block text-sm"},i.a.createElement("span",null,r),i.a.createElement("span",{className:"bg-teal-500 font-bold no-underline text-white uppercase rounded mx-2 px-2 py-1 text-xs"},t));return a&&i.a.createElement(W,{schemaName:o,schema:a,key:t,onlyTitle:!0})}));return i.a.createElement(i.a.Fragment,null,a)},te=Object(n.createContext)({});function re(){return Object(n.useContext)(te)}var ne=function(){function e(){}return e.getIdentifier=function(e,t){var r=null==t?void 0:t.schemaID;return r?"".concat(r,"-").concat(e):e},e}(),ie=function(e){var t=e.serverName,r=e.server,n=re();if(!r)return null;var a=J.serverVariablesToSchema(r.variables()),o=r.protocolVersion(),s=r.security();return i.a.createElement("div",{className:"panel-item"},i.a.createElement("div",{className:"panel-item--center px-8"},i.a.createElement("div",{className:"shadow rounded bg-gray-200 p-4 border bg-gray-100"},i.a.createElement("div",null,i.a.createElement("span",{className:"font-mono text-base"},r.url()),i.a.createElement("span",{className:"bg-teal-500 font-bold no-underline text-white uppercase rounded mx-2 px-2 py-1 text-sm"},o?"".concat(r.protocol()," ").concat(o):r.protocol()),i.a.createElement("span",{className:"bg-blue-500 font-bold no-underline text-white uppercase rounded px-2 py-1 text-sm"},t)),r.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(O,null,r.description())),a&&i.a.createElement("div",{className:"mt-2",id:"".concat(ne.getIdentifier("server-".concat(t,"-url-variables"),n))},i.a.createElement(W,{schemaName:"URL Variables",schema:a,expanded:!0})),i.a.createElement("div",{id:"".concat(ne.getIdentifier("server-".concat(t,"-security"),n))},i.a.createElement(B,{protocol:r.protocol(),serverRequirements:s})),r.hasBindings()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(ee,{name:"Server specific information",bindings:r.bindings()})))),i.a.createElement("div",{className:"panel-item--right"}))},ae=function(){var e=f().servers(),t=re();return Object.keys(e).length?i.a.createElement("section",{id:"".concat(ne.getIdentifier("servers",t)),className:"mt-16"},i.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},N.g),i.a.createElement("ul",null,Object.entries(e).map((function(e){var r=e[0],n=e[1];return i.a.createElement("li",{className:"mb-4",key:r,id:"".concat(ne.getIdentifier("server-".concat(r),t))},i.a.createElement(ie,{serverName:r,server:n,key:r}))})))):null},oe=function(e){var t=e.snippet;return"object"==typeof t&&(t="```json\n"+JSON.stringify(t,void 0,2)+"\n```"),i.a.createElement(O,null,t)};function se(e){return e<10?"0"+e:e}function ue(e,t){return t>e.length?e.repeat(Math.trunc(t/e.length)+1).substring(0,t):e}function le(...e){const t=e=>e&&"object"==typeof e;return e.reduce((e,r)=>(Object.keys(r).forEach(n=>{const i=e[n],a=r[n];t(i)&&t(a)?e[n]=le(i,a):e[n]=a}),e),Array.isArray(e[e.length-1])?[]:{})}function ce(e){return{value:"object"===e?{}:"array"===e?[]:void 0}}function pe(e,t){t&&e.pop()}const fe={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function he(e){if(void 0!==e.type)return Array.isArray(e.type)?0===e.type.length?null:e.type[0]:e.type;const t=Object.keys(fe);for(var r=0;r<t.length;r++){let n=t[r],i=fe[n];if(void 0!==e[n])return i}return null}var de=r(58),me=r.n(de);let ye={},ge=[];function ve(e){let t;return void 0!==e.const?t=e.const:void 0!==e.examples&&e.examples.length?t=e.examples[0]:void 0!==e.enum&&e.enum.length?t=e.enum[0]:void 0!==e.default&&(t=e.default),t}function be(e){const t=ve(e);if(void 0!==t)return{value:t,readOnly:e.readOnly,writeOnly:e.writeOnly,type:null}}function xe(e,t,r,n){if(n){if(ge.includes(e))return ce(he(e));ge.push(e)}if(n&&n.depth>t.maxSampleDepth)return pe(ge,n),ce(he(e));if(e.$ref){if(!r)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let i=decodeURIComponent(e.$ref);i.startsWith("#")&&(i=i.substring(1));const a=me.a.get(r,i);let o;if(!0!==ye[i])ye[i]=!0,o=xe(a,t,r,n),ye[i]=!1;else{o=ce(he(a))}return pe(ge,n),o}if(void 0!==e.example)return pe(ge,n),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(void 0!==e.allOf)return pe(ge,n),be(e)||function(e,t,r,n,i){let a=xe(e,r,n);const o=[];for(let e of t){const{type:t,readOnly:s,writeOnly:u,value:l}=xe({type:a.type,...e},r,n,i);a.type&&t&&t!==a.type&&(console.warn("allOf: schemas with different types can't be merged"),a.type=t),a.type=a.type||t,a.readOnly=a.readOnly||s,a.writeOnly=a.writeOnly||u,null!=l&&o.push(l)}if("object"===a.type)return a.value=le(a.value||{},...o.filter(e=>"object"==typeof e)),a;{"array"===a.type&&(r.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const e=o[o.length-1];return a.value=null!=e?e:a.value,a}}({...e,allOf:void 0},e.allOf,t,r,n);if(e.oneOf&&e.oneOf.length){e.anyOf&&(t.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),pe(ge,n);const i=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]);return be(e)||xe(i,t,r,n)}if(e.anyOf&&e.anyOf.length)return pe(ge,n),be(e)||xe(e.anyOf[0],t,r,n);if(e.if&&e.then)return pe(ge,n),be(e)||xe(le(e.if,e.then),t,r,n);let i=ve(e),a=null;if(void 0===i){i=null,a=e.type,Array.isArray(a)&&e.type.length>0&&(a=e.type[0]),a||(a=he(e));let o=Se[a];o&&(i=o(e,t,r,n))}return pe(ge,n),{value:i,readOnly:e.readOnly,writeOnly:e.writeOnly,type:a}}function Ee(e){let t=0;if("boolean"==typeof e.exclusiveMinimum||"boolean"==typeof e.exclusiveMaximum){if(e.maximum&&e.minimum)return t=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&t>=e.maximum||!e.exclusiveMaximum&&t>e.maximum)&&(t=(e.maximum+e.minimum)/2),t;if(e.minimum)return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(e.maximum)return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(e.minimum)return e.minimum;e.exclusiveMinimum?(t=Math.floor(e.exclusiveMinimum)+1,t===e.exclusiveMaximum&&(t=(t+Math.floor(e.exclusiveMaximum)-1)/2)):e.exclusiveMaximum?t=Math.floor(e.exclusiveMaximum)-1:e.maximum&&(t=e.maximum)}return t}function we({min:e,max:t,omitTime:r,omitDate:n}){let i=function(e,t,r,n){var i=r?"":e.getUTCFullYear()+"-"+se(e.getUTCMonth()+1)+"-"+se(e.getUTCDate());return t||(i+="T"+se(e.getUTCHours())+":"+se(e.getUTCMinutes())+":"+se(e.getUTCSeconds())+(n?"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5):"")+"Z"),i}(new Date("2019-08-24T14:15:22.123Z"),r,n,!1);return i.length<e&&console.warn(`Using minLength = ${e} is incorrect with format "date-time"`),t&&i.length>t&&console.warn(`Using maxLength = ${t} is incorrect with format "date-time"`),i}function De(e,t){let r=ue("string",e);return t&&r.length>t&&(r=r.substring(0,t)),r}const Ae={email:function(){return"user@example.com"},"idn-email":function(){return"пошта@укр.нет"},password:function(e,t){let r="pa$$word";return e>r.length&&(r+="_",r+=ue("qwerty!@#$%^123456",e-r.length).substring(0,e-r.length)),r},"date-time":function(e,t){return we({min:e,max:t,omitTime:!1,omitDate:!1})},date:function(e,t){return we({min:e,max:t,omitTime:!0,omitDate:!1})},time:function(e,t){return we({min:e,max:t,omitTime:!1,omitDate:!0}).slice(1)},ipv4:function(){return"192.168.0.1"},ipv6:function(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"},hostname:function(){return"example.com"},"idn-hostname":function(){return"приклад.укр"},iri:function(){return"http://example.com"},"iri-reference":function(){return"../словник"},uri:function(){return"http://example.com"},"uri-reference":function(){return"../dictionary"},"uri-template":function(){return"http://example.com/{endpoint}"},uuid:function(e,t,r){return s=function(e){var t=0;if(0==e.length)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t&=t}return t}(r||"id"),n=s,i=s,a=s,o=s,u=function(){var e=(n|=0)-((i|=0)<<27|i>>>5)|0;return n=i^((a|=0)<<17|a>>>15),i=a+(o|=0)|0,a=o+e|0,((o=n+e|0)>>>0)/4294967296},"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{var t=16*u()%16|0;return("x"==e?t:3&t|8).toString(16)});var n,i,a,o,s,u},default:De,"json-pointer":function(){return"/json/pointer"},"relative-json-pointer":function(){return"1/relative/json/pointer"},regex:function(){return"/regex/"}};var Se={};const ke={skipReadOnly:!1,maxSampleDepth:15};function Ce(e,t,r){let n=Object.assign({},ke,t);return ye={},ge=[],xe(e,n,r).value}function Pe(e,t){Se[e]=t}Pe("array",(function(e,t={},r,n){const i=n&&n.depth||1;let a=Math.min(null!=e.maxItems?e.maxItems:1/0,e.minItems||1);const o=e.items||e.contains;Array.isArray(o)&&(a=Math.max(a,o.length));let s=[];if(!o)return s;for(let n=0;n<a;n++){let a=(u=n,Array.isArray(e.items)?o[u]||{}:o||{}),{value:l}=xe(a,t,r,{depth:i+1});s.push(l)}var u;return s})),Pe("boolean",(function(e){return!0})),Pe("integer",Ee),Pe("number",Ee),Pe("object",(function(e,t={},r,n){let i={};const a=n&&n.depth||1;if(e&&"object"==typeof e.properties){let n=(Array.isArray(e.required)?e.required:[]).reduce((e,t)=>(e[t]=!0,e),{});Object.keys(e.properties).forEach(o=>{if(t.skipNonRequired&&!n.hasOwnProperty(o))return;const s=xe(e.properties[o],t,r,{propertyName:o,depth:a+1});t.skipReadOnly&&s.readOnly||t.skipWriteOnly&&s.writeOnly||(i[o]=s.value)})}return e&&"object"==typeof e.additionalProperties&&(i.property1=xe(e.additionalProperties,t,r,{depth:a+1}).value,i.property2=xe(e.additionalProperties,t,r,{depth:a+1}).value),i})),Pe("string",(function(e,t,r,n){let i=e.format||"default",a=Ae[i]||De,o=n&&n.propertyName;return a(0|e.minLength,e.maxLength,o)}));var Te,je=function(){function e(){}return e.generateExample=function(e,t){void 0===t&&(t={});try{return this.sanitizeExample(Ce(e,t))||""}catch(e){return""}},e.sanitizeExample=function(e){var t=this;return"object"==typeof e&&e&&!Array.isArray(e)?Object.entries(e).reduce((function(e,r){var n=r[0],i=r[1];return n.startsWith("x-parser-")||n.startsWith("x-schema-private-")||(e[n]=t.sanitizeExample(i)),e}),{}):e},e.getPayloadExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.payload}))){var r=t.flatMap((function(e){if(e.payload)return{name:e.name,summary:e.summary,example:e.payload}})).filter(Boolean);if(r.length>0)return r}var n=e.payload();if(n&&n.examples())return n.examples().map((function(e){return{example:e}}))},e.getHeadersExamples=function(e){var t=e.examples();if(Array.isArray(t)&&t.some((function(e){return e.headers}))){var r=t.flatMap((function(e){if(e.headers)return{name:e.name,summary:e.summary,example:e.headers}})).filter(Boolean);if(r.length>0)return r}var n=e.headers();if(n&&n.examples())return n.examples().map((function(e){return{example:e}}))},e}(),Fe=function(e){var t=e.message;if(!t)return null;var r=t.payload(),n=t.headers();return i.a.createElement("div",{className:"bg-gray-800 px-8 py-4 mt-4 -mx-8 2xl:mx-0 2xl:px-4 2xl:rounded examples"},i.a.createElement("h4",{className:"text-white text-lg"},"Examples"),r&&i.a.createElement(_e,{type:"Payload",schema:r,examples:je.getPayloadExamples(t)}),n&&i.a.createElement(_e,{type:"Headers",schema:n,examples:je.getHeadersExamples(t)}))},_e=function(e){var t=e.type,r=void 0===t?"Payload":t,a=e.schema,o=e.examples,s=void 0===o?[]:o,u=Object(n.useState)(!1),l=u[0],p=u[1];return i.a.createElement("div",{className:"mt-4"},i.a.createElement("div",null,i.a.createElement(c,{onClick:function(){return p((function(e){return!e}))},chevronProps:{className:"fill-current text-gray-200 ".concat(l?"-rotate-180":"-rotate-90")}},i.a.createElement("span",{className:"px-2 py-1 mr-2 text-gray-200 text-sm border rounded focus:outline-none"},r))),i.a.createElement("div",{className:l?"block":"hidden"},s&&s.length>0?i.a.createElement("ul",null,s.map((function(e,t){return i.a.createElement("li",{className:"mt-4",key:t},i.a.createElement("h5",{className:"text-xs font-bold text-gray-500"},e.name?"#".concat(t+1," Example - ").concat(e.name):"#".concat(t+1," Example")),e.summary&&i.a.createElement("p",{className:"text-xs font-bold text-gray-500"},e.summary),i.a.createElement("div",{className:"mt-1"},i.a.createElement(oe,{snippet:je.sanitizeExample(e.example)})))}))):i.a.createElement("div",{className:"mt-4"},i.a.createElement(oe,{snippet:je.generateExample(a.json())}),i.a.createElement("h6",{className:"text-xs font-bold text-gray-600 italic mt-2"},"This example has been generated automatically."))))},Oe=function(e){var t=e.message,r=e.messageName,n=e.index,a=e.showExamples,o=void 0!==a&&a,s=re();if(!t)return null;var u=t.title(),l=t.summary(),c=t.payload(),p=t.headers(),f=t.correlationId(),h=t.contentType(),d=t.externalDocs(),m=h||d;return i.a.createElement("div",{className:"panel-item"},i.a.createElement("div",{className:"panel-item--center px-8"},i.a.createElement("div",{className:"shadow rounded bg-gray-200 p-4 border"},i.a.createElement("div",null,void 0!==n&&i.a.createElement("span",{className:"text-gray-700 font-bold mr-2"},"#",n),u&&i.a.createElement("span",{className:"text-gray-700 mr-2"},u),i.a.createElement("span",{className:"border text-orange-600 rounded text-xs py-0 px-2"},t.uid())),l&&i.a.createElement("p",{className:"text-gray-600 text-sm"},l),m&&i.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},h&&i.a.createElement("li",{className:"inline-block"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:"".concat(N.a,"/").concat(h)},i.a.createElement("span",null,h))),d&&i.a.createElement("li",{className:"inline-block"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:d.url()},i.a.createElement("span",null,N.c)))),f&&i.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},i.a.createElement("div",{className:"text-sm text-gray-700"},"Correlation ID",i.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},f.location())),f.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(O,null,f.description()))),t.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(O,null,t.description())),c&&i.a.createElement("div",{className:"mt-2",id:r?ne.getIdentifier("message-".concat(r,"-payload"),s):void 0},i.a.createElement(W,{schemaName:"Payload",schema:c})),p&&i.a.createElement("div",{className:"mt-2",id:r?ne.getIdentifier("message-".concat(r,"-headers"),s):void 0},i.a.createElement(W,{schemaName:"Headers",schema:p})),t.hasBindings()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(ee,{name:"Message specific information",bindings:t.bindings()})),i.a.createElement(K,{item:t}),t.hasTags()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(I,{tags:t.tags()})))),o&&i.a.createElement("div",{className:"panel-item--right px-8"},i.a.createElement(Fe,{message:t})))},$e=r(7),Ie=function(){return(Ie=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ne=function(e){var t=re(),r=e.type,n=void 0===r?$e.a.PUBLISH:r,a=e.operation,o=e.channelName,s=e.channel;if(!a||!s)return null;var u="function"==typeof s.servers&&s.servers(),l=J.parametersToSchema(s.parameters());return i.a.createElement("div",null,i.a.createElement("div",{className:"panel-item--center px-8"},i.a.createElement(Re,Ie({},e)),u&&u.length>0?i.a.createElement("div",{className:"mt-2 text-sm"},i.a.createElement("p",null,"Available only on servers:"),i.a.createElement("ul",{className:"flex flex-wrap leading-normal"},u.map((function(e){return i.a.createElement("li",{className:"inline-block mt-2 mr-2",key:e},i.a.createElement("a",{href:"#".concat(ne.getIdentifier("server-"+e,t)),className:"border border-solid border-blue-300 hover:bg-blue-300 hover:text-blue-600 text-blue-500 font-bold no-underline text-xs rounded px-3 py-1 cursor-pointer"},i.a.createElement("span",{className:"underline"},e)))})))):null,l&&i.a.createElement("div",{className:"mt-2",id:ne.getIdentifier("operation-".concat(n,"-").concat(o,"-parameters"),t)},i.a.createElement(W,{schemaName:"Parameters",schema:l,expanded:!0})),s.hasBindings()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(ee,{name:"Channel specific information",bindings:s.bindings()})),i.a.createElement(K,{name:"Channel Extensions",item:s}),a.hasBindings()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(ee,{name:"Operation specific information",bindings:a.bindings()})),i.a.createElement(K,{name:"Operation Extensions",item:a}),a.hasTags()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(I,{tags:a.tags()}))),i.a.createElement("div",{className:"w-full mt-4",id:ne.getIdentifier("operation-".concat(n,"-").concat(o,"-message"),t)},a.hasMultipleMessages()?i.a.createElement("div",{className:"mt-2"},i.a.createElement("p",{className:"px-8"},"Accepts ",i.a.createElement("strong",null,"one of")," the following messages:"),i.a.createElement("ul",null,a.messages().map((function(e,t){return i.a.createElement("li",{className:"mt-4",key:t},i.a.createElement(Oe,{message:e,index:t,showExamples:!0}))})))):i.a.createElement("div",{className:"mt-2"},i.a.createElement("p",{className:"px-8"},"Accepts the following message:"),i.a.createElement("div",{className:"mt-2"},i.a.createElement(Oe,{message:a.message(0),showExamples:!0})))))},Re=function(e){var t=e.type,r=void 0===t?$e.a.PUBLISH:t,n=e.operation,a=e.channelName,o=e.channel,s=n.summary(),u=n.externalDocs(),l=n.id();return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mb-4"},i.a.createElement("h3",null,i.a.createElement("span",{className:"font-mono border uppercase p-1 rounded mr-2 ".concat(r===$e.a.PUBLISH?"border-blue-600 text-blue-500":"border-green-600 text-green-600"),title:r},r===$e.a.PUBLISH?"PUB":"SUB")," ",i.a.createElement("span",{className:"font-mono text-base"},a))),o.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(O,null,o.description())),s&&i.a.createElement("p",{className:"text-gray-600 text-sm mt-2"},s),n.hasDescription()&&i.a.createElement("div",{className:"mt-2"},i.a.createElement(O,null,n.description())),u&&i.a.createElement("ul",{className:"leading-normal mt-2 mb-4 space-x-2 space-y-2"},u&&i.a.createElement("li",{className:"inline-block"},i.a.createElement(E,{className:"border border-solid border-orange-300 hover:bg-orange-300 hover:text-orange-600 text-orange-500 font-bold no-underline text-xs uppercase rounded px-3 py-1",href:u.url()},i.a.createElement("span",null,N.c)))),l&&i.a.createElement("div",{className:"border bg-gray-100 rounded px-4 py-2 mt-2"},i.a.createElement("div",{className:"text-sm text-gray-700"},"Operation ID",i.a.createElement("span",{className:"border text-orange-600 rounded text-xs ml-2 py-0 px-2"},l))))},Me=function(){var e=f().channels(),t=re();if(!Object.keys(e).length)return null;var r=[];return Object.entries(e).forEach((function(e){var n=e[0],a=e[1];a.hasPublish()&&r.push(i.a.createElement("li",{className:"mb-12",key:"pub-".concat(n),id:ne.getIdentifier("operation-".concat($e.a.PUBLISH,"-").concat(n),t)},i.a.createElement(Ne,{type:$e.a.PUBLISH,operation:a.publish(),channelName:n,channel:a}))),a.hasSubscribe()&&r.push(i.a.createElement("li",{className:"mb-12",key:"sub-".concat(n),id:ne.getIdentifier("operation-".concat($e.a.SUBSCRIBE,"-").concat(n),t)},i.a.createElement(Ne,{type:$e.a.SUBSCRIBE,operation:a.subscribe(),channelName:n,channel:a})))})),i.a.createElement("section",{id:"".concat(ne.getIdentifier("operations",t)),className:"mt-16"},i.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},N.e),i.a.createElement("ul",null,r))},Be=function(){var e=f(),t=re(),r=e.hasComponents()&&e.components().messages();return r&&0!==Object.keys(r).length?i.a.createElement("section",{id:"".concat(ne.getIdentifier("messages",t)),className:"mt-16"},i.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},N.d),i.a.createElement("ul",null,Object.entries(r).map((function(e,r){var n=e[0],a=e[1];return i.a.createElement("li",{className:"mb-4",key:n,id:ne.getIdentifier("message-".concat(n),t)},i.a.createElement(Oe,{messageName:n,message:a,index:r+1,key:n}))})))):null},Le=function(e){var t=e.schemaName,r=e.schema;return r?i.a.createElement("div",null,i.a.createElement("div",{className:"panel-item--center px-8"},i.a.createElement("div",{className:"shadow rounded px-4 py-2 border bg-gray-200"},i.a.createElement(W,{schemaName:t,schema:r}))),i.a.createElement("div",{className:"w-full mt-4"})):null},Ue=function(){var e=f(),t=re(),r=e.hasComponents()&&e.components().schemas();return r&&0!==Object.keys(r).length?i.a.createElement("section",{id:"".concat(ne.getIdentifier("schemas",t)),className:"mt-16"},i.a.createElement("h2",{className:"2xl:w-7/12 text-3xl font-light mb-4 px-8"},N.f),i.a.createElement("ul",null,Object.entries(r).map((function(e){var r=e[0],n=e[1];return i.a.createElement("li",{className:"mb-4",key:r,id:ne.getIdentifier("schema-".concat(r),t)},i.a.createElement(Le,{schemaName:r,schema:n}))})))):null},ze=function(e){var t=e.error;if(!t)return null;var r,n=t.title,a=t.validationErrors;return i.a.createElement("div",{className:"panel-item"},i.a.createElement("div",{className:"panel-item--center p-8"},i.a.createElement("section",{className:"shadow rounded bg-gray-200 border-red-500 border-l-8"},i.a.createElement("h2",{className:"p-2"},n?"".concat(N.b,": ").concat(n):N.b),a&&a.length?i.a.createElement("div",{className:"bg-gray-800 text-white text-xs p-2"},i.a.createElement("pre",null,(r=a)?r.map((function(e,t){return e&&e.title&&e.location?i.a.createElement("div",{key:t,className:"flex"},i.a.createElement("span",null,"".concat(e.location.startLine,".")),i.a.createElement("code",{className:"whitespace-pre-wrap break-all ml-2"},e.title)):null})).filter(Boolean):null)):null)),i.a.createElement("div",{className:"panel-item--right"}))},qe=function(e){var t,r,a,o,u,l,c,f=e.asyncapi,h=e.config,m=e.error,y=void 0===m?null:m,g=Object(n.useState)("container:xl"),v=g[0],b=g[1],x=s({onResize:function(e){var t=e.width;requestAnimationFrame((function(){if(void 0!==t){var e=t<=1280?"container:xl":"container:base";e!==v&&b(e)}}))}}).ref;return i.a.createElement(te.Provider,{value:h},i.a.createElement(p.Provider,{value:f},i.a.createElement("section",{className:"aui-root"},i.a.createElement("div",{className:"".concat(v," relative md:flex bg-white leading-normal"),id:h.schemaID||void 0,ref:x},(null===(t=h.show)||void 0===t?void 0:t.sidebar)&&i.a.createElement(d,{config:h.sidebar}),i.a.createElement("div",{className:"panel--center relative py-8 flex-1"},i.a.createElement("div",{className:"relative z-10"},(null===(r=h.show)||void 0===r?void 0:r.errors)&&y&&i.a.createElement(ze,{error:y}),(null===(a=h.show)||void 0===a?void 0:a.info)&&i.a.createElement(R,null),(null===(o=h.show)||void 0===o?void 0:o.servers)&&i.a.createElement(ae,null),(null===(u=h.show)||void 0===u?void 0:u.operations)&&i.a.createElement(Me,null),(null===(l=h.show)||void 0===l?void 0:l.messages)&&i.a.createElement(Be,null),(null===(c=h.show)||void 0===c?void 0:c.schemas)&&i.a.createElement(Ue,null)),i.a.createElement("div",{className:"panel--right absolute top-0 right-0 h-full bg-gray-800"}))))))},He=(Te=function(e,t){return(Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Te(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Ve=function(){return(Ve=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Je=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},Ke=function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},Xe=function(e){function t(t){var r=e.call(this,t)||this;r.state={asyncapi:void 0,error:void 0};var n=a.a.retrieveParsedSpec(t.schema);return n&&(r.state={asyncapi:n}),r}return He(t,e),t.prototype.componentDidMount=function(){return Je(this,void 0,void 0,(function(){return Ke(this,(function(e){return this.state.asyncapi||this.updateState(this.props.schema),[2]}))}))},t.prototype.componentDidUpdate=function(e){return Je(this,void 0,void 0,(function(){var t,r;return Ke(this,(function(n){return t=e.schema,r=this.props.schema,t!==r&&this.updateState(r),[2]}))}))},t.prototype.render=function(){var e,t=this.props,r=t.config,n=t.error,a=this.state,s=a.asyncapi,u=a.error,l=n||u,c=Ve(Ve(Ve({},o),r),{show:Ve(Ve({},o.show),!!r&&r.show),sidebar:Ve(Ve({},o.sidebar),!!r&&r.sidebar)});return s?i.a.createElement(qe,{asyncapi:s,config:c,error:l}):l?(null===(e=c.show)||void 0===e?void 0:e.errors)&&i.a.createElement(ze,{error:l}):null},t.prototype.updateState=function(e){var t=a.a.retrieveParsedSpec(e);t?this.setState({asyncapi:t}):this.setState({asyncapi:void 0})},t}(n.Component);t.a=Xe},function(e,t,r){"use strict";
9
9
  /*
10
10
  object-assign
11
11
  (c) Sindre Sorhus
12
12
  @license MIT
13
13
  */var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,s,u=o(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))i.call(r,c)&&(u[c]=r[c]);if(n){s=n(r);for(var p=0;p<s.length;p++)a.call(r,s[p])&&(u[s[p]]=r[s[p]])}}return u}},function(e,t,r){const{mix:n}=r(2),i=r(3),a=r(10),o=r(6),s=r(4);e.exports=n(class extends i{location(){return this._json.location}schema(){return this._json.schema?new a(this._json.schema):null}},o,s)},function(e,t,r){const{mix:n}=r(2),i=r(3),a=r(6),o=r(25),s=r(17),u=r(21),l=r(4);e.exports=n(class extends i{id(){return this._json.operationId}summary(){return this._json.summary}},a,o,s,u,l)},function(e,t,r){(function(t){const n=r(41),i=r(42),a=r(10);e.exports=class extends i{uid(){return this.name()||this.ext("x-parser-message-name")||t.from(JSON.stringify(this._json)).toString("base64")}payload(){return this._json.payload?new a(this._json.payload):null}traits(){const e=this._json["x-parser-original-traits"]||this._json.traits;return e?e.map(e=>new n(e)):[]}hasTraits(){return!!this._json["x-parser-original-traits"]||!!this._json.traits}originalPayload(){return this._json["x-parser-original-payload"]||this.payload()}originalSchemaFormat(){return this._json["x-parser-original-schema-format"]||this.schemaFormat()}}}).call(this,r(11).Buffer)},function(e,t,r){const n=r(42);e.exports=class extends n{}},function(e,t,r){const{getMapValueOfType:n,mix:i}=r(2),a=r(3),o=r(10),s=r(43),u=r(6),l=r(17),c=r(25),p=r(21),f=r(4);e.exports=i(class extends a{headers(){return this._json.headers?new o(this._json.headers):null}header(e){return this._json.headers?n(this._json.headers.properties,e,o):null}correlationId(){return this._json.correlationId?new s(this._json.correlationId):null}schemaFormat(){return this._json.schemaFormat}contentType(){return this._json.contentType}name(){return this._json.name}title(){return this._json.title}summary(){return this._json.summary}examples(){return this._json.examples}},u,c,l,p,f)},function(e,t,r){const{mix:n}=r(2),i=r(3),a=r(6),o=r(4);e.exports=n(class extends i{location(){return this._json.location}},o,a)},function(e,t,r){const n=r(39);e.exports=class extends n{}},function(e,t){const r=Object.freeze({NEW_SCHEMA:"NEW_SCHEMA",END_SCHEMA:"END_SCHEMA"}),n=Object.freeze({parameters:"parameters",payloads:"payloads",headers:"headers",components:"components",objects:"objects",arrays:"arrays",oneOfs:"oneOfs",allOfs:"allOfs",anyOfs:"anyOfs",nots:"nots",propertyNames:"propertyNames",patternProperties:"patternProperties",contains:"contains",ifs:"ifs",thenes:"thenes",elses:"elses",dependencies:"dependencies",definitions:"definitions"});function i(e,t,a){if(!e)return;const{callback:o,schemaTypesToIterate:s,seenSchemas:u}=a,l=e.json();if(u.has(l))return;u.add(l);let c=e.type()||[];Array.isArray(c)||(c=[c]),!s.includes(n.objects)&&c.includes("object")||!s.includes(n.arrays)&&c.includes("array")||!1!==o(e,t,r.NEW_SCHEMA)&&(s.includes(n.objects)&&c.includes("object")&&function(e,t){Object.entries(e.properties()||{}).forEach(([e,r])=>{i(r,e,t)});const r=e.additionalProperties();"object"==typeof r&&i(r,null,t);const a=t.schemaTypesToIterate;a.includes(n.propertyNames)&&e.propertyNames()&&i(e.propertyNames(),null,t);a.includes(n.patternProperties)&&Object.entries(e.patternProperties()||{}).forEach(([e,r])=>{i(r,e,t)})}(e,a),s.includes(n.arrays)&&c.includes("array")&&function(e,t){const r=e.items();r&&(Array.isArray(r)?r.forEach((e,r)=>{i(e,r,t)}):i(r,null,t));const a=e.additionalItems();"object"==typeof a&&i(a,null,t);t.schemaTypesToIterate.includes(n.contains)&&e.contains()&&i(e.contains(),null,t)}(e,a),s.includes(n.oneOfs)&&(e.oneOf()||[]).forEach((e,t)=>{i(e,t,a)}),s.includes(n.anyOfs)&&(e.anyOf()||[]).forEach((e,t)=>{i(e,t,a)}),s.includes(n.allOfs)&&(e.allOf()||[]).forEach((e,t)=>{i(e,t,a)}),s.includes(n.nots)&&e.not()&&i(e.not(),null,a),s.includes(n.ifs)&&e.if()&&i(e.if(),null,a),s.includes(n.thenes)&&e.then()&&i(e.then(),null,a),s.includes(n.elses)&&e.else()&&i(e.else(),null,a),s.includes(n.dependencies)&&Object.entries(e.dependencies()||{}).forEach(([e,t])=>{t&&!Array.isArray(t)&&i(t,e,a)}),s.includes(n.definitions)&&Object.entries(e.definitions()||{}).forEach(([e,t])=>{i(t,e,a)}),o(e,t,r.END_SCHEMA),u.delete(l))}function a(e,t){if(!e)return;const{schemaTypesToIterate:r}=t;r.includes(n.headers)&&i(e.headers(),null,t),r.includes(n.payloads)&&i(e.payload(),null,t)}e.exports={SchemaIteratorCallbackType:r,SchemaTypesToIterate:n,traverseAsyncApiDocument:function(e,t,r){r||(r=Object.values(n));const o={callback:t,schemaTypesToIterate:r,seenSchemas:new Set};if(e.hasChannels()&&Object.values(e.channels()).forEach(e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:r}=t;r.includes(n.parameters)&&Object.values(e.parameters()||{}).forEach(e=>{i(e.schema(),null,t)});e.hasPublish()&&e.publish().messages().forEach(e=>{a(e,t)});e.hasSubscribe()&&e.subscribe().messages().forEach(e=>{a(e,t)})}(e,o)}),r.includes(n.components)&&e.hasComponents()){const t=e.components();Object.values(t.messages()||{}).forEach(e=>{a(e,o)}),Object.values(t.schemas()||{}).forEach(e=>{i(e,null,o)}),r.includes(n.parameters)&&Object.values(t.parameters()||{}).forEach(e=>{i(e.schema(),null,o)}),Object.values(t.messageTraits()||{}).forEach(e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:r}=t;r.includes(n.headers)&&i(e.headers(),null,t)}(e,o)})}}}},function(e,t,r){
14
14
  /*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */
15
- e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,r=Object.isFrozen,n=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,o=Object.seal,s=Object.create,u="undefined"!=typeof Reflect&&Reflect,l=u.apply,c=u.construct;l||(l=function(e,t,r){return e.apply(t,r)}),a||(a=function(e){return e}),o||(o=function(e){return e}),c||(c=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(t))))});var p,f=w(Array.prototype.forEach),h=w(Array.prototype.pop),d=w(Array.prototype.push),m=w(String.prototype.toLowerCase),y=w(String.prototype.match),g=w(String.prototype.replace),v=w(String.prototype.indexOf),b=w(String.prototype.trim),x=w(RegExp.prototype.test),E=(p=TypeError,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return c(p,t)});function w(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return l(e,t,n)}}function D(e,n){t&&t(e,null);for(var i=n.length;i--;){var a=n[i];if("string"==typeof a){var o=m(a);o!==a&&(r(n)||(n[i]=o),a=o)}e[a]=!0}return e}function A(t){var r=s(null),n=void 0;for(n in t)l(e,t,[n])&&(r[n]=t[n]);return r}function S(e,t){for(;null!==e;){var r=i(e,t);if(r){if(r.get)return w(r.get);if("function"==typeof r.value)return w(r.value)}e=n(e)}return function(e){return console.warn("fallback value for",e),null}}var k=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=a(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),F=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_=a(["#text"]),O=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),$=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),I=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),N=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),R=o(/\{\{[\s\S]*|[\s\S]*\}\}/gm),M=o(/<%[\s\S]*|[\s\S]*%>/gm),B=o(/^data-[\-\w.\u00B7-\uFFFF]/),L=o(/^aria-[\-\w]+$/),U=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=o(/^(?:\w+script|data):/i),q=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function V(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var J=function(){return"undefined"==typeof window?null:window},K=function(e,t){if("object"!==(void 0===e?"undefined":H(e))||"function"!=typeof e.createPolicy)return null;var r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),r=function(t){return e(t)};if(r.version="2.3.3",r.removed=[],!t||!t.document||9!==t.document.nodeType)return r.isSupported=!1,r;var n=t.document,i=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,u=t.Node,l=t.Element,c=t.NodeFilter,p=t.NamedNodeMap,w=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,X=t.Text,W=t.Comment,Y=t.DOMParser,G=t.trustedTypes,Q=l.prototype,Z=S(Q,"cloneNode"),ee=S(Q,"nextSibling"),te=S(Q,"childNodes"),re=S(Q,"parentNode");if("function"==typeof s){var ne=i.createElement("template");ne.content&&ne.content.ownerDocument&&(i=ne.content.ownerDocument)}var ie=K(G,n),ae=ie&&Re?ie.createHTML(""):"",oe=i,se=oe.implementation,ue=oe.createNodeIterator,le=oe.createDocumentFragment,ce=oe.getElementsByTagName,pe=n.importNode,fe={};try{fe=A(i).documentMode?i.documentMode:{}}catch(e){}var he={};r.isSupported="function"==typeof re&&se&&void 0!==se.createHTMLDocument&&9!==fe;var de=R,me=M,ye=B,ge=L,ve=z,be=q,xe=U,Ee=null,we=D({},[].concat(V(k),V(C),V(P),V(j),V(_))),De=null,Ae=D({},[].concat(V(O),V($),V(I),V(N))),Se=null,ke=null,Ce=!0,Pe=!0,Te=!1,je=!1,Fe=!1,_e=!1,Oe=!1,$e=!1,Ie=!1,Ne=!0,Re=!1,Me=!0,Be=!0,Le=!1,Ue={},ze=null,qe=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),He=null,Ve=D({},["audio","video","img","source","image","track"]),Je=null,Ke=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Ge=Ye,Qe=!1,Ze=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",rt=void 0,nt=null,it=i.createElement("form"),at=function(e){nt&&nt===e||(e&&"object"===(void 0===e?"undefined":H(e))||(e={}),e=A(e),Ee="ALLOWED_TAGS"in e?D({},e.ALLOWED_TAGS):we,De="ALLOWED_ATTR"in e?D({},e.ALLOWED_ATTR):Ae,Je="ADD_URI_SAFE_ATTR"in e?D(A(Ke),e.ADD_URI_SAFE_ATTR):Ke,He="ADD_DATA_URI_TAGS"in e?D(A(Ve),e.ADD_DATA_URI_TAGS):Ve,ze="FORBID_CONTENTS"in e?D({},e.FORBID_CONTENTS):qe,Se="FORBID_TAGS"in e?D({},e.FORBID_TAGS):{},ke="FORBID_ATTR"in e?D({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,Pe=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.SAFE_FOR_TEMPLATES||!1,Fe=e.WHOLE_DOCUMENT||!1,$e=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Ne=!1!==e.RETURN_DOM_IMPORT,Re=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,Me=!1!==e.SANITIZE_DOM,Be=!1!==e.KEEP_CONTENT,Le=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||xe,Ge=e.NAMESPACE||Ye,Ze=Ze=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,rt="application/xhtml+xml"===Ze?function(e){return e}:m,je&&(Pe=!1),Ie&&($e=!0),Ue&&(Ee=D({},[].concat(V(_))),De=[],!0===Ue.html&&(D(Ee,k),D(De,O)),!0===Ue.svg&&(D(Ee,C),D(De,$),D(De,N)),!0===Ue.svgFilters&&(D(Ee,P),D(De,$),D(De,N)),!0===Ue.mathMl&&(D(Ee,j),D(De,I),D(De,N))),e.ADD_TAGS&&(Ee===we&&(Ee=A(Ee)),D(Ee,e.ADD_TAGS)),e.ADD_ATTR&&(De===Ae&&(De=A(De)),D(De,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&D(Je,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ze===qe&&(ze=A(ze)),D(ze,e.FORBID_CONTENTS)),Be&&(Ee["#text"]=!0),Fe&&D(Ee,["html","head","body"]),Ee.table&&(D(Ee,["tbody"]),delete Se.tbody),a&&a(e),nt=e)},ot=D({},["mi","mo","mn","ms","mtext"]),st=D({},["foreignobject","desc","title","annotation-xml"]),ut=D({},C);D(ut,P),D(ut,T);var lt=D({},j);D(lt,F);var ct=function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var r=m(e.tagName),n=m(t.tagName);if(e.namespaceURI===We)return t.namespaceURI===Ye?"svg"===r:t.namespaceURI===Xe?"svg"===r&&("annotation-xml"===n||ot[n]):Boolean(ut[r]);if(e.namespaceURI===Xe)return t.namespaceURI===Ye?"math"===r:t.namespaceURI===We?"math"===r&&st[n]:Boolean(lt[r]);if(e.namespaceURI===Ye){if(t.namespaceURI===We&&!st[n])return!1;if(t.namespaceURI===Xe&&!ot[n])return!1;var i=D({},["title","style","font","a","script"]);return!lt[r]&&(i[r]||!ut[r])}return!1},pt=function(e){d(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},ft=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!De[e])if($e||Ie)try{pt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){var t=void 0,r=void 0;if(Oe)e="<remove></remove>"+e;else{var n=y(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===Ze&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var a=ie?ie.createHTML(e):e;if(Ge===Ye)try{t=(new Y).parseFromString(a,Ze)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Ge,"template",null);try{t.documentElement.innerHTML=Qe?"":a}catch(e){}}var o=t.body||t.documentElement;return e&&r&&o.insertBefore(i.createTextNode(r),o.childNodes[0]||null),Ge===Ye?ce.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:o},dt=function(e){return ue.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},mt=function(e){return!(e instanceof X||e instanceof W||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof w&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},yt=function(e){return"object"===(void 0===u?"undefined":H(u))?e instanceof u:e&&"object"===(void 0===e?"undefined":H(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},gt=function(e,t,n){he[e]&&f(he[e],(function(e){e.call(r,t,n,nt)}))},vt=function(e){var t=void 0;if(gt("beforeSanitizeElements",e,null),mt(e))return pt(e),!0;if(y(e.nodeName,/[\u0080-\uFFFF]/))return pt(e),!0;var n=rt(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:n,allowedTags:Ee}),!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&x(/<[/\w]/g,e.innerHTML)&&x(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===n&&x(/<template/i,e.innerHTML))return pt(e),!0;if(!Ee[n]||Se[n]){if(Be&&!ze[n]){var i=re(e)||e.parentNode,a=te(e)||e.childNodes;if(a&&i)for(var o=a.length-1;o>=0;--o)i.insertBefore(Z(a[o],!0),ee(e))}return pt(e),!0}return e instanceof l&&!ct(e)?(pt(e),!0):"noscript"!==n&&"noembed"!==n||!x(/<\/no(script|embed)/i,e.innerHTML)?(je&&3===e.nodeType&&(t=e.textContent,t=g(t,de," "),t=g(t,me," "),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),gt("afterSanitizeElements",e,null),!1):(pt(e),!0)},bt=function(e,t,r){if(Me&&("id"===t||"name"===t)&&(r in i||r in it))return!1;if(Pe&&!ke[t]&&x(ye,t));else if(Ce&&x(ge,t));else{if(!De[t]||ke[t])return!1;if(Je[t]);else if(x(xe,g(r,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(r,"data:")||!He[e])if(Te&&!x(ve,g(r,be,"")));else if(r)return!1}return!0},xt=function(e){var t=void 0,n=void 0,i=void 0,a=void 0;gt("beforeSanitizeAttributes",e,null);var o=e.attributes;if(o){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:De};for(a=o.length;a--;){var u=t=o[a],l=u.name,c=u.namespaceURI;if(n=b(t.value),i=rt(l),s.attrName=i,s.attrValue=n,s.keepAttr=!0,s.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,s),n=s.attrValue,!s.forceKeepAttr&&(ft(l,e),s.keepAttr))if(x(/\/>/i,n))ft(l,e);else{je&&(n=g(n,de," "),n=g(n,me," "));var p=rt(e.nodeName);if(bt(p,i,n))try{c?e.setAttributeNS(c,l,n):e.setAttribute(l,n),h(r.removed)}catch(e){}}}gt("afterSanitizeAttributes",e,null)}},Et=function e(t){var r=void 0,n=dt(t);for(gt("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)gt("uponSanitizeShadowNode",r,null),vt(r)||(r.content instanceof o&&e(r.content),xt(r));gt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e,i){var a=void 0,s=void 0,l=void 0,c=void 0,p=void 0;if((Qe=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!yt(e)){if("function"!=typeof e.toString)throw E("toString is not a function");if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!r.isSupported){if("object"===H(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(yt(e))return t.toStaticHTML(e.outerHTML)}return e}if(_e||at(i),r.removed=[],"string"==typeof e&&(Le=!1),Le);else if(e instanceof u)1===(s=(a=ht("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?a=s:a.appendChild(s);else{if(!$e&&!je&&!Fe&&-1===e.indexOf("<"))return ie&&Re?ie.createHTML(e):e;if(!(a=ht(e)))return $e?null:ae}a&&Oe&&pt(a.firstChild);for(var f=dt(Le?e:a);l=f.nextNode();)3===l.nodeType&&l===c||vt(l)||(l.content instanceof o&&Et(l.content),xt(l),c=l);if(c=null,Le)return e;if($e){if(Ie)for(p=le.call(a.ownerDocument);a.firstChild;)p.appendChild(a.firstChild);else p=a;return Ne&&(p=pe.call(n,p,!0)),p}var h=Fe?a.outerHTML:a.innerHTML;return je&&(h=g(h,de," "),h=g(h,me," ")),ie&&Re?ie.createHTML(h):h},r.setConfig=function(e){at(e),_e=!0},r.clearConfig=function(){nt=null,_e=!1},r.isValidAttribute=function(e,t,r){nt||at({});var n=rt(e),i=rt(t);return bt(n,i,r)},r.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],d(he[e],t))},r.removeHook=function(e){he[e]&&h(he[e])},r.removeHooks=function(e){he[e]&&(he[e]=[])},r.removeAllHooks=function(){he={}},r}()}()},function(e,t,r){"use strict";e.exports=c;const n=r(62),{InvalidPointerError:i,isHandledError:a,normalizeError:o}=r(19),{safePointerToPath:s,stripHash:u,getHash:l}=r(18);function c(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}c.prototype.addError=function(e){void 0===this.errors&&(this.errors=[]);const t=this.errors.map(({footprint:e})=>e);Array.isArray(e.errors)?this.errors.push(...e.errors.map(o).filter(({footprint:e})=>!t.includes(e))):t.includes(e.footprint)||this.errors.push(o(e))},c.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch(e){return!1}},c.prototype.get=function(e,t){return this.resolve(e,t).value},c.prototype.resolve=function(e,t,r,o){let c=new n(this,e,r);try{return c.resolve(this.value,t,o)}catch(e){if(!t||!t.continueOnError||!a(e))throw e;return null===e.path&&(e.path=s(l(o))),e instanceof i&&(e.source=u(o)),this.addError(e),null}},c.prototype.set=function(e,t){let r=new n(this,e);this.value=r.set(this.value,t)},c.is$Ref=function(e){return e&&"object"==typeof e&&"string"==typeof e.$ref&&e.$ref.length>0},c.isExternal$Ref=function(e){return c.is$Ref(e)&&"#"!==e.$ref[0]},c.isAllowed$Ref=function(e,t){if(c.is$Ref(e)){if("#/"===e.$ref.substr(0,2)||"#"===e.$ref)return!0;if("#"!==e.$ref[0]&&(!t||t.resolve.external))return!0}},c.isExtended$Ref=function(e){return c.is$Ref(e)&&Object.keys(e).length>1},c.dereference=function(e,t){if(t&&"object"==typeof t&&c.isExtended$Ref(e)){let r={};for(let t of Object.keys(e))"$ref"!==t&&(r[t]=e[t]);for(let e of Object.keys(t))e in r||(r[e]=t[e]);return r}return t}},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,r(11).Buffer)},function(e,t,r){"use strict";function n(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=n},function(e,t,r){"use strict";var n=r(34);e.exports=new n({include:[r(120)],implicit:[r(225),r(226)],explicit:[r(227),r(228),r(229),r(230)]})},function(e,t,r){"use strict";var n=function(){function e(e,t,r){void 0===t&&(t=null),void 0===r&&(r=!1),this.name="YAMLException",this.reason=e,this.mark=t,this.message=this.toString(!1),this.isWarning=r}return e.isInstance=function(t){if(null!=t&&t.getClassIdentifier&&"function"==typeof t.getClassIdentifier)for(var r=0,n=t.getClassIdentifier();r<n.length;r++){if(n[r]==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){return[].concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(e){var t;return void 0===e&&(e=!1),t="JS-YAML: "+(this.reason||"(unknown reason)"),!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e}();e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35),i=r(51),a=r(14);function o(e,t,r){var n=[];return e.include.forEach((function(e){r=o(e,t,r)})),e[t].forEach((function(e){r.forEach((function(t,r){t.tag===e.tag&&n.push(r)})),r.push(e)})),r.filter((function(e,t){return-1===n.indexOf(t)}))}var s=function(){function e(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=o(this,"implicit",[]),this.compiledExplicit=o(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={};function n(e){r[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var t,r;switch(arguments.length){case 1:t=e.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(t=n.toArray(t),r=n.toArray(r),!t.every((function(t){return t instanceof e})))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every((function(e){return e instanceof a.Type})))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:t,explicit:r})},e}();t.Schema=s},function(e,t,r){e.exports=window.DOMPurify||(window.DOMPurify=r(46).default||r(46))},function(e,t,r){e.exports=function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e,r){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n={exports:{}};function i(){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}}n.exports={defaults:{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},getDefaults:i,changeDefaults:function(e){n.exports.defaults=e}};var a=/[&<>"']/,o=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=function(e){return l[e]},p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function f(e){return e.replace(p,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var h=/(^|[^\[])\^/g,d=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,y={},g=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function x(e,t){y[" "+e]||(g.test(e)?y[" "+e]=e+"/":y[" "+e]=E(e,"/",!0));var r=-1===(e=y[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(v,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(b,"$1")+t:e+t}function E(e,t,r){var n=e.length;if(0===n)return"";for(var i=0;i<n;){var a=e.charAt(n-i-1);if(a!==t||r){if(a===t||!r)break;i++}else i++}return e.substr(0,n-i)}var w=function(e,t){if(t){if(a.test(e))return e.replace(o,c)}else if(s.test(e))return e.replace(u,c);return e},D=f,A=function(e,t){e=e.source||e,t=t||"";var r={replace:function(t,n){return n=(n=n.source||n).replace(h,"$1"),e=e.replace(t,n),r},getRegex:function(){return new RegExp(e,t)}};return r},S=function(e,t,r){if(e){var n;try{n=decodeURIComponent(f(r)).replace(d,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!m.test(r)&&(r=x(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r},k={exec:function(){}},C=function(e){for(var t,r,n=1;n<arguments.length;n++)for(r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},P=function(e,t){var r=e.replace(/\|/g,(function(e,t,r){for(var n=!1,i=t;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r},T=E,j=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var r=e.length,n=0,i=0;i<r;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&--n<0)return i;return-1},F=function(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(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e},O=n.exports.defaults,$=T,I=P,N=w,R=j;function M(e,t,r){var n=t.href,i=t.title?N(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:r,href:n,title:i,text:a}:{type:"image",raw:r,href:n,title:i,text:N(a)}}var B=function(){function e(e){this.options=e||O}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:$(r,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var r=t[0],n=function(e,t){var r=e.match(/^(\s+)(?:```)/);if(null===r)return t;var n=r[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim():t[2],text:n}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var r=t[2].trim();if(/#$/.test(r)){var n=$(r,"#");this.options.pedantic?r=n.trim():n&&!/ $/.test(n)||(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var r={type:"table",header:I(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(r.header.length===r.align.length){var n,i=r.align.length;for(n=0;n<i;n++)/^ *-+: *$/.test(r.align[n])?r.align[n]="right":/^ *:-+: *$/.test(r.align[n])?r.align[n]="center":/^ *:-+ *$/.test(r.align[n])?r.align[n]="left":r.align[n]=null;for(i=r.cells.length,n=0;n<i;n++)r.cells[n]=I(r.cells[n],r.header.length);return r}}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var r=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:r}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var r,n,i,a,o,s,u,l,c,p=t[0],f=t[2],h=f.length>1,d={type:"list",raw:p,ordered:h,start:h?+f.slice(0,-1):"",loose:!1,items:[]},m=t[0].match(this.rules.block.item),y=!1,g=m.length;i=this.rules.block.listItemStart.exec(m[0]);for(var v=0;v<g;v++){if(p=r=m[v],this.options.pedantic||(c=r.match(new RegExp("\\n\\s*\\n {0,"+(i[0].length-1)+"}\\S")))&&(o=r.length-c.index+m.slice(v+1).join("\n").length,d.raw=d.raw.substring(0,d.raw.length-o),p=r=r.substring(0,c.index),g=v+1),v!==g-1){if(a=this.rules.block.listItemStart.exec(m[v+1]),this.options.pedantic?a[1].length>i[1].length:a[1].length>=i[0].length||a[1].length>3){m.splice(v,2,m[v]+(!this.options.pedantic&&a[1].length<i[0].length&&!m[v].match(/\n$/)?"":"\n")+m[v+1]),v--,g--;continue}(!this.options.pedantic||this.options.smartLists?a[2][a[2].length-1]!==f[f.length-1]:h===(1===a[2].length))&&(o=m.slice(v+1).join("\n").length,d.raw=d.raw.substring(0,d.raw.length-o),v=g-1),i=a}n=r.length,~(r=r.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(n-=r.length,r=this.options.pedantic?r.replace(/^ {1,4}/gm,""):r.replace(new RegExp("^ {1,"+n+"}","gm"),"")),r=$(r,"\n"),v!==g-1&&(p+="\n"),s=y||/\n\n(?!\s*$)/.test(p),v!==g-1&&(y="\n\n"===p.slice(-2),s||(s=y)),s&&(d.loose=!0),this.options.gfm&&(l=void 0,(u=/^\[[ xX]\] /.test(r))&&(l=" "!==r[1],r=r.replace(/^\[[ xX]\] +/,""))),d.items.push({type:"list_item",raw:p,task:u,checked:l,loose:s,text:r})}return d}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):N(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var r={type:"table",header:I(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=t[0];var n,i=r.align.length;for(n=0;n<i;n++)/^ *-+: *$/.test(r.align[n])?r.align[n]="right":/^ *:-+: *$/.test(r.align[n])?r.align[n]="center":/^ *:-+ *$/.test(r.align[n])?r.align[n]="left":r.align[n]=null;for(i=r.cells.length,n=0;n<i;n++)r.cells[n]=I(r.cells[n].replace(/^ *\| *| *\| *$/g,""),r.header.length);return r}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}},t.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0]}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:N(t[1])}},t.tag=function(e,t,r){var n=this.rules.inline.tag.exec(e);if(n)return!t&&/^<a /i.test(n[0])?t=!0:t&&/^<\/a>/i.test(n[0])&&(t=!1),!r&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?r=!0:r&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(r=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:t,inRawBlock:r,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):N(n[0]):n[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;var n=$(r.slice(0,-1),"\\");if((r.length-n.length)%2==0)return}else{var i=R(t[2],"()");if(i>-1){var a=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var o=t[2],s="";if(this.options.pedantic){var u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);u&&(o=u[1],s=u[3])}else s=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(o=this.options.pedantic&&!/>$/.test(r)?o.slice(1):o.slice(1,-1)),M(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0])}},t.reflink=function(e,t){var r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){var n=(r[2]||r[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return M(r,n,r[0])}},t.emStrong=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!r.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=n[1]||n[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){var a,o,s=n[0].length-1,u=s,l=0,c="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);null!=(n=c.exec(t));)if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(o=a.length,n[3]||n[4])u+=o;else if(!((n[5]||n[6])&&s%3)||(s+o)%3){if(!((u-=o)>0))return o=Math.min(o,o+u+l),Math.min(s,o)%2?{type:"em",raw:e.slice(0,s+n.index+o+1),text:e.slice(1,s+n.index+o)}:{type:"strong",raw:e.slice(0,s+n.index+o+1),text:e.slice(2,s+n.index+o-1)}}else l+=o}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var r=t[2].replace(/\n/g," "),n=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return n&&i&&(r=r.substring(1,r.length-1)),r=N(r,!0),{type:"codespan",raw:t[0],text:r}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var r,n,i=this.rules.inline.autolink.exec(e);if(i)return n="@"===i[2]?"mailto:"+(r=N(this.options.mangle?t(i[1]):i[1])):r=N(i[1]),{type:"link",raw:i[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}},t.url=function(e,t){var r;if(r=this.rules.inline.url.exec(e)){var n,i;if("@"===r[2])i="mailto:"+(n=N(this.options.mangle?t(r[0]):r[0]));else{var a;do{a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(a!==r[0]);n=N(r[0]),i="www."===r[1]?"http://"+n:n}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}},t.inlineText=function(e,t,r){var n,i=this.rules.inline.text.exec(e);if(i)return n=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):N(i[0]):i[0]:N(this.options.smartypants?r(i[0]):i[0]),{type:"text",raw:i[0],text:n}},e}(),L=k,U=A,z=C,q={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}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,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+|$)/,nptable:L,table:L,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};q.def=U(q.def).replace("label",q._label).replace("title",q._title).getRegex(),q.bullet=/(?:[*+-]|\d{1,9}[.)])/,q.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,q.item=U(q.item,"gm").replace(/bull/g,q.bullet).getRegex(),q.listItemStart=U(/^( *)(bull) */).replace("bull",q.bullet).getRegex(),q.list=U(q.list).replace(/bull/g,q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+q.def.source+")").getRegex(),q._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",q._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,q.html=U(q.html,"i").replace("comment",q._comment).replace("tag",q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),q.paragraph=U(q._paragraph).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").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",q._tag).getRegex(),q.blockquote=U(q.blockquote).replace("paragraph",q.paragraph).getRegex(),q.normal=z({},q),q.gfm=z({},q.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),q.gfm.nptable=U(q.gfm.nptable).replace("hr",q.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",q._tag).getRegex(),q.gfm.table=U(q.gfm.table).replace("hr",q.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",q._tag).getRegex(),q.pedantic=z({},q.normal,{html:U("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",q._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:L,paragraph:U(q.normal._paragraph).replace("hr",q.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var H={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:L,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)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,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:L,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};H.punctuation=U(H.punctuation).replace(/punctuation/g,H._punctuation).getRegex(),H.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,H.escapedEmSt=/\\\*|\\_/g,H._comment=U(q._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),H.emStrong.lDelim=U(H.emStrong.lDelim).replace(/punct/g,H._punctuation).getRegex(),H.emStrong.rDelimAst=U(H.emStrong.rDelimAst,"g").replace(/punct/g,H._punctuation).getRegex(),H.emStrong.rDelimUnd=U(H.emStrong.rDelimUnd,"g").replace(/punct/g,H._punctuation).getRegex(),H._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,H._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,H._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])?)+(?![-_])/,H.autolink=U(H.autolink).replace("scheme",H._scheme).replace("email",H._email).getRegex(),H._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,H.tag=U(H.tag).replace("comment",H._comment).replace("attribute",H._attribute).getRegex(),H._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,H._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,H._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,H.link=U(H.link).replace("label",H._label).replace("href",H._href).replace("title",H._title).getRegex(),H.reflink=U(H.reflink).replace("label",H._label).getRegex(),H.reflinkSearch=U(H.reflinkSearch,"g").replace("reflink",H.reflink).replace("nolink",H.nolink).getRegex(),H.normal=z({},H),H.pedantic=z({},H.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:U(/^!?\[(label)\]\((.*?)\)/).replace("label",H._label).getRegex(),reflink:U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",H._label).getRegex()}),H.gfm=z({},H.normal,{escape:U(H.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),H.gfm.url=U(H.gfm.url,"i").replace("email",H.gfm._extended_email).getRegex(),H.breaks=z({},H.gfm,{br:U(H.br).replace("{2,}","*").getRegex(),text:U(H.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var V={block:q,inline:H},J=B,K=n.exports.defaults,X=V.block,W=V.inline,Y=_;function G(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 Q(e){var t,r,n="",i=e.length;for(t=0;t<i;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}var Z=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||K,this.options.tokenizer=this.options.tokenizer||new J,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:X.normal,inline:W.normal};this.options.pedantic?(t.block=X.pedantic,t.inline=W.pedantic):this.options.gfm&&(t.block=X.gfm,this.options.breaks?t.inline=W.breaks:t.inline=W.gfm),this.tokenizer.rules=t}t.lex=function(e,r){return new t(r).lex(e)},t.lexInline=function(e,r){return new t(r).inlineTokens(e)};var r,n,i,a=t.prototype;return a.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},a.blockTokens=function(e,t,r){var n,i,a,o,s,u,l=this;for(void 0===t&&(t=[]),void 0===r&&(r=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(r){return!!(n=r.call(l,e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),(o=t[t.length-1])&&"paragraph"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text):t.push(n);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.nptable(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),n.tokens=this.blockTokens(n.text,[],r),t.push(n);else if(n=this.tokenizer.list(e)){for(e=e.substring(n.raw.length),a=n.items.length,i=0;i<a;i++)n.items[i].tokens=this.blockTokens(n.items[i].text,[],!1);t.push(n)}else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(r&&(n=this.tokenizer.def(e)))e=e.substring(n.raw.length),this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});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(s=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,r=e.slice(1),n=void 0;l.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call(this,r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}(),r&&(n=this.tokenizer.paragraph(s)))o=t[t.length-1],u&&"paragraph"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text):t.push(n),u=s.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),(o=t[t.length-1])&&"text"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text):t.push(n);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}return t},a.inline=function(e){var t,r,n,i,a,o,s=e.length;for(t=0;t<s;t++)switch((o=e[t]).type){case"paragraph":case"text":case"heading":o.tokens=[],this.inlineTokens(o.text,o.tokens);break;case"table":for(o.tokens={header:[],cells:[]},i=o.header.length,r=0;r<i;r++)o.tokens.header[r]=[],this.inlineTokens(o.header[r],o.tokens.header[r]);for(i=o.cells.length,r=0;r<i;r++)for(a=o.cells[r],o.tokens.cells[r]=[],n=0;n<a.length;n++)o.tokens.cells[r][n]=[],this.inlineTokens(a[n],o.tokens.cells[r][n]);break;case"blockquote":this.inline(o.tokens);break;case"list":for(i=o.items.length,r=0;r<i;r++)this.inline(o.items[r].tokens)}return e},a.inlineTokens=function(e,t,r,n){var i,a,o,s=this;void 0===t&&(t=[]),void 0===r&&(r=!1),void 0===n&&(n=!1);var u,l,c,p=e;if(this.tokens.links){var f=Object.keys(this.tokens.links);if(f.length>0)for(;null!=(u=this.tokenizer.rules.inline.reflinkSearch.exec(p));)f.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(p=p.slice(0,u.index)+"["+Y("a",u[0].length-2)+"]"+p.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(u=this.tokenizer.rules.inline.blockSkip.exec(p));)p=p.slice(0,u.index)+"["+Y("a",u[0].length-2)+"]"+p.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(u=this.tokenizer.rules.inline.escapedEmSt.exec(p));)p=p.slice(0,u.index)+"++"+p.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(r){return!!(i=r.call(s,e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e,r,n))e=e.substring(i.raw.length),r=i.inLink,n=i.inRawBlock,(a=t[t.length-1])&&"text"===i.type&&"text"===a.type?(a.raw+=i.raw,a.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,n)),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),a=t[t.length-1],"link"===i.type?(i.tokens=this.inlineTokens(i.text,[],!0,n),t.push(i)):a&&"text"===i.type&&"text"===a.type?(a.raw+=i.raw,a.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,p,c))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],r,n),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],r,n),t.push(i);else if(i=this.tokenizer.autolink(e,Q))e=e.substring(i.raw.length),t.push(i);else if(r||!(i=this.tokenizer.url(e,Q))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,r=e.slice(1),n=void 0;s.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call(this,r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(o,n,G))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(c=i.raw.slice(-1)),l=!0,(a=t[t.length-1])&&"text"===a.type?(a.raw+=i.raw,a.text+=i.text):t.push(i);else if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else e=e.substring(i.raw.length),t.push(i);return t},r=t,i=[{key:"rules",get:function(){return{block:X,inline:W}}}],(n=null)&&e(r.prototype,n),i&&e(r,i),t}(),ee=n.exports.defaults,te=S,re=w,ne=function(){function e(e){this.options=e||ee}var t=e.prototype;return t.code=function(e,t,r){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,n);null!=i&&i!==e&&(r=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+re(n,!0)+'">'+(r?e:re(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:re(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,r,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(r)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"</"+r+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,r){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<a href="'+re(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>"},t.image=function(e,t,r){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<img src="'+e+'" alt="'+r+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">"},t.text=function(e){return e},e}(),ie=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,r){return""+r},t.image=function(e,t,r){return""+r},t.br=function(){return""},e}(),ae=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{r=e+"-"+ ++n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r},t.slug=function(e,t){void 0===t&&(t={});var r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)},e}(),oe=ne,se=ie,ue=ae,le=n.exports.defaults,ce=D,pe=Z,fe=function(){function e(e){this.options=e||le,this.options.renderer=this.options.renderer||new oe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new se,this.slugger=new ue}e.parse=function(t,r){return new e(r).parse(t)},e.parseInline=function(t,r){return new e(r).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var r,n,i,a,o,s,u,l,c,p,f,h,d,m,y,g,v,b,x,E="",w=e.length;for(r=0;r<w;r++)if(p=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type])||!1===(x=this.options.extensions.renderers[p.type].call(this,p))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type))switch(p.type){case"space":continue;case"hr":E+=this.renderer.hr();continue;case"heading":E+=this.renderer.heading(this.parseInline(p.tokens),p.depth,ce(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":E+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(l="",u="",a=p.header.length,n=0;n<a;n++)u+=this.renderer.tablecell(this.parseInline(p.tokens.header[n]),{header:!0,align:p.align[n]});for(l+=this.renderer.tablerow(u),c="",a=p.cells.length,n=0;n<a;n++){for(u="",o=(s=p.tokens.cells[n]).length,i=0;i<o;i++)u+=this.renderer.tablecell(this.parseInline(s[i]),{header:!1,align:p.align[i]});c+=this.renderer.tablerow(u)}E+=this.renderer.table(l,c);continue;case"blockquote":c=this.parse(p.tokens),E+=this.renderer.blockquote(c);continue;case"list":for(f=p.ordered,h=p.start,d=p.loose,a=p.items.length,c="",n=0;n<a;n++)g=(y=p.items[n]).checked,v=y.task,m="",y.task&&(b=this.renderer.checkbox(g),d?y.tokens.length>0&&"text"===y.tokens[0].type?(y.tokens[0].text=b+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&"text"===y.tokens[0].tokens[0].type&&(y.tokens[0].tokens[0].text=b+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(y.tokens,d),c+=this.renderer.listitem(m,v,g);E+=this.renderer.list(c,f,h);continue;case"html":E+=this.renderer.html(p.text);continue;case"paragraph":E+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(c=p.tokens?this.parseInline(p.tokens):p.text;r+1<w&&"text"===e[r+1].type;)c+="\n"+((p=e[++r]).tokens?this.parseInline(p.tokens):p.text);E+=t?this.renderer.paragraph(c):c;continue;default:var D='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(D);throw new Error(D)}else E+=x||"";return E},t.parseInline=function(e,t){t=t||this.renderer;var r,n,i,a="",o=e.length;for(r=0;r<o;r++)if(n=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(i=this.options.extensions.renderers[n.type].call(this,n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":a+=t.text(n.text);break;case"html":a+=t.html(n.text);break;case"link":a+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":a+=t.image(n.href,n.title,n.text);break;case"strong":a+=t.strong(this.parseInline(n.tokens,t));break;case"em":a+=t.em(this.parseInline(n.tokens,t));break;case"codespan":a+=t.codespan(n.text);break;case"br":a+=t.br();break;case"del":a+=t.del(this.parseInline(n.tokens,t));break;case"text":a+=t.text(n.text);break;default:var s='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}else a+=i||"";return a},e}(),he=B,de=ne,me=ie,ye=ae,ge=C,ve=F,be=w,xe=n.exports.getDefaults,Ee=n.exports.changeDefaults,we=n.exports.defaults;function De(e,t,r){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&&(r=t,t=null),t=ge({},De.defaults,t||{}),ve(t),r){var n,i=t.highlight;try{n=pe.lex(e,t)}catch(e){return r(e)}var a=function(e){var a;if(!e)try{t.walkTokens&&De.walkTokens(n,t.walkTokens),a=fe.parse(n,t)}catch(t){e=t}return t.highlight=i,e?r(e):r(null,a)};if(!i||i.length<3)return a();if(delete t.highlight,!n.length)return a();var o=0;return De.walkTokens(n,(function(e){"code"===e.type&&(o++,setTimeout((function(){i(e.text,e.lang,(function(t,r){if(t)return a(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),0==--o&&a()}))}),0))})),void(0===o&&a())}try{var s=pe.lex(e,t);return t.walkTokens&&De.walkTokens(s,t.walkTokens),fe.parse(s,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+be(e.message+"",!0)+"</pre>";throw e}}return De.options=De.setOptions=function(e){return ge(De.defaults,e),Ee(De.defaults),De},De.getDefaults=xe,De.defaults=we,De.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i,a=ge.apply(void 0,[{}].concat(r)),o=De.defaults.extensions||{renderers:{},childTokens:{}};r.forEach((function(t){if(t.extensions&&(i=!0,t.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=o.renderers?o.renderers[e.name]:null;o.renderers[e.name]=t?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=e.renderer.apply(this,n);return!1===a&&(a=t.apply(this,n)),a}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");o[e.level]?o[e.level].unshift(e.tokenizer):o[e.level]=[e.tokenizer],e.start&&("block"===e.level?o.startBlock?o.startBlock.push(e.start):o.startBlock=[e.start]:"inline"===e.level&&(o.startInline?o.startInline.push(e.start):o.startInline=[e.start]))}e.childTokens&&(o.childTokens[e.name]=e.childTokens)}))),t.renderer&&function(){var e=De.defaults.renderer||new de,r=function(r){var n=e[r];e[r]=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=t.renderer[r].apply(e,a);return!1===s&&(s=n.apply(e,a)),s}};for(var n in t.renderer)r(n);a.renderer=e}(),t.tokenizer&&function(){var e=De.defaults.tokenizer||new he,r=function(r){var n=e[r];e[r]=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=t.tokenizer[r].apply(e,a);return!1===s&&(s=n.apply(e,a)),s}};for(var n in t.tokenizer)r(n);a.tokenizer=e}(),t.walkTokens){var r=De.defaults.walkTokens;a.walkTokens=function(n){t.walkTokens.call(e,n),r&&r(n)}}i&&(a.extensions=o),De.setOptions(a)}))},De.walkTokens=function(e,t){for(var n,i=function(){var e=n.value;switch(t(e),e.type){case"table":for(var i,a=r(e.tokens.header);!(i=a()).done;){var o=i.value;De.walkTokens(o,t)}for(var s,u=r(e.tokens.cells);!(s=u()).done;)for(var l,c=r(s.value);!(l=c()).done;){var p=l.value;De.walkTokens(p,t)}break;case"list":De.walkTokens(e.items,t);break;default:De.defaults.extensions&&De.defaults.extensions.childTokens&&De.defaults.extensions.childTokens[e.type]?De.defaults.extensions.childTokens[e.type].forEach((function(r){De.walkTokens(e[r],t)})):e.tokens&&De.walkTokens(e.tokens,t)}},a=r(e);!(n=a()).done;)i()},De.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");t=ge({},De.defaults,t||{}),ve(t);try{var r=pe.lexInline(e,t);return t.walkTokens&&De.walkTokens(r,t.walkTokens),fe.parseInline(r,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+be(e.message+"",!0)+"</pre>";throw e}},De.Parser=fe,De.parser=fe.parse,De.Renderer=de,De.TextRenderer=me,De.Lexer=pe,De.lexer=pe.lex,De.Tokenizer=he,De.Slugger=ye,De.parse=De,De}()},function(e,t){e.exports=function(e){const t={literal:"true false null"},r=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],n=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],i={end:",",endsWithParent:!0,excludeEnd:!0,contains:n,keywords:t},a={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(i,{begin:/:/})].concat(r),illegal:"\\S"},o={begin:"\\[",end:"\\]",contains:[e.inherit(i)],illegal:"\\S"};return n.push(a,o),r.forEach((function(e){n.push(e)})),{name:"JSON",contains:n,keywords:t,illegal:"\\S"}}},function(e,t){e.exports=function(e){var t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},i=e.inherit(n,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),a={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},o={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},s={begin:/\{/,end:/\}/,contains:[o],illegal:"\\n",relevance:0},u={begin:"\\[",end:"\\]",contains:[o],illegal:"\\n",relevance:0},l=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},a,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},s,u,n],c=[...l];return c.pop(),c.push(i),o.contains=c,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:l}}},function(e,t){function r(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{className:"variable",variants:[{begin:r(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,i]};i.contains.push(o);const s={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]},u=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[u,e.SHEBANG(),l,s,e.HASH_COMMENT_MODE,a,o,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},t]}}},function(e,t,r){"use strict";var n=r(88);function i(e,t,r){if(3===arguments.length)return i.set(e,t,r);if(2===arguments.length)return i.get(e,t);var n=i.bind(i,e);for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a].bind(n,e));return n}e.exports=i,i.get=function(e,t){for(var r=Array.isArray(t)?t:i.parse(t),n=0;n<r.length;++n){var a=r[n];if("object"!=typeof e||!(a in e))throw new Error("Invalid reference token: "+a);e=e[a]}return e},i.set=function(e,t,r){var n=Array.isArray(t)?t:i.parse(t),a=n[0];if(0===n.length)throw Error("Can not set the root object");for(var o=0;o<n.length-1;++o){var s=n[o];"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&("-"===s&&Array.isArray(e)&&(s=e.length),a=n[o+1],s in e||(a.match(/^(\d+|-)$/)?e[s]=[]:e[s]={}),e=e[s])}return"-"===a&&Array.isArray(e)&&(a=e.length),e[a]=r,this},i.remove=function(e,t){var r=Array.isArray(t)?t:i.parse(t),n=r[r.length-1];if(void 0===n)throw new Error('Invalid JSON pointer for remove: "'+t+'"');var a=i.get(e,r.slice(0,-1));if(Array.isArray(a)){var o=+n;if(""===n&&isNaN(o))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(a,o,1)}else delete a[n]},i.dict=function(e,t){var r={};return i.walk(e,(function(e,t){r[t]=e}),t),r},i.walk=function(e,t,r){var a=[];r=r||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function e(o){n(o,(function(n,o){a.push(String(o)),r(n)?e(n):t(n,i.compile(a)),a.pop()}))}(e)},i.has=function(e,t){try{i.get(e,t)}catch(e){return!1}return!0},i.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},i.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},i.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(i.unescape)},i.compile=function(e){return 0===e.length?"":"/"+e.map(i.escape).join("/")}},function(e,t,r){const n=r(129),i=r(262);n.registerSchemaParser(i),e.exports=n},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;0!=i--;){var o=a[i];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},function(e,t,r){"use strict";e.exports=h;const n=r(47),i=r(18),{JSONParserError:a,InvalidPointerError:o,MissingPointerError:s,isHandledError:u}=r(19),l=/\//g,c=/~/g,p=/~1/g,f=/~0/g;function h(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}function d(e,t){if(n.isAllowed$Ref(e.value,t)){let r=i.resolve(e.path,e.value.$ref);if(r!==e.path){let i=e.$ref.$refs._resolve(r,e.path,t);return null!==i&&(e.indirections+=i.indirections+1,n.isExtended$Ref(e.value)?(e.value=n.dereference(e.value,i.value),!1):(e.$ref=i.$ref,e.path=i.path,e.value=i.value,!0))}e.circular=!0}}function m(e,t,r){if(!e.value||"object"!=typeof e.value)throw new a(`Error assigning $ref pointer "${e.path}". \nCannot set "${t}" of a non-object.`);return"-"===t&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r,r}function y(e){if(u(e))throw e;return e}h.prototype.resolve=function(e,t,r){let n=h.parse(this.path,this.originalPath);this.value=y(e);for(let e=0;e<n.length;e++){if(d(this,t)&&(this.path=h.join(this.path,n.slice(e))),"object"==typeof this.value&&null!==this.value&&"$ref"in this.value)return this;let r=n[e];if(void 0===this.value[r]||null===this.value[r])throw this.value=null,new s(r,this.originalPath);this.value=this.value[r]}return(!this.value||this.value.$ref&&i.resolve(this.path,this.value.$ref)!==r)&&d(this,t),this},h.prototype.set=function(e,t,r){let n,i=h.parse(this.path);if(0===i.length)return this.value=t,t;this.value=y(e);for(let e=0;e<i.length-1;e++)d(this,r),n=i[e],this.value&&void 0!==this.value[n]?this.value=this.value[n]:this.value=m(this,n,{});return d(this,r),n=i[i.length-1],m(this,n,t),e},h.parse=function(e,t){let r=i.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let e=0;e<r.length;e++)r[e]=decodeURIComponent(r[e].replace(p,"/").replace(f,"~"));if(""!==r[0])throw new o(r,void 0===t?e:t);return r.slice(1)},h.join=function(e,t){-1===e.indexOf("#")&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(c,"~0").replace(l,"~1"))}return e}},function(e,t,r){"use strict";var n=r(179),i=r(180);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),p=["%","/","?",";","#"].concat(c),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(181);function b(e,t,r){if(e&&i.isObject(e)&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}a.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),s=-1!==a&&a<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var b=e=l.join(s);if(b=b.trim(),!r&&1===e.split("#").length){var x=u.exec(b);if(x)return this.path=b,this.href=b,this.pathname=x[1],x[2]?(this.search=x[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var E=o.exec(b);if(E){var w=(E=E[0]).toLowerCase();this.protocol=w,b=b.substr(E.length)}if(r||E||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var D="//"===b.substr(0,2);!D||E&&y[E]||(b=b.substr(2),this.slashes=!0)}if(!y[E]&&(D||E&&!g[E])){for(var A,S,k=-1,C=0;C<f.length;C++){-1!==(P=b.indexOf(f[C]))&&(-1===k||P<k)&&(k=P)}-1!==(S=-1===k?b.lastIndexOf("@"):b.lastIndexOf("@",k))&&(A=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(A)),k=-1;for(C=0;C<p.length;C++){var P;-1!==(P=b.indexOf(p[C]))&&(-1===k||P<k)&&(k=P)}-1===k&&(k=b.length),this.host=b.slice(0,k),b=b.slice(k),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var j=this.hostname.split(/\./),F=(C=0,j.length);C<F;C++){var _=j[C];if(_&&!_.match(h)){for(var O="",$=0,I=_.length;$<I;$++)_.charCodeAt($)>127?O+="x":O+=_[$];if(!O.match(h)){var N=j.slice(0,C),R=j.slice(C+1),M=_.match(d);M&&(N.push(M[1]),R.unshift(M[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var B=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+B,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[w])for(C=0,F=c.length;C<F;C++){var U=c[C];if(-1!==b.indexOf(U)){var z=encodeURIComponent(U);z===U&&(z=escape(U)),b=b.split(U).join(z)}}var q=b.indexOf("#");-1!==q&&(this.hash=b.substr(q),b=b.slice(0,q));var H=b.indexOf("?");if(-1!==H?(this.search=b.substr(H),this.query=b.substr(H+1),t&&(this.query=v.parse(this.query)),b=b.slice(0,H)):t&&(this.search="",this.query={}),b&&(this.pathname=b),g[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var V=this.search||"";this.path=B+V}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",a=!1,o="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(o=v.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==a?(a="//"+(a||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):a||(a=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+a+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},a.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(i.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var r=new a,n=Object.keys(this),o=0;o<n.length;o++){var s=n[o];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),l=0;l<u.length;l++){var c=u[l];"protocol"!==c&&(r[c]=e[c])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!g[e.protocol]){for(var p=Object.keys(e),f=0;f<p.length;f++){var h=p[f];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||y[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),x=e.host||e.pathname&&"/"===e.pathname.charAt(0),E=x||b||r.host&&e.pathname,w=E,D=r.pathname&&r.pathname.split("/")||[],A=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(A&&(r.hostname="",r.port=null,r.host&&(""===D[0]?D[0]=r.host:D.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),E=E&&(""===d[0]||""===D[0])),x)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,D=d;else if(d.length)D||(D=[]),D.pop(),D=D.concat(d),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(A)r.hostname=r.host=D.shift(),(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!D.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=D.slice(-1)[0],k=(r.host||e.host||D.length>1)&&("."===S||".."===S)||""===S,C=0,P=D.length;P>=0;P--)"."===(S=D[P])?D.splice(P,1):".."===S?(D.splice(P,1),C++):C&&(D.splice(P,1),C--);if(!E&&!w)for(;C--;C)D.unshift("..");!E||""===D[0]||D[0]&&"/"===D[0].charAt(0)||D.unshift(""),k&&"/"!==D.join("/").substr(-1)&&D.push("");var T,j=""===D[0]||D[0]&&"/"===D[0].charAt(0);A&&(r.hostname=r.host=j?"":D.length?D.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(E=E||r.host&&D.length)&&!j&&D.unshift(""),D.length?r.pathname=D.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick((function(){e.apply(null,a)}))}}}:e.exports=t}).call(this,r(16))},function(e,t,r){"use strict";var n=r(34);e.exports=n.DEFAULT=new n({include:[r(50)],explicit:[r(231),r(232),r(233)]})},function(e,t,r){"use strict";var n;function i(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:n.SEQ,parent:null}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"}(n=t.Kind||(t.Kind={})),t.newMapping=function(e,t){var r=t?t.endPosition:e.endPosition+1;return{key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:n.MAPPING,parent:null,errors:[]}},t.newAnchorRef=function(e,t,r,i){return{errors:[],referencesAnchor:e,value:i,startPosition:t,endPosition:r,kind:n.ANCHOR_REF,parent:null}},t.newScalar=function(e){void 0===e&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:n.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return"string"!=typeof e&&(t.valueObject=e),t},t.newItems=i,t.newSeq=function(){return i()},t.newMap=function(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:n.MAP,parent:null}}},function(e,t,r){"use strict";
15
+ e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,r=Object.isFrozen,n=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,o=Object.seal,s=Object.create,u="undefined"!=typeof Reflect&&Reflect,l=u.apply,c=u.construct;l||(l=function(e,t,r){return e.apply(t,r)}),a||(a=function(e){return e}),o||(o=function(e){return e}),c||(c=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(t))))});var p,f=w(Array.prototype.forEach),h=w(Array.prototype.pop),d=w(Array.prototype.push),m=w(String.prototype.toLowerCase),y=w(String.prototype.match),g=w(String.prototype.replace),v=w(String.prototype.indexOf),b=w(String.prototype.trim),x=w(RegExp.prototype.test),E=(p=TypeError,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return c(p,t)});function w(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return l(e,t,n)}}function D(e,n){t&&t(e,null);for(var i=n.length;i--;){var a=n[i];if("string"==typeof a){var o=m(a);o!==a&&(r(n)||(n[i]=o),a=o)}e[a]=!0}return e}function A(t){var r=s(null),n=void 0;for(n in t)l(e,t,[n])&&(r[n]=t[n]);return r}function S(e,t){for(;null!==e;){var r=i(e,t);if(r){if(r.get)return w(r.get);if("function"==typeof r.value)return w(r.value)}e=n(e)}return function(e){return console.warn("fallback value for",e),null}}var k=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),C=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=a(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),F=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_=a(["#text"]),O=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),$=a(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),I=a(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),N=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),R=o(/\{\{[\s\S]*|[\s\S]*\}\}/gm),M=o(/<%[\s\S]*|[\s\S]*%>/gm),B=o(/^data-[\-\w.\u00B7-\uFFFF]/),L=o(/^aria-[\-\w]+$/),U=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=o(/^(?:\w+script|data):/i),q=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function V(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var J=function(){return"undefined"==typeof window?null:window},K=function(e,t){if("object"!==(void 0===e?"undefined":H(e))||"function"!=typeof e.createPolicy)return null;var r=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=t.currentScript.getAttribute("data-tt-policy-suffix"));var n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),r=function(t){return e(t)};if(r.version="2.3.3",r.removed=[],!t||!t.document||9!==t.document.nodeType)return r.isSupported=!1,r;var n=t.document,i=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,u=t.Node,l=t.Element,c=t.NodeFilter,p=t.NamedNodeMap,w=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,X=t.Text,W=t.Comment,Y=t.DOMParser,G=t.trustedTypes,Q=l.prototype,Z=S(Q,"cloneNode"),ee=S(Q,"nextSibling"),te=S(Q,"childNodes"),re=S(Q,"parentNode");if("function"==typeof s){var ne=i.createElement("template");ne.content&&ne.content.ownerDocument&&(i=ne.content.ownerDocument)}var ie=K(G,n),ae=ie&&Re?ie.createHTML(""):"",oe=i,se=oe.implementation,ue=oe.createNodeIterator,le=oe.createDocumentFragment,ce=oe.getElementsByTagName,pe=n.importNode,fe={};try{fe=A(i).documentMode?i.documentMode:{}}catch(e){}var he={};r.isSupported="function"==typeof re&&se&&void 0!==se.createHTMLDocument&&9!==fe;var de=R,me=M,ye=B,ge=L,ve=z,be=q,xe=U,Ee=null,we=D({},[].concat(V(k),V(C),V(P),V(j),V(_))),De=null,Ae=D({},[].concat(V(O),V($),V(I),V(N))),Se=null,ke=null,Ce=!0,Pe=!0,Te=!1,je=!1,Fe=!1,_e=!1,Oe=!1,$e=!1,Ie=!1,Ne=!0,Re=!1,Me=!0,Be=!0,Le=!1,Ue={},ze=null,qe=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),He=null,Ve=D({},["audio","video","img","source","image","track"]),Je=null,Ke=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Ge=Ye,Qe=!1,Ze=void 0,et=["application/xhtml+xml","text/html"],tt="text/html",rt=void 0,nt=null,it=i.createElement("form"),at=function(e){nt&&nt===e||(e&&"object"===(void 0===e?"undefined":H(e))||(e={}),e=A(e),Ee="ALLOWED_TAGS"in e?D({},e.ALLOWED_TAGS):we,De="ALLOWED_ATTR"in e?D({},e.ALLOWED_ATTR):Ae,Je="ADD_URI_SAFE_ATTR"in e?D(A(Ke),e.ADD_URI_SAFE_ATTR):Ke,He="ADD_DATA_URI_TAGS"in e?D(A(Ve),e.ADD_DATA_URI_TAGS):Ve,ze="FORBID_CONTENTS"in e?D({},e.FORBID_CONTENTS):qe,Se="FORBID_TAGS"in e?D({},e.FORBID_TAGS):{},ke="FORBID_ATTR"in e?D({},e.FORBID_ATTR):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,Pe=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,je=e.SAFE_FOR_TEMPLATES||!1,Fe=e.WHOLE_DOCUMENT||!1,$e=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Ne=!1!==e.RETURN_DOM_IMPORT,Re=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,Me=!1!==e.SANITIZE_DOM,Be=!1!==e.KEEP_CONTENT,Le=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||xe,Ge=e.NAMESPACE||Ye,Ze=Ze=-1===et.indexOf(e.PARSER_MEDIA_TYPE)?tt:e.PARSER_MEDIA_TYPE,rt="application/xhtml+xml"===Ze?function(e){return e}:m,je&&(Pe=!1),Ie&&($e=!0),Ue&&(Ee=D({},[].concat(V(_))),De=[],!0===Ue.html&&(D(Ee,k),D(De,O)),!0===Ue.svg&&(D(Ee,C),D(De,$),D(De,N)),!0===Ue.svgFilters&&(D(Ee,P),D(De,$),D(De,N)),!0===Ue.mathMl&&(D(Ee,j),D(De,I),D(De,N))),e.ADD_TAGS&&(Ee===we&&(Ee=A(Ee)),D(Ee,e.ADD_TAGS)),e.ADD_ATTR&&(De===Ae&&(De=A(De)),D(De,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&D(Je,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ze===qe&&(ze=A(ze)),D(ze,e.FORBID_CONTENTS)),Be&&(Ee["#text"]=!0),Fe&&D(Ee,["html","head","body"]),Ee.table&&(D(Ee,["tbody"]),delete Se.tbody),a&&a(e),nt=e)},ot=D({},["mi","mo","mn","ms","mtext"]),st=D({},["foreignobject","desc","title","annotation-xml"]),ut=D({},C);D(ut,P),D(ut,T);var lt=D({},j);D(lt,F);var ct=function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});var r=m(e.tagName),n=m(t.tagName);if(e.namespaceURI===We)return t.namespaceURI===Ye?"svg"===r:t.namespaceURI===Xe?"svg"===r&&("annotation-xml"===n||ot[n]):Boolean(ut[r]);if(e.namespaceURI===Xe)return t.namespaceURI===Ye?"math"===r:t.namespaceURI===We?"math"===r&&st[n]:Boolean(lt[r]);if(e.namespaceURI===Ye){if(t.namespaceURI===We&&!st[n])return!1;if(t.namespaceURI===Xe&&!ot[n])return!1;var i=D({},["title","style","font","a","script"]);return!lt[r]&&(i[r]||!ut[r])}return!1},pt=function(e){d(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ae}catch(t){e.remove()}}},ft=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!De[e])if($e||Ie)try{pt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){var t=void 0,r=void 0;if(Oe)e="<remove></remove>"+e;else{var n=y(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===Ze&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var a=ie?ie.createHTML(e):e;if(Ge===Ye)try{t=(new Y).parseFromString(a,Ze)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Ge,"template",null);try{t.documentElement.innerHTML=Qe?"":a}catch(e){}}var o=t.body||t.documentElement;return e&&r&&o.insertBefore(i.createTextNode(r),o.childNodes[0]||null),Ge===Ye?ce.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:o},dt=function(e){return ue.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},mt=function(e){return!(e instanceof X||e instanceof W||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof w&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},yt=function(e){return"object"===(void 0===u?"undefined":H(u))?e instanceof u:e&&"object"===(void 0===e?"undefined":H(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},gt=function(e,t,n){he[e]&&f(he[e],(function(e){e.call(r,t,n,nt)}))},vt=function(e){var t=void 0;if(gt("beforeSanitizeElements",e,null),mt(e))return pt(e),!0;if(y(e.nodeName,/[\u0080-\uFFFF]/))return pt(e),!0;var n=rt(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:n,allowedTags:Ee}),!yt(e.firstElementChild)&&(!yt(e.content)||!yt(e.content.firstElementChild))&&x(/<[/\w]/g,e.innerHTML)&&x(/<[/\w]/g,e.textContent))return pt(e),!0;if("select"===n&&x(/<template/i,e.innerHTML))return pt(e),!0;if(!Ee[n]||Se[n]){if(Be&&!ze[n]){var i=re(e)||e.parentNode,a=te(e)||e.childNodes;if(a&&i)for(var o=a.length-1;o>=0;--o)i.insertBefore(Z(a[o],!0),ee(e))}return pt(e),!0}return e instanceof l&&!ct(e)?(pt(e),!0):"noscript"!==n&&"noembed"!==n||!x(/<\/no(script|embed)/i,e.innerHTML)?(je&&3===e.nodeType&&(t=e.textContent,t=g(t,de," "),t=g(t,me," "),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),gt("afterSanitizeElements",e,null),!1):(pt(e),!0)},bt=function(e,t,r){if(Me&&("id"===t||"name"===t)&&(r in i||r in it))return!1;if(Pe&&!ke[t]&&x(ye,t));else if(Ce&&x(ge,t));else{if(!De[t]||ke[t])return!1;if(Je[t]);else if(x(xe,g(r,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(r,"data:")||!He[e])if(Te&&!x(ve,g(r,be,"")));else if(r)return!1}return!0},xt=function(e){var t=void 0,n=void 0,i=void 0,a=void 0;gt("beforeSanitizeAttributes",e,null);var o=e.attributes;if(o){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:De};for(a=o.length;a--;){var u=t=o[a],l=u.name,c=u.namespaceURI;if(n=b(t.value),i=rt(l),s.attrName=i,s.attrValue=n,s.keepAttr=!0,s.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,s),n=s.attrValue,!s.forceKeepAttr&&(ft(l,e),s.keepAttr))if(x(/\/>/i,n))ft(l,e);else{je&&(n=g(n,de," "),n=g(n,me," "));var p=rt(e.nodeName);if(bt(p,i,n))try{c?e.setAttributeNS(c,l,n):e.setAttribute(l,n),h(r.removed)}catch(e){}}}gt("afterSanitizeAttributes",e,null)}},Et=function e(t){var r=void 0,n=dt(t);for(gt("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)gt("uponSanitizeShadowNode",r,null),vt(r)||(r.content instanceof o&&e(r.content),xt(r));gt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e,i){var a=void 0,s=void 0,l=void 0,c=void 0,p=void 0;if((Qe=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!yt(e)){if("function"!=typeof e.toString)throw E("toString is not a function");if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!r.isSupported){if("object"===H(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(yt(e))return t.toStaticHTML(e.outerHTML)}return e}if(_e||at(i),r.removed=[],"string"==typeof e&&(Le=!1),Le);else if(e instanceof u)1===(s=(a=ht("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?a=s:a.appendChild(s);else{if(!$e&&!je&&!Fe&&-1===e.indexOf("<"))return ie&&Re?ie.createHTML(e):e;if(!(a=ht(e)))return $e?null:ae}a&&Oe&&pt(a.firstChild);for(var f=dt(Le?e:a);l=f.nextNode();)3===l.nodeType&&l===c||vt(l)||(l.content instanceof o&&Et(l.content),xt(l),c=l);if(c=null,Le)return e;if($e){if(Ie)for(p=le.call(a.ownerDocument);a.firstChild;)p.appendChild(a.firstChild);else p=a;return Ne&&(p=pe.call(n,p,!0)),p}var h=Fe?a.outerHTML:a.innerHTML;return je&&(h=g(h,de," "),h=g(h,me," ")),ie&&Re?ie.createHTML(h):h},r.setConfig=function(e){at(e),_e=!0},r.clearConfig=function(){nt=null,_e=!1},r.isValidAttribute=function(e,t,r){nt||at({});var n=rt(e),i=rt(t);return bt(n,i,r)},r.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],d(he[e],t))},r.removeHook=function(e){he[e]&&h(he[e])},r.removeHooks=function(e){he[e]&&(he[e]=[])},r.removeAllHooks=function(){he={}},r}()}()},function(e,t,r){"use strict";e.exports=c;const n=r(62),{InvalidPointerError:i,isHandledError:a,normalizeError:o}=r(19),{safePointerToPath:s,stripHash:u,getHash:l}=r(18);function c(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}c.prototype.addError=function(e){void 0===this.errors&&(this.errors=[]);const t=this.errors.map(({footprint:e})=>e);Array.isArray(e.errors)?this.errors.push(...e.errors.map(o).filter(({footprint:e})=>!t.includes(e))):t.includes(e.footprint)||this.errors.push(o(e))},c.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch(e){return!1}},c.prototype.get=function(e,t){return this.resolve(e,t).value},c.prototype.resolve=function(e,t,r,o){let c=new n(this,e,r);try{return c.resolve(this.value,t,o)}catch(e){if(!t||!t.continueOnError||!a(e))throw e;return null===e.path&&(e.path=s(l(o))),e instanceof i&&(e.source=u(o)),this.addError(e),null}},c.prototype.set=function(e,t){let r=new n(this,e);this.value=r.set(this.value,t)},c.is$Ref=function(e){return e&&"object"==typeof e&&"string"==typeof e.$ref&&e.$ref.length>0},c.isExternal$Ref=function(e){return c.is$Ref(e)&&"#"!==e.$ref[0]},c.isAllowed$Ref=function(e,t){if(c.is$Ref(e)){if("#/"===e.$ref.substr(0,2)||"#"===e.$ref)return!0;if("#"!==e.$ref[0]&&(!t||t.resolve.external))return!0}},c.isExtended$Ref=function(e){return c.is$Ref(e)&&Object.keys(e).length>1},c.dereference=function(e,t){if(t&&"object"==typeof t&&c.isExtended$Ref(e)){let r={};for(let t of Object.keys(e))"$ref"!==t&&(r[t]=e[t]);for(let e of Object.keys(t))e in r||(r[e]=t[e]);return r}return t}},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,r(11).Buffer)},function(e,t,r){"use strict";function n(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=n},function(e,t,r){"use strict";var n=r(34);e.exports=new n({include:[r(120)],implicit:[r(225),r(226)],explicit:[r(227),r(228),r(229),r(230)]})},function(e,t,r){"use strict";var n=function(){function e(e,t,r){void 0===t&&(t=null),void 0===r&&(r=!1),this.name="YAMLException",this.reason=e,this.mark=t,this.message=this.toString(!1),this.isWarning=r}return e.isInstance=function(t){if(null!=t&&t.getClassIdentifier&&"function"==typeof t.getClassIdentifier)for(var r=0,n=t.getClassIdentifier();r<n.length;r++){if(n[r]==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){return[].concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(e){var t;return void 0===e&&(e=!1),t="JS-YAML: "+(this.reason||"(unknown reason)"),!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e}();e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(35),i=r(51),a=r(14);function o(e,t,r){var n=[];return e.include.forEach((function(e){r=o(e,t,r)})),e[t].forEach((function(e){r.forEach((function(t,r){t.tag===e.tag&&n.push(r)})),r.push(e)})),r.filter((function(e,t){return-1===n.indexOf(t)}))}var s=function(){function e(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=o(this,"implicit",[]),this.compiledExplicit=o(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={};function n(e){r[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var t,r;switch(arguments.length){case 1:t=e.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(t=n.toArray(t),r=n.toArray(r),!t.every((function(t){return t instanceof e})))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every((function(e){return e instanceof a.Type})))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:t,explicit:r})},e}();t.Schema=s},function(e,t,r){e.exports=window.DOMPurify||(window.DOMPurify=r(46).default||r(46))},function(e,t,r){!function(e){"use strict";function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(){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}}e.defaults={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};var a=/[&<>"']/,o=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=function(e){return l[e]};function p(e,t){if(t){if(a.test(e))return e.replace(o,c)}else if(s.test(e))return e.replace(u,c);return e}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(f,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var d=/(^|[^\[])\^/g;function m(e,t){e=e.source||e,t=t||"";var r={replace:function(t,n){return n=(n=n.source||n).replace(d,"$1"),e=e.replace(t,n),r},getRegex:function(){return new RegExp(e,t)}};return r}var y=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(e,t,r){if(e){var n;try{n=decodeURIComponent(h(r)).replace(y,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!g.test(r)&&(r=function(e,t){b[" "+e]||(x.test(e)?b[" "+e]=e+"/":b[" "+e]=k(e,"/",!0));var r=-1===(e=b[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(E,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(w,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}var b={},x=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,w=/^([^:]+:\/*[^/]*)[\s\S]*$/,D={exec:function(){}};function A(e){for(var t,r,n=1;n<arguments.length;n++)for(r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function S(e,t){var r=e.replace(/\|/g,(function(e,t,r){for(var n=!1,i=t;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(r[0].trim()||r.shift(),r[r.length-1].trim()||r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function k(e,t,r){var n=e.length;if(0===n)return"";for(var i=0;i<n;){var a=e.charAt(n-i-1);if(a!==t||r){if(a===t||!r)break;i++}else i++}return e.substr(0,n-i)}function C(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 P(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function T(e,t,r,n){var i=t.href,a=t.title?p(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var s={type:"link",raw:r,href:i,title:a,text:o,tokens:n.inlineTokens(o,[])};return n.state.inLink=!1,s}return{type:"image",raw:r,href:i,title:a,text:p(o)}}var j=function(){function t(t){this.options=t||e.defaults}var r=t.prototype;return r.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},r.code=function(e){var t=this.rules.block.code.exec(e);if(t){var r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:k(r,"\n")}}},r.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var r=t[0],n=function(e,t){var r=e.match(/^(\s+)(?:```)/);if(null===r)return t;var n=r[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim():t[2],text:n}}},r.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var r=t[2].trim();if(/#$/.test(r)){var n=k(r,"#");this.options.pedantic?r=n.trim():n&&!/ $/.test(n)||(r=n.trim())}var i={type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},r.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},r.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var r=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(r,[]),text:r}}},r.list=function(e){var t=this.rules.block.list.exec(e);if(t){var r,i,a,o,s,u,l,c,p,f,h,d,m=t[1].trim(),y=m.length>1,g={type:"list",raw:"",ordered:y,start:y?+m.slice(0,-1):"",loose:!1,items:[]};m=y?"\\d{1,9}\\"+m.slice(-1):"\\"+m,this.options.pedantic&&(m=y?m:"[*+-]");for(var v=new RegExp("^( {0,3}"+m+")((?: [^\\n]*)?(?:\\n|$))");e&&(d=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),c=t[2].split("\n",1)[0],p=e.split("\n",1)[0],this.options.pedantic?(o=2,h=c.trimLeft()):(o=(o=t[2].search(/[^ ]/))>4?1:o,h=c.slice(o),o+=t[1].length),u=!1,!c&&/^ *$/.test(p)&&(r+=p+"\n",e=e.substring(p.length+1),d=!0),!d)for(var b=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:[*+-]|\\d{1,9}[.)])");e&&(c=f=e.split("\n",1)[0],this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!b.test(c));){if(c.search(/[^ ]/)>=o||!c.trim())h+="\n"+c.slice(o);else{if(u)break;h+="\n"+c}u||c.trim()||(u=!0),r+=f+"\n",e=e.substring(f.length+1)}g.loose||(l?g.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(h))&&(a="[ ] "!==i[0],h=h.replace(/^\[[ xX]\] +/,"")),g.items.push({type:"list_item",raw:r,task:!!i,checked:a,loose:!1,text:h}),g.raw+=r}g.items[g.items.length-1].raw=r.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();var x=g.items.length;for(s=0;s<x;s++){this.lexer.state.top=!1,g.items[s].tokens=this.lexer.blockTokens(g.items[s].text,[]);var E=g.items[s].tokens.filter((function(e){return"space"===e.type})),w=E.every((function(e){for(var t,r=0,i=n(e.raw.split(""));!(t=i()).done;)if("\n"===t.value&&(r+=1),r>1)return!0;return!1}));!g.loose&&E.length&&w&&(g.loose=!0,g.items[s].loose=!0)}return g}},r.html=function(e){var t=this.rules.block.html.exec(e);if(t){var r={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&&(r.type="paragraph",r.text=this.options.sanitizer?this.options.sanitizer(t[0]):p(t[0]),r.tokens=[],this.lexer.inline(r.text,r.tokens)),r}},r.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},r.table=function(e){var t=this.rules.block.table.exec(e);if(t){var r={type:"table",header:S(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=t[0];var n,i,a,o,s=r.align.length;for(n=0;n<s;n++)/^ *-+: *$/.test(r.align[n])?r.align[n]="right":/^ *:-+: *$/.test(r.align[n])?r.align[n]="center":/^ *:-+ *$/.test(r.align[n])?r.align[n]="left":r.align[n]=null;for(s=r.rows.length,n=0;n<s;n++)r.rows[n]=S(r.rows[n],r.header.length).map((function(e){return{text:e}}));for(s=r.header.length,i=0;i<s;i++)r.header[i].tokens=[],this.lexer.inlineTokens(r.header[i].text,r.header[i].tokens);for(s=r.rows.length,i=0;i<s;i++)for(o=r.rows[i],a=0;a<o.length;a++)o[a].tokens=[],this.lexer.inlineTokens(o[a].text,o[a].tokens);return r}}},r.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){var r={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},r.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var r={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(r.text,r.tokens),r}},r.text=function(e){var t=this.rules.block.text.exec(e);if(t){var r={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},r.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:p(t[1])}},r.tag=function(e){var 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]):p(t[0]):t[0]}},r.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;var n=k(r.slice(0,-1),"\\");if((r.length-n.length)%2==0)return}else{var i=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var r=e.length,n=0,i=0;i<r;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&--n<0)return i;return-1}(t[2],"()");if(i>-1){var a=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var o=t[2],s="";if(this.options.pedantic){var u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);u&&(o=u[1],s=u[3])}else s=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(o=this.options.pedantic&&!/>$/.test(r)?o.slice(1):o.slice(1,-1)),T(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0],this.lexer)}},r.reflink=function(e,t){var r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){var n=(r[2]||r[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return T(r,n,r[0],this.lexer)}},r.emStrong=function(e,t,r){void 0===r&&(r="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!r.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=n[1]||n[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){var a,o,s=n[0].length-1,u=s,l=0,c="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);null!=(n=c.exec(t));)if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(o=a.length,n[3]||n[4])u+=o;else if(!((n[5]||n[6])&&s%3)||(s+o)%3){if(!((u-=o)>0)){if(o=Math.min(o,o+u+l),Math.min(s,o)%2){var p=e.slice(1,s+n.index+o);return{type:"em",raw:e.slice(0,s+n.index+o+1),text:p,tokens:this.lexer.inlineTokens(p,[])}}var f=e.slice(2,s+n.index+o-1);return{type:"strong",raw:e.slice(0,s+n.index+o+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}}else l+=o}}},r.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var r=t[2].replace(/\n/g," "),n=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return n&&i&&(r=r.substring(1,r.length-1)),r=p(r,!0),{type:"codespan",raw:t[0],text:r}}},r.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},r.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},r.autolink=function(e,t){var r,n,i=this.rules.inline.autolink.exec(e);if(i)return n="@"===i[2]?"mailto:"+(r=p(this.options.mangle?t(i[1]):i[1])):r=p(i[1]),{type:"link",raw:i[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}},r.url=function(e,t){var r;if(r=this.rules.inline.url.exec(e)){var n,i;if("@"===r[2])i="mailto:"+(n=p(this.options.mangle?t(r[0]):r[0]));else{var a;do{a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(a!==r[0]);n=p(r[0]),i="www."===r[1]?"http://"+n:n}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}},r.inlineText=function(e,t){var r,n=this.rules.inline.text.exec(e);if(n)return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):p(n[0]):n[0]:p(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:r}},t}(),F={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}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\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:D,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?'|\([^()]*\))/};F.def=m(F.def).replace("label",F._label).replace("title",F._title).getRegex(),F.bullet=/(?:[*+-]|\d{1,9}[.)])/,F.listItemStart=m(/^( *)(bull) */).replace("bull",F.bullet).getRegex(),F.list=m(F.list).replace(/bull/g,F.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+F.def.source+")").getRegex(),F._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",F._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,F.html=m(F.html,"i").replace("comment",F._comment).replace("tag",F._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),F.paragraph=m(F._paragraph).replace("hr",F.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",F._tag).getRegex(),F.blockquote=m(F.blockquote).replace("paragraph",F.paragraph).getRegex(),F.normal=A({},F),F.gfm=A({},F.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),F.gfm.table=m(F.gfm.table).replace("hr",F.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",F._tag).getRegex(),F.gfm.paragraph=m(F._paragraph).replace("hr",F.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",F.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",F._tag).getRegex(),F.pedantic=A({},F.normal,{html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",F._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:D,paragraph:m(F.normal._paragraph).replace("hr",F.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",F.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var _={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:D,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:D,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function O(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 $(e){var t,r,n="",i=e.length;for(t=0;t<i;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}_._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",_.punctuation=m(_.punctuation).replace(/punctuation/g,_._punctuation).getRegex(),_.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,_.escapedEmSt=/\\\*|\\_/g,_._comment=m(F._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),_.emStrong.lDelim=m(_.emStrong.lDelim).replace(/punct/g,_._punctuation).getRegex(),_.emStrong.rDelimAst=m(_.emStrong.rDelimAst,"g").replace(/punct/g,_._punctuation).getRegex(),_.emStrong.rDelimUnd=m(_.emStrong.rDelimUnd,"g").replace(/punct/g,_._punctuation).getRegex(),_._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,_._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,_._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])?)+(?![-_])/,_.autolink=m(_.autolink).replace("scheme",_._scheme).replace("email",_._email).getRegex(),_._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,_.tag=m(_.tag).replace("comment",_._comment).replace("attribute",_._attribute).getRegex(),_._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,_._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,_._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,_.link=m(_.link).replace("label",_._label).replace("href",_._href).replace("title",_._title).getRegex(),_.reflink=m(_.reflink).replace("label",_._label).replace("ref",F._label).getRegex(),_.nolink=m(_.nolink).replace("ref",F._label).getRegex(),_.reflinkSearch=m(_.reflinkSearch,"g").replace("reflink",_.reflink).replace("nolink",_.nolink).getRegex(),_.normal=A({},_),_.pedantic=A({},_.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:m(/^!?\[(label)\]\((.*?)\)/).replace("label",_._label).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_._label).getRegex()}),_.gfm=A({},_.normal,{escape:m(_.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),_.gfm.url=m(_.gfm.url,"i").replace("email",_.gfm._extended_email).getRegex(),_.breaks=A({},_.gfm,{br:m(_.br).replace("{2,}","*").getRegex(),text:m(_.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var I=function(){function r(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new j,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var r={block:F.normal,inline:_.normal};this.options.pedantic?(r.block=F.pedantic,r.inline=_.pedantic):this.options.gfm&&(r.block=F.gfm,this.options.breaks?r.inline=_.breaks:r.inline=_.gfm),this.tokenizer.rules=r}r.lex=function(e,t){return new r(t).lex(e)},r.lexInline=function(e,t){return new r(t).inlineTokens(e)};var n,i,a,o=r.prototype;return o.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},o.blockTokens=function(e,t){var r,n,i,a,o=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(r=n.call({lexer:o},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(i=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,r=e.slice(1),n=void 0;o.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),this.state.top&&(r=this.tokenizer.paragraph(i)))n=t[t.length-1],a&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),a=i.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,t},o.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},o.inlineTokens=function(e,t){var r,n,i,a=this;void 0===t&&(t=[]);var o,s,u,l=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+P("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+P("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(u=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(r=n.call({lexer:a},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,u))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,$))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,$))){if(i=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,r=e.slice(1),n=void 0;a.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},r))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),r=this.tokenizer.inlineText(i,O))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(u=r.raw.slice(-1)),s=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){var p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}throw new Error(p)}}else e=e.substring(r.raw.length),t.push(r);return t},n=r,a=[{key:"rules",get:function(){return{block:F,inline:_}}}],(i=null)&&t(n.prototype,i),a&&t(n,a),Object.defineProperty(n,"prototype",{writable:!1}),r}(),N=function(){function t(t){this.options=t||e.defaults}var r=t.prototype;return r.code=function(e,t,r){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,n);null!=i&&i!==e&&(r=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+p(n,!0)+'">'+(r?e:p(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:p(e,!0))+"</code></pre>\n"},r.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},r.html=function(e){return e},r.heading=function(e,t,r,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(r)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},r.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},r.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"},r.listitem=function(e){return"<li>"+e+"</li>\n"},r.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},r.paragraph=function(e){return"<p>"+e+"</p>\n"},r.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},r.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},r.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+"</"+r+">\n"},r.strong=function(e){return"<strong>"+e+"</strong>"},r.em=function(e){return"<em>"+e+"</em>"},r.codespan=function(e){return"<code>"+e+"</code>"},r.br=function(){return this.options.xhtml?"<br/>":"<br>"},r.del=function(e){return"<del>"+e+"</del>"},r.link=function(e,t,r){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<a href="'+p(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>"},r.image=function(e,t,r){if(null===(e=v(this.options.sanitize,this.options.baseUrl,e)))return r;var n='<img src="'+e+'" alt="'+r+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">"},r.text=function(e){return e},t}(),R=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,r){return""+r},t.image=function(e,t,r){return""+r},t.br=function(){return""},e}(),M=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{r=e+"-"+ ++n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r},t.slug=function(e,t){void 0===t&&(t={});var r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)},e}(),B=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new N,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new R,this.slugger=new M}t.parse=function(e,r){return new t(r).parse(e)},t.parseInline=function(e,r){return new t(r).parseInline(e)};var r=t.prototype;return r.parse=function(e,t){void 0===t&&(t=!0);var r,n,i,a,o,s,u,l,c,p,f,d,m,y,g,v,b,x,E,w="",D=e.length;for(r=0;r<D;r++)if(p=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type])||!1===(E=this.options.extensions.renderers[p.type].call({parser:this},p))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type))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,h(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(l="",u="",a=p.header.length,n=0;n<a;n++)u+=this.renderer.tablecell(this.parseInline(p.header[n].tokens),{header:!0,align:p.align[n]});for(l+=this.renderer.tablerow(u),c="",a=p.rows.length,n=0;n<a;n++){for(u="",o=(s=p.rows[n]).length,i=0;i<o;i++)u+=this.renderer.tablecell(this.parseInline(s[i].tokens),{header:!1,align:p.align[i]});c+=this.renderer.tablerow(u)}w+=this.renderer.table(l,c);continue;case"blockquote":c=this.parse(p.tokens),w+=this.renderer.blockquote(c);continue;case"list":for(f=p.ordered,d=p.start,m=p.loose,a=p.items.length,c="",n=0;n<a;n++)v=(g=p.items[n]).checked,b=g.task,y="",g.task&&(x=this.renderer.checkbox(v),m?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=x+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=x+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:x}):y+=x),y+=this.parse(g.tokens,m),c+=this.renderer.listitem(y,b,v);w+=this.renderer.list(c,f,d);continue;case"html":w+=this.renderer.html(p.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(c=p.tokens?this.parseInline(p.tokens):p.text;r+1<D&&"text"===e[r+1].type;)c+="\n"+((p=e[++r]).tokens?this.parseInline(p.tokens):p.text);w+=t?this.renderer.paragraph(c):c;continue;default:var A='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(A);throw new Error(A)}else w+=E||"";return w},r.parseInline=function(e,t){t=t||this.renderer;var r,n,i,a="",o=e.length;for(r=0;r<o;r++)if(n=e[r],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type])||!1===(i=this.options.extensions.renderers[n.type].call({parser:this},n))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type))switch(n.type){case"escape":a+=t.text(n.text);break;case"html":a+=t.html(n.text);break;case"link":a+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":a+=t.image(n.href,n.title,n.text);break;case"strong":a+=t.strong(this.parseInline(n.tokens,t));break;case"em":a+=t.em(this.parseInline(n.tokens,t));break;case"codespan":a+=t.codespan(n.text);break;case"br":a+=t.br();break;case"del":a+=t.del(this.parseInline(n.tokens,t));break;case"text":a+=t.text(n.text);break;default:var s='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}else a+=i||"";return a},t}();function L(e,t,r){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&&(r=t,t=null),C(t=A({},L.defaults,t||{})),r){var n,i=t.highlight;try{n=I.lex(e,t)}catch(e){return r(e)}var a=function(e){var a;if(!e)try{t.walkTokens&&L.walkTokens(n,t.walkTokens),a=B.parse(n,t)}catch(t){e=t}return t.highlight=i,e?r(e):r(null,a)};if(!i||i.length<3)return a();if(delete t.highlight,!n.length)return a();var o=0;return L.walkTokens(n,(function(e){"code"===e.type&&(o++,setTimeout((function(){i(e.text,e.lang,(function(t,r){if(t)return a(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),0==--o&&a()}))}),0))})),void(0===o&&a())}try{var s=I.lex(e,t);return t.walkTokens&&L.walkTokens(s,t.walkTokens),B.parse(s,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+p(e.message+"",!0)+"</pre>";throw e}}L.options=L.setOptions=function(t){var r;return A(L.defaults,t),r=L.defaults,e.defaults=r,L},L.getDefaults=i,L.defaults=e.defaults,L.use=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=A.apply(void 0,[{}].concat(t)),a=L.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((function(e){if(e.extensions&&(n=!0,e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=a.renderers?a.renderers[e.name]:null;a.renderers[e.name]=t?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=e.renderer.apply(this,n);return!1===a&&(a=t.apply(this,n)),a}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");a[e.level]?a[e.level].unshift(e.tokenizer):a[e.level]=[e.tokenizer],e.start&&("block"===e.level?a.startBlock?a.startBlock.push(e.start):a.startBlock=[e.start]:"inline"===e.level&&(a.startInline?a.startInline.push(e.start):a.startInline=[e.start]))}e.childTokens&&(a.childTokens[e.name]=e.childTokens)}))),e.renderer&&function(){var t=L.defaults.renderer||new N,r=function(r){var n=t[r];t[r]=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=e.renderer[r].apply(t,a);return!1===s&&(s=n.apply(t,a)),s}};for(var n in e.renderer)r(n);i.renderer=t}(),e.tokenizer&&function(){var t=L.defaults.tokenizer||new j,r=function(r){var n=t[r];t[r]=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=e.tokenizer[r].apply(t,a);return!1===s&&(s=n.apply(t,a)),s}};for(var n in e.tokenizer)r(n);i.tokenizer=t}(),e.walkTokens){var t=L.defaults.walkTokens;i.walkTokens=function(r){e.walkTokens.call(this,r),t&&t.call(this,r)}}n&&(i.extensions=a),L.setOptions(i)}))},L.walkTokens=function(e,t){for(var r,i=function(){var e=r.value;switch(t.call(L,e),e.type){case"table":for(var i,a=n(e.header);!(i=a()).done;){var o=i.value;L.walkTokens(o.tokens,t)}for(var s,u=n(e.rows);!(s=u()).done;)for(var l,c=n(s.value);!(l=c()).done;){var p=l.value;L.walkTokens(p.tokens,t)}break;case"list":L.walkTokens(e.items,t);break;default:L.defaults.extensions&&L.defaults.extensions.childTokens&&L.defaults.extensions.childTokens[e.type]?L.defaults.extensions.childTokens[e.type].forEach((function(r){L.walkTokens(e[r],t)})):e.tokens&&L.walkTokens(e.tokens,t)}},a=n(e);!(r=a()).done;)i()},L.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");C(t=A({},L.defaults,t||{}));try{var r=I.lexInline(e,t);return t.walkTokens&&L.walkTokens(r,t.walkTokens),B.parseInline(r,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+p(e.message+"",!0)+"</pre>";throw e}},L.Parser=B,L.parser=B.parse,L.Renderer=N,L.TextRenderer=R,L.Lexer=I,L.lexer=I.lex,L.Tokenizer=j,L.Slugger=M,L.parse=L;var U=L.options,z=L.setOptions,q=L.use,H=L.walkTokens,V=L.parseInline,J=L,K=B.parse,X=I.lex;e.Lexer=I,e.Parser=B,e.Renderer=N,e.Slugger=M,e.TextRenderer=R,e.Tokenizer=j,e.getDefaults=i,e.lexer=X,e.marked=L,e.options=U,e.parse=J,e.parseInline=V,e.parser=K,e.setOptions=z,e.use=q,e.walkTokens=H,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t){e.exports=function(e){const t={literal:"true false null"},r=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],n=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],i={end:",",endsWithParent:!0,excludeEnd:!0,contains:n,keywords:t},a={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(i,{begin:/:/})].concat(r),illegal:"\\S"},o={begin:"\\[",end:"\\]",contains:[e.inherit(i)],illegal:"\\S"};return n.push(a,o),r.forEach((function(e){n.push(e)})),{name:"JSON",contains:n,keywords:t,illegal:"\\S"}}},function(e,t){e.exports=function(e){var t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},i=e.inherit(n,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),a={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},o={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},s={begin:/\{/,end:/\}/,contains:[o],illegal:"\\n",relevance:0},u={begin:"\\[",end:"\\]",contains:[o],illegal:"\\n",relevance:0},l=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},a,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},s,u,n],c=[...l];return c.pop(),c.push(i),o.contains=c,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:l}}},function(e,t){function r(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{className:"variable",variants:[{begin:r(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,i]};i.contains.push(o);const s={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]},u=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[u,e.SHEBANG(),l,s,e.HASH_COMMENT_MODE,a,o,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},t]}}},function(e,t,r){"use strict";var n=r(88);function i(e,t,r){if(3===arguments.length)return i.set(e,t,r);if(2===arguments.length)return i.get(e,t);var n=i.bind(i,e);for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a].bind(n,e));return n}e.exports=i,i.get=function(e,t){for(var r=Array.isArray(t)?t:i.parse(t),n=0;n<r.length;++n){var a=r[n];if("object"!=typeof e||!(a in e))throw new Error("Invalid reference token: "+a);e=e[a]}return e},i.set=function(e,t,r){var n=Array.isArray(t)?t:i.parse(t),a=n[0];if(0===n.length)throw Error("Can not set the root object");for(var o=0;o<n.length-1;++o){var s=n[o];"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&("-"===s&&Array.isArray(e)&&(s=e.length),a=n[o+1],s in e||(a.match(/^(\d+|-)$/)?e[s]=[]:e[s]={}),e=e[s])}return"-"===a&&Array.isArray(e)&&(a=e.length),e[a]=r,this},i.remove=function(e,t){var r=Array.isArray(t)?t:i.parse(t),n=r[r.length-1];if(void 0===n)throw new Error('Invalid JSON pointer for remove: "'+t+'"');var a=i.get(e,r.slice(0,-1));if(Array.isArray(a)){var o=+n;if(""===n&&isNaN(o))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(a,o,1)}else delete a[n]},i.dict=function(e,t){var r={};return i.walk(e,(function(e,t){r[t]=e}),t),r},i.walk=function(e,t,r){var a=[];r=r||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function e(o){n(o,(function(n,o){a.push(String(o)),r(n)?e(n):t(n,i.compile(a)),a.pop()}))}(e)},i.has=function(e,t){try{i.get(e,t)}catch(e){return!1}return!0},i.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},i.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},i.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(i.unescape)},i.compile=function(e){return 0===e.length?"":"/"+e.map(i.escape).join("/")}},function(e,t,r){const n=r(129),i=r(262);n.registerSchemaParser(i),e.exports=n},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;0!=i--;){var o=a[i];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},function(e,t,r){"use strict";e.exports=h;const n=r(47),i=r(18),{JSONParserError:a,InvalidPointerError:o,MissingPointerError:s,isHandledError:u}=r(19),l=/\//g,c=/~/g,p=/~1/g,f=/~0/g;function h(e,t,r){this.$ref=e,this.path=t,this.originalPath=r||t,this.value=void 0,this.circular=!1,this.indirections=0}function d(e,t){if(n.isAllowed$Ref(e.value,t)){let r=i.resolve(e.path,e.value.$ref);if(r!==e.path){let i=e.$ref.$refs._resolve(r,e.path,t);return null!==i&&(e.indirections+=i.indirections+1,n.isExtended$Ref(e.value)?(e.value=n.dereference(e.value,i.value),!1):(e.$ref=i.$ref,e.path=i.path,e.value=i.value,!0))}e.circular=!0}}function m(e,t,r){if(!e.value||"object"!=typeof e.value)throw new a(`Error assigning $ref pointer "${e.path}". \nCannot set "${t}" of a non-object.`);return"-"===t&&Array.isArray(e.value)?e.value.push(r):e.value[t]=r,r}function y(e){if(u(e))throw e;return e}h.prototype.resolve=function(e,t,r){let n=h.parse(this.path,this.originalPath);this.value=y(e);for(let e=0;e<n.length;e++){if(d(this,t)&&(this.path=h.join(this.path,n.slice(e))),"object"==typeof this.value&&null!==this.value&&"$ref"in this.value)return this;let r=n[e];if(void 0===this.value[r]||null===this.value[r])throw this.value=null,new s(r,this.originalPath);this.value=this.value[r]}return(!this.value||this.value.$ref&&i.resolve(this.path,this.value.$ref)!==r)&&d(this,t),this},h.prototype.set=function(e,t,r){let n,i=h.parse(this.path);if(0===i.length)return this.value=t,t;this.value=y(e);for(let e=0;e<i.length-1;e++)d(this,r),n=i[e],this.value&&void 0!==this.value[n]?this.value=this.value[n]:this.value=m(this,n,{});return d(this,r),n=i[i.length-1],m(this,n,t),e},h.parse=function(e,t){let r=i.getHash(e).substr(1);if(!r)return[];r=r.split("/");for(let e=0;e<r.length;e++)r[e]=decodeURIComponent(r[e].replace(p,"/").replace(f,"~"));if(""!==r[0])throw new o(r,void 0===t?e:t);return r.slice(1)},h.join=function(e,t){-1===e.indexOf("#")&&(e+="#"),t=Array.isArray(t)?t:[t];for(let r=0;r<t.length;r++){let n=t[r];e+="/"+encodeURIComponent(n.replace(c,"~0").replace(l,"~1"))}return e}},function(e,t,r){"use strict";var n=r(179),i=r(180);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),p=["%","/","?",";","#"].concat(c),f=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(181);function b(e,t,r){if(e&&i.isObject(e)&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}a.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),s=-1!==a&&a<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var b=e=l.join(s);if(b=b.trim(),!r&&1===e.split("#").length){var x=u.exec(b);if(x)return this.path=b,this.href=b,this.pathname=x[1],x[2]?(this.search=x[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var E=o.exec(b);if(E){var w=(E=E[0]).toLowerCase();this.protocol=w,b=b.substr(E.length)}if(r||E||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var D="//"===b.substr(0,2);!D||E&&y[E]||(b=b.substr(2),this.slashes=!0)}if(!y[E]&&(D||E&&!g[E])){for(var A,S,k=-1,C=0;C<f.length;C++){-1!==(P=b.indexOf(f[C]))&&(-1===k||P<k)&&(k=P)}-1!==(S=-1===k?b.lastIndexOf("@"):b.lastIndexOf("@",k))&&(A=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(A)),k=-1;for(C=0;C<p.length;C++){var P;-1!==(P=b.indexOf(p[C]))&&(-1===k||P<k)&&(k=P)}-1===k&&(k=b.length),this.host=b.slice(0,k),b=b.slice(k),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var j=this.hostname.split(/\./),F=(C=0,j.length);C<F;C++){var _=j[C];if(_&&!_.match(h)){for(var O="",$=0,I=_.length;$<I;$++)_.charCodeAt($)>127?O+="x":O+=_[$];if(!O.match(h)){var N=j.slice(0,C),R=j.slice(C+1),M=_.match(d);M&&(N.push(M[1]),R.unshift(M[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var B=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+B,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[w])for(C=0,F=c.length;C<F;C++){var U=c[C];if(-1!==b.indexOf(U)){var z=encodeURIComponent(U);z===U&&(z=escape(U)),b=b.split(U).join(z)}}var q=b.indexOf("#");-1!==q&&(this.hash=b.substr(q),b=b.slice(0,q));var H=b.indexOf("?");if(-1!==H?(this.search=b.substr(H),this.query=b.substr(H+1),t&&(this.query=v.parse(this.query)),b=b.slice(0,H)):t&&(this.search="",this.query={}),b&&(this.pathname=b),g[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var V=this.search||"";this.path=B+V}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",a=!1,o="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(o=v.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==a?(a="//"+(a||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):a||(a=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+a+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},a.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(i.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var r=new a,n=Object.keys(this),o=0;o<n.length;o++){var s=n[o];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),l=0;l<u.length;l++){var c=u[l];"protocol"!==c&&(r[c]=e[c])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!g[e.protocol]){for(var p=Object.keys(e),f=0;f<p.length;f++){var h=p[f];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||y[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),x=e.host||e.pathname&&"/"===e.pathname.charAt(0),E=x||b||r.host&&e.pathname,w=E,D=r.pathname&&r.pathname.split("/")||[],A=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(A&&(r.hostname="",r.port=null,r.host&&(""===D[0]?D[0]=r.host:D.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),E=E&&(""===d[0]||""===D[0])),x)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,D=d;else if(d.length)D||(D=[]),D.pop(),D=D.concat(d),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(A)r.hostname=r.host=D.shift(),(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!D.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=D.slice(-1)[0],k=(r.host||e.host||D.length>1)&&("."===S||".."===S)||""===S,C=0,P=D.length;P>=0;P--)"."===(S=D[P])?D.splice(P,1):".."===S?(D.splice(P,1),C++):C&&(D.splice(P,1),C--);if(!E&&!w)for(;C--;C)D.unshift("..");!E||""===D[0]||D[0]&&"/"===D[0].charAt(0)||D.unshift(""),k&&"/"!==D.join("/").substr(-1)&&D.push("");var T,j=""===D[0]||D[0]&&"/"===D[0].charAt(0);A&&(r.hostname=r.host=j?"":D.length?D.shift():"",(T=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(E=E||r.host&&D.length)&&!j&&D.unshift(""),D.length?r.pathname=D.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick((function(){e.apply(null,a)}))}}}:e.exports=t}).call(this,r(16))},function(e,t,r){"use strict";var n=r(34);e.exports=n.DEFAULT=new n({include:[r(50)],explicit:[r(231),r(232),r(233)]})},function(e,t,r){"use strict";var n;function i(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:n.SEQ,parent:null}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"}(n=t.Kind||(t.Kind={})),t.newMapping=function(e,t){var r=t?t.endPosition:e.endPosition+1;return{key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:n.MAPPING,parent:null,errors:[]}},t.newAnchorRef=function(e,t,r,i){return{errors:[],referencesAnchor:e,value:i,startPosition:t,endPosition:r,kind:n.ANCHOR_REF,parent:null}},t.newScalar=function(e){void 0===e&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:n.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return"string"!=typeof e&&(t.valueObject=e),t},t.newItems=i,t.newSeq=function(){return i()},t.newMap=function(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:n.MAP,parent:null}}},function(e,t,r){"use strict";
16
16
  /** @license React v16.14.0
17
17
  * react.production.min.js
18
18
  *