diff --git a/asyncapi-web-component.js b/asyncapi-web-component.js index 76cc470..caad3f6 100644 --- a/asyncapi-web-component.js +++ b/asyncapi-web-component.js @@ -1,52 +1,33 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("AsyncApiWebComponent",[],t):"object"==typeof exports?exports.AsyncApiWebComponent=t():e.AsyncApiWebComponent=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=303)}([function(e,t,n){"use strict";e.exports=n(116)},function(e,t,n){"use strict";(function(e){ -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -var r=n(128),i=n(129),o=n(67);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(c.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 n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return L(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var p=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+p<=n)switch(p){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),p=0;pi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function $(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function I(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||I(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return o||I(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||$(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);$(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);$(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||$(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(8))},function(e,t){const n=e.exports,r=(e,t,n,r)=>{if("string"!=typeof t||!e)return null;const i=e[String(t)];return void 0===i?null:n?new n(i,r):i};n.createMapOfType=(e,t,n)=>{const r={};return e?(Object.entries(e).forEach(([e,i])=>{r[String(e)]=new t(i,n)}),r):r},n.getMapValueOfType=(e,t,n,i)=>r(e,t,n,i),n.getMapValueByKey=(e,t)=>r(e,t),n.mix=(e,...t)=>{let n=!1;if(t.some((function(t){return e===t||(n=Object.keys(t).some(t=>e.prototype.hasOwnProperty(t)),n)})))throw n?new Error(`invalid mix function: model ${e.name} has at least one method that it is trying to replace by mixin`):new Error(`invalid mix function: cannot use the model ${e.name} as a mixin`);return t.forEach(t=>Object.assign(e.prototype,t)),e}},function(e,t,n){const r=n(28);e.exports=class{constructor(e){if(null==e)throw new r(`Invalid JSON to instantiate the ${this.constructor.name} object.`);this._json=e}json(e){return void 0===e?this._json:this._json?this._json[String(e)]:void 0}}},function(e,t,n){"use strict";var r=n(33),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new r('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=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t){const n={hasExtensions(){return!!this.extensionKeys().length},extensions(){const e={};return Object.entries(this._json).forEach(([t,n])=>{/^x-[\w\d\.\-\_]+$/.test(t)&&(e[String(t)]=n)}),e},extensionKeys(){return Object.keys(this.extensions())},extKeys(){return this.extensionKeys()},hasExtension(e){return!!e.startsWith("x-")&&!!this._json[String(e)]},extension(e){return e.startsWith("x-")?this._json[String(e)]:null},hasExt(e){return this.hasExtension(e)},ext(e){return this.extension(e)}};e.exports=n},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,p=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):p=-1,u.length&&h())}function h(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(c=u,u=[];++p1)for(var n=1;n=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&&r.browser},t.isFileSystemPath=function(e){if(r.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;tdecodeURIComponent(e).replace(c,"/").replace(u,"~"))}}).call(this,n(6))},function(e,t,n){"use strict";const{Ono:r}=n(19),{stripHash:i,toFileSystemPath:o}=n(12),a=t.JSONParserError=class extends Error{constructor(e,t){super(),this.code="EUNKNOWN",this.message=e,this.source=t,this.path=null,r.extend(this)}get footprint(){return`${this.path}+${this.source}+${this.code}+${this.message}`}};c(a);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 '${o(e.$refs._root$Ref.path)}'`,r.extend(this)}static getParserErrors(e){const t=[];for(const n of Object.values(e.$refs._$refs))n.errors&&t.push(...n.errors);return t}get errors(){return e.getParserErrors(this.files)}};c(s);c(t.ParserError=class extends a{constructor(e,t){super(`Error parsing ${t}: ${e}`,t),this.code="EPARSER"}});c(t.UnmatchedParserError=class extends a{constructor(e){super(`Could not find parser for "${e}"`,e),this.code="EUNMATCHEDPARSER"}});c(t.ResolverError=class extends a{constructor(e,t){super(e.message||`Error reading file "${t}"`,t),this.code="ERESOLVER","code"in e&&(this.ioErrorCode=String(e.code))}});c(t.UnmatchedResolverError=class extends a{constructor(e){super(`Could not find resolver for "${e}"`,e),this.code="EUNMATCHEDRESOLVER"}});c(t.MissingPointerError=class extends a{constructor(e,t){super(`Token "${e}" does not exist.`,i(t)),this.code="EMISSINGPOINTER"}});function c(e){Object.defineProperty(e.prototype,"name",{value:e.name,enumerable:!0})}c(t.InvalidPointerError=class extends a{constructor(e,t){super(`Invalid $ref pointer "${e}". Pointers must begin with "#/"`,i(t)),this.code="EINVALIDPOINTER"}}),t.isHandledError=function(e){return e instanceof a||e instanceof s},t.normalizeError=function(e){return null===e.path&&(e.path=[]),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));const r=/\r?\n/,i=/\bono[ @]/;function o(e,t){let n=s(e.stack),r=t?t.stack:void 0;return n&&r?n+"\n\n"+r:n||r}function a(e,t,n){n?Object.defineProperty(t,"stack",{get:()=>o({stack:e.get.apply(t)},n),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,n=e.split(r);for(let e=0;e0)return n.join("\n")}return e}const c=["function","symbol","undefined"],u=["constructor","prototype","__proto__"],l=Object.getPrototypeOf({});function p(){let e={},t=this;for(let n of f(t))if("string"==typeof n){let r=t[n],i=typeof r;c.includes(i)||(e[n]=r)}return e}function f(e,t=[]){let n=[];for(;e&&e!==l;)n=n.concat(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)),e=Object.getPrototypeOf(e);let r=new Set(n);for(let e of t.concat(u))r.delete(e);return r}const h=["name","message","stack"];function d(e,t,n){let r=e;return function(e,t){let n=Object.getOwnPropertyDescriptor(e,"stack");!function(e){return Boolean(e&&e.configurable&&"function"==typeof e.get)}(n)?function(e){return Boolean(!e||e.writable||"function"==typeof e.set)}(n)&&(e.stack=o(e,t)):a(n,e,t)}(r,t),t&&"object"==typeof t&&function(e,t){let n=f(t,h),r=e,i=t;for(let e of n)if(void 0===r[e])try{r[e]=i[e]}catch(e){}}(r,t),r.toJSON=p,n&&"object"==typeof n&&Object.assign(r,n),r}const m=y;function y(e,t){function n(...n){let{originalError:r,props:i,message:o}=function(e,t){let n,r,i,o="";return"string"==typeof e[0]?i=e:"string"==typeof e[1]?(e[0]instanceof Error?n=e[0]:r=e[0],i=e.slice(1)):(n=e[0],r=e[1],i=e.slice(2)),i.length>0&&(o=t.format?t.format.apply(void 0,i):i.join(" ")),t.concatMessages&&n&&n.message&&(o+=(o?" \n":"")+n.message),{originalError:n,props:r,message:o}}(n,t);return d(new e(o),r,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),n[Symbol.species]=e,n}y.toJSON=function(e){return p.call(e)},y.extend=function(e,t,n){return n||t instanceof Error?d(e,t,n):t?d(e,void 0,t):d(e)}},,function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),l(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function u(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=l(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),E(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(_(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(E(n))return p(n)}var u,x="",j=!1,S=["{","}"];(h(n)&&(j=!0,S=["[","]"]),_(n))&&(x=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(x=" "+RegExp.prototype.toString.call(n)),w(n)&&(x=" "+Date.prototype.toUTCString.call(n)),E(n)&&(x=" "+p(n)),0!==a.length||j&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=j?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,x,S)):S[0]+x+S[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),A(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=m(n)?l(e,c.value,null):l(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return x(e)&&"[object RegExp]"===j(e)}function x(e){return"object"==typeof e&&null!==e}function w(e){return x(e)&&"[object Date]"===j(e)}function E(e){return x(e)&&("[object Error]"===j(e)||e instanceof Error)}function _(e){return"function"==typeof e}function j(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(v(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=d,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.isObject=x,t.isDate=w,t.isError=E,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(182);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",k(),t.format.apply(t,arguments))},t.inherits=n(183),t._extend=function(e,t){if(!t||!x(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t;if("function"!=typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;onew f(e,{parent:this})):null}oneOf(){return this._json.oneOf?this._json.oneOf.map(e=>new f(e,{parent:this})):null}anyOf(){return this._json.anyOf?this._json.anyOf.map(e=>new f(e,{parent:this})):null}not(){return this._json.not?new f(this._json.not,{parent:this}):null}items(){return this._json.items?Array.isArray(this._json.items)?this._json.items.map(e=>new f(e,{parent:this})):new f(this._json.items,{parent:this}):null}properties(){return r(this._json.properties,f,{parent:this})}property(e){return i(this._json.properties,e,f,{parent:this})}additionalProperties(){const e=this._json.additionalProperties;if(null!=e)return"boolean"==typeof e?e:new f(e,{parent:this})}additionalItems(){const e=this._json.additionalItems;if(null!=e)return new f(e,{parent:this})}patternProperties(){return r(this._json.patternProperties,f,{parent:this})}const(){return this._json.const}contains(){return this._json.contains?new f(this._json.contains,{parent:this}):null}dependencies(){if(!this._json.dependencies)return null;const e={};return Object.entries(this._json.dependencies).forEach(([t,n])=>{e[String(t)]=Array.isArray(n)?n:new f(n,{parent:this})}),e}propertyNames(){return this._json.propertyNames?new f(this._json.propertyNames,{parent:this}):null}if(){return this._json.if?new f(this._json.if,{parent:this}):null}then(){return this._json.then?new f(this._json.then,{parent:this}):null}else(){return this._json.else?new f(this._json.else,{parent:this}):null}format(){return this._json.format}contentEncoding(){return this._json.contentEncoding}contentMediaType(){return this._json.contentMediaType}definitions(){return r(this._json.definitions,f,{parent:this})}title(){return this._json.title}default(){return this._json.default}deprecated(){return this._json.deprecated}discriminator(){return this._json.discriminator}readOnly(){return!!this._json.readOnly}writeOnly(){return!!this._json.writeOnly}examples(){return this._json.examples}isBooleanSchema(){return"boolean"==typeof this._json}isCircular(){if(this.ext(s))return!0;let e=this.options.parent;for(;e;){if(e._json===this._json)return!0;e=e.options&&e.options.parent}return!1}circularSchema(){let e=this.options.parent;for(;e;){if(e._json===this._json)return e;e=e.options&&e.options.parent}}hasCircularProps(){return Array.isArray(this.ext(c))?this.ext(c).length>0:Object.entries(this.properties()||{}).map(([e,t])=>{if(t.isCircular())return e}).filter(Boolean).length>0}circularProps(){return Array.isArray(this.ext(c))?this.ext(c):Object.entries(this.properties()||{}).map(([e,t])=>{if(t.isCircular())return e}).filter(Boolean)}}e.exports=o(f,u,l,p)},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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";n.r(t),function(e){var r=n(60);n.d(t,"ono",(function(){return r.a}));var i=n(14);n.d(t,"Ono",(function(){return i.a}));n(85);t.default=r.a,"object"==typeof e.exports&&(e.exports=Object.assign(e.exports.default,e.exports))}.call(this,n(181)(e))},function(e,t,n){"use strict";var r=n(42),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=p;var o=Object.create(n(32));o.inherits=n(18);var a=n(92),s=n(55);o.inherits(p,a);for(var c=i(s.prototype),u=0;u/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const c=e=>!!e.kind;class u{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!c(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){c(e)&&(this.buffer+="")}value(){return this.buffer}span(e){this.buffer+=``}}class l{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=>{l._collapse(e)}))}}class p extends l{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 n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new u(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,n={}){const r=s({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(v),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},x=b("//","$"),w=b("/\\*","\\*/"),E=b("#","$"),_={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},j={className:"number",begin:d,relevance:0},S={className:"number",begin:"\\b(0b[01]+)",relevance:0},D={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},k={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[m,{begin:/\[/,end:/\]/,relevance:0,contains:[m]}]}]},A={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},C={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},P={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var T=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:w,HASH_COMMENT_MODE:E,NUMBER_MODE:_,C_NUMBER_MODE:j,BINARY_NUMBER_MODE:S,CSS_NUMBER_MODE:D,REGEXP_MODE:k,TITLE_MODE:A,UNDERSCORE_TITLE_MODE:C,METHOD_GUARD:P,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 F(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 B(e,t){return t?Number(t):function(e){return R.includes(e.toLowerCase())}(e)?0:1}function M(e,{plugins:t}){function n(t,n){return new RegExp(f(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class r{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=n(function(e,t="|"){let n=0;return e.map(e=>{n+=1;const t=n;let r=f(e),i="";for(;r.length>0;){const e=h.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&n++)}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 n=t.findIndex((e,t)=>t>0&&void 0!==e),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}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 r;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),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 n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}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(r,o){const a=r;if(r.isCompiled)return a;[I].forEach(e=>e(r,o)),e.compilerExtensions.forEach(e=>e(r,o)),r.__beforeBegin=null,[O,F,N].forEach(e=>e(r,o)),r.isCompiled=!0;let c=null;if("object"==typeof r.keywords&&(c=r.keywords.$pattern,delete r.keywords.$pattern),r.keywords&&(r.keywords=function e(t,n,r="keyword"){const i={};return"string"==typeof t?o(r,t.split(" ")):Array.isArray(t)?o(r,t):Object.keys(t).forEach((function(r){Object.assign(i,e(t[r],n,r))})),i;function o(e,t){n&&(t=t.map(e=>e.toLowerCase())),t.forEach((function(t){const n=t.split("|");i[n[0]]=[e,B(n[0],n[1])]}))}}(r.keywords,e.case_insensitive)),r.lexemes&&c)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return c=c||r.lexemes||/\w+/,a.keywordPatternRe=n(c,!0),o&&(r.begin||(r.begin=/\B|\b/),a.beginRe=n(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(a.endRe=n(r.end)),a.terminatorEnd=f(r.end)||"",r.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),r.illegal&&(a.illegalRe=n(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.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?r:e)}))),r.contains.forEach((function(e){t(e,a)})),r.starts&&t(r.starts,o),a.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}(a),a}(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,a(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 z={"after:highlightElement":({el:e,result:t,text:n})=>{const r=q(e);if(!r.length)return;const i=document.createElement("div");i.innerHTML=t.value,t.value=function(e,t,n){let r=0,i="";const o=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function u(e){i+=""}function l(e){("start"===e.event?c:u)(e.node)}for(;e.length||t.length;){let t=s();if(i+=a(n.substring(r,t[0].offset)),r=t[0].offset,t===e){o.reverse().forEach(u);do{l(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===r);o.reverse().forEach(c)}else"start"===t[0].event?o.push(t[0].node):o.pop(),l(t.splice(0,1)[0])}return i+a(n.substr(r))}(r,q(i),n)}};function U(e){return e.nodeName.toLowerCase()}function q(e){const t=[];return function e(n,r){for(let i=n.firstChild;i;i=i.nextSibling)3===i.nodeType?r+=i.nodeValue.length:1===i.nodeType&&(t.push({event:"start",offset:r,node:i}),r=e(i,r),U(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:i}));return r}(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)},W=a,X=s,G=Symbol("nomatch");var Y=function(e){const t=Object.create(null),n=Object.create(null),i=[];let a=!0;const s=/(^(<[^>]+>|\t|)+|\n)/gm,c="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let l={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:p};function f(e){return l.noHighlightRe.test(e)}function h(e,t,n,r){let i="",o="";"object"==typeof t?(i=e,n=t.ignoreIllegals,o=t.language,r=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"),o=e,i=t);const a={code:i,language:o};D("before:highlight",a);const s=a.result?a.result:d(a.language,a.code,n,r);return s.code=a.code,D("after:highlight",s),s}function d(e,n,r,s){function u(e,t){const n=x.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function p(){null!=j.subLanguage?function(){if(""===k)return;let e=null;if("string"==typeof j.subLanguage){if(!t[j.subLanguage])return void D.addText(k);e=d(j.subLanguage,k,!0,S[j.subLanguage]),S[j.subLanguage]=e.top}else e=m(k,j.subLanguage.length?j.subLanguage:null);j.relevance>0&&(A+=e.relevance),D.addSublanguage(e.emitter,e.language)}():function(){if(!j.keywords)return void D.addText(k);let e=0;j.keywordPatternRe.lastIndex=0;let t=j.keywordPatternRe.exec(k),n="";for(;t;){n+=k.substring(e,t.index);const r=u(j,t);if(r){const[e,i]=r;if(D.addText(n),n="",A+=i,e.startsWith("_"))n+=t[0];else{const n=x.classNameAliases[e]||e;D.addKeyword(t[0],n)}}else n+=t[0];e=j.keywordPatternRe.lastIndex,t=j.keywordPatternRe.exec(k)}n+=k.substr(e),D.addText(n)}(),k=""}function f(e){return e.className&&D.openNode(x.classNameAliases[e.className]||e.className),j=Object.create(e,{parent:{value:j}}),j}function h(e){return 0===j.matcher.regexIndex?(k+=e[0],1):(T=!0,0)}function y(e){const t=e[0],n=e.rule,r=new o(n),i=[n.__beforeBegin,n["on:begin"]];for(const n of i)if(n&&(n(e,r),r.isMatchIgnored))return h(t);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?k+=t:(n.excludeBegin&&(k+=t),p(),n.returnBegin||n.excludeBegin||(k=t)),f(n),n.returnBegin?0:t.length}function g(e){const t=e[0],r=n.substr(e.index),i=function e(t,n,r){let i=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(t.endRe,r);if(i){if(t["on:end"]){const e=new o(t);t["on:end"](n,e),e.isMatchIgnored&&(i=!1)}if(i){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,n,r)}(j,e,r);if(!i)return G;const a=j;a.skip?k+=t:(a.returnEnd||a.excludeEnd||(k+=t),p(),a.excludeEnd&&(k=t));do{j.className&&D.closeNode(),j.skip||j.subLanguage||(A+=j.relevance),j=j.parent}while(j!==i.parent);return i.starts&&(i.endSameAsBegin&&(i.starts.endRe=i.endRe),f(i.starts)),a.returnEnd?0:t.length}let v={};function b(t,i){const o=i&&i[0];if(k+=t,null==o)return p(),0;if("begin"===v.type&&"end"===i.type&&v.index===i.index&&""===o){if(k+=n.slice(i.index,i.index+1),!a){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&&!r){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(j.className||"")+'"');throw e.mode=j,e}if("end"===i.type){const e=g(i);if(e!==G)return e}if("illegal"===i.type&&""===o)return 1;if(P>1e5&&P>3*i.index){throw new Error("potential infinite loop, way more iterations than matches")}return k+=o,o.length}const x=_(e);if(!x)throw V(c.replace("{}",e)),new Error('Unknown language: "'+e+'"');const w=M(x,{plugins:i});let E="",j=s||w;const S={},D=new l.__emitter(l);!function(){const e=[];for(let t=j;t!==x;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>D.openNode(e))}();let k="",A=0,C=0,P=0,T=!1;try{for(j.matcher.considerAll();;){P++,T?T=!1:j.matcher.considerAll(),j.matcher.lastIndex=C;const e=j.matcher.exec(n);if(!e)break;const t=b(n.substring(C,e.index),e);C=e.index+t}return b(n.substr(C)),D.closeAllNodes(),D.finalize(),E=D.toHTML(),{relevance:Math.floor(A),value:E,language:e,illegal:!1,emitter:D,top:j}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:n.slice(C-100,C+100),mode:t.mode},sofar:E,relevance:0,value:W(n),emitter:D};if(a)return{illegal:!1,relevance:0,value:W(n),emitter:D,language:e,top:j,errorRaised:t};throw t}}function m(e,n){n=n||l.languages||Object.keys(t);const r=function(e){const t={relevance:0,emitter:new l.__emitter(l),value:W(e),illegal:!1,top:u};return t.emitter.addText(e),t}(e),i=n.filter(_).filter(S).map(t=>d(t,e,!1));i.unshift(r);const o=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(_(e.language).supersetOf===t.language)return 1;if(_(t.language).supersetOf===e.language)return-1}return 0}),[a,s]=o,c=a;return c.second_best=s,c}const y={"before:highlightElement":({el:e})=>{l.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n"))},"after:highlightElement":({result:e})=>{l.useBR&&(e.value=e.value.replace(/\n/g,"
"))}},g=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:e})=>{l.tabReplace&&(e.value=e.value.replace(g,e=>e.replace(/\t/g,l.tabReplace)))}};function b(e){let t=null;const r=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=l.languageDetectRe.exec(t);if(n){const t=_(n[1]);return t||(J(c.replace("{}",n[1])),J("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>f(e)||_(e))}(e);if(f(r))return;D("before:highlightElement",{el:e,language:r}),t=e;const i=t.textContent,o=r?h(i,{language:r,ignoreIllegals:!0}):m(i);D("after:highlightElement",{el:e,result:o,text:i}),e.innerHTML=o.value,function(e,t,r){const i=t?n[t]:r;e.classList.add("hljs"),i&&e.classList.add(i)}(e,r,o.language),e.result={language:o.language,re:o.relevance,relavance:o.relevance},o.second_best&&(e.second_best={language:o.second_best.language,re:o.second_best.relevance,relavance:o.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 w=!1;function E(){if("loading"===document.readyState)return void(w=!0);document.querySelectorAll("pre code").forEach(b)}function _(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function j(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function S(e){const t=_(e);return t&&!t.disableAutodetect}function D(e,t){const n=e;i.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){w&&E()}),!1),Object.assign(e,{highlight:h,highlightAuto:m,highlightAll:E,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,l.tabReplace||l.useBR?t.replace(s,e=>"\n"===e?l.useBR?"
":e:l.tabReplace?e.replace(/\t/g,l.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")),l=X(l,e)},initHighlighting:x,initHighlightingOnLoad:function(){K("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),w=!0},registerLanguage:function(n,r){let i=null;try{i=r(e)}catch(e){if(V("Language definition for '{}' could not be registered.".replace("{}",n)),!a)throw e;V(e),i=u}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&j(i.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){return Object.keys(t)},getLanguage:_,registerAliases:j,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=_(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:S,inherit:X,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(){a=!1},e.safeMode=function(){a=!0},e.versionString="10.7.3";for(const e in T)"object"==typeof T[e]&&r(T[e]);return Object.assign(e,T),e.addPlugin(y),e.addPlugin(z),e.addPlugin(v),e}({});e.exports=Y},function(e,t,n){"use strict";function r(e,t,n,r){var i=r?" !== ":" === ",o=r?" || ":" && ",a=r?"!":"",s=r?"":"!";switch(e){case"null":return t+i+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+o+"typeof "+t+i+'"object"'+o+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+s+"("+t+" % 1)"+o+t+i+t+(n?o+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+i+'"'+e+'"'+(n?o+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+i+'"'+e+'"'}}e.exports={copy:function(e,t){for(var n in t=t||{},e)t[n]=e[n];return t},checkDataType:r,checkDataTypes:function(e,t,n){switch(e.length){case 1:return r(e[0],t,n,!0);default:var i="",a=o(e);for(var s in a.array&&a.object&&(i=a.null?"(":"(!"+t+" || ",i+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)i+=(i?" && ":"")+r(s,t,n,!0);return i}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var n=[],r=0;r=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(o="data"+(t-r||""),!i)return o}for(var s=o,u=i.split("/"),l=0;lt?l(e):(this._pos+e>t&&(this._slab=l(t),this._pos=0),this._slab.slice(this._pos,this._pos+=e))},m.prototype.nextBoolean=function(){return!!(this._nextInt()%2)},m.prototype.nextInt=function(e,t){return void 0===t&&(t=e,e=0),t=void 0===t?this._max:t,e+Math.floor(this.nextFloat()*(t-e))},m.prototype.nextFloat=function(e,t){return void 0===t&&(t=e,e=0),e+((t=void 0===t?1:t)-e)*this._nextInt()/this._max},m.prototype.nextString=function(e,t){e|=0;var n="";(t=t||"aA").indexOf("a")>-1&&(n+="abcdefghijklmnopqrstuvwxyz"),t.indexOf("A")>-1&&(n+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),t.indexOf("#")>-1&&(n+="0123456789"),t.indexOf("!")>-1&&(n+="~`!@#$%^&*()_+-={}[]:\";'<>?,./|\\");for(var r=[],i=0;i0&&n[r].index>1].index;)e=n[r],n[r]=n[t],n[t]=e,r=t},y.prototype.pop=function(){var e=this._items,t=e.length-1|0,n=e[0];if(!n||n.index>this._index)return null;if(this._index++,!t)return e.pop(),n;e[0]=e.pop();for(var r,i,o,a,s,c,u,l=t>>1,p=0;p=a.index));)e[o]=a,e[p]=s,p=o;return n},g.prototype.isValid=function(){return this.pos<=this.buf.length},g.prototype._invalidate=function(){this.pos=this.buf.length+1},g.prototype.readBoolean=function(){return!!this.buf[this.pos++]},g.prototype.skipBoolean=function(){this.pos++},g.prototype.writeBoolean=function(e){this.buf[this.pos++]=!!e},g.prototype.readInt=g.prototype.readLong=function(){var e,t,n,r,i=0,o=0,a=this.buf;do{t=128&(e=a[this.pos++]),i|=(127&e)<>1^-(1&i)},g.prototype.skipInt=g.prototype.skipLong=function(){for(var e=this.buf;128&e[this.pos++];);},g.prototype.writeInt=g.prototype.writeLong=function(e){var t,n,r=this.buf;if(e>=-1073741824&&e<1073741824){n=e>=0?e<<1:~e<<1|1;do{r[this.pos]=127&n,n>>=7}while(n&&(r[this.pos++]|=128))}else{t=e>=0?2*e:2*-e-1;do{r[this.pos]=127&t,t/=128}while(t>=1&&(r[this.pos++]|=128))}this.pos++},g.prototype.readFloat=function(){var e=this.buf,t=this.pos;return this.pos+=4,this.pos>e.length?0:this.buf.readFloatLE(t)},g.prototype.skipFloat=function(){this.pos+=4},g.prototype.writeFloat=function(e){var t=this.buf,n=this.pos;if(this.pos+=4,!(this.pos>t.length))return this.buf.writeFloatLE(e,n)},g.prototype.readDouble=function(){var e=this.buf,t=this.pos;return this.pos+=8,this.pos>e.length?0:this.buf.readDoubleLE(t)},g.prototype.skipDouble=function(){this.pos+=8},g.prototype.writeDouble=function(e){var t=this.buf,n=this.pos;if(this.pos+=8,!(this.pos>t.length))return this.buf.writeDoubleLE(e,n)},g.prototype.readFixed=function(e){var t=this.pos;if(this.pos+=e,!(this.pos>this.buf.length)){var n=s.alloc(e);return this.buf.copy(n,0,t,t+e),n}},g.prototype.skipFixed=function(e){this.pos+=e},g.prototype.writeFixed=function(e,t){t=t||e.length;var n=this.pos;this.pos+=t,this.pos>this.buf.length||e.copy(this.buf,n,0,t)},g.prototype.readBytes=function(){var e=this.readLong();if(!(e<0))return this.readFixed(e);this._invalidate()},g.prototype.skipBytes=function(){var e=this.readLong();e<0?this._invalidate():this.pos+=e},g.prototype.writeBytes=function(e){var t=e.length;this.writeLong(t),this.writeFixed(e,t)},"function"==typeof a.prototype.utf8Slice?g.prototype.readString=function(){var e=this.readLong();if(e<0)return this._invalidate(),"";var t=this.pos,n=this.buf;return this.pos+=e,this.pos>n.length?void 0:this.buf.utf8Slice(t,t+e)}:g.prototype.readString=function(){var e=this.readLong();if(e<0)return this._invalidate(),"";var t=this.pos,n=this.buf;return this.pos+=e,this.pos>n.length?void 0:this.buf.slice(t,t+e).toString()},g.prototype.skipString=function(){var e=this.readLong();e<0?this._invalidate():this.pos+=e},g.prototype.writeString=function(e){var t=a.byteLength(e),n=this.buf;this.writeLong(t);var r,i,o,s,c=this.pos;if(this.pos+=t,!(this.pos>n.length))if(t>64&&"function"==typeof a.prototype.utf8Write)n.utf8Write(e,c,t);else for(r=0,i=t;r>6|192,n[c++]=63&o|128):55296==(64512&o)&&56320==(64512&(s=e.charCodeAt(r+1)))?(o=65536+((1023&o)<<10)+(1023&s),r++,n[c++]=o>>18|240,n[c++]=o>>12&63|128,n[c++]=o>>6&63|128,n[c++]=63&o|128):(n[c++]=o>>12|224,n[c++]=o>>6&63|128,n[c++]=63&o|128)},"function"==typeof a.prototype.latin1Write?g.prototype.writeBinary=function(e,t){var n=this.pos;this.pos+=t,this.pos>this.buf.length||this.buf.latin1Write(e,n,t)}:"function"==typeof a.prototype.binaryWrite?g.prototype.writeBinary=function(e,t){var n=this.pos;this.pos+=t,this.pos>this.buf.length||this.buf.binaryWrite(e,n,t)}:g.prototype.writeBinary=function(e,t){var n=this.pos;this.pos+=t,this.pos>this.buf.length||this.buf.write(e,n,t,"binary")},g.prototype.matchBoolean=function(e){return this.buf[this.pos++]-e.buf[e.pos++]},g.prototype.matchInt=g.prototype.matchLong=function(e){var t=this.readLong(),n=e.readLong();return t===n?0:t>1;128&e;)r|=(127&(e=a[this.pos++]))<=8&&(o-=8,n[i++]=r,r>>=8);return n[i]=r,t&&v(n,8),n},g.prototype.packLongBytes=function(e){var t,n=(128&e[7])>>7,r=this.buf,i=1,o=0,a=3;n?(v(e,8),t=1):t=0;for(var s=[e.readUIntLE(0,3),e.readUIntLE(3,3),e.readUIntLE(6,2)];a&&!s[--a];);for(;o7;)r[this.pos++]=127&t|128,t>>=7,i-=7;t|=s[a]<>=7}while(t&&(r[this.pos++]|=128));this.pos++,n&&v(e,8)},e.exports={abstractFunction:function(){throw new Error("abstract")},addDeprecatedGetters:function(e,t){var n,r,i,a,s=e.prototype;for(n=0,r=t.length;n=0)return-2;i=n}return i},hasDuplicates:function(e,t){var n,r,i,o=Object.create(null);for(n=0,r=e.length;n(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 r extends Error{constructor(e){super(),n(e,this),this.message=e.title}toJS(){return n(this,{})}}e.exports=r},function(e,t,n){const{getMapValueOfType:r}=n(2),i=n(126),o={hasExternalDocs(){return!(!this._json.externalDocs||!Object.keys(this._json.externalDocs).length)},externalDocs(){return r(this._json,"externalDocs",i)}};e.exports=o},function(e,t,n){"use strict";e.exports=l;const r=n(40),{InvalidPointerError:i,isHandledError:o,normalizeError:a}=n(13),{safePointerToPath:s,stripHash:c,getHash:u}=n(12);function l(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0,this.errors=void 0}l.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(a).filter(({footprint:e})=>!t.includes(e))):t.includes(e.footprint)||this.errors.push(a(e))},l.prototype.exists=function(e,t){try{return this.resolve(e,t),!0}catch(e){return!1}},l.prototype.get=function(e,t){return this.resolve(e,t).value},l.prototype.resolve=function(e,t,n,a){let l=new r(this,e,n);try{return l.resolve(this.value,t,a)}catch(e){if(!t||!t.continueOnError||!o(e))throw e;return null===e.path&&(e.path=s(u(a))),e instanceof i&&(e.source=decodeURI(c(a))),this.addError(e),null}},l.prototype.set=function(e,t){let n=new r(this,e);this.value=n.set(this.value,t)},l.is$Ref=function(e){return e&&"object"==typeof e&&"string"==typeof e.$ref&&e.$ref.length>0},l.isExternal$Ref=function(e){return l.is$Ref(e)&&"#"!==e.$ref[0]},l.isAllowed$Ref=function(e,t){if(l.is$Ref(e)){if("#/"===e.$ref.substr(0,2)||"#"===e.$ref)return!0;if("#"!==e.$ref[0]&&(!t||t.resolve.external))return!0}},l.isExtended$Ref=function(e){return l.is$Ref(e)&&Object.keys(e).length>1},l.dereference=function(e,t){if(t&&"object"==typeof t&&l.isExtended$Ref(e)){let n={};for(let t of Object.keys(e))"$ref"!==t&&(n[t]=e[t]);for(let e of Object.keys(t))e in n||(n[e]=t[e]);return n}return t}},function(e,t,n){(t=e.exports=n(92)).Stream=t,t.Readable=t,t.Writable=n(55),t.Duplex=n(20),t.Transform=n(97),t.PassThrough=n(205)},function(e,t,n){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=n(1).Buffer.isBuffer},function(e,t,n){"use strict";function r(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||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=r},function(e,t,n){"use strict";var r=n(24);e.exports=new r({include:[n(98)],implicit:[n(228),n(229)],explicit:[n(230),n(231),n(232),n(233)]})},function(e,t,n){"use strict";var r=function(){function e(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!1),this.name="YAMLException",this.reason=e,this.mark=t,this.message=this.toString(!1),this.isWarning=n}return e.isInstance=function(t){if(null!=t&&t.getClassIdentifier&&"function"==typeof t.getClassIdentifier)for(var n=0,r=t.getClassIdentifier();nnew r(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 r(t):null}};e.exports=i},function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";e.exports=h;const r=n(30),i=n(12),{JSONParserError:o,InvalidPointerError:a,MissingPointerError:s,isHandledError:c}=n(13),u=/\//g,l=/~/g,p=/~1/g,f=/~0/g;function h(e,t,n){this.$ref=e,this.path=t,this.originalPath=n||t,this.value=void 0,this.circular=!1,this.indirections=0}function d(e,t){if(r.isAllowed$Ref(e.value,t)){let n=i.resolve(e.path,e.value.$ref);if(n!==e.path){let i=e.$ref.$refs._resolve(n,e.path,t);return null!==i&&(e.indirections+=i.indirections+1,r.isExtended$Ref(e.value)?(e.value=r.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,n){if(!e.value||"object"!=typeof e.value)throw new o(`Error assigning $ref pointer "${e.path}". \nCannot set "${t}" of a non-object.`);return"-"===t&&Array.isArray(e.value)?e.value.push(n):e.value[t]=n,n}function y(e){if(c(e))throw e;return e}h.prototype.resolve=function(e,t,n){let r=h.parse(this.path,this.originalPath);this.value=y(e);for(let e=0;e",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),p=["%","/","?",";","#"].concat(l),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=n(186);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=$[F];if(!O.match(h)){var N=P.slice(0,k),R=P.slice(k+1),B=$.match(d);B&&(N.push(B[1]),R.unshift(B[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=r.toASCII(this.hostname));var M=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+M,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[E])for(k=0,T=l.length;k0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=_.slice(-1)[0],D=(n.host||e.host||_.length>1)&&("."===S||".."===S)||""===S,k=0,A=_.length;A>=0;A--)"."===(S=_[A])?_.splice(A,1):".."===S?(_.splice(A,1),k++):k&&(_.splice(A,1),k--);if(!w&&!E)for(;k--;k)_.unshift("..");!w||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),D&&"/"!==_.join("/").substr(-1)&&_.push("");var C,P=""===_[0]||_[0]&&"/"===_[0].charAt(0);j&&(n.hostname=n.host=P?"":_.length?_.shift():"",(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift()));return(w=w||n.host&&_.length)&&!P&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.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,n){"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,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var u=c.length,l=y(c,u);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(1),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";var r=n(24);e.exports=r.DEFAULT=new r({include:[n(34)],explicit:[n(234),n(235),n(236)]})},function(e,t,n){"use strict";var r;function i(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:r.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"}(r=t.Kind||(t.Kind={})),t.newMapping=function(e,t){var n=t?t.endPosition:e.endPosition+1;return{key:e,value:t,startPosition:e.startPosition,endPosition:n,kind:r.MAPPING,parent:null,errors:[]}},t.newAnchorRef=function(e,t,n,i){return{errors:[],referencesAnchor:e,value:i,startPosition:t,endPosition:n,kind:r.ANCHOR_REF,parent:null}},t.newScalar=function(e){void 0===e&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:r.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:r.MAP,parent:null}}},function(e,t,n){e.exports=i;var r=n(43).EventEmitter;function i(){r.call(this)}n(18)(i,r),i.Readable=n(31),i.Writable=n(279),i.Duplex=n(280),i.Transform=n(281),i.PassThrough=n(282),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===r.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e}},function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o{const n=this.channel(t);n.hasPublish()&&n.publish().messages().forEach(t=>{e.set(t.uid(),t)}),n.hasSubscribe()&&n.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 _(this,t=>{t.uid()&&e.set(t.uid(),t)}),e}hasCircular(){return!!this._json[String(y)]}traverseSchemas(e,t){_(this,e,t)}static stringify(e,t){const n={...e.json()};return n[String(m)]=!0,JSON.stringify(n,function(){const e=new Map,t=new Map;let n=null;return function(r,i){const o=e.get(this)+(Array.isArray(this)?`[${r}]`:"."+r),a=i===Object(i);a&&e.set(i,o);const s=t.get(i)||"";if(!s&&a){const e=o.replace(/undefined\.\.?/,"");t.set(i,e)}const c="["===s[0]?"$":"$.";let u=s?`$ref:${c}${s}`:i;return null===n?n=i:u===n&&(u="$ref:$"),u}}(),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 j(t);delete t[String(m)];return function e(t,n,r,i,o){let a=t,s="$ref:$";if(void 0!==n){a=t[String(n)];const e=n?"."+n:"";s=i.get(t)+(Array.isArray(t)?`[${n}]`:e)}i.set(a,s),o.set(s,a);const c=o.get(a);c&&(t[String(n)]=c);"$ref:$"!==a&&"$ref:$"!==c||(t[String(n)]=r);if(a===Object(a))for(const t in a)e(a,t,r,i,o)}(t,void 0,t,new Map,new Map),new j(t)}}e.exports=o(j,f,p,h)},function(e,t,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=a(e),u=1;u1)||(this._json.message,!1)}traits(){const e=this._json["x-parser-original-traits"]||this._json.traits;return e?e.map(e=>new o(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&&1===this._json.message.oneOf.length?new i(this._json.message.oneOf[0]):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}security(){return this._json.security?this._json.security.map(e=>new a(e)):null}}},function(e,t,n){"use strict";var r=n(140),i=n(39),o=n(22),a=n(76),s=n(142);function c(e,t,n){var r=this._refs[n];if("string"==typeof r){if(!this._refs[r])return c.call(this,e,t,r);r=this._refs[r]}if((r=r||this._schemas[n])instanceof a)return d(r.schema,this._opts.inlineRefs)?r.schema:r.validate||this._compile(r);var i,o,s,l=u.call(this,t,n);return l&&(i=l.schema,t=l.root,s=l.baseId),i instanceof a?o=i.validate||e.call(this,i.schema,t,void 0,s):void 0!==i&&(o=d(i,this._opts.inlineRefs)?i:e.call(this,i,t,void 0,s)),o}function u(e,t){var n=r.parse(t),i=y(n),o=m(this._getId(e.schema));if(0===Object.keys(e.schema).length||i!==o){var s=v(i),c=this._refs[s];if("string"==typeof c)return l.call(this,e,c,n);if(c instanceof a)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[s])instanceof a))return;if(c.validate||this._compile(c),s==v(t))return{schema:c,root:e,baseId:o};e=c}if(!e.schema)return;o=m(this._getId(e.schema))}return f.call(this,n,o,e.schema,e)}function l(e,t,n){var r=u.call(this,e,t);if(r){var i=r.schema,o=r.baseId;e=r.root;var a=this._getId(i);return a&&(o=b(o,a)),f.call(this,n,o,i,e)}}e.exports=c,c.normalizeId=v,c.fullPath=m,c.url=b,c.ids=function(e){var t=v(this._getId(e)),n={"":t},a={"":m(t,!1)},c={},u=this;return s(e,{allKeys:!0},(function(e,t,s,l,p,f,h){if(""!==t){var d=u._getId(e),m=n[l],y=a[l]+"/"+p;if(void 0!==h&&(y+="/"+("number"==typeof h?h:o.escapeFragment(h))),"string"==typeof d){d=m=v(m?r.resolve(m,d):d);var g=u._refs[d];if("string"==typeof g&&(g=u._refs[g]),g&&g.schema){if(!i(e,g.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=v(y))if("#"==d[0]){if(c[d]&&!i(e,c[d]))throw new Error('id "'+d+'" resolves to more than one schema');c[d]=e}else u._refs[d]=y}n[t]=m,a[t]=y}})),c},c.inlineRef=d,c.schema=u;var p=o.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function f(e,t,n,r){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var i=e.fragment.split("/"),a=1;a-1?r:o.nextTick;v.WritableState=g;var u=Object.create(n(32));u.inherits=n(18);var l={deprecate:n(204)},p=n(93),f=n(44).Buffer,h=i.Uint8Array||function(){};var d,m=n(94);function y(){}function g(e,t){s=s||n(20),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(j,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),j(e,t))}(e,n,r,t,i);else{var a=E(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?c(x,e,n,a,i):x(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||n(20),!(d.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),p.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function x(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),j(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,p=n.callback;if(b(e,t,!1,t.objectMode?1:u.length,u,l,p),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var n=E(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}u.inherits(v,p),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):d=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,f.isBuffer(r)||r instanceof h);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=y),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(6),n(95).setImmediate,n(8))},function(e,t,n){const r=n(217),{yamlAST:i,loc:o}=n(239),a=n(263),s=n(264),c=n(28),u=e=>(e||"/").split("/").splice(1),l=e.exports,p=(e,t)=>"yaml"===t?i(e):"json"===t?a(e):void 0,f=(e,t,n)=>{if("js"===n)return{jsonPointer:"/"+e.join("/")};let r,i;return"yaml"===n?r=((e,t)=>{for(const n of t)e=e?e[l.untilde(n)]:null;return e})(t,e):"json"===n&&(r=((e,t)=>{let n=e;for(const e of t){if(!Array.isArray(n.children))return;let t;const r=n.children.find(n=>{if(n)return"Object"===n.type?t=n.children.find(t=>t.key.value===l.untilde(e)):"Property"===n.type&&n.key&&n.key.value===l.untilde(e)});if(!r)return;n=t?t.value:r.value}return n})(t,e)),r?("yaml"===n?i=r[o]:"json"===n&&(i=r.loc),i?{jsonPointer:"/"+e.join("/"),startLine:i.start.line,startColumn:i.start.column+1,startOffset:i.start.offset,endLine:i.end?i.end.line:void 0,endColumn:i.end?i.end.column+1:void 0,endOffset:i.end?i.end.offset:void 0}:{jsonPointer:"/"+e.join("/")}):{jsonPointer:"/"+e.join("/")}};l.tilde=e=>e.replace(/[~\/]{1}/g,e=>{switch(e){case"/":return"~1";case"~":return"~0"}return e}),l.untilde=e=>e.includes("~")?e.replace(/~[01]/g,e=>{switch(e){case"~1":return"/";case"~0":return"~"}return e}):e,l.toJS=e=>{if(!e)throw new c({type:"null-or-falsey-document",title:"Document can't be null or falsey."});if(e.constructor&&"Object"===e.constructor.name)return{initialFormat:"js",parsedJSON:e};if("string"!=typeof e)throw new c({type:"invalid-document-type",title:"The AsyncAPI document has to be either a string or a JS object."});if(e.trimLeft().startsWith("{"))try{return{initialFormat:"json",parsedJSON:s(e)}}catch(e){throw new c({type:"invalid-json",title:"The provided JSON is not valid.",detail:e.message,location:{startOffset:e.offset,startLine:e.startLine,startColumn:e.startColumn}})}else try{return{initialFormat:"yaml",parsedJSON:r.safeLoad(e)}}catch(e){throw new c({type:"invalid-yaml",title:"The provided YAML is not valid.",detail:e.message,location:{startOffset:e.mark.position,startLine:e.mark.line+1,startColumn:e.mark.column+1}})}},l.findRefs=(e,t,n)=>{let r=[];if(e.map(({path:e})=>r.push({location:[...e.map(l.tilde),"$ref"]})),"js"===t)return r.map(e=>({jsonPointer:"/"+e.location.join("/")}));if("yaml"===t){const e=i(n);r=r.map(n=>f(n.location,e,t))}else if("json"===t){const e=a(n);r=r.map(n=>f(n.location,e,t))}return r},l.getLocationOf=(e,t,n)=>{const r=p(t,n);return r?f(u(e),r,n):{jsonPointer:e}},l.improveAjvErrors=(e,t,n)=>{const r=p(t,n);return e.map(e=>{const t={jsonPointer:e.dataPath||"/"},i=e.params.additionalProperty,o=i?`${e.dataPath}/${i}`:e.dataPath;return{title:`${e.dataPath||"/"} ${e.message}`,location:r?f(u(o),r,n):t}})},l.parseUrlVariables=e=>{if("string"==typeof e)return e.match(/{(.+?)}/g)},l.parseUrlQueryParameters=e=>{if("string"==typeof e)return e.match(/\?((.*=.*)(&?))/g)},l.getBaseUrl=e=>(e="string"!=typeof e?String(e):e).substring(0,e.lastIndexOf("/")+1),l.getMissingProps=(e,t)=>(e=e.map(e=>e.replace(/[{}]/g,"")),t?e.filter(e=>!t.hasOwnProperty(e)):e),l.groupValidationErrors=(e,t,n,r,i)=>{const o=[];return n.forEach((n,a)=>{"string"==typeof n&&(n=l.untilde(n));const s=e?`/${e}/${a}`:"/"+a;o.push({title:n?`${l.untilde(a)} ${t}: ${n}`:`${l.untilde(a)} ${t}`,location:l.getLocationOf(s,r,i)})}),o},l.setNotProvidedParams=(e,t,n,r,i)=>{const o=l.getMissingProps(e,t.parameters);o.length&&i.set(l.tilde(n),r?r.concat(o):o)},l.getUnknownServers=(e,t)=>{if(!t)return[];const n=t.servers;if(!n||0===n.length)return[];const r=e.servers;if(!r)return n;const i=new Map(Object.entries(r));return n.filter(e=>!i.has(e))},l.getDefaultSchemaFormat=e=>"application/vnd.aai.asyncapi;version="+e},function(e,t,n){"use strict";var r=n(24);e.exports=new r({explicit:[n(221),n(222),n(223)]})},function(e,t,n){"use strict";var r=new(n(36).Schema)({include:[n(243)],implicit:[n(253),n(254)],explicit:[n(255),n(256),n(257),n(258)]});e.exports=r},function(e,t,n){"use strict";var r=n(26),i=n(1),o=n(16),a=i.Buffer,s=i.SlowBuffer,c=r.Tap,u=o.debuglog("avsc:types"),l=o.format,p={array:$,boolean:b,bytes:S,double:_,enum:C,error:O,fixed:P,float:E,int:x,long:w,map:T,null:v,record:O,string:j},f=new r.Lcg,h=new c(new s(1024)),d=null,m=[];function y(e,t){var n;if(d?(n=d,m.push([d,this]),d=null):n=this,this._hash=new B,this.name=void 0,this.aliases=void 0,this.doc=e&&e.doc?""+e.doc:void 0,e){var r=e.name,i=void 0===e.namespace?t&&t.namespace:e.namespace;if(void 0!==r){if(U(r=W(r,i)))throw new Error(l("cannot rename primitive type: %j",r));var o=t&&t.registry;if(o){if(void 0!==o[r])throw new Error(l("duplicate type name: %s",r));o[r]=n}}else if(t&&t.noAnonymousTypes)throw new Error(l("missing name property in schema: %j",e));this.name=r,this.aliases=e.aliases?e.aliases.map((function(e){return W(e,i)})):[]}}function g(e){y.call(this),this._branchConstructor=this._createBranchConstructor(),e||Object.freeze(this)}function v(){g.call(this)}function b(){g.call(this)}function x(){g.call(this)}function w(){g.call(this)}function E(){g.call(this)}function _(){g.call(this)}function j(){g.call(this)}function S(){g.call(this)}function D(e,t){if(y.call(this),!Array.isArray(e))throw new Error(l("non-array union schema: %j",e));if(!e.length)throw new Error("empty union");this.types=Object.freeze(e.map((function(e){return y.forSchema(e,t)}))),this._branchIndices={},this.types.forEach((function(e,t){if(y.isType(e,"union"))throw new Error("unions cannot be directly nested");var n=e.branchName;if(void 0!==this._branchIndices[n])throw new Error(l("duplicate union branch name: %j",n));this._branchIndices[n]=t}),this)}function k(e,t){D.call(this,e,t),this._dynamicBranches=null,this._bucketIndices={},this.types.forEach((function(e,t){if(y.isType(e,"abstract","logical"))this._dynamicBranches||(this._dynamicBranches=[]),this._dynamicBranches.push({index:t,type:e});else{var n=X(e);if(void 0!==this._bucketIndices[n])throw new Error(l("ambiguous unwrapped union: %j",this));this._bucketIndices[n]=t}}),this),Object.freeze(this)}function A(e,t){D.call(this,e,t),Object.freeze(this)}function C(e,t){if(y.call(this,e,t),!Array.isArray(e.symbols)||!e.symbols.length)throw new Error(l("invalid enum symbols: %j",e.symbols));if(this.symbols=Object.freeze(e.symbols.slice()),this._indices={},this.symbols.forEach((function(e,t){if(!r.isValidName(e))throw new Error(l("invalid %s symbol: %j",this,e));if(void 0!==this._indices[e])throw new Error(l("duplicate %s symbol: %j",this,e));this._indices[e]=t}),this),this.default=e.default,void 0!==this.default&&void 0===this._indices[this.default])throw new Error(l("invalid %s default: %j",this,this.default));this._branchConstructor=this._createBranchConstructor(),Object.freeze(this)}function P(e,t){if(y.call(this,e,t),e.size!==(0|e.size)||e.size<0)throw new Error(l("invalid %s size",this.branchName));this.size=0|e.size,this._branchConstructor=this._createBranchConstructor(),Object.freeze(this)}function T(e,t){if(y.call(this),!e.values)throw new Error(l("missing map values: %j",e));this.valuesType=y.forSchema(e.values,t),this._branchConstructor=this._createBranchConstructor(),Object.freeze(this)}function $(e,t){if(y.call(this),!e.items)throw new Error(l("missing array items: %j",e));this.itemsType=y.forSchema(e.items,t),this._branchConstructor=this._createBranchConstructor(),Object.freeze(this)}function O(e,t){var n=(t=t||{}).namespace;if(void 0!==e.namespace)t.namespace=e.namespace;else if(e.name){var i=r.impliedNamespace(e.name);void 0!==i&&(t.namespace=i)}if(y.call(this,e,t),!Array.isArray(e.fields))throw new Error(l("non-array record fields: %j",e.fields));if(r.hasDuplicates(e.fields,(function(e){return e.name})))throw new Error(l("duplicate field name: %j",e.fields));this._fieldsByName={},this.fields=Object.freeze(e.fields.map((function(e){var n=new N(e,t);return this._fieldsByName[n.name]=n,n}),this)),this._branchConstructor=this._createBranchConstructor(),this._isError="error"===e.type,this.recordConstructor=this._createConstructor(t.errorStackTraces,t.omitRecordMethods),this._read=this._createReader(),this._skip=this._createSkipper(),this._write=this._createWriter(),this._check=this._createChecker(),t.namespace=n,Object.freeze(this)}function F(e,t){this._logicalTypeName=e.logicalType,y.call(this),d=this;try{this._underlyingType=y.forSchema(e,t)}finally{d=null;var n=m.length;n&&m[n-1][0]===this&&m.pop()}y.isType(this.underlyingType,"union")?this._branchConstructor=this.underlyingType._branchConstructor:this._branchConstructor=this.underlyingType._createBranchConstructor()}function I(e){this._concreteTypeName="long",g.call(this,!0),this._noUnpack=!!e}function N(e,t){var n=e.name;if("string"!=typeof n||!r.isValidName(n))throw new Error(l("invalid field name: %s",n));this.name=n,this.type=y.forSchema(e.type,t),this.aliases=e.aliases||[],this.doc=void 0!==e.doc?""+e.doc:void 0,this._order=function(e){switch(e){case"ascending":return 1;case"descending":return-1;case"ignore":return 0;default:throw new Error(l("invalid order: %j",e))}}(void 0===e.order?"ascending":e.order);var i=e.default;if(void 0!==i){var o,a=this.type;try{o=a._copy(i,{coerce:2,wrap:2})}catch(e){var s=l("incompatible field default %j (%s)",i,e.message);throw y.isType(a,"union")&&(s+=l(", union defaults must match the first branch's type (%j)",a.types[0])),new Error(s)}U(a.typeName)&&"bytes"!==a.typeName?this.defaultValue=function(){return o}:this.defaultValue=function(){return a._copy(o)}}Object.freeze(this)}function R(e){this._readerType=e,this._read=null,this.itemsType=null,this.size=0,this.symbols=null,this.valuesType=null}function B(){this.str=void 0}function M(e,t,n,r){if(n){if(n._readerType!==e)throw new Error("invalid resolver");return n._read(t,r)}return e._read(t)}function L(e){var t={};e.name&&(t[e.name]=!0);var n,r,i=e.aliases;for(n=0,r=i.length;n=-9007199254740990&&e<=9007199254740990}function J(e){return e&&"Buffer"===e.type&&Array.isArray(e.data)}function K(e,t){throw new Error(l("invalid %j: %j",t.schema(),e))}function W(e,t){var n=r.unqualify(e);return U(n)?n:r.qualify(e,t)}function X(e){var t=e.typeName;switch(t){case"double":case"float":case"int":case"long":return"number";case"bytes":case"fixed":return"buffer";case"enum":return"string";case"map":case"error":case"record":return"object";default:return t}}function G(e){if(null===e)return"null";var t=typeof e;if("object"===t){if(Array.isArray(e))return"array";if(a.isBuffer(e))return"buffer"}return t}y.forSchema=function(e,t){(t=t||{}).registry=t.registry||{};var n,r=function(e){switch(!0===e?e="always":!1===e?e="never":void 0===e?e="auto":"string"==typeof e&&(e=e.toLowerCase()),e){case"always":return A;case"never":return k;case"auto":return;default:throw new Error(l("invalid wrap unions option: %j",e))}}(t.wrapUnions);if(null===e)throw new Error('invalid type: null (did you mean "null"?)');if(y.isType(e))return e;if(t.typeHook&&(n=t.typeHook(e,t))){if(!y.isType(n))throw new Error(l("invalid typehook return value: %j",n));return n}if("string"==typeof e){if(e=W(e,t.namespace),n=t.registry[e])return n;if(U(e))return t.registry[e]=y.forSchema({type:e},t);throw new Error(l("undefined type name: %s",e))}if(e.logicalType&&t.logicalTypes&&!d){var i=t.logicalTypes[e.logicalType];if(i){var o=t.namespace,a={};Object.keys(t.registry).forEach((function(e){a[e]=t.registry[e]}));try{return u("instantiating logical type for %s",e.logicalType),new i(e,t)}catch(n){if(u("failed to instantiate logical type for %s",e.logicalType),t.assertLogicalTypes)throw n;d=null,t.namespace=o,t.registry=a}}}if(Array.isArray(e)){var s=d;d=null;var c=e.map((function(e){return y.forSchema(e,t)}));r||(r=function(e){var t,n,r,i,o={};for(t=0,n=e.length;ta&&(a=i,s=r);return s}(n);case"string":return function(e,t){var n,r,i,o,a={};for(n=0,r=e.length;n0){var s=a[0];a[0]=a[i],a[i]=s,n=y.forSchema(a,t)}}return{name:e,type:n,default:u[e]}}))}:{type:"map",values:y.forTypes(s,t)};return y.forSchema(a,t)}(n,t)}}));return 1===u.length?u[0]:y.forSchema(u,t)},y.isType=function(){var e=arguments.length;if(!e)return!1;var t=arguments[0];if(!t||"function"!=typeof t._update||"function"!=typeof t.fingerprint)return!1;if(1===e)return!0;var n,r=t.typeName;for(n=1;n",t);var n=this.schema({exportAttrs:!0,noDeref:!0});return"object"!=typeof n||y.isType(this,"logical")||(n.type=void 0),l("<%s %j>",t,n)},y.prototype.isValid=function(e,t){var n,r,i=0|(t&&t.noUndeclaredFields),o=t&&t.errorHook;return o&&(r=[],n=function(t,n){o.call(this,r.slice(),t,n,e)}),this._check(e,i,n,r)},y.prototype.random=r.abstractFunction,y.prototype.schema=function(e){return this._attrs({exportAttrs:!(!e||!e.exportAttrs),noDeref:!(!e||!e.noDeref)})},y.prototype.toBuffer=function(e){h.pos=0,this._write(h,e);var t=r.newBuffer(h.pos);return h.isValid()?h.buf.copy(t,0,0,h.pos):this._write(new c(t),e),t},y.prototype.toJSON=function(){return this.schema({exportAttrs:!0})},y.prototype.toString=function(e){return void 0===e?JSON.stringify(this.schema({noDeref:!0})):JSON.stringify(this._copy(e,{coerce:3}))},y.prototype.wrap=function(e){var t=this._branchConstructor;return null===t?null:new t(e)},y.prototype._attrs=function(e){e.derefed=e.derefed||{};var t=this.name;if(void 0!==t){if(e.noDeref||e.derefed[t])return t;e.derefed[t]=!0}var n={};void 0!==this.name&&(n.name=t),n.type=this.typeName;var r=this._deref(n,e);return void 0!==r&&(n=r),e.exportAttrs&&(this.aliases&&this.aliases.length&&(n.aliases=this.aliases),void 0!==this.doc&&(n.doc=this.doc)),n},y.prototype._createBranchConstructor=function(){var e=this.branchName;if("null"===e)return null;var t=~e.indexOf(".")?"this['"+e+"']":"this."+e,n=new Function("return function Branch$(val) { "+t+" = val; };")();return n.type=this,n.prototype.unwrap=new Function("return "+t+";"),n.prototype.unwrapped=n.prototype.unwrap,n},y.prototype._peek=function(e){var t=e.pos,n=this._read(e);return e.pos=t,n},y.prototype._check=r.abstractFunction,y.prototype._copy=r.abstractFunction,y.prototype._deref=r.abstractFunction,y.prototype._match=r.abstractFunction,y.prototype._read=r.abstractFunction,y.prototype._skip=r.abstractFunction,y.prototype._update=r.abstractFunction,y.prototype._write=r.abstractFunction,y.prototype.getAliases=function(){return this.aliases},y.prototype.getFingerprint=y.prototype.fingerprint,y.prototype.getName=function(e){return this.name||!e?this.name:this.branchName},y.prototype.getSchema=y.prototype.schema,y.prototype.getTypeName=function(){return this.typeName},o.inherits(g,y),g.prototype._update=function(e,t){t.typeName===this.typeName&&(e._read=this._read)},g.prototype._copy=function(e){return this._check(e,void 0,K),e},g.prototype._deref=function(){return this.typeName},g.prototype.compare=r.compare,o.inherits(v,g),v.prototype._check=function(e,t,n){var r=null===e;return!r&&n&&n(e,this),r},v.prototype._read=function(){return null},v.prototype._skip=function(){},v.prototype._write=function(e,t){null!==t&&K(t,this)},v.prototype._match=function(){return 0},v.prototype.compare=v.prototype._match,v.prototype.typeName="null",v.prototype.random=v.prototype._read,o.inherits(b,g),b.prototype._check=function(e,t,n){var r="boolean"==typeof e;return!r&&n&&n(e,this),r},b.prototype._read=function(e){return e.readBoolean()},b.prototype._skip=function(e){e.skipBoolean()},b.prototype._write=function(e,t){"boolean"!=typeof t&&K(t,this),e.writeBoolean(t)},b.prototype._match=function(e,t){return e.matchBoolean(t)},b.prototype.typeName="boolean",b.prototype.random=function(){return f.nextBoolean()},o.inherits(x,g),x.prototype._check=function(e,t,n){var r=e===(0|e);return!r&&n&&n(e,this),r},x.prototype._read=function(e){return e.readInt()},x.prototype._skip=function(e){e.skipInt()},x.prototype._write=function(e,t){t!==(0|t)&&K(t,this),e.writeInt(t)},x.prototype._match=function(e,t){return e.matchInt(t)},x.prototype.typeName="int",x.prototype.random=function(){return 0|f.nextInt(1e3)},o.inherits(w,g),w.prototype._check=function(e,t,n){var r="number"==typeof e&&e%1==0&&V(e);return!r&&n&&n(e,this),r},w.prototype._read=function(e){var t=e.readLong();if(!V(t))throw new Error("potential precision loss");return t},w.prototype._skip=function(e){e.skipLong()},w.prototype._write=function(e,t){("number"!=typeof t||t%1||!V(t))&&K(t,this),e.writeLong(t)},w.prototype._match=function(e,t){return e.matchLong(t)},w.prototype._update=function(e,t){switch(t.typeName){case"int":e._read=t._read;break;case"abstract:long":case"long":e._read=this._read}},w.prototype.typeName="long",w.prototype.random=function(){return f.nextInt()},w.__with=function(e,t){e=e||{};var n={toBuffer:"_toBuffer",fromBuffer:"_fromBuffer",fromJSON:"_fromJSON",toJSON:"_toJSON",isValid:"_isValid",compare:"compare"},r=new I(t);return Object.keys(n).forEach((function(t){if(void 0===e[t])throw new Error(l("missing method implementation: %s",t));r[n[t]]=e[t]})),Object.freeze(r)},o.inherits(E,g),E.prototype._check=function(e,t,n){var r="number"==typeof e;return!r&&n&&n(e,this),r},E.prototype._read=function(e){return e.readFloat()},E.prototype._skip=function(e){e.skipFloat()},E.prototype._write=function(e,t){"number"!=typeof t&&K(t,this),e.writeFloat(t)},E.prototype._match=function(e,t){return e.matchFloat(t)},E.prototype._update=function(e,t){switch(t.typeName){case"float":case"int":e._read=t._read;break;case"abstract:long":case"long":e._read=function(e){return e.readLong()}}},E.prototype.typeName="float",E.prototype.random=function(){return f.nextFloat(1e3)},o.inherits(_,g),_.prototype._check=function(e,t,n){var r="number"==typeof e;return!r&&n&&n(e,this),r},_.prototype._read=function(e){return e.readDouble()},_.prototype._skip=function(e){e.skipDouble()},_.prototype._write=function(e,t){"number"!=typeof t&&K(t,this),e.writeDouble(t)},_.prototype._match=function(e,t){return e.matchDouble(t)},_.prototype._update=function(e,t){switch(t.typeName){case"double":case"float":case"int":e._read=t._read;break;case"abstract:long":case"long":e._read=function(e){return e.readLong()}}},_.prototype.typeName="double",_.prototype.random=function(){return f.nextFloat()},o.inherits(j,g),j.prototype._check=function(e,t,n){var r="string"==typeof e;return!r&&n&&n(e,this),r},j.prototype._read=function(e){return e.readString()},j.prototype._skip=function(e){e.skipString()},j.prototype._write=function(e,t){"string"!=typeof t&&K(t,this),e.writeString(t)},j.prototype._match=function(e,t){return e.matchString(t)},j.prototype._update=function(e,t){switch(t.typeName){case"bytes":case"string":e._read=this._read}},j.prototype.typeName="string",j.prototype.random=function(){return f.nextString(f.nextInt(32))},o.inherits(S,g),S.prototype._check=function(e,t,n){var r=a.isBuffer(e);return!r&&n&&n(e,this),r},S.prototype._read=function(e){return e.readBytes()},S.prototype._skip=function(e){e.skipBytes()},S.prototype._write=function(e,t){a.isBuffer(t)||K(t,this),e.writeBytes(t)},S.prototype._match=function(e,t){return e.matchBytes(t)},S.prototype._update=j.prototype._update,S.prototype._copy=function(e,t){var n;switch(0|(t&&t.coerce)){case 3:return this._check(e,void 0,K),e.toString("binary");case 2:if("string"!=typeof e)throw new Error(l("cannot coerce to buffer: %j",e));return n=r.bufferFrom(e,"binary"),this._check(n,void 0,K),n;case 1:if(!J(e))throw new Error(l("cannot coerce to buffer: %j",e));return n=r.bufferFrom(e.data),this._check(n,void 0,K),n;default:return this._check(e,void 0,K),r.bufferFrom(e)}},S.prototype.compare=a.compare,S.prototype.typeName="bytes",S.prototype.random=function(){return f.nextBuffer(f.nextInt(32))},o.inherits(D,y),D.prototype._branchConstructor=function(){throw new Error("unions cannot be directly wrapped")},D.prototype._skip=function(e){this.types[e.readLong()]._skip(e)},D.prototype._match=function(e,t){var n=e.readLong(),r=t.readLong();return n===r?this.types[n]._match(e,t):n1)throw new Error(l("ambiguous aliasing for %s.%s (%s)",t.name,a.name,u));if(u.length)s=u[0],p={resolver:a.type.createResolver(d[s].type,n),name:"_"+a.name},y[s]?y[s].push(p):y[s]=[p],m.push(p.name);else{if(void 0===a.defaultValue())throw new Error(l("no matching field for default-less %s.%s",t.name,a.name));m.push("undefined")}}var g=-1;for(i=h.length;i&&void 0===y[h[--i].name];)g=i;var v=this._getConstructorName(),b=[v],x=[this.recordConstructor],w=" return function read"+v+"(t, b) {\n";for(i=0;i=g?" ":" ",b.push("r"+i),x.push(a.type),w+="r"+i+"._skip(t);\n";else for(o=y[s].length;o--;)w+=~g&&i>=g?" ":" ",b.push("r"+i+"f"+o),p=y[s][o],x.push(p.resolver),w+="var "+p.name+" = ",w+="r"+i+"f"+o+"._"+(o?"peek":"read")+"(t);\n";~g&&(w+=" }\n"),w+=" return new "+v+"("+m.join()+");\n};",e._read=new Function(b.join(),w).apply(void 0,x)},O.prototype._match=function(e,t){var n,r,i,o,a,s=this.fields;for(n=0,r=s.length;n"},e.exports={Type:y,getTypeBucket:X,getValueBucket:G,isPrimitive:U,builtins:function(){var e,t,n,r={LogicalType:F,UnwrappedUnionType:k,WrappedUnionType:A},i=Object.keys(p);for(e=0,t=i.length;enew c(e)):null}},u,l,p,f)},function(e,t,n){const{mix:r}=n(2),i=n(3),o=n(10),a=n(5);e.exports=r(class extends i{allowedValues(){return this._json.enum}allows(e){return void 0===this._json.enum||this._json.enum.includes(e)}hasAllowedValues(){return void 0!==this._json.enum}defaultValue(){return this._json.default}hasDefaultValue(){return void 0!==this._json.default}examples(){return this._json.examples}},o,a)},function(e,t,n){const{createMapOfType:r,getMapValueOfType:i,mix:o}=n(2),a=n(3),s=n(64),c=n(127),u=n(131),l=n(10),p=n(37),f=n(5);e.exports=o(class extends a{parameters(){return r(this._json.parameters,s)}parameter(e){return i(this._json.parameters,e,s)}hasParameters(){return!!this._json.parameters}hasServers(){return!!this._json.servers}servers(){return this._json.servers?this._json.servers:[]}server(e){return this._json.servers?"number"!=typeof e||e>this._json.servers.length-1?null:this._json.servers[+e]:null}publish(){return this._json.publish?new c(this._json.publish):null}subscribe(){return this._json.subscribe?new u(this._json.subscribe):null}hasPublish(){return!!this._json.publish}hasSubscribe(){return!!this._json.subscribe}},l,p,f)},function(e,t,n){const{mix:r}=n(2),i=n(3),o=n(17),a=n(10),s=n(5);e.exports=r(class extends i{location(){return this._json.location}schema(){return this._json.schema?new o(this._json.schema):null}},a,s)},function(e,t,n){const{mix:r}=n(2),i=n(3),o=n(10),a=n(38),s=n(29),c=n(37),u=n(5);e.exports=r(class extends i{id(){return this._json.operationId}summary(){return this._json.summary}},o,a,s,c,u)},function(e,t,n){(function(t){const r=n(68),i=n(69),o=n(17);e.exports=class extends i{uid(){return this.id()||this.name()||this.ext("x-parser-message-name")||t.from(JSON.stringify(this._json)).toString("base64")}payload(){return this._json.payload?new o(this._json.payload):null}traits(){const e=this._json["x-parser-original-traits"]||this._json.traits;return e?e.map(e=>new r(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,n(1).Buffer)},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){const r=n(69);e.exports=class extends r{}},function(e,t,n){const{getMapValueOfType:r,mix:i}=n(2),o=n(3),a=n(17),s=n(70),c=n(10),u=n(29),l=n(38),p=n(37),f=n(5);e.exports=i(class extends o{headers(){return this._json.headers?new a(this._json.headers):null}header(e){return this._json.headers?r(this._json.headers.properties,e,a):null}id(){return this._json.messageId}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}},c,l,u,p,f)},function(e,t,n){const{mix:r}=n(2),i=n(3),o=n(10),a=n(5);e.exports=r(class extends i{location(){return this._json.location}},a,o)},function(e,t,n){const r=n(65);e.exports=class extends r{}},function(e,t){const n=Object.freeze({NEW_SCHEMA:"NEW_SCHEMA",END_SCHEMA:"END_SCHEMA"}),r=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,o){if(!e)return;const{callback:a,schemaTypesToIterate:s,seenSchemas:c}=o,u=e.json();if(c.has(u))return;c.add(u);let l=e.type()||[];Array.isArray(l)||(l=[l]),!s.includes(r.objects)&&l.includes("object")||!s.includes(r.arrays)&&l.includes("array")||!1!==a(e,t,n.NEW_SCHEMA)&&(s.includes(r.objects)&&l.includes("object")&&function(e,t){Object.entries(e.properties()||{}).forEach(([e,n])=>{i(n,e,t)});const n=e.additionalProperties();"object"==typeof n&&i(n,null,t);const o=t.schemaTypesToIterate;o.includes(r.propertyNames)&&e.propertyNames()&&i(e.propertyNames(),null,t);o.includes(r.patternProperties)&&Object.entries(e.patternProperties()||{}).forEach(([e,n])=>{i(n,e,t)})}(e,o),s.includes(r.arrays)&&l.includes("array")&&function(e,t){const n=e.items();n&&(Array.isArray(n)?n.forEach((e,n)=>{i(e,n,t)}):i(n,null,t));const o=e.additionalItems();"object"==typeof o&&i(o,null,t);t.schemaTypesToIterate.includes(r.contains)&&e.contains()&&i(e.contains(),null,t)}(e,o),s.includes(r.oneOfs)&&(e.oneOf()||[]).forEach((e,t)=>{i(e,t,o)}),s.includes(r.anyOfs)&&(e.anyOf()||[]).forEach((e,t)=>{i(e,t,o)}),s.includes(r.allOfs)&&(e.allOf()||[]).forEach((e,t)=>{i(e,t,o)}),s.includes(r.nots)&&e.not()&&i(e.not(),null,o),s.includes(r.ifs)&&e.if()&&i(e.if(),null,o),s.includes(r.thenes)&&e.then()&&i(e.then(),null,o),s.includes(r.elses)&&e.else()&&i(e.else(),null,o),s.includes(r.dependencies)&&Object.entries(e.dependencies()||{}).forEach(([e,t])=>{t&&!Array.isArray(t)&&i(t,e,o)}),s.includes(r.definitions)&&Object.entries(e.definitions()||{}).forEach(([e,t])=>{i(t,e,o)}),a(e,t,n.END_SCHEMA),c.delete(u))}function o(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.headers)&&i(e.headers(),null,t),n.includes(r.payloads)&&i(e.payload(),null,t)}e.exports={SchemaIteratorCallbackType:n,SchemaTypesToIterate:r,traverseAsyncApiDocument:function(e,t,n){n||(n=Object.values(r));const a={callback:t,schemaTypesToIterate:n,seenSchemas:new Set};if(e.hasChannels()&&Object.values(e.channels()).forEach(e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.parameters)&&Object.values(e.parameters()||{}).forEach(e=>{i(e.schema(),null,t)});e.hasPublish()&&e.publish().messages().forEach(e=>{o(e,t)});e.hasSubscribe()&&e.subscribe().messages().forEach(e=>{o(e,t)})}(e,a)}),n.includes(r.components)&&e.hasComponents()){const t=e.components();Object.values(t.messages()||{}).forEach(e=>{o(e,a)}),Object.values(t.schemas()||{}).forEach(e=>{i(e,null,a)}),n.includes(r.parameters)&&Object.values(t.parameters()||{}).forEach(e=>{i(e.schema(),null,a)}),Object.values(t.messageTraits()||{}).forEach(e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(r.headers)&&i(e.headers(),null,t)}(e,a)})}}}},function(e,t,n){ -/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */ -e.exports=function(){"use strict";function e(t){return(e="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})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,i,o){return(r=n()?Reflect.construct:function(e,n,r){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(e,i));return r&&t(o,r.prototype),o}).apply(null,arguments)}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),i=1;i/gm),J=f(/\${[\w\W]*}/gm),K=f(/^data-[\-\w.\u00B7-\uFFFF]/),W=f(/^aria-[\-\w]+$/),X=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=f(/^(?:\w+script|data):/i),Y=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=f(/^html$/i),Q=function(){return"undefined"==typeof window?null:window},ee=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=n.currentScript.getAttribute("data-tt-policy-suffix"));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),r=function(e){return t(e)};if(r.version="2.4.5",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var o=n.document,a=n.document,s=n.DocumentFragment,c=n.HTMLTemplateElement,u=n.Node,l=n.Element,f=n.NodeFilter,h=n.NamedNodeMap,d=void 0===h?n.NamedNodeMap||n.MozNamedAttrMap:h,m=n.HTMLFormElement,y=n.DOMParser,g=n.trustedTypes,C=l.prototype,te=$(C,"cloneNode"),ne=$(C,"nextSibling"),re=$(C,"childNodes"),ie=$(C,"parentNode");if("function"==typeof c){var oe=a.createElement("template");oe.content&&oe.content.ownerDocument&&(a=oe.content.ownerDocument)}var ae=ee(g,o),se=ae?ae.createHTML(""):"",ce=a,ue=ce.implementation,le=ce.createNodeIterator,pe=ce.createDocumentFragment,fe=ce.getElementsByTagName,he=o.importNode,de={};try{de=T(a).documentMode?a.documentMode:{}}catch(e){}var me={};r.isSupported="function"==typeof ie&&ue&&void 0!==ue.createHTMLDocument&&9!==de;var ye,ge,ve=H,be=V,xe=J,we=K,Ee=W,_e=G,je=Y,Se=X,De=null,ke=P({},[].concat(i(O),i(F),i(I),i(R),i(M))),Ae=null,Ce=P({},[].concat(i(L),i(z),i(U),i(q))),Pe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,$e=null,Oe=!0,Fe=!0,Ie=!1,Ne=!0,Re=!1,Be=!1,Me=!1,Le=!1,ze=!1,Ue=!1,qe=!1,He=!0,Ve=!1,Je="user-content-",Ke=!0,We=!1,Xe={},Ge=null,Ye=P({},["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"]),Ze=null,Qe=P({},["audio","video","img","source","image","track"]),et=null,tt=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml",ot=it,at=!1,st=null,ct=P({},[nt,rt,it],E),ut=["application/xhtml+xml","text/html"],lt="text/html",pt=null,ft=a.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},dt=function(t){pt&&pt===t||(t&&"object"===e(t)||(t={}),t=T(t),ye=ye=-1===ut.indexOf(t.PARSER_MEDIA_TYPE)?lt:t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===ye?E:w,De="ALLOWED_TAGS"in t?P({},t.ALLOWED_TAGS,ge):ke,Ae="ALLOWED_ATTR"in t?P({},t.ALLOWED_ATTR,ge):Ce,st="ALLOWED_NAMESPACES"in t?P({},t.ALLOWED_NAMESPACES,E):ct,et="ADD_URI_SAFE_ATTR"in t?P(T(tt),t.ADD_URI_SAFE_ATTR,ge):tt,Ze="ADD_DATA_URI_TAGS"in t?P(T(Qe),t.ADD_DATA_URI_TAGS,ge):Qe,Ge="FORBID_CONTENTS"in t?P({},t.FORBID_CONTENTS,ge):Ye,Te="FORBID_TAGS"in t?P({},t.FORBID_TAGS,ge):{},$e="FORBID_ATTR"in t?P({},t.FORBID_ATTR,ge):{},Xe="USE_PROFILES"in t&&t.USE_PROFILES,Oe=!1!==t.ALLOW_ARIA_ATTR,Fe=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Re=t.SAFE_FOR_TEMPLATES||!1,Be=t.WHOLE_DOCUMENT||!1,ze=t.RETURN_DOM||!1,Ue=t.RETURN_DOM_FRAGMENT||!1,qe=t.RETURN_TRUSTED_TYPE||!1,Le=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Ve=t.SANITIZE_NAMED_PROPS||!1,Ke=!1!==t.KEEP_CONTENT,We=t.IN_PLACE||!1,Se=t.ALLOWED_URI_REGEXP||Se,ot=t.NAMESPACE||it,Pe=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Pe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(Fe=!1),Ue&&(ze=!0),Xe&&(De=P({},i(M)),Ae=[],!0===Xe.html&&(P(De,O),P(Ae,L)),!0===Xe.svg&&(P(De,F),P(Ae,z),P(Ae,q)),!0===Xe.svgFilters&&(P(De,I),P(Ae,z),P(Ae,q)),!0===Xe.mathMl&&(P(De,R),P(Ae,U),P(Ae,q))),t.ADD_TAGS&&(De===ke&&(De=T(De)),P(De,t.ADD_TAGS,ge)),t.ADD_ATTR&&(Ae===Ce&&(Ae=T(Ae)),P(Ae,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&P(et,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(Ge===Ye&&(Ge=T(Ge)),P(Ge,t.FORBID_CONTENTS,ge)),Ke&&(De["#text"]=!0),Be&&P(De,["html","head","body"]),De.table&&(P(De,["tbody"]),delete Te.tbody),p&&p(t),pt=t)},mt=P({},["mi","mo","mn","ms","mtext"]),yt=P({},["foreignobject","desc","title","annotation-xml"]),gt=P({},["title","style","font","a","script"]),vt=P({},F);P(vt,I),P(vt,N);var bt=P({},R);P(bt,B);var xt=function(e){var t=ie(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var n=w(e.tagName),r=w(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===it?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||mt[r]):Boolean(vt[n]):e.namespaceURI===nt?t.namespaceURI===it?"math"===n:t.namespaceURI===rt?"math"===n&&yt[r]:Boolean(bt[n]):e.namespaceURI===it?!(t.namespaceURI===rt&&!yt[r])&&!(t.namespaceURI===nt&&!mt[r])&&!bt[n]&&(gt[n]||!vt[n]):!("application/xhtml+xml"!==ye||!st[e.namespaceURI]))},wt=function(e){x(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},Et=function(e,t){try{x(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){x(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(ze||Ue)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},_t=function(e){var t,n;if(Le)e=""+e;else{var r=_(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ye&&ot===it&&(e=''+e+"");var i=ae?ae.createHTML(e):e;if(ot===it)try{t=(new y).parseFromString(i,ye)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(ot,"template",null);try{t.documentElement.innerHTML=at?se:i}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),ot===it?fe.call(t,Be?"html":"body")[0]:Be?t.documentElement:o},jt=function(e){return le.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},St=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Dt=function(t){return"object"===e(u)?t instanceof u:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kt=function(e,t,n){me[e]&&v(me[e],(function(e){e.call(r,t,n,pt)}))},At=function(e){var t;if(kt("beforeSanitizeElements",e,null),St(e))return wt(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var n=ge(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:n,allowedTags:De}),e.hasChildNodes()&&!Dt(e.firstElementChild)&&(!Dt(e.content)||!Dt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===n&&k(/