Viewing File: /usr/local/cpanel/3rdparty/wp-toolkit/frontend/299.33c26eedacb9bcbb776f.bundle.js
/*! For license information please see 299.33c26eedacb9bcbb776f.bundle.js.LICENSE.txt */
(self.webpackChunkwptCpanelMain=self.webpackChunkwptCpanelMain||[]).push([[299],{67526(e,t){"use strict";t.byteLength=function(e){var t=a(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=a(e),i=o[0],c=o[1],l=new s(function(e,t,r){return 3*(t+r)/4-r}(0,i,c)),u=0,p=c>0?i-4:i;for(r=0;r<p;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,s=n%3,o=[],i=16383,a=0,l=n-s;a<l;a+=i)o.push(c(e,a,a+i>l?l:a+i));return 1===s?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===s&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],n=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[i]=o[i],n[o.charCodeAt(i)]=i;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var s,o,i=[],a=t;a<n;a+=3)s=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(r[(o=s)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48287(e,t,r){"use strict";var n=r(67526),s=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;var i=2147483647;function a(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|m(e,t),n=a(r),s=n.write(e,t);return s!==r&&(n=n.slice(0,s)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(q(e,Uint8Array)){var t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(q(e,ArrayBuffer)||e&&q(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(q(e,SharedArrayBuffer)||e&&q(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);var s=function(e){if(c.isBuffer(e)){var t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||U(e.length)?a(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return u(e),a(e<0?0:0|f(e))}function h(e){for(var t=e.length<0?0:0|f(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function f(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(e).length;default:if(s)return n?-1:F(e).length;t=(""+t).toLowerCase(),s=!0}}function g(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return j(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,s){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),U(r=+r)&&(r=s?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(s)return-1;r=e.length-1}else if(r<0){if(!s)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,s);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,s);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,s){var o,i=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,a/=2,c/=2,r/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(s){var u=-1;for(o=r;o<a;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*i}else-1!==u&&(o-=o-u),u=-1}else for(r+c>a&&(r=a-c),o=r;o>=0;o--){for(var p=!0,h=0;h<c;h++)if(l(e,o+h)!==l(t,h)){p=!1;break}if(p)return o}return-1}function E(e,t,r,n){r=Number(r)||0;var s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;var o=t.length;n>o/2&&(n=o/2);for(var i=0;i<n;++i){var a=parseInt(t.substr(2*i,2),16);if(U(a))return i;e[r+i]=a}return i}function w(e,t,r,n){return L(F(t,e.length-r),e,r,n)}function x(e,t,r,n){return L(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return L(B(t),e,r,n)}function _(e,t,r,n){return L(function(e,t){for(var r,n,s,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,s=r%256,o.push(s),o.push(n);return o}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function O(e,t,r){r=Math.min(e.length,r);for(var n=[],s=t;s<r;){var o,i,a,c,l=e[s],u=null,p=l>239?4:l>223?3:l>191?2:1;if(s+p<=r)switch(p){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[s+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[s+1],i=e[s+2],128==(192&o)&&128==(192&i)&&(c=(15&l)<<12|(63&o)<<6|63&i)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[s+1],i=e[s+2],a=e[s+3],128==(192&o)&&128==(192&i)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&i)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,p=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),s+=p}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=C));return r}(n)}t.kMaxLength=i,c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}(e,t,r)},c.allocUnsafe=function(e){return p(e)},c.allocUnsafeSlow=function(e){return p(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(q(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),q(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,s=0,o=Math.min(r,n);s<o;++s)if(e[s]!==t[s]){r=e[s],n=t[s];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=c.allocUnsafe(t),s=0;for(r=0;r<e.length;++r){var o=e[r];if(q(o,Uint8Array))s+o.length>n.length?c.from(o).copy(n,s):Uint8Array.prototype.set.call(n,o,s);else{if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,s)}s+=o.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,s){if(q(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),t<0||r>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&t>=r)return 0;if(n>=s)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(s>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0),a=Math.min(o,i),l=this.slice(n,s),u=e.slice(t,r),p=0;p<a;++p)if(l[p]!==u[p]){o=l[p],i=u[p];break}return o<i?-1:i<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var s=this.length-t;if((void 0===r||r>s)&&(r=s),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return E(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return x(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function j(e,t,r){var n="";r=Math.min(e.length,r);for(var s=t;s<r;++s)n+=String.fromCharCode(127&e[s]);return n}function k(e,t,r){var n="";r=Math.min(e.length,r);for(var s=t;s<r;++s)n+=String.fromCharCode(e[s]);return n}function T(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var s="",o=t;o<r;++o)s+=z[e[o]];return s}function N(e,t,r){for(var n=e.slice(t,r),s="",o=0;o<n.length-1;o+=2)s+=String.fromCharCode(n[o]+256*n[o+1]);return s}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,n,s,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function M(e,t,r,n,s,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,r,n,o){return t=+t,r>>>=0,o||M(e,0,r,4),s.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,o){return t=+t,r>>>=0,o||M(e,0,r,8),s.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(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),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);for(var n=this[e],s=1,o=0;++o<t&&(s*=256);)n+=this[e+o]*s;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);for(var n=this[e+--t],s=1;t>0&&(s*=256);)n+=this[e+--t]*s;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);for(var n=this[e],s=1,o=0;++o<t&&(s*=256);)n+=this[e+o]*s;return n>=(s*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);for(var n=t,s=1,o=this[e+--n];n>0&&(s*=256);)o+=this[e+--n]*s;return o>=(s*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(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 e>>>=0,t||I(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 e>>>=0,t||I(e,4,this.length),s.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),s.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),s.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),s.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||P(this,e,t,r,Math.pow(2,8*r)-1,0);var s=1,o=0;for(this[t]=255&e;++o<r&&(s*=256);)this[t+o]=e/s&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||P(this,e,t,r,Math.pow(2,8*r)-1,0);var s=r-1,o=1;for(this[t+s]=255&e;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var s=Math.pow(2,8*r-1);P(this,e,t,r,s-1,-s)}var o=0,i=1,a=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var s=Math.pow(2,8*r-1);P(this,e,t,r,s-1,-s)}var o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var s=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),s},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var s=e.charCodeAt(0);("utf8"===n&&s<128||"latin1"===n)&&(e=s)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var i=c.isBuffer(e)?e:c.from(e,n),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=i[o%a]}return this};var $=/[^+/0-9A-Za-z-_]/g;function F(e,t){var r;t=t||1/0;for(var n=e.length,s=null,o=[],i=0;i<n;++i){if((r=e.charCodeAt(i))>55295&&r<57344){if(!s){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&o.push(239,191,189);continue}s=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&(t-=3)>-1&&o.push(239,191,189);if(s=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function B(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace($,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,n){for(var s=0;s<n&&!(s+r>=t.length||s>=e.length);++s)t[s+r]=e[s];return s}function q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function U(e){return e!=e}var z=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,s=0;s<16;++s)t[n+s]=e[r]+e[s];return t}()},12205(e,t,r){"use strict";var n=r(66743),s=r(11002),o=r(13144);e.exports=function(){return o(n,s,arguments)}},10487(e,t,r){"use strict";var n=r(96897),s=r(30655),o=r(73126),i=r(12205);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},s?s(e.exports,"apply",{value:i}):e.exports.apply=i},2205(e,t,r){var n;n=void 0!==r.g?r.g:this,e.exports=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,r=String(e),n=r.length,s=-1,o="",i=r.charCodeAt(0);++s<n;)0!=(t=r.charCodeAt(s))?o+=t>=1&&t<=31||127==t||0==s&&t>=48&&t<=57||1==s&&t>=48&&t<=57&&45==i?"\\"+t.toString(16)+" ":0==s&&1==n&&45==t||!(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)?"\\"+r.charAt(s):r.charAt(s):o+="�";return o};return e.CSS||(e.CSS={}),e.CSS.escape=t,t}(n)},30041(e,t,r){"use strict";var n=r(30655),s=r(58068),o=r(69675),i=r(75795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!i&&i(e,t);if(n)n(e,t,{configurable:null===l&&p?p.configurable:!l,enumerable:null===a&&p?p.enumerable:!a,value:r,writable:null===c&&p?p.writable:!c});else{if(!u&&(a||c||l))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},78004(e){"use strict";class t{constructor(e,t){this.low=e,this.high=t,this.length=1+t-e}overlaps(e){return!(this.high<e.low||this.low>e.high)}touches(e){return!(this.high+1<e.low||this.low-1>e.high)}add(e){return new t(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.high<this.high?[new t(this.low,e.low-1),new t(e.high+1,this.high)]:e.low<=this.low?[new t(e.high+1,this.high)]:[new t(this.low,e.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}class r{constructor(e,t){this.ranges=[],this.length=0,null!=e&&this.add(e,t)}_update_length(){this.length=this.ranges.reduce(((e,t)=>e+t.length),0)}add(e,n){var s=e=>{for(var t=0;t<this.ranges.length&&!e.touches(this.ranges[t]);)t++;for(var r=this.ranges.slice(0,t);t<this.ranges.length&&e.touches(this.ranges[t]);)e=e.add(this.ranges[t]),t++;r.push(e),this.ranges=r.concat(this.ranges.slice(t)),this._update_length()};return e instanceof r?e.ranges.forEach(s):(null==n&&(n=e),s(new t(e,n))),this}subtract(e,n){var s=e=>{for(var t=0;t<this.ranges.length&&!e.overlaps(this.ranges[t]);)t++;for(var r=this.ranges.slice(0,t);t<this.ranges.length&&e.overlaps(this.ranges[t]);)r=r.concat(this.ranges[t].subtract(e)),t++;this.ranges=r.concat(this.ranges.slice(t)),this._update_length()};return e instanceof r?e.ranges.forEach(s):(null==n&&(n=e),s(new t(e,n))),this}intersect(e,n){var s=[],o=e=>{for(var r=0;r<this.ranges.length&&!e.overlaps(this.ranges[r]);)r++;for(;r<this.ranges.length&&e.overlaps(this.ranges[r]);){var n=Math.max(this.ranges[r].low,e.low),o=Math.min(this.ranges[r].high,e.high);s.push(new t(n,o)),r++}};return e instanceof r?e.ranges.forEach(o):(null==n&&(n=e),o(new t(e,n))),this.ranges=s,this._update_length(),this}index(e){for(var t=0;t<this.ranges.length&&this.ranges[t].length<=e;)e-=this.ranges[t].length,t++;return this.ranges[t].low+e}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new r(this)}numbers(){return this.ranges.reduce(((e,t)=>{for(var r=t.low;r<=t.high;)e.push(r),r++;return e}),[])}subranges(){return this.ranges.map((e=>({low:e.low,high:e.high,length:1+e.high-e.low})))}}e.exports=r},85587(e,t,r){"use strict";var n=r(26311),s=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=n.apply(null,arguments)),new e(t)}}e.exports=s,s.eval=o(EvalError),s.range=o(RangeError),s.reference=o(ReferenceError),s.syntax=o(SyntaxError),s.type=o(TypeError),s.uri=o(URIError),s.create=o},60301(e,t,r){"use strict";var n=r(69600),s=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var i,a;arguments.length>=3&&(i=r),a=e,"[object Array]"===s.call(a)?function(e,t,r){for(var n=0,s=e.length;n<s;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,i):"string"==typeof e?function(e,t,r){for(var n=0,s=e.length;n<s;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,i):function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,i)}},26311(e){!function(){var t;function r(e){for(var t,r,n,s,o=1,i=[].slice.call(arguments),a=0,c=e.length,l="",u=!1,p=!1,h=function(){return i[o++]},d=function(){for(var r="";/\d/.test(e[a]);)r+=e[a++],t=e[a];return r.length>0?parseInt(r):null};a<c;++a)if(t=e[a],u)switch(u=!1,"."==t?(p=!1,t=e[++a]):"0"==t&&"."==e[a+1]?(p=!0,t=e[a+=2]):p=!0,s=d(),t){case"b":l+=parseInt(h(),10).toString(2);break;case"c":l+="string"==typeof(r=h())||r instanceof String?r:String.fromCharCode(parseInt(r,10));break;case"d":l+=parseInt(h(),10);break;case"f":n=String(parseFloat(h()).toFixed(s||6)),l+=p?n:n.replace(/^0/,"");break;case"j":l+=JSON.stringify(h());break;case"o":l+="0"+parseInt(h(),10).toString(8);break;case"s":l+=h();break;case"x":l+="0x"+parseInt(h(),10).toString(16);break;case"X":l+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:l+=t}else"%"===t?u=!0:l+=t;return l}(t=e.exports=r).format=r,t.vsprintf=function(e,t){return r.apply(null,[e].concat(t))},"undefined"!=typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(r.apply(null,arguments))})}()},30592(e,t,r){"use strict";var n=r(30655),s=function(){return!!n};s.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=s},49092(e,t,r){"use strict";var n=r(41333);e.exports=function(){return n()&&!!Symbol.toStringTag}},45981(e){function t(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(r){var n=e[r];"object"!=typeof n||Object.isFrozen(n)||t(n)})),e}var r=t,n=t;r.default=n;class s{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function o(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e,...t){const r=Object.create(null);for(const t in e)r[t]=e[t];return t.forEach((function(e){for(const t in e)r[t]=e[t]})),r}const a=e=>!!e.kind;class c{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=o(e)}openNode(e){if(!a(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){a(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}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 u 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 r=e.root;r.kind=t,r.sublanguage=!0,this.add(r)}toHTML(){return new c(this,this.options).value()}finalize(){return!0}}function p(e){return e?"string"==typeof e?e:e.source:null}const h=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,d="[a-zA-Z]\\w*",f="[a-zA-Z_]\\w*",m="\\b\\d+(\\.\\d+)?",g="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",y="\\b(0b[01]+)",v={begin:"\\\\[\\s\\S]",relevance:0},b={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[v]},E={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[v]},w={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/},x=function(e,t,r={}){const n=i({className:"comment",begin:e,end:t,contains:[]},r);return n.contains.push(w),n.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),n},S=x("//","$"),_=x("/\\*","\\*/"),A=x("#","$"),O={className:"number",begin:m,relevance:0},C={className:"number",begin:g,relevance:0},j={className:"number",begin:y,relevance:0},k={className:"number",begin:m+"(%|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},T={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[v,{begin:/\[/,end:/\]/,relevance:0,contains:[v]}]}]},N={className:"title",begin:d,relevance:0},I={className:"title",begin:f,relevance:0},P={begin:"\\.\\s*"+f,relevance:0};var M=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:d,UNDERSCORE_IDENT_RE:f,NUMBER_RE:m,C_NUMBER_RE:g,BINARY_NUMBER_RE:y,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map((e=>p(e))).join("")}(t,/.*\b/,e.binary,/\b.*/)),i({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:v,APOS_STRING_MODE:b,QUOTE_STRING_MODE:E,PHRASAL_WORDS_MODE:w,COMMENT:x,C_LINE_COMMENT_MODE:S,C_BLOCK_COMMENT_MODE:_,HASH_COMMENT_MODE:A,NUMBER_MODE:O,C_NUMBER_MODE:C,BINARY_NUMBER_MODE:j,CSS_NUMBER_MODE:k,REGEXP_MODE:T,TITLE_MODE:N,UNDERSCORE_TITLE_MODE:I,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 R(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function D(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=R,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function $(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map((e=>p(e))).join("|")+")"}(...e.illegal))}function F(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 B(e,t){void 0===e.relevance&&(e.relevance=1)}const L=["of","and","for","in","not","or","if","then","parent","list","value"];function q(e,t,r="keyword"){const n={};return"string"==typeof e?s(r,e.split(" ")):Array.isArray(e)?s(r,e):Object.keys(e).forEach((function(r){Object.assign(n,q(e[r],t,r))})),n;function s(e,r){t&&(r=r.map((e=>e.toLowerCase()))),r.forEach((function(t){const r=t.split("|");n[r[0]]=[e,U(r[0],r[1])]}))}}function U(e,t){return t?Number(t):function(e){return L.includes(e.toLowerCase())}(e)?0:1}function z(e,{plugins:t}){function r(t,r){return new RegExp(p(t),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=r(function(e,t="|"){let r=0;return e.map((e=>{r+=1;const t=r;let n=p(e),s="";for(;n.length>0;){const e=h.exec(n);if(!e){s+=n;break}s+=n.substring(0,e.index),n=n.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?s+="\\"+String(Number(e[1])+t):(s+=e[0],"("===e[0]&&r++)}return s})).map((e=>`(${e})`)).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const r=t.findIndex(((e,t)=>t>0&&void 0!==e)),n=this.matchIndexes[r];return t.splice(0,r),Object.assign(t,n)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,r])=>t.addRule(e,r))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let r=t.exec(e);if(this.resumingScanAtSamePosition())if(r&&r.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,r=t.exec(e)}return r&&(this.regexIndex+=r.position+1,this.regexIndex===this.count&&this.considerAll()),r}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=i(e.classNameAliases||{}),function t(n,o){const a=n;if(n.isCompiled)return a;[F].forEach((e=>e(n,o))),e.compilerExtensions.forEach((e=>e(n,o))),n.__beforeBegin=null,[D,$,B].forEach((e=>e(n,o))),n.isCompiled=!0;let c=null;if("object"==typeof n.keywords&&(c=n.keywords.$pattern,delete n.keywords.$pattern),n.keywords&&(n.keywords=q(n.keywords,e.case_insensitive)),n.lexemes&&c)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return c=c||n.lexemes||/\w+/,a.keywordPatternRe=r(c,!0),o&&(n.begin||(n.begin=/\B|\b/),a.beginRe=r(n.begin),n.endSameAsBegin&&(n.end=n.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(a.endRe=r(n.end)),a.terminatorEnd=p(n.end)||"",n.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(n.end?"|":"")+o.terminatorEnd)),n.illegal&&(a.illegalRe=r(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map((function(e){return function(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return i(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:J(e)?i(e,{starts:e.starts?i(e.starts):null}):Object.isFrozen(e)?i(e):e}("self"===e?n:e)}))),n.contains.forEach((function(e){t(e,a)})),n.starts&&t(n.starts,o),a.matcher=function(e){const t=new s;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 J(e){return!!e&&(e.endsWithParent||J(e.starts))}function V(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,o(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const W={"after:highlightElement":({el:e,result:t,text:r})=>{const n=H(e);if(!n.length)return;const s=document.createElement("div");s.innerHTML=t.value,t.value=function(e,t,r){let n=0,s="";const i=[];function a(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function c(e){s+="<"+K(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+o(e.value)+'"'})).join("")+">"}function l(e){s+="</"+K(e)+">"}function u(e){("start"===e.event?c:l)(e.node)}for(;e.length||t.length;){let t=a();if(s+=o(r.substring(n,t[0].offset)),n=t[0].offset,t===e){i.reverse().forEach(l);do{u(t.splice(0,1)[0]),t=a()}while(t===e&&t.length&&t[0].offset===n);i.reverse().forEach(c)}else"start"===t[0].event?i.push(t[0].node):i.pop(),u(t.splice(0,1)[0])}return s+o(r.substr(n))}(n,H(s),r)}};function K(e){return e.nodeName.toLowerCase()}function H(e){const t=[];return function e(r,n){for(let s=r.firstChild;s;s=s.nextSibling)3===s.nodeType?n+=s.nodeValue.length:1===s.nodeType&&(t.push({event:"start",offset:n,node:s}),n=e(s,n),K(s).match(/br|hr|img|input/)||t.push({event:"stop",offset:n,node:s}));return n}(e,0),t}const G={},Y=e=>{console.error(e)},X=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Z=(e,t)=>{G[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),G[`${e}/${t}`]=!0)},Q=o,ee=i,te=Symbol("nomatch");var re=function(e){const t=Object.create(null),n=Object.create(null),o=[];let i=!0;const a=/(^(<[^>]+>|\t|)+|\n)/gm,c="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let p={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:u};function h(e){return p.noHighlightRe.test(e)}function d(e,t,r,n){let s="",o="";"object"==typeof t?(s=e,r=t.ignoreIllegals,o=t.language,n=void 0):(Z("10.7.0","highlight(lang, code, ...args) has been deprecated."),Z("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=e,s=t);const i={code:s,language:o};O("before:highlight",i);const a=i.result?i.result:f(i.language,i.code,r,n);return a.code=i.code,O("after:highlight",a),a}function f(e,r,n,a){function l(e,t){const r=E.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,r)&&e.keywords[r]}function u(){null!=_.subLanguage?function(){if(""===C)return;let e=null;if("string"==typeof _.subLanguage){if(!t[_.subLanguage])return void O.addText(C);e=f(_.subLanguage,C,!0,A[_.subLanguage]),A[_.subLanguage]=e.top}else e=m(C,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(j+=e.relevance),O.addSublanguage(e.emitter,e.language)}():function(){if(!_.keywords)return void O.addText(C);let e=0;_.keywordPatternRe.lastIndex=0;let t=_.keywordPatternRe.exec(C),r="";for(;t;){r+=C.substring(e,t.index);const n=l(_,t);if(n){const[e,s]=n;if(O.addText(r),r="",j+=s,e.startsWith("_"))r+=t[0];else{const r=E.classNameAliases[e]||e;O.addKeyword(t[0],r)}}else r+=t[0];e=_.keywordPatternRe.lastIndex,t=_.keywordPatternRe.exec(C)}r+=C.substr(e),O.addText(r)}(),C=""}function h(e){return e.className&&O.openNode(E.classNameAliases[e.className]||e.className),_=Object.create(e,{parent:{value:_}}),_}function d(e,t,r){let n=function(e,t){const r=e&&e.exec(t);return r&&0===r.index}(e.endRe,r);if(n){if(e["on:end"]){const r=new s(e);e["on:end"](t,r),r.isMatchIgnored&&(n=!1)}if(n){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return d(e.parent,t,r)}function g(e){return 0===_.matcher.regexIndex?(C+=e[0],1):(N=!0,0)}function y(e){const t=e[0],n=r.substr(e.index),s=d(_,e,n);if(!s)return te;const o=_;o.skip?C+=t:(o.returnEnd||o.excludeEnd||(C+=t),u(),o.excludeEnd&&(C=t));do{_.className&&O.closeNode(),_.skip||_.subLanguage||(j+=_.relevance),_=_.parent}while(_!==s.parent);return s.starts&&(s.endSameAsBegin&&(s.starts.endRe=s.endRe),h(s.starts)),o.returnEnd?0:t.length}let v={};function b(t,o){const a=o&&o[0];if(C+=t,null==a)return u(),0;if("begin"===v.type&&"end"===o.type&&v.index===o.index&&""===a){if(C+=r.slice(o.index,o.index+1),!i){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=v.rule,t}return 1}if(v=o,"begin"===o.type)return function(e){const t=e[0],r=e.rule,n=new s(r),o=[r.__beforeBegin,r["on:begin"]];for(const r of o)if(r&&(r(e,n),n.isMatchIgnored))return g(t);return r&&r.endSameAsBegin&&(r.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),r.skip?C+=t:(r.excludeBegin&&(C+=t),u(),r.returnBegin||r.excludeBegin||(C=t)),h(r),r.returnBegin?0:t.length}(o);if("illegal"===o.type&&!n){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(_.className||"<unnamed>")+'"');throw e.mode=_,e}if("end"===o.type){const e=y(o);if(e!==te)return e}if("illegal"===o.type&&""===a)return 1;if(T>1e5&&T>3*o.index)throw new Error("potential infinite loop, way more iterations than matches");return C+=a,a.length}const E=S(e);if(!E)throw Y(c.replace("{}",e)),new Error('Unknown language: "'+e+'"');const w=z(E,{plugins:o});let x="",_=a||w;const A={},O=new p.__emitter(p);!function(){const e=[];for(let t=_;t!==E;t=t.parent)t.className&&e.unshift(t.className);e.forEach((e=>O.openNode(e)))}();let C="",j=0,k=0,T=0,N=!1;try{for(_.matcher.considerAll();;){T++,N?N=!1:_.matcher.considerAll(),_.matcher.lastIndex=k;const e=_.matcher.exec(r);if(!e)break;const t=b(r.substring(k,e.index),e);k=e.index+t}return b(r.substr(k)),O.closeAllNodes(),O.finalize(),x=O.toHTML(),{relevance:Math.floor(j),value:x,language:e,illegal:!1,emitter:O,top:_}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:r.slice(k-100,k+100),mode:t.mode},sofar:x,relevance:0,value:Q(r),emitter:O};if(i)return{illegal:!1,relevance:0,value:Q(r),emitter:O,language:e,top:_,errorRaised:t};throw t}}function m(e,r){r=r||p.languages||Object.keys(t);const n=function(e){const t={relevance:0,emitter:new p.__emitter(p),value:Q(e),illegal:!1,top:l};return t.emitter.addText(e),t}(e),s=r.filter(S).filter(A).map((t=>f(t,e,!1)));s.unshift(n);const o=s.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(S(e.language).supersetOf===t.language)return 1;if(S(t.language).supersetOf===e.language)return-1}return 0})),[i,a]=o,c=i;return c.second_best=a,c}const g={"before:highlightElement":({el:e})=>{p.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:e})=>{p.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},y=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:e})=>{p.tabReplace&&(e.value=e.value.replace(y,(e=>e.replace(/\t/g,p.tabReplace))))}};function b(e){let t=null;const r=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const r=p.languageDetectRe.exec(t);if(r){const t=S(r[1]);return t||(X(c.replace("{}",r[1])),X("Falling back to no-highlight mode for this block.",e)),t?r[1]:"no-highlight"}return t.split(/\s+/).find((e=>h(e)||S(e)))}(e);if(h(r))return;O("before:highlightElement",{el:e,language:r}),t=e;const s=t.textContent,o=r?d(s,{language:r,ignoreIllegals:!0}):m(s);O("after:highlightElement",{el:e,result:o,text:s}),e.innerHTML=o.value,function(e,t,r){const s=t?n[t]:r;e.classList.add("hljs"),s&&e.classList.add(s)}(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 E=()=>{E.called||(E.called=!0,Z("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(b))};let w=!1;function x(){"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(b):w=!0}function S(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function _(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=t}))}function A(e){const t=S(e);return t&&!t.disableAutodetect}function O(e,t){const r=e;o.forEach((function(e){e[r]&&e[r](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){w&&x()}),!1),Object.assign(e,{highlight:d,highlightAuto:m,highlightAll:x,fixMarkup:function(e){return Z("10.2.0","fixMarkup will be removed entirely in v11.0"),Z("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,p.tabReplace||p.useBR?t.replace(a,(e=>"\n"===e?p.useBR?"<br>":e:p.tabReplace?e.replace(/\t/g,p.tabReplace):e)):t;var t},highlightElement:b,highlightBlock:function(e){return Z("10.7.0","highlightBlock will be removed entirely in v12.0"),Z("10.7.0","Please use highlightElement now."),b(e)},configure:function(e){e.useBR&&(Z("10.3.0","'useBR' will be removed entirely in v11.0"),Z("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),p=ee(p,e)},initHighlighting:E,initHighlightingOnLoad:function(){Z("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),w=!0},registerLanguage:function(r,n){let s=null;try{s=n(e)}catch(e){if(Y("Language definition for '{}' could not be registered.".replace("{}",r)),!i)throw e;Y(e),s=l}s.name||(s.name=r),t[r]=s,s.rawDefinition=n.bind(null,e),s.aliases&&_(s.aliases,{languageName:r})},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:S,registerAliases:_,requireLanguage:function(e){Z("10.4.0","requireLanguage will be removed entirely in v11."),Z("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=S(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:A,inherit:ee,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),o.push(e)},vuePlugin:V(e).VuePlugin}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString="10.7.3";for(const e in M)"object"==typeof M[e]&&r(M[e]);return Object.assign(e,M),e.addPlugin(g),e.addPlugin(W),e.addPlugin(v),e}({});e.exports=re},35344(e){function t(...e){return e.map((e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}e.exports=function(e){const r={},n={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},n]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,s]};s.contains.push(i);const a={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},c=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[c,e.SHEBANG(),l,a,e.HASH_COMMENT_MODE,o,i,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},r]}}},73402(e){function t(...e){return e.map((e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}e.exports=function(e){const r="HTTP/(2|1\\.[01])",n={className:"attribute",begin:t("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[n,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+r+" \\d{3})",end:/$/,contains:[{className:"meta",begin:r},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+r+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:r},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},e.inherit(n,{relevance:0})]}}},95089(e){const t="[A-Za-z$_][0-9A-Za-z$_]*",r=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],s=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function o(e){return i("(?=",e,")")}function i(...e){return e.map((e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t})).join("")}e.exports=function(e){const a=t,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const r=e[0].length+e.index,n=e.input[r];"<"!==n?">"===n&&(((e,{after:t})=>{const r="</"+e[0].slice(1);return-1!==e.input.indexOf(r,t)})(e,{after:r})||t.ignoreMatch()):t.ignoreMatch()}},l={$pattern:t,keyword:r,literal:n,built_in:s},u="[0-9](_?[0-9])*",p=`\\.(${u})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${h})((${p})|\\.)?|(${p}))[eE][+-]?(${u})\\b`},{begin:`\\b(${h})\\b((${p})\\b|\\.)?|(${p})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},m={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},g={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},y={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},b=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,g,y,d,e.REGEXP_MODE];f.contains=b.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(b)});const E=[].concat(v,f.contains),w=E.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(E)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:w};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:w},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,g,y,v,d,{begin:i(/[{,\n]\s*/,o(i(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,a+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:a+o("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[v,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:w}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:"<>",end:"</>"},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:l,contains:["self",e.inherit(e.TITLE_MODE,{begin:a}),x],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[x,e.inherit(e.TITLE_MODE,{begin:a})]},{variants:[{begin:"\\."+a},{begin:"\\$"+a}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:a}),"self",x]},{begin:"(get|set)\\s+(?="+a+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:a}),{begin:/\(\)/},x]},{begin:/\$[(.]/}]}}},65772(e){e.exports=function(e){const t={literal:"true false null"},r=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],n=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],s={end:",",endsWithParent:!0,excludeEnd:!0,contains:n,keywords:t},o={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(s,{begin:/:/})].concat(r),illegal:"\\S"},i={begin:"\\[",end:"\\]",contains:[e.inherit(s)],illegal:"\\S"};return n.push(o,i),r.forEach((function(e){n.push(e)})),{name:"JSON",contains:n,keywords:t,illegal:"\\S"}}},26571(e){e.exports=function(e){const t={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},r={begin:"`[\\s\\S]",relevance:0},n={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},s={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[r,n,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},o={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},i=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),a={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},c={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},l={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[n]}]},u={begin:/using\s/,end:/$/,returnBegin:!0,contains:[s,o,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},p={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},h={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(t.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},d=[h,i,r,e.NUMBER_MODE,s,o,a,n,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],f={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",d,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return h.contains.unshift(f),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:t,contains:d.concat(c,l,u,p,f)}}},17285(e){function t(e){return e?"string"==typeof e?e:e.source:null}function r(e){return n("(?=",e,")")}function n(...e){return e.map((e=>t(e))).join("")}function s(...e){return"("+e.map((e=>t(e))).join("|")+")"}e.exports=function(e){const t=n(/[A-Z_]/,n("(",/[A-Z0-9_.-]*:/,")?"),/[A-Z0-9_.-]*/),o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(i,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"meta-string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[A-Za-z0-9._:-]+/,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,l,c,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,a,l,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n(/</,r(n(t,s(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:u}]},{className:"tag",begin:n(/<\//,r(n(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},17533(e){e.exports=function(e){var t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},s=e.inherit(n,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),o={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},i={begin:/\{/,end:/\}/,contains:[o],illegal:"\\n",relevance:0},a={begin:"\\[",end:"\\]",contains:[o],illegal:"\\n",relevance:0},c=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},i,a,n],l=[...c];return l.pop(),l.push(s),o.contains=l,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:c}}},251(e,t){t.read=function(e,t,r,n,s){var o,i,a=8*s-n-1,c=(1<<a)-1,l=c>>1,u=-7,p=r?s-1:0,h=r?-1:1,d=e[t+p];for(p+=h,o=d&(1<<-u)-1,d>>=-u,u+=a;u>0;o=256*o+e[t+p],p+=h,u-=8);for(i=o&(1<<-u)-1,o>>=-u,u+=n;u>0;i=256*i+e[t+p],p+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,n),o-=l}return(d?-1:1)*i*Math.pow(2,o-n)},t.write=function(e,t,r,n,s,o){var i,a,c,l=8*o-s-1,u=(1<<l)-1,p=u>>1,h=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),(t+=i+p>=1?h/c:h*Math.pow(2,1-p))*c>=2&&(i++,c/=2),i+p>=u?(a=0,i=u):i+p>=1?(a=(t*c-1)*Math.pow(2,s),i+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,s),i=0));s>=8;e[r+d]=255&a,d+=f,a/=256,s-=8);for(i=i<<s|a,l+=s;l>0;e[r+d]=255&i,d+=f,i/=256,l-=8);e[r+d-f]|=128*m}},9404(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function r(e){return i(e)?e:z(e)}function n(e){return a(e)?e:J(e)}function s(e){return c(e)?e:V(e)}function o(e){return i(e)&&!l(e)?e:W(e)}function i(e){return!(!e||!e[p])}function a(e){return!(!e||!e[h])}function c(e){return!(!e||!e[d])}function l(e){return a(e)||c(e)}function u(e){return!(!e||!e[f])}t(n,r),t(s,r),t(o,r),r.isIterable=i,r.isKeyed=a,r.isIndexed=c,r.isAssociative=l,r.isOrdered=u,r.Keyed=n,r.Indexed=s,r.Set=o;var p="@@__IMMUTABLE_ITERABLE__@@",h="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",f="@@__IMMUTABLE_ORDERED__@@",m="delete",g=32,y=31,v={},b={value:!1},E={value:!1};function w(e){return e.value=!1,e}function x(e){e&&(e.value=!0)}function S(){}function _(e,t){t=t||0;for(var r=Math.max(0,e.length-t),n=new Array(r),s=0;s<r;s++)n[s]=e[s+t];return n}function A(e){return void 0===e.size&&(e.size=e.__iterate(C)),e.size}function O(e,t){if("number"!=typeof t){var r=t>>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?A(e)+t:t}function C(){return!0}function j(e,t,r){return(0===e||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function k(e,t){return N(e,t,0)}function T(e,t){return N(e,t,t)}function N(e,t,r){return void 0===e?r:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var I="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",M=I||P;function R(e){this.next=e}function D(e,t,r,n){var s=0===e?t:1===e?r:[t,r];return n?n.value=s:n={value:s,done:!1},n}function $(){return{value:void 0,done:!0}}function F(e){return!!q(e)}function B(e){return e&&"function"==typeof e.next}function L(e){var t=q(e);return t&&t.call(e)}function q(e){var t=e&&(I&&e[I]||e[P]);if("function"==typeof t)return t}function U(e){return e&&"number"==typeof e.length}function z(e){return null==e?re():i(e)?e.toSeq():function(e){var t=oe(e)||"object"==typeof e&&new Z(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function J(e){return null==e?re().toKeyedSeq():i(e)?a(e)?e.toSeq():e.fromEntrySeq():ne(e)}function V(e){return null==e?re():i(e)?a(e)?e.entrySeq():e.toIndexedSeq():se(e)}function W(e){return(null==e?re():i(e)?a(e)?e.entrySeq():e:se(e)).toSetSeq()}R.prototype.toString=function(){return"[Iterator]"},R.KEYS=0,R.VALUES=1,R.ENTRIES=2,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[M]=function(){return this},t(z,r),z.of=function(){return z(arguments)},z.prototype.toSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq {","}")},z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},z.prototype.__iterate=function(e,t){return ie(this,e,t,!0)},z.prototype.__iterator=function(e,t){return ae(this,e,t,!0)},t(J,z),J.prototype.toKeyedSeq=function(){return this},t(V,z),V.of=function(){return V(arguments)},V.prototype.toIndexedSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq [","]")},V.prototype.__iterate=function(e,t){return ie(this,e,t,!1)},V.prototype.__iterator=function(e,t){return ae(this,e,t,!1)},t(W,z),W.of=function(){return W(arguments)},W.prototype.toSetSeq=function(){return this},z.isSeq=te,z.Keyed=J,z.Set=W,z.Indexed=V;var K,H,G,Y="@@__IMMUTABLE_SEQ__@@";function X(e){this._array=e,this.size=e.length}function Z(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Q(e){this._iterable=e,this.size=e.length||e.size}function ee(e){this._iterator=e,this._iteratorCache=[]}function te(e){return!(!e||!e[Y])}function re(){return K||(K=new X([]))}function ne(e){var t=Array.isArray(e)?new X(e).fromEntrySeq():B(e)?new ee(e).fromEntrySeq():F(e)?new Q(e).fromEntrySeq():"object"==typeof e?new Z(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=oe(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function oe(e){return U(e)?new X(e):B(e)?new ee(e):F(e)?new Q(e):void 0}function ie(e,t,r,n){var s=e._cache;if(s){for(var o=s.length-1,i=0;i<=o;i++){var a=s[r?o-i:i];if(!1===t(a[1],n?a[0]:i,e))return i+1}return i}return e.__iterateUncached(t,r)}function ae(e,t,r,n){var s=e._cache;if(s){var o=s.length-1,i=0;return new R((function(){var e=s[r?o-i:i];return i++>o?{value:void 0,done:!0}:D(t,n?e[0]:i-1,e[1])}))}return e.__iteratorUncached(t,r)}function ce(e,t){return t?le(t,e,"",{"":e}):ue(e)}function le(e,t,r,n){return Array.isArray(t)?e.call(n,r,V(t).map((function(r,n){return le(e,r,n,t)}))):pe(t)?e.call(n,r,J(t).map((function(r,n){return le(e,r,n,t)}))):t}function ue(e){return Array.isArray(e)?V(e).map(ue).toList():pe(e)?J(e).map(ue).toMap():e}function pe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function he(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function de(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||c(e)!==c(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var r=!l(e);if(u(e)){var n=e.entries();return t.every((function(e,t){var s=n.next().value;return s&&he(s[1],e)&&(r||he(s[0],t))}))&&n.next().done}var s=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{s=!0;var o=e;e=t,t=o}var p=!0,h=t.__iterate((function(t,n){if(r?!e.has(t):s?!he(t,e.get(n,v)):!he(e.get(n,v),t))return p=!1,!1}));return p&&e.size===h}function fe(e,t){if(!(this instanceof fe))return new fe(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(H)return H;H=this}}function me(e,t){if(!e)throw new Error(t)}function ge(e,t,r){if(!(this instanceof ge))return new ge(e,t,r);if(me(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),r=void 0===r?1:Math.abs(r),t<e&&(r=-r),this._start=e,this._end=t,this._step=r,this.size=Math.max(0,Math.ceil((t-e)/r-1)+1),0===this.size){if(G)return G;G=this}}function ye(){throw TypeError("Abstract")}function ve(){}function be(){}function Ee(){}z.prototype[Y]=!0,t(X,V),X.prototype.get=function(e,t){return this.has(e)?this._array[O(this,e)]:t},X.prototype.__iterate=function(e,t){for(var r=this._array,n=r.length-1,s=0;s<=n;s++)if(!1===e(r[t?n-s:s],s,this))return s+1;return s},X.prototype.__iterator=function(e,t){var r=this._array,n=r.length-1,s=0;return new R((function(){return s>n?{value:void 0,done:!0}:D(e,s,r[t?n-s++:s++])}))},t(Z,J),Z.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},Z.prototype.has=function(e){return this._object.hasOwnProperty(e)},Z.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,s=n.length-1,o=0;o<=s;o++){var i=n[t?s-o:o];if(!1===e(r[i],i,this))return o+1}return o},Z.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,s=n.length-1,o=0;return new R((function(){var i=n[t?s-o:o];return o++>s?{value:void 0,done:!0}:D(e,i,r[i])}))},Z.prototype[f]=!0,t(Q,V),Q.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=L(this._iterable),n=0;if(B(r))for(var s;!(s=r.next()).done&&!1!==e(s.value,n++,this););return n},Q.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=L(this._iterable);if(!B(r))return new R($);var n=0;return new R((function(){var t=r.next();return t.done?t:D(e,n++,t.value)}))},t(ee,V),ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var r,n=this._iterator,s=this._iteratorCache,o=0;o<s.length;)if(!1===e(s[o],o++,this))return o;for(;!(r=n.next()).done;){var i=r.value;if(s[o]=i,!1===e(i,o++,this))break}return o},ee.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterator,n=this._iteratorCache,s=0;return new R((function(){if(s>=n.length){var t=r.next();if(t.done)return t;n[s]=t.value}return D(e,s,n[s++])}))},t(fe,V),fe.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},fe.prototype.get=function(e,t){return this.has(e)?this._value:t},fe.prototype.includes=function(e){return he(this._value,e)},fe.prototype.slice=function(e,t){var r=this.size;return j(e,t,r)?this:new fe(this._value,T(t,r)-k(e,r))},fe.prototype.reverse=function(){return this},fe.prototype.indexOf=function(e){return he(this._value,e)?0:-1},fe.prototype.lastIndexOf=function(e){return he(this._value,e)?this.size:-1},fe.prototype.__iterate=function(e,t){for(var r=0;r<this.size;r++)if(!1===e(this._value,r,this))return r+1;return r},fe.prototype.__iterator=function(e,t){var r=this,n=0;return new R((function(){return n<r.size?D(e,n++,r._value):{value:void 0,done:!0}}))},fe.prototype.equals=function(e){return e instanceof fe?he(this._value,e._value):de(e)},t(ge,V),ge.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},ge.prototype.get=function(e,t){return this.has(e)?this._start+O(this,e)*this._step:t},ge.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ge.prototype.slice=function(e,t){return j(e,t,this.size)?this:(e=k(e,this.size),(t=T(t,this.size))<=e?new ge(0,0):new ge(this.get(e,this._end),this.get(t,this._end),this._step))},ge.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var r=t/this._step;if(r>=0&&r<this.size)return r}return-1},ge.prototype.lastIndexOf=function(e){return this.indexOf(e)},ge.prototype.__iterate=function(e,t){for(var r=this.size-1,n=this._step,s=t?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===e(s,o,this))return o+1;s+=t?-n:n}return o},ge.prototype.__iterator=function(e,t){var r=this.size-1,n=this._step,s=t?this._start+r*n:this._start,o=0;return new R((function(){var i=s;return s+=t?-n:n,o>r?{value:void 0,done:!0}:D(e,o++,i)}))},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:de(this,e)},t(ye,r),t(ve,ye),t(be,ye),t(Ee,ye),ye.Keyed=ve,ye.Indexed=be,ye.Set=Ee;var we="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var r=65535&(e|=0),n=65535&(t|=0);return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0};function xe(e){return e>>>1&1073741824|3221225471&e}function Se(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var r=0|e;for(r!==e&&(r^=4294967295*e);e>4294967295;)r^=e/=4294967295;return xe(r)}if("string"===t)return e.length>Ne?function(e){var t=Me[e];return void 0===t&&(t=_e(e),Pe===Ie&&(Pe=0,Me={}),Pe++,Me[e]=t),t}(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(je&&void 0!==(t=Ce.get(e)))return t;if(void 0!==(t=e[Te]))return t;if(!Oe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Te]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++ke,1073741824&ke&&(ke=0),je)Ce.set(e,t);else{if(void 0!==Ae&&!1===Ae(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Oe)Object.defineProperty(e,Te,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Te]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Te]=t}}return t}(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function _e(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return xe(t)}var Ae=Object.isExtensible,Oe=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Ce,je="function"==typeof WeakMap;je&&(Ce=new WeakMap);var ke=0,Te="__immutablehash__";"function"==typeof Symbol&&(Te=Symbol(Te));var Ne=16,Ie=255,Pe=0,Me={};function Re(e){me(e!==1/0,"Cannot perform this action with an infinite size.")}function De(e){return null==e?Ye():$e(e)&&!u(e)?e:Ye().withMutations((function(t){var r=n(e);Re(r.size),r.forEach((function(e,r){return t.set(r,e)}))}))}function $e(e){return!(!e||!e[Be])}t(De,ve),De.of=function(){var t=e.call(arguments,0);return Ye().withMutations((function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw new Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}}))},De.prototype.toString=function(){return this.__toString("Map {","}")},De.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},De.prototype.set=function(e,t){return Xe(this,e,t)},De.prototype.setIn=function(e,t){return this.updateIn(e,v,(function(){return t}))},De.prototype.remove=function(e){return Xe(this,e,v)},De.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return v}))},De.prototype.update=function(e,t,r){return 1===arguments.length?e(this):this.updateIn([e],t,r)},De.prototype.updateIn=function(e,t,r){r||(r=t,t=void 0);var n=ot(this,tr(e),t,r);return n===v?void 0:n},De.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ye()},De.prototype.merge=function(){return tt(this,void 0,arguments)},De.prototype.mergeWith=function(t){return tt(this,t,e.call(arguments,1))},De.prototype.mergeIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,Ye(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,r):r[r.length-1]}))},De.prototype.mergeDeep=function(){return tt(this,rt,arguments)},De.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return tt(this,nt(t),r)},De.prototype.mergeDeepIn=function(t){var r=e.call(arguments,1);return this.updateIn(t,Ye(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,r):r[r.length-1]}))},De.prototype.sort=function(e){return jt(Jt(this,e))},De.prototype.sortBy=function(e,t){return jt(Jt(this,t,e))},De.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},De.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},De.prototype.asImmutable=function(){return this.__ensureOwner()},De.prototype.wasAltered=function(){return this.__altered},De.prototype.__iterator=function(e,t){return new We(this,e,t)},De.prototype.__iterate=function(e,t){var r=this,n=0;return this._root&&this._root.iterate((function(t){return n++,e(t[1],t[0],r)}),t),n},De.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ge(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},De.isMap=$e;var Fe,Be="@@__IMMUTABLE_MAP__@@",Le=De.prototype;function qe(e,t){this.ownerID=e,this.entries=t}function Ue(e,t,r){this.ownerID=e,this.bitmap=t,this.nodes=r}function ze(e,t,r){this.ownerID=e,this.count=t,this.nodes=r}function Je(e,t,r){this.ownerID=e,this.keyHash=t,this.entries=r}function Ve(e,t,r){this.ownerID=e,this.keyHash=t,this.entry=r}function We(e,t,r){this._type=t,this._reverse=r,this._stack=e._root&&He(e._root)}function Ke(e,t){return D(e,t[0],t[1])}function He(e,t){return{node:e,index:0,__prev:t}}function Ge(e,t,r,n){var s=Object.create(Le);return s.size=e,s._root=t,s.__ownerID=r,s.__hash=n,s.__altered=!1,s}function Ye(){return Fe||(Fe=Ge(0))}function Xe(e,t,r){var n,s;if(e._root){var o=w(b),i=w(E);if(n=Ze(e._root,e.__ownerID,0,void 0,t,r,o,i),!i.value)return e;s=e.size+(o.value?r===v?-1:1:0)}else{if(r===v)return e;s=1,n=new qe(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=s,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?Ge(s,n):Ye()}function Ze(e,t,r,n,s,o,i,a){return e?e.update(t,r,n,s,o,i,a):o===v?e:(x(a),x(i),new Ve(t,n,[s,o]))}function Qe(e){return e.constructor===Ve||e.constructor===Je}function et(e,t,r,n,s){if(e.keyHash===n)return new Je(t,n,[e.entry,s]);var o,i=(0===r?e.keyHash:e.keyHash>>>r)&y,a=(0===r?n:n>>>r)&y;return new Ue(t,1<<i|1<<a,i===a?[et(e,t,r+5,n,s)]:(o=new Ve(t,n,s),i<a?[e,o]:[o,e]))}function tt(e,t,r){for(var s=[],o=0;o<r.length;o++){var a=r[o],c=n(a);i(a)||(c=c.map((function(e){return ce(e)}))),s.push(c)}return st(e,t,s)}function rt(e,t,r){return e&&e.mergeDeep&&i(t)?e.mergeDeep(t):he(e,t)?e:t}function nt(e){return function(t,r,n){if(t&&t.mergeDeepWith&&i(r))return t.mergeDeepWith(e,r);var s=e(t,r,n);return he(t,s)?t:s}}function st(e,t,r){return 0===(r=r.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var n=t?function(r,n){e.update(n,v,(function(e){return e===v?r:t(e,r,n)}))}:function(t,r){e.set(r,t)},s=0;s<r.length;s++)r[s].forEach(n)})):e.constructor(r[0])}function ot(e,t,r,n){var s=e===v,o=t.next();if(o.done){var i=s?r:e,a=n(i);return a===i?e:a}me(s||e&&e.set,"invalid keyPath");var c=o.value,l=s?v:e.get(c,v),u=ot(l,t,r,n);return u===l?e:u===v?e.remove(c):(s?Ye():e).set(c,u)}function it(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function at(e,t,r,n){var s=n?e:_(e);return s[t]=r,s}Le[Be]=!0,Le[m]=Le.remove,Le.removeIn=Le.deleteIn,qe.prototype.get=function(e,t,r,n){for(var s=this.entries,o=0,i=s.length;o<i;o++)if(he(r,s[o][0]))return s[o][1];return n},qe.prototype.update=function(e,t,r,n,s,o,i){for(var a=s===v,c=this.entries,l=0,u=c.length;l<u&&!he(n,c[l][0]);l++);var p=l<u;if(p?c[l][1]===s:a)return this;if(x(i),(a||!p)&&x(o),!a||1!==c.length){if(!p&&!a&&c.length>=ct)return function(e,t,r,n){e||(e=new S);for(var s=new Ve(e,Se(r),[r,n]),o=0;o<t.length;o++){var i=t[o];s=s.update(e,0,void 0,i[0],i[1])}return s}(e,c,n,s);var h=e&&e===this.ownerID,d=h?c:_(c);return p?a?l===u-1?d.pop():d[l]=d.pop():d[l]=[n,s]:d.push([n,s]),h?(this.entries=d,this):new qe(e,d)}},Ue.prototype.get=function(e,t,r,n){void 0===t&&(t=Se(r));var s=1<<((0===e?t:t>>>e)&y),o=this.bitmap;return o&s?this.nodes[it(o&s-1)].get(e+5,t,r,n):n},Ue.prototype.update=function(e,t,r,n,s,o,i){void 0===r&&(r=Se(n));var a=(0===t?r:r>>>t)&y,c=1<<a,l=this.bitmap,u=!!(l&c);if(!u&&s===v)return this;var p=it(l&c-1),h=this.nodes,d=u?h[p]:void 0,f=Ze(d,e,t+5,r,n,s,o,i);if(f===d)return this;if(!u&&f&&h.length>=lt)return function(e,t,r,n,s){for(var o=0,i=new Array(g),a=0;0!==r;a++,r>>>=1)i[a]=1&r?t[o++]:void 0;return i[n]=s,new ze(e,o+1,i)}(e,h,l,a,f);if(u&&!f&&2===h.length&&Qe(h[1^p]))return h[1^p];if(u&&f&&1===h.length&&Qe(f))return f;var m=e&&e===this.ownerID,b=u?f?l:l^c:l|c,E=u?f?at(h,p,f,m):function(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var s=new Array(n),o=0,i=0;i<n;i++)i===t&&(o=1),s[i]=e[i+o];return s}(h,p,m):function(e,t,r,n){var s=e.length+1;if(n&&t+1===s)return e[t]=r,e;for(var o=new Array(s),i=0,a=0;a<s;a++)a===t?(o[a]=r,i=-1):o[a]=e[a+i];return o}(h,p,f,m);return m?(this.bitmap=b,this.nodes=E,this):new Ue(e,b,E)},ze.prototype.get=function(e,t,r,n){void 0===t&&(t=Se(r));var s=(0===e?t:t>>>e)&y,o=this.nodes[s];return o?o.get(e+5,t,r,n):n},ze.prototype.update=function(e,t,r,n,s,o,i){void 0===r&&(r=Se(n));var a=(0===t?r:r>>>t)&y,c=s===v,l=this.nodes,u=l[a];if(c&&!u)return this;var p=Ze(u,e,t+5,r,n,s,o,i);if(p===u)return this;var h=this.count;if(u){if(!p&&--h<ut)return function(e,t,r,n){for(var s=0,o=0,i=new Array(r),a=0,c=1,l=t.length;a<l;a++,c<<=1){var u=t[a];void 0!==u&&a!==n&&(s|=c,i[o++]=u)}return new Ue(e,s,i)}(e,l,h,a)}else h++;var d=e&&e===this.ownerID,f=at(l,a,p,d);return d?(this.count=h,this.nodes=f,this):new ze(e,h,f)},Je.prototype.get=function(e,t,r,n){for(var s=this.entries,o=0,i=s.length;o<i;o++)if(he(r,s[o][0]))return s[o][1];return n},Je.prototype.update=function(e,t,r,n,s,o,i){void 0===r&&(r=Se(n));var a=s===v;if(r!==this.keyHash)return a?this:(x(i),x(o),et(this,e,t,r,[n,s]));for(var c=this.entries,l=0,u=c.length;l<u&&!he(n,c[l][0]);l++);var p=l<u;if(p?c[l][1]===s:a)return this;if(x(i),(a||!p)&&x(o),a&&2===u)return new Ve(e,this.keyHash,c[1^l]);var h=e&&e===this.ownerID,d=h?c:_(c);return p?a?l===u-1?d.pop():d[l]=d.pop():d[l]=[n,s]:d.push([n,s]),h?(this.entries=d,this):new Je(e,this.keyHash,d)},Ve.prototype.get=function(e,t,r,n){return he(r,this.entry[0])?this.entry[1]:n},Ve.prototype.update=function(e,t,r,n,s,o,i){var a=s===v,c=he(n,this.entry[0]);return(c?s===this.entry[1]:a)?this:(x(i),a?void x(o):c?e&&e===this.ownerID?(this.entry[1]=s,this):new Ve(e,this.keyHash,[n,s]):(x(o),et(this,e,t,Se(n),[n,s])))},qe.prototype.iterate=Je.prototype.iterate=function(e,t){for(var r=this.entries,n=0,s=r.length-1;n<=s;n++)if(!1===e(r[t?s-n:n]))return!1},Ue.prototype.iterate=ze.prototype.iterate=function(e,t){for(var r=this.nodes,n=0,s=r.length-1;n<=s;n++){var o=r[t?s-n:n];if(o&&!1===o.iterate(e,t))return!1}},Ve.prototype.iterate=function(e,t){return e(this.entry)},t(We,R),We.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var r,n=t.node,s=t.index++;if(n.entry){if(0===s)return Ke(e,n.entry)}else if(n.entries){if(s<=(r=n.entries.length-1))return Ke(e,n.entries[this._reverse?r-s:s])}else if(s<=(r=n.nodes.length-1)){var o=n.nodes[this._reverse?r-s:s];if(o){if(o.entry)return Ke(e,o.entry);t=this._stack=He(o,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ct=8,lt=16,ut=8;function pt(e){var t=wt();if(null==e)return t;if(ht(e))return e;var r=s(e),n=r.size;return 0===n?t:(Re(n),n>0&&n<g?Et(0,n,5,null,new mt(r.toArray())):t.withMutations((function(e){e.setSize(n),r.forEach((function(t,r){return e.set(r,t)}))})))}function ht(e){return!(!e||!e[dt])}t(pt,be),pt.of=function(){return this(arguments)},pt.prototype.toString=function(){return this.__toString("List [","]")},pt.prototype.get=function(e,t){if((e=O(this,e))>=0&&e<this.size){var r=_t(this,e+=this._origin);return r&&r.array[e&y]}return t},pt.prototype.set=function(e,t){return function(e,t,r){if((t=O(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?At(e,t).set(0,r):At(e,0,t+1).set(t,r)}));t+=e._origin;var n=e._tail,s=e._root,o=w(E);return t>=Ct(e._capacity)?n=xt(n,e.__ownerID,0,t,r,o):s=xt(s,e.__ownerID,e._level,t,r,o),o.value?e.__ownerID?(e._root=s,e._tail=n,e.__hash=void 0,e.__altered=!0,e):Et(e._origin,e._capacity,e._level,s,n):e}(this,e,t)},pt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},pt.prototype.insert=function(e,t){return this.splice(e,0,t)},pt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):wt()},pt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(r){At(r,0,t+e.length);for(var n=0;n<e.length;n++)r.set(t+n,e[n])}))},pt.prototype.pop=function(){return At(this,0,-1)},pt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){At(t,-e.length);for(var r=0;r<e.length;r++)t.set(r,e[r])}))},pt.prototype.shift=function(){return At(this,1)},pt.prototype.merge=function(){return Ot(this,void 0,arguments)},pt.prototype.mergeWith=function(t){return Ot(this,t,e.call(arguments,1))},pt.prototype.mergeDeep=function(){return Ot(this,rt,arguments)},pt.prototype.mergeDeepWith=function(t){var r=e.call(arguments,1);return Ot(this,nt(t),r)},pt.prototype.setSize=function(e){return At(this,0,e)},pt.prototype.slice=function(e,t){var r=this.size;return j(e,t,r)?this:At(this,k(e,r),T(t,r))},pt.prototype.__iterator=function(e,t){var r=0,n=bt(this,t);return new R((function(){var t=n();return t===vt?{value:void 0,done:!0}:D(e,r++,t)}))},pt.prototype.__iterate=function(e,t){for(var r,n=0,s=bt(this,t);(r=s())!==vt&&!1!==e(r,n++,this););return n},pt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Et(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},pt.isList=ht;var dt="@@__IMMUTABLE_LIST__@@",ft=pt.prototype;function mt(e,t){this.array=e,this.ownerID=t}ft[dt]=!0,ft[m]=ft.remove,ft.setIn=Le.setIn,ft.deleteIn=ft.removeIn=Le.removeIn,ft.update=Le.update,ft.updateIn=Le.updateIn,ft.mergeIn=Le.mergeIn,ft.mergeDeepIn=Le.mergeDeepIn,ft.withMutations=Le.withMutations,ft.asMutable=Le.asMutable,ft.asImmutable=Le.asImmutable,ft.wasAltered=Le.wasAltered,mt.prototype.removeBefore=function(e,t,r){if(r===t?1<<t:0===this.array.length)return this;var n=r>>>t&y;if(n>=this.array.length)return new mt([],e);var s,o=0===n;if(t>0){var i=this.array[n];if((s=i&&i.removeBefore(e,t-5,r))===i&&o)return this}if(o&&!s)return this;var a=St(this,e);if(!o)for(var c=0;c<n;c++)a.array[c]=void 0;return s&&(a.array[n]=s),a},mt.prototype.removeAfter=function(e,t,r){if(r===(t?1<<t:0)||0===this.array.length)return this;var n,s=r-1>>>t&y;if(s>=this.array.length)return this;if(t>0){var o=this.array[s];if((n=o&&o.removeAfter(e,t-5,r))===o&&s===this.array.length-1)return this}var i=St(this,e);return i.array.splice(s+1),n&&(i.array[s]=n),i};var gt,yt,vt={};function bt(e,t){var r=e._origin,n=e._capacity,s=Ct(n),o=e._tail;return i(e._root,e._level,0);function i(e,a,c){return 0===a?function(e,i){var a=i===s?o&&o.array:e&&e.array,c=i>r?0:r-i,l=n-i;return l>g&&(l=g),function(){if(c===l)return vt;var e=t?--l:c++;return a&&a[e]}}(e,c):function(e,s,o){var a,c=e&&e.array,l=o>r?0:r-o>>s,u=1+(n-o>>s);return u>g&&(u=g),function(){for(;;){if(a){var e=a();if(e!==vt)return e;a=null}if(l===u)return vt;var r=t?--u:l++;a=i(c&&c[r],s-5,o+(r<<s))}}}(e,a,c)}}function Et(e,t,r,n,s,o,i){var a=Object.create(ft);return a.size=t-e,a._origin=e,a._capacity=t,a._level=r,a._root=n,a._tail=s,a.__ownerID=o,a.__hash=i,a.__altered=!1,a}function wt(){return gt||(gt=Et(0,0,5))}function xt(e,t,r,n,s,o){var i,a=n>>>r&y,c=e&&a<e.array.length;if(!c&&void 0===s)return e;if(r>0){var l=e&&e.array[a],u=xt(l,t,r-5,n,s,o);return u===l?e:((i=St(e,t)).array[a]=u,i)}return c&&e.array[a]===s?e:(x(o),i=St(e,t),void 0===s&&a===i.array.length-1?i.array.pop():i.array[a]=s,i)}function St(e,t){return t&&e&&t===e.ownerID?e:new mt(e?e.array.slice():[],t)}function _t(e,t){if(t>=Ct(e._capacity))return e._tail;if(t<1<<e._level+5){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&y],n-=5;return r}}function At(e,t,r){void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new S,s=e._origin,o=e._capacity,i=s+t,a=void 0===r?o:r<0?o+r:s+r;if(i===s&&a===o)return e;if(i>=a)return e.clear();for(var c=e._level,l=e._root,u=0;i+u<0;)l=new mt(l&&l.array.length?[void 0,l]:[],n),u+=1<<(c+=5);u&&(i+=u,s+=u,a+=u,o+=u);for(var p=Ct(o),h=Ct(a);h>=1<<c+5;)l=new mt(l&&l.array.length?[l]:[],n),c+=5;var d=e._tail,f=h<p?_t(e,a-1):h>p?new mt([],n):d;if(d&&h>p&&i<o&&d.array.length){for(var m=l=St(l,n),g=c;g>5;g-=5){var v=p>>>g&y;m=m.array[v]=St(m.array[v],n)}m.array[p>>>5&y]=d}if(a<o&&(f=f&&f.removeAfter(n,0,a)),i>=h)i-=h,a-=h,c=5,l=null,f=f&&f.removeBefore(n,0,i);else if(i>s||h<p){for(u=0;l;){var b=i>>>c&y;if(b!==h>>>c&y)break;b&&(u+=(1<<c)*b),c-=5,l=l.array[b]}l&&i>s&&(l=l.removeBefore(n,c,i-u)),l&&h<p&&(l=l.removeAfter(n,c,h-u)),u&&(i-=u,a-=u)}return e.__ownerID?(e.size=a-i,e._origin=i,e._capacity=a,e._level=c,e._root=l,e._tail=f,e.__hash=void 0,e.__altered=!0,e):Et(i,a,c,l,f)}function Ot(e,t,r){for(var n=[],o=0,a=0;a<r.length;a++){var c=r[a],l=s(c);l.size>o&&(o=l.size),i(c)||(l=l.map((function(e){return ce(e)}))),n.push(l)}return o>e.size&&(e=e.setSize(o)),st(e,t,n)}function Ct(e){return e<g?0:e-1>>>5<<5}function jt(e){return null==e?Nt():kt(e)?e:Nt().withMutations((function(t){var r=n(e);Re(r.size),r.forEach((function(e,r){return t.set(r,e)}))}))}function kt(e){return $e(e)&&u(e)}function Tt(e,t,r,n){var s=Object.create(jt.prototype);return s.size=e?e.size:0,s._map=e,s._list=t,s.__ownerID=r,s.__hash=n,s}function Nt(){return yt||(yt=Tt(Ye(),wt()))}function It(e,t,r){var n,s,o=e._map,i=e._list,a=o.get(t),c=void 0!==a;if(r===v){if(!c)return e;i.size>=g&&i.size>=2*o.size?(n=(s=i.filter((function(e,t){return void 0!==e&&a!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(n.__ownerID=s.__ownerID=e.__ownerID)):(n=o.remove(t),s=a===i.size-1?i.pop():i.set(a,void 0))}else if(c){if(r===i.get(a)[1])return e;n=o,s=i.set(a,[t,r])}else n=o.set(t,i.size),s=i.set(i.size,[t,r]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=s,e.__hash=void 0,e):Tt(n,s)}function Pt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Mt(e){this._iter=e,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function Dt(e){this._iter=e,this.size=e.size}function $t(e){var t=Zt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Qt,t.__iterateUncached=function(t,r){var n=this;return e.__iterate((function(e,r){return!1!==t(r,e,n)}),r)},t.__iteratorUncached=function(t,r){if(2===t){var n=e.__iterator(t,r);return new R((function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,r)},t}function Ft(e,t,r){var n=Zt(e);return n.size=e.size,n.has=function(t){return e.has(t)},n.get=function(n,s){var o=e.get(n,v);return o===v?s:t.call(r,o,n,e)},n.__iterateUncached=function(n,s){var o=this;return e.__iterate((function(e,s,i){return!1!==n(t.call(r,e,s,i),s,o)}),s)},n.__iteratorUncached=function(n,s){var o=e.__iterator(2,s);return new R((function(){var s=o.next();if(s.done)return s;var i=s.value,a=i[0];return D(n,a,t.call(r,i[1],a,e),s)}))},n}function Bt(e,t){var r=Zt(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=$t(e);return t.reverse=function(){return e.flip()},t}),r.get=function(r,n){return e.get(t?r:-1-r,n)},r.has=function(r){return e.has(t?r:-1-r)},r.includes=function(t){return e.includes(t)},r.cacheResult=Qt,r.__iterate=function(t,r){var n=this;return e.__iterate((function(e,r){return t(e,r,n)}),!r)},r.__iterator=function(t,r){return e.__iterator(t,!r)},r}function Lt(e,t,r,n){var s=Zt(e);return n&&(s.has=function(n){var s=e.get(n,v);return s!==v&&!!t.call(r,s,n,e)},s.get=function(n,s){var o=e.get(n,v);return o!==v&&t.call(r,o,n,e)?o:s}),s.__iterateUncached=function(s,o){var i=this,a=0;return e.__iterate((function(e,o,c){if(t.call(r,e,o,c))return a++,s(e,n?o:a-1,i)}),o),a},s.__iteratorUncached=function(s,o){var i=e.__iterator(2,o),a=0;return new R((function(){for(;;){var o=i.next();if(o.done)return o;var c=o.value,l=c[0],u=c[1];if(t.call(r,u,l,e))return D(s,n?l:a++,u,o)}}))},s}function qt(e,t,r,n){var s=e.size;if(void 0!==t&&(t|=0),void 0!==r&&(r===1/0?r=s:r|=0),j(t,r,s))return e;var o=k(t,s),i=T(r,s);if(o!=o||i!=i)return qt(e.toSeq().cacheResult(),t,r,n);var a,c=i-o;c==c&&(a=c<0?0:c);var l=Zt(e);return l.size=0===a?a:e.size&&a||void 0,!n&&te(e)&&a>=0&&(l.get=function(t,r){return(t=O(this,t))>=0&&t<a?e.get(t+o,r):r}),l.__iterateUncached=function(t,r){var s=this;if(0===a)return 0;if(r)return this.cacheResult().__iterate(t,r);var i=0,c=!0,l=0;return e.__iterate((function(e,r){if(!c||!(c=i++<o))return l++,!1!==t(e,n?r:l-1,s)&&l!==a})),l},l.__iteratorUncached=function(t,r){if(0!==a&&r)return this.cacheResult().__iterator(t,r);var s=0!==a&&e.__iterator(t,r),i=0,c=0;return new R((function(){for(;i++<o;)s.next();if(++c>a)return{value:void 0,done:!0};var e=s.next();return n||1===t?e:D(t,c-1,0===t?void 0:e.value[1],e)}))},l}function Ut(e,t,r,n){var s=Zt(e);return s.__iterateUncached=function(s,o){var i=this;if(o)return this.cacheResult().__iterate(s,o);var a=!0,c=0;return e.__iterate((function(e,o,l){if(!a||!(a=t.call(r,e,o,l)))return c++,s(e,n?o:c-1,i)})),c},s.__iteratorUncached=function(s,o){var i=this;if(o)return this.cacheResult().__iterator(s,o);var a=e.__iterator(2,o),c=!0,l=0;return new R((function(){var e,o,u;do{if((e=a.next()).done)return n||1===s?e:D(s,l++,0===s?void 0:e.value[1],e);var p=e.value;o=p[0],u=p[1],c&&(c=t.call(r,u,o,i))}while(c);return 2===s?e:D(s,o,u,e)}))},s}function zt(e,t,r){var n=Zt(e);return n.__iterateUncached=function(n,s){var o=0,a=!1;return function e(c,l){var u=this;c.__iterate((function(s,c){return(!t||l<t)&&i(s)?e(s,l+1):!1===n(s,r?c:o++,u)&&(a=!0),!a}),s)}(e,0),o},n.__iteratorUncached=function(n,s){var o=e.__iterator(n,s),a=[],c=0;return new R((function(){for(;o;){var e=o.next();if(!1===e.done){var l=e.value;if(2===n&&(l=l[1]),t&&!(a.length<t)||!i(l))return r?e:D(n,c++,l,e);a.push(o),o=l.__iterator(n,s)}else o=a.pop()}return{value:void 0,done:!0}}))},n}function Jt(e,t,r){t||(t=er);var n=a(e),s=0,o=e.toSeq().map((function(t,n){return[n,t,s++,r?r(t,n,e):t]})).toArray();return o.sort((function(e,r){return t(e[3],r[3])||e[2]-r[2]})).forEach(n?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),n?J(o):c(e)?V(o):W(o)}function Vt(e,t,r){if(t||(t=er),r){var n=e.toSeq().map((function(t,n){return[t,r(t,n,e)]})).reduce((function(e,r){return Wt(t,e[1],r[1])?r:e}));return n&&n[0]}return e.reduce((function(e,r){return Wt(t,e,r)?r:e}))}function Wt(e,t,r){var n=e(r,t);return 0===n&&r!==t&&(null==r||r!=r)||n>0}function Kt(e,t,n){var s=Zt(e);return s.size=new X(n).map((function(e){return e.size})).min(),s.__iterate=function(e,t){for(var r,n=this.__iterator(1,t),s=0;!(r=n.next()).done&&!1!==e(r.value,s++,this););return s},s.__iteratorUncached=function(e,s){var o=n.map((function(e){return e=r(e),L(s?e.reverse():e)})),i=0,a=!1;return new R((function(){var r;return a||(r=o.map((function(e){return e.next()})),a=r.some((function(e){return e.done}))),a?{value:void 0,done:!0}:D(e,i++,t.apply(null,r.map((function(e){return e.value}))))}))},s}function Ht(e,t){return te(e)?t:e.constructor(t)}function Gt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Yt(e){return Re(e.size),A(e)}function Xt(e){return a(e)?n:c(e)?s:o}function Zt(e){return Object.create((a(e)?J:c(e)?V:W).prototype)}function Qt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function er(e,t){return e>t?1:e<t?-1:0}function tr(e){var t=L(e);if(!t){if(!U(e))throw new TypeError("Expected iterable or array-like: "+e);t=L(r(e))}return t}function rr(e,t){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var i=Object.keys(e);(function(e,t){try{t.forEach(ir.bind(void 0,e))}catch(e){}})(s,i),s.size=i.length,s._name=t,s._keys=i,s._defaultValues=e}this._map=De(o)},s=n.prototype=Object.create(nr);return s.constructor=n,n}t(jt,De),jt.of=function(){return this(arguments)},jt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},jt.prototype.get=function(e,t){var r=this._map.get(e);return void 0!==r?this._list.get(r)[1]:t},jt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Nt()},jt.prototype.set=function(e,t){return It(this,e,t)},jt.prototype.remove=function(e){return It(this,e,v)},jt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},jt.prototype.__iterate=function(e,t){var r=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],r)}),t)},jt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},jt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),r=this._list.__ensureOwner(e);return e?Tt(t,r,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=r,this)},jt.isOrderedMap=kt,jt.prototype[f]=!0,jt.prototype[m]=jt.prototype.remove,t(Pt,J),Pt.prototype.get=function(e,t){return this._iter.get(e,t)},Pt.prototype.has=function(e){return this._iter.has(e)},Pt.prototype.valueSeq=function(){return this._iter.valueSeq()},Pt.prototype.reverse=function(){var e=this,t=Bt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Pt.prototype.map=function(e,t){var r=this,n=Ft(this,e,t);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(e,t)}),n},Pt.prototype.__iterate=function(e,t){var r,n=this;return this._iter.__iterate(this._useKeys?function(t,r){return e(t,r,n)}:(r=t?Yt(this):0,function(s){return e(s,t?--r:r++,n)}),t)},Pt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var r=this._iter.__iterator(1,t),n=t?Yt(this):0;return new R((function(){var s=r.next();return s.done?s:D(e,t?--n:n++,s.value,s)}))},Pt.prototype[f]=!0,t(Mt,V),Mt.prototype.includes=function(e){return this._iter.includes(e)},Mt.prototype.__iterate=function(e,t){var r=this,n=0;return this._iter.__iterate((function(t){return e(t,n++,r)}),t)},Mt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t),n=0;return new R((function(){var t=r.next();return t.done?t:D(e,n++,t.value,t)}))},t(Rt,W),Rt.prototype.has=function(e){return this._iter.includes(e)},Rt.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate((function(t){return e(t,t,r)}),t)},Rt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t);return new R((function(){var t=r.next();return t.done?t:D(e,t.value,t.value,t)}))},t(Dt,J),Dt.prototype.entrySeq=function(){return this._iter.toSeq()},Dt.prototype.__iterate=function(e,t){var r=this;return this._iter.__iterate((function(t){if(t){Gt(t);var n=i(t);return e(n?t.get(1):t[1],n?t.get(0):t[0],r)}}),t)},Dt.prototype.__iterator=function(e,t){var r=this._iter.__iterator(1,t);return new R((function(){for(;;){var t=r.next();if(t.done)return t;var n=t.value;if(n){Gt(n);var s=i(n);return D(e,s?n.get(0):n[0],s?n.get(1):n[1],t)}}}))},Mt.prototype.cacheResult=Pt.prototype.cacheResult=Rt.prototype.cacheResult=Dt.prototype.cacheResult=Qt,t(rr,ve),rr.prototype.toString=function(){return this.__toString(or(this)+" {","}")},rr.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},rr.prototype.get=function(e,t){if(!this.has(e))return t;var r=this._defaultValues[e];return this._map?this._map.get(e,r):r},rr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=sr(this,Ye()))},rr.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+or(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:sr(this,r)},rr.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:sr(this,t)},rr.prototype.wasAltered=function(){return this._map.wasAltered()},rr.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map((function(e,t){return r.get(t)})).__iterator(e,t)},rr.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map((function(e,t){return r.get(t)})).__iterate(e,t)},rr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?sr(this,t,e):(this.__ownerID=e,this._map=t,this)};var nr=rr.prototype;function sr(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._map=t,n.__ownerID=r,n}function or(e){return e._name||e.constructor.name||"Record"}function ir(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){me(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function ar(e){return null==e?fr():cr(e)&&!u(e)?e:fr().withMutations((function(t){var r=o(e);Re(r.size),r.forEach((function(e){return t.add(e)}))}))}function cr(e){return!(!e||!e[ur])}nr[m]=nr.remove,nr.deleteIn=nr.removeIn=Le.removeIn,nr.merge=Le.merge,nr.mergeWith=Le.mergeWith,nr.mergeIn=Le.mergeIn,nr.mergeDeep=Le.mergeDeep,nr.mergeDeepWith=Le.mergeDeepWith,nr.mergeDeepIn=Le.mergeDeepIn,nr.setIn=Le.setIn,nr.update=Le.update,nr.updateIn=Le.updateIn,nr.withMutations=Le.withMutations,nr.asMutable=Le.asMutable,nr.asImmutable=Le.asImmutable,t(ar,Ee),ar.of=function(){return this(arguments)},ar.fromKeys=function(e){return this(n(e).keySeq())},ar.prototype.toString=function(){return this.__toString("Set {","}")},ar.prototype.has=function(e){return this._map.has(e)},ar.prototype.add=function(e){return hr(this,this._map.set(e,!0))},ar.prototype.remove=function(e){return hr(this,this._map.remove(e))},ar.prototype.clear=function(){return hr(this,this._map.clear())},ar.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var r=0;r<t.length;r++)o(t[r]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},ar.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var r=this;return this.withMutations((function(e){r.forEach((function(r){t.every((function(e){return e.includes(r)}))||e.remove(r)}))}))},ar.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var r=this;return this.withMutations((function(e){r.forEach((function(r){t.some((function(e){return e.includes(r)}))&&e.remove(r)}))}))},ar.prototype.merge=function(){return this.union.apply(this,arguments)},ar.prototype.mergeWith=function(t){var r=e.call(arguments,1);return this.union.apply(this,r)},ar.prototype.sort=function(e){return mr(Jt(this,e))},ar.prototype.sortBy=function(e,t){return mr(Jt(this,t,e))},ar.prototype.wasAltered=function(){return this._map.wasAltered()},ar.prototype.__iterate=function(e,t){var r=this;return this._map.__iterate((function(t,n){return e(n,n,r)}),t)},ar.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},ar.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},ar.isSet=cr;var lr,ur="@@__IMMUTABLE_SET__@@",pr=ar.prototype;function hr(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function dr(e,t){var r=Object.create(pr);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function fr(){return lr||(lr=dr(Ye()))}function mr(e){return null==e?Er():gr(e)?e:Er().withMutations((function(t){var r=o(e);Re(r.size),r.forEach((function(e){return t.add(e)}))}))}function gr(e){return cr(e)&&u(e)}pr[ur]=!0,pr[m]=pr.remove,pr.mergeDeep=pr.merge,pr.mergeDeepWith=pr.mergeWith,pr.withMutations=Le.withMutations,pr.asMutable=Le.asMutable,pr.asImmutable=Le.asImmutable,pr.__empty=fr,pr.__make=dr,t(mr,ar),mr.of=function(){return this(arguments)},mr.fromKeys=function(e){return this(n(e).keySeq())},mr.prototype.toString=function(){return this.__toString("OrderedSet {","}")},mr.isOrderedSet=gr;var yr,vr=mr.prototype;function br(e,t){var r=Object.create(vr);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}function Er(){return yr||(yr=br(Nt()))}function wr(e){return null==e?Cr():xr(e)?e:Cr().unshiftAll(e)}function xr(e){return!(!e||!e[_r])}vr[f]=!0,vr.__empty=Er,vr.__make=br,t(wr,be),wr.of=function(){return this(arguments)},wr.prototype.toString=function(){return this.__toString("Stack [","]")},wr.prototype.get=function(e,t){var r=this._head;for(e=O(this,e);r&&e--;)r=r.next;return r?r.value:t},wr.prototype.peek=function(){return this._head&&this._head.value},wr.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,r=arguments.length-1;r>=0;r--)t={value:arguments[r],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Or(e,t)},wr.prototype.pushAll=function(e){if(0===(e=s(e)).size)return this;Re(e.size);var t=this.size,r=this._head;return e.reverse().forEach((function(e){t++,r={value:e,next:r}})),this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):Or(t,r)},wr.prototype.pop=function(){return this.slice(1)},wr.prototype.unshift=function(){return this.push.apply(this,arguments)},wr.prototype.unshiftAll=function(e){return this.pushAll(e)},wr.prototype.shift=function(){return this.pop.apply(this,arguments)},wr.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Cr()},wr.prototype.slice=function(e,t){if(j(e,t,this.size))return this;var r=k(e,this.size);if(T(t,this.size)!==this.size)return be.prototype.slice.call(this,e,t);for(var n=this.size-r,s=this._head;r--;)s=s.next;return this.__ownerID?(this.size=n,this._head=s,this.__hash=void 0,this.__altered=!0,this):Or(n,s)},wr.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Or(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},wr.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var r=0,n=this._head;n&&!1!==e(n.value,r++,this);)n=n.next;return r},wr.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var r=0,n=this._head;return new R((function(){if(n){var t=n.value;return n=n.next,D(e,r++,t)}return{value:void 0,done:!0}}))},wr.isStack=xr;var Sr,_r="@@__IMMUTABLE_STACK__@@",Ar=wr.prototype;function Or(e,t,r,n){var s=Object.create(Ar);return s.size=e,s._head=t,s.__ownerID=r,s.__hash=n,s.__altered=!1,s}function Cr(){return Sr||(Sr=Or(0))}function jr(e,t){var r=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}Ar[_r]=!0,Ar.withMutations=Le.withMutations,Ar.asMutable=Le.asMutable,Ar.asImmutable=Le.asImmutable,Ar.wasAltered=Le.wasAltered,r.Iterator=R,jr(r,{toArray:function(){Re(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,r){e[r]=t})),e},toIndexedSeq:function(){return new Mt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Pt(this,!0)},toMap:function(){return De(this.toKeyedSeq())},toObject:function(){Re(this.size);var e={};return this.__iterate((function(t,r){var n;"string"==typeof(n=r)&&("__proto__"===n||"constructor"===n)||(e[r]=t)})),e},toOrderedMap:function(){return jt(this.toKeyedSeq())},toOrderedSet:function(){return mr(a(this)?this.valueSeq():this)},toSet:function(){return ar(a(this)?this.valueSeq():this)},toSetSeq:function(){return new Rt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return wr(a(this)?this.valueSeq():this)},toList:function(){return pt(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Ht(this,function(e,t){var r=a(e),s=[e].concat(t).map((function(e){return i(e)?r&&(e=n(e)):e=r?ne(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===s.length)return e;if(1===s.length){var o=s[0];if(o===e||r&&a(o)||c(e)&&c(o))return o}var l=new X(s);return r?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=s.reduce((function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}}),0),l}(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return he(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Re(this.size);var r=!0;return this.__iterate((function(n,s,o){if(!e.call(t,n,s,o))return r=!1,!1})),r},filter:function(e,t){return Ht(this,Lt(this,e,t,!0))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},forEach:function(e,t){return Re(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Re(this.size),e=void 0!==e?""+e:",";var t="",r=!0;return this.__iterate((function(n){r?r=!1:t+=e,t+=null!=n?n.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Ht(this,Ft(this,e,t))},reduce:function(e,t,r){var n,s;return Re(this.size),arguments.length<2?s=!0:n=t,this.__iterate((function(t,o,i){s?(s=!1,n=t):n=e.call(r,n,t,o,i)})),n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return Ht(this,Bt(this,!0))},slice:function(e,t){return Ht(this,qt(this,e,t,!0))},some:function(e,t){return!this.every(Pr(e),t)},sort:function(e){return Ht(this,Jt(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return A(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,r){var n=De().asMutable();return e.__iterate((function(s,o){n.update(t.call(r,s,o,e),0,(function(e){return e+1}))})),n.asImmutable()}(this,e,t)},equals:function(e){return de(this,e)},entrySeq:function(){var e=this;if(e._cache)return new X(e._cache);var t=e.toSeq().map(Ir).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Pr(e),t)},findEntry:function(e,t,r){var n=r;return this.__iterate((function(r,s,o){if(e.call(t,r,s,o))return n=[s,r],!1})),n},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},findLastEntry:function(e,t,r){return this.toKeyedSeq().reverse().findEntry(e,t,r)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(C)},flatMap:function(e,t){return Ht(this,function(e,t,r){var n=Xt(e);return e.toSeq().map((function(s,o){return n(t.call(r,s,o,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Ht(this,zt(this,e,!0))},fromEntrySeq:function(){return new Dt(this)},get:function(e,t){return this.find((function(t,r){return he(r,e)}),void 0,t)},getIn:function(e,t){for(var r,n=this,s=tr(e);!(r=s.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,v):v)===v)return t}return n},groupBy:function(e,t){return function(e,t,r){var n=a(e),s=(u(e)?jt():De()).asMutable();e.__iterate((function(o,i){s.update(t.call(r,o,i,e),(function(e){return(e=e||[]).push(n?[i,o]:o),e}))}));var o=Xt(e);return s.map((function(t){return Ht(e,o(t))}))}(this,e,t)},has:function(e){return this.get(e,v)!==v},hasIn:function(e){return this.getIn(e,v)!==v},isSubset:function(e){return e="function"==typeof e.includes?e:r(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:r(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return he(t,e)}))},keySeq:function(){return this.toSeq().map(Nr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Vt(this,e)},maxBy:function(e,t){return Vt(this,t,e)},min:function(e){return Vt(this,e?Mr(e):$r)},minBy:function(e,t){return Vt(this,t?Mr(t):$r,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Ht(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Ht(this,Ut(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Pr(e),t)},sortBy:function(e,t){return Ht(this,Jt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Ht(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Ht(this,function(e,t,r){var n=Zt(e);return n.__iterateUncached=function(n,s){var o=this;if(s)return this.cacheResult().__iterate(n,s);var i=0;return e.__iterate((function(e,s,a){return t.call(r,e,s,a)&&++i&&n(e,s,o)})),i},n.__iteratorUncached=function(n,s){var o=this;if(s)return this.cacheResult().__iterator(n,s);var i=e.__iterator(2,s),a=!0;return new R((function(){if(!a)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var s=e.value,c=s[0],l=s[1];return t.call(r,l,c,o)?2===n?e:D(n,c,l,e):(a=!1,{value:void 0,done:!0})}))},n}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Pr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),r=a(e),n=t?1:0;return function(e,t){return t=we(t,3432918353),t=we(t<<15|t>>>-15,461845907),t=we(t<<13|t>>>-13,5),t=we((t=t+3864292196^e)^t>>>16,2246822507),xe((t=we(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(r?t?function(e,t){n=31*n+Fr(Se(e),Se(t))|0}:function(e,t){n=n+Fr(Se(e),Se(t))|0}:t?function(e){n=31*n+Se(e)|0}:function(e){n=n+Se(e)|0}),n)}(this))}});var kr=r.prototype;kr[p]=!0,kr[M]=kr.values,kr.__toJS=kr.toArray,kr.__toStringMapper=Rr,kr.inspect=kr.toSource=function(){return this.toString()},kr.chain=kr.flatMap,kr.contains=kr.includes,jr(n,{flip:function(){return Ht(this,$t(this))},mapEntries:function(e,t){var r=this,n=0;return Ht(this,this.toSeq().map((function(s,o){return e.call(t,[o,s],n++,r)})).fromEntrySeq())},mapKeys:function(e,t){var r=this;return Ht(this,this.toSeq().flip().map((function(n,s){return e.call(t,n,s,r)})).flip())}});var Tr=n.prototype;function Nr(e,t){return t}function Ir(e,t){return[t,e]}function Pr(e){return function(){return!e.apply(this,arguments)}}function Mr(e){return function(){return-e.apply(this,arguments)}}function Rr(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Dr(){return _(arguments)}function $r(e,t){return e<t?1:e>t?-1:0}function Fr(e,t){return e^t+2654435769+(e<<6)+(e>>2)}return Tr[h]=!0,Tr[M]=kr.entries,Tr.__toJS=kr.toObject,Tr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Rr(e)},jr(s,{toKeyedSeq:function(){return new Pt(this,!1)},filter:function(e,t){return Ht(this,Lt(this,e,t,!1))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Ht(this,Bt(this,!1))},slice:function(e,t){return Ht(this,qt(this,e,t,!1))},splice:function(e,t){var r=arguments.length;if(t=Math.max(0|t,0),0===r||2===r&&!t)return this;e=k(e,e<0?this.count():this.size);var n=this.slice(0,e);return Ht(this,1===r?n:n.concat(_(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.findLastEntry(e,t);return r?r[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Ht(this,zt(this,e,!1))},get:function(e,t){return(e=O(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,r){return r===e}),void 0,t)},has:function(e){return(e=O(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Ht(this,function(e,t){var r=Zt(e);return r.size=e.size&&2*e.size-1,r.__iterateUncached=function(r,n){var s=this,o=0;return e.__iterate((function(e,n){return(!o||!1!==r(t,o++,s))&&!1!==r(e,o++,s)}),n),o},r.__iteratorUncached=function(r,n){var s,o=e.__iterator(1,n),i=0;return new R((function(){return(!s||i%2)&&(s=o.next()).done?s:i%2?D(r,i++,t):D(r,i++,s.value,s)}))},r}(this,e))},interleave:function(){var e=[this].concat(_(arguments)),t=Kt(this.toSeq(),V.of,e),r=t.flatten(!0);return t.size&&(r.size=t.size*e.length),Ht(this,r)},keySeq:function(){return ge(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Ht(this,Ut(this,e,t,!1))},zip:function(){return Ht(this,Kt(this,Dr,[this].concat(_(arguments))))},zipWith:function(e){var t=_(arguments);return t[0]=this,Ht(this,Kt(this,e,t))}}),s.prototype[d]=!0,s.prototype[f]=!0,jr(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=kr.includes,o.prototype.contains=o.prototype.includes,jr(J,n.prototype),jr(V,s.prototype),jr(W,o.prototype),jr(ve,n.prototype),jr(be,s.prototype),jr(Ee,o.prototype),{Iterable:r,Seq:z,Collection:ye,Map:De,OrderedMap:jt,List:pt,Stack:wr,Set:ar,OrderedSet:mr,Record:rr,Range:ge,Repeat:fe,is:he,fromJS:ce}}()},69600(e){"use strict";var t,r,n=Function.prototype.toString,s="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof s&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},s((function(){throw 42}),null,t)}catch(e){e!==r&&(s=null)}else s=null;var o=/^\s*class\b/,i=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},a=function(e){try{return!i(e)&&(n.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(p=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=s?function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{s(e,null,t)}catch(e){if(e!==r)return!1}return!i(e)&&a(e)}:function(e){if(p(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return a(e);if(i(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}},35680(e,t,r){"use strict";var n=r(42008);e.exports=function(e){return!!n(e)}},42008(e,t,r){"use strict";var n=r(60301),s=r(39209),o=r(10487),i=r(36556),a=r(75795),c=r(93628),l=i("Object.prototype.toString"),u=r(49092)(),p="undefined"==typeof globalThis?r.g:globalThis,h=s(),d=i("String.prototype.slice"),f=i("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},m={__proto__:null};n(h,u&&a&&c?function(e){var t=new p[e];if(Symbol.toStringTag in t&&c){var r=c(t),n=a(r,Symbol.toStringTag);if(!n&&r){var s=c(r);n=a(s,Symbol.toStringTag)}m["$"+e]=o(n.get)}}:function(e){var t=new p[e],r=t.slice||t.set;r&&(m["$"+e]=o(r))}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=d(l(e),8,-1);return f(h,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(m,(function(r,n){if(!t)try{r(e),t=d(n,1)}catch(e){}})),t}(e)}return a?function(e){var t=!1;return n(m,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=d(n,1))}catch(e){}})),t}(e):null}},64634(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},5419(e){e.exports=function(e,t,r,n){var s=new Blob(void 0!==n?[n,e]:[e],{type:r||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(s,t);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(s):window.webkitURL.createObjectURL(s),i=document.createElement("a");i.style.display="none",i.href=o,i.setAttribute("download",t),void 0===i.download&&i.setAttribute("target","_blank"),document.body.appendChild(i),i.click(),setTimeout((function(){document.body.removeChild(i),window.URL.revokeObjectURL(o)}),200)}}},55580(e,t,r){var n=r(56110)(r(9325),"DataView");e.exports=n},21549(e,t,r){var n=r(22032),s=r(63862),o=r(66721),i=r(12749),a=r(35749);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=i,c.prototype.set=a,e.exports=c},30980(e,t,r){var n=r(39344),s=r(94033);function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=n(s.prototype),o.prototype.constructor=o,e.exports=o},80079(e,t,r){var n=r(63702),s=r(70080),o=r(24739),i=r(48655),a=r(31175);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=i,c.prototype.set=a,e.exports=c},56017(e,t,r){var n=r(39344),s=r(94033);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=n(s.prototype),o.prototype.constructor=o,e.exports=o},68223(e,t,r){var n=r(56110)(r(9325),"Map");e.exports=n},53661(e,t,r){var n=r(63040),s=r(17670),o=r(90289),i=r(4509),a=r(72949);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=o,c.prototype.has=i,c.prototype.set=a,e.exports=c},32804(e,t,r){var n=r(56110)(r(9325),"Promise");e.exports=n},76545(e,t,r){var n=r(56110)(r(9325),"Set");e.exports=n},38859(e,t,r){var n=r(53661),s=r(31380),o=r(51459);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=s,i.prototype.has=o,e.exports=i},37217(e,t,r){var n=r(80079),s=r(51420),o=r(90938),i=r(63605),a=r(29817),c=r(80945);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=s,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=c,e.exports=l},51873(e,t,r){var n=r(9325).Symbol;e.exports=n},37828(e,t,r){var n=r(9325).Uint8Array;e.exports=n},28303(e,t,r){var n=r(56110)(r(9325),"WeakMap");e.exports=n},91033(e){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},83729(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},79770(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[s++]=i)}return o}},15325(e,t,r){var n=r(96131);e.exports=function(e,t){return!(null==e||!e.length)&&n(e,t,0)>-1}},70695(e,t,r){var n=r(78096),s=r(72428),o=r(56449),i=r(3656),a=r(30361),c=r(37167),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),u=!r&&s(e),p=!r&&!u&&i(e),h=!r&&!u&&!p&&c(e),d=r||u||p||h,f=d?n(e.length,String):[],m=f.length;for(var g in e)!t&&!l.call(e,g)||d&&("length"==g||p&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||f.push(g);return f}},34932(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}},14528(e){e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},40882(e){e.exports=function(e,t,r,n){var s=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++s]);++s<o;)r=t(r,e[s],s,e);return r}},14248(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},61074(e){e.exports=function(e){return e.split("")}},1733(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},87805(e,t,r){var n=r(43360),s=r(75288);e.exports=function(e,t,r){(void 0!==r&&!s(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},16547(e,t,r){var n=r(43360),s=r(75288),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var i=e[t];o.call(e,t)&&s(i,r)&&(void 0!==r||t in e)||n(e,t,r)}},26025(e,t,r){var n=r(75288);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},74733(e,t,r){var n=r(21791),s=r(95950);e.exports=function(e,t){return e&&n(t,s(t),e)}},43838(e,t,r){var n=r(21791),s=r(37241);e.exports=function(e,t){return e&&n(t,s(t),e)}},43360(e,t,r){var n=r(93243);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},9999(e,t,r){var n=r(37217),s=r(83729),o=r(16547),i=r(74733),a=r(43838),c=r(93290),l=r(23007),u=r(92271),p=r(48948),h=r(50002),d=r(83349),f=r(5861),m=r(76189),g=r(77199),y=r(35529),v=r(56449),b=r(3656),E=r(87730),w=r(23805),x=r(38440),S=r(95950),_=r(37241),A="[object Arguments]",O="[object Function]",C="[object Object]",j={};j[A]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j[C]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j[O]=j["[object WeakMap]"]=!1,e.exports=function e(t,r,k,T,N,I){var P,M=1&r,R=2&r,D=4&r;if(k&&(P=N?k(t,T,N,I):k(t)),void 0!==P)return P;if(!w(t))return t;var $=v(t);if($){if(P=m(t),!M)return l(t,P)}else{var F=f(t),B=F==O||"[object GeneratorFunction]"==F;if(b(t))return c(t,M);if(F==C||F==A||B&&!N){if(P=R||B?{}:y(t),!M)return R?p(t,a(P,t)):u(t,i(P,t))}else{if(!j[F])return N?t:{};P=g(t,F,M)}}I||(I=new n);var L=I.get(t);if(L)return L;I.set(t,P),x(t)?t.forEach((function(n){P.add(e(n,r,k,n,t,I))})):E(t)&&t.forEach((function(n,s){P.set(s,e(n,r,k,s,t,I))}));var q=$?void 0:(D?R?d:h:R?_:S)(t);return s(q||t,(function(n,s){q&&(n=t[s=n]),o(P,s,e(n,r,k,s,t,I))})),P}},39344(e,t,r){var n=r(23805),s=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(s)return s(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},80909(e,t,r){var n=r(30641),s=r(38329)(n);e.exports=s},2523(e){e.exports=function(e,t,r,n){for(var s=e.length,o=r+(n?1:-1);n?o--:++o<s;)if(t(e[o],o,e))return o;return-1}},83120(e,t,r){var n=r(14528),s=r(45891);e.exports=function e(t,r,o,i,a){var c=-1,l=t.length;for(o||(o=s),a||(a=[]);++c<l;){var u=t[c];r>0&&o(u)?r>1?e(u,r-1,o,i,a):n(a,u):i||(a[a.length]=u)}return a}},86649(e,t,r){var n=r(83221)();e.exports=n},30641(e,t,r){var n=r(86649),s=r(95950);e.exports=function(e,t){return e&&n(e,t,s)}},47422(e,t,r){var n=r(31769),s=r(77797);e.exports=function(e,t){for(var r=0,o=(t=n(t,e)).length;null!=e&&r<o;)e=e[s(t[r++])];return r&&r==o?e:void 0}},82199(e,t,r){var n=r(14528),s=r(56449);e.exports=function(e,t,r){var o=t(e);return s(e)?o:n(o,r(e))}},72552(e,t,r){var n=r(51873),s=r(659),o=r(59350),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?s(e):o(e)}},20426(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},28077(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},96131(e,t,r){var n=r(2523),s=r(85463),o=r(76959);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,s,r)}},27534(e,t,r){var n=r(72552),s=r(40346);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},60270(e,t,r){var n=r(87068),s=r(40346);e.exports=function e(t,r,o,i,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,o,i,e,a))}},87068(e,t,r){var n=r(37217),s=r(25911),o=r(21986),i=r(50689),a=r(5861),c=r(56449),l=r(3656),u=r(37167),p="[object Arguments]",h="[object Array]",d="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,y){var v=c(e),b=c(t),E=v?h:a(e),w=b?h:a(t),x=(E=E==p?d:E)==d,S=(w=w==p?d:w)==d,_=E==w;if(_&&l(e)){if(!l(t))return!1;v=!0,x=!1}if(_&&!x)return y||(y=new n),v||u(e)?s(e,t,r,m,g,y):o(e,t,E,r,m,g,y);if(!(1&r)){var A=x&&f.call(e,"__wrapped__"),O=S&&f.call(t,"__wrapped__");if(A||O){var C=A?e.value():e,j=O?t.value():t;return y||(y=new n),g(C,j,r,m,y)}}return!!_&&(y||(y=new n),i(e,t,r,m,g,y))}},29172(e,t,r){var n=r(5861),s=r(40346);e.exports=function(e){return s(e)&&"[object Map]"==n(e)}},41799(e,t,r){var n=r(37217),s=r(60270);e.exports=function(e,t,r,o){var i=r.length,a=i,c=!o;if(null==e)return!a;for(e=Object(e);i--;){var l=r[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var u=(l=r[i])[0],p=e[u],h=l[1];if(c&&l[2]){if(void 0===p&&!(u in e))return!1}else{var d=new n;if(o)var f=o(p,h,u,e,t,d);if(!(void 0===f?s(h,p,3,o,d):f))return!1}}return!0}},85463(e){e.exports=function(e){return e!=e}},45083(e,t,r){var n=r(1882),s=r(87296),o=r(23805),i=r(47473),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||s(e))&&(n(e)?h:a).test(i(e))}},16038(e,t,r){var n=r(5861),s=r(40346);e.exports=function(e){return s(e)&&"[object Set]"==n(e)}},4901(e,t,r){var n=r(72552),s=r(30294),o=r(40346),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&s(e.length)&&!!i[n(e)]}},15389(e,t,r){var n=r(93663),s=r(87978),o=r(83488),i=r(56449),a=r(50583);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?i(e)?s(e[0],e[1]):n(e):a(e)}},88984(e,t,r){var n=r(55527),s=r(3650),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},72903(e,t,r){var n=r(23805),s=r(55527),o=r(90181),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=s(e),r=[];for(var a in e)("constructor"!=a||!t&&i.call(e,a))&&r.push(a);return r}},94033(e){e.exports=function(){}},93663(e,t,r){var n=r(41799),s=r(10776),o=r(67197);e.exports=function(e){var t=s(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},87978(e,t,r){var n=r(60270),s=r(58156),o=r(80631),i=r(28586),a=r(30756),c=r(67197),l=r(77797);e.exports=function(e,t){return i(e)&&a(t)?c(l(e),t):function(r){var i=s(r,e);return void 0===i&&i===t?o(r,e):n(t,i,3)}}},85250(e,t,r){var n=r(37217),s=r(87805),o=r(86649),i=r(42824),a=r(23805),c=r(37241),l=r(14974);e.exports=function e(t,r,u,p,h){t!==r&&o(r,(function(o,c){if(h||(h=new n),a(o))i(t,r,c,u,e,p,h);else{var d=p?p(l(t,c),o,c+"",t,r,h):void 0;void 0===d&&(d=o),s(t,c,d)}}),c)}},42824(e,t,r){var n=r(87805),s=r(93290),o=r(71961),i=r(23007),a=r(35529),c=r(72428),l=r(56449),u=r(83693),p=r(3656),h=r(1882),d=r(23805),f=r(11331),m=r(37167),g=r(14974),y=r(69884);e.exports=function(e,t,r,v,b,E,w){var x=g(e,r),S=g(t,r),_=w.get(S);if(_)n(e,r,_);else{var A=E?E(x,S,r+"",e,t,w):void 0,O=void 0===A;if(O){var C=l(S),j=!C&&p(S),k=!C&&!j&&m(S);A=S,C||j||k?l(x)?A=x:u(x)?A=i(x):j?(O=!1,A=s(S,!0)):k?(O=!1,A=o(S,!0)):A=[]:f(S)||c(S)?(A=x,c(x)?A=y(x):d(x)&&!h(x)||(A=a(S))):O=!1}O&&(w.set(S,A),b(A,S,v,E,w),w.delete(S)),n(e,r,A)}}},47237(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},17255(e,t,r){var n=r(47422);e.exports=function(e){return function(t){return n(t,e)}}},54552(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},85558(e){e.exports=function(e,t,r,n,s){return s(e,(function(e,s,o){r=n?(n=!1,e):t(r,e,s,o)})),r}},69302(e,t,r){var n=r(83488),s=r(56757),o=r(32865);e.exports=function(e,t){return o(s(e,t,n),e+"")}},73170(e,t,r){var n=r(16547),s=r(31769),o=r(30361),i=r(23805),a=r(77797);e.exports=function(e,t,r,c){if(!i(e))return e;for(var l=-1,u=(t=s(t,e)).length,p=u-1,h=e;null!=h&&++l<u;){var d=a(t[l]),f=r;if("__proto__"===d||"constructor"===d||"prototype"===d)return e;if(l!=p){var m=h[d];void 0===(f=c?c(m,d,h):void 0)&&(f=i(m)?m:o(t[l+1])?[]:{})}n(h,d,f),h=h[d]}return e}},68882(e,t,r){var n=r(83488),s=r(48152),o=s?function(e,t){return s.set(e,t),e}:n;e.exports=o},19570(e,t,r){var n=r(37334),s=r(93243),o=r(83488),i=s?function(e,t){return s(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=i},25160(e){e.exports=function(e,t,r){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(r=r>s?s:r)<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(s);++n<s;)o[n]=e[n+t];return o}},90916(e,t,r){var n=r(80909);e.exports=function(e,t){var r;return n(e,(function(e,n,s){return!(r=t(e,n,s))})),!!r}},78096(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},77556(e,t,r){var n=r(51873),s=r(34932),o=r(56449),i=r(44394),a=n?n.prototype:void 0,c=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return s(t,e)+"";if(i(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},54128(e,t,r){var n=r(31800),s=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(s,""):e}},27301(e){e.exports=function(e){return function(t){return e(t)}}},19931(e,t,r){var n=r(31769),s=r(68090),o=r(68969),i=r(77797),a=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=-1,c=(t=n(t,e)).length;if(!c)return!0;for(;++r<c;){var l=i(t[r]);if("__proto__"===l&&!a.call(e,"__proto__"))return!1;if(("constructor"===l||"prototype"===l)&&r<c-1)return!1}var u=o(e,t);return null==u||delete u[i(s(t))]}},51234(e){e.exports=function(e,t,r){for(var n=-1,s=e.length,o=t.length,i={};++n<s;){var a=n<o?t[n]:void 0;r(i,e[n],a)}return i}},19219(e){e.exports=function(e,t){return e.has(t)}},31769(e,t,r){var n=r(56449),s=r(28586),o=r(61802),i=r(13222);e.exports=function(e,t){return n(e)?e:s(e,t)?[e]:o(i(e))}},28754(e,t,r){var n=r(25160);e.exports=function(e,t,r){var s=e.length;return r=void 0===r?s:r,!t&&r>=s?e:n(e,t,r)}},49653(e,t,r){var n=r(37828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},93290(e,t,r){e=r.nmd(e);var n=r(9325),s=t&&!t.nodeType&&t,o=s&&e&&!e.nodeType&&e,i=o&&o.exports===s?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}},76169(e,t,r){var n=r(49653);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},73201(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},93736(e,t,r){var n=r(51873),s=n?n.prototype:void 0,o=s?s.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},71961(e,t,r){var n=r(49653);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},91596(e){var t=Math.max;e.exports=function(e,r,n,s){for(var o=-1,i=e.length,a=n.length,c=-1,l=r.length,u=t(i-a,0),p=Array(l+u),h=!s;++c<l;)p[c]=r[c];for(;++o<a;)(h||o<i)&&(p[n[o]]=e[o]);for(;u--;)p[c++]=e[o++];return p}},53320(e){var t=Math.max;e.exports=function(e,r,n,s){for(var o=-1,i=e.length,a=-1,c=n.length,l=-1,u=r.length,p=t(i-c,0),h=Array(p+u),d=!s;++o<p;)h[o]=e[o];for(var f=o;++l<u;)h[f+l]=r[l];for(;++a<c;)(d||o<i)&&(h[f+n[a]]=e[o++]);return h}},23007(e){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},21791(e,t,r){var n=r(16547),s=r(43360);e.exports=function(e,t,r,o){var i=!r;r||(r={});for(var a=-1,c=t.length;++a<c;){var l=t[a],u=o?o(r[l],e[l],l,r,e):void 0;void 0===u&&(u=e[l]),i?s(r,l,u):n(r,l,u)}return r}},92271(e,t,r){var n=r(21791),s=r(4664);e.exports=function(e,t){return n(e,s(e),t)}},48948(e,t,r){var n=r(21791),s=r(86375);e.exports=function(e,t){return n(e,s(e),t)}},55481(e,t,r){var n=r(9325)["__core-js_shared__"];e.exports=n},58523(e){e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},20999(e,t,r){var n=r(69302),s=r(36800);e.exports=function(e){return n((function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&s(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var c=r[n];c&&e(t,c,n,i)}return t}))}},38329(e,t,r){var n=r(64894);e.exports=function(e,t){return function(r,s){if(null==r)return r;if(!n(r))return e(r,s);for(var o=r.length,i=t?o:-1,a=Object(r);(t?i--:++i<o)&&!1!==s(a[i],i,a););return r}}},83221(e){e.exports=function(e){return function(t,r,n){for(var s=-1,o=Object(t),i=n(t),a=i.length;a--;){var c=i[e?a:++s];if(!1===r(o[c],c,o))break}return t}}},11842(e,t,r){var n=r(82819),s=r(9325);e.exports=function(e,t,r){var o=1&t,i=n(e);return function t(){return(this&&this!==s&&this instanceof t?i:e).apply(o?r:this,arguments)}}},12507(e,t,r){var n=r(28754),s=r(49698),o=r(63912),i=r(13222);e.exports=function(e){return function(t){t=i(t);var r=s(t)?o(t):void 0,a=r?r[0]:t.charAt(0),c=r?n(r,1).join(""):t.slice(1);return a[e]()+c}}},45539(e,t,r){var n=r(40882),s=r(50828),o=r(66645),i=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(s(t).replace(i,"")),e,"")}}},82819(e,t,r){var n=r(39344),s=r(23805);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),o=e.apply(r,t);return s(o)?o:r}}},77078(e,t,r){var n=r(91033),s=r(82819),o=r(37471),i=r(18073),a=r(11287),c=r(36306),l=r(9325);e.exports=function(e,t,r){var u=s(e);return function s(){for(var p=arguments.length,h=Array(p),d=p,f=a(s);d--;)h[d]=arguments[d];var m=p<3&&h[0]!==f&&h[p-1]!==f?[]:c(h,f);return(p-=m.length)<r?i(e,t,o,s.placeholder,void 0,h,m,void 0,void 0,r-p):n(this&&this!==l&&this instanceof s?u:e,this,h)}}},62006(e,t,r){var n=r(15389),s=r(64894),o=r(95950);e.exports=function(e){return function(t,r,i){var a=Object(t);if(!s(t)){var c=n(r,3);t=o(t),r=function(e){return c(a[e],e,a)}}var l=e(t,r,i);return l>-1?a[c?t[l]:l]:void 0}}},37471(e,t,r){var n=r(91596),s=r(53320),o=r(58523),i=r(82819),a=r(18073),c=r(11287),l=r(68294),u=r(36306),p=r(9325);e.exports=function e(t,r,h,d,f,m,g,y,v,b){var E=128&r,w=1&r,x=2&r,S=24&r,_=512&r,A=x?void 0:i(t);return function O(){for(var C=arguments.length,j=Array(C),k=C;k--;)j[k]=arguments[k];if(S)var T=c(O),N=o(j,T);if(d&&(j=n(j,d,f,S)),m&&(j=s(j,m,g,S)),C-=N,S&&C<b){var I=u(j,T);return a(t,r,e,O.placeholder,h,j,I,y,v,b-C)}var P=w?h:this,M=x?P[t]:t;return C=j.length,y?j=l(j,y):_&&C>1&&j.reverse(),E&&v<C&&(j.length=v),this&&this!==p&&this instanceof O&&(M=A||i(M)),M.apply(P,j)}}},24168(e,t,r){var n=r(91033),s=r(82819),o=r(9325);e.exports=function(e,t,r,i){var a=1&t,c=s(e);return function t(){for(var s=-1,l=arguments.length,u=-1,p=i.length,h=Array(p+l),d=this&&this!==o&&this instanceof t?c:e;++u<p;)h[u]=i[u];for(;l--;)h[u++]=arguments[++s];return n(d,a?r:this,h)}}},18073(e,t,r){var n=r(85087),s=r(54641),o=r(70981);e.exports=function(e,t,r,i,a,c,l,u,p,h){var d=8&t;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var f=[e,t,a,d?c:void 0,d?l:void 0,d?void 0:c,d?void 0:l,u,p,h],m=r.apply(void 0,f);return n(e)&&s(m,f),m.placeholder=i,o(m,e,t)}},66977(e,t,r){var n=r(68882),s=r(11842),o=r(77078),i=r(37471),a=r(24168),c=r(37381),l=r(3209),u=r(54641),p=r(70981),h=r(61489),d=Math.max;e.exports=function(e,t,r,f,m,g,y,v){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var E=f?f.length:0;if(E||(t&=-97,f=m=void 0),y=void 0===y?y:d(h(y),0),v=void 0===v?v:h(v),E-=m?m.length:0,64&t){var w=f,x=m;f=m=void 0}var S=b?void 0:c(e),_=[e,t,r,f,m,w,x,g,y,v];if(S&&l(_,S),e=_[0],t=_[1],r=_[2],f=_[3],m=_[4],!(v=_[9]=void 0===_[9]?b?0:e.length:d(_[9]-E,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||16==t?o(e,t,v):32!=t&&33!=t||m.length?i.apply(void 0,_):a(e,t,r,f);else var A=s(e,t,r);return p((S?n:u)(A,_),e,t)}},53138(e,t,r){var n=r(11331);e.exports=function(e){return n(e)?void 0:e}},24647(e,t,r){var n=r(54552)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},93243(e,t,r){var n=r(56110),s=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=s},25911(e,t,r){var n=r(38859),s=r(14248),o=r(19219);e.exports=function(e,t,r,i,a,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=c.get(e),d=c.get(t);if(h&&d)return h==t&&d==e;var f=-1,m=!0,g=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++f<u;){var y=e[f],v=t[f];if(i)var b=l?i(v,y,f,t,e,c):i(y,v,f,e,t,c);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!s(t,(function(e,t){if(!o(g,t)&&(y===e||a(y,e,r,i,c)))return g.push(t)}))){m=!1;break}}else if(y!==v&&!a(y,v,r,i,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},21986(e,t,r){var n=r(51873),s=r(37828),o=r(75288),i=r(25911),a=r(20317),c=r(84247),l=n?n.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=a;case"[object Set]":var f=1&n;if(d||(d=c),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;n|=2,h.set(e,t);var g=i(d(e),d(t),n,l,p,h);return h.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},50689(e,t,r){var n=r(50002),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,i,a){var c=1&r,l=n(e),u=l.length;if(u!=n(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:s.call(t,h)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=c;++p<u;){var y=e[h=l[p]],v=t[h];if(o)var b=c?o(v,y,h,t,e,a):o(y,v,h,e,t,a);if(!(void 0===b?y===v||i(y,v,r,o,a):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var E=e.constructor,w=t.constructor;E==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(t),m}},38816(e,t,r){var n=r(35970),s=r(56757),o=r(32865);e.exports=function(e){return o(s(e,void 0,n),e+"")}},34840(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},50002(e,t,r){var n=r(82199),s=r(4664),o=r(95950);e.exports=function(e){return n(e,o,s)}},83349(e,t,r){var n=r(82199),s=r(86375),o=r(37241);e.exports=function(e){return n(e,o,s)}},37381(e,t,r){var n=r(48152),s=r(63950),o=n?function(e){return n.get(e)}:s;e.exports=o},62284(e,t,r){var n=r(84629),s=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],o=s.call(n,t)?r.length:0;o--;){var i=r[o],a=i.func;if(null==a||a==e)return i.name}return t}},11287(e){e.exports=function(e){return e.placeholder}},12651(e,t,r){var n=r(74218);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},10776(e,t,r){var n=r(30756),s=r(95950);e.exports=function(e){for(var t=s(e),r=t.length;r--;){var o=t[r],i=e[o];t[r]=[o,i,n(i)]}return t}},56110(e,t,r){var n=r(45083),s=r(10392);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},28879(e,t,r){var n=r(74335)(Object.getPrototypeOf,Object);e.exports=n},659(e,t,r){var n=r(51873),s=Object.prototype,o=s.hasOwnProperty,i=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=i.call(e);return n&&(t?e[a]=r:delete e[a]),s}},4664(e,t,r){var n=r(79770),s=r(63345),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return o.call(e,t)})))}:s;e.exports=a},86375(e,t,r){var n=r(14528),s=r(28879),o=r(4664),i=r(63345),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=s(e);return t}:i;e.exports=a},5861(e,t,r){var n=r(55580),s=r(68223),o=r(32804),i=r(76545),a=r(28303),c=r(72552),l=r(47473),u="[object Map]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",f="[object DataView]",m=l(n),g=l(s),y=l(o),v=l(i),b=l(a),E=c;(n&&E(new n(new ArrayBuffer(1)))!=f||s&&E(new s)!=u||o&&E(o.resolve())!=p||i&&E(new i)!=h||a&&E(new a)!=d)&&(E=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case m:return f;case g:return u;case y:return p;case v:return h;case b:return d}return t}),e.exports=E},10392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},75251(e){var t=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var n=e.match(t);return n?n[1].split(r):[]}},49326(e,t,r){var n=r(31769),s=r(72428),o=r(56449),i=r(30361),a=r(30294),c=r(77797);e.exports=function(e,t,r){for(var l=-1,u=(t=n(t,e)).length,p=!1;++l<u;){var h=c(t[l]);if(!(p=null!=e&&r(e,h)))break;e=e[h]}return p||++l!=u?p:!!(u=null==e?0:e.length)&&a(u)&&i(h,u)&&(o(e)||s(e))}},49698(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},45434(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},22032(e,t,r){var n=r(81042);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},63862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},66721(e,t,r){var n=r(81042),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},12749(e,t,r){var n=r(81042),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},35749(e,t,r){var n=r(81042);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},76189(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},77199(e,t,r){var n=r(49653),s=r(76169),o=r(73201),i=r(93736),a=r(71961);e.exports=function(e,t,r){var c=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new c(+e);case"[object DataView]":return s(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,r);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(e);case"[object RegExp]":return o(e);case"[object Symbol]":return i(e)}}},35529(e,t,r){var n=r(39344),s=r(28879),o=r(55527);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(s(e))}},62060(e){var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,r){var n=r.length;if(!n)return e;var s=n-1;return r[s]=(n>1?"& ":"")+r[s],r=r.join(n>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+r+"] */\n")}},45891(e,t,r){var n=r(51873),s=r(72428),o=r(56449),i=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||s(e)||!!(i&&e&&e[i])}},30361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=r??9007199254740991)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},36800(e,t,r){var n=r(75288),s=r(64894),o=r(30361),i=r(23805);e.exports=function(e,t,r){if(!i(r))return!1;var a=typeof t;return!!("number"==a?s(r)&&o(t,r.length):"string"==a&&t in r)&&n(r[t],e)}},28586(e,t,r){var n=r(56449),s=r(44394),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!s(e))||i.test(e)||!o.test(e)||null!=t&&e in Object(t)}},74218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},85087(e,t,r){var n=r(30980),s=r(37381),o=r(62284),i=r(53758);e.exports=function(e){var t=o(e),r=i[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var a=s(r);return!!a&&e===a[0]}},87296(e,t,r){var n,s=r(55481),o=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},55527(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},30756(e,t,r){var n=r(23805);e.exports=function(e){return e==e&&!n(e)}},63702(e){e.exports=function(){this.__data__=[],this.size=0}},70080(e,t,r){var n=r(26025),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():s.call(t,r,1),--this.size,0))}},24739(e,t,r){var n=r(26025);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},48655(e,t,r){var n=r(26025);e.exports=function(e){return n(this.__data__,e)>-1}},31175(e,t,r){var n=r(26025);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},63040(e,t,r){var n=r(21549),s=r(80079),o=r(68223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||s),string:new n}}},17670(e,t,r){var n=r(12651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},90289(e,t,r){var n=r(12651);e.exports=function(e){return n(this,e).get(e)}},4509(e,t,r){var n=r(12651);e.exports=function(e){return n(this,e).has(e)}},72949(e,t,r){var n=r(12651);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},20317(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},67197(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},62224(e,t,r){var n=r(50104);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},3209(e,t,r){var n=r(91596),s=r(53320),o=r(36306),i="__lodash_placeholder__",a=Math.min;e.exports=function(e,t){var r=e[1],c=t[1],l=r|c,u=l<131,p=128==c&&8==r||128==c&&256==r&&e[7].length<=t[8]||384==c&&t[7].length<=t[8]&&8==r;if(!u&&!p)return e;1&c&&(e[2]=t[2],l|=1&r?0:4);var h=t[3];if(h){var d=e[3];e[3]=d?n(d,h,t[4]):h,e[4]=d?o(e[3],i):t[4]}return(h=t[5])&&(d=e[5],e[5]=d?s(d,h,t[6]):h,e[6]=d?o(e[5],i):t[6]),(h=t[7])&&(e[7]=h),128&c&&(e[8]=null==e[8]?t[8]:a(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}},48152(e,t,r){var n=r(28303),s=n&&new n;e.exports=s},81042(e,t,r){var n=r(56110)(Object,"create");e.exports=n},3650(e,t,r){var n=r(74335)(Object.keys,Object);e.exports=n},90181(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},86009(e,t,r){e=r.nmd(e);var n=r(34840),s=t&&!t.nodeType&&t,o=s&&e&&!e.nodeType&&e,i=o&&o.exports===s&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a},59350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},74335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},56757(e,t,r){var n=r(91033),s=Math.max;e.exports=function(e,t,r){return t=s(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=s(o.length-t,0),c=Array(a);++i<a;)c[i]=o[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=o[i];return l[t]=r(c),n(e,this,l)}}},68969(e,t,r){var n=r(47422),s=r(25160);e.exports=function(e,t){return t.length<2?e:n(e,s(t,0,-1))}},84629(e){e.exports={}},68294(e,t,r){var n=r(23007),s=r(30361),o=Math.min;e.exports=function(e,t){for(var r=e.length,i=o(t.length,r),a=n(e);i--;){var c=t[i];e[i]=s(c,r)?a[c]:void 0}return e}},36306(e){var t="__lodash_placeholder__";e.exports=function(e,r){for(var n=-1,s=e.length,o=0,i=[];++n<s;){var a=e[n];a!==r&&a!==t||(e[n]=t,i[o++]=n)}return i}},9325(e,t,r){var n=r(34840),s="object"==typeof self&&self&&self.Object===Object&&self,o=n||s||Function("return this")();e.exports=o},14974(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},31380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},51459(e){e.exports=function(e){return this.__data__.has(e)}},54641(e,t,r){var n=r(68882),s=r(51811)(n);e.exports=s},84247(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},32865(e,t,r){var n=r(19570),s=r(51811)(n);e.exports=s},70981(e,t,r){var n=r(75251),s=r(62060),o=r(32865),i=r(75948);e.exports=function(e,t,r){var a=t+"";return o(e,s(a,i(n(a),r)))}},51811(e){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var s=t(),o=16-(s-n);if(n=s,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},51420(e,t,r){var n=r(80079);e.exports=function(){this.__data__=new n,this.size=0}},90938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},63605(e){e.exports=function(e){return this.__data__.get(e)}},29817(e){e.exports=function(e){return this.__data__.has(e)}},80945(e,t,r){var n=r(80079),s=r(68223),o=r(53661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!s||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(i)}return r.set(e,t),this.size=r.size,this}},76959(e){e.exports=function(e,t,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}},63912(e,t,r){var n=r(61074),s=r(49698),o=r(42054);e.exports=function(e){return s(e)?o(e):n(e)}},61802(e,t,r){var n=r(62224),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(s,(function(e,r,n,s){t.push(n?s.replace(o,"$1"):r||e)})),t}));e.exports=i},77797(e,t,r){var n=r(44394);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},47473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},31800(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},42054(e){var t="\\ud800-\\udfff",r="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",s="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+n+"|"+s+")?",l="[\\ufe0e\\ufe0f]?",u=l+c+"(?:\\u200d(?:"+[o,i,a].join("|")+")"+l+c+")*",p="(?:"+[o+n+"?",n,i,a,r].join("|")+")",h=RegExp(s+"(?="+s+")|"+p+u,"g");e.exports=function(e){return e.match(h)||[]}},22225(e){var t="\\ud800-\\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",s="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",i="["+o+"]",a="\\d+",c="["+r+"]",l="["+n+"]",u="[^"+t+o+a+r+n+s+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="["+s+"]",f="(?:"+l+"|"+u+")",m="(?:"+d+"|"+u+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",y="(?:['’](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",E=b+v+"(?:\\u200d(?:"+["[^"+t+"]",p,h].join("|")+")"+b+v+")*",w="(?:"+[c,p,h].join("|")+")"+E,x=RegExp([d+"?"+l+"+"+g+"(?="+[i,d,"$"].join("|")+")",m+"+"+y+"(?="+[i,d+f,"$"].join("|")+")",d+"?"+f+"+"+g,d+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,w].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},75948(e,t,r){var n=r(83729),s=r(15325),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return n(o,(function(r){var n="_."+r[0];t&r[1]&&!s(e,n)&&e.push(n)})),e.sort()}},80257(e,t,r){var n=r(30980),s=r(56017),o=r(23007);e.exports=function(e){if(e instanceof n)return e.clone();var t=new s(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},64626(e,t,r){var n=r(66977);e.exports=function(e,t,r){return t=r?void 0:t,t=e&&null==t?e.length:t,n(e,128,void 0,void 0,void 0,void 0,t)}},84058(e,t,r){var n=r(14792),s=r(45539)((function(e,t,r){return t=t.toLowerCase(),e+(r?n(t):t)}));e.exports=s},14792(e,t,r){var n=r(13222),s=r(55808);e.exports=function(e){return s(n(e).toLowerCase())}},32629(e,t,r){var n=r(9999);e.exports=function(e){return n(e,4)}},37334(e){e.exports=function(e){return function(){return e}}},49747(e,t,r){var n=r(66977);function s(e,t,r){var o=n(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return o.placeholder=s.placeholder,o}s.placeholder={},e.exports=s},38221(e,t,r){var n=r(23805),s=r(10124),o=r(99374),i=Math.max,a=Math.min;e.exports=function(e,t,r){var c,l,u,p,h,d,f=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var r=c,n=l;return c=l=void 0,f=t,p=e.apply(n,r)}function b(e){var r=e-d;return void 0===d||r>=t||r<0||g&&e-f>=u}function E(){var e=s();if(b(e))return w(e);h=setTimeout(E,function(e){var r=t-(e-d);return g?a(r,u-(e-f)):r}(e))}function w(e){return h=void 0,y&&c?v(e):(c=l=void 0,p)}function x(){var e=s(),r=b(e);if(c=arguments,l=this,d=e,r){if(void 0===h)return function(e){return f=e,h=setTimeout(E,t),m?v(e):p}(d);if(g)return clearTimeout(h),h=setTimeout(E,t),v(d)}return void 0===h&&(h=setTimeout(E,t)),p}return t=o(t)||0,n(r)&&(m=!!r.leading,u=(g="maxWait"in r)?i(o(r.maxWait)||0,t):u,y="trailing"in r?!!r.trailing:y),x.cancel=function(){void 0!==h&&clearTimeout(h),f=0,c=d=l=h=void 0},x.flush=function(){return void 0===h?p:w(s())},x}},50828(e,t,r){var n=r(24647),s=r(13222),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=s(e))&&e.replace(o,n).replace(i,"")}},75288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},60680(e,t,r){var n=r(13222),s=/[\\^$.*+?()[\]{}|]/g,o=RegExp(s.source);e.exports=function(e){return(e=n(e))&&o.test(e)?e.replace(s,"\\$&"):e}},7309(e,t,r){var n=r(62006)(r(24713));e.exports=n},24713(e,t,r){var n=r(2523),s=r(15389),o=r(61489),i=Math.max;e.exports=function(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var c=null==r?0:o(r);return c<0&&(c=i(a+c,0)),n(e,s(t,3),c)}},35970(e,t,r){var n=r(83120);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},73424(e,t,r){var n=r(16962),s=r(2874),o=Array.prototype.push;function i(e,t){return 2==t?function(t,r){return e(t,r)}:function(t){return e(t)}}function a(e){for(var t=e?e.length:0,r=Array(t);t--;)r[t]=e[t];return r}function c(e,t){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var s=n[0]=t.apply(void 0,n);return e.apply(void 0,n),s}}}e.exports=function e(t,r,l,u){var p="function"==typeof r,h=r===Object(r);if(h&&(u=l,l=r,r=void 0),null==l)throw new TypeError;u||(u={});var d=!("cap"in u)||u.cap,f=!("curry"in u)||u.curry,m=!("fixed"in u)||u.fixed,g=!("immutable"in u)||u.immutable,y=!("rearg"in u)||u.rearg,v=p?l:s,b="curry"in u&&u.curry,E="fixed"in u&&u.fixed,w="rearg"in u&&u.rearg,x=p?l.runInContext():void 0,S=p?l:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},_=S.ary,A=S.assign,O=S.clone,C=S.curry,j=S.forEach,k=S.isArray,T=S.isError,N=S.isFunction,I=S.isWeakMap,P=S.keys,M=S.rearg,R=S.toInteger,D=S.toPath,$=P(n.aryMethod),F={castArray:function(e){return function(){var t=arguments[0];return k(t)?e(a(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],r=e(arguments[0],t),n=r.length;return d&&"number"==typeof t?(t=t>2?t-2:1,n&&n<=t?r:i(r,t)):r}},mixin:function(e){return function(t){var r=this;if(!N(r))return e(r,Object(t));var n=[];return j(P(t),(function(e){N(t[e])&&n.push([e,r.prototype[e]])})),e(r,Object(t)),j(n,(function(e){var t=e[1];N(t)?r.prototype[e[0]]=t:delete r.prototype[e[0]]})),r}},nthArg:function(e){return function(t){var r=t<0?1:R(t)+1;return C(e(t),r)}},rearg:function(e){return function(t,r){var n=r?r.length:0;return C(e(t,r),n)}},runInContext:function(r){return function(n){return e(t,r(n),u)}}};function B(e,t,r){if(m&&(E||!n.skipFixed[e])){var s=n.methodSpread[e],i=s&&s.start;return void 0===i?_(t,r):function(e,t){return function(){for(var r=arguments.length,n=r-1,s=Array(r);r--;)s[r]=arguments[r];var i=s[t],a=s.slice(0,t);return i&&o.apply(a,i),t!=n&&o.apply(a,s.slice(t+1)),e.apply(this,a)}}(t,i)}return t}function L(e,t,r){return y&&r>1&&(w||!n.skipRearg[e])?M(t,n.methodRearg[e]||n.aryRearg[r]):t}function q(e,t){for(var r=-1,n=(t=D(t)).length,s=n-1,o=O(Object(e)),i=o;null!=i&&++r<n;){var a=t[r],c=i[a];null==c||N(c)||T(c)||I(c)||(i[a]=O(r==s?c:Object(c))),i=i[a]}return o}function U(t,r){var s=n.aliasToReal[t]||t,o=n.remap[s]||s,i=u;return function(t){var n=p?x:S,a=p?x[o]:r,c=A(A({},i),t);return e(n,s,a,c)}}function z(e,t){return function(){var r=arguments.length;if(!r)return e();for(var n=Array(r);r--;)n[r]=arguments[r];var s=y?0:r-1;return n[s]=t(n[s]),e.apply(void 0,n)}}function J(e,t,r){var s,o=n.aliasToReal[e]||e,l=t,u=F[o];return u?l=u(t):g&&(n.mutate.array[o]?l=c(t,a):n.mutate.object[o]?l=c(t,function(e){return function(t){return e({},t)}}(t)):n.mutate.set[o]&&(l=c(t,q))),j($,(function(e){return j(n.aryMethod[e],(function(t){if(o==t){var r=n.methodSpread[o],a=r&&r.afterRearg;return s=a?B(o,L(o,l,e),e):L(o,B(o,l,e),e),s=function(e,t,r){return b||f&&r>1?C(t,r):t}(0,s=function(e,t){if(d){var r=n.iterateeRearg[e];if(r)return function(e,t){return z(e,(function(e){var r=t.length;return function(e,t){return 2==t?function(t,r){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(M(i(e,r),t),r)}))}(t,r);var s=!p&&n.iterateeAry[e];if(s)return function(e,t){return z(e,(function(e){return"function"==typeof e?i(e,t):e}))}(t,s)}return t}(o,s),e),!1}})),!s})),s||(s=l),s==t&&(s=b?C(s,1):function(){return t.apply(this,arguments)}),s.convert=U(o,t),s.placeholder=t.placeholder=r,s}if(!h)return J(r,l,v);var V=l,W=[];return j($,(function(e){j(n.aryMethod[e],(function(e){var t=V[n.remap[e]||e];t&&W.push([e,J(e,t,V)])}))})),j(P(V),(function(e){var t=V[e];if("function"==typeof t){for(var r=W.length;r--;)if(W[r][0]==e)return;t.convert=U(e,t),W.push([e,t])}})),j(W,(function(e){V[e[0]]=e[1]})),V.convert=function(e){return V.runInContext.convert(e)(void 0)},V.placeholder=V,j(P(V),(function(e){j(n.realToAlias[e]||[],(function(t){V[t]=V[e]}))})),V}},16962(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var s in r){var o=r[s];e.call(n,o)?n[o].push(s):n[o]=[s]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},47934(e,t,r){e.exports={ary:r(64626),assign:r(74733),clone:r(32629),curry:r(49747),forEach:r(83729),isArray:r(56449),isError:r(23546),isFunction:r(1882),isWeakMap:r(47886),iteratee:r(33855),keys:r(88984),rearg:r(84195),toInteger:r(61489),toPath:r(42072)}},56367(e,t,r){e.exports=r(77731)},79920(e,t,r){var n=r(73424),s=r(47934);e.exports=function(e,t,r){return n(s,e,t,r)}},2874(e){e.exports={}},77731(e,t,r){var n=r(79920)("set",r(63560));n.placeholder=r(2874),e.exports=n},58156(e,t,r){var n=r(47422);e.exports=function(e,t,r){var s=null==e?void 0:n(e,t);return void 0===s?r:s}},61448(e,t,r){var n=r(20426),s=r(49326);e.exports=function(e,t){return null!=e&&s(e,t,n)}},80631(e,t,r){var n=r(28077),s=r(49326);e.exports=function(e,t){return null!=e&&s(e,t,n)}},83488(e){e.exports=function(e){return e}},72428(e,t,r){var n=r(27534),s=r(40346),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&i.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},56449(e){var t=Array.isArray;e.exports=t},64894(e,t,r){var n=r(1882),s=r(30294);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},83693(e,t,r){var n=r(64894),s=r(40346);e.exports=function(e){return s(e)&&n(e)}},53812(e,t,r){var n=r(72552),s=r(40346);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},3656(e,t,r){e=r.nmd(e);var n=r(9325),s=r(89935),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},62193(e,t,r){var n=r(88984),s=r(5861),o=r(72428),i=r(56449),a=r(64894),c=r(3656),l=r(55527),u=r(37167),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||u(e)||o(e)))return!e.length;var t=s(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!n(e).length;for(var r in e)if(p.call(e,r))return!1;return!0}},2404(e,t,r){var n=r(60270);e.exports=function(e,t){return n(e,t)}},23546(e,t,r){var n=r(72552),s=r(40346),o=r(11331);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!o(e)}},1882(e,t,r){var n=r(72552),s=r(23805);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},30294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},87730(e,t,r){var n=r(29172),s=r(27301),o=r(86009),i=o&&o.isMap,a=i?s(i):n;e.exports=a},5187(e){e.exports=function(e){return null===e}},98023(e,t,r){var n=r(72552),s=r(40346);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},23805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},11331(e,t,r){var n=r(72552),s=r(28879),o=r(40346),i=Function.prototype,a=Object.prototype,c=i.toString,l=a.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=s(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==u}},38440(e,t,r){var n=r(16038),s=r(27301),o=r(86009),i=o&&o.isSet,a=i?s(i):n;e.exports=a},85015(e,t,r){var n=r(72552),s=r(56449),o=r(40346);e.exports=function(e){return"string"==typeof e||!s(e)&&o(e)&&"[object String]"==n(e)}},44394(e,t,r){var n=r(72552),s=r(40346);e.exports=function(e){return"symbol"==typeof e||s(e)&&"[object Symbol]"==n(e)}},37167(e,t,r){var n=r(4901),s=r(27301),o=r(86009),i=o&&o.isTypedArray,a=i?s(i):n;e.exports=a},47886(e,t,r){var n=r(5861),s=r(40346);e.exports=function(e){return s(e)&&"[object WeakMap]"==n(e)}},33855(e,t,r){var n=r(9999),s=r(15389);e.exports=function(e){return s("function"==typeof e?e:n(e,1))}},95950(e,t,r){var n=r(70695),s=r(88984),o=r(64894);e.exports=function(e){return o(e)?n(e):s(e)}},37241(e,t,r){var n=r(70695),s=r(72903),o=r(64894);e.exports=function(e){return o(e)?n(e,!0):s(e)}},68090(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},50104(e,t,r){var n=r(53661);function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],o=r.cache;if(o.has(s))return o.get(s);var i=e.apply(this,n);return r.cache=o.set(s,i)||o,i};return r.cache=new(s.Cache||n),r}s.Cache=n,e.exports=s},55364(e,t,r){var n=r(85250),s=r(20999)((function(e,t,r){n(e,t,r)}));e.exports=s},6048(e){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},63950(e){e.exports=function(){}},10124(e,t,r){var n=r(9325);e.exports=function(){return n.Date.now()}},90179(e,t,r){var n=r(34932),s=r(9999),o=r(19931),i=r(31769),a=r(21791),c=r(53138),l=r(38816),u=r(83349),p=l((function(e,t){var r={};if(null==e)return r;var l=!1;t=n(t,(function(t){return t=i(t,e),l||(l=t.length>1),t})),a(e,u(e),r),l&&(r=s(r,7,c));for(var p=t.length;p--;)o(r,t[p]);return r}));e.exports=p},50583(e,t,r){var n=r(47237),s=r(17255),o=r(28586),i=r(77797);e.exports=function(e){return o(e)?n(i(e)):s(e)}},84195(e,t,r){var n=r(66977),s=r(38816)((function(e,t){return n(e,256,void 0,void 0,void 0,t)}));e.exports=s},40860(e,t,r){var n=r(40882),s=r(80909),o=r(15389),i=r(85558),a=r(56449);e.exports=function(e,t,r){var c=a(e)?n:i,l=arguments.length<3;return c(e,o(t,4),r,l,s)}},63560(e,t,r){var n=r(73170);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},42426(e,t,r){var n=r(14248),s=r(15389),o=r(90916),i=r(56449),a=r(36800);e.exports=function(e,t,r){var c=i(e)?n:o;return r&&a(e,t,r)&&(t=void 0),c(e,s(t,3))}},63345(e){e.exports=function(){return[]}},89935(e){e.exports=function(){return!1}},17400(e,t,r){var n=r(99374),s=1/0;e.exports=function(e){return e?(e=n(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},61489(e,t,r){var n=r(17400);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},80218(e,t,r){var n=r(13222);e.exports=function(e){return n(e).toLowerCase()}},99374(e,t,r){var n=r(54128),s=r(23805),o=r(44394),i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=a.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):i.test(e)?NaN:+e}},42072(e,t,r){var n=r(34932),s=r(23007),o=r(56449),i=r(44394),a=r(61802),c=r(77797),l=r(13222);e.exports=function(e){return o(e)?n(e,c):i(e)?[e]:s(a(l(e)))}},69884(e,t,r){var n=r(21791),s=r(37241);e.exports=function(e){return n(e,s(e))}},13222(e,t,r){var n=r(77556);e.exports=function(e){return null==e?"":n(e)}},55808(e,t,r){var n=r(12507)("toUpperCase");e.exports=n},66645(e,t,r){var n=r(1733),s=r(45434),o=r(13222),i=r(22225);e.exports=function(e,t,r){return e=o(e),void 0===(t=r?void 0:t)?s(e)?i(e):n(e):e.match(t)||[]}},53758(e,t,r){var n=r(30980),s=r(56017),o=r(94033),i=r(56449),a=r(40346),c=r(80257),l=Object.prototype.hasOwnProperty;function u(e){if(a(e)&&!i(e)&&!(e instanceof n)){if(e instanceof s)return e;if(l.call(e,"__wrapped__"))return c(e)}return new s(e)}u.prototype=o.prototype,u.prototype.constructor=u,e.exports=u},47248(e,t,r){var n=r(16547),s=r(51234);e.exports=function(e,t){return s(e||[],t||[],n)}},43768(e,t,r){"use strict";var n=r(45981),s=r(85587);t.highlight=i,t.highlightAuto=function(e,t){var r,a,c,l,u=t||{},p=u.subset||n.listLanguages(),h=u.prefix,d=p.length,f=-1;if(null==h&&(h=o),"string"!=typeof e)throw s("Expected `string` for value, got `%s`",e);for(a={relevance:0,language:null,value:[]},r={relevance:0,language:null,value:[]};++f<d;)l=p[f],n.getLanguage(l)&&((c=i(l,e,t)).language=l,c.relevance>a.relevance&&(a=c),c.relevance>r.relevance&&(a=r,r=c));return a.language&&(r.secondBest=a),r},t.registerLanguage=function(e,t){n.registerLanguage(e,t)},t.listLanguages=function(){return n.listLanguages()},t.registerAlias=function(e,t){var r,s=e;for(r in t&&((s={})[e]=t),s)n.registerAliases(s[r],{languageName:r})},a.prototype.addText=function(e){var t,r,n=this.stack;""!==e&&((r=(t=n[n.length-1]).children[t.children.length-1])&&"text"===r.type?r.value+=e:t.children.push({type:"text",value:e}))},a.prototype.addKeyword=function(e,t){this.openNode(t),this.addText(e),this.closeNode()},a.prototype.addSublanguage=function(e,t){var r=this.stack,n=r[r.length-1],s=e.rootNode.children,o=t?{type:"element",tagName:"span",properties:{className:[t]},children:s}:s;n.children=n.children.concat(o)},a.prototype.openNode=function(e){var t=this.stack,r={type:"element",tagName:"span",properties:{className:[this.options.classPrefix+e]},children:[]};t[t.length-1].children.push(r),t.push(r)},a.prototype.closeNode=function(){this.stack.pop()},a.prototype.closeAllNodes=c,a.prototype.finalize=c,a.prototype.toHTML=function(){return""};var o="hljs-";function i(e,t,r){var i,c=n.configure({}),l=(r||{}).prefix;if("string"!=typeof e)throw s("Expected `string` for name, got `%s`",e);if(!n.getLanguage(e))throw s("Unknown language: `%s` is not registered",e);if("string"!=typeof t)throw s("Expected `string` for value, got `%s`",t);if(null==l&&(l=o),n.configure({__emitter:a,classPrefix:l}),i=n.highlight(t,{language:e,ignoreIllegals:!0}),n.configure(c||{}),i.errorRaised)throw i.errorRaised;return{relevance:i.relevance,language:i.language,value:i.emitter.rootNode.children}}function a(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function c(){}},92340(e,t,r){const n=r(6048);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class o{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new o(this.elements.filter(e,t))}reject(e,t){return e=s(e),new o(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=o},55973(e){class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},3110(e,t,r){const n=r(5187),s=r(85015),o=r(98023),i=r(53812),a=r(23805),c=r(85105),l=r(86804);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(n,l.NullElement,!1).detect(s,l.StringElement,!1).detect(o,l.NumberElement,!1).detect(i,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},10866(e,t,r){const n=r(6048),s=r(92340);class o extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new o(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=o},86804(e,t,r){const n=r(10316),s=r(41067),o=r(71167),i=r(40239),a=r(12242),c=r(6233),l=r(87726),u=r(61045),p=r(86303),h=r(14540),d=r(92340),f=r(10866),m=r(55973);function g(e){return e instanceof n?e:"string"==typeof e?new o(e):"number"==typeof e?new i(e):"boolean"==typeof e?new a(e):null===e?new s:Array.isArray(e)?new c(e.map(g)):"object"==typeof e?new u(e):e}n.prototype.ObjectElement=u,n.prototype.RefElement=h,n.prototype.MemberElement=l,n.prototype.refract=g,d.prototype.refract=g,e.exports={Element:n,NullElement:s,StringElement:o,NumberElement:i,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:g,ArraySlice:d,ObjectSlice:f,KeyValuePair:m}},86303(e,t,r){const n=r(10316);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},14540(e,t,r){const n=r(10316);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},34035(e,t,r){const n=r(3110),s=r(86804);t.g$=n,t.KeyValuePair=r(55973),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(85105),r(75147)},6233(e,t,r){const n=r(6048),s=r(10316),o=r(92340);class i extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new o(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,o)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,o)&&s.push(t)})),s}find(e){return new o(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}i.empty=function(){return new this},i["fantasy-land/empty"]=i.empty,"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=i},12242(e,t,r){const n=r(10316);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},10316(e,t,r){const n=r(2404),s=r(55973),o=r(92340);class i{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof i?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new o;const n=(e,t)=>(e.push(t),e),i=(e,r)=>{r.element===t&&e.push(r);const o=r.findRecursive(t);return o&&o.reduce(n,e),r.content instanceof s&&(r.content.key&&i(e,r.content.key),r.content.value&&i(e,r.content.value)),e};return this.content&&(this.content.element&&i(r,this.content),Array.isArray(this.content)&&this.content.reduce(i,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof i)this._content=e;else if(e instanceof o)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new o;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new o(this.content);if(this.content instanceof s){const e=new o([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof i?new o([this.content]):new o}get recursiveChildren(){const e=new o;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=i},87726(e,t,r){const n=r(55973),s=r(10316);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},41067(e,t,r){const n=r(10316);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},40239(e,t,r){const n=r(10316);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},61045(e,t,r){const n=r(6048),s=r(23805),o=r(6233),i=r(87726),a=r(10866);e.exports=class extends o{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new i(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,o)=>{const i=e.bind(t)(n,s,o);i&&r.push(i)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},71167(e,t,r){const n=r(10316);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},75147(e,t,r){const n=r(85105);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},85105(e){e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},76578(e){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},73992(e,t){"use strict";var r=Object.prototype.hasOwnProperty;function n(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function s(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var n,o,i=[];for(o in"string"!=typeof t&&(t="?"),e)if(r.call(e,o)){if((n=e[o])||null!=n&&!isNaN(n)||(n=""),o=s(o),n=s(n),null===o||null===n)continue;i.push(o+"="+n)}return i.length?t+i.join("&"):""},t.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,s={};t=r.exec(e);){var o=n(t[1]),i=n(t[2]);null===o||null===i||o in s||(s[o]=i)}return s}},41859(e,t,r){const n=r(27096),s=r(78004),o=n.types;e.exports=class e{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else{if("string"!=typeof e)throw new Error("Expected a regexp or string");this.ignoreCase=t&&-1!==t.indexOf("i"),this.multiline=t&&-1!==t.indexOf("m")}this.tokens=n(e)}_setDefaults(t){this.max=null!=t.max?t.max:null!=e.prototype.max?e.prototype.max:100,this.defaultRange=t.defaultRange?t.defaultRange:this.defaultRange.clone(),t.randInt&&(this.randInt=t.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var r,n,s,i,a;switch(e.type){case o.ROOT:case o.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&void 0===e.groupNumber&&(e.groupNumber=t.push(null)-1),n="",i=0,a=(r=e.options?this._randSelect(e.options):e.stack).length;i<a;i++)n+=this._gen(r[i],t);return e.remember&&(t[e.groupNumber]=n),n;case o.POSITION:return"";case o.SET:var c=this._expand(e);return c.length?String.fromCharCode(this._randSelect(c)):"";case o.REPETITION:for(s=this.randInt(e.min,e.max===1/0?e.min+this.max:e.max),n="",i=0;i<s;i++)n+=this._gen(e.value,t);return n;case o.REFERENCE:return t[e.value-1]||"";case o.CHAR:var l=this.ignoreCase&&this._randBool()?this._toOtherCase(e.value):e.value;return String.fromCharCode(l)}}_toOtherCase(e){return e+(97<=e&&e<=122?-32:65<=e&&e<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(e){return e instanceof s?e.index(this.randInt(0,e.length-1)):e[this.randInt(0,e.length-1)]}_expand(e){if(e.type===n.types.CHAR)return new s(e.value);if(e.type===n.types.RANGE)return new s(e.from,e.to);{let t=new s;for(let r=0;r<e.set.length;r++){let n=this._expand(e.set[r]);if(t.add(n),this.ignoreCase)for(let e=0;e<n.length;e++){let r=n.index(e),s=this._toOtherCase(r);r!==s&&t.add(s)}}return e.not?this.defaultRange.clone().subtract(t):this.defaultRange.clone().intersect(t)}}randInt(e,t){return e+Math.floor(Math.random()*(1+t-e))}get defaultRange(){return this._range=this._range||new s(32,126)}set defaultRange(e){this._range=e}static randexp(t,r){var n;return"string"==typeof t&&(t=new RegExp(t,r)),void 0===t._randexp?(n=new e(t,r),t._randexp=n):(n=t._randexp)._setDefaults(t),n.gen()}static sugar(){RegExp.prototype.gen=function(){return e.randexp(this)}}}},81214(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DebounceInput=void 0;var s=a(r(96540)),o=a(r(20181)),i=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function a(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(g,e);var t,r,a,c,m=(a=g,c=function(){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(){var e,t=d(a);if(c){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function g(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),f(h(t=m.call(this,e)),"onChange",(function(e){e.persist();var r=t.state.value,n=t.props.minLength;t.setState({value:e.target.value},(function(){var s=t.state.value;s.length>=n?t.notify(e):r.length>s.length&&t.notify(l(l({},e),{},{target:l(l({},e.target),{},{value:""})}))}))})),f(h(t),"onKeyDown",(function(e){"Enter"===e.key&&t.forceNotify(e);var r=t.props.onKeyDown;r&&(e.persist(),r(e))})),f(h(t),"onBlur",(function(e){t.forceNotify(e);var r=t.props.onBlur;r&&(e.persist(),r(e))})),f(h(t),"createNotifier",(function(e){if(e<0)t.notify=function(){return null};else if(0===e)t.notify=t.doNotify;else{var r=(0,o.default)((function(e){t.isDebouncing=!1,t.doNotify(e)}),e);t.notify=function(e){t.isDebouncing=!0,r(e)},t.flush=function(){return r.flush()},t.cancel=function(){t.isDebouncing=!1,r.cancel()}}})),f(h(t),"doNotify",(function(){t.props.onChange.apply(void 0,arguments)})),f(h(t),"forceNotify",(function(e){var r=t.props.debounceTimeout;if(t.isDebouncing||!(r>0)){t.cancel&&t.cancel();var n=t.state.value,s=t.props.minLength;n.length>=s?t.doNotify(e):t.doNotify(l(l({},e),{},{target:l(l({},e.target),{},{value:n})}))}})),t.isDebouncing=!1,t.state={value:void 0===e.value||null===e.value?"":e.value};var r=t.props.debounceTimeout;return t.createNotifier(r),t}return t=g,(r=[{key:"componentDidUpdate",value:function(e){if(!this.isDebouncing){var t=this.props,r=t.value,n=t.debounceTimeout,s=e.debounceTimeout,o=e.value,i=this.state.value;void 0!==r&&o!==r&&i!==r&&this.setState({value:r}),n!==s&&this.createNotifier(n)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var e,t,r=this.props,n=r.element,o=(r.onChange,r.value,r.minLength,r.debounceTimeout,r.forceNotifyByEnter),a=r.forceNotifyOnBlur,c=r.onKeyDown,u=r.onBlur,p=r.inputRef,h=function(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(r,i),d=this.state.value;e=o?{onKeyDown:this.onKeyDown}:c?{onKeyDown:c}:{},t=a?{onBlur:this.onBlur}:u?{onBlur:u}:{};var f=p?{ref:p}:{};return s.default.createElement(n,l(l(l(l({},h),{},{onChange:this.onChange,value:d},e),t),f))}}])&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),g}(s.default.PureComponent);t.DebounceInput=m,f(m,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0})},24677(e,t,r){"use strict";var n=r(81214).DebounceInput;n.DebounceInput=n,e.exports=n},2209(e,t,r){"use strict";var n,s=r(9404),o=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};o.isRequired=o;var i=function(){return o};function a(e,t){return r="Iterable."+e,n=function(e){return s.Iterable.isIterable(e)&&t(e)},function(e){function t(t,r,n,s,o,i){for(var a=arguments.length,c=Array(a>6?a-6:0),l=6;l<a;l++)c[l-6]=arguments[l];return i=i||n,s=s||"<<anonymous>>",null!=r[n]?e.apply(void 0,[r,n,s,o,i].concat(c)):t?new Error("Required "+o+" `"+i+"` was not specified in `"+s+"`."):void 0}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}((function(e,t,o,i,a){var c=e[t];if(!n(c)){var l=function(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":e instanceof s.Iterable?"Immutable."+e.toSource().split(" ")[0]:t}(c);return new Error("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `"+r+"`.")}return null}));var r,n}(n={listOf:i,mapOf:i,orderedMapOf:i,setOf:i,orderedSetOf:i,stackOf:i,iterableOf:i,recordOf:i,shape:i,contains:i,mapContains:i,orderedMapContains:i,list:o,map:o,orderedMap:o,set:o,orderedSet:o,stack:o,seq:o,record:o,iterable:o}).iterable.indexed=a("Indexed",s.Iterable.isIndexed),n.iterable.keyed=a("Keyed",s.Iterable.isKeyed),e.exports=n},84977(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,s=(n=r(9404))&&n.__esModule?n:{default:n},o=r(55674);t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Map,r=Object.keys(e);return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t(),s=arguments[1];return n.withMutations((function(t){r.forEach((function(r){var n=(0,e[r])(t.get(r),s);(0,o.validateNextState)(n,r,s),t.set(r,n)}))}))}},e.exports=t.default},89593(e,t,r){"use strict";t.H=void 0;var n,s=(n=r(84977))&&n.__esModule?n:{default:n};t.H=s.default},48590(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"@@redux/INIT"===e.type?"initialState argument passed to createStore":"previous state received by the reducer"},e.exports=t.default},82261(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(9404)),s=o(r(48590));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){var o=Object.keys(t);if(!o.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";var i=(0,s.default)(r);if(n.default.isImmutable?!n.default.isImmutable(e):!n.default.Iterable.isIterable(e))return"The "+i+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+o.join('", "')+'".';var a=e.toSeq().keySeq().toArray().filter((function(e){return!t.hasOwnProperty(e)}));return a.length>0?"Unexpected "+(1===a.length?"property":"properties")+' "'+a.join('", "')+'" found in '+i+'. Expected to find one of the known reducer property names instead: "'+o.join('", "')+'". Unexpected properties will be ignored.':null},e.exports=t.default},55674(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNextState=t.getUnexpectedInvocationParameterMessage=t.getStateName=void 0;var n=i(r(48590)),s=i(r(82261)),o=i(r(27374));function i(e){return e&&e.__esModule?e:{default:e}}t.getStateName=n.default,t.getUnexpectedInvocationParameterMessage=s.default,t.validateNextState=o.default},27374(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(void 0===e)throw new Error('Reducer "'+t+'" returned undefined when handling "'+r.type+'" action. To ignore an action, you must explicitly return the previous state.')},e.exports=t.default},75208(e){"use strict";var t,r="";e.exports=function(e,n){if("string"!=typeof e)throw new TypeError("expected a string");if(1===n)return e;if(2===n)return e+e;var s=e.length*n;if(t!==e||void 0===t)t=e,r="";else if(r.length>=s)return r.substr(0,s);for(;s>r.length&&n>1;)1&n&&(r+=e),n>>=1,e+=e;return r=(r+=e).substr(0,s)}},92063(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},27096(e,t,r){const n=r(87586),s=r(6205),o=r(10023),i=r(8048);e.exports=e=>{var t,r,a=0,c={type:s.ROOT,stack:[]},l=c,u=c.stack,p=[],h=t=>{n.error(e,"Nothing to repeat at column "+(t-1))},d=n.strToChars(e);for(t=d.length;a<t;)switch(r=d[a++]){case"\\":switch(r=d[a++]){case"b":u.push(i.wordBoundary());break;case"B":u.push(i.nonWordBoundary());break;case"w":u.push(o.words());break;case"W":u.push(o.notWords());break;case"d":u.push(o.ints());break;case"D":u.push(o.notInts());break;case"s":u.push(o.whitespace());break;case"S":u.push(o.notWhitespace());break;default:/\d/.test(r)?u.push({type:s.REFERENCE,value:parseInt(r,10)}):u.push({type:s.CHAR,value:r.charCodeAt(0)})}break;case"^":u.push(i.begin());break;case"$":u.push(i.end());break;case"[":var f;"^"===d[a]?(f=!0,a++):f=!1;var m=n.tokenizeClass(d.slice(a),e);a+=m[1],u.push({type:s.SET,set:m[0],not:f});break;case".":u.push(o.anyChar());break;case"(":var g={type:s.GROUP,stack:[],remember:!0};"?"===(r=d[a])&&(r=d[a+1],a+=2,"="===r?g.followedBy=!0:"!"===r?g.notFollowedBy=!0:":"!==r&&n.error(e,`Invalid group, character '${r}' after '?' at column `+(a-1)),g.remember=!1),u.push(g),p.push(l),l=g,u=g.stack;break;case")":0===p.length&&n.error(e,"Unmatched ) at column "+(a-1)),u=(l=p.pop()).options?l.options[l.options.length-1]:l.stack;break;case"|":l.options||(l.options=[l.stack],delete l.stack);var y=[];l.options.push(y),u=y;break;case"{":var v,b,E=/^(\d+)(,(\d+)?)?\}/.exec(d.slice(a));null!==E?(0===u.length&&h(a),v=parseInt(E[1],10),b=E[2]?E[3]?parseInt(E[3],10):1/0:v,a+=E[0].length,u.push({type:s.REPETITION,min:v,max:b,value:u.pop()})):u.push({type:s.CHAR,value:123});break;case"?":0===u.length&&h(a),u.push({type:s.REPETITION,min:0,max:1,value:u.pop()});break;case"+":0===u.length&&h(a),u.push({type:s.REPETITION,min:1,max:1/0,value:u.pop()});break;case"*":0===u.length&&h(a),u.push({type:s.REPETITION,min:0,max:1/0,value:u.pop()});break;default:u.push({type:s.CHAR,value:r.charCodeAt(0)})}return 0!==p.length&&n.error(e,"Unterminated group"),c},e.exports.types=s},8048(e,t,r){const n=r(6205);t.wordBoundary=()=>({type:n.POSITION,value:"b"}),t.nonWordBoundary=()=>({type:n.POSITION,value:"B"}),t.begin=()=>({type:n.POSITION,value:"^"}),t.end=()=>({type:n.POSITION,value:"$"})},10023(e,t,r){const n=r(6205),s=()=>[{type:n.RANGE,from:48,to:57}],o=()=>[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(s()),i=()=>[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.RANGE,from:8192,to:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}];t.words=()=>({type:n.SET,set:o(),not:!1}),t.notWords=()=>({type:n.SET,set:o(),not:!0}),t.ints=()=>({type:n.SET,set:s(),not:!1}),t.notInts=()=>({type:n.SET,set:s(),not:!0}),t.whitespace=()=>({type:n.SET,set:i(),not:!1}),t.notWhitespace=()=>({type:n.SET,set:i(),not:!0}),t.anyChar=()=>({type:n.SET,set:[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}],not:!0})},6205(e){e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},87586(e,t,r){const n=r(6205),s=r(10023),o={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){return e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,(function(e,t,r,n,s,i,a,c){if(r)return e;var l=t?8:n?parseInt(n,16):s?parseInt(s,16):i?parseInt(i,8):a?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(a):o[c],u=String.fromCharCode(l);return/[[\]{}^$.|?*+()]/.test(u)&&(u="\\"+u),u}))},t.tokenizeClass=(e,r)=>{for(var o,i,a=[],c=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(o=c.exec(e));)if(o[1])a.push(s.words());else if(o[2])a.push(s.ints());else if(o[3])a.push(s.whitespace());else if(o[4])a.push(s.notWords());else if(o[5])a.push(s.notInts());else if(o[6])a.push(s.notWhitespace());else if(o[7])a.push({type:n.RANGE,from:(o[8]||o[9]).charCodeAt(0),to:o[10].charCodeAt(0)});else{if(!(i=o[12]))return[a,c.lastIndex];a.push({type:n.CHAR,value:i.charCodeAt(0)})}t.error(r,"Unterminated character class")},t.error=(e,t)=>{throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},92861(e,t,r){var n=r(48287),s=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return s(e,t,r)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i),i.prototype=Object.create(s.prototype),o(s,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=s(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},20334(e){"use strict";class t extends Error{constructor(e){super(t._prepareSuperMessage(e)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,t)}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}}const r=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],n=Symbol(".toJSON called"),s=({from:e,seen:t,to_:o,forceEnumerable:i,maxDepth:a,depth:c})=>{const l=o||(Array.isArray(e)?[]:{});if(t.push(e),c>=a)return l;if("function"==typeof e.toJSON&&!0!==e[n])return(e=>{e[n]=!0;const t=e.toJSON();return delete e[n],t})(e);for(const[r,n]of Object.entries(e))"function"==typeof Buffer&&Buffer.isBuffer(n)?l[r]="[object Buffer]":"function"!=typeof n&&(n&&"object"==typeof n?t.includes(e[r])?l[r]="[Circular]":(c++,l[r]=s({from:e[r],seen:t.slice(),forceEnumerable:i,maxDepth:a,depth:c})):l[r]=n);for(const{property:t,enumerable:n}of r)"string"==typeof e[t]&&Object.defineProperty(l,t,{value:e[t],enumerable:!!i||n,configurable:!0,writable:!0});return l};e.exports={serializeError:(e,t={})=>{const{maxDepth:r=Number.POSITIVE_INFINITY}=t;return"object"==typeof e&&null!==e?s({from:e,seen:[],forceEnumerable:!0,maxDepth:r,depth:0}):"function"==typeof e?`[Function: ${e.name||"anonymous"}]`:e},deserializeError:(e,r={})=>{const{maxDepth:n=Number.POSITIVE_INFINITY}=r;if(e instanceof Error)return e;if("object"==typeof e&&null!==e&&!Array.isArray(e)){const t=new Error;return s({from:e,seen:[],to_:t,maxDepth:n,depth:0}),t}return new t(e)}}},96897(e,t,r){"use strict";var n=r(70453),s=r(30041),o=r(30592)(),i=r(75795),a=r(69675),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in e&&i){var u=i(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(l=!1)}return(n||l||!r)&&(o?s(e,"length",t,!0,!0):s(e,"length",t)),e}},8068(e){"use strict";var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,a=(e,t)=>{for(var r in t||(t={}))s.call(t,r)&&i(e,r,t[r]);if(n)for(var r of n(t))o.call(t,r)&&i(e,r,t[r]);return e},c=(e,t,r)=>i(e,"symbol"!=typeof t?t+"":t,r),l={};((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})(l,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>u,default:()=>f});var u=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:u,counter:0},h=class{constructor(e={}){c(this,"counter"),c(this,"debug"),c(this,"dict"),c(this,"version"),c(this,"dictIndex",0),c(this,"dictRange",[]),c(this,"lowerBound",0),c(this,"upperBound",0),c(this,"dictLength",0),c(this,"uuidLength"),c(this,"_digit_first_ascii",48),c(this,"_digit_last_ascii",58),c(this,"_alpha_lower_first_ascii",97),c(this,"_alpha_lower_last_ascii",123),c(this,"_hex_last_ascii",103),c(this,"_alpha_upper_first_ascii",65),c(this,"_alpha_upper_last_ascii",91),c(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),c(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),c(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),c(this,"log",((...e)=>{const t=[...e];t[0]="[short-unique-id] ".concat(e[0]),!0!==this.debug||"undefined"==typeof console||null===console||console.log(...t)})),c(this,"_normalizeDictionary",((e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{r=[],this.dictIndex=0;const t="_".concat(e,"_dict_ranges"),n=this._dict_ranges[t];let s=0;for(const[,e]of Object.entries(n)){const[t,r]=e;s+=Math.abs(r-t)}r=new Array(s);let o=0;for(const[,e]of Object.entries(n)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const t=this.lowerBound<=this.upperBound,n=this.lowerBound,s=this.upperBound;if(t)for(let e=n;e<s;e++)r[o++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=n;e>s;e--)r[o++]=String.fromCharCode(e),this.dictIndex=e}r.length=o}if(t)for(let e=r.length-1;e>0;e--){const t=Math.floor(Math.random()*(e+1));[r[e],r[t]]=[r[t],r[e]]}return r})),c(this,"setDictionary",((e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)})),c(this,"seq",(()=>this.sequentialUUID())),c(this,"sequentialUUID",(()=>{const e=this.dictLength,t=this.dict;let r=this.counter;const n=[];do{const s=r%e;r=Math.trunc(r/e),n.push(t[s])}while(0!==r);const s=n.join("");return this.counter+=1,s})),c(this,"rnd",((e=this.uuidLength||u)=>this.randomUUID(e))),c(this,"randomUUID",((e=this.uuidLength||u)=>{if(null==e||e<1)throw new Error("Invalid UUID Length Provided");const t=new Array(e),r=this.dictLength,n=this.dict;for(let s=0;s<e;s++){const e=Math.floor(Math.random()*r);t[s]=n[e]}return t.join("")})),c(this,"fmt",((e,t)=>this.formattedUUID(e,t))),c(this,"formattedUUID",((e,t)=>{const r={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const n=e.slice(0,2),s=Number.parseInt(e.slice(2),10);return"$s"===n?r[n]().padStart(s,"0"):"$t"===n&&t?r[n](s,t):r[n](s)}))})),c(this,"availableUUIDs",((e=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**e).toFixed(0)))),c(this,"_collisionCache",new Map),c(this,"approxMaxBeforeCollision",((e=this.availableUUIDs(this.uuidLength))=>{const t=e,r=this._collisionCache.get(t);if(void 0!==r)return r;const n=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,n),n})),c(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),c(this,"uniqueness",((e=this.availableUUIDs(this.uuidLength))=>{const t=Number.parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t})),c(this,"getVersion",(()=>this.version)),c(this,"stamp",((e,t)=>{const r=Math.floor(+(t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return r;if("number"!=typeof e||e<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const n=e-9,s=Math.round(Math.random()*(n>15?15:n)),o=this.randomUUID(n);return"".concat(o.substring(0,s)).concat(r).concat(o.substring(s)).concat(s.toString(16))})),c(this,"parseStamp",((e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const r=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const t={$r:e=>[...Array(e)].map((()=>"r")).join(""),$s:e=>[...Array(e)].map((()=>"s")).join(""),$t:e=>[...Array(e)].map((()=>"t")).join("")},r=e.slice(0,2),n=Number.parseInt(e.slice(2),10);return t[r](n)})).replace(/^(.*?)(t{8,})(.*)$/g,((t,r,n)=>e.substring(r.length,r.length+n.length))):e;if(8===r.length)return new Date(1e3*Number.parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const n=Number.parseInt(r.substring(r.length-1),16);return new Date(1e3*Number.parseInt(r.substring(n,n+8),16))})),c(this,"setCounter",(e=>{this.counter=e})),c(this,"validate",((e,t)=>{const r=t?this._normalizeDictionary(t):this.dict;return e.split("").every((e=>r.includes(e)))}));const t=a(a({},p),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";const{dictionary:r,shuffle:n,length:s,counter:o}=t;this.uuidLength=s,this.setDictionary(r,n),this.setCounter(o),this.debug=t.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};c(h,"default",h);var d,f=h;return d=l,((n,o,i,a)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let i of r(o))s.call(n,i)||undefined===i||e(n,i,{get:()=>o[i],enumerable:!(a=t(o,i))||a.enumerable});return n})(e({},"__esModule",{value:!0}),d)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},46969(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var s=a(r(96540)),o=a(r(17965)),i=["text","onCopy","options","children"];function a(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(g,e);var t,r,a,c,m=(a=g,c=function(){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(){var e,t=d(a);if(c){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return f(h(e=m.call.apply(m,[this].concat(r))),"onClick",(function(t){var r=e.props,n=r.text,i=r.onCopy,a=r.children,c=r.options,l=s.default.Children.only(a),u=(0,o.default)(n,c);i&&i(n,u),l&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t)})),e}return t=g,(r=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),r=function(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(e,i),n=s.default.Children.only(t);return s.default.cloneElement(n,l(l({},r),{},{onClick:this.onClick}))}}])&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),g}(s.default.PureComponent);t.CopyToClipboard=m,f(m,"defaultProps",{onCopy:void 0,options:void 0})},91426(e,t,r){"use strict";var n=r(46969).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},15377(e,t,r){"use strict";var n=r(92861).Buffer,s=r(64634),o=r(74372),i=ArrayBuffer.isView||function(e){try{return o(e),!0}catch(e){return!1}},a="undefined"!=typeof Uint8Array,c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,l=c&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);e.exports=function(e,t){if(n.isBuffer(e))return e.constructor&&!("isBuffer"in e)?n.from(e):e;if("string"==typeof e)return n.from(e,t);if(c&&i(e)){if(0===e.byteLength)return n.alloc(0);if(l){var r=n.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}var o=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),u=n.from(o);if(u.length===e.byteLength)return u}if(a&&e instanceof Uint8Array)return n.from(e);var p=s(e);if(p)for(var h=0;h<e.length;h+=1){var d=e[h];if("number"!=typeof d||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(p||n.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return n.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},74372(e,t,r){"use strict";var n=r(69675),s=r(36556)("TypedArray.prototype.buffer",!0),o=r(35680);e.exports=s||function(e){if(!o(e))throw new n("Not a Typed Array");return e.buffer}},61160(e,t,r){"use strict";var n=r(92063),s=r(73992),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function p(e){return(e||"").toString().replace(o,"")}var h=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],d={hash:1,query:1};function f(e){var t,n=("undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{}).location||{},s={},o=typeof(e=e||n);if("blob:"===e.protocol)s=new y(unescape(e.pathname),{});else if("string"===o)for(t in s=new y(e,{}),d)delete s[t];else if("object"===o){for(t in e)t in d||(s[t]=e[t]);void 0===s.slashes&&(s.slashes=a.test(e.href))}return s}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=p(e)).replace(i,""),t=t||{};var r,n=l.exec(e),s=n[1]?n[1].toLowerCase():"",o=!!n[2],a=!!n[3],c=0;return o?a?(r=n[2]+n[3]+n[4],c=n[2].length+n[3].length):(r=n[2]+n[4],c=n[2].length):a?(r=n[3]+n[4],c=n[3].length):r=n[4],"file:"===s?c>=2&&(r=r.slice(2)):m(s)?r=n[4]:s?o&&(r=r.slice(2)):c>=2&&m(t.protocol)&&(r=n[4]),{protocol:s,slashes:o||m(s),slashesCount:c,rest:r}}function y(e,t,r){if(e=(e=p(e)).replace(i,""),!(this instanceof y))return new y(e,t,r);var o,a,c,l,d,v,b=h.slice(),E=typeof t,w=this,x=0;for("object"!==E&&"string"!==E&&(r=t,t=null),r&&"function"!=typeof r&&(r=s.parse),o=!(a=g(e||"",t=f(t))).protocol&&!a.slashes,w.slashes=a.slashes||o&&t.slashes,w.protocol=a.protocol||t.protocol||"",e=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||u.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!m(w.protocol)))&&(b[3]=[/(.*)/,"pathname"]);x<b.length;x++)"function"!=typeof(l=b[x])?(c=l[0],v=l[1],c!=c?w[v]=e:"string"==typeof c?~(d="@"===c?e.lastIndexOf(c):e.indexOf(c))&&("number"==typeof l[2]?(w[v]=e.slice(0,d),e=e.slice(d+l[2])):(w[v]=e.slice(d),e=e.slice(0,d))):(d=c.exec(e))&&(w[v]=d[1],e=e.slice(0,d.index)),w[v]=w[v]||o&&l[3]&&t[v]||"",l[4]&&(w[v]=w[v].toLowerCase())):e=l(e,w);r&&(w.query=r(w.query)),o&&t.slashes&&"/"!==w.pathname.charAt(0)&&(""!==w.pathname||""!==t.pathname)&&(w.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,s=r[n-1],o=!1,i=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),i++):i&&(0===n&&(o=!0),r.splice(n,1),i--);return o&&r.unshift(""),"."!==s&&".."!==s||r.push(""),r.join("/")}(w.pathname,t.pathname)),"/"!==w.pathname.charAt(0)&&m(w.protocol)&&(w.pathname="/"+w.pathname),n(w.port,w.protocol)||(w.host=w.hostname,w.port=""),w.username=w.password="",w.auth&&(~(d=w.auth.indexOf(":"))?(w.username=w.auth.slice(0,d),w.username=encodeURIComponent(decodeURIComponent(w.username)),w.password=w.auth.slice(d+1),w.password=encodeURIComponent(decodeURIComponent(w.password))):w.username=encodeURIComponent(decodeURIComponent(w.auth)),w.auth=w.password?w.username+":"+w.password:w.username),w.origin="file:"!==w.protocol&&m(w.protocol)&&w.host?w.protocol+"//"+w.host:"null",w.href=w.toString()}y.prototype={set:function(e,t,r){var o=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||s.parse)(t)),o[e]=t;break;case"port":o[e]=t,n(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,c.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!r;break;case"pathname":case"hash":if(t){var i="pathname"===e?"/":"#";o[e]=t.charAt(0)!==i?i+t:t}else o[e]=t;break;case"username":case"password":o[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");~a?(o.username=t.slice(0,a),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=t.slice(a+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(t))}for(var l=0;l<h.length;l++){var u=h[l];u[4]&&(o[u[1]]=o[u[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&m(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){e&&"function"==typeof e||(e=s.stringify);var t,r=this,n=r.host,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var i=o+(r.protocol&&r.slashes||m(r.protocol)?"//":"");return r.username?(i+=r.username,r.password&&(i+=":"+r.password),i+="@"):r.password?(i+=":"+r.password,i+="@"):"file:"!==r.protocol&&m(r.protocol)&&!n&&"/"!==r.pathname&&(i+="@"),(":"===n[n.length-1]||c.test(r.hostname)&&!r.port)&&(n+=":"),i+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(i+=r.hash),i}},y.extractProtocol=g,y.location=f,y.trimLeft=p,y.qs=s,e.exports=y},85160(e,t,r){"use strict";var n=r(96540);"function"==typeof Object.is&&Object.is,n.useSyncExternalStore,n.useRef,n.useEffect,n.useMemo,n.useDebugValue},78418(e,t,r){"use strict";r(85160)},26657(e,t,r){"use strict";var n=r(75208),s=function(e){return/<\/+[^>]+>/.test(e)},o=function(e){return/<[^>]+\/>/.test(e)};function i(e){return s(e)?"ClosingTag":function(e){return function(e){return/<[^>!]+>/.test(e)}(e)&&!s(e)&&!o(e)}(e)?"OpeningTag":o(e)?"SelfClosingTag":"Text"}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.indentor,s=t.textNodesOnSameLine,o=0,a=[];r=r||" ";var c,l,u=(c=e,(l=c,l.split(/(<\/?[^>]+>)/g).filter((function(e){return""!==e.trim()}))).map((function(e){return{value:e,type:i(e)}}))).map((function(e,t,i){var c=e.value,l=e.type;"ClosingTag"===l&&o--;var u=n(r,o),p=u+c;if("OpeningTag"===l&&o++,s){var h=i[t-1],d=i[t-2];"ClosingTag"===l&&"Text"===h.type&&"OpeningTag"===d.type&&(p=""+u+d.value+h.value+c,a.push(t-2,t-1))}return p}));return a.forEach((function(e){return u[e]=null})),u.filter((function(e){return!!e})).join("\n")}},86215(e,t){var r,n,s;n=[],void 0===(s="function"==typeof(r=function(){"use strict";var e=function(e){return e&&"getComputedStyle"in window&&"smooth"===window.getComputedStyle(e)["scroll-behavior"]};if("undefined"==typeof window||!("document"in window))return{};var t=function(t,r,n){var s;r=r||999,n||0===n||(n=9);var o=function(e){s=e},i=function(){clearTimeout(s),o(0)},a=function(e){return Math.max(0,t.getTopOf(e)-n)},c=function(n,s,a){if(i(),0===s||s&&s<0||e(t.body))t.toY(n),a&&a();else{var c=t.getY(),l=Math.max(0,n)-c,u=(new Date).getTime();s=s||Math.min(Math.abs(l),r),function e(){o(setTimeout((function(){var r=Math.min(1,((new Date).getTime()-u)/s),n=Math.max(0,Math.floor(c+l*(r<.5?2*r*r:r*(4-2*r)-1)));t.toY(n),r<1&&t.getHeight()+n<t.body.scrollHeight?e():(setTimeout(i,99),a&&a())}),9))}()}},l=function(e,t,r){c(a(e),t,r)};return{setup:function(e,t){return(0===e||e)&&(r=e),(0===t||t)&&(n=t),{defaultDuration:r,edgeOffset:n}},to:l,toY:c,intoView:function(e,r,s){var o=e.getBoundingClientRect().height,i=t.getTopOf(e)+o,u=t.getHeight(),p=t.getY(),h=p+u;a(e)<p||o+n>u?l(e,r,s):i+n>h?c(i-u+n,r,s):s&&s()},center:function(e,r,n,s){c(Math.max(0,t.getTopOf(e)-t.getHeight()/2+(n||e.getBoundingClientRect().height/2)),r,s)},stop:i,moving:function(){return!!s},getY:t.getY,getTopOf:t.getTopOf}},r=document.documentElement,n=function(){return window.scrollY||r.scrollTop},s=t({body:document.scrollingElement||document.body,toY:function(e){window.scrollTo(0,e)},getY:n,getHeight:function(){return window.innerHeight||r.clientHeight},getTopOf:function(e){return e.getBoundingClientRect().top+n()-r.offsetTop}});if(s.createScroller=function(e,n,s){return t({body:e,toY:function(t){e.scrollTop=t},getY:function(){return e.scrollTop},getHeight:function(){return Math.min(e.clientHeight,window.innerHeight||r.clientHeight)},getTopOf:function(e){return e.offsetTop}},n,s)},"addEventListener"in window&&!window.noZensmooth&&!e(document.body)){var o="history"in window&&"pushState"in history,i=o&&"scrollRestoration"in history;i&&(history.scrollRestoration="auto"),window.addEventListener("load",(function(){i&&(setTimeout((function(){history.scrollRestoration="manual"}),9),window.addEventListener("popstate",(function(e){e.state&&"zenscrollY"in e.state&&s.toY(e.state.zenscrollY)}),!1)),window.location.hash&&setTimeout((function(){var e=s.setup().edgeOffset;if(e){var t=document.getElementById(window.location.href.split("#")[1]);if(t){var r=Math.max(0,s.getTopOf(t)-e),n=s.getY()-r;0<=n&&n<9&&window.scrollTo(0,r)}}}),9)}),!1);var a=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",(function(e){for(var t=e.target;t&&"A"!==t.tagName;)t=t.parentNode;if(!(!t||1!==e.which||e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)){if(i){var r=history.state&&"object"==typeof history.state?history.state:{};r.zenscrollY=s.getY();try{history.replaceState(r,"")}catch(e){}}var n=t.getAttribute("href")||"";if(0===n.indexOf("#")&&!a.test(t.className)){var c=0,l=document.getElementById(n.substring(1));if("#"!==n){if(!l)return;c=s.getTopOf(l)}e.preventDefault();var u=function(){window.location=n},p=s.setup().edgeOffset;p&&(c=Math.max(0,c-p),o&&(u=function(){history.pushState({},"",n)})),s.toY(c,null,u)}}}),!1)}return s}())?r.apply(t,n):r)||(e.exports=s)},8628(e,t,r){e.exports=r(76343)},48675(e,t,r){e.exports=r(20850)},39209(e,t,r){"use strict";var n=r(76578),s="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof s[n[t]]&&(e[e.length]=n[t]);return e}},68623(e,t,r){"use strict";var n=r(694);e.exports=n},93700(e,t,r){"use strict";var n=r(19709);e.exports=n},462(e,t,r){"use strict";var n=r(40975);e.exports=n},37257(e,t,r){"use strict";r(96605),r(64502),r(36371),r(99363),r(7057);var n=r(92046);e.exports=n.AggregateError},11362(e,t,r){"use strict";r(19748);var n=r(61747);e.exports=n("Array","includes")},32567(e,t,r){"use strict";r(79307);var n=r(61747);e.exports=n("Function","bind")},23034(e,t,r){"use strict";var n=r(88280),s=r(32567),o=Function.prototype;e.exports=function(e){var t=e.bind;return e===o||n(o,e)&&t===o.bind?s:t}},36880(e,t,r){"use strict";var n=r(88280),s=r(11362),o=r(44378),i=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===i||n(i,e)&&t===i.includes?s:"string"==typeof e||e===a||n(a,e)&&t===a.includes?o:t}},9748(e,t,r){"use strict";r(71340);var n=r(92046);e.exports=n.Object.assign},44378(e,t,r){"use strict";r(19770);var n=r(61747);e.exports=n("String","includes")},20850(e,t,r){"use strict";e.exports=r(46076)},46076(e,t,r){"use strict";r(91599);var n=r(68623);e.exports=n},53375(e,t,r){"use strict";var n=r(93700);e.exports=n},85401(e,t,r){"use strict";var n=r(462);e.exports=n},82159(e,t,r){"use strict";var n=r(62250),s=r(4640),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a function")}},10043(e,t,r){"use strict";var n=r(54018),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+s(e)+" as a prototype")}},42156(e){"use strict";e.exports=function(){}},36624(e,t,r){"use strict";var n=r(46285),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not an object")}},74436(e,t,r){"use strict";var n=r(4993),s=r(34849),o=r(20575),i=function(e){return function(t,r,i){var a=n(t),c=o(a);if(0===c)return!e&&-1;var l,u=s(i,c);if(e&&r!=r){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},93427(e,t,r){"use strict";var n=r(1907);e.exports=n([].slice)},45807(e,t,r){"use strict";var n=r(1907),s=n({}.toString),o=n("".slice);e.exports=function(e){return o(s(e),8,-1)}},73948(e,t,r){"use strict";var n=r(52623),s=r(62250),o=r(45807),i=r(76264)("toStringTag"),a=Object,c="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),i))?r:c?o(t):"Object"===(n=o(t))&&s(t.callee)?"Arguments":n}},19595(e,t,r){"use strict";var n=r(49724),s=r(11042),o=r(13846),i=r(74284);e.exports=function(e,t,r){for(var a=s(t),c=i.f,l=o.f,u=0;u<a.length;u++){var p=a[u];n(e,p)||r&&n(r,p)||c(e,p,l(t,p))}}},25735(e,t,r){"use strict";var n=r(76264)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},57382(e,t,r){"use strict";var n=r(98828);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},59550(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},61626(e,t,r){"use strict";var n=r(39447),s=r(74284),o=r(75817);e.exports=n?function(e,t,r){return s.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},75817(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},68055(e,t,r){"use strict";var n=r(61626);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},2532(e,t,r){"use strict";var n=r(45951),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},39447(e,t,r){"use strict";var n=r(98828);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},49552(e,t,r){"use strict";var n=r(45951),s=r(46285),o=n.document,i=s(o)&&s(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},19287(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},80376(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},96794(e,t,r){"use strict";var n=r(45951).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},20798(e,t,r){"use strict";var n,s,o=r(45951),i=r(96794),a=o.process,c=o.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},85762(e,t,r){"use strict";var n=r(1907),s=Error,o=n("".replace),i=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(i);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=o(e,a,"");return e}},85884(e,t,r){"use strict";var n=r(61626),s=r(85762),o=r(23888),i=Error.captureStackTrace;e.exports=function(e,t,r,a){o&&(i?i(e,t):n(e,"stack",s(r,a)))}},23888(e,t,r){"use strict";var n=r(98828),s=r(75817);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},11091(e,t,r){"use strict";var n=r(45951),s=r(76024),o=r(92361),i=r(62250),a=r(13846).f,c=r(29844),l=r(92046),u=r(28311),p=r(61626),h=r(49724);r(13747);var d=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,f,m,g,y,v,b,E,w=e.target,x=e.global,S=e.stat,_=e.proto,A=x?n:S?n[w]:n[w]&&n[w].prototype,O=x?l:l[w]||p(l,w,{})[w],C=O.prototype;for(m in t)s=!(r=c(x?m:w+(S?".":"#")+m,e.forced))&&A&&h(A,m),y=O[m],s&&(v=e.dontCallGetSet?(E=a(A,m))&&E.value:A[m]),g=s&&v?v:t[m],(r||_||typeof y!=typeof g)&&(b=e.bind&&s?u(g,n):e.wrap&&s?d(g):_&&i(g)?o(g):g,(e.sham||g&&g.sham||y&&y.sham)&&p(b,"sham",!0),p(O,m,b),_&&(h(l,f=w+"Prototype")||p(l,f,{}),p(l[f],m,g),e.real&&C&&(r||!C[m])&&p(C,m,g)))}},98828(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},76024(e,t,r){"use strict";var n=r(41505),s=Function.prototype,o=s.apply,i=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})},28311(e,t,r){"use strict";var n=r(92361),s=r(82159),o=r(41505),i=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:o?i(e,t):function(){return e.apply(t,arguments)}}},41505(e,t,r){"use strict";var n=r(98828);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},44673(e,t,r){"use strict";var n=r(1907),s=r(82159),o=r(46285),i=r(49724),a=r(93427),c=r(41505),l=Function,u=n([].concat),p=n([].join),h={};e.exports=c?l.bind:function(e){var t=s(this),r=t.prototype,n=a(arguments,1),c=function(){var r=u(n,a(arguments));return this instanceof c?function(e,t,r){if(!i(h,t)){for(var n=[],s=0;s<t;s++)n[s]="a["+s+"]";h[t]=l("C,a","return new C("+p(n,",")+")")}return h[t](e,r)}(t,r.length,r):t.apply(e,r)};return o(r)&&(c.prototype=r),c}},13930(e,t,r){"use strict";var n=r(41505),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},36833(e,t,r){"use strict";var n=r(39447),s=r(49724),o=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,a=s(o,"name"),c=a&&"something"===function(){}.name,l=a&&(!n||n&&i(o,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},51871(e,t,r){"use strict";var n=r(1907),s=r(82159);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},92361(e,t,r){"use strict";var n=r(45807),s=r(1907);e.exports=function(e){if("Function"===n(e))return s(e)}},1907(e,t,r){"use strict";var n=r(41505),s=Function.prototype,o=s.call,i=n&&s.bind.bind(o,o);e.exports=n?i:function(e){return function(){return o.apply(e,arguments)}}},61747(e,t,r){"use strict";var n=r(45951),s=r(92046);e.exports=function(e,t){var r=s[e+"Prototype"],o=r&&r[t];if(o)return o;var i=n[e],a=i&&i.prototype;return a&&a[t]}},85582(e,t,r){"use strict";var n=r(92046),s=r(45951),o=r(62250),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},73448(e,t,r){"use strict";var n=r(73948),s=r(29367),o=r(87136),i=r(93742),a=r(76264)("iterator");e.exports=function(e){if(!o(e))return s(e,a)||s(e,"@@iterator")||i[n(e)]}},10300(e,t,r){"use strict";var n=r(13930),s=r(82159),o=r(36624),i=r(4640),a=r(73448),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(s(r))return o(n(r,e));throw new c(i(e)+" is not iterable")}},29367(e,t,r){"use strict";var n=r(82159),s=r(87136);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},45951(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},49724(e,t,r){"use strict";var n=r(1907),s=r(39298),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(s(e),t)}},38530(e){"use strict";e.exports={}},62416(e,t,r){"use strict";var n=r(85582);e.exports=n("document","documentElement")},73648(e,t,r){"use strict";var n=r(39447),s=r(98828),o=r(49552);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},16946(e,t,r){"use strict";var n=r(1907),s=r(98828),o=r(45807),i=Object,a=n("".split);e.exports=s((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?a(e,""):i(e)}:i},34084(e,t,r){"use strict";var n=r(62250),s=r(46285),o=r(79192);e.exports=function(e,t,r){var i,a;return o&&n(i=t.constructor)&&i!==r&&s(a=i.prototype)&&a!==r.prototype&&o(e,a),e}},39259(e,t,r){"use strict";var n=r(46285),s=r(61626);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},64932(e,t,r){"use strict";var n,s,o,i=r(40551),a=r(45951),c=r(46285),l=r(61626),u=r(49724),p=r(13747),h=r(92522),d=r(38530),f="Object already initialized",m=a.TypeError,g=a.WeakMap;if(i||p.state){var y=p.state||(p.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new m(f);return t.facade=e,y.set(e,t),t},s=function(e){return y.get(e)||{}},o=function(e){return y.has(e)}}else{var v=h("state");d[v]=!0,n=function(e,t){if(u(e,v))throw new m(f);return t.facade=e,l(e,v,t),t},s=function(e){return u(e,v)?e[v]:{}},o=function(e){return u(e,v)}}e.exports={set:n,get:s,has:o,enforce:function(e){return o(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},37812(e,t,r){"use strict";var n=r(76264),s=r(93742),o=n("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||i[o]===e)}},62250(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},29844(e,t,r){"use strict";var n=r(98828),s=r(62250),o=/#|\.prototype\./,i=function(e,t){var r=c[a(e)];return r===u||r!==l&&(s(t)?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},l=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},87136(e){"use strict";e.exports=function(e){return null==e}},46285(e,t,r){"use strict";var n=r(62250);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},54018(e,t,r){"use strict";var n=r(46285);e.exports=function(e){return n(e)||null===e}},7376(e){"use strict";e.exports=!0},72087(e,t,r){"use strict";var n=r(46285),s=r(45807),o=r(76264)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===s(e))}},25594(e,t,r){"use strict";var n=r(85582),s=r(62250),o=r(88280),i=r(51175),a=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&o(t.prototype,a(e))}},24823(e,t,r){"use strict";var n=r(28311),s=r(13930),o=r(36624),i=r(4640),a=r(37812),c=r(20575),l=r(88280),u=r(10300),p=r(73448),h=r(40154),d=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,r){var g,y,v,b,E,w,x,S=r&&r.that,_=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),j=n(t,S),k=function(e){return g&&h(g,"normal"),new f(!0,e)},T=function(e){return _?(o(e),C?j(e[0],e[1],k):j(e[0],e[1])):C?j(e,k):j(e)};if(A)g=e.iterator;else if(O)g=e;else{if(!(y=p(e)))throw new d(i(e)+" is not iterable");if(a(y)){for(v=0,b=c(e);b>v;v++)if((E=T(e[v]))&&l(m,E))return E;return new f(!1)}g=u(e,y)}for(w=A?e.next:g.next;!(x=s(w,g)).done;){try{E=T(x.value)}catch(e){h(g,"throw",e)}if("object"==typeof E&&E&&l(m,E))return E}return new f(!1)}},40154(e,t,r){"use strict";var n=r(13930),s=r(36624),o=r(29367);e.exports=function(e,t,r){var i,a;s(e);try{if(!(i=o(e,"return"))){if("throw"===t)throw r;return r}i=n(i,e)}catch(e){a=!0,i=e}if("throw"===t)throw r;if(a)throw i;return s(i),r}},47181(e,t,r){"use strict";var n=r(95116).IteratorPrototype,s=r(58075),o=r(75817),i=r(14840),a=r(93742),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=s(n,{next:o(+!l,r)}),i(e,u,!1,!0),a[u]=c,e}},60183(e,t,r){"use strict";var n=r(11091),s=r(13930),o=r(7376),i=r(36833),a=r(62250),c=r(47181),l=r(15972),u=r(79192),p=r(14840),h=r(61626),d=r(68055),f=r(76264),m=r(93742),g=r(95116),y=i.PROPER,v=i.CONFIGURABLE,b=g.IteratorPrototype,E=g.BUGGY_SAFARI_ITERATORS,w=f("iterator"),x="keys",S="values",_="entries",A=function(){return this};e.exports=function(e,t,r,i,f,g,O){c(r,t,i);var C,j,k,T=function(e){if(e===f&&R)return R;if(!E&&e&&e in P)return P[e];switch(e){case x:case S:case _:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",I=!1,P=e.prototype,M=P[w]||P["@@iterator"]||f&&P[f],R=!E&&M||T(f),D="Array"===t&&P.entries||M;if(D&&(C=l(D.call(new e)))!==Object.prototype&&C.next&&(o||l(C)===b||(u?u(C,b):a(C[w])||d(C,w,A)),p(C,N,!0,!0),o&&(m[N]=A)),y&&f===S&&M&&M.name!==S&&(!o&&v?h(P,"name",S):(I=!0,R=function(){return s(M,this)})),f)if(j={values:T(S),keys:g?R:T(x),entries:T(_)},O)for(k in j)(E||I||!(k in P))&&d(P,k,j[k]);else n({target:t,proto:!0,forced:E||I},j);return o&&!O||P[w]===R||d(P,w,R,{name:f}),m[t]=R,j}},95116(e,t,r){"use strict";var n,s,o,i=r(98828),a=r(62250),c=r(46285),l=r(58075),u=r(15972),p=r(68055),h=r(76264),d=r(7376),f=h("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(s=u(u(o)))!==Object.prototype&&(n=s):m=!0),!c(n)||i((function(){var e={};return n[f].call(e)!==e}))?n={}:d&&(n=l(n)),a(n[f])||p(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},93742(e){"use strict";e.exports={}},20575(e,t,r){"use strict";var n=r(3121);e.exports=function(e){return n(e.length)}},41176(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},32096(e,t,r){"use strict";var n=r(90160);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},12074(e,t,r){"use strict";var n=r(72087),s=TypeError;e.exports=function(e){if(n(e))throw new s("The method doesn't accept regular expressions");return e}},29538(e,t,r){"use strict";var n=r(39447),s=r(1907),o=r(13930),i=r(98828),a=r(2875),c=r(87170),l=r(22574),u=r(39298),p=r(16946),h=Object.assign,d=Object.defineProperty,f=s([].concat);e.exports=!h||i((function(){if(n&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),s="abcdefghijklmnopqrst";return e[r]=7,s.split("").forEach((function(e){t[e]=e})),7!==h({},e)[r]||a(h({},t)).join("")!==s}))?function(e,t){for(var r=u(e),s=arguments.length,i=1,h=c.f,d=l.f;s>i;)for(var m,g=p(arguments[i++]),y=h?f(a(g),h(g)):a(g),v=y.length,b=0;v>b;)m=y[b++],n&&!o(d,g,m)||(r[m]=g[m]);return r}:h},58075(e,t,r){"use strict";var n,s=r(36624),o=r(42220),i=r(80376),a=r(38530),c=r(62416),l=r(49552),u=r(92522),p="prototype",h="script",d=u("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?g(n):(t=l("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(n);for(var s=i.length;s--;)delete y[p][i[s]];return y()};a[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[p]=s(e),r=new f,f[p]=null,r[d]=e):r=y(),void 0===t?r:o.f(r,t)}},42220(e,t,r){"use strict";var n=r(39447),s=r(58661),o=r(74284),i=r(36624),a=r(4993),c=r(2875);t.f=n&&!s?Object.defineProperties:function(e,t){i(e);for(var r,n=a(t),s=c(t),l=s.length,u=0;l>u;)o.f(e,r=s[u++],n[r]);return e}},74284(e,t,r){"use strict";var n=r(39447),s=r(73648),o=r(58661),i=r(36624),a=r(70470),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";t.f=n?o?function(e,t,r){if(i(e),t=a(t),i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=u(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:p in r?r[p]:n[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(i(e),t=a(t),i(r),s)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},13846(e,t,r){"use strict";var n=r(39447),s=r(13930),o=r(22574),i=r(75817),a=r(4993),c=r(70470),l=r(49724),u=r(73648),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return i(!s(o.f,e,t),e[t])}},24443(e,t,r){"use strict";var n=r(23045),s=r(80376).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},87170(e,t){"use strict";t.f=Object.getOwnPropertySymbols},15972(e,t,r){"use strict";var n=r(49724),s=r(62250),o=r(39298),i=r(92522),a=r(57382),c=i("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=o(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},88280(e,t,r){"use strict";var n=r(1907);e.exports=n({}.isPrototypeOf)},23045(e,t,r){"use strict";var n=r(1907),s=r(49724),o=r(4993),i=r(74436).indexOf,a=r(38530),c=n([].push);e.exports=function(e,t){var r,n=o(e),l=0,u=[];for(r in n)!s(a,r)&&s(n,r)&&c(u,r);for(;t.length>l;)s(n,r=t[l++])&&(~i(u,r)||c(u,r));return u}},2875(e,t,r){"use strict";var n=r(23045),s=r(80376);e.exports=Object.keys||function(e){return n(e,s)}},22574(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},79192(e,t,r){"use strict";var n=r(51871),s=r(46285),o=r(74239),i=r(10043);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},54878(e,t,r){"use strict";var n=r(52623),s=r(73948);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},60581(e,t,r){"use strict";var n=r(13930),s=r(62250),o=r(46285),i=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!o(a=n(r,e)))return a;if(s(r=e.valueOf)&&!o(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!o(a=n(r,e)))return a;throw new i("Can't convert object to primitive value")}},11042(e,t,r){"use strict";var n=r(85582),s=r(1907),o=r(24443),i=r(87170),a=r(36624),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=i.f;return r?c(t,r(e)):t}},92046(e){"use strict";e.exports={}},54829(e,t,r){"use strict";var n=r(74284).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},74239(e,t,r){"use strict";var n=r(87136),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},14840(e,t,r){"use strict";var n=r(52623),s=r(74284).f,o=r(61626),i=r(49724),a=r(54878),c=r(76264)("toStringTag");e.exports=function(e,t,r,l){var u=r?e:e&&e.prototype;u&&(i(u,c)||s(u,c,{configurable:!0,value:t}),l&&!n&&o(u,"toString",a))}},92522(e,t,r){"use strict";var n=r(85816),s=r(6499),o=n("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},13747(e,t,r){"use strict";var n=r(7376),s=r(45951),o=r(2532),i="__core-js_shared__",a=e.exports=s[i]||o(i,{});(a.versions||(a.versions=[])).push({version:"3.45.1",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})},85816(e,t,r){"use strict";var n=r(13747);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},89089(e,t,r){"use strict";var n=r(1907),s=r(65482),o=r(90160),i=r(74239),a=n("".charAt),c=n("".charCodeAt),l=n("".slice),u=function(e){return function(t,r){var n,u,p=o(i(t)),h=s(r),d=p.length;return h<0||h>=d?e?"":void 0:(n=c(p,h))<55296||n>56319||h+1===d||(u=c(p,h+1))<56320||u>57343?e?a(p,h):n:e?l(p,h,h+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},19846(e,t,r){"use strict";var n=r(20798),s=r(98828),o=r(45951).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},34849(e,t,r){"use strict";var n=r(65482),s=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):o(r,t)}},4993(e,t,r){"use strict";var n=r(16946),s=r(74239);e.exports=function(e){return n(s(e))}},65482(e,t,r){"use strict";var n=r(41176);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},3121(e,t,r){"use strict";var n=r(65482),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},39298(e,t,r){"use strict";var n=r(74239),s=Object;e.exports=function(e){return s(n(e))}},46028(e,t,r){"use strict";var n=r(13930),s=r(46285),o=r(25594),i=r(29367),a=r(60581),c=r(76264),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!s(e)||o(e))return e;var r,c=i(e,u);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||o(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},70470(e,t,r){"use strict";var n=r(46028),s=r(25594);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},52623(e,t,r){"use strict";var n={};n[r(76264)("toStringTag")]="z",e.exports="[object z]"===String(n)},90160(e,t,r){"use strict";var n=r(73948),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},4640(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6499(e,t,r){"use strict";var n=r(1907),s=0,o=Math.random(),i=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++s+o,36)}},51175(e,t,r){"use strict";var n=r(19846);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},58661(e,t,r){"use strict";var n=r(39447),s=r(98828);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},40551(e,t,r){"use strict";var n=r(45951),s=r(62250),o=n.WeakMap;e.exports=s(o)&&/native code/.test(String(o))},76264(e,t,r){"use strict";var n=r(45951),s=r(85816),o=r(49724),i=r(6499),a=r(19846),c=r(51175),l=n.Symbol,u=s("wks"),p=c?l.for||l:l&&l.withoutSetter||i;e.exports=function(e){return o(u,e)||(u[e]=a&&o(l,e)?l[e]:p("Symbol."+e)),u[e]}},19358(e,t,r){"use strict";var n=r(85582),s=r(49724),o=r(61626),i=r(88280),a=r(79192),c=r(19595),l=r(54829),u=r(34084),p=r(32096),h=r(39259),d=r(85884),f=r(39447),m=r(7376);e.exports=function(e,t,r,g){var y="stackTraceLimit",v=g?2:1,b=e.split("."),E=b[b.length-1],w=n.apply(null,b);if(w){var x=w.prototype;if(!m&&s(x,"cause")&&delete x.cause,!r)return w;var S=n("Error"),_=t((function(e,t){var r=p(g?t:e,void 0),n=g?new w(e):new w;return void 0!==r&&o(n,"message",r),d(n,_,n.stack,2),this&&i(x,this)&&u(n,this,_),arguments.length>v&&h(n,arguments[v]),n}));if(_.prototype=x,"Error"!==E?a?a(_,S):c(_,S,{name:!0}):f&&y in w&&(l(_,w,y),l(_,w,"prepareStackTrace")),c(_,w),!m)try{x.name!==E&&o(x,"name",E),x.constructor=_}catch(e){}return _}}},36371(e,t,r){"use strict";var n=r(11091),s=r(85582),o=r(76024),i=r(98828),a=r(19358),c="AggregateError",l=s(c),u=!i((function(){return 1!==l([1]).errors[0]}))&&i((function(){return 7!==l([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,r){return o(e,this,arguments)}}),u,!0)})},82048(e,t,r){"use strict";var n=r(11091),s=r(88280),o=r(15972),i=r(79192),a=r(19595),c=r(58075),l=r(61626),u=r(75817),p=r(39259),h=r(85884),d=r(24823),f=r(32096),m=r(76264)("toStringTag"),g=Error,y=[].push,v=function(e,t){var r,n=s(b,this);i?r=i(new g,n?o(this):b):(r=n?this:c(b),l(r,m,"Error")),void 0!==t&&l(r,"message",f(t)),h(r,v,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return d(e,y,{that:a}),l(r,"errors",a),r};i?i(v,g):a(v,g,{name:!0});var b=v.prototype=c(g.prototype,{constructor:u(1,v),message:u(1,""),name:u(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:v})},64502(e,t,r){"use strict";r(82048)},19748(e,t,r){"use strict";var n=r(11091),s=r(74436).includes,o=r(98828),i=r(42156);n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},99363(e,t,r){"use strict";var n=r(4993),s=r(42156),o=r(93742),i=r(64932),a=r(74284).f,c=r(60183),l=r(59550),u=r(7376),p=r(39447),h="Array Iterator",d=i.set,f=i.getterFor(h);e.exports=c(Array,"Array",(function(e,t){d(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)}),"values");var m=o.Arguments=o.Array;if(s("keys"),s("values"),s("entries"),!u&&p&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},96605(e,t,r){"use strict";var n=r(11091),s=r(45951),o=r(76024),i=r(19358),a="WebAssembly",c=s[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=i(e,t,l),n({global:!0,constructor:!0,arity:1,forced:l},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=i(a+"."+e,t,l),n({target:a,stat:!0,constructor:!0,arity:1,forced:l},r)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},79307(e,t,r){"use strict";var n=r(11091),s=r(44673);n({target:"Function",proto:!0,forced:Function.bind!==s},{bind:s})},71340(e,t,r){"use strict";var n=r(11091),s=r(29538);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==s},{assign:s})},19770(e,t,r){"use strict";var n=r(11091),s=r(1907),o=r(12074),i=r(74239),a=r(90160),c=r(25735),l=s("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(a(i(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},7057(e,t,r){"use strict";var n=r(89089).charAt,s=r(90160),o=r(64932),i=r(60183),a=r(59550),c="String Iterator",l=o.set,u=o.getterFor(c);i(String,"String",(function(e){l(this,{type:c,string:s(e),index:0})}),(function(){var e,t=u(this),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},91599(e,t,r){"use strict";r(64502)},12560(e,t,r){"use strict";r(99363);var n=r(19287),s=r(45951),o=r(14840),i=r(93742);for(var a in n)o(s[a],a),i[a]=i.Array},694(e,t,r){"use strict";r(91599);var n=r(37257);r(12560),e.exports=n},19709(e,t,r){"use strict";var n=r(23034);e.exports=n},76343(e,t,r){"use strict";var n=r(36880);e.exports=n},40975(e,t,r){"use strict";var n=r(9748);e.exports=n},64299(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>iK});var n={};r.r(n),r.d(n,{JsonPatchError:()=>an,_areEquals:()=>yn,applyOperation:()=>hn,applyPatch:()=>dn,applyReducer:()=>fn,deepClone:()=>cn,getValueByPointer:()=>pn,validate:()=>gn,validator:()=>mn});var s={};r.r(s),r.d(s,{compare:()=>An,generate:()=>Sn,observe:()=>xn,unobserve:()=>wn});var o={};r.r(o),r.d(o,{hasElementSourceMap:()=>Yc,includesClasses:()=>Zc,includesSymbols:()=>Xc,isAnnotationElement:()=>Wc,isArrayElement:()=>Uc,isBooleanElement:()=>Lc,isCommentElement:()=>Kc,isElement:()=>Dc,isLinkElement:()=>Jc,isMemberElement:()=>zc,isNullElement:()=>Bc,isNumberElement:()=>Fc,isObjectElement:()=>qc,isParseResultElement:()=>Hc,isPrimitiveElement:()=>Gc,isRefElement:()=>Vc,isStringElement:()=>$c});var i={};r.r(i),r.d(i,{isJSONReferenceElement:()=>Ch,isJSONSchemaElement:()=>Oh,isLinkDescriptionElement:()=>kh,isMediaElement:()=>jh});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>Qf,isCallbackElement:()=>Pf,isComponentsElement:()=>Mf,isContactElement:()=>Rf,isDiscriminatorElement:()=>im,isExampleElement:()=>Df,isExternalDocumentationElement:()=>$f,isHeaderElement:()=>Ff,isInfoElement:()=>Bf,isLicenseElement:()=>Lf,isLinkElement:()=>qf,isMediaTypeElement:()=>sm,isOpenApi3_0Element:()=>zf,isOpenapiElement:()=>Uf,isOperationElement:()=>Jf,isParameterElement:()=>Vf,isPathItemElement:()=>Wf,isPathsElement:()=>Kf,isReferenceElement:()=>Hf,isRequestBodyElement:()=>Gf,isResponseElement:()=>Yf,isResponsesElement:()=>Xf,isSchemaElement:()=>Zf,isSecurityRequirementElement:()=>em,isSecuritySchemeElement:()=>tm,isServerElement:()=>rm,isServerVariableElement:()=>nm,isServersElement:()=>om});var c={};r.r(c),r.d(c,{isJSONReferenceElement:()=>Ch,isJSONSchemaElement:()=>db,isLinkDescriptionElement:()=>fb,isMediaElement:()=>jh});var l={};r.r(l),r.d(l,{isJSONReferenceElement:()=>Ch,isJSONSchemaElement:()=>Ab,isLinkDescriptionElement:()=>Ob});var u={};r.r(u),r.d(u,{isJSONSchemaElement:()=>Qb,isLinkDescriptionElement:()=>eE});var p={};r.r(p),r.d(p,{isJSONSchemaElement:()=>hE,isLinkDescriptionElement:()=>dE});var h={};r.r(h),r.d(h,{isBooleanJsonSchemaElement:()=>pw,isCallbackElement:()=>UE,isComponentsElement:()=>zE,isContactElement:()=>JE,isExampleElement:()=>VE,isExternalDocumentationElement:()=>WE,isHeaderElement:()=>KE,isInfoElement:()=>HE,isJsonSchemaDialectElement:()=>GE,isLicenseElement:()=>YE,isLinkElement:()=>XE,isMediaTypeElement:()=>gw,isOpenApi3_1Element:()=>QE,isOpenapiElement:()=>ZE,isOperationElement:()=>ew,isParameterElement:()=>tw,isPathItemElement:()=>rw,isPathItemElementExternal:()=>nw,isPathsElement:()=>sw,isReferenceElement:()=>ow,isReferenceElementExternal:()=>iw,isRequestBodyElement:()=>aw,isResponseElement:()=>cw,isResponsesElement:()=>lw,isSchemaElement:()=>uw,isSecurityRequirementElement:()=>hw,isSecuritySchemeElement:()=>dw,isServerElement:()=>fw,isServerVariableElement:()=>mw});var d={};r.r(d),r.d(d,{cookie:()=>eA,header:()=>Q_,path:()=>Y_,query:()=>X_});var f=r(96540),m=r(67526),g=r.t(m,2),y=r(251),v=r.t(y,2),b=r(15377),E=r(14644),w=r(9404),x=r.n(w),S=r(89593),_=r(20334),A=r(55364),O=r.n(A),C=(r(84058),r(55808),r(50104)),j=r.n(C),k=r(7309),T=r.n(k),N=r(42426),I=r.n(N),P=r(75288),M=r.n(P),R=r(1882),D=r.n(R),$=r(2205),F=r.n($),B=r(61160),L=r.n(B),q=r(25508),U=r(5556),z=r.n(U),J=r(90179),V=r.n(J);function W(e){return null==e}var K={isNothing:W,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:W(e)?[]:[e]},repeat:function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,n,s,o;if(t)for(r=0,n=(o=Object.keys(t)).length;r<n;r+=1)e[s=o[r]]=t[s];return e}};function H(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function G(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=H(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}G.prototype=Object.create(Error.prototype),G.prototype.constructor=G,G.prototype.toString=function(e){return this.name+": "+H(this,e)};var Y=G;function X(e,t,r,n,s){var o="",i="",a=Math.floor(s/2)-1;return n-t>a&&(t=n-a+(o=" ... ").length),r-n>a&&(r=n+a-(i=" ...").length),{str:o+e.slice(t,r).replace(/\t/g,"→")+i,pos:n-t+o.length}}function Z(e,t){return K.repeat(" ",t-e.length)+e}var Q=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ee=["scalar","sequence","mapping"],te=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===Q.indexOf(t))throw new Y('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,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.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===ee.indexOf(this.kind))throw new Y('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function re(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function ne(e){return this.extend(e)}ne.prototype.extend=function(e){var t=[],r=[];if(e instanceof te)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new Y("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof te))throw new Y("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new Y("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new Y("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof te))throw new Y("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(ne.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=re(n,"implicit"),n.compiledExplicit=re(n,"explicit"),n.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var se=ne,oe=new te("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),ie=new te("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),ae=new te("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),ce=new se({explicit:[oe,ie,ae]}),le=new te("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),ue=new te("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function pe(e){return 48<=e&&e<=55}function he(e){return 48<=e&&e<=57}var de=new te("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,s=0,o=!1;if(!n)return!1;if("-"!==(t=e[s])&&"+"!==t||(t=e[++s]),"0"===t){if(s+1===n)return!0;if("b"===(t=e[++s])){for(s++;s<n;s++)if("_"!==(t=e[s])){if("0"!==t&&"1"!==t)return!1;o=!0}return o&&"_"!==t}if("x"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!(48<=(r=e.charCodeAt(s))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;o=!0}return o&&"_"!==t}if("o"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!pe(e.charCodeAt(s)))return!1;o=!0}return o&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!he(e.charCodeAt(s)))return!1;o=!0}return!(!o||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!K.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),fe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),me=/^[-+]?[0-9]+e/,ge=new te("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!fe.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||K.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(K.isNegativeZero(e))return"-0.0";return r=e.toString(10),me.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),ye=ce.extend({implicit:[le,ue,de,ge]}),ve=ye,be=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ee=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),we=new te("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==be.exec(e)||null!==Ee.exec(e))},construct:function(e){var t,r,n,s,o,i,a,c,l=0,u=null;if(null===(t=be.exec(e))&&(t=Ee.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,n,s));if(o=+t[4],i=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(r,n,s,o,i,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}}),xe=new te("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),Se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",_e=new te("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,o=Se;for(r=0;r<s;r++)if(!((t=o.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),s=n.length,o=Se,i=0,a=[];for(t=0;t<s;t++)t%4==0&&t&&(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)),i=i<<6|o.indexOf(n.charAt(t));return 0==(r=s%4*6)?(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)):18===r?(a.push(i>>10&255),a.push(i>>2&255)):12===r&&a.push(i>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",s=0,o=e.length,i=Se;for(t=0;t<o;t++)t%3==0&&t&&(n+=i[s>>18&63],n+=i[s>>12&63],n+=i[s>>6&63],n+=i[63&s]),s=(s<<8)+e[t];return 0==(r=o%3)?(n+=i[s>>18&63],n+=i[s>>12&63],n+=i[s>>6&63],n+=i[63&s]):2===r?(n+=i[s>>10&63],n+=i[s>>4&63],n+=i[s<<2&63],n+=i[64]):1===r&&(n+=i[s>>2&63],n+=i[s<<4&63],n+=i[64],n+=i[64]),n}}),Ae=Object.prototype.hasOwnProperty,Oe=Object.prototype.toString,Ce=new te("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,o,i=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(n=a[t],o=!1,"[object Object]"!==Oe.call(n))return!1;for(s in n)if(Ae.call(n,s)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==i.indexOf(s))return!1;i.push(s)}return!0},construct:function(e){return null!==e?e:[]}}),je=Object.prototype.toString,ke=new te("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,o,i=e;for(o=new Array(i.length),t=0,r=i.length;t<r;t+=1){if(n=i[t],"[object Object]"!==je.call(n))return!1;if(1!==(s=Object.keys(n)).length)return!1;o[t]=[s[0],n[s[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,s,o,i=e;for(o=new Array(i.length),t=0,r=i.length;t<r;t+=1)n=i[t],s=Object.keys(n),o[t]=[s[0],n[s[0]]];return o}}),Te=Object.prototype.hasOwnProperty,Ne=new te("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(Te.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Ie=ve.extend({implicit:[we,xe],explicit:[_e,Ce,ke,Ne]}),Pe=Object.prototype.hasOwnProperty,Me=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Re=/[\x85\u2028\u2029]/,De=/[,\[\]\{\}]/,$e=/^(?:!|!!|![a-z\-]+!)$/i,Fe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Be(e){return Object.prototype.toString.call(e)}function Le(e){return 10===e||13===e}function qe(e){return 9===e||32===e}function Ue(e){return 9===e||32===e||10===e||13===e}function ze(e){return 44===e||91===e||93===e||123===e||125===e}function Je(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Ve(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function We(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function Ke(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}for(var He=new Array(256),Ge=new Array(256),Ye=0;Ye<256;Ye++)He[Ye]=Ve(Ye)?1:0,Ge[Ye]=Ve(Ye);function Xe(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ie,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ze(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,s=[0],o=[],i=-1;r=n.exec(e.buffer);)o.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&i<0&&(i=s.length-2);i<0&&(i=s.length-1);var a,c,l="",u=Math.min(e.line+t.linesAfter,o.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(i-a<0);a++)c=X(e.buffer,s[i-a],o[i-a],e.position-(s[i]-s[i-a]),p),l=K.repeat(" ",t.indent)+Z((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=X(e.buffer,s[i],o[i],e.position,p),l+=K.repeat(" ",t.indent)+Z((e.line+1).toString(),u)+" | "+c.str+"\n",l+=K.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(i+a>=o.length);a++)c=X(e.buffer,s[i+a],o[i+a],e.position-(s[i]-s[i+a]),p),l+=K.repeat(" ",t.indent)+Z((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")}(r),new Y(t,r)}function Qe(e,t){throw Ze(e,t)}function et(e,t){e.onWarning&&e.onWarning.call(null,Ze(e,t))}var tt={YAML:function(e,t,r){var n,s,o;null!==e.version&&Qe(e,"duplication of %YAML directive"),1!==r.length&&Qe(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Qe(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),1!==s&&Qe(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&et(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&Qe(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],$e.test(n)||Qe(e,"ill-formed tag handle (first argument) of the TAG directive"),Pe.call(e.tagMap,n)&&Qe(e,'there is a previously declared suffix for "'+n+'" tag handle'),Fe.test(s)||Qe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){Qe(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function rt(e,t,r,n){var s,o,i,a;if(t<r){if(a=e.input.slice(t,r),n)for(s=0,o=a.length;s<o;s+=1)9===(i=a.charCodeAt(s))||32<=i&&i<=1114111||Qe(e,"expected valid JSON character");else Me.test(a)&&Qe(e,"the stream contains non-printable characters");e.result+=a}}function nt(e,t,r,n){var s,o,i,a;for(K.isObject(r)||Qe(e,"cannot merge mappings; the provided source object is unacceptable"),i=0,a=(s=Object.keys(r)).length;i<a;i+=1)o=s[i],Pe.call(t,o)||(Ke(t,o,r[o]),n[o]=!0)}function st(e,t,r,n,s,o,i,a,c){var l,u;if(Array.isArray(s))for(l=0,u=(s=Array.prototype.slice.call(s)).length;l<u;l+=1)Array.isArray(s[l])&&Qe(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===Be(s[l])&&(s[l]="[object Object]");if("object"==typeof s&&"[object Object]"===Be(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(o))for(l=0,u=o.length;l<u;l+=1)nt(e,t,o[l],r);else nt(e,t,o,r);else e.json||Pe.call(r,s)||!Pe.call(t,s)||(e.line=i||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,Qe(e,"duplicated mapping key")),Ke(t,s,o),delete r[s];return t}function ot(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Qe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function it(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;qe(s);)9===s&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&35===s)do{s=e.input.charCodeAt(++e.position)}while(10!==s&&13!==s&&0!==s);if(!Le(s))break;for(ot(e),s=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&et(e,"deficient indentation"),n}function at(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!Ue(t)))}function ct(e,t){1===t?e.result+=" ":t>1&&(e.result+=K.repeat("\n",t-1))}function lt(e,t){var r,n,s=e.tag,o=e.anchor,i=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Qe(e,"tab characters must not be used in indentation")),45===n)&&Ue(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,it(e,!0,-1)&&e.lineIndent<=t)i.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,ht(e,t,3,!1,!0),i.push(e.result),it(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)Qe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=s,e.anchor=o,e.kind="sequence",e.result=i,!0)}function ut(e){var t,r,n,s,o=!1,i=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Qe(e,"duplication of a tag property"),60===(s=e.input.charCodeAt(++e.position))?(o=!0,s=e.input.charCodeAt(++e.position)):33===s?(i=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,o){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&62!==s);e.position<e.length?(n=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Qe(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!Ue(s);)33===s&&(i?Qe(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),$e.test(r)||Qe(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),De.test(n)&&Qe(e,"tag suffix cannot contain flow indicator characters")}n&&!Fe.test(n)&&Qe(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){Qe(e,"tag name is malformed: "+n)}return o?e.tag=n:Pe.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:Qe(e,'undeclared tag handle "'+r+'"'),!0}function pt(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Qe(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Ue(r)&&!ze(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Qe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ht(e,t,r,n,s){var o,i,a,c,l,u,p,h,d,f=1,m=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=i=a=4===r||3===r,n&&it(e,!0,-1)&&(m=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;ut(e)||pt(e);)it(e,!0,-1)?(m=!0,a=o,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):a=!1;if(a&&(a=m||s),1!==f&&4!==r||(h=1===r||2===r?t:t+1,d=e.position-e.lineStart,1===f?a&&(lt(e,d)||function(e,t,r){var n,s,o,i,a,c,l,u=e.tag,p=e.anchor,h={},d=Object.create(null),f=null,m=null,g=null,y=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),l=e.input.charCodeAt(e.position);0!==l;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Qe(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),o=e.line,63!==l&&58!==l||!Ue(n)){if(i=e.line,a=e.lineStart,c=e.position,!ht(e,r,2,!1,!0))break;if(e.line===o){for(l=e.input.charCodeAt(e.position);qe(l);)l=e.input.charCodeAt(++e.position);if(58===l)Ue(l=e.input.charCodeAt(++e.position))||Qe(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(st(e,h,d,f,m,null,i,a,c),f=m=g=null),v=!0,y=!1,s=!1,f=e.tag,m=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;Qe(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;Qe(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(y&&(st(e,h,d,f,m,null,i,a,c),f=m=g=null),v=!0,y=!0,s=!0):y?(y=!1,s=!0):Qe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=n;if((e.line===o||e.lineIndent>t)&&(y&&(i=e.line,a=e.lineStart,c=e.position),ht(e,t,4,!0,s)&&(y?m=e.result:g=e.result),y||(st(e,h,d,f,m,g,i,a,c),f=m=g=null),it(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==l)Qe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&st(e,h,d,f,m,null,i,a,c),v&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),v}(e,d,h))||function(e,t){var r,n,s,o,i,a,c,l,u,p,h,d,f=!0,m=e.tag,g=e.anchor,y=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))i=93,l=!1,o=[];else{if(123!==d)return!1;i=125,l=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),d=e.input.charCodeAt(++e.position);0!==d;){if(it(e,!0,t),(d=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=m,e.anchor=g,e.kind=l?"mapping":"sequence",e.result=o,!0;f?44===d&&Qe(e,"expected the node content, but found ','"):Qe(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===d&&Ue(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,it(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,ht(e,t,1,!1,!0),p=e.tag,u=e.result,it(e,!0,t),d=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==d||(a=!0,d=e.input.charCodeAt(++e.position),it(e,!0,t),ht(e,t,1,!1,!0),h=e.result),l?st(e,o,y,p,u,h,r,n,s):a?o.push(st(e,null,y,p,u,h,r,n,s)):o.push(u),it(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(f=!0,d=e.input.charCodeAt(++e.position)):f=!1}Qe(e,"unexpected end of the stream within a flow collection")}(e,h)?g=!0:(i&&function(e,t){var r,n,s,o,i,a=1,c=!1,l=!1,u=t,p=0,h=!1;if(124===(o=e.input.charCodeAt(e.position)))n=!1;else{if(62!==o)return!1;n=!0}for(e.kind="scalar",e.result="";0!==o;)if(43===(o=e.input.charCodeAt(++e.position))||45===o)1===a?a=43===o?3:2:Qe(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(i=o)&&i<=57?i-48:-1)>=0))break;0===s?Qe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Qe(e,"repeat of an indentation width identifier"):(u=t+s-1,l=!0)}if(qe(o)){do{o=e.input.charCodeAt(++e.position)}while(qe(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!Le(o)&&0!==o)}for(;0!==o;){for(ot(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),Le(o))p++;else{if(e.lineIndent<u){3===a?e.result+=K.repeat("\n",c?1+p:p):1===a&&c&&(e.result+="\n");break}for(n?qe(o)?(h=!0,e.result+=K.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=K.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=K.repeat("\n",p):e.result+=K.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!Le(o)&&0!==o;)o=e.input.charCodeAt(++e.position);rt(e,r,e.position,!1)}}return!0}(e,h)||function(e,t){var r,n,s;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=s=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(rt(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else Le(r)?(rt(e,n,s,!0),ct(e,it(e,!1,t)),n=s=e.position):e.position===e.lineStart&&at(e)?Qe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);Qe(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,n,s,o,i,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return rt(e,r,e.position,!0),e.position++,!0;if(92===a){if(rt(e,r,e.position,!0),Le(a=e.input.charCodeAt(++e.position)))it(e,!1,t);else if(a<256&&He[a])e.result+=Ge[a],e.position++;else if((i=120===(c=a)?2:117===c?4:85===c?8:0)>0){for(s=i,o=0;s>0;s--)(i=Je(a=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+i:Qe(e,"expected hexadecimal character");e.result+=We(o),e.position++}else Qe(e,"unknown escape sequence");r=n=e.position}else Le(a)?(rt(e,r,n,!0),ct(e,it(e,!1,t)),r=n=e.position):e.position===e.lineStart&&at(e)?Qe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Qe(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?g=!0:function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Ue(n)&&!ze(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Qe(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Pe.call(e.anchorMap,r)||Qe(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],it(e,!0,-1),!0}(e)?(g=!0,null===e.tag&&null===e.anchor||Qe(e,"alias node should not have any properties")):function(e,t,r){var n,s,o,i,a,c,l,u,p=e.kind,h=e.result;if(Ue(u=e.input.charCodeAt(e.position))||ze(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Ue(n=e.input.charCodeAt(e.position+1))||r&&ze(n)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,i=!1;0!==u;){if(58===u){if(Ue(n=e.input.charCodeAt(e.position+1))||r&&ze(n))break}else if(35===u){if(Ue(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&at(e)||r&&ze(u))break;if(Le(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,it(e,!1,-1),e.lineIndent>=t){i=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=a,e.lineStart=c,e.lineIndent=l;break}}i&&(rt(e,s,o,!1),ct(e,e.line-a),s=o=e.position,i=!1),qe(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return rt(e,s,o,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,1===r)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(g=a&<(e,d))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Qe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Pe.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,c=0,l=(u=e.typeMap.multi[e.kind||"fallback"]).length;c<l;c+=1)if(e.tag.slice(0,u[c].tag.length)===u[c].tag){p=u[c];break}p||Qe(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&Qe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Qe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function dt(e){var t,r,n,s,o=e.position,i=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(s=e.input.charCodeAt(e.position))&&(it(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(i=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!Ue(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&Qe(e,"directive name must not be less than one character in length");0!==s;){for(;qe(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!Le(s));break}if(Le(s))break;for(t=e.position;0!==s&&!Ue(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&ot(e),Pe.call(tt,r)?tt[r](e,r,n):et(e,'unknown document directive "'+r+'"')}it(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,it(e,!0,-1)):i&&Qe(e,"directives end mark is expected"),ht(e,e.lineIndent-1,4,!1,!0),it(e,!0,-1),e.checkLineBreaks&&Re.test(e.input.slice(o,e.position))&&et(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&at(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,it(e,!0,-1)):e.position<e.length-1&&Qe(e,"end of the stream or a document separator is expected")}function ft(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new Xe(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,Qe(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)dt(r);return r.documents}var mt=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=ft(e,r);if("function"!=typeof t)return n;for(var s=0,o=n.length;s<o;s+=1)t(n[s])},gt=function(e,t){var r=ft(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new Y("expected a single document in the stream, but found more")}},yt=Object.prototype.toString,vt=Object.prototype.hasOwnProperty,bt=65279,Et={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},wt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],xt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function St(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else{if(!(e<=4294967295))throw new Y("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+K.repeat("0",n-t.length)+t}function _t(e){this.schema=e.schema||Ie,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=K.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,s,o,i,a,c;if(null===t)return{};for(r={},s=0,o=(n=Object.keys(t)).length;s<o;s+=1)i=n[s],a=String(t[i]),"!!"===i.slice(0,2)&&(i="tag:yaml.org,2002:"+i.slice(2)),(c=e.compiledTypeMap.fallback[i])&&vt.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[i]=a;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function At(e,t){for(var r,n=K.repeat(" ",t),s=0,o=-1,i="",a=e.length;s<a;)-1===(o=e.indexOf("\n",s))?(r=e.slice(s),s=a):(r=e.slice(s,o+1),s=o+1),r.length&&"\n"!==r&&(i+=n),i+=r;return i}function Ot(e,t){return"\n"+K.repeat(" ",e.indent*t)}function Ct(e){return 32===e||9===e}function jt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==bt||65536<=e&&e<=1114111}function kt(e){return jt(e)&&e!==bt&&13!==e&&10!==e}function Tt(e,t,r){var n=kt(e),s=n&&!Ct(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!s)||kt(t)&&!Ct(t)&&35===e||58===t&&s}function Nt(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function It(e){return/^\n* /.test(e)}function Pt(e,t,r,n,s){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==wt.indexOf(t)||xt.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,r),i=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=n||e.flowLevel>-1&&r>=e.flowLevel;switch(function(e,t,r,n,s,o,i,a){var c,l,u=0,p=null,h=!1,d=!1,f=-1!==n,m=-1,g=jt(l=Nt(e,0))&&l!==bt&&!Ct(l)&&45!==l&&63!==l&&58!==l&&44!==l&&91!==l&&93!==l&&123!==l&&125!==l&&35!==l&&38!==l&&42!==l&&33!==l&&124!==l&&61!==l&&62!==l&&39!==l&&34!==l&&37!==l&&64!==l&&96!==l&&function(e){return!Ct(e)&&58!==e}(Nt(e,e.length-1));if(t||i)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!jt(u=Nt(e,c)))return 5;g=g&&Tt(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(10===(u=Nt(e,c)))h=!0,f&&(d=d||c-m-1>n&&" "!==e[m+1],m=c);else if(!jt(u))return 5;g=g&&Tt(u,p,a),p=u}d=d||f&&c-m-1>n&&" "!==e[m+1]}return h||d?r>9&&It(e)?5:i?2===o?5:2:d?4:3:!g||i||s(e)?2===o?5:2:1}(t,a,e.indent,i,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!n,s)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+Mt(t,e.indent)+Rt(At(t,o));case 4:return">"+Mt(t,e.indent)+Rt(At(function(e,t){for(var r,n,s,o=/(\n+)([^\n]*)/g,i=(s=-1!==(s=e.indexOf("\n"))?s:e.length,o.lastIndex=s,Dt(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];n=o.exec(e);){var c=n[1],l=n[2];r=" "===l[0],i+=c+(a||r||""===l?"":"\n")+Dt(l,t),a=r}return i}(t,i),o));case 5:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=Nt(e,s),!(t=Et[n])&&jt(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||St(n);return r}(t)+'"';default:throw new Y("impossible error: invalid scalar style")}}()}function Mt(e,t){var r=It(e)?String(t):"",n="\n"===e[e.length-1];return r+(!n||"\n"!==e[e.length-2]&&"\n"!==e?n?"":"-":"+")+"\n"}function Rt(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Dt(e,t){if(""===e||" "===e[0])return e;for(var r,n,s=/ [^ ]/g,o=0,i=0,a=0,c="";r=s.exec(e);)(a=r.index)-o>t&&(n=i>o?i:a,c+="\n"+e.slice(o,n),o=n+1),i=a;return c+="\n",e.length-o>t&&i>o?c+=e.slice(o,i)+"\n"+e.slice(i+1):c+=e.slice(o),c.slice(1)}function $t(e,t,r,n){var s,o,i,a="",c=e.tag;for(s=0,o=r.length;s<o;s+=1)i=r[s],e.replacer&&(i=e.replacer.call(r,String(s),i)),(Bt(e,t+1,i,!0,!0,!1,!0)||void 0===i&&Bt(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=Ot(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function Ft(e,t,r){var n,s,o,i,a,c;for(o=0,i=(s=r?e.explicitTypes:e.implicitTypes).length;o<i;o+=1)if(((a=s[o]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===yt.call(a.represent))n=a.represent(t,c);else{if(!vt.call(a.represent,c))throw new Y("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');n=a.represent[c](t,c)}e.dump=n}return!0}return!1}function Bt(e,t,r,n,s,o,i){e.tag=null,e.dump=r,Ft(e,r,!1)||Ft(e,r,!0);var a,c=yt.call(e.dump),l=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var u,p,h="[object Object]"===c||"[object Array]"===c;if(h&&(p=-1!==(u=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(s=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(function(e,t,r,n){var s,o,i,a,c,l,u="",p=e.tag,h=Object.keys(r);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new Y("sortKeys must be a boolean or a function");for(s=0,o=h.length;s<o;s+=1)l="",n&&""===u||(l+=Ot(e,t)),a=r[i=h[s]],e.replacer&&(a=e.replacer.call(r,i,a)),Bt(e,t+1,i,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=Ot(e,t)),Bt(e,t+1,a,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(function(e,t,r){var n,s,o,i,a,c="",l=e.tag,u=Object.keys(r);for(n=0,s=u.length;n<s;n+=1)a="",""!==c&&(a+=", "),e.condenseFlow&&(a+='"'),i=r[o=u[n]],e.replacer&&(i=e.replacer.call(r,o,i)),Bt(e,t,o,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Bt(e,t,i,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===c)n&&0!==e.dump.length?(e.noArrayIndent&&!i&&t>0?$t(e,t-1,e.dump,s):$t(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(function(e,t,r){var n,s,o,i="",a=e.tag;for(n=0,s=r.length;n<s;n+=1)o=r[n],e.replacer&&(o=e.replacer.call(r,String(n),o)),(Bt(e,t,o,!1,!1)||void 0===o&&Bt(e,t,null,!1,!1))&&(""!==i&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=a,e.dump="["+i+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new Y("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&Pt(e,e.dump,t,o,l)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function Lt(e,t){var r,n,s=[],o=[];for(qt(e,s,o),r=0,n=o.length;r<n;r+=1)t.duplicates.push(s[o[r]]);t.usedDuplicates=new Array(n)}function qt(e,t,r){var n,s,o;if(null!==e&&"object"==typeof e)if(-1!==(s=t.indexOf(e)))-1===r.indexOf(s)&&r.push(s);else if(t.push(e),Array.isArray(e))for(s=0,o=e.length;s<o;s+=1)qt(e[s],t,r);else for(s=0,o=(n=Object.keys(e)).length;s<o;s+=1)qt(e[n[s]],t,r)}function Ut(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var zt=te,Jt=se,Vt=ce,Wt=ye,Kt=ve,Ht=Ie,Gt=gt,Yt=mt,Xt=function(e,t){var r=new _t(t=t||{});r.noRefs||Lt(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Bt(r,0,n,!0,!0)?r.dump+"\n":""},Zt=Y,Qt={binary:_e,float:ge,map:ae,null:le,pairs:ke,set:Ne,timestamp:we,bool:ue,int:de,merge:xe,omap:Ce,seq:ie,str:oe},er=Ut("safeLoad","load"),tr=Ut("safeLoadAll","loadAll"),rr=Ut("safeDump","dump"),nr={Type:zt,Schema:Jt,FAILSAFE_SCHEMA:Vt,JSON_SCHEMA:Wt,CORE_SCHEMA:Kt,DEFAULT_SCHEMA:Ht,load:Gt,loadAll:Yt,dump:Xt,YAMLException:Zt,types:Qt,safeLoad:er,safeLoadAll:tr,safeDump:rr},sr=r(86215),or=r.n(sr),ir=r(2209),ar=r.n(ir),cr=r(40860),lr=r.n(cr),ur=r(58156),pr=r.n(ur),hr=r(85401),dr=r(53375);function fr(){var e;return fr=hr?dr(e=hr).call(e):function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fr.apply(null,arguments)}var mr=r(46942),gr=r.n(mr),yr=r(91426);function vr(e){return vr="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},vr(e)}function br(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xr(e){return xr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xr(e)}function Sr(e,t){return Sr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sr(e,t)}var _r={};function Ar(e,t,r){return function(e){return null==e}(e)?r:function(e){return null!==e&&"object"===vr(e)&&"function"==typeof e.get&&"function"==typeof e.has}(e)?e.has(t)?e.get(t):r:hasOwnProperty.call(e,t)?e[t]:r}function Or(e,t,r){for(var n=0;n!==t.length;)if((e=Ar(e,t[n++],_r))===_r)return r;return e}function Cr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=function(e,t){return function(r){if("string"==typeof r)return(0,w.is)(t[r],e[r]);if(Array.isArray(r))return(0,w.is)(Or(t,r),Or(e,r));throw new TypeError("Invalid key: expected Array or string: "+r)}}(t,r),s=e||Object.keys(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wr(r,!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wr(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r,{},t));return s.every(n)}var jr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,xr(t).apply(this,arguments))}var r,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sr(e,t)}(t,e),r=t,n=[{key:"shouldComponentUpdate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!Cr(this.updateOnProps,this.props,e,"updateOnProps")||!Cr(this.updateOnStates,this.state,t,"updateOnStates")}}],n&&br(r.prototype,n),t}(f.Component);const kr=jr;var Tr,Nr=r(24677),Ir=r.n(Nr),Pr=r(11331),Mr=r.n(Pr),Rr=r(41859),Dr=r.n(Rr),$r=r(62193),Fr=r.n($r),Br=r(37334),Lr=r.n(Br),qr=r(85015),Ur=r.n(qr),zr=r(38221),Jr=r.n(zr),Vr=r(63560),Wr=r.n(Vr),Kr=r(56367),Hr=r.n(Kr),Gr=(Tr=function(e,t){return Tr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Tr(e,t)},function(e,t){function r(){this.constructor=e}Tr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Yr=Object.prototype.hasOwnProperty;function Xr(e,t){return Yr.call(e,t)}function Zr(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var s in e)Xr(e,s)&&n.push(s);return n}function Qr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function en(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function tn(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function rn(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function nn(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(nn(e[t]))return!0}else if("object"==typeof e)for(var n=Zr(e),s=n.length,o=0;o<s;o++)if(nn(e[n[o]]))return!0;return!1}function sn(e,t){var r=[e];for(var n in t){var s="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==s&&r.push(n+": "+s)}return r.join("\n")}var on=function(e){function t(t,r,n,s,o){var i=this.constructor,a=e.call(this,sn(t,{name:r,index:n,operation:s,tree:o}))||this;return a.name=r,a.index=n,a.operation=s,a.tree=o,Object.setPrototypeOf(a,i.prototype),a.message=sn(t,{name:r,index:n,operation:s,tree:o}),a}return Gr(t,e),t}(Error),an=on,cn=Qr,ln={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=pn(r,this.path);n&&(n=Qr(n));var s=hn(r,{op:"remove",path:this.from}).removed;return hn(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=pn(r,this.from);return hn(r,{op:"add",path:this.path,value:Qr(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:yn(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},un={add:function(e,t,r){return en(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:ln.move,copy:ln.copy,test:ln.test,_get:ln._get};function pn(e,t){if(""==t)return e;var r={op:"_get",path:t};return hn(e,r),r.value}function hn(e,t,r,n,s,o){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===s&&(s=!0),void 0===o&&(o=0),r&&("function"==typeof r?r(t,0,e,t.path):mn(t,0)),""===t.path){var i={newDocument:e};if("add"===t.op)return i.newDocument=t.value,i;if("replace"===t.op)return i.newDocument=t.value,i.removed=e,i;if("move"===t.op||"copy"===t.op)return i.newDocument=pn(e,t.from),"move"===t.op&&(i.removed=e),i;if("test"===t.op){if(i.test=yn(e,t.value),!1===i.test)throw new an("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return i.newDocument=e,i}if("remove"===t.op)return i.removed=e,i.newDocument=null,i;if("_get"===t.op)return t.value=e,i;if(r)throw new an("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",o,t,e);return i}n||(e=Qr(e));var a=(t.path||"").split("/"),c=e,l=1,u=a.length,p=void 0,h=void 0,d=void 0;for(d="function"==typeof r?r:mn;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=rn(h)),s&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==a[l-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===c[h]?p=a.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&d(t,0,e,p)),l++,Array.isArray(c)){if("-"===h)h=c.length;else{if(r&&!en(h))throw new an("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,t,e);en(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new an("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);if(!1===(i=un[t.op].call(t,c,h,e)).test)throw new an("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return i}}else if(l>=u){if(!1===(i=ln[t.op].call(t,c,h,e)).test)throw new an("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return i}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new an("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",o,t,e)}}function dn(e,t,r,n,s){if(void 0===n&&(n=!0),void 0===s&&(s=!0),r&&!Array.isArray(t))throw new an("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Qr(e));for(var o=new Array(t.length),i=0,a=t.length;i<a;i++)o[i]=hn(e,t[i],r,!0,s,i),e=o[i].newDocument;return o.newDocument=e,o}function fn(e,t,r){var n=hn(e,t);if(!1===n.test)throw new an("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function mn(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new an("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!ln[e.op])throw new an("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new an("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new an('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new an("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new an("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&nn(e.value))throw new an("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var s=e.path.split("/").length,o=n.split("/").length;if(s!==o+1&&s!==o)throw new an("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==n)throw new an("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var i=gn([{op:"_get",path:e.from,value:void 0}],r);if(i&&"OPERATION_PATH_UNRESOLVABLE"===i.name)throw new an("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function gn(e,t,r){try{if(!Array.isArray(e))throw new an("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)dn(Qr(t),Qr(e),r||!0);else{r=r||mn;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof an)return e;throw e}}function yn(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,s,o=Array.isArray(e),i=Array.isArray(t);if(o&&i){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!yn(e[r],t[r]))return!1;return!0}if(o!=i)return!1;var a=Object.keys(e);if((n=a.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=n;0!=r--;)if(!yn(e[s=a[r]],t[s]))return!1;return!0}return e!=e&&t!=t}var vn=new WeakMap,bn=function(e){this.observers=new Map,this.obj=e},En=function(e,t){this.callback=e,this.observer=t};function wn(e,t){t.unobserve()}function xn(e,t){var r,n=function(e){return vn.get(e)}(e);if(n){var s=function(e,t){return e.observers.get(t)}(n,t);r=s&&s.observer}else n=new bn(e),vn.set(e,n);if(r)return r;if(r={},n.value=Qr(e),t){r.callback=t,r.next=null;var o=function(){Sn(r)},i=function(){clearTimeout(r.next),r.next=setTimeout(o)};"undefined"!=typeof window&&(window.addEventListener("mouseup",i),window.addEventListener("keyup",i),window.addEventListener("mousedown",i),window.addEventListener("keydown",i),window.addEventListener("change",i))}return r.patches=[],r.object=e,r.unobserve=function(){Sn(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(n,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",i),window.removeEventListener("keyup",i),window.removeEventListener("mousedown",i),window.removeEventListener("keydown",i),window.removeEventListener("change",i))},n.observers.set(t,new En(t,r)),r}function Sn(e,t){void 0===t&&(t=!1);var r=vn.get(e.object);_n(r.value,e.object,e.patches,"",t),e.patches.length&&dn(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function _n(e,t,r,n,s){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var o=Zr(t),i=Zr(e),a=!1,c=i.length-1;c>=0;c--){var l=e[p=i[c]];if(!Xr(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(s&&r.push({op:"test",path:n+"/"+tn(p),value:Qr(l)}),r.push({op:"remove",path:n+"/"+tn(p)}),a=!0):(s&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}));else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?_n(l,u,r,n+"/"+tn(p),s):l!==u&&(s&&r.push({op:"test",path:n+"/"+tn(p),value:Qr(l)}),r.push({op:"replace",path:n+"/"+tn(p),value:Qr(u)}))}}if(a||o.length!=i.length)for(c=0;c<o.length;c++){var p;Xr(e,p=o[c])||void 0===t[p]||r.push({op:"add",path:n+"/"+tn(p),value:Qr(t[p])})}}}function An(e,t,r){void 0===r&&(r=!1);var n=[];return _n(e,t,n,"",r),n}Object.assign({},n,s,{JsonPatchError:on,deepClone:Qr,escapePathComponent:tn,unescapePathComponent:rn});var On=r(14744),Cn=r.n(On);const jn={add:function(e,t){return{op:"add",path:e,value:t}},replace:Tn,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce(((e,t)=>void 0!==t&&e?e[t]:e),e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t={...t,path:t.path&&kn(t.path)}).op){const r=zn(e,t.path);Object.assign(r,t.value),dn(e,[Tn(t.path,r)])}else if("mergeDeep"===t.op){const r=zn(e,t.path),n=Cn()(r,t.value,{customMerge:e=>{if("enum"===e)return(e,t)=>Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:Cn()(e,t)}});e=dn(e,[Tn(t.path,n)]).newDocument}else if("add"===t.op&&""===t.path&&$n(t.value))dn(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${kn(r)}`,value:t.value[r]}),e)),[]));else if("replace"===t.op&&""===t.path){let{value:n}=t;r.allowMetaPatches&&t.meta&&qn(t)&&(Array.isArray(t.value)||$n(t.value))&&(n={...n,...t.meta}),e=n}else if(dn(e,[t]),r.allowMetaPatches&&t.meta&&qn(t)&&(Array.isArray(t.value)||$n(t.value))){const r={...zn(e,t.path),...t.meta};dn(e,[Tn(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,n=t.length;r<n;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:Rn,fullyNormalizeArray:function(e){return Dn(Rn(Mn(e)))},normalizeArray:Mn,isPromise:function(e){return $n(e)&&Fn(e.then)},forEachNew:function(e,t){try{return Nn(e,Pn,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return Nn(e,In,t)}catch(e){return e}},isJsonPatch:Bn,isContextPatch:function(e){return Un(e)&&"context"===e.type},isPatch:Un,isMutation:Ln,isAdditiveMutation:qn,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Fn,isObject:$n,isError:function(e){return e instanceof Error}};function kn(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function Tn(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function Nn(e,t,r){return Dn(Rn(e.filter(qn).map((e=>t(e.value,r,e.path)))||[]))}function In(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,n)=>In(e,t,r.concat(n)))):$n(e)?Object.keys(e).map((n=>In(e[n],t,r.concat(n)))):t(e,r[r.length-1],r)}function Pn(e,t,r){let n=[];if((r=r||[]).length>0){const s=t(e,r[r.length-1],r);s&&(n=n.concat(s))}if(Array.isArray(e)){const s=e.map(((e,n)=>Pn(e,t,r.concat(n))));s&&(n=n.concat(s))}else if($n(e)){const s=Object.keys(e).map((n=>Pn(e[n],t,r.concat(n))));s&&(n=n.concat(s))}return n=Rn(n),n}function Mn(e){return Array.isArray(e)?e:[e]}function Rn(e){return[].concat(...e.map((e=>Array.isArray(e)?Rn(e):e)))}function Dn(e){return e.filter((e=>void 0!==e))}function $n(e){return e&&"object"==typeof e}function Fn(e){return e&&"function"==typeof e}function Bn(e){if(Un(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Ln(e){return Bn(e)||Un(e)&&"mutation"===e.type}function qn(e){return Ln(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Un(e){return e&&"object"==typeof e}function zn(e,t){try{return pn(e,t)}catch(e){return console.error(e),{}}}var Jn=r(48675);const Vn=class extends Jn{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Wn extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Vn,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const Kn=Wn,Hn=class extends Kn{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};function Gn(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,o){return t.apply(this,arguments)};case 6:return function(e,r,n,s,o,i){return t.apply(this,arguments)};case 7:return function(e,r,n,s,o,i,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,o,i,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,o,i,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,n,s,o,i,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Yn(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Xn(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Zn(e){return function t(r){return 0===arguments.length||Xn(r)?t:e.apply(this,arguments)}}function Qn(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return Xn(r)?t:Zn((function(t){return e(r,t)}));default:return Xn(r)&&Xn(n)?t:Xn(r)?Zn((function(t){return e(t,n)})):Xn(n)?Zn((function(t){return e(r,t)})):e(r,n)}}}function es(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return Xn(r)?t:Qn((function(t,n){return e(r,t,n)}));case 2:return Xn(r)&&Xn(n)?t:Xn(r)?Qn((function(t,r){return e(t,n,r)})):Xn(n)?Qn((function(t,n){return e(r,t,n)})):Zn((function(t){return e(r,n,t)}));default:return Xn(r)&&Xn(n)&&Xn(s)?t:Xn(r)&&Xn(n)?Qn((function(t,r){return e(t,r,s)})):Xn(r)&&Xn(s)?Qn((function(t,r){return e(t,n,r)})):Xn(n)&&Xn(s)?Qn((function(t,n){return e(r,t,n)})):Xn(r)?Zn((function(t){return e(t,n,s)})):Xn(n)?Zn((function(t){return e(r,t,s)})):Xn(s)?Zn((function(t){return e(r,n,t)})):e(r,n,s)}}}const ts=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function rs(e){return"[object String]"===Object.prototype.toString.call(e)}const ns=Zn((function(e){return!!ts(e)||!!e&&"object"==typeof e&&!rs(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}));var ss="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function os(e,t,r){return function(n,s,o){if(ns(o))return e(n,s,o);if(null==o)return s;if("function"==typeof o["fantasy-land/reduce"])return t(n,s,o,"fantasy-land/reduce");if(null!=o[ss])return r(n,s,o[ss]());if("function"==typeof o.next)return r(n,s,o);if("function"==typeof o.reduce)return t(n,s,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function is(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var as=Qn((function(e,t){return Gn(e.length,(function(){return e.apply(t,arguments)}))}));const cs=as;function ls(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function us(e,t,r,n){return e["@@transducer/result"](r[n](cs(e["@@transducer/step"],e),t))}const ps=os(is,us,ls);var hs=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function ds(e){return new hs(e)}const fs=es((function(e,t,r){return ps("function"==typeof e?ds(e):e,t,r)}));function ms(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return ts(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const gs=es(ms("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)}))),ys=Zn(ms("tail",gs(1,1/0)));function vs(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Gn(arguments[0].length,fs(Yn,arguments[0],ys(arguments)))}const bs=Qn((function(e,t){return null==t||t!=t?e:t})),Es=Number.isInteger||function(e){return(0|e)===e};function ws(e,t){var r=e<0?t.length+e:e;return rs(t)?t.charAt(r):t[r]}const xs=Qn((function(e,t){if(null!=t)return Es(e)?ws(e,t):t[e]})),Ss=es((function(e,t,r){return bs(e,xs(t,r))}));const _s=Zn((function(e){return ws(-1,e)}));function As(e,t,r){return function(){for(var n=[],s=0,o=e,i=0,a=!1;i<t.length||s<arguments.length;){var c;i<t.length&&(!Xn(t[i])||s>=arguments.length)?c=t[i]:(c=arguments[s],s+=1),n[i]=c,Xn(c)?a=!0:o-=1,i+=1}return!a&&o<=0?r.apply(this,n):Gn(Math.max(0,o),As(e,n,r))}}var Os=Qn((function(e,t){return 1===e?Zn(t):Gn(e,As(e,[],t))}));const Cs=Os;var js=Zn((function(e){return Cs(e.length,e)}));const ks=js;function Ts(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function Ns(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Is(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function Ps(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const Ms="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var Rs=Object.prototype.toString,Ds=function(){return"[object Arguments]"===Rs.call(arguments)?function(e){return"[object Arguments]"===Rs.call(e)}:function(e){return Ps("callee",e)}}();const $s=Ds;var Fs=!{toString:null}.propertyIsEnumerable("toString"),Bs=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Ls=function(){return arguments.propertyIsEnumerable("length")}(),qs=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},Us="function"!=typeof Object.keys||Ls?Zn((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=Ls&&$s(e);for(t in e)!Ps(t,e)||s&&"length"===t||(n[n.length]=t);if(Fs)for(r=Bs.length-1;r>=0;)Ps(t=Bs[r],e)&&!qs(n,t)&&(n[n.length]=t),r-=1;return n})):Zn((function(e){return Object(e)!==e?[]:Object.keys(e)}));const zs=Us,Js=Zn((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Vs(e,t,r,n){var s=Ns(e);function o(e,t){return Ws(e,t,r.slice(),n.slice())}return!Is((function(e,t){return!Is(o,t,e)}),Ns(t),s)}function Ws(e,t,r,n){if(Ms(e,t))return!0;var s,o,i=Js(e);if(i!==Js(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(o=String(s).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Ms(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Ms(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(i){case"Map":return e.size===t.size&&Vs(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&Vs(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=zs(e);if(c.length!==zs(t).length)return!1;var l=r.concat([e]),u=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!Ps(p,t)||!Ws(t[p],e[p],l,u))return!1;a-=1}return!0}const Ks=Qn((function(e,t){return Ws(e,t,[],[])}));function Hs(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(Ks(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function Gs(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function Ys(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Xs=function(e){return(e<10?"0":"")+e};const Zs="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Xs(e.getUTCMonth()+1)+"-"+Xs(e.getUTCDate())+"T"+Xs(e.getUTCHours())+":"+Xs(e.getUTCMinutes())+":"+Xs(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Qs(e){return function(){return!e.apply(this,arguments)}}function eo(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function to(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!ts(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function ro(e){return"[object Object]"===Object.prototype.toString.call(e)}const no=function(){return this.xf["@@transducer/init"]()},so=function(e){return this.xf["@@transducer/result"](e)};var oo=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=no,e.prototype["@@transducer/result"]=so,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function io(e){return function(t){return new oo(e,t)}}var ao=Qn(to(["fantasy-land/filter","filter"],io,(function(e,t){return ro(t)?eo((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},zs(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const co=ao,lo=Qn((function(e,t){return co(Qs(e),t)}));function uo(e,t){var r=function(r){var n=t.concat([e]);return Hs(r,n)?"<Circular>":uo(r,n)},n=function(e,t){return Gs((function(t){return Ys(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Gs(r,e).join(", ")+"))";case"[object Array]":return"["+Gs(r,e).concat(n(e,lo((function(e){return/^\d+$/.test(e)}),zs(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):Ys(Zs(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":Ys(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,zs(e)).join(", ")+"}"}}const po=Zn((function(e){return uo(e,[])}));var ho=Qn((function(e,t){return Cs(e+1,(function(){var r=arguments[e];if(null!=r&&Ts(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(po(r)+' does not have a method named "'+t+'"')}))}));const fo=ho,mo=fo(1,"split");function go(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return gs(0,r+1,t)}var yo=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=no,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=ps(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();function vo(e){return function(t){return new yo(e,t)}}const bo=Qn(to([],vo,go)),Eo=fo(1,"join");var wo=Zn((function(e){return Cs(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const xo=wo(Qn(Hs)),So=ks((function(e,t){return vs(mo(""),bo(xo(e)),Eo(""))(t)}));function _o(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Ao(e,t,r,n){return r[n](e,t)}const Oo=os(eo,Ao,_o);var Co=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=no,e.prototype["@@transducer/result"]=so,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),jo=Qn(to(["fantasy-land/map","map"],(function(e){return function(t){return new Co(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Cs(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return eo((function(r,n){return r[n]=e(t[n]),r}),{},zs(t));default:return Gs(e,t)}})));const ko=jo,To=Qn((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:Oo((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,o=[];for(r=0;r<n;)o[o.length]=e[r],r+=1;for(r=0;r<s;)o[o.length]=t[r],r+=1;return o}(e,ko(r,t))}),[],e)}));var No=Qn((function(e,t){var r=Cs(e,t);return Cs(e,(function(){return eo(To,ko(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Io=No;var Po=Zn((function(e){return Io(e.length,e)}));const Mo=Po,Ro=Mo(Zn((function(e){return!e}))),Do=Zn((function(e){return function(){return e}})),$o=Do(void 0),Fo=Ks($o()),Bo=Ro(Fo),Lo=Qn((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var o=po(e),i=r(o,po(t));return void 0!==i&&i===o?e:t}));const qo=Qn((function(e,t){return ko(xs(e),t)}));var Uo=Zn((function(e){return Cs(fs(Lo,0,qo("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const zo=Uo;var Jo=function(e,t){switch(arguments.length){case 0:return Jo;case 1:return function t(r){return 0===arguments.length?t:Ms(e,r)};default:return Ms(e,t)}};const Vo=Jo,Wo=Cs(1,vs(Js,Vo("GeneratorFunction"))),Ko=Cs(1,vs(Js,Vo("AsyncFunction"))),Ho=zo([vs(Js,Vo("Function")),Wo,Ko]);var Go=es((function(e,t,r){return r.replace(e,t)}));const Yo=Go,Xo=Cs(1,vs(Js,Vo("RegExp"))),Zo=es((function(e,t,r){return e(r)?t(r):r})),Qo=Cs(1,vs(Js,Vo("String"))),ei=Zo(Qo,Yo(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var ti=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};var ri=Cs(3,(function(e,t,r){!function(e,t,r){if(null==r||null==e||null==t)throw TypeError("Input values must not be `null` or `undefined`")}(e,t,r),ti(r,"str"),ti(t,"replaceValue"),function(e){if(!("string"==typeof e||e instanceof String||e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(e);var n=new RegExp(Xo(e)?e:ei(e),"g");return Yo(n,t,r)})),ni=fo(2,"replaceAll");const si=Ho(String.prototype.replaceAll)?ni:ri,oi=()=>{var e,t;return/^win/.test(null!==(e=null===(t=globalThis.process)||void 0===t?void 0:t.platform)&&void 0!==e?e:"")},ii=e=>{try{const t=new URL(e);return So(":",t.protocol)}catch{return}},ai=(vs(ii,Bo),e=>{if(void 0!==globalThis.window)return!1;const t=ii(e);return Fo(t)||"file"===t||/^[a-zA-Z]$/.test(t)}),ci=e=>{const t=ii(e);return"http"===t||"https"===t},li=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Ss(!1,"keepFileProtocol",t),s=Ss(oi,"isWindows",t);let o=decodeURI(e);for(let e=0;e<r.length;e+=2)o=o.replace(r[e],r[e+1]);let i="file://"===o.substring(0,7).toLowerCase();return i&&(o="/"===o[7]?o.substring(8):o.substring(7),s()&&"/"===o[1]&&(o=`${o[0]}:${o.substring(1)}`),n?o=`file:///${o}`:(i=!1,o=s()?o:`/${o}`)),s()&&!i&&(o=si("/","\\",o),":\\"===o.substring(1,3)&&(o=o[0].toUpperCase()+o.substring(1))),o},ui=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},pi=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},hi=()=>{var e,t;if(void 0!==globalThis.window)return pi(globalThis.location.href);const r=null!==(e=null===(t=globalThis.process)||void 0===t?void 0:t.cwd())&&void 0!==e?e:"/",n=_s(r);return["/","\\"].includes(n)?r:r+(oi()?"\\":"/")},di=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:n}=r;return e+t+n}return r.toString()},fi=e=>{if(ai(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;oi()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let e=0;e<t.length;e+=2)r=r.replace(t[e],t[e+1]);return r})(li(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},mi=e=>ai(e)?li(e):decodeURI(e);var gi=r(8628),yi=r.n(gi);function vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ei(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,s,o=[],i=!0,a=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){a=!0,s=e}finally{try{i||null==r.return||r.return()}finally{if(a)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xi(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var Si=function(e){throw TypeError(e)},_i=function(e,t,r){return t.has(e)||Si("Cannot "+r)},Ai=function(e,t,r){return _i(e,t,"read from private field"),r?r.call(e):t.get(e)},Oi=function(e,t,r){return t.has(e)?Si("Cannot add the same private member more than once"):Ei(t,WeakSet)?t.add(e):t.set(e,r)},Ci=function(e,t,r,n){return _i(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r},ji=function(e){return Object.prototype.toString.call(e)},ki=function(e){return ArrayBuffer.isView(e)&&!Ei(e,DataView)},Ti=Array.isArray,Ni=Object.getOwnPropertyDescriptor,Ii=Object.prototype.propertyIsEnumerable,Pi=Object.getOwnPropertySymbols,Mi=Object.prototype.hasOwnProperty;function Ri(e){for(var t=Object.keys(e),r=Pi(e),n=0;n<r.length;n++)Ii.call(e,r[n])&&t.push(r[n]);return t}function Di(e,t){var r;return!(null===(r=Ni(e,t))||void 0===r?void 0:r.writable)}function $i(e,t){if("object"===(void 0===e?"undefined":xi(e))&&null!==e){var r;if(Ti(e))r=[];else if("[object Date]"===ji(e))r=new Date(e.getTime?e.getTime():e);else if("[object RegExp]"===ji(e))r=new RegExp(e);else if(function(e){return"[object Error]"===ji(e)}(e))r={message:e.message};else if(function(e){return"[object Boolean]"===ji(e)}(e)||function(e){return"[object Number]"===ji(e)}(e)||function(e){return"[object String]"===ji(e)}(e))r=Object(e);else{if(ki(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var n=t.includeSymbols?Ri:Object.keys,s=!0,o=!1,i=void 0;try{for(var a,c=n(e)[Symbol.iterator]();!(s=(a=c.next()).done);s=!0){var l=a.value;r[l]=e[l]}}catch(e){o=!0,i=e}finally{try{s||null==c.return||c.return()}finally{if(o)throw i}}return r}return e}var Fi,Bi,Li={includeSymbols:!1,immutable:!1};function qi(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Li,n=[],s=[],o=!0,i=r.includeSymbols?Ri:Object.keys,a=!!r.immutable;return function e(c){var l=a?$i(c,r):c,u={},p=!0,h={node:l,node_:c,path:[].concat(n),parent:s[s.length-1],parents:s,key:n[n.length-1],isRoot:0===n.length,level:n.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(p=!1)},delete:function(e){delete h.parent.node[h.key],e&&(p=!1)},remove:function(e){Ti(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(p=!1)},keys:null,before:function(e){u.before=e},after:function(e){u.after=e},pre:function(e){u.pre=e},post:function(e){u.post=e},stop:function(){o=!1},block:function(){p=!1}};if(!o)return h;function d(){if("object"===xi(h.node)&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=i(h.node)),h.isLeaf=0===h.keys.length;for(var e=0;e<s.length;e++)if(s[e].node_===c){h.circular=s[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}d();var f=t.call(h,h.node);if(void 0!==f&&h.update&&h.update(f),u.before&&u.before.call(h,h.node),!p)return h;if("object"===xi(h.node)&&null!==h.node&&!h.circular){var m;s.push(h),d();var g=!0,y=!1,v=void 0;try{for(var b,E=Object.entries(null!==(m=h.keys)&&void 0!==m?m:[])[Symbol.iterator]();!(g=(b=E.next()).done);g=!0){var w,x=wi(b.value,2),S=x[0],_=x[1];n.push(_),u.pre&&u.pre.call(h,h.node[_],_);var A=e(h.node[_]);a&&Mi.call(h.node,_)&&!Di(h.node,_)&&(h.node[_]=A.node),A.isLast=!!(null===(w=h.keys)||void 0===w?void 0:w.length)&&+S==h.keys.length-1,A.isFirst=0==+S,u.post&&u.post.call(h,A),n.pop()}}catch(e){y=!0,v=e}finally{try{g||null==E.return||E.return()}finally{if(y)throw v}}s.pop()}return u.after&&u.after.call(h,h.node),h}(e).node}var Ui=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Li;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Oi(this,Fi),Oi(this,Bi),Ci(this,Fi,t),Ci(this,Bi,r)}var t,r;return t=e,r=[{key:"get",value:function(e){for(var t=Ai(this,Fi),r=0;t&&r<e.length;r++){var n=e[r];if(!Mi.call(t,n)||!Ai(this,Bi).includeSymbols&&"symbol"===(void 0===n?"undefined":xi(n)))return;t=t[n]}return t}},{key:"has",value:function(e){for(var t=Ai(this,Fi),r=0;t&&r<e.length;r++){var n=e[r];if(!Mi.call(t,n)||!Ai(this,Bi).includeSymbols&&"symbol"===(void 0===n?"undefined":xi(n)))return!1;t=t[n]}return!0}},{key:"set",value:function(e,t){var r=Ai(this,Fi),n=0;for(n=0;n<e.length-1;n++){var s=e[n];Mi.call(r,s)||(r[s]={}),r=r[s]}return r[e[n]]=t,t}},{key:"map",value:function(e){return qi(Ai(this,Fi),e,{immutable:!0,includeSymbols:!!Ai(this,Bi).includeSymbols})}},{key:"forEach",value:function(e){return Ci(this,Fi,qi(Ai(this,Fi),e,Ai(this,Bi))),Ai(this,Fi)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,n=r?Ai(this,Fi):t;return this.forEach((function(t){this.isRoot&&r||(n=e.call(this,n,t))})),n}},{key:"paths",value:function(){var e=[];return this.forEach((function(){e.push(this.path)})),e}},{key:"nodes",value:function(){var e=[];return this.forEach((function(){e.push(this.node)})),e}},{key:"clone",value:function(){var e=[],t=[],r=Ai(this,Bi);return ki(Ai(this,Fi))?Ai(this,Fi).slice():function n(s){for(var o=0;o<e.length;o++)if(e[o]===s)return t[o];if("object"===(void 0===s?"undefined":xi(s))&&null!==s){var i=$i(s,r);e.push(s),t.push(i);var a=r.includeSymbols?Ri:Object.keys,c=!0,l=!1,u=void 0;try{for(var p,h=a(s)[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var d=p.value;i[d]=n(s[d])}}catch(e){l=!0,u=e}finally{try{c||null==h.return||h.return()}finally{if(l)throw u}}return e.pop(),t.pop(),i}return s}(Ai(this,Fi))}}],r&&bi(t.prototype,r),e}();Fi=new WeakMap,Bi=new WeakMap;var zi=function(e,t){return new Ui(e,t)};zi.get=function(e,t,r){return new Ui(e,r).get(t)},zi.set=function(e,t,r,n){return new Ui(e,n).set(t,r)},zi.has=function(e,t,r){return new Ui(e,r).has(t)},zi.map=function(e,t,r){return new Ui(e,r).map(t)},zi.forEach=function(e,t,r){return new Ui(e,r).forEach(t)},zi.reduce=function(e,t,r,n){return new Ui(e,n).reduce(t,r)},zi.paths=function(e,t){return new Ui(e,t).paths()},zi.nodes=function(e,t){return new Ui(e,t).nodes()},zi.clone=function(e,t){return new Ui(e,t).clone()};var Ji=zi;const Vi="application/json, application/yaml",Wi="https://swagger.io",Ki=Object.freeze({url:"/"}),Hi=["properties"],Gi=["properties"],Yi=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Xi=["schema/example","items/example"];function Zi(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return Hi.indexOf(t)>-1&&-1===Gi.indexOf(r)||Yi.indexOf(n)>-1||Xi.some((e=>n.indexOf(e)>-1))}function Qi(e,t){const[r,n]=e.split("#"),s=t??"",o=r??"";let i;if(ci(s))i=di(s,o);else{const e=di(Wi,s),t=di(e,o).replace(Wi,"");i=o.startsWith("/")?t:t.substring(1)}return n?`${i}#${n}`:i}const ea=/^([a-z]+:\/\/|\/\/)/i;class ta extends Hn{}const ra={},na=new WeakMap,sa=[e=>"paths"===e[0]&&"responses"===e[3]&&"examples"===e[5],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[2]&&"example"===e[4],e=>"paths"===e[0]&&"parameters"===e[3]&&"example"===e[5],e=>"paths"===e[0]&&"parameters"===e[2]&&"examples"===e[4]&&"value"===e[6],e=>"paths"===e[0]&&"parameters"===e[3]&&"examples"===e[5]&&"value"===e[7],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[4]&&"example"===e[7],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]],oa={key:"$ref",plugin:(e,t,r,n)=>{const s=n.getInstance(),o=r.slice(0,-1);if(Zi(o)||(i=o,sa.some((e=>e(i)))))return;var i;const{baseDoc:a}=n.getContext(r);if("string"!=typeof e)return new ta("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:a,fullPath:r});const c=ua(e),l=c[0],u=c[1]||"";let p,h,d;try{p=a||l?ca(l,a):null}catch(t){return la(t,{pointer:u,$ref:e,basePath:p,fullPath:r})}if(function(e,t,r,n){let s=na.get(n);s||(s={},na.set(n,s));const o=0===(c=r).length?"":`/${c.map(ga).join("/")}`,i=`${t||"<specmap-base>"}#${e}`,a=o.replace(/allOf\/\d+\/?/g,"");var c;if(t===n.contextTree.get([]).baseDoc&&ya(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${ga(e)}`,s[l]&&s[l].some((e=>ya(e,i)||ya(i,e))))));if(u)return!0;s[a]=(s[a]||[]).concat(i)}(u,p,o,n)&&!s.useCircularStructures){const t=Qi(e,p);return e===t?null:jn.replace(r,t)}if(null==p?(d=fa(u),h=n.get(d),void 0===h&&(h=new ta(`Could not resolve reference: ${e}`,{pointer:u,$ref:e,baseDoc:a,fullPath:r}))):(h=pa(p,u),h=null!=h.__value?h.__value:h.catch((t=>{throw la(t,{pointer:u,$ref:e,baseDoc:a,fullPath:r})}))),h instanceof Error)return[jn.remove(r),h];const f=Qi(e,p),m=jn.replace(o,h,{$$ref:f});if(p&&p!==a)return[m,jn.context(o,{baseDoc:p})];try{if(!function(e,t){const r=[e];return t.path.reduce(((e,t)=>(r.push(e[t]),e[t])),e),function e(t){return jn.isObject(t)&&(r.indexOf(t)>=0||Object.keys(t).some((r=>e(t[r]))))}(t.value)}(n.state,m)||s.useCircularStructures)return m}catch(e){return null}}},ia=Object.assign(oa,{docCache:ra,absoluteify:ca,clearCache:function(e){void 0!==e?delete ra[e]:Object.keys(ra).forEach((e=>{delete ra[e]}))},JSONRefError:ta,wrapError:la,getDoc:ha,split:ua,extractFromDoc:pa,fetchJSON:function(e){return fetch(e,{headers:{Accept:Vi},loadSpec:!0}).then((e=>e.text())).then((e=>nr.load(e)))},extract:da,jsonPointerToArray:fa,unescapeJsonPointerToken:ma}),aa=ia;function ca(e,t){if(!ea.test(e)){if(!t)throw new ta(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return di(t,e)}return e}function la(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new ta(`Could not resolve reference: ${r}`,{...t,cause:e})}function ua(e){return(e+"").split("#")}function pa(e,t){const r=ra[e];if(r&&!jn.isPromise(r))try{const e=da(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return ha(e).then((e=>da(t,e)))}function ha(e){const t=ra[e];return t?jn.isPromise(t)?t:Promise.resolve(t):(ra[e]=ia.fetchJSON(e).then((t=>(ra[e]=t,t))),ra[e])}function da(e,t){const r=fa(e);if(r.length<1)return t;const n=jn.getIn(t,r);if(void 0===n)throw new ta(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function fa(e){if("string"!=typeof e)throw new TypeError("Expected a string, got a "+typeof e);return"/"===e[0]&&(e=e.substr(1)),""===e?[]:e.split("/").map(ma)}function ma(e){return"string"!=typeof e?e:new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function ga(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function ya(e,t){if(!(r=t)||"/"===r||"#"===r)return!0;var r;const n=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!n||"/"===n||"#"===n)&&"#"!==s}const va={key:"allOf",plugin:(e,t,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const o=r.slice(0,-1);if(Zi(o))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let i=!1,a=s.value;if(o.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.push(n.replace(o,{})),e.forEach(((e,t)=>{if(!n.isObject(e)){if(i)return null;i=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,c.push(e)}c.push(n.mergeDeep(o,e));const s=function(e,t,{specmap:r,getBaseUrlForNodePath:n=e=>r.getContext([...t,...e]).baseDoc,targetKeys:s=["$ref","$$ref"]}={}){const o=[];return Ji(e).forEach((function(){if(yi()(s).call(s,this.key)&&"string"==typeof this.node){const e=this.path,s=t.concat(this.path),i=Qi(this.node,n(e));o.push(r.replace(s,i))}})),o}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>n.getContext([...r,t,...e]).baseDoc,specmap:n});c.push(...s)})),a.example&&c.push(n.remove([].concat(o,"example"))),c.push(n.mergeDeep(o,a)),a.$$ref||c.push(n.remove([].concat(o,"$$ref"))),c}},ba={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),s=r.slice(0,-1),o={...jn.getIn(n.spec,s)};for(let s=0;s<e.length;s+=1){const i=e[s];try{t[s].default=n.parameterMacro(o,i)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return jn.replace(r,t)}return jn.replace(r,e)}},Ea={key:"properties",plugin:(e,t,r,n)=>{const s={...e};for(const t in e)try{s[t].default=n.modelPropertyMacro(s[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return jn.replace(r,s)}};class wa{constructor(e){this.root=xa(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Sa(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?Sa(s[n],t,r):s[n]=xa(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,n=this.root;for(let s=0;s<e.length&&(r=e[s],t=n.children,t[r]);s+=1)n=t[r];return n&&n.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce(((e,r)=>{if(!e)return e;const{children:n}=e;return!n[r]&&t&&(n[r]=xa(null,e)),n[r]}),this.root)}}function xa(e,t){return Sa({children:{}},e,t)}function Sa(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach((t=>{const r=e.children[t];e.children[t]=Sa(r,r.value,e)})),e}const _a=()=>{};class Aa{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,t){return e.filter(t)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new wa,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),jn,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(jn.isFunction),this.patches.push(jn.add([],this.spec)),this.patches.push(jn.context([],this.context)),this.updatePatches(this.patches)}debug(e,...t){this.debugLevel===e&&console.log(...t)}verbose(e,...t){"verbose"===this.debugLevel&&console.log(`[${e}] `,...t)}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let n,s=null;return e[this.pluginProp]?(s=e,n=e[this.pluginProp]):jn.isFunction(e)?n=e:jn.isObject(e)&&(n=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(n,s){const o={};for(const[e,t]of n.filter(jn.isAdditiveMutation).entries()){if(!(e<3e3))return;yield*i(t.value,t.path,t)}function*i(n,a,c){if(jn.isObject(n)){const l=a.length-1,u=a[l],p=a.indexOf("properties"),h="properties"===u&&l===p,d=s.allowMetaPatches&&o[n.$$ref];for(const l of Object.keys(n)){const u=n[l],p=a.concat(l),f=jn.isObject(u),m=n.$$ref;if(d||f&&(s.allowMetaPatches&&m&&t(r,p)&&(o[m]=!0),yield*i(u,p,c)),!h&&l===e.key){const n=t(r,a);r&&!n||(yield e.plugin(u,l,p,s,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(n,e.key,a,s))}}}(e)),Object.assign(n.bind(s),{pluginName:e.name||t,isGenerator:jn.isGenerator(n)})}nextPlugin(){return this.wrappedPlugins.find((e=>this.getMutationsForPlugin(e).length>0))}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map((e=>e.value)))}getPluginHistory(e){const t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}getPluginMutationIndex(e){const t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}updatePluginHistory(e,t){const r=this.constructor.getPluginName(e);this.pluginHistory[r]=this.pluginHistory[r]||[],this.pluginHistory[r].push(t)}updatePatches(e){jn.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!jn.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),jn.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(jn.isContextPatch(e))return void this.setContext(e.path,e.value);jn.isMutation(e)&&this.updateMutations(e)}catch(e){console.error(e),this.errors.push(e)}}))}updateMutations(e){"object"==typeof e.value&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const t=jn.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}removePromisedPatch(e){const t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}promisedPatchThen(e){return e.value=e.value.then((t=>{const r={...e,value:t};this.removePromisedPatch(e),this.updatePatches(r)})).catch((t=>{this.removePromisedPatch(e),this.updatePatches(t)})),e.value}getMutations(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return jn.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then((()=>this.dispatch())).catch((()=>this.dispatch()));const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(t,(e.pluginCount.get(t)||0)+1),e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map((e=>e.value));return Promise.all(e.map((e=>e.then(_a,_a)))).then((()=>this.dispatch()))}return function(){e.currentPlugin=t;const n=e.getCurrentMutations(),s=e.mutations.length-1;try{if(t.isGenerator)for(const s of t(n,e.getLib()))r(s);else r(t(n,e.getLib()))}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:s})}return e.dispatch()}();function r(r){r&&(r=jn.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const Oa={refs:aa,allOf:va,parameters:ba,properties:Ea};function Ca(e,t={}){const{requestInterceptor:r,responseInterceptor:n}=t,s=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:Vi},credentials:s}).then((e=>e.body))}function ja(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function ka(e,t){return Array.isArray(e)&&e.some((e=>ja(e,t)))}class Ta extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}function Na(e,t="reserved"){return[...e].map((e=>{if((e=>/^[a-z0-9\-._~]+$/i.test(e))(e))return e;if((e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1)(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join("")}function Ia(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:n,escape:s}){if("simple"===r)return t.map((e=>Pa(e,s))).join(",");if("label"===r)return`.${t.map((e=>Pa(e,s))).join(".")}`;if("matrix"===r)return t.map((e=>Pa(e,s))).reduce(((t,r)=>!t||n?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=n?`&${e}=`:",";return t.map((e=>Pa(e,s))).join(r)}if("spaceDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>Pa(e,s))).join(` ${r}`)}if("pipeDelimited"===r){const r=n?`${e}=`:"";return t.map((e=>Pa(e,s))).join(`|${r}`)}}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:n,escape:s}){const o=Object.keys(t);return"simple"===r?o.reduce(((e,r)=>{const o=Pa(t[r],s);return`${e?`${e},`:""}${r}${n?"=":","}${o}`}),""):"label"===r?o.reduce(((e,r)=>{const o=Pa(t[r],s);return`${e?`${e}.`:"."}${r}${n?"=":"."}${o}`}),""):"matrix"===r&&n?o.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${Pa(t[r],s)}`),""):"matrix"===r?o.reduce(((r,n)=>{const o=Pa(t[n],s);return`${r?`${r},`:`;${e}=`}${n},${o}`}),""):"form"===r?o.reduce(((e,r)=>{const o=Pa(t[r],s);return`${e?`${e}${n?"&":","}`:""}${r}${n?"=":","}${o}`}),""):void 0}(e):function({key:e,value:t,style:r,escape:n}){return"simple"===r?Pa(t,n):"label"===r?`.${Pa(t,n)}`:"matrix"===r?`;${e}=${Pa(t,n)}`:"form"===r||"deepObject"===r?Pa(t,n):void 0}(e)}function Pa(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&"string"==typeof e&&e.length>0?Na(e,t):e??""}const Ma={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Ra={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Da(e,t,r=!1){const{collectionFormat:n,allowEmptyValue:s,serializationOption:o,encoding:i}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,c=r?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(void 0===a&&s)return[[l,""]];if(ja(a)||ka(a))return[[l,a]];if(o)return $a(e,a,r,o);if(i){if([typeof i.style,typeof i.explode,typeof i.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:n,allowReserved:s}=i;return $a(e,a,r,{style:t,explode:n,allowReserved:s})}if("string"==typeof i.contentType){if(i.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new Ta(e,"blob",{type:i.contentType})]]}const e=c(String(a));return[[l,new Ta(e,"blob",{type:i.contentType})]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)&&a.every((e=>"object"!=typeof e))?[[l,a.map(c).join(",")]]:[[l,c(JSON.stringify(a))]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)?"multi"===n?[[l,a.map(c)]]:[[l,a.map(c).join(Ra[n||"csv"])]]:[[l,""]]}function $a(e,t,r,n){const s=n.style||"form",o=void 0===n.explode?"form"===s:n.explode,i=!r&&(n&&n.allowReserved?"unsafe":"reserved"),a=e=>Pa(e,i),c=r?e=>e:e=>a(e);return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?o?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(Ma[s])]]:"deepObject"===s?Object.keys(t).map((r=>[c(`${e}[${r}]`),a(t[r])])):o?Object.keys(t).map((e=>[c(e),a(t[e])])):[[c(e),Object.keys(t).map((e=>[`${c(e)},${a(t[e])}`])).join(",")]]}function Fa(e){return((e,{encode:t=!0}={})=>{const r=(e,t,n)=>(Array.isArray(n)?n.reduce(((n,s)=>r(e,t,s)),e):n instanceof Date?e.append(t,n.toISOString()):"object"==typeof n?Object.entries(n).reduce(((n,[s,o])=>r(e,`${t}[${s}]`,o)),e):e.append(t,n),e),n=Object.entries(e).reduce(((e,[t,n])=>r(e,t,n)),new URLSearchParams),s=String(n);return t?s:decodeURIComponent(s)})(Object.keys(e).reduce(((t,r)=>{for(const[n,s]of Da(r,e[r]))t[n]=s instanceof Ta?s.valueOf():s;return t}),{}),{encode:!1})}function Ba(e={}){const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return ja(t)||ka(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(s=e.form,Object.entries(s).reduce(((e,[t,r])=>{for(const[n,s]of Da(t,r,!0))if(Array.isArray(s))for(const t of s)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(n,r)}else e.append(n,t);else if(ArrayBuffer.isView(s)){const t=new Blob([s]);e.append(n,t)}else e.append(n,s);return e}),new FormData));e.formdata=t,e.body=t}else e.body=Fa(n);delete e.form}var s;if(r){const[n,s]=t.split("?");let o="";if(s){const e=new URLSearchParams(s);Object.keys(r).forEach((t=>e.delete(t))),o=String(e)}const i=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(o,Fa(r));e.url=n+i,delete e.query}return e}function La(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,[t,r])=>(e[t]=function(e){return yi()(e).call(e,", ")?e.split(", "):e}(r),e)),{})}function qa(e,t,{loadSpec:r=!1}={}){const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:La(e.headers)},s=n.headers["content-type"],o=r||((e="")=>/(json|xml|yaml|text)\b/.test(e))(s);return(o?e.text:e.blob||e.buffer).call(e).then((e=>{if(n.text=e,n.data=e,o)try{const t=function(e,t){if(t){if(0===t.indexOf("application/json")||t.indexOf("+json")>0)return JSON.parse(e);if(0===t.indexOf("application/xml")||t.indexOf("+xml")>0)return e}return nr.load(e)}(e,s);n.body=t,n.obj=t}catch(e){n.parseError=e}return n}))}async function Ua(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=Ba(t)).headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await qa(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(e){if(!n)throw e;const t=new Error(n.statusText||`response status is ${n.status}`);throw t.status=n.status,t.statusCode=n.status,t.responseError=e,t}if(!n.ok){const e=new Error(n.statusText||`response status is ${n.status}`);throw e.status=n.status,e.statusCode=n.status,e.response=n,e}return n}const za=e=>{const{baseDoc:t,url:r}=e,n=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(n,globalThis.document.baseURI)):n},Ja=e=>{const{fetch:t,http:r}=e;return t||r||Ua};async function Va(e){const{spec:t,mode:r,allowMetaPatches:n=!0,pathDiscriminator:s,modelPropertyMacro:o,parameterMacro:i,requestInterceptor:a,responseInterceptor:c,skipNormalization:l=!1,useCircularStructures:u,strategies:p}=e,h=za(e),d=Ja(e),f=p.find((e=>e.match(t)));return async function(e){h&&(Oa.refs.docCache[h]=e),Oa.refs.fetchJSON=Ca(d,{requestInterceptor:a,responseInterceptor:c});const t=[Oa.refs];"function"==typeof i&&t.push(Oa.parameters),"function"==typeof o&&t.push(Oa.properties),"strict"!==r&&t.push(Oa.allOf);const p=await(m={spec:e,context:{baseDoc:h},plugins:t,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:i,modelPropertyMacro:o,useCircularStructures:u},new Aa(m).dispatch());var m;return l||(p.spec=f.normalize(p.spec)),p}(t)}function Wa(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=Es(s)?ws(s,r):r[s]}return r}const Ka=es((function(e,t,r){return e(Wa(t,r))})),Ha=Qn((function(e,t){return e&&t}));var Ga=Qn((function(e,t){return Ts(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Mo(Ha)(e,t)}));const Ya=Ga,Xa=Ks(null),Za=Ro(Xa);function Qa(e){return Qa="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},Qa(e)}const ec=function(e){return"object"===Qa(e)},tc=Cs(1,Ya(Za,ec));var rc=vs(Js,Vo("Object")),nc=vs(po,Ks(po(Object))),sc=Ka(Ya(Ho,nc),["constructor"]);const oc=Cs(1,(function(e){if(!tc(e)||!rc(e))return!1;var t=Object.getPrototypeOf(e);return!!Xa(t)||sc(t)})),ic=e=>e.replace(/\W/gi,"_");function ac(e,t,r="",{v2OperationIdCompatibilityMode:n}={}){return e&&"object"==typeof e?(e.operationId||"").replace(/\s/g,"").length?ic(e.operationId):function(e,t,{v2OperationIdCompatibilityMode:r}={}){if(r){let r=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return r=r||`${e.substring(1)}_${t}`,r.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${ic(e)}`}(t,r,{v2OperationIdCompatibilityMode:n}):null}function cc(e){const{spec:t}=e,{paths:r}=t,n={};if(!r||t.$$normalized)return e;for(const e in r){var s;const i=r[e];if(null==i||!yi()(s=["object","function"]).call(s,typeof i))continue;const a=i.parameters;for(const r in i){var o;const s=i[r];if(null==s||!yi()(o=["object","function"]).call(o,typeof s))continue;const c=ac(s,e,r);if(c){n[c]?n[c].push(s):n[c]=[s];const e=n[c];if(e.length>1)e.forEach(((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${c}${t+1}`}));else if(void 0!==s.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||s.operationId,t.operationId=c}}if("parameters"!==r){const e=[],r={};for(const n in t)"produces"!==n&&"consumes"!==n&&"security"!==n||(r[n]=t[n],e.push(r));if(a&&(r.parameters=a,e.push(r)),e.length)for(const t of e)for(const e in t)if(Array.isArray(s[e])){if("parameters"===e)for(const r of t[e])s[e].some((e=>!(!oc(e)&&!oc(r))&&(e===r||["name","$ref","$$ref"].some((t=>"string"==typeof e[t]&&"string"==typeof r[t]&&e[t]===r[t])))))||s[e].push(r)}else s[e]=t[e]}}}return t.$$normalized=!0,e}const lc={name:"generic",match:()=>!0,normalize(e){const{spec:t}=cc({spec:e});return t},resolve:async e=>Va(e)},uc=lc,pc=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},hc=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},dc=e=>pc(e)||hc(e)||(e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}})(e),fc={name:"openapi-2",match:e=>(e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}})(e),normalize(e){const{spec:t}=cc({spec:e});return t},resolve:async e=>async function(e){return Va(e)}(e)},mc=fc,gc={name:"openapi-3-0",match:e=>pc(e),normalize(e){const{spec:t}=cc({spec:e});return t},resolve:async e=>async function(e){return Va(e)}(e)},yc=gc;var vc=r(34035);function bc(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Ec=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=no,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=bc(this.xf["@@transducer/step"](e,!1))),e},e}();function wc(e){return function(t){return new Ec(e,t)}}var xc=Qn(to(["all"],wc,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));const Sc=xc;class _c extends vc.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Ac=_c;class Oc extends vc.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Cc=Oc;class jc extends vc.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(Fo(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const kc=jc,Tc=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Nc=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Ic=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&"function"==typeof t.primitive&&t.primitive()===e,Pc=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof vc.wE)&&t.classes.includes(e),Mc=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Rc=e=>e({hasMethod:Tc,hasBasicElementProps:Nc,primitiveEq:Ic,isElementType:Mc,hasClass:Pc}),Dc=Rc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vc.Hg||e(r)&&t(void 0,r))),$c=Rc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vc.Om||e(r)&&t("string",r))),Fc=Rc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vc.kT||e(r)&&t("number",r))),Bc=Rc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vc.Os||e(r)&&t("null",r))),Lc=Rc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof vc.bd||e(r)&&t("boolean",r))),qc=Rc((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof vc.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Uc=Rc((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof vc.wE&&!(n instanceof vc.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),zc=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vc.Pr||e(n)&&t("member",n)&&r(void 0,n))),Jc=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vc.Ft||e(n)&&t("link",n)&&r(void 0,n))),Vc=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vc.sI||e(n)&&t("ref",n)&&r(void 0,n))),Wc=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ac||e(n)&&t("annotation",n)&&r("array",n))),Kc=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cc||e(n)&&t("comment",n)&&r("string",n))),Hc=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof kc||e(n)&&t("parseResult",n)&&r("array",n))),Gc=e=>Mc("object",e)||Mc("array",e)||Mc("boolean",e)||Mc("number",e)||Mc("string",e)||Mc("null",e)||Mc("member",e),Yc=e=>!!Dc(e)&&Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex),Xc=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Uc(r)&&Sc(xo(r.toValue()),e)},Zc=(e,t)=>0===e.length||Sc(xo(t.classes.toValue()),e),Qc=function(){return!0},el=function(){return!1},tl=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},rl={},nl=e=>null==e?void 0:e.type,sl=e=>"string"==typeof nl(e),ol=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),il=(e,{visitFnGetter:t=tl,nodeTypeGetter:r=nl,breakSymbol:n=rl,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,exposeEdits:i=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,p,h,d,f){let m=l,g=!1;const y={...f,replaceWith(e,t){f.replaceWith(e,t),m=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(m),!1);if("function"==typeof a){const t=a.call(e[l],m,u,p,h,d,y);if("function"==typeof(null==t?void 0:t.then))throw new Hn("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===o)c[l]=m;else if(t===n)c[l]=n;else{if(t===s)return t;if(void 0!==t){if(!i)return t;m=t,g=!0}}}}return g?m:void 0},leave(s,i,l,u,p,h){let d=s;const f={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let s=0;s<e.length;s+=1)if(c[s]===a){const a=t(e[s],r(d),!0);if("function"==typeof a){const t=a.call(e[s],d,i,l,u,p,f);if("function"==typeof(null==t?void 0:t.then))throw new Hn("Async visitor not supported in sync mode",{visitor:e[s],visitFn:a});if(t===n)c[s]=n;else if(void 0!==t&&t!==o)return t}}else c[s]===d&&(c[s]=a)}}};il[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=tl,nodeTypeGetter:r=nl,breakSymbol:n=rl,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,exposeEdits:i=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,p,h,d,f){let m=l,g=!1;const y={...f,replaceWith(e,t){f.replaceWith(e,t),m=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(m),!1);if("function"==typeof a){const t=await a.call(e[l],m,u,p,h,d,y);if(t===o)c[l]=m;else if(t===n)c[l]=n;else{if(t===s)return t;if(void 0!==t){if(!i)return t;m=t,g=!0}}}}return g?m:void 0},async leave(s,i,l,u,p,h){let d=s;const f={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let s=0;s<e.length;s+=1)if(c[s]===a){const a=t(e[s],r(d),!0);if("function"==typeof a){const t=await a.call(e[s],d,i,l,u,p,f);if(t===n)c[s]=n;else if(void 0!==t&&t!==o)return t}}else c[s]===d&&(c[s]=a)}}};const al=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=rl,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,visitFnGetter:a=tl,nodeTypeGetter:c=nl,nodePredicate:l=sl,nodeCloneFn:u=ol,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let f,m,g=Array.isArray(e),y=[e],v=-1,b=[],E=e;const w=[],x=[];do{v+=1;const e=v===y.length;let r;const A=e&&0!==b.length;if(e){if(r=0===x.length?void 0:w.pop(),E=m,m=x.pop(),A)if(g){E=E.slice();let e=0;for(const[t,r]of b){const n=t-e;r===o?(E.splice(n,1),e+=1):E[n]=r}}else{E=u(E);for(const[e,t]of b)E[e]=t}v=f.index,y=f.keys,b=f.edits,g=f.inArray,f=f.prev}else if(m!==o&&void 0!==m){if(r=g?v:y[v],E=m[r],E===o||void 0===E)continue;w.push(r)}let O;if(!Array.isArray(E)){var S;if(!l(E))throw new Hn(`Invalid AST Node: ${String(E)}`,{node:E});if(p&&x.includes(E)){"function"==typeof h&&h(E,r,m,w,x),w.pop();continue}const o=a(t,c(E),e);if(o){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,E,r,m,w,x):m&&(m[r]=t),e||(E=t)}};O=o.call(t,E,r,m,w,x,s)}if("function"==typeof(null===(S=O)||void 0===S?void 0:S.then))throw new Hn("Async visitor not supported in sync mode",{visitor:t,visitFn:o});if(O===s)break;if(O===i){if(!e){w.pop();continue}}else if(void 0!==O&&(b.push([r,O]),!e)){if(!l(O)){w.pop();continue}E=O}}var _;void 0===O&&A&&b.push([r,E]),e||(f={inArray:g,index:v,keys:y,edits:b,prev:f},g=Array.isArray(E),y=g?E:null!==(_=d[c(E)])&&void 0!==_?_:[],v=-1,b=[],m!==o&&void 0!==m&&x.push(m),m=E)}while(void 0!==f);return 0!==b.length?b[b.length-1][1]:e};al[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=rl,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,visitFnGetter:a=tl,nodeTypeGetter:c=nl,nodePredicate:l=sl,nodeCloneFn:u=ol,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let f,m,g=Array.isArray(e),y=[e],v=-1,b=[],E=e;const w=[],x=[];do{v+=1;const e=v===y.length;let r;const _=e&&0!==b.length;if(e){if(r=0===x.length?void 0:w.pop(),E=m,m=x.pop(),_)if(g){E=E.slice();let e=0;for(const[t,r]of b){const n=t-e;r===o?(E.splice(n,1),e+=1):E[n]=r}}else{E=u(E);for(const[e,t]of b)E[e]=t}v=f.index,y=f.keys,b=f.edits,g=f.inArray,f=f.prev}else if(m!==o&&void 0!==m){if(r=g?v:y[v],E=m[r],E===o||void 0===E)continue;w.push(r)}let A;if(!Array.isArray(E)){if(!l(E))throw new Hn(`Invalid AST Node: ${String(E)}`,{node:E});if(p&&x.includes(E)){"function"==typeof h&&h(E,r,m,w,x),w.pop();continue}const o=a(t,c(E),e);if(o){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,E,r,m,w,x):m&&(m[r]=t),e||(E=t)}};A=await o.call(t,E,r,m,w,x,s)}if(A===s)break;if(A===i){if(!e){w.pop();continue}}else if(void 0!==A&&(b.push([r,A]),!e)){if(!l(A)){w.pop();continue}E=A}}var S;void 0===A&&_&&b.push([r,E]),e||(f={inArray:g,index:v,keys:y,edits:b,prev:f},g=Array.isArray(E),y=g?E:null!==(S=d[c(E)])&&void 0!==S?S:[],v=-1,b=[],m!==o&&void 0!==m&&x.push(m),m=E)}while(void 0!==f);return 0!==b.length?b[b.length-1][1]:e};const cl=class extends Hn{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}},ll=class extends cl{},ul=class extends cl{};var pl=Qn((function(e,t){return eo((function(r,n){return r[n]=e(t[n],n,t),r}),{},zs(t))}));const hl=pl,dl=Zn((function(e){return null==e}));var fl=Qn((function(e,t){if(0===e.length||dl(t))return!1;for(var r=t,n=0;n<e.length;){if(dl(r)||!Ps(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const ml=fl;const gl=Qn((function(e,t){return ml([e],t)})),yl=es((function(e,t,r){return e(xs(t,r))})),vl=Qn(Wa);var bl=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=no,e.prototype["@@transducer/result"]=so,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function El(e){return function(t){return new bl(e,t)}}var wl=Qn(to(["dropWhile"],El,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return gs(r,1/0,t)})));const xl=wl,Sl=ks((function(e,t){return vs(mo(""),xl(xo(e)),Eo(""))(t)})),_l=(e,t)=>{const r=bs(e,t);return hl((e=>{if(oc(e)&&gl("$ref",e)&&yl(Qo,"$ref",e)){const t=vl(["$ref"],e),n=Sl("#/",t);return vl(n.split("/"),r)}return oc(e)?_l(e,r):e}),e)},Al=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),Ol=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof vc.KeyValuePair){const{key:t,value:s}=e,o=Dc(t)?Ol(t,n):t,i=Dc(s)?Ol(s,n):s,a=new vc.KeyValuePair(o,i);return r.set(e,a),a}if(e instanceof vc.ot){const t=e=>Ol(e,n),s=[...e].map(t),o=new vc.ot(s);return r.set(e,o),o}if(e instanceof vc.G6){const t=e=>Ol(e,n),s=[...e].map(t),o=new vc.G6(s);return r.set(e,o),o}if(Dc(e)){const t=kl(e);if(r.set(e,t),e.content)if(Dc(e.content))t.content=Ol(e.content,n);else if(e.content instanceof vc.KeyValuePair)t.content=Ol(e.content,n);else if(Array.isArray(e.content)){const r=e=>Ol(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new ll("Value provided to cloneDeep function couldn't be cloned",{value:e})};Ol.safe=e=>{try{return Ol(e)}catch{return e}};const Cl=e=>{const{key:t,value:r}=e;return new vc.KeyValuePair(t,r)},jl=e=>{const t=new e.constructor;if(t.element=e.element,Yc(e)&&Al(t,e),e.meta.length>0&&(t._meta=Ol(e.meta)),e.attributes.length>0&&(t._attributes=Ol(e.attributes)),Dc(e.content)){const r=e.content;t.content=jl(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof vc.KeyValuePair?t.content=Cl(e.content):t.content=e.content;return t},kl=e=>{if(e instanceof vc.KeyValuePair)return Cl(e);if(e instanceof vc.ot)return(e=>{const t=[...e];return new vc.ot(t)})(e);if(e instanceof vc.G6)return(e=>{const t=[...e];return new vc.G6(t)})(e);if(Dc(e))return jl(e);throw new ul("Value provided to cloneShallow function couldn't be cloned",{value:e})};kl.safe=e=>{try{return kl(e)}catch{return e}};const Tl=e=>qc(e)?"ObjectElement":Uc(e)?"ArrayElement":zc(e)?"MemberElement":$c(e)?"StringElement":Lc(e)?"BooleanElement":Fc(e)?"NumberElement":Bc(e)?"NullElement":Jc(e)?"LinkElement":Vc(e)?"RefElement":void 0,Nl=e=>Dc(e)?kl(e):ol(e),Il=vs(Tl,Qo),Pl={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class Ml{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=el,returnOnTrue:t,returnOnFalse:r}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const Rl=(e,t,{keyMap:r=Pl,...n}={})=>al(e,t,{keyMap:r,nodeTypeGetter:Tl,nodePredicate:Il,nodeCloneFn:Nl,...n});Rl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Pl,...n}={})=>al[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Tl,nodePredicate:Il,nodeCloneFn:Nl,...n});const Dl=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Tl(e),$l={EphemeralObject:["content"],EphemeralArray:["content"],...Pl},Fl=(e,t,{keyMap:r=$l,...n}={})=>Rl(e,t,{keyMap:r,nodeTypeGetter:Dl,nodePredicate:Qc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Fl[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=$l,...r}={})=>Rl[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Dl,nodePredicate:Qc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Bl=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}},Ll=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class ql{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Ll(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Bl(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return $c(e.href)?e.href.toValue():""}}const Ul=e=>Dc(e)?$c(e)||Fc(e)||Lc(e)||Bc(e)?e.toValue():Fl(e,new ql):e;var zl=es((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})Ps(n,t)&&(s[n]=Ps(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)Ps(n,r)&&!Ps(n,s)&&(s[n]=r[n]);return s}));const Jl=zl;var Vl=es((function e(t,r,n){return Jl((function(r,n,s){return ro(n)&&ro(s)?e(t,n,s):t(r,n,s)}),r,n)}));const Wl=Vl,Kl=Qn((function(e,t){return Wl((function(e,t,r){return r}),e,t)})),Hl=gs(0,-1);var Gl=Qn((function(e,t){return e.apply(this,t)}));const Yl=Gl,Xl=Ro(Ho);var Zl=Zn((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():ts(e)?[]:rs(e)?"":ro(e)?{}:$s(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Ql=Zl,eu=Zn((function(e){return null!=e&&Ks(e,Ql(e))})),tu=Cs(1,Ho(Array.isArray)?Array.isArray:vs(Js,Vo("Array"))),ru=Ya(tu,eu);const nu=Cs(3,(function(e,t,r){var n=vl(e,r),s=vl(Hl(e),r);if(!Xl(n)&&!ru(e)){var o=cs(n,s);return Yl(o,t)}}));class su extends vc.g${constructor(){super(),this.register("annotation",Ac),this.register("comment",Cc),this.register("parseResult",kc)}}const ou=new su,iu=e=>{const t=new su;return oc(e)&&t.use(e),t},au=ou,cu=()=>({predicates:{...o},namespace:au}),lu={toolboxCreator:cu,visitorOptions:{nodeTypeGetter:Tl,exposeEdits:!0}},uu=(e,t,r={})=>{if(0===t.length)return e;const n=Kl(lu,r),{toolboxCreator:s,visitorOptions:o}=n,i=s(),a=t.map((e=>e(i))),c=il(a.map(Ss({},"visitor")),{...o});a.forEach(nu(["pre"],[]));const l=Rl(e,c,o);return a.forEach(nu(["post"],[])),l};uu[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=Kl(lu,r),{toolboxCreator:s,visitorOptions:o}=n,i=s(),a=t.map((e=>e(i))),c=il[Symbol.for("nodejs.util.promisify.custom")],l=Rl[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(Ss({},"visitor")),{...o});await Promise.allSettled(a.map(nu(["pre"],[])));const p=await l(e,u,o);return await Promise.allSettled(a.map(nu(["post"],[]))),p};const pu=e=>(t,r={})=>((e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Dc(e)&&(e.meta.length>0&&(n.meta=Ol(e.meta)),e.attributes.length>0&&(n.attributes=Ol(e.attributes))),uu(n,r,{toolboxCreator:cu,visitorOptions:{nodeTypeGetter:Tl}})})(t,{...r,Type:e});vc.Sh.refract=pu(vc.Sh),vc.wE.refract=pu(vc.wE),vc.Om.refract=pu(vc.Om),vc.bd.refract=pu(vc.bd),vc.Os.refract=pu(vc.Os),vc.kT.refract=pu(vc.kT),vc.Ft.refract=pu(vc.Ft),vc.sI.refract=pu(vc.sI),Ac.refract=pu(Ac),Cc.refract=pu(Cc),kc.refract=pu(kc);const hu=(e,t=new WeakMap)=>(zc(e)?(t.set(e.key,e),hu(e.key,t),t.set(e.value,e),hu(e.value,t)):e.children.forEach((r=>{t.set(r,e),hu(r,t)})),t),du=class{element;edges;constructor({element:e}){this.element=e}transclude(e,t){var r;if(e===this.element)return t;if(e===t)return this.element;this.edges=null!==(r=this.edges)&&void 0!==r?r:hu(this.element);const n=this.edges.get(e);return Fo(n)?void 0:(qc(n)?((e,t,r)=>{const n=r.get(e);qc(n)&&(n.content=n.map(((s,o,i)=>i===e?(r.delete(e),r.set(t,n),t):i)))})(e,t,this.edges):Uc(n)?((e,t,r)=>{const n=r.get(e);Uc(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(e,t,this.edges):zc(n)&&((e,t,r)=>{const n=r.get(e);zc(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))})(e,t,this.edges),this.element)}},fu=e=>{const t=e.indexOf("#");return(e=>{try{const t=e.startsWith("#")?e.slice(1):e;return decodeURIComponent(t)}catch{return e}})(-1===t?"#":e.substring(t))},mu=function(){const e=Eu,t=bu,r=this,n="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let s,o,i,a,c,l,u,p=0,h=0,d=0,f=0,m=0,g=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(y,b,E,w)=>{const x=`${n}parse(): `;p=0,h=0,d=0,f=0,m=0,s=void 0,o=void 0,i=void 0,a=void 0,g.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(E),s=y.rules,o=y.udts;const S=b.toLowerCase();let _;for(const e in s)if(s.hasOwnProperty(e)&&S===s[e].lower){_=s[e].index;break}if(void 0===_)throw new Error(`${x}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,i;for(c=[],l=[],t=0;t<s.length;t+=1)c[t]=void 0;for(t=0;t<o.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<s.length;t+=1)a.push(s[t].lower);for(t=0;t<o.length;t+=1)a.push(o[t].lower);for(const n in r.callbacks)if(r.callbacks.hasOwnProperty(n)){if(t=a.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(i=r.callbacks[n]?r.callbacks[n]:void 0,"function"!=typeof i&&void 0!==i)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<s.length?c[t]=i:l[t-s.length]=i}})(),r.trace&&r.trace.init(s,o,a),r.stats&&r.stats.init(s,o),r.ast&&r.ast.init(s,o,a),u=w,i=[{type:e.RNM,index:_}],v(0,0),i=void 0;let A=!1;switch(g.state){case e.ACTIVE:throw new Error(`${x}final state should never be 'ACTIVE'`);case e.NOMATCH:A=!1;break;case e.EMPTY:case e.MATCH:A=g.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:A,state:g.state,stateName:e.idName(g.state),length:a.length,matched:g.phraseLength,maxMatched:m,maxTreeDepth:d,nodeHits:f}};const y=(t,r,s,o)=>{if(r.phraseLength>s){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!o)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},v=(t,b)=>{const E=`${n}opExecute(): `,w=i[t];switch(f+=1,h>d&&(d=h),h+=1,g.refresh(),r.trace&&r.trace.down(w,b),w.type){case e.ALT:((t,r)=>{const n=i[t];for(let t=0;t<n.children.length&&(v(n.children[t],r),g.state===e.NOMATCH);t+=1);})(t,b);break;case e.CAT:((t,n)=>{let s,o,a,c;const l=i[t];r.ast&&(o=r.ast.getLength()),s=!0,a=n,c=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],a),g.state===e.NOMATCH){s=!1;break}a+=g.phraseLength,c+=g.phraseLength}s?(g.state=0===c?e.EMPTY:e.MATCH,g.phraseLength=c):(g.state=e.NOMATCH,g.phraseLength=0,r.ast&&r.ast.setLength(o))})(t,b);break;case e.REP:((t,n)=>{let s,o,c,l;const u=i[t];if(0===u.max)return g.state=e.EMPTY,void(g.phraseLength=0);for(o=n,c=0,l=0,r.ast&&(s=r.ast.getLength());!(o>=a.length)&&(v(t+1,o),g.state!==e.NOMATCH)&&g.state!==e.EMPTY&&(l+=1,c+=g.phraseLength,o+=g.phraseLength,l!==u.max););g.state===e.EMPTY||l>=u.min?(g.state=0===c?e.EMPTY:e.MATCH,g.phraseLength=c):(g.state=e.NOMATCH,g.phraseLength=0,r.ast&&r.ast.setLength(s))})(t,b);break;case e.RNM:((t,n)=>{let o,l,h;const d=i[t],f=s[d.index],m=c[f.index];if(p||(l=r.ast&&r.ast.ruleDefined(d.index),l&&(o=r.ast.getLength(),r.ast.down(d.index,s[d.index].name))),m){const t=a.length-n;m(g,a,n,u),y(f,g,t,!0),g.state===e.ACTIVE&&(h=i,i=f.opcodes,v(0,n),i=h,m(g,a,n,u),y(f,g,t,!1))}else h=i,i=f.opcodes,v(0,n,g),i=h;p||l&&(g.state===e.NOMATCH?r.ast.setLength(o):r.ast.up(d.index,f.name,n,g.phraseLength))})(t,b);break;case e.TRG:((t,r)=>{const n=i[t];g.state=e.NOMATCH,r<a.length&&n.min<=a[r]&&a[r]<=n.max&&(g.state=e.MATCH,g.phraseLength=1)})(t,b);break;case e.TBS:((t,r)=>{const n=i[t],s=n.string.length;if(g.state=e.NOMATCH,r+s<=a.length){for(let e=0;e<s;e+=1)if(a[r+e]!==n.string[e])return;g.state=e.MATCH,g.phraseLength=s}})(t,b);break;case e.TLS:((t,r)=>{let n;const s=i[t];g.state=e.NOMATCH;const o=s.string.length;if(0!==o){if(r+o<=a.length){for(let e=0;e<o;e+=1)if(n=a[r+e],n>=65&&n<=90&&(n+=32),n!==s.string[e])return;g.state=e.MATCH,g.phraseLength=o}}else g.state=e.EMPTY})(t,b);break;case e.UDT:((t,c)=>{let h,d,f;const m=i[t],y=o[m.index];g.UdtIndex=y.index,p||(f=r.ast&&r.ast.udtDefined(m.index),f&&(d=s.length+m.index,h=r.ast.getLength(),r.ast.down(d,y.name)));const v=a.length-c;l[m.index](g,a,c,u),((t,r,s)=>{if(r.phraseLength>s){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(y,g,v),p||f&&(g.state===e.NOMATCH?r.ast.setLength(h):r.ast.up(d,y.name,c,g.phraseLength))})(t,b);break;case e.AND:((t,r)=>{switch(p+=1,v(t+1,r),p-=1,g.phraseLength=0,g.state){case e.EMPTY:case e.MATCH:g.state=e.EMPTY;break;case e.NOMATCH:g.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${g.state}`)}})(t,b);break;case e.NOT:((t,r)=>{switch(p+=1,v(t+1,r),p-=1,g.phraseLength=0,g.state){case e.EMPTY:case e.MATCH:g.state=e.NOMATCH;break;case e.NOMATCH:g.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${g.state}`)}})(t,b);break;default:throw new Error(`${E}unrecognized operator`)}p||b+g.phraseLength>m&&(m=b+g.phraseLength),r.stats&&r.stats.collect(w,g),r.trace&&r.trace.up(w,g.state,b,g.phraseLength),h-=1}},gu=function(){const e=Eu,t=bu,r=this;let n,s,o,i=0;const a=[],c=[],l=[];function u(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,u)=>{let p;c.length=0,l.length=0,i=0,n=e,s=t,o=u;const h=[];for(p=0;p<n.length;p+=1)h.push(n[p].lower);for(p=0;p<s.length;p+=1)h.push(s[p].lower);for(i=n.length+s.length,p=0;p<i;p+=1)a[p]=void 0;for(const e in r.callbacks)if(r.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(p=h.indexOf(t),p<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);a[p]=r.callbacks[e]}},r.ruleDefined=e=>!!a[e],r.udtDefined=e=>!!a[n.length+e],r.down=(t,r)=>{const n=l.length;return c.push(n),l.push({name:r,thisIndex:n,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),n},r.up=(t,r,n,s)=>{const o=l.length,i=c.pop();return l.push({name:r,thisIndex:o,thatIndex:i,state:e.SEM_POST,callbackIndex:t,phraseIndex:n,phraseLength:s,stack:c.length}),l[i].thatIndex=o,l[i].phraseIndex=n,l[i].phraseLength=s,o},r.translate=t=>{let r,n;for(let s=0;s<l.length;s+=1)n=l[s],r=a[n.callbackIndex],r&&(n.state===e.SEM_PRE?r(e.SEM_PRE,o,n.phraseIndex,n.phraseLength,t):r&&r(e.SEM_POST,o,n.phraseIndex,n.phraseLength,t))},r.setLength=e=>{l.length=e,c.length=e>0?l[e-1].stack:0},r.getLength=()=>l.length,r.toXml=()=>{let r="",n=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${l.length/2}" characters="${o.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=u(n+2),r+=t.charsToString(o),r+="\n",l.forEach((s=>{s.state===e.SEM_PRE?(n+=1,r+=u(n),r+=`<node name="${s.name}" index="${s.phraseIndex}" length="${s.phraseLength}">\n`,r+=u(n+2),r+=t.charsToString(o,s.phraseIndex,s.phraseLength),r+="\n"):(r+=u(n),r+=`</node>\x3c!-- name="${s.name}" --\x3e\n`,n-=1)})),r+="</root>\n",r}},yu=function(){const e=Eu,t=bu,r="parser.js: Trace(): ";let n,s,o,i="",a=0;const c=this,l=e=>{let t="",r=0;if(e>=0)for(;e--;)r+=1,5===r?(t+="|",r=0):t+=".";return t};c.init=(e,t,r)=>{s=e,o=t,n=r};const u=n=>{let i;switch(n.type){case e.ALT:i="ALT";break;case e.CAT:i="CAT";break;case e.REP:i=n.max===1/0?`REP(${n.min},inf)`:`REP(${n.min},${n.max})`;break;case e.RNM:i=`RNM(${s[n.index].name})`;break;case e.TRG:i=`TRG(${n.min},${n.max})`;break;case e.TBS:i=n.string.length>6?`TBS(${t.charsToString(n.string,0,3)}...)`:`TBS(${t.charsToString(n.string,0,6)})`;break;case e.TLS:i=n.string.length>6?`TLS(${t.charsToString(n.string,0,3)}...)`:`TLS(${t.charsToString(n.string,0,6)})`;break;case e.UDT:i=`UDT(${o[n.index].name})`;break;case e.AND:i="AND";break;case e.NOT:i="NOT";break;default:throw new Error(`${r}Trace: opName: unrecognized opcode`)}return i};c.down=(e,r)=>{const s=l(a),o=Math.min(100,n.length-r);let c=t.charsToString(n,r,o);o<n.length-r&&(c+="..."),c=`${s}|-|[${u(e)}]${c}\n`,i+=c,a+=1},c.up=(s,o,c,p)=>{const h=`${r}trace.up: `;a-=1;const d=l(a);let f,m,g;switch(o){case e.EMPTY:g="|E|",m="''";break;case e.MATCH:g="|M|",f=Math.min(100,p),m=f<p?`'${t.charsToString(n,c,f)}...'`:`'${t.charsToString(n,c,f)}'`;break;case e.NOMATCH:g="|N|",m="";break;default:throw new Error(`${h} unrecognized state`)}m=`${d}${g}[${u(s)}]${m}\n`,i+=m},c.displayTrace=()=>i},vu=function(){const e=Eu;let t,r,n;const s=[],o=[],i=[];this.init=(e,n)=>{t=e,r=n,h()},this.collect=(t,r)=>{d(n,r.state,r.phraseLength),d(s[t.type],r.state,r.phraseLength),t.type===e.RNM&&d(o[t.index],r.state,r.phraseLength),t.type===e.UDT&&d(i[t.index],r.state,r.phraseLength)},this.displayStats=()=>{let t="";const r={match:0,empty:0,nomatch:0,total:0},n=(e,t,n,s,o)=>(r.match+=t,r.empty+=n,r.nomatch+=s,r.total+=o,`${e} | ${a(t)} | ${a(n)} | ${a(s)} | ${a(o)} |\n`);return t+=" OPERATOR STATS\n",t+=" | MATCH | EMPTY | NOMATCH | TOTAL |\n",t+=n(" ALT",s[e.ALT].match,s[e.ALT].empty,s[e.ALT].nomatch,s[e.ALT].total),t+=n(" CAT",s[e.CAT].match,s[e.CAT].empty,s[e.CAT].nomatch,s[e.CAT].total),t+=n(" REP",s[e.REP].match,s[e.REP].empty,s[e.REP].nomatch,s[e.REP].total),t+=n(" RNM",s[e.RNM].match,s[e.RNM].empty,s[e.RNM].nomatch,s[e.RNM].total),t+=n(" TRG",s[e.TRG].match,s[e.TRG].empty,s[e.TRG].nomatch,s[e.TRG].total),t+=n(" TBS",s[e.TBS].match,s[e.TBS].empty,s[e.TBS].nomatch,s[e.TBS].total),t+=n(" TLS",s[e.TLS].match,s[e.TLS].empty,s[e.TLS].nomatch,s[e.TLS].total),t+=n(" UDT",s[e.UDT].match,s[e.UDT].empty,s[e.UDT].nomatch,s[e.UDT].total),t+=n(" AND",s[e.AND].match,s[e.AND].empty,s[e.AND].nomatch,s[e.AND].total),t+=n(" NOT",s[e.NOT].match,s[e.NOT].empty,s[e.NOT].nomatch,s[e.NOT].total),t+=n("TOTAL",r.match,r.empty,r.nomatch,r.total),t},this.displayHits=e=>{let t="";const r=(e,t,r,s,o)=>(n.match+=e,n.empty+=t,n.nomatch+=r,n.total+=s,`| ${a(e)} | ${a(t)} | ${a(r)} | ${a(s)} | ${o}\n`);"string"==typeof e&&"a"===e.toLowerCase()[0]?(o.sort(c),i.sort(c),t+=" RULES/UDTS ALPHABETICALLY\n"):"string"==typeof e&&"i"===e.toLowerCase()[0]?(o.sort(u),i.sort(u),t+=" RULES/UDTS BY INDEX\n"):(o.sort(l),i.sort(l),t+=" RULES/UDTS BY HIT COUNT\n"),t+="| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";for(let e=0;e<o.length;e+=1){let n=o[e];n.total&&(t+=r(n.match,n.empty,n.nomatch,n.total,n.name))}for(let e=0;e<i.length;e+=1){let n=i[e];n.total&&(t+=r(n.match,n.empty,n.nomatch,n.total,n.name))}return t};const a=e=>e<10?` ${e}`:e<100?` ${e}`:e<1e3?` ${e}`:e<1e4?` ${e}`:e<1e5?` ${e}`:e<1e6?` ${e}`:`${e}`,c=(e,t)=>e.lower<t.lower?-1:e.lower>t.lower?1:0,l=(e,t)=>e.total<t.total?1:e.total>t.total?-1:c(e,t),u=(e,t)=>e.index<t.index?-1:e.index>t.index?1:0,p=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},h=()=>{s.length=0,n=new p,s[e.ALT]=new p,s[e.CAT]=new p,s[e.REP]=new p,s[e.RNM]=new p,s[e.TRG]=new p,s[e.TBS]=new p,s[e.TLS]=new p,s[e.UDT]=new p,s[e.AND]=new p,s[e.NOT]=new p,o.length=0;for(let e=0;e<t.length;e+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:t[e].name,lower:t[e].lower,index:t[e].index});if(r.length>0){i.length=0;for(let e=0;e<r.length;e+=1)i.push({empty:0,match:0,nomatch:0,total:0,name:r[e].name,lower:r[e].lower,index:r[e].index})}},d=(t,r)=>{switch(t.total+=1,r){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${r}`)}}},bu={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===r){n=e.slice(t);break}if(r<=0)return"";n=e.slice(t,t+r);break}return String.fromCodePoint(...n)}},Eu={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case Eu.ALT:return"ALT";case Eu.CAT:return"CAT";case Eu.REP:return"REP";case Eu.RNM:return"RNM";case Eu.TRG:return"TRG";case Eu.TBS:return"TBS";case Eu.TLS:return"TLS";case Eu.UDT:return"UDT";case Eu.AND:return"AND";case Eu.NOT:return"NOT";case Eu.ACTIVE:return"ACTIVE";case Eu.EMPTY:return"EMPTY";case Eu.MATCH:return"MATCH";case Eu.NOMATCH:return"NOMATCH";case Eu.SEM_PRE:return"SEM_PRE";case Eu.SEM_POST:return"SEM_POST";case Eu.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function wu(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class xu extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}}const Su=xu,_u=class extends Su{},Au=e=>(t,r,n,s,o)=>{if("object"!=typeof o||null===o||Array.isArray(o))throw new _u("parser's user data must be an object");if(t===Eu.SEM_PRE){const t={type:e,text:bu.charsToString(r,n,s),start:n,length:s,children:[]};o.stack.length>0?o.stack[o.stack.length-1].children.push(t):o.root=t,o.stack.push(t)}t===Eu.SEM_POST&&o.stack.pop()},Ou=class extends gu{constructor(){super(),this.callbacks["json-pointer"]=Au("json-pointer"),this.callbacks["reference-token"]=Au("reference-token"),this.callbacks.slash=Au("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}},Cu=class extends Ou{getTree(){const{root:e}=super.getTree();return e.children.filter((({type:e})=>"reference-token"===e)).map((({text:e})=>(e=>{if("string"!=typeof e)throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")})(e)))}},ju=class extends Array{toString(){return this.map((e=>`"${String(e)}"`)).join(", ")}},ku=class extends yu{inferExpectations(){const e=this.displayTrace().split("\n"),t=new Set;let r=-1;for(let n=0;n<e.length;n++){const s=e[n];if(s.includes("M|")){const e=s.match(/]'(.*)'$/);e&&e[1]&&(r=n)}if(n>r){const e=s.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new ju(...t)}},Tu=new wu;new wu,new mu,new wu,new mu;const Nu=new wu,Iu=new mu,Pu=new wu,Mu=new mu,Ru=class extends Su{},Du=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map((e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return(e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")})(String(e))})).join("/")}`}catch(t){throw new Ru("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}},$u=class{#e;#t;#r;constructor(e,t={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${t.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...t,realm:t.realm.name},this.#t=[],this.#r=t.realm}step({referenceToken:e,input:t,output:r,success:n=!0,reason:s}){const o=this.#t.length;this.#t.push(e);const i={referenceToken:e,referenceTokenPosition:o,input:t,inputType:this.#r.isObject(t)?"object":this.#r.isArray(t)?"array":"unrecognized",output:r,success:n};s&&(i.reason=s),this.#e.steps.push(i),n||(this.#e.failed=!0,this.#e.failedAt=o,this.#e.message=s)}},Fu=class{name="";isArray(e){throw new Su("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new Su("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new Su("Realm.sizeOf(node) must be implemented in a subclass")}has(e,t){throw new Su("Realm.has(node) must be implemented in a subclass")}evaluate(e,t){throw new Su("Realm.evaluate(node) must be implemented in a subclass")}},Bu=class extends Su{},Lu=class extends Bu{},qu=class extends Fu{name="json";isArray(e){return Array.isArray(e)}isObject(e){return"object"==typeof e&&null!==e&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,t){if(this.isArray(e)){const r=Number(t),n=r>>>0;if(r!==n)throw new Lu(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return n<this.sizeOf(e)&&Object.prototype.hasOwnProperty.call(e,r)}return!!this.isObject(e)&&Object.prototype.hasOwnProperty.call(e,t)}evaluate(e,t){return this.isArray(e)?e[Number(t)]:e[t]}},Uu=class extends Bu{},zu=class extends Bu{},Ju=(e,t,{strictArrays:r=!0,strictObjects:n=!0,realm:s=new qu,trace:o=!0}={})=>{const{result:i,tree:a,trace:c}=((e,{translator:t=new Cu,stats:r=!1,trace:n=!1}={})=>{if("string"!=typeof e)throw new TypeError("JSON Pointer must be a string");try{const s=new mu;t&&(s.ast=t),r&&(s.stats=new vu),n&&(s.trace=new ku);const o=s.parse(Tu,"json-pointer",e);return{result:o,tree:o.success&&t?s.ast.getTree():void 0,stats:s.stats,trace:s.trace}}catch(t){throw new _u("Unexpected error during JSON Pointer parsing",{cause:t,jsonPointer:e})}})(t,{trace:!!o}),l="object"==typeof o&&null!==o?new $u(o,{jsonPointer:t,referenceTokens:a,strictArrays:r,strictObjects:n,realm:s,value:e}):null;try{let o;if(!i.success){let r=`Invalid JSON Pointer: "${t}". Syntax error at position ${i.maxMatched}`;throw r+=c?`, expected ${c.inferExpectations()}`:"",new Bu(r,{jsonPointer:t,currentValue:e,realm:s.name})}return a.reduce(((e,i,c)=>{if(s.isArray(e)){if((e=>{if("string"!=typeof e)return!1;try{return Mu.parse(Pu,"array-dash",e).success}catch{return!1}})(i)){if(r)throw new Lu(`Invalid array index "-" at position ${c} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:a,referenceToken:i,referenceTokenPosition:c,currentValue:e,realm:s.name});return o=s.evaluate(e,String(s.sizeOf(e))),null==l||l.step({referenceToken:i,input:e,output:o}),o}if(!(e=>{if("string"!=typeof e)return!1;try{return Iu.parse(Nu,"array-index",e).success}catch{return!1}})(i))throw new Lu(`Invalid array index "${i}" at position ${c} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:a,referenceToken:i,referenceTokenPosition:c,currentValue:e,realm:s.name});const n=Number(i);if(!Number.isSafeInteger(n))throw new Lu(`Invalid array index "${i}" at position ${c} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:a,referenceToken:i,referenceTokenPosition:c,currentValue:e,realm:s.name});if(!s.has(e,i)&&r)throw new Lu(`Invalid array index "${i}" at position ${c} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:a,referenceToken:i,referenceTokenPosition:c,currentValue:e,realm:s.name});return o=s.evaluate(e,i),null==l||l.step({referenceToken:i,input:e,output:o}),o}if(s.isObject(e)){if(!s.has(e,i)&&n)throw new zu(`Invalid object key "${i}" at position ${c} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:a,referenceToken:i,referenceTokenPosition:c,currentValue:e,realm:s.name});return o=s.evaluate(e,i),null==l||l.step({referenceToken:i,input:e,output:o}),o}throw new Uu(`Invalid reference token "${i}" at position ${c} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:a,referenceToken:i,referenceTokenPosition:c,currentValue:e,realm:s.name})}),e)}catch(e){if(null==l||l.step({referenceToken:e.referenceToken,input:e.currentValue,success:!1,reason:e.message}),e instanceof Bu)throw e;throw new Bu("Unexpected error during JSON Pointer evaluation",{cause:e,jsonPointer:t,referenceTokens:a})}},Vu=class extends Fu{name="apidom";isArray(e){return Uc(e)}isObject(e){return qc(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,t){if(this.isArray(e)){const r=Number(t),n=r>>>0;if(r!==n)throw new Lu(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return n<this.sizeOf(e)}if(this.isObject(e)){const r=e.keys(),n=new Set(r);if(r.length!==n.size)throw new zu(`Object key "${t}" is not unique — JSON Pointer requires unique member names`,{referenceToken:t,currentValue:e,realm:this.name});return e.hasKey(t)}return!1}evaluate(e,t){return this.isArray(e)?e.get(Number(t)):e.get(t)}},Wu=(e,t,r={})=>Ju(e,t,{...r,realm:new Vu});class Ku extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Hu=Ku;class Gu extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Yu=Gu;class Xu extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Zu=Xu;class Qu extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const ep=Qu;class tp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const rp=tp;class np extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const sp=np;class op extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const ip=op;class ap extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new vc.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new vc.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(ap.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const cp=ap;class lp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const up=lp;class pp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const hp=pp;class dp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return $c(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):$c(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const fp=dp;class mp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const gp=mp;class yp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const vp=yp;class bp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const Ep=bp;class wp extends vc.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const xp=wp;class Sp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const _p=Sp;class Ap extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new vc.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Op=Ap;class Cp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new vc.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new vc.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Cp.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const jp=Cp;class kp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Tp=kp;class Np extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Ip=Np;class Pp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Mp=Pp;class Rp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new vc.bd(!1)}set required(e){this.set("required",e)}}const Dp=Rp;class $p extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const Fp=$p;class Bp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Lp=Bp,qp=class extends Kn{};class Up extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const zp=Up;class Jp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Vp=Jp;class Wp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Kp=Wp;class Hp extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Gp=Hp,Yp=e=>{const t=e.meta.length>0?Ol(e.meta):void 0,r=e.attributes.length>0?Ol(e.attributes):void 0;return new e.constructor(void 0,t,r)},Xp=(e,t)=>t.clone&&t.isMergeableElement(e)?Qp(Yp(e),e,t):e,Zp={clone:!0,isMergeableElement:e=>qc(e)||Uc(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>Xp(e,r))),objectElementMerge:(e,t,r)=>{const n=qc(e)?Yp(e):Yp(t);return qc(e)&&e.forEach(((e,t,s)=>{const o=kl(s);o.value=Xp(e,r),n.content.push(o)})),t.forEach(((t,s,o)=>{const i=Ul(s);let a;if(qc(e)&&e.hasKey(i)&&r.isMergeableElement(t)){const n=e.get(i);a=kl(o),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Qp;const r=t.customMerge(e,t);return"function"==typeof r?r:Qp})(s,r)(n,t,r)}else a=kl(o),a.value=Xp(t,r);n.remove(i),n.content.push(a)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Qp=(e,t,r)=>{var n,s,o;const i={...Zp,...r};i.isMergeableElement=null!==(n=i.isMergeableElement)&&void 0!==n?n:Zp.isMergeableElement,i.arrayElementMerge=null!==(s=i.arrayElementMerge)&&void 0!==s?s:Zp.arrayElementMerge,i.objectElementMerge=null!==(o=i.objectElementMerge)&&void 0!==o?o:Zp.objectElementMerge;const a=Uc(t);if(a!==Uc(e))return Xp(t,i);const c=a&&"function"==typeof i.arrayElementMerge?i.arrayElementMerge(e,t,i):i.objectElementMerge(e,t,i);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>Ol(e):e.customMetaMerge)(i)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Ol(e):e.customAttributesMerge)(i)(e.attributes,t.attributes),c};Qp.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new vc.Sh:e.reduce(((e,r)=>Qp(e,r,t)),Yp(e[0]))};const eh=Qp,th=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=eh(t.meta,e.meta)),Yc(e)&&Al(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=eh(t.attributes,e.attributes))}},rh=class extends th{enter(e){return this.element=Ol(e),rl}},nh=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},sh=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:sh(r,[...t,r])},oh=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>sh(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,o=Object.create(s),i=sh(s);for(let t of e){let e=sh(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===i.indexOf(n)&&(nh(o,n,["constructor",...r]),i.push(n))}}return o.constructor=t,o},ih=e=>e.filter(((t,r)=>e.indexOf(t)==r)),ah=new WeakMap,ch=e=>ah.get(e),lh=(e,t)=>{var r,n;const s=ih([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),o={};for(let i of s)o[i]=ih([...null!==(r=null==e?void 0:e[i])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[i])&&void 0!==n?n:[]]);return o},uh=(e,t)=>{var r,n,s,o;return{property:lh(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:lh(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(o=null==t?void 0:t.method)&&void 0!==o?o:{})}},ph=(e,t)=>{var r,n,s,o,i,a;return{class:ih([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:uh(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(o=null==t?void 0:t.static)&&void 0!==o?o:{}),instance:uh(null!==(i=null==e?void 0:e.instance)&&void 0!==i?i:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},hh=new Map;function dh(...e){var t,r,n;const s=e.map((e=>e.prototype));function o(...t){for(const r of e)nh(this,new r(...t))}o.prototype=oh(s,o),Object.setPrototypeOf(o,oh(e,null,["prototype"]));let i=o;{const s=((...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...sh(e.prototype).map((e=>e.constructor)),...null!==(t=ch(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>hh.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>ph(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(i);t&&(i=t)}fh(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},i),fh(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},i.prototype)}var a,c;return a=i,c=e,ah.set(a,c),i}const fh=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};var mh=Zn((function(e){return Cs(fs(Lo,0,qo("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const gh=mh,yh=Zn((function(e){return!eu(e)})),vh=Qn((function(e,t){return e||t}));var bh=Qn((function(e,t){return Ts(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Mo(vh)(e,t)})),Eh=Ro(Cs(1,Ya(Za,bh(ec,Ho))));const wh=gh([Qo,Eh,yh]),xh=Qn((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r})),Sh=class extends th{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return xh(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=vl(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ka(Ho,["visitors",...e],this.specObj)?vl(["visitors",...e],this.specObj):vl(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof rh&&(null==n?void 0:n.constructor)===rh?Ol(t):(Rl(t,n,r),n.element)}},_h=class extends Sh{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if($c(n)&&r.includes(Ul(n))&&!this.ignoredFields.includes(Ul(n))){const r=this.toRefractedElement([...t,"fixedFields",Ul(n)],e),o=new vc.Pr(Ol(n),r);this.copyMetaAndAttributes(s,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(Ul(n))||this.element.content.push(Ol(s))})),this.copyMetaAndAttributes(e,this.element),rl}},Ah=class{parent;constructor({parent:e}){this.parent=e}},Oh=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zp||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Ch=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vp||e(n)&&t("JSONReference",n)&&r("object",n))),jh=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kp||e(n)&&t("media",n)&&r("object",n))),kh=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gp||e(n)&&t("linkDescription",n)&&r("object",n)));class Th extends(dh(_h,Ah,rh)){constructor(e){super(e),this.element=new zp,this.specPath=Do(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,_h.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Fo(this.parent)&&!$c(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Oh(this.parent)&&!$c(e.get("$schema"))){const e=bs(Ul(this.parent.meta.get("inheritedDialectIdentifier")),Ul(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?Ol(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new vc.wE,n=Ul(e.get(t));wh(n)&&r.push(n),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Nh=Th,Ih=e=>qc(e)&&e.hasKey("$ref");class Ph extends(dh(Sh,Ah,rh)){ObjectElement(e){const t=Ih(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),rl}ArrayElement(e){return this.element=new vc.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Ih(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),rl}}const Mh=Ph,Rh=class extends Sh{specPath;ignoredFields;fieldPatternPredicate=el;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(Ul(t))&&this.fieldPatternPredicate(Ul(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),o=new vc.Pr(Ol(t),s);this.copyMetaAndAttributes(r,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(Ul(t))||this.element.content.push(Ol(r))})),this.copyMetaAndAttributes(e,this.element),rl}},Dh=class extends Rh{constructor(e){super(e),this.fieldPatternPredicate=wh}};class $h extends(dh(Dh,Ah,rh)){constructor(e){super(e),this.element=new vc.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Ih(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Fh=$h;class Bh extends(dh(Dh,Ah,rh)){constructor(e){super(e),this.element=new vc.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Ih(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Lh=Bh;class qh extends(dh(Dh,Ah,rh)){constructor(e){super(e),this.element=new vc.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Ih(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Uh=qh;class zh extends(dh(Sh,Ah,rh)){constructor(e){super(e),this.element=new vc.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Ih(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),rl}}const Jh=zh;class Vh extends(dh(Sh,Ah,rh)){constructor(e){super(e),this.element=new vc.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Ih(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),rl}}const Wh=Vh;class Kh extends(dh(Sh,Ah,rh)){constructor(e){super(e),this.element=new vc.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Ih(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),rl}}const Hh=Kh;class Gh extends(dh(Dh,Ah,rh)){constructor(e){super(e),this.element=new vc.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Ih(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Yh=Gh;class Xh extends(dh(Sh,Ah,rh)){constructor(e){super(e),this.element=new vc.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),rl}}const Zh=Xh;class Qh extends(dh(_h,rh)){constructor(e){super(e),this.element=new Vp,this.specPath=Do(["document","objects","JSONReference"])}ObjectElement(e){const t=_h.prototype.ObjectElement.call(this,e);return $c(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ed=Qh;var td=es((function(e,t,r){return Cs(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const rd=td,nd=Zn((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const sd=Qn((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const od=Zn((function(e){return ws(0,e)})),id=Zn(bc),ad=Ro(dl),cd=Ya(tu,yh);function ld(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ud=vs(sd(nd((function(e,t){return e.length>t.length}))),od,xs("length")),pd=ks((function(e,t,r){var n,s=r.apply(void 0,function(e){if(Array.isArray(e))return ld(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return ld(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ld(e,t):void 0}}(n)||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.")}());return ad(s)?id(s):t})),hd=rd(cd,(function(e){var t=ud(e);return Cs(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return fs(pd(r),void 0,e)}))}),$o);const dd=hd,fd=class extends Sh{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>rd(e,Do(t),$o))),r=dd(t)(e);return this.element=this.toRefractedElement(r,e),rl}},md=class extends fd{constructor(e){super(e),this.alternator=[{predicate:Ih,specPath:["document","objects","JSONReference"]},{predicate:Qc,specPath:["document","objects","JSONSchema"]}]}};class gd extends(dh(_h,rh)){constructor(e){super(e),this.element=new Kp,this.specPath=Do(["document","objects","Media"])}}const yd=gd;class vd extends(dh(_h,rh)){constructor(e){super(e),this.element=new Gp,this.specPath=Do(["document","objects","LinkDescription"])}}const bd=vd,Ed={visitors:{value:rh,JSONSchemaOrJSONReferenceVisitor:md,document:{objects:{JSONSchema:{$visitor:Nh,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:md,items:Mh,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:class extends rh{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}},properties:Fh,additionalProperties:md,patternProperties:Lh,dependencies:Uh,enum:class extends rh{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}},type:class extends rh{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}},allOf:Jh,anyOf:Wh,oneOf:Hh,not:md,definitions:Yh,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Zh,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:ed,fixedFields:{$ref:class extends rh{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}}}},Media:{$visitor:yd,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:bd,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:md,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:md}}}}}},wd=e=>{if(Dc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},xd={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Pl},Sd={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",zp),t.register("jSONReference",Vp),t.register("media",Kp),t.register("linkDescription",Gp),t}},_d=Sd,Ad=()=>{const e=iu(_d);return{predicates:{...i,isStringElement:$c},namespace:e}},Od=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Ed}={})=>{const s=(0,vc.e)(e),o=_l(n),i=new(vl(t,o))({specObj:o});return Rl(s,i),uu(i.element,r,{toolboxCreator:Ad,visitorOptions:{keyMap:xd,nodeTypeGetter:wd}})})(t,{specPath:e,...r});zp.refract=Od(["visitors","document","objects","JSONSchema","$visitor"]),Vp.refract=Od(["visitors","document","objects","JSONReference","$visitor"]),Kp.refract=Od(["visitors","document","objects","Media","$visitor"]),Gp.refract=Od(["visitors","document","objects","LinkDescription","$visitor"]);const Cd=class extends zp{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new qp("idProp getter in Schema class is not not supported.")}set idProp(e){throw new qp("idProp setter in Schema class is not not supported.")}get $schema(){throw new qp("$schema getter in Schema class is not not supported.")}set $schema(e){throw new qp("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new qp("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new qp("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new qp("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new qp("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new qp("definitions getter in Schema class is not not supported.")}set definitions(e){throw new qp("definitions setter in Schema class is not not supported.")}get base(){throw new qp("base getter in Schema class is not not supported.")}set base(e){throw new qp("base setter in Schema class is not not supported.")}get links(){throw new qp("links getter in Schema class is not not supported.")}set links(e){throw new qp("links setter in Schema class is not not supported.")}get media(){throw new qp("media getter in Schema class is not not supported.")}set media(e){throw new qp("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class jd extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const kd=jd;class Td extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Nd=Td;class Id extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Pd=Id;class Md extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Rd=Md;class Dd extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const $d=Dd;class Fd extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Bd=Fd,Ld=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=eh(t.meta,e.meta)),Yc(e)&&Al(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=eh(t.attributes,e.attributes))}},qd=class extends Ld{enter(e){return this.element=Ol(e),rl}},Ud=class extends Ld{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:n,...s}){super({...s}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=n,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return xh(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=vl(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ka(Ho,["visitors",...e],this.specObj)?vl(["visitors",...e],this.specObj):vl(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof qd&&(null==n?void 0:n.constructor)===qd?Ol(t):(Rl(t,n,r),n.element)}};var zd=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=no,e.prototype["@@transducer/result"]=so,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?bc(r):r},e}();function Jd(e){return function(t){return new zd(e,t)}}var Vd=Qn(to(["take"],Jd,(function(e,t){return gs(0,e<0?1/0:e,t)})));const Wd=Vd;const Kd=Qn((function(e,t){return Ks(Wd(e.length,t),e)})),Hd=e=>qc(e)&&e.hasKey("$ref"),Gd=qc,Yd=qc,Xd=e=>$c(e.key)&&Kd("x-",Ul(e.key)),Zd=class extends Ud{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Xd;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if($c(n)&&r.includes(Ul(n))&&!this.ignoredFields.includes(Ul(n))){const r=this.toRefractedElement([...t,"fixedFields",Ul(n)],e),o=new vc.Pr(Ol(n),r);this.copyMetaAndAttributes(s,o),o.classes.push("fixed-field"),this.element.content.push(o)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Ul(n))||this.element.content.push(Ol(s))})),this.copyMetaAndAttributes(e,this.element),rl}};class Qd extends(dh(Zd,qd)){constructor(e){super(e),this.element=new _p,this.specPath=Do(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Zd.prototype.ObjectElement.call(this,e)}}const ef=Qd;class tf extends(dh(Ud,qd)){StringElement(e){const t=new xp(Ul(e));return this.copyMetaAndAttributes(e,t),this.element=t,rl}}const rf=tf;class nf extends(dh(Zd,qd)){constructor(e){super(e),this.element=new up,this.specPath=Do(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const sf=nf;class of extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Zu,this.specPath=Do(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const af=of;class cf extends(dh(Zd,qd)){constructor(e){super(e),this.element=new hp,this.specPath=Do(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const lf=cf;class uf extends(dh(Zd,qd)){constructor(e){super(e),this.element=new fp,this.specPath=Do(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Zd.prototype.ObjectElement.call(this,e);return($c(this.element.operationId)||$c(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const pf=uf,hf=class extends Ud{specPath;ignoredFields;fieldPatternPredicate=el;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Xd;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:n,specificationExtensionPredicate:s,...o}){super({...o}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(Ul(t))&&this.fieldPatternPredicate(Ul(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),o=new vc.Pr(Ol(t),s);this.copyMetaAndAttributes(r,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(Ul(t))||this.element.content.push(Ol(r))})),this.copyMetaAndAttributes(e,this.element),rl}},df=class extends hf{constructor(e){super(e),this.fieldPatternPredicate=wh}};class ff extends vc.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(ff.primaryClass)}}const mf=ff;class gf extends(dh(df,qd)){constructor(e){super(e),this.element=new mf,this.specPath=Do(["value"])}}const yf=gf;class vf extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Pd,this.specPath=Do(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const bf=vf;class Ef extends vc.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Ef.primaryClass)}}const wf=Ef;class xf extends(dh(Ud,qd)){constructor(e){super(e),this.element=new wf}ArrayElement(e){return e.forEach((e=>{const t=Gd(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),rl}}const Sf=xf;class _f extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Rd,this.specPath=Do(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Af=_f;class Of extends vc.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Of.primaryClass)}}const Cf=Of;class jf extends(dh(df,qd)){constructor(e){super(e),this.element=new Cf,this.specPath=Do(["document","objects","ServerVariable"])}}const kf=jf;class Tf extends(dh(Zd,qd)){constructor(e){super(e),this.element=new gp,this.specPath=Do(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Nf=Tf,If=class extends Ud{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>rd(e,Do(t),$o))),r=dd(t)(e);return this.element=this.toRefractedElement(r,e),rl}},Pf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hu||e(n)&&t("callback",n)&&r("object",n))),Mf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yu||e(n)&&t("components",n)&&r("object",n))),Rf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zu||e(n)&&t("contact",n)&&r("object",n))),Df=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sp||e(n)&&t("example",n)&&r("object",n))),$f=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ip||e(n)&&t("externalDocumentation",n)&&r("object",n))),Ff=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cp||e(n)&&t("header",n)&&r("object",n))),Bf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof up||e(n)&&t("info",n)&&r("object",n))),Lf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hp||e(n)&&t("license",n)&&r("object",n))),qf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fp||e(n)&&t("link",n)&&r("object",n))),Uf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xp||e(n)&&t("openapi",n)&&r("string",n))),zf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof _p||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),Jf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Op||e(n)&&t("operation",n)&&r("object",n))),Vf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof jp||e(n)&&t("parameter",n)&&r("object",n))),Wf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tp||e(n)&&t("pathItem",n)&&r("object",n))),Kf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ip||e(n)&&t("paths",n)&&r("object",n))),Hf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Mp||e(n)&&t("reference",n)&&r("object",n))),Gf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dp||e(n)&&t("requestBody",n)&&r("object",n))),Yf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fp||e(n)&&t("response",n)&&r("object",n))),Xf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Lp||e(n)&&t("responses",n)&&r("object",n))),Zf=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cd||e(n)&&t("schema",n)&&r("object",n))),Qf=e=>Lc(e)&&e.classes.includes("boolean-json-schema"),em=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof kd||e(n)&&t("securityRequirement",n)&&r("object",n))),tm=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nd||e(n)&&t("securityScheme",n)&&r("object",n))),rm=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Pd||e(n)&&t("server",n)&&r("object",n))),nm=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rd||e(n)&&t("serverVariable",n)&&r("object",n))),sm=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gp||e(n)&&t("mediaType",n)&&r("object",n))),om=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof wf||e(s)&&t("array",s)&&r("array",s)&&n("servers",s))),im=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ep||e(n)&&t("discriminator",n)&&r("object",n)));class am extends(dh(If,qd)){constructor(e){super(e),this.alternator=[{predicate:Hd,specPath:["document","objects","Reference"]},{predicate:Qc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=If.prototype.enter.call(this,e);return Hf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const cm=am;class lm extends(dh(df,qd)){constructor(e){super(e),this.element=new vc.Sh,this.element.classes.push("examples"),this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const um=lm;class pm extends vc.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(pm.primaryClass),this.classes.push("examples")}}const hm=pm;class dm extends vc.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(dm.primaryClass)}}const fm=dm;class mm extends(dh(df,qd)){constructor(e){super(e),this.element=new fm,this.specPath=Do(["document","objects","Encoding"])}}const gm=mm;class ym extends(dh(df,qd)){constructor(e){super(e),this.element=new kd,this.specPath=Do(["value"])}}const vm=ym;class bm extends vc.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(bm.primaryClass)}}const Em=bm;class wm extends(dh(Ud,qd)){constructor(e){super(e),this.element=new Em}ArrayElement(e){return e.forEach((e=>{if(qc(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Ol(e))})),this.copyMetaAndAttributes(e,this.element),rl}}const xm=wm;class Sm extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Yu,this.specPath=Do(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const _m=Sm;class Am extends(dh(Zd,qd)){constructor(e){super(e),this.element=new $d,this.specPath=Do(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Om=Am;class Cm extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Mp,this.specPath=Do(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Zd.prototype.ObjectElement.call(this,e);return $c(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const jm=Cm;class km extends(dh(Zd,qd)){constructor(e){super(e),this.element=new jp,this.specPath=Do(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Zd.prototype.ObjectElement.call(this,e);return qc(this.element.contentProp)&&this.element.contentProp.filter(sm).forEach(((e,t)=>{e.setMetaProperty("media-type",Ul(t))})),t}}const Tm=km;class Nm extends(dh(If,qd)){constructor(e){super(e),this.alternator=[{predicate:Hd,specPath:["document","objects","Reference"]},{predicate:Qc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=If.prototype.enter.call(this,e);return Hf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Im=Nm;class Pm extends(dh(Zd,qd)){constructor(e){super(e),this.element=new cp,this.specPath=Do(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Mm=Pm;class Rm extends(dh(If,qd)){constructor(e){super(e),this.alternator=[{predicate:Hd,specPath:["document","objects","Reference"]},{predicate:Qc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=If.prototype.enter.call(this,e);return Hf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Dm=Rm;class $m extends vc.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push($m.primaryClass),this.classes.push("examples")}}const Fm=$m;class Bm extends(dh(df,qd)){constructor(e){super(e),this.element=new vc.Sh,this.element.classes.push("content"),this.specPath=Do(["document","objects","MediaType"])}}const Lm=Bm;class qm extends vc.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(qm.primaryClass),this.classes.push("content")}}const Um=qm;class zm extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Cd,this.specPath=Do(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Jm=zm,Vm=Ed.visitors.document.objects.JSONSchema.fixedFields.allOf,Wm=Ed.visitors.document.objects.JSONSchema.fixedFields.anyOf,Km=Ed.visitors.document.objects.JSONSchema.fixedFields.oneOf,Hm=Ed.visitors.document.objects.JSONSchema.fixedFields.items,Gm=Ed.visitors.document.objects.JSONSchema.fixedFields.properties,Ym=Ed.visitors.document.objects.JSONSchema.fixedFields.type,Xm=Ed.visitors.JSONSchemaOrJSONReferenceVisitor,Zm=class extends Xm{ObjectElement(e){const t=Xm.prototype.enter.call(this,e);return Hf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Qm extends(dh(Zd,qd)){constructor(e){super(e),this.element=new ep,this.specPath=Do(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const eg=Qm;class tg extends vc.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(tg.primaryClass)}}const rg=tg;class ng extends(dh(df,qd)){constructor(e){super(e),this.element=new rg,this.specPath=Do(["value"])}}const sg=ng;class og extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Bd,this.specPath=Do(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const ig=og;class ag extends vc.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(ag.primaryClass),this.classes.push("examples")}}const cg=ag;class lg extends vc.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(lg.primaryClass),this.classes.push("content")}}const ug=lg;class pg extends vc.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(pg.primaryClass)}}const hg=pg;class dg extends(dh(df,qd)){constructor(e){super(e),this.element=new hg,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const fg=dg;class mg extends vc.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(mg.primaryClass)}}const gg=mg;class yg extends(dh(df,qd)){constructor(e){super(e),this.element=new gg,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Yf).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Ul(t))})),t}}const vg=yg;class bg extends vc.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(bg.primaryClass),this.classes.push("parameters")}}const Eg=bg;class wg extends(dh(df,qd)){constructor(e){super(e),this.element=new Eg,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const xg=wg;class Sg extends vc.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Sg.primaryClass),this.classes.push("examples")}}const _g=Sg;class Ag extends(dh(df,qd)){constructor(e){super(e),this.element=new _g,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Og=Ag;class Cg extends vc.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(Cg.primaryClass)}}const jg=Cg;class kg extends(dh(df,qd)){constructor(e){super(e),this.element=new jg,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const Tg=kg;class Ng extends vc.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Ng.primaryClass)}}const Ig=Ng;class Pg extends(dh(df,qd)){constructor(e){super(e),this.element=new Ig,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Ff).forEach(((e,t)=>{e.setMetaProperty("header-name",Ul(t))})),t}}const Mg=Pg;class Rg extends vc.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Rg.primaryClass)}}const Dg=Rg;class $g extends(dh(df,qd)){constructor(e){super(e),this.element=new Dg,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Fg=$g;class Bg extends vc.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Bg.primaryClass)}}const Lg=Bg;class qg extends(dh(df,qd)){constructor(e){super(e),this.element=new Lg,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Ug=qg;class zg extends vc.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(zg.primaryClass)}}const Jg=zg;class Vg extends(dh(df,qd)){constructor(e){super(e),this.element=new Jg,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Wg=Vg;class Kg extends(dh(Zd,qd)){constructor(e){super(e),this.element=new sp,this.specPath=Do(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Zd.prototype.ObjectElement.call(this,e);return $c(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Hg=Kg;class Gg extends(dh(Zd,qd)){constructor(e){super(e),this.element=new ip,this.specPath=Do(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Yg=Gg;class Xg extends(dh(Zd,qd)){constructor(e){super(e),this.element=new rp,this.specPath=Do(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Zd.prototype.ObjectElement.call(this,e);return qc(this.element.headers)&&this.element.headers.filter(Ff).forEach(((e,t)=>{e.setMetaProperty("header-name",Ul(t))})),t}}const Zg=Xg;class Qg extends vc.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Qg.primaryClass)}}const ey=Qg;class ty extends(dh(df,qd)){constructor(e){super(e),this.element=new ey,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Ff(e))return;const r=Ul(t);e.setMetaProperty("headerName",r)})),t}}const ry=ty;class ny extends(dh(hf,qd)){constructor(e){super(e),this.element=new Ip,this.specPath=Do(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Qc}ObjectElement(e){const t=hf.prototype.ObjectElement.call(this,e);return this.element.filter(Wf).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Ol(t))})),t}}const sy=ny;class oy extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Dp,this.specPath=Do(["document","objects","RequestBody"])}ObjectElement(e){const t=Zd.prototype.ObjectElement.call(this,e);return qc(this.element.contentProp)&&this.element.contentProp.filter(sm).forEach(((e,t)=>{e.setMetaProperty("media-type",Ul(t))})),t}}const iy=oy;class ay extends vc.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(ay.primaryClass),this.classes.push("content")}}const cy=ay;class ly extends(dh(hf,qd)){constructor(e){super(e),this.element=new Hu,this.specPath=Do(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Wf).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Ul(t))})),t}}const uy=ly;class py extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Fp,this.specPath=Do(["document","objects","Response"])}ObjectElement(e){const t=Zd.prototype.ObjectElement.call(this,e);return qc(this.element.contentProp)&&this.element.contentProp.filter(sm).forEach(((e,t)=>{e.setMetaProperty("media-type",Ul(t))})),qc(this.element.headers)&&this.element.headers.filter(Ff).forEach(((e,t)=>{e.setMetaProperty("header-name",Ul(t))})),t}}const hy=py;class dy extends vc.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(dy.primaryClass)}}const fy=dy;class my extends(dh(df,qd)){constructor(e){super(e),this.element=new fy,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Ff(e))return;const r=Ul(t);e.setMetaProperty("header-name",r)})),t}}const gy=my;class yy extends vc.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(yy.primaryClass),this.classes.push("content")}}const vy=yy;class by extends vc.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(by.primaryClass)}}const Ey=by;class wy extends(dh(df,qd)){constructor(e){super(e),this.element=new Ey,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const xy=wy;function Sy(e){return"[object Number]"===Object.prototype.toString.call(e)}const _y=Qn((function(e,t){if(!Sy(e)||!Sy(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),n=e<0?t+Math.abs(e):t-e,s=0;s<n;)r[s]=s+e,s+=1;return r}));function Ay(e,t,r){var n,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?e in r._items[s]||(t&&(r._items[s][e]=!0),!1):(t&&(r._items[s]={},r._items[s][e]=!0),!1);case"boolean":if(s in r._items){var o=e?1:0;return!!r._items[s][o]||(t&&(r._items[s][o]=!0),!1)}return t&&(r._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?!!Hs(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1);case"undefined":return!!r._items[s]||(t&&(r._items[s]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in r._items?!!Hs(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const Oy=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Ay(e,!0,this)},e.prototype.has=function(e){return Ay(e,!1,this)},e}();var Cy=Qn((function(e,t){for(var r=[],n=0,s=e.length,o=t.length,i=new Oy,a=0;a<o;a+=1)i.add(t[a]);for(;n<s;)i.add(e[n])&&(r[r.length]=e[n]),n+=1;return r}));const jy=Cy;class ky extends(dh(Zd,hf)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...jy(e.keys(),t)],Zd.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,hf.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return rl}}const Ty=ky;class Ny extends(dh(Ty,qd)){constructor(e){super(e),this.element=new Lp,this.specPathFixedFields=Do(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${_y(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=Ty.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Yf).forEach(((e,t)=>{const r=Ol(t);this.fieldPatternPredicate(Ul(r))&&e.setMetaProperty("http-status-code",r)})),t}}const Iy=Ny;class Py extends(dh(If,qd)){constructor(e){super(e),this.alternator=[{predicate:Hd,specPath:["document","objects","Reference"]},{predicate:Qc,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=If.prototype.enter.call(this,e);return Hf(this.element)?this.element.setMetaProperty("referenced-element","response"):Yf(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const My=Py;class Ry extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Op,this.specPath=Do(["document","objects","Operation"])}}const Dy=Ry;class $y extends vc.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push($y.primaryClass)}}const Fy=$y;class By extends vc.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(By.primaryClass),this.classes.push("parameters")}}const Ly=By;class qy extends(dh(Ud,qd)){constructor(e){super(e),this.element=new vc.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=Hd(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Hf(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),rl}}const Uy=qy;class zy extends vc.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(zy.primaryClass)}}const Jy=zy;class Vy extends(dh(df,qd)){specPath;constructor(e){super(e),this.element=new Jy,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Wy=Vy;class Ky extends vc.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Ky.primaryClass),this.classes.push("security")}}const Hy=Ky;class Gy extends(dh(Ud,qd)){constructor(e){super(e),this.element=new Hy}ArrayElement(e){return e.forEach((e=>{const t=qc(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),rl}}const Yy=Gy;class Xy extends vc.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Xy.primaryClass),this.classes.push("servers")}}const Zy=Xy;class Qy extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Tp,this.specPath=Do(["document","objects","PathItem"])}ObjectElement(e){const t=Zd.prototype.ObjectElement.call(this,e);return this.element.filter(Jf).forEach(((e,t)=>{const r=Ol(t);r.content=Ul(r).toUpperCase(),e.setMetaProperty("http-method",r)})),$c(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ev=Qy;class tv extends vc.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(tv.primaryClass),this.classes.push("servers")}}const rv=tv;class nv extends vc.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(nv.primaryClass),this.classes.push("parameters")}}const sv=nv;class ov extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Nd,this.specPath=Do(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const iv=ov;class av extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Ep,this.specPath=Do(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const cv=av;class lv extends(dh(Zd,qd)){constructor(e){super(e),this.element=new vp,this.specPath=Do(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const uv=lv;class pv extends vc.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(pv.primaryClass)}}const hv=pv;class dv extends(dh(df,qd)){constructor(e){super(e),this.element=new hv,this.specPath=Do(["value"])}}const fv=dv;class mv extends vc.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(mv.primaryClass)}}const gv=mv;class yv extends(dh(Ud,qd)){constructor(e){super(e),this.element=new gv}ArrayElement(e){return e.forEach((e=>{const t=Yd(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),rl}}const vv=yv,{fixedFields:bv}=Ed.visitors.document.objects.JSONSchema,Ev={visitors:{value:qd,document:{objects:{OpenApi:{$visitor:ef,fixedFields:{openapi:rf,info:{$ref:"#/visitors/document/objects/Info"},servers:Sf,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:xm,tags:vv,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:sf,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:class extends qd{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}}}},Contact:{$visitor:af,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:lf,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:bf,fixedFields:{url:class extends qd{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}},description:{$ref:"#/visitors/value"},variables:kf}},ServerVariable:{$visitor:Af,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:_m,fixedFields:{schemas:fg,responses:vg,parameters:xg,examples:Og,requestBodies:Tg,headers:Mg,securitySchemes:Fg,links:Ug,callbacks:Wg}},Paths:{$visitor:sy},PathItem:{$visitor:ev,fixedFields:{$ref:class extends qd{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:class extends Sf{constructor(e){super(e),this.element=new rv}},parameters:class extends Uy{constructor(e){super(e),this.element=new sv}}}},Operation:{$visitor:Dy,fixedFields:{tags:class extends qd{constructor(e){super(e),this.element=new Fy}ArrayElement(e){return this.element=this.element.concat(Ol(e)),rl}},summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:class extends Uy{constructor(e){super(e),this.element=new Ly}},requestBody:class extends If{constructor(e){super(e),this.alternator=[{predicate:Hd,specPath:["document","objects","Reference"]},{predicate:Qc,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=If.prototype.enter.call(this,e);return Hf(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}},responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Wy,deprecated:{$ref:"#/visitors/value"},security:Yy,servers:class extends Sf{constructor(e){super(e),this.element=new Zy}}}},ExternalDocumentation:{$visitor:Yg,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Tm,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Im,example:{$ref:"#/visitors/value"},examples:class extends um{constructor(e){super(e),this.element=new cg}},content:class extends Lm{constructor(e){super(e),this.element=new ug}}}},RequestBody:{$visitor:iy,fixedFields:{description:{$ref:"#/visitors/value"},content:class extends Lm{constructor(e){super(e),this.element=new cy}},required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Nf,fixedFields:{schema:cm,example:{$ref:"#/visitors/value"},examples:class extends um{constructor(e){super(e),this.element=new hm}},encoding:gm}},Encoding:{$visitor:Zg,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:ry,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Iy,fixedFields:{default:My}},Response:{$visitor:hy,fixedFields:{description:{$ref:"#/visitors/value"},headers:gy,content:class extends Lm{constructor(e){super(e),this.element=new vy}},links:xy}},Callback:{$visitor:uy},Example:{$visitor:Hg,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:class extends qd{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}}}},Link:{$visitor:pf,fixedFields:{operationRef:class extends qd{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},operationId:class extends qd{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},parameters:yf,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Mm,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Dm,example:{$ref:"#/visitors/value"},examples:class extends um{constructor(e){super(e),this.element=new Fm}},content:class extends Lm{constructor(e){super(e),this.element=new Um}}}},Tag:{$visitor:Om,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:jm,fixedFields:{$ref:class extends qd{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Jm,fixedFields:{title:bv.title,multipleOf:bv.multipleOf,maximum:bv.maximum,exclusiveMaximum:bv.exclusiveMaximum,minimum:bv.minimum,exclusiveMinimum:bv.exclusiveMinimum,maxLength:bv.maxLength,minLength:bv.minLength,pattern:bv.pattern,maxItems:bv.maxItems,minItems:bv.minItems,uniqueItems:bv.uniqueItems,maxProperties:bv.maxProperties,minProperties:bv.minProperties,required:bv.required,enum:bv.enum,type:class extends Ym{ArrayElement(e){return this.enter(e)}},allOf:class extends Vm{ArrayElement(e){const t=Vm.prototype.ArrayElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},anyOf:class extends Wm{ArrayElement(e){const t=Wm.prototype.ArrayElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},oneOf:class extends Km{ArrayElement(e){const t=Km.prototype.ArrayElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},not:Zm,items:class extends Hm{ObjectElement(e){const t=Hm.prototype.ObjectElement.call(this,e);return Hf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},properties:class extends Gm{ObjectElement(e){const t=Gm.prototype.ObjectElement.call(this,e);return this.element.filter(Hf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},additionalProperties:Zm,description:bv.description,format:bv.format,default:bv.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:eg,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:sg}},XML:{$visitor:ig,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:iv,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:cv,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:uv,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:fv}},SecurityRequirement:{$visitor:vm}},extension:{$visitor:class extends Ud{MemberElement(e){return this.element=Ol(e),this.element.classes.push("specification-extension"),rl}}}}}},wv=e=>{if(Dc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},xv={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Pl},Sv={namespace:e=>{const{base:t}=e;return t.register("callback",Hu),t.register("components",Yu),t.register("contact",Zu),t.register("discriminator",ep),t.register("encoding",rp),t.register("example",sp),t.register("externalDocumentation",ip),t.register("header",cp),t.register("info",up),t.register("license",hp),t.register("link",fp),t.register("mediaType",gp),t.register("oAuthFlow",vp),t.register("oAuthFlows",Ep),t.register("openapi",xp),t.register("openApi3_0",_p),t.register("operation",Op),t.register("parameter",jp),t.register("pathItem",Tp),t.register("paths",Ip),t.register("reference",Mp),t.register("requestBody",Dp),t.register("response",Fp),t.register("responses",Lp),t.register("schema",Cd),t.register("securityRequirement",kd),t.register("securityScheme",Nd),t.register("server",Pd),t.register("serverVariable",Rd),t.register("tag",$d),t.register("xml",Bd),t}},_v=Sv,Av=()=>{const e=iu(_v);return{predicates:{...a,isElement:Dc,isStringElement:$c,isArrayElement:Uc,isObjectElement:qc,isMemberElement:zc,includesClasses:Zc,hasElementSourceMap:Yc},namespace:e}},Ov=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,vc.e)(e),s=_l(Ev),o=new(vl(t,s))({specObj:s});return Rl(n,o),uu(o.element,r,{toolboxCreator:Av,visitorOptions:{keyMap:xv,nodeTypeGetter:wv}})})(t,{specPath:e,...r});Hu.refract=Ov(["visitors","document","objects","Callback","$visitor"]),Yu.refract=Ov(["visitors","document","objects","Components","$visitor"]),Zu.refract=Ov(["visitors","document","objects","Contact","$visitor"]),sp.refract=Ov(["visitors","document","objects","Example","$visitor"]),ep.refract=Ov(["visitors","document","objects","Discriminator","$visitor"]),rp.refract=Ov(["visitors","document","objects","Encoding","$visitor"]),ip.refract=Ov(["visitors","document","objects","ExternalDocumentation","$visitor"]),cp.refract=Ov(["visitors","document","objects","Header","$visitor"]),up.refract=Ov(["visitors","document","objects","Info","$visitor"]),hp.refract=Ov(["visitors","document","objects","License","$visitor"]),fp.refract=Ov(["visitors","document","objects","Link","$visitor"]),gp.refract=Ov(["visitors","document","objects","MediaType","$visitor"]),vp.refract=Ov(["visitors","document","objects","OAuthFlow","$visitor"]),Ep.refract=Ov(["visitors","document","objects","OAuthFlows","$visitor"]),xp.refract=Ov(["visitors","document","objects","OpenApi","fixedFields","openapi"]),_p.refract=Ov(["visitors","document","objects","OpenApi","$visitor"]),Op.refract=Ov(["visitors","document","objects","Operation","$visitor"]),jp.refract=Ov(["visitors","document","objects","Parameter","$visitor"]),Tp.refract=Ov(["visitors","document","objects","PathItem","$visitor"]),Ip.refract=Ov(["visitors","document","objects","Paths","$visitor"]),Mp.refract=Ov(["visitors","document","objects","Reference","$visitor"]),Dp.refract=Ov(["visitors","document","objects","RequestBody","$visitor"]),Fp.refract=Ov(["visitors","document","objects","Response","$visitor"]),Lp.refract=Ov(["visitors","document","objects","Responses","$visitor"]),Cd.refract=Ov(["visitors","document","objects","Schema","$visitor"]),kd.refract=Ov(["visitors","document","objects","SecurityRequirement","$visitor"]),Nd.refract=Ov(["visitors","document","objects","SecurityScheme","$visitor"]),Pd.refract=Ov(["visitors","document","objects","Server","$visitor"]),Rd.refract=Ov(["visitors","document","objects","ServerVariable","$visitor"]),$d.refract=Ov(["visitors","document","objects","Tag","$visitor"]),Bd.refract=Ov(["visitors","document","objects","XML","$visitor"]);const Cv=class extends Hu{},jv=class extends Yu{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}},kv=class extends Zu{},Tv=class extends ep{},Nv=class extends rp{},Iv=class extends sp{},Pv=class extends ip{},Mv=class extends cp{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Rv=class extends up{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Dv extends vc.Om{static default=new Dv("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const $v=Dv,Fv=class extends hp{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},Bv=class extends fp{},Lv=class extends gp{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},qv=class extends vp{},Uv=class extends Ep{},zv=class extends xp{};class Jv extends vc.Sh{constructor(e,t,r){super(e,t,r),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Vv=Jv,Wv=class extends Op{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}},Kv=class extends jp{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Hv=class extends Tp{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}},Gv=class extends Ip{};class Yv extends Mp{}Object.defineProperty(Yv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Yv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Xv=Yv,Zv=class extends Dp{},Qv=class extends Fp{},eb=class extends Lp{},tb=class extends zp{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new qp("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new qp("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}},rb=class extends Gp{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new qp("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new qp("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new qp("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new qp("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new qp("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new qp("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var nb=es((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var o=!dl(n)&&Ps(s,n)&&"object"==typeof n[s]?n[s]:Es(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,o)}return function(e,t,r){if(Es(e)&&ts(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var o in r)s[o]=r[o];return s[e]=t,s}(s,r,n)}));const sb=nb;const ob=es((function(e,t,r){var n=Array.prototype.slice.call(r,0);return n.splice(e,t),n}));const ib=es((function(e,t,r){return sb([e],t,r)}));var ab=Qn((function e(t,r){if(null==r)return r;switch(t.length){case 0:return r;case 1:return function(e,t){if(null==t)return t;if(Es(e)&&ts(t))return ob(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}(t[0],r);default:var n=t[0],s=Array.prototype.slice.call(t,1);return null==r[n]?function(e,t){if(Es(e)&&ts(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}(n,r):ib(n,e(s,r[n]),r)}}));const cb=ab,lb=class extends Nh{constructor(e){super(e),this.element=new tb}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}},ub=class extends bd{constructor(e){super(e),this.element=new rb}},pb=vs(sb(["visitors","document","objects","JSONSchema","$visitor"],lb),cb(["visitors","document","objects","JSONSchema","fixedFields","id"]),sb(["visitors","document","objects","JSONSchema","fixedFields","$id"],Ed.visitors.value),sb(["visitors","document","objects","JSONSchema","fixedFields","contains"],Ed.visitors.JSONSchemaOrJSONReferenceVisitor),sb(["visitors","document","objects","JSONSchema","fixedFields","items"],class extends Mh{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rl}}),sb(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Ed.visitors.JSONSchemaOrJSONReferenceVisitor),sb(["visitors","document","objects","JSONSchema","fixedFields","const"],Ed.visitors.value),sb(["visitors","document","objects","JSONSchema","fixedFields","examples"],class extends rh{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}}),sb(["visitors","document","objects","LinkDescription","$visitor"],ub),sb(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Ed.visitors.JSONSchemaOrJSONReferenceVisitor),cb(["visitors","document","objects","LinkDescription","fixedFields","schema"]),sb(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Ed.visitors.JSONSchemaOrJSONReferenceVisitor),cb(["visitors","document","objects","LinkDescription","fixedFields","method"]),cb(["visitors","document","objects","LinkDescription","fixedFields","encType"]),sb(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Ed.visitors.value))(Ed),hb={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Pl},db=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tb||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n))),fb=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rb||e(n)&&t("linkDescription",n)&&r("object",n))),mb={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",tb),t.register("jSONReference",Vp),t.register("media",Kp),t.register("linkDescription",rb),t}},gb=mb,yb=()=>{const e=iu(gb);return{predicates:{...c,isStringElement:$c},namespace:e}},vb=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=pb}={})=>{const s=(0,vc.e)(e),o=_l(n),i=new(vl(t,o))({specObj:o});return Rl(s,i),uu(i.element,r,{toolboxCreator:yb,visitorOptions:{keyMap:hb,nodeTypeGetter:wd}})})(t,{specPath:e,...r});tb.refract=vb(["visitors","document","objects","JSONSchema","$visitor"]),rb.refract=vb(["visitors","document","objects","LinkDescription","$visitor"]);const bb=class extends tb{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new qp('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new qp('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}},Eb=class extends rb{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new qp("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new qp("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new qp("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new qp("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}},wb=class extends lb{constructor(e){super(e),this.element=new bb}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},xb=class extends ub{constructor(e){super(e),this.element=new Eb}},Sb=vs(sb(["visitors","document","objects","JSONSchema","$visitor"],wb),sb(["visitors","document","objects","JSONSchema","fixedFields","$comment"],pb.visitors.value),sb(["visitors","document","objects","JSONSchema","fixedFields","if"],pb.visitors.JSONSchemaOrJSONReferenceVisitor),sb(["visitors","document","objects","JSONSchema","fixedFields","then"],pb.visitors.JSONSchemaOrJSONReferenceVisitor),sb(["visitors","document","objects","JSONSchema","fixedFields","else"],pb.visitors.JSONSchemaOrJSONReferenceVisitor),cb(["visitors","document","objects","JSONSchema","fixedFields","media"]),sb(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],pb.visitors.value),sb(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],pb.visitors.value),sb(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],pb.visitors.value),sb(["visitors","document","objects","LinkDescription","$visitor"],xb),sb(["visitors","document","objects","LinkDescription","fixedFields","anchor"],pb.visitors.value),sb(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],pb.visitors.value),cb(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),sb(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],pb.visitors.value),sb(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],pb.visitors.value),sb(["visitors","document","objects","LinkDescription","fixedFields","description"],pb.visitors.value),sb(["visitors","document","objects","LinkDescription","fixedFields","$comment"],pb.visitors.value),sb(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],pb.visitors.JSONSchemaOrJSONReferenceVisitor),cb(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),sb(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],pb.visitors.value))(pb),_b={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Pl},Ab=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bb||e(n)&&t("JSONSchemaDraft7",n)&&r("object",n))),Ob=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Eb||e(n)&&t("linkDescription",n)&&r("object",n))),Cb={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",bb),t.register("jSONReference",Vp),t.register("linkDescription",Eb),t}},jb=Cb,kb=()=>{const e=iu(jb);return{predicates:{...l,isStringElement:$c},namespace:e}},Tb=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Sb}={})=>{const s=(0,vc.e)(e),o=_l(n),i=new(vl(t,o))({specObj:o});return Rl(s,i),uu(i.element,r,{toolboxCreator:kb,visitorOptions:{keyMap:_b,nodeTypeGetter:wd}})})(t,{specPath:e,...r});bb.refract=Tb(["visitors","document","objects","JSONSchema","$visitor"]),Eb.refract=Tb(["visitors","document","objects","LinkDescription","$visitor"]);const Nb=class extends bb{constructor(e,t,r){super(e,t,r),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new qp("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new qp("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new qp("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new qp("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}},Ib=class extends Eb{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}},Pb=class extends wb{constructor(e){super(e),this.element=new Nb}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=_h.prototype.ObjectElement.call(this,e);return $c(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};class Mb extends(dh(Dh,Ah,rh)){constructor(e){super(e),this.element=new vc.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=Do(["document","objects","JSONSchema"])}}const Rb=Mb;class Db extends(dh(Sh,Ah,rh)){constructor(e){super(e),this.element=new vc.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),rl}}const $b=Db;class Fb extends(dh(Sh,Ah,rh)){constructor(e){super(e),this.element=new vc.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),rl}}const Bb=Fb;class Lb extends(dh(Sh,Ah,rh)){constructor(e){super(e),this.element=new vc.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),rl}}const qb=Lb;class Ub extends(dh(Dh,Ah,rh)){constructor(e){super(e),this.element=new vc.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=Do(["document","objects","JSONSchema"])}}const zb=Ub;class Jb extends(dh(Sh,Ah,rh)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rl}ArrayElement(e){return this.element=new vc.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),rl}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rl}}const Vb=Jb;class Wb extends(dh(Dh,Ah,rh)){constructor(e){super(e),this.element=new vc.Sh,this.element.classes.push("json-schema-properties"),this.specPath=Do(["document","objects","JSONSchema"])}}const Kb=Wb;class Hb extends(dh(Dh,Ah,rh)){constructor(e){super(e),this.element=new vc.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=Do(["document","objects","JSONSchema"])}}const Gb=Hb,Yb=class extends xb{constructor(e){super(e),this.element=new Ib}},Xb=vs(sb(["visitors","document","objects","JSONSchema","$visitor"],Pb),sb(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],class extends rh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}}),sb(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Sb.visitors.value),sb(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Sb.visitors.value),sb(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Sb.visitors.value),cb(["visitors","document","objects","JSONReference","$visitor"]),sb(["visitors","document","objects","JSONSchema","fixedFields","$ref"],class extends rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}}),cb(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),sb(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Rb),sb(["visitors","document","objects","JSONSchema","fixedFields","allOf"],$b),sb(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Bb),sb(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],qb),sb(["visitors","document","objects","JSONSchema","fixedFields","not"],Pb),sb(["visitors","document","objects","JSONSchema","fixedFields","if"],Pb),sb(["visitors","document","objects","JSONSchema","fixedFields","then"],Pb),sb(["visitors","document","objects","JSONSchema","fixedFields","else"],Pb),cb(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),sb(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],zb),sb(["visitors","document","objects","JSONSchema","fixedFields","items"],Vb),sb(["visitors","document","objects","JSONSchema","fixedFields","contains"],Pb),sb(["visitors","document","objects","JSONSchema","fixedFields","properties"],Kb),sb(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Gb),sb(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Pb),sb(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Pb),sb(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Pb),sb(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Pb),sb(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Pb),sb(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Sb.visitors.value),sb(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Sb.visitors.value),sb(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],class extends rh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}}),sb(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Sb.visitors.value),sb(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Pb),sb(["visitors","document","objects","LinkDescription","$visitor"],Yb),sb(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Pb),sb(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Pb),sb(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Pb),sb(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Pb))(Sb),Zb={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Pl},Qb=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nb||e(n)&&t("JSONSchema201909",n)&&r("object",n))),eE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ib||e(n)&&t("linkDescription",n)&&r("object",n))),tE={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Nb),t.register("linkDescription",Ib),t}},rE=tE,nE=()=>{const e=iu(rE);return{predicates:{...u,isStringElement:$c},namespace:e}},sE=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Xb}={})=>{const s=(0,vc.e)(e),o=_l(n),i=new(vl(t,o))({specObj:o});return Rl(s,i),uu(i.element,r,{toolboxCreator:nE,visitorOptions:{keyMap:Zb,nodeTypeGetter:wd}})})(t,{specPath:e,...r});Nb.refract=sE(["visitors","document","objects","JSONSchema","$visitor"]),Ib.refract=sE(["visitors","document","objects","LinkDescription","$visitor"]);const oE=class extends Nb{constructor(e,t,r){super(e,t,r),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new qp("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new qp("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new qp("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new qp("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}},iE=class extends Ib{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}},aE=class extends Pb{constructor(e){super(e),this.element=new oE}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class cE extends(dh(Sh,Ah,rh)){constructor(e){super(e),this.element=new vc.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),rl}}const lE=cE,uE=vs(sb(["visitors","document","objects","JSONSchema","$visitor"],aE),cb(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),sb(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Xb.visitors.value),cb(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),sb(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Xb.visitors.value),sb(["visitors","document","objects","JSONSchema","fixedFields","not"],aE),sb(["visitors","document","objects","JSONSchema","fixedFields","if"],aE),sb(["visitors","document","objects","JSONSchema","fixedFields","then"],aE),sb(["visitors","document","objects","JSONSchema","fixedFields","else"],aE),sb(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],lE),sb(["visitors","document","objects","JSONSchema","fixedFields","items"],aE),sb(["visitors","document","objects","JSONSchema","fixedFields","contains"],aE),sb(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],aE),cb(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),sb(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],aE),sb(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],aE),sb(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],aE),sb(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],aE),sb(["visitors","document","objects","LinkDescription","$visitor"],class extends Yb{constructor(e){super(e),this.element=new iE}}),sb(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],aE),sb(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],aE),sb(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],aE),sb(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],aE))(Xb),pE={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Pl},hE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oE||e(n)&&t("JSONSchema202012",n)&&r("object",n))),dE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof iE||e(n)&&t("linkDescription",n)&&r("object",n))),fE={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",oE),t.register("linkDescription",iE),t}},mE=fE,gE=()=>{const e=iu(mE);return{predicates:{...p,isStringElement:$c},namespace:e}},yE=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=uE}={})=>{const s=(0,vc.e)(e),o=_l(n),i=new(vl(t,o))({specObj:o});return Rl(s,i),uu(i.element,r,{toolboxCreator:gE,visitorOptions:{keyMap:pE,nodeTypeGetter:wd}})})(t,{specPath:e,...r});oE.refract=yE(["visitors","document","objects","JSONSchema","$visitor"]),iE.refract=yE(["visitors","document","objects","LinkDescription","$visitor"]);const vE=class extends oE{constructor(e,t,r){super(e,t,r),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}},bE=class extends kd{},EE=class extends Nd{},wE=class extends Pd{},xE=class extends Rd{},SE=class extends $d{},_E=class extends Bd{};class AE extends(dh(Zd,qd)){constructor(e){super(e),this.element=new Vv,this.specPath=Do(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Zd.prototype.ObjectElement.call(this,e)}}const OE=AE,CE=Ev.visitors.document.objects.Info.$visitor,jE=Ev.visitors.document.objects.Contact.$visitor,kE=Ev.visitors.document.objects.License.$visitor,TE=Ev.visitors.document.objects.Link.$visitor;class NE extends(dh(Ud,qd)){StringElement(e){const t=new $v(Ul(e));return this.copyMetaAndAttributes(e,t),this.element=t,rl}}const IE=NE,PE=Ev.visitors.document.objects.Server.$visitor,ME=Ev.visitors.document.objects.ServerVariable.$visitor,RE=Ev.visitors.document.objects.MediaType.$visitor,DE=Ev.visitors.document.objects.SecurityRequirement.$visitor,$E=Ev.visitors.document.objects.Components.$visitor,FE=Ev.visitors.document.objects.Tag.$visitor,BE=Ev.visitors.document.objects.Reference.$visitor,LE=Ev.visitors.document.objects.Parameter.$visitor,qE=Ev.visitors.document.objects.Header.$visitor,UE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cv||e(n)&&t("callback",n)&&r("object",n))),zE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof jv||e(n)&&t("components",n)&&r("object",n))),JE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof kv||e(n)&&t("contact",n)&&r("object",n))),VE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Iv||e(n)&&t("example",n)&&r("object",n))),WE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Pv||e(n)&&t("externalDocumentation",n)&&r("object",n))),KE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Mv||e(n)&&t("header",n)&&r("object",n))),HE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rv||e(n)&&t("info",n)&&r("object",n))),GE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $v||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),YE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fv||e(n)&&t("license",n)&&r("object",n))),XE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bv||e(n)&&t("link",n)&&r("object",n))),ZE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zv||e(n)&&t("openapi",n)&&r("string",n))),QE=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Vv||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),ew=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wv||e(n)&&t("operation",n)&&r("object",n))),tw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kv||e(n)&&t("parameter",n)&&r("object",n))),rw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hv||e(n)&&t("pathItem",n)&&r("object",n))),nw=e=>{if(!rw(e))return!1;if(!$c(e.$ref))return!1;const t=Ul(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},sw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gv||e(n)&&t("paths",n)&&r("object",n))),ow=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xv||e(n)&&t("reference",n)&&r("object",n))),iw=e=>{if(!ow(e))return!1;if(!$c(e.$ref))return!1;const t=Ul(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},aw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zv||e(n)&&t("requestBody",n)&&r("object",n))),cw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qv||e(n)&&t("response",n)&&r("object",n))),lw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof eb||e(n)&&t("responses",n)&&r("object",n))),uw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vE||e(n)&&t("schema",n)&&r("object",n))),pw=e=>Lc(e)&&e.classes.includes("boolean-json-schema"),hw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bE||e(n)&&t("securityRequirement",n)&&r("object",n))),dw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof EE||e(n)&&t("securityScheme",n)&&r("object",n))),fw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wE||e(n)&&t("server",n)&&r("object",n))),mw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xE||e(n)&&t("serverVariable",n)&&r("object",n))),gw=Rc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Lv||e(n)&&t("mediaType",n)&&r("object",n)));class yw extends(dh(Zd,Ah,qd)){constructor(e){super(e),this.element=new vE,this.specPath=Do(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=$v.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Zd.prototype.ObjectElement.call(this,e);return $c(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return aE.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&GE(this.openApiSemanticElement.jsonSchemaDialect)?Ul(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&$c(this.openApiGenericElement.get("jsonSchemaDialect"))?Ul(this.openApiGenericElement.get("jsonSchemaDialect")):Ul(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return aE.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return aE.prototype.handleSchemaIdentifier.call(this,e)}}const vw=yw,bw=Ev.visitors.document.objects.Discriminator.$visitor,Ew=Ev.visitors.document.objects.XML.$visitor;class ww extends(dh(df,qd)){constructor(e){super(e),this.element=new hg,this.specPath=Do(["document","objects","Schema"])}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(uw).forEach(((e,t)=>{e.setMetaProperty("schemaName",Ul(t))})),t}}const xw=ww;class Sw extends vc.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(Sw.primaryClass)}}const _w=Sw;class Aw extends(dh(df,qd)){constructor(e){super(e),this.element=new _w,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(ow).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const Ow=Aw,Cw=Ev.visitors.document.objects.Example.$visitor,jw=Ev.visitors.document.objects.ExternalDocumentation.$visitor,kw=Ev.visitors.document.objects.Encoding.$visitor,Tw=Ev.visitors.document.objects.Paths.$visitor,Nw=Ev.visitors.document.objects.RequestBody.$visitor,Iw=Ev.visitors.document.objects.Callback.$visitor,Pw=Ev.visitors.document.objects.Response.$visitor,Mw=Ev.visitors.document.objects.Responses.$visitor,Rw=Ev.visitors.document.objects.Operation.$visitor,Dw=Ev.visitors.document.objects.PathItem.$visitor,$w=Ev.visitors.document.objects.SecurityScheme.$visitor,Fw=Ev.visitors.document.objects.OAuthFlows.$visitor,Bw=Ev.visitors.document.objects.OAuthFlow.$visitor;class Lw extends vc.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(Lw.primaryClass)}}const qw=Lw;class Uw extends(dh(df,qd)){constructor(e){super(e),this.element=new qw,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=df.prototype.ObjectElement.call(this,e);return this.element.filter(ow).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(rw).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Ul(t))})),t}}const zw=Uw,{JSONSchema:Jw,LinkDescription:Vw}=uE.visitors.document.objects,Ww={visitors:{value:Ev.visitors.value,document:{objects:{OpenApi:{$visitor:OE,fixedFields:{openapi:Ev.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:IE,servers:Ev.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:zw,components:{$ref:"#/visitors/document/objects/Components"},security:Ev.visitors.document.objects.OpenApi.fixedFields.security,tags:Ev.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:class extends CE{constructor(e){super(e),this.element=new Rv}},fixedFields:{title:Ev.visitors.document.objects.Info.fixedFields.title,description:Ev.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Ev.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Ev.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:class extends jE{constructor(e){super(e),this.element=new kv}},fixedFields:{name:Ev.visitors.document.objects.Contact.fixedFields.name,url:Ev.visitors.document.objects.Contact.fixedFields.url,email:Ev.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:class extends kE{constructor(e){super(e),this.element=new Fv}},fixedFields:{name:Ev.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Ev.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:class extends PE{constructor(e){super(e),this.element=new wE}},fixedFields:{url:Ev.visitors.document.objects.Server.fixedFields.url,description:Ev.visitors.document.objects.Server.fixedFields.description,variables:Ev.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:class extends ME{constructor(e){super(e),this.element=new xE}},fixedFields:{enum:Ev.visitors.document.objects.ServerVariable.fixedFields.enum,default:Ev.visitors.document.objects.ServerVariable.fixedFields.default,description:Ev.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:class extends $E{constructor(e){super(e),this.element=new jv}},fixedFields:{schemas:xw,responses:Ev.visitors.document.objects.Components.fixedFields.responses,parameters:Ev.visitors.document.objects.Components.fixedFields.parameters,examples:Ev.visitors.document.objects.Components.fixedFields.examples,requestBodies:Ev.visitors.document.objects.Components.fixedFields.requestBodies,headers:Ev.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Ev.visitors.document.objects.Components.fixedFields.securitySchemes,links:Ev.visitors.document.objects.Components.fixedFields.links,callbacks:Ev.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Ow}},Paths:{$visitor:class extends Tw{constructor(e){super(e),this.element=new Gv}}},PathItem:{$visitor:class extends Dw{constructor(e){super(e),this.element=new Hv}},fixedFields:{$ref:Ev.visitors.document.objects.PathItem.fixedFields.$ref,summary:Ev.visitors.document.objects.PathItem.fixedFields.summary,description:Ev.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Ev.visitors.document.objects.PathItem.fixedFields.servers,parameters:Ev.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:class extends Rw{constructor(e){super(e),this.element=new Wv}},fixedFields:{tags:Ev.visitors.document.objects.Operation.fixedFields.tags,summary:Ev.visitors.document.objects.Operation.fixedFields.summary,description:Ev.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Ev.visitors.document.objects.Operation.fixedFields.operationId,parameters:Ev.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Ev.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Ev.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Ev.visitors.document.objects.Operation.fixedFields.deprecated,security:Ev.visitors.document.objects.Operation.fixedFields.security,servers:Ev.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:class extends jw{constructor(e){super(e),this.element=new Pv}},fixedFields:{description:Ev.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Ev.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:class extends LE{constructor(e){super(e),this.element=new Kv}},fixedFields:{name:Ev.visitors.document.objects.Parameter.fixedFields.name,in:Ev.visitors.document.objects.Parameter.fixedFields.in,description:Ev.visitors.document.objects.Parameter.fixedFields.description,required:Ev.visitors.document.objects.Parameter.fixedFields.required,deprecated:Ev.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Ev.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Ev.visitors.document.objects.Parameter.fixedFields.style,explode:Ev.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Ev.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ev.visitors.document.objects.Parameter.fixedFields.example,examples:Ev.visitors.document.objects.Parameter.fixedFields.examples,content:Ev.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:class extends Nw{constructor(e){super(e),this.element=new Zv}},fixedFields:{description:Ev.visitors.document.objects.RequestBody.fixedFields.description,content:Ev.visitors.document.objects.RequestBody.fixedFields.content,required:Ev.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:class extends RE{constructor(e){super(e),this.element=new Lv}},fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Ev.visitors.document.objects.MediaType.fixedFields.example,examples:Ev.visitors.document.objects.MediaType.fixedFields.examples,encoding:Ev.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:class extends kw{constructor(e){super(e),this.element=new Nv}},fixedFields:{contentType:Ev.visitors.document.objects.Encoding.fixedFields.contentType,headers:Ev.visitors.document.objects.Encoding.fixedFields.headers,style:Ev.visitors.document.objects.Encoding.fixedFields.style,explode:Ev.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Ev.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:class extends Mw{constructor(e){super(e),this.element=new eb}},fixedFields:{default:Ev.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:class extends Pw{constructor(e){super(e),this.element=new Qv}},fixedFields:{description:Ev.visitors.document.objects.Response.fixedFields.description,headers:Ev.visitors.document.objects.Response.fixedFields.headers,content:Ev.visitors.document.objects.Response.fixedFields.content,links:Ev.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:class extends Iw{constructor(e){super(e),this.element=new Cv,this.specPath=e=>Hd(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Iw.prototype.ObjectElement.call(this,e);return this.element.filter(ow).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}},Example:{$visitor:class extends Cw{constructor(e){super(e),this.element=new Iv}},fixedFields:{summary:Ev.visitors.document.objects.Example.fixedFields.summary,description:Ev.visitors.document.objects.Example.fixedFields.description,value:Ev.visitors.document.objects.Example.fixedFields.value,externalValue:Ev.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:class extends TE{constructor(e){super(e),this.element=new Bv}},fixedFields:{operationRef:Ev.visitors.document.objects.Link.fixedFields.operationRef,operationId:Ev.visitors.document.objects.Link.fixedFields.operationId,parameters:Ev.visitors.document.objects.Link.fixedFields.parameters,requestBody:Ev.visitors.document.objects.Link.fixedFields.requestBody,description:Ev.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:class extends qE{constructor(e){super(e),this.element=new Mv}},fixedFields:{description:Ev.visitors.document.objects.Header.fixedFields.description,required:Ev.visitors.document.objects.Header.fixedFields.required,deprecated:Ev.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Ev.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Ev.visitors.document.objects.Header.fixedFields.style,explode:Ev.visitors.document.objects.Header.fixedFields.explode,allowReserved:Ev.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ev.visitors.document.objects.Header.fixedFields.example,examples:Ev.visitors.document.objects.Header.fixedFields.examples,content:Ev.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:class extends FE{constructor(e){super(e),this.element=new SE}},fixedFields:{name:Ev.visitors.document.objects.Tag.fixedFields.name,description:Ev.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:class extends BE{constructor(e){super(e),this.element=new Xv}},fixedFields:{$ref:Ev.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Vw},Schema:{$visitor:vw,fixedFields:{...Jw.fixedFields,$defs:class extends Rb{constructor(e){super(e),this.passingOptionsNames.push("parent")}},allOf:class extends $b{constructor(e){super(e),this.passingOptionsNames.push("parent")}},anyOf:class extends Bb{constructor(e){super(e),this.passingOptionsNames.push("parent")}},oneOf:class extends qb{constructor(e){super(e),this.passingOptionsNames.push("parent")}},not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:class extends zb{constructor(e){super(e),this.passingOptionsNames.push("parent")}},prefixItems:class extends lE{constructor(e){super(e),this.passingOptionsNames.push("parent")}},items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:class extends Kb{constructor(e){super(e),this.passingOptionsNames.push("parent")}},patternProperties:class extends Gb{constructor(e){super(e),this.passingOptionsNames.push("parent")}},additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:class extends bw{constructor(e){super(e),this.element=new Tv,this.canSupportSpecificationExtensions=!0}},fixedFields:{propertyName:Ev.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Ev.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:class extends Ew{constructor(e){super(e),this.element=new _E}},fixedFields:{name:Ev.visitors.document.objects.XML.fixedFields.name,namespace:Ev.visitors.document.objects.XML.fixedFields.namespace,prefix:Ev.visitors.document.objects.XML.fixedFields.prefix,attribute:Ev.visitors.document.objects.XML.fixedFields.attribute,wrapped:Ev.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:class extends $w{constructor(e){super(e),this.element=new EE}},fixedFields:{type:Ev.visitors.document.objects.SecurityScheme.fixedFields.type,description:Ev.visitors.document.objects.SecurityScheme.fixedFields.description,name:Ev.visitors.document.objects.SecurityScheme.fixedFields.name,in:Ev.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Ev.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Ev.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Ev.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:class extends Fw{constructor(e){super(e),this.element=new Uv}},fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:class extends Bw{constructor(e){super(e),this.element=new qv}},fixedFields:{authorizationUrl:Ev.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Ev.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Ev.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Ev.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:class extends DE{constructor(e){super(e),this.element=new bE}}}},extension:{$visitor:Ev.visitors.document.extension.$visitor}}}},Kw=e=>{if(Dc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Hw={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Pl},Gw={namespace:e=>{const{base:t}=e;return t.register("callback",Cv),t.register("components",jv),t.register("contact",kv),t.register("discriminator",Tv),t.register("encoding",Nv),t.register("example",Iv),t.register("externalDocumentation",Pv),t.register("header",Mv),t.register("info",Rv),t.register("jsonSchemaDialect",$v),t.register("license",Fv),t.register("link",Bv),t.register("mediaType",Lv),t.register("oAuthFlow",qv),t.register("oAuthFlows",Uv),t.register("openapi",zv),t.register("openApi3_1",Vv),t.register("operation",Wv),t.register("parameter",Kv),t.register("pathItem",Hv),t.register("paths",Gv),t.register("reference",Xv),t.register("requestBody",Zv),t.register("response",Qv),t.register("responses",eb),t.register("schema",vE),t.register("securityRequirement",bE),t.register("securityScheme",EE),t.register("server",wE),t.register("serverVariable",xE),t.register("tag",SE),t.register("xml",_E),t}},Yw=Gw,Xw=e=>{const t=e.reduce(((t,r,n)=>{if(zc(r)){const e=String(Ul(r.key));t.push(e)}else if(Uc(e[n-2])){const s=String(e[n-2].content.indexOf(r));t.push(s)}return t}),[]);return Du(t)},Zw=()=>{const e=iu(Yw);return{predicates:{...h,isElement:Dc,isStringElement:$c,isArrayElement:Uc,isObjectElement:qc,isMemberElement:zc,isServersElement:om,includesClasses:Zc,hasElementSourceMap:Yc},ancestorLineageToJSONPointer:Xw,namespace:e}},Qw=e=>(t,r={})=>((e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,vc.e)(e),s=_l(Ww),o=new(vl(t,s))({specObj:s});return Rl(n,o),uu(o.element,r,{toolboxCreator:Zw,visitorOptions:{keyMap:Hw,nodeTypeGetter:Kw}})})(t,{specPath:e,...r});Cv.refract=Qw(["visitors","document","objects","Callback","$visitor"]),jv.refract=Qw(["visitors","document","objects","Components","$visitor"]),kv.refract=Qw(["visitors","document","objects","Contact","$visitor"]),Iv.refract=Qw(["visitors","document","objects","Example","$visitor"]),Tv.refract=Qw(["visitors","document","objects","Discriminator","$visitor"]),Nv.refract=Qw(["visitors","document","objects","Encoding","$visitor"]),Pv.refract=Qw(["visitors","document","objects","ExternalDocumentation","$visitor"]),Mv.refract=Qw(["visitors","document","objects","Header","$visitor"]),Rv.refract=Qw(["visitors","document","objects","Info","$visitor"]),$v.refract=Qw(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Fv.refract=Qw(["visitors","document","objects","License","$visitor"]),Bv.refract=Qw(["visitors","document","objects","Link","$visitor"]),Lv.refract=Qw(["visitors","document","objects","MediaType","$visitor"]),qv.refract=Qw(["visitors","document","objects","OAuthFlow","$visitor"]),Uv.refract=Qw(["visitors","document","objects","OAuthFlows","$visitor"]),zv.refract=Qw(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Vv.refract=Qw(["visitors","document","objects","OpenApi","$visitor"]),Wv.refract=Qw(["visitors","document","objects","Operation","$visitor"]),Kv.refract=Qw(["visitors","document","objects","Parameter","$visitor"]),Hv.refract=Qw(["visitors","document","objects","PathItem","$visitor"]),Gv.refract=Qw(["visitors","document","objects","Paths","$visitor"]),Xv.refract=Qw(["visitors","document","objects","Reference","$visitor"]),Zv.refract=Qw(["visitors","document","objects","RequestBody","$visitor"]),Qv.refract=Qw(["visitors","document","objects","Response","$visitor"]),eb.refract=Qw(["visitors","document","objects","Responses","$visitor"]),vE.refract=Qw(["visitors","document","objects","Schema","$visitor"]),bE.refract=Qw(["visitors","document","objects","SecurityRequirement","$visitor"]),EE.refract=Qw(["visitors","document","objects","SecurityScheme","$visitor"]),wE.refract=Qw(["visitors","document","objects","Server","$visitor"]),xE.refract=Qw(["visitors","document","objects","ServerVariable","$visitor"]),SE.refract=Qw(["visitors","document","objects","Tag","$visitor"]),_E.refract=Qw(["visitors","document","objects","XML","$visitor"]);const ex=class extends qp{},tx=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new ex("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new ex("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new ex("latest method in MediaTypes class is not yet implemented.")}};class rx extends tx{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return _s(this.filterByFormat(e))}}const nx=new rx("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),sx=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:r,value:n}){this.uri=e,this.value=n,this.depth=t,this.refSet=r,this.errors=[]}},ox=class{rootRef;refs;circular;constructor({refs:e=[],circular:t=!1}={}){this.refs=[],this.circular=t,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=void 0===this.rootRef?e:this.rootRef,e.refSet=this),this}merge(e){for(const t of e.values())this.add(t);return this}has(e){const t=Qo(e)?e:e.uri;return Bo(this.find((e=>e.uri===t)))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach((e=>{e.refSet=void 0})),this.rootRef=void 0,this.refs.length=0}};function ix(e){return e}const ax=Zn(ix),cx={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:ax,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}},lx=Qn((function(e,t){return function(r){return function(n){return ko((function(e){return t(e,n)}),r(e(n)))}}}));var ux=function(e){return{value:e,map:function(t){return ux(t(e))}}};const px=es((function(e,t,r){return e((function(e){return ux(t(e))}))(r).value})),hx=Ks(""),dx=lx(vl(["resolve","baseURI"]),sb(["resolve","baseURI"])),fx=e=>hx(e)?hi():e,mx=(e,t)=>{const r=Kl(e,t);return px(dx,fx,r)},gx=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t="text/plain",data:r,parseResult:n}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=n}get extension(){return Qo(this.uri)?(e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""})(this.uri):""}toString(){return"string"==typeof this.data?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Js(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}},yx=class extends Kn{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},vx=async(e,t,r)=>{const n=await Promise.all(r.map(nu([e],t)));return r.filter(((e,t)=>n[t]))},bx=async(e,t,r)=>{let n;for(const s of r)try{const r=await s[e].call(s,...t);return{plugin:s,result:r}}catch(e){n=new yx("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)},Ex=class extends Kn{},wx=class extends Ex{},xx=class extends Kn{},Sx=class extends xx{},_x=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:r=!1,fileExtensions:n=[],mediaTypes:s=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=r,this.fileExtensions=n,this.mediaTypes=s}},Ax=class extends _x{constructor(e){super({...null!=e?e:{},name:"binary"})}canParse(e){return 0===this.fileExtensions.length||this.fileExtensions.includes(e.extension)}parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),n=new kc;if(0!==r.length){const e=new vc.Om(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new Sx(`Error parsing "${e.uri}"`,{cause:t})}}},Ox=class{name;constructor({name:e}){this.name=e}},Cx=class extends Ox{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canResolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));return void 0!==r&&r.canDereference(e,t)}async resolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));if(void 0===r)throw new wx('"openapi-3-1" dereference strategy is not available.');const n=new ox,s=mx(t,{resolve:{internal:!1},dereference:{refSet:n}});return await r.dereference(e,s),n}},jx=class{name;constructor({name:e}){this.name=e}},kx=class extends jx{timeout;redirects;withCredentials;constructor(e){const{name:t="http-resolver",timeout:r=5e3,redirects:n=5,withCredentials:s=!1}=null!=e?e:{};super({name:t}),this.timeout=r,this.redirects=n,this.withCredentials=s}canRead(e){return ci(e.uri)}},Tx=class extends Kn{},Nx=class extends Tx{},{AbortController:Ix,AbortSignal:Px}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=Ix),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=Px);const Mx=class extends kx{swaggerHTTPClient=Ua;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Ua,swaggerHTTPClientConfig:t={},...r}={}){super({...r,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=t}getHttpClient(){return this.swaggerHTTPClient}async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:n}=r,s=setTimeout((()=>{r.abort()}),this.timeout),o=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",i=0===this.redirects?"error":"follow",a=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:n,userFetch:async(e,t)=>{let r=await fetch(e,t);try{r.headers.delete("Content-Type")}catch{r=new Response(r.body,{...r,headers:new Headers(r.headers)}),r.headers.delete("Content-Type")}return r},credentials:o,redirect:i,follow:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new Nx(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}},Rx=(e,t=au)=>{if(Qo(e))try{return t.fromRefract(JSON.parse(e))}catch{}return oc(e)&&gl("element",e)?t.fromRefract(e):t.toElement(e)},Dx=class extends _x{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){var t,r;const n=0===this.fileExtensions.length||yi()(t=this.fileExtensions).call(t,e.extension),s=yi()(r=this.mediaTypes).call(r,e.mediaType);if(!n)return!1;if(s)return!0;if(!s)try{return JSON.parse(e.toString()),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Sx("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new kc,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=Rx(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new Sx(`Error parsing "${e.uri}"`,{cause:t})}}},$x=class extends _x{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){var t,r;const n=0===this.fileExtensions.length||yi()(t=this.fileExtensions).call(t,e.extension),s=yi()(r=this.mediaTypes).call(r,e.mediaType);if(!n)return!1;if(s)return!0;if(!s)try{return nr.load(e.toString(),{schema:Wt}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Sx("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new kc,r=e.toString();try{const e=nr.load(r,{schema:Wt});if(this.allowEmpty&&void 0===e)return t;const n=Rx(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new Sx(`Error parsing "${e.uri}"`,{cause:t})}}},Fx=class extends _x{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new rx(...nx.filterByFormat("generic"),...nx.filterByFormat("json")),...e})}async canParse(e){var t,r;const n=0===this.fileExtensions.length||yi()(t=this.fileExtensions).call(t,e.extension),s=yi()(r=this.mediaTypes).call(r,e.mediaType);if(!n)return!1;if(s)return!0;if(!s)try{const t=e.toString();return JSON.parse(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Sx("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new kc,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=Vv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new Sx(`Error parsing "${e.uri}"`,{cause:t})}}},Bx=class extends _x{detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new rx(...nx.filterByFormat("generic"),...nx.filterByFormat("yaml")),...e})}async canParse(e){var t,r;const n=0===this.fileExtensions.length||yi()(t=this.fileExtensions).call(t,e.extension),s=yi()(r=this.mediaTypes).call(r,e.mediaType);if(!n)return!1;if(s)return!0;if(!s)try{const t=e.toString();return nr.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Sx("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new kc,r=e.toString();try{const e=nr.load(r,{schema:Wt});if(this.allowEmpty&&void 0===e)return t;const n=Vv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new Sx(`Error parsing "${e.uri}"`,{cause:t})}}},Lx=es((function(e,t,r){return Ks(e,xs(t,r))})),qx=class{name;constructor({name:e}){this.name=e}};var Ux=Qn((function(e,t){return Sc(Qs(e),t)}));const zx=Ux;var Jx=r(8068);const Vx=class extends Hn{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class Wx{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new Jx({length:e}),this.identityMap=new WeakMap}identify(e){if(!Dc(e))throw new Vx("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&$c(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new vc.Om(this.generateId());return this.identityMap.set(e,t),t}forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)}generateId(){return this.uuid.randomUUID()}}new Wx;const Kx=es((function(e,t,r){return bs(e,Wa(t,r))})),Hx=(e,t)=>{const r=new Ml({predicate:e,returnOnTrue:rl});return Rl(t,r),Kx(void 0,[0],r.result)},Gx=class extends Kn{},Yx=class extends Gx{},Xx=class extends Gx{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},Zx=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Qx=e=>{const t=ui(e);return Sl("#",t)},eS=(e,t)=>{const r=(e=>{if(!Zx(e))throw new Xx(e);return e})(e),n=Hx((e=>uw(e)&&Ul(e.$anchor)===r),t);if(Fo(n))throw new Yx(`Evaluation failed on token: "${r}"`);return n},tS=class extends Kn{},rS=class extends tS{},nS=(e,t)=>{if(void 0===t.$ref)return;const r=ui(Ul(t.$ref)),n=Ul(t.meta.get("ancestorsSchemaIdentifiers")),s=fs(((e,t)=>di(e,fi(pi(t)))),e,[...n,Ul(t.$ref)]);return`${s}${"#"===r?"":r}`},sS=e=>{if(sS.cache.has(e))return sS.cache.get(e);const t=vE.refract(e);return sS.cache.set(e,t),t};sS.cache=new WeakMap;const oS=e=>Gc(e)?sS(e):e,iS=(e,t)=>{const{cache:r}=iS,n=pi(e),s=e=>uw(e)&&void 0!==e.$id;if(!r.has(t)){const e=((e,t)=>{const r=new Ml({predicate:e});return Rl(t,r),new vc.G6(r.result)})(s,t);r.set(t,Array.from(e))}const o=r.get(t).find((e=>((e,t)=>{if(void 0===t.$id)return;const r=Ul(t.meta.get("ancestorsSchemaIdentifiers"));return fs(((e,t)=>di(e,fi(pi(t)))),e,r)})(n,e)===n));if(Fo(o))throw new rS(`Evaluation failed on URI: "${e}"`);return Zx(Qx(e))?eS(Qx(e),o):Wu(o,fu(e))};iS.cache=new WeakMap;const aS=class extends Ex{},cS=class extends Tx{},lS=class extends Nx{},uS="apidom-file-cache",pS=async({cacheKey:e,result:t,error:r,cacheTTL:n})=>{if(0!==n)try{const n={cachedResult:t,cachedError:r,timestamp:Date.now()},s=await caches.open(uS),o=new Response(JSON.stringify(n),{headers:{"Content-Type":"application/json"}});await s.put(e,o)}catch(e){console.error("CacheStorage is not available")}},hS=async(e,t)=>{const r=new gx({uri:fi(pi(e)),mediaType:t.parse.mediaType}),n=await(async(e,t)=>{const{cacheTTL:r=0}=t.resolve.resolverOpts,n=`read_${e.uri}`,{cachedResult:s,cachedError:o}=await(async({cacheKey:e,cacheTTL:t})=>{if(0===t)return{cachedResult:null,cachedError:null};try{const r=await caches.open(uS),n=await r.match(e);if(n){const{cachedResult:s,cachedError:o,timestamp:i}=await n.json();if(Date.now()-i<t)return{cachedResult:s,cachedError:o};await r.delete(e)}}catch(e){return console.log("There was an error parsing the response"),{cachedResult:null,cachedError:null}}return{cachedResult:null,cachedError:null}})({cacheKey:n,cacheTTL:r});if(null!==s)return s;if(null!==o)throw new Tx(`Error while reading file "${e.uri}"`,{cause:o});const i=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),a=await vx("canRead",[e,t],i);if(eu(a))throw new lS(e.uri);try{const{result:t}=await bx("read",[e],a),s=new gx({...e,data:t}).toString();return await pS({cacheKey:n,result:s,error:null,cacheTTL:r}),t}catch(t){var c,l,u;throw await pS({cacheKey:n,result:null,error:null!==(c=null!==(l=null==t||null===(u=t.cause)||void 0===u?void 0:u.cause)&&void 0!==l?l:null==t?void 0:t.cause)&&void 0!==c?c:t,cacheTTL:r}),new Tx(`Error while reading file "${e.uri}"`,{cause:t})}})(r,t);return(async(e,t)=>{const r=t.parse.parsers.map((e=>{const r=Object.create(e);return Object.assign(r,t.parse.parserOpts)})),n=await vx("canParse",[e,t],r);if(eu(n))throw new lS(e.uri);try{const{plugin:r,result:s}=await bx("parse",[e,t],n);return!r.allowEmpty&&s.isEmpty?Promise.reject(new xx(`Error while parsing file "${e.uri}". File is empty.`)):s}catch(t){throw new xx(`Error while parsing file "${e.uri}"`,{cause:t})}})(new gx({...r,data:n}),t)};class dS extends Array{includesCycle(e){return this.filter((t=>t.has(e))).length>1}includes(e,t){return e instanceof Set?super.includes(e,t):this.some((t=>t.has(e)))}findItem(e){for(const t of this)for(const r of t)if(Dc(r)&&e(r))return r}}const fS=Rl[Symbol.for("nodejs.util.promisify.custom")],mS=new Wx,gS=(e,t,r,n)=>{zc(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class yS{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;constructor({reference:e,namespace:t,options:r,indirections:n=[],ancestors:s=new dS,refractCache:o=new Map,allOfDiscriminatorMapping:i=new Map}){this.indirections=n,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new dS(...s),this.refractCache=o,this.allOfDiscriminatorMapping=i}handleDereferenceError(e,t,r){var n,s;if(null===(n=this.options.dereference.dereferenceOpts)||void 0===n||!n.continueOnError)throw e;if(r){const t=[...r].find((e=>qc(e)&&e.getMetaProperty("ref-referencing-element")));var o;t&&(null===(o=this.options.dereference.dereferenceOpts)||void 0===o||o.errors.push({error:e,refEl:t.getMetaProperty("ref-referencing-element")}))}null===(s=this.options.dereference.dereferenceOpts)||void 0===s||s.errors.push({error:e,refEl:t})}getNestedVisitorOptions(e){var t,r;return{...this.options,resolve:{...this.options.resolve,external:(null===(t=this.options.dereference)||void 0===t||null===(t=t.dereferenceOpts)||void 0===t||!t.skipNestedExternal||!Ul(e.get("$ref")).startsWith("#"))&&this.options.resolve.external},dereference:{...this.options.dereference,dereferenceOpts:{...null===(r=this.options.dereference)||void 0===r?void 0:r.dereferenceOpts,continueOnError:!1}}}}toBaseURI(e){return di(this.reference.uri,fi(pi(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new cS(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(Lx(t,"uri"));const n=await hS(mi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=new sx({uri:t,value:Ol(n),depth:this.reference.depth+1});if(r.add(s),this.options.dereference.immutable){const e=new sx({uri:`immutable://${t}`,value:n,depth:this.reference.depth+1});r.add(e)}return s}toAncestorLineage(e){const t=new Set(e.filter(Dc));return[new dS(...this.ancestors,t),t]}OpenApi3_1Element={leave:(e,t,r,n,s,o)=>{var i;if(null===(i=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===i||!i.dereferenceDiscriminatorMapping)return;const a=kl(e);return a.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),o.replaceWith(a,gS),r?void 0:a}};async ReferenceElement(e,t,r,n,s,o){var i,a;if(this.indirections.includes(e))return!1;const[c,l]=this.toAncestorLineage([...s,r]),u=this.toBaseURI(Ul(e.$ref)),p=pi(this.reference.uri)===u,h=!p;if(!this.options.resolve.internal&&p)return!1;if(!this.options.resolve.external&&h)return!1;let d;try{d=await this.toReference(Ul(e.$ref))}catch(t){return this.handleDereferenceError(t,e,l)}const f=di(u,Ul(e.$ref));this.indirections.push(e);const m=fu(f);let g;try{g=Wu(d.value.result,m)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(g.id=mS.identify(g),Gc(g)){const t=Ul(e.meta.get("referenced-element")),r=`${t}-${Ul(mS.identify(g))}`;this.refractCache.has(r)?g=this.refractCache.get(r):Hd(g)?(g=Xv.refract(g),g.setMetaProperty("referenced-element",t),this.refractCache.set(r,g)):(g=this.namespace.getElementClass(t).refract(g),this.refractCache.set(r,g))}if(e===g){const t=new Kn("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(this.indirections.length>this.options.dereference.maxDepth){const t=new aS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(c.includes(g)){if(d.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Kn("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if("replace"===this.options.dereference.circular){var y,v;const t=new vc.sI(g.id,{type:"reference",uri:d.uri,$ref:Ul(e.$ref)}),n=(null!==(y=null===(v=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===v?void 0:v.circularReplacer)&&void 0!==y?y:this.options.dereference.circularReplacer)(t);return o.replaceWith(n,gS),!r&&n}}const b=pi(d.refSet.rootRef.uri)!==d.uri,E=["error","replace"].includes(this.options.dereference.circular);if((h||b||ow(g)||E||null!==(i=this.options.dereference.dereferenceOpts)&&void 0!==i&&i.continueOnError)&&!c.includesCycle(g)){l.add(e);const t=new yS({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{g=await fS(g,t,{keyMap:Hw,nodeTypeGetter:Kw})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,l)}l.delete(e)}this.indirections.pop();const w=kl(g);return w.setMetaProperty("id",mS.generateId()),w.setMetaProperty("ref-fields",{$ref:Ul(e.$ref),description:Ul(e.description),summary:Ul(e.summary)}),w.setMetaProperty("ref-origin",d.uri),w.setMetaProperty("ref-referencing-element-id",Ol(mS.identify(e))),null!==(a=this.options.dereference.dereferenceOpts)&&void 0!==a&&a.continueOnError&&w.setMetaProperty("ref-referencing-element",e),qc(g)&&qc(w)&&(e.hasKey("description")&&"description"in g&&(w.remove("description"),w.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in g&&(w.remove("summary"),w.set("summary",e.get("summary")))),o.replaceWith(w,gS),!r&&w}async PathItemElement(e,t,r,n,s,o){var i;if(!$c(e.$ref))return;if(this.indirections.includes(e))return!1;const[a,c]=this.toAncestorLineage([...s,r]),l=this.toBaseURI(Ul(e.$ref)),u=pi(this.reference.uri)===l,p=!u;if(!this.options.resolve.internal&&u)return;if(!this.options.resolve.external&&p)return;let h;try{h=await this.toReference(Ul(e.$ref))}catch(t){return this.handleDereferenceError(t,e,c)}const d=di(l,Ul(e.$ref));this.indirections.push(e);const f=fu(d);let m;try{m=Wu(h.value.result,f)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(m.id=mS.identify(m),Gc(m)){const e=`path-item-${Ul(mS.identify(m))}`;this.refractCache.has(e)?m=this.refractCache.get(e):(m=Hv.refract(m),this.refractCache.set(e,m))}if(e===m){const t=new Kn("Recursive Path Item Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(this.indirections.length>this.options.dereference.maxDepth){const t=new aS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(a.includes(m)){if(h.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Kn("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if("replace"===this.options.dereference.circular){var g,y;const t=new vc.sI(m.id,{type:"path-item",uri:h.uri,$ref:Ul(e.$ref)}),n=(null!==(g=null===(y=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===y?void 0:y.circularReplacer)&&void 0!==g?g:this.options.dereference.circularReplacer)(t);return o.replaceWith(n,gS),!r&&n}}const v=pi(h.refSet.rootRef.uri)!==h.uri,b=["error","replace"].includes(this.options.dereference.circular);if((p||v||rw(m)&&$c(m.$ref)||b||null!==(i=this.options.dereference.dereferenceOpts)&&void 0!==i&&i.continueOnError)&&!a.includesCycle(m)){c.add(e);const t=new yS({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{m=await fS(m,t,{keyMap:Hw,nodeTypeGetter:Kw})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}c.delete(e)}if(this.indirections.pop(),rw(m)){var E;const t=new Hv([...m.content],Ol(m.meta),Ol(m.attributes));t.setMetaProperty("id",mS.generateId()),e.forEach(((e,r,n)=>{t.remove(Ul(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ul(e.$ref)}),t.setMetaProperty("ref-origin",h.uri),t.setMetaProperty("ref-referencing-element-id",Ol(mS.identify(e))),null!==(E=this.options.dereference.dereferenceOpts)&&void 0!==E&&E.continueOnError&&t.setMetaProperty("ref-referencing-element",e),m=t}return o.replaceWith(m,gS),r?void 0:m}async LinkElement(e,t,r,n,s,o){if(!$c(e.operationRef)&&!$c(e.operationId))return;if($c(e.operationRef)&&$c(e.operationId)){const t=new Kn("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(t,e)}let i;if($c(e.operationRef)){var a;const t=fu(Ul(e.operationRef)),n=this.toBaseURI(Ul(e.operationRef)),s=pi(this.reference.uri)===n,c=!s;if(!this.options.resolve.internal&&s)return;if(!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(Ul(e.operationRef)),i=Wu(l.value.result,t)}catch(t){return this.handleDereferenceError(t,e)}if(Gc(i)){const e=`operation-${Ul(mS.identify(i))}`;this.refractCache.has(e)?i=this.refractCache.get(e):(i=Wv.refract(i),this.refractCache.set(e,i))}i=kl(i),i.setMetaProperty("ref-origin",l.uri);const u=kl(e);return null===(a=u.operationRef)||void 0===a||a.meta.set("operation",i),o.replaceWith(u,gS),r?void 0:u}if($c(e.operationId)){var c;const t=Ul(e.operationId);let n;try{n=await this.toReference(mi(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(i=Hx((e=>ew(e)&&Dc(e.operationId)&&e.operationId.equals(t)),n.value.result),Fo(i)){const r=new Kn(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(r,e)}const s=kl(e);return null===(c=s.operationId)||void 0===c||c.meta.set("operation",i),o.replaceWith(s,gS),r?void 0:s}}async ExampleElement(e,t,r,n,s,o){if(!$c(e.externalValue))return;if(e.hasKey("value")&&$c(e.externalValue)){const t=new Kn("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(t,e)}const i=this.toBaseURI(Ul(e.externalValue)),a=pi(this.reference.uri)===i,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(Ul(e.externalValue))}catch(t){return this.handleDereferenceError(t,e)}const u=kl(l.value.result);u.setMetaProperty("ref-origin",l.uri);const p=kl(e);return p.value=u,o.replaceWith(p,gS),r?void 0:p}async MemberElement(e,t,r,n,s,o){var i;const a=s[s.length-1];if(!qc(a)||!a.classes.contains("discriminator-mapping"))return;if(null===(i=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===i||!i.dereferenceDiscriminatorMapping)return!1;if(!$c(e.key)||!$c(e.value))return!1;if(this.indirections.includes(e))return!1;this.indirections.push(e);const[c,l]=this.toAncestorLineage([...s,r]),u=[...l].findLast(uw),p=Ol(u.getMetaProperty("ancestorsSchemaIdentifiers")),h=Ul(e.value),d=/^[a-zA-Z0-9\\.\\-_]+$/.test(h)?`#/components/schemas/${h}`:h,f=new vE({$ref:d});f.setMetaProperty("ancestorsSchemaIdentifiers",p),l.add(f);const m=new yS({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(f),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});let g;try{g=await fS(f,m,{keyMap:Hw,nodeTypeGetter:Kw})}catch(e){return this.handleDereferenceError(e,f,l)}l.delete(f),this.indirections.pop();const y=kl(e);return y.value.setMetaProperty("ref-schema",g),o.replaceWith(y,gS),r?void 0:y}async SchemaElement(e,t,r,n,s,o){var i;if(!$c(e.$ref))return;if(this.indirections.includes(e))return!1;const[a,c]=this.toAncestorLineage([...s,r]);let l;try{l=await this.toReference(mi(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e,c)}let{uri:u}=l;const p=nS(u,e),h=pi(p),d=new gx({uri:h}),f=zx((e=>e.canRead(d)),this.options.resolve.resolvers),m=!f;let g,y=pi(this.reference.uri)===p,v=!y;this.indirections.push(e);try{if(f||m){u=this.toBaseURI(p);const e=p,t=oS(l.value.result);if(g=iS(e,t),g=oS(g),g.id=mS.identify(g),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return}else{if(u=this.toBaseURI(p),y=pi(this.reference.uri)===u,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;l=await this.toReference(mi(p));const e=fu(p),t=oS(l.value.result);g=Wu(t,e),g=oS(g),g.id=mS.identify(g)}}catch(t){if(!(m&&t instanceof rS))return this.indirections.pop(),this.handleDereferenceError(t,e,c);if(Zx(Qx(p))){if(y=pi(this.reference.uri)===u,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;try{l=await this.toReference(mi(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}const t=Qx(p),r=oS(l.value.result);try{g=eS(t,r)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}g=oS(g),g.id=mS.identify(g)}else{if(u=this.toBaseURI(p),y=pi(this.reference.uri)===u,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;try{l=await this.toReference(mi(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}const t=fu(p),r=oS(l.value.result);try{g=Wu(r,t)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}g=oS(g),g.id=mS.identify(g)}}if(e===g){const t=new Kn("Recursive Schema Object reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(this.indirections.length>this.options.dereference.maxDepth){const t=new aS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(a.includes(g)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new Kn("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if("replace"===this.options.dereference.circular){var b,E;const t=new vc.sI(g.id,{type:"json-schema",uri:l.uri,$ref:Ul(e.$ref)}),n=(null!==(b=null===(E=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===E?void 0:E.circularReplacer)&&void 0!==b?b:this.options.dereference.circularReplacer)(t);return o.replaceWith(n,gS),!r&&n}}const w=pi(l.refSet.rootRef.uri)!==l.uri,x=["error","replace"].includes(this.options.dereference.circular);if((v||w||uw(g)&&$c(g.$ref)||x||null!==(i=this.options.dereference.dereferenceOpts)&&void 0!==i&&i.continueOnError)&&!a.includesCycle(g)){c.add(e);const t=new yS({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{g=await fS(g,t,{keyMap:Hw,nodeTypeGetter:Kw})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}c.delete(e)}if(this.indirections.pop(),pw(g)){const t=Ol(g);return t.setMetaProperty("id",mS.generateId()),t.setMetaProperty("ref-fields",{$ref:Ul(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Ol(mS.identify(e))),o.replaceWith(t,gS),!r&&t}if(uw(g)){var S,_;const t=new vE([...g.content],Ol(g.meta),Ol(g.attributes));if(t.setMetaProperty("id",mS.generateId()),e.forEach(((e,r,n)=>{t.remove(Ul(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ul(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Ol(mS.identify(e))),null!==(S=this.options.dereference.dereferenceOpts)&&void 0!==S&&S.continueOnError&&t.setMetaProperty("ref-referencing-element",e),null!==(_=this.options.dereference.strategyOpts["openapi-3-1"])&&void 0!==_&&_.dereferenceDiscriminatorMapping){var A;const e=s[s.length-1],r=[...c].findLast(uw),n=null==r?void 0:r.getMetaProperty("schemaName"),o=Ul(t.getMetaProperty("schemaName"));if(o&&n&&null!=e&&null!==(A=e.classes)&&void 0!==A&&A.contains("json-schema-allOf")){var O;const e=null!==(O=this.allOfDiscriminatorMapping.get(o))&&void 0!==O?O:[];e.push(r),this.allOfDiscriminatorMapping.set(o,e)}}g=t}return o.replaceWith(g,gS),r?void 0:g}}const vS=yS,bS=Rl[Symbol.for("nodejs.util.promisify.custom")],ES=class extends qx{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?nx.includes(e.mediaType):QE(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const n=iu(Yw),s=null!==(r=t.dereference.refSet)&&void 0!==r?r:new ox,o=new ox;let i,a=s;s.has(e.uri)?i=s.find(Lx(e.uri,"uri")):(i=new sx({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map((e=>new sx({...e,value:Ol(e.value)}))).forEach((e=>o.add(e))),i=o.find((t=>t.uri===e.uri)),a=o);const c=new vS({reference:i,namespace:n,options:t}),l=await bS(a.rootRef.value,c,{keyMap:Hw,nodeTypeGetter:Kw});return t.dereference.immutable&&o.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new sx({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),o.clean(),l}},wS=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(zc(r)){const t=String(Ul(r.key));e.push(t)}else if(Uc(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])},xS=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,n,s)=>{void 0!==e.properties&&qc(e.properties)&&e.properties.forEach((t=>{if(qc(t))try{const e=this.modelPropertyMacro(Ul(t));t.set("default",e)}catch(t){const n=new Error(t,{cause:t});n.fullPath=[...wS([...s,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};var SS=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=no,e.prototype["@@transducer/result"]=so,e.prototype["@@transducer/step"]=function(e,t){return Is(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function _S(e){return function(t){return new SS(e,t)}}const AS=Qn(to([],_S,(function(e,t){for(var r,n=0,s=t.length,o=[];n<s;)Is(e,r=t[n],o)||(o[o.length]=r),n+=1;return o}))),OS=class{options;SchemaElement={leave(e,t,r,n,s){if(void 0!==e.allOf){if(!Uc(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...wS([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)e.remove("allOf");else{if(!e.allOf.content.every(uw)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...wS([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=eh.all([...t.content,e],{customMerge:e=>"enum"===Ul(e)?(e,t)=>{if(Zc(["json-schema-enum"],e)&&Zc(["json-schema-enum"],t)){const r=(e,t)=>!(Uc(e)||Uc(t)||qc(e)||qc(t))&&e.equals(Ul(t)),n=kl(e);return n.content=AS(r)([...e.content,...t.content]),n}return eh(e,t)}:eh});if(e.hasKey("$$ref")||r.remove("$$ref"),e.hasKey("example")){const t=r.getMember("example");t&&(t.value=e.get("example"))}if(e.hasKey("examples")){const t=r.getMember("examples");t&&(t.value=e.get("examples"))}e.content=r.content}}}}};constructor({options:e}){this.options=e}},CS=class{parameterMacro;options;#n;OperationElement={enter:e=>{this.#n=e},leave:()=>{this.#n=void 0}};ParameterElement={leave:(e,t,r,n,s)=>{const o=this.#n?Ul(this.#n):null,i=Ul(e);try{const t=this.parameterMacro(o,i);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=wS([...s,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},jS=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t},kS=class extends Hn{},{wrapError:TS}=aa,NS=Rl[Symbol.for("nodejs.util.promisify.custom")],IS=new Wx,PS=(e,t,r,n)=>{zc(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class MS extends vS{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...n}){super(n),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,n,s,o){try{var i,a;if(yi()(i=this.indirections).call(i,e))return!1;const[t,n]=this.toAncestorLineage([...s,r]),c=this.toBaseURI(Ul(e.$ref)),l=pi(this.reference.uri)===c,u=!l;if(!this.options.resolve.internal&&l)return!1;if(!this.options.resolve.external&&u)return!1;const p=await this.toReference(Ul(e.$ref)),h=di(c,Ul(e.$ref));this.indirections.push(e);const d=fu(h);let f=Wu(p.value.result,d);if(f.id=IS.identify(f),Gc(f)){const t=Ul(e.meta.get("referenced-element")),r=`${t}-${Ul(IS.identify(f))}`;this.refractCache.has(r)?f=this.refractCache.get(r):Hd(f)?(f=Xv.refract(f),f.setMetaProperty("referenced-element",t),this.refractCache.set(r,f)):(f=this.namespace.getElementClass(t).refract(f),this.refractCache.set(r,f))}if(e===f)throw new Kn("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(yi()(t).call(t,f)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Kn("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new vc.sI(f.id,{type:"reference",uri:p.uri,$ref:Ul(e.$ref),baseURI:h,referencingElement:e}),n=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return o.replaceWith(t,PS),!r&&n}}const m=pi(p.refSet.rootRef.uri)!==p.uri,g=yi()(a=["error","replace"]).call(a,this.options.dereference.circular);if((u||m||ow(f)||g)&&!t.includesCycle(f)){n.add(e);const o=new MS({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...wS([...s,r,e]),"$ref"]});f=await NS(f,o,{keyMap:Hw,nodeTypeGetter:Kw}),n.delete(e)}this.indirections.pop();const y=kl(f);if(y.setMetaProperty("ref-fields",{$ref:Ul(e.$ref),description:Ul(e.description),summary:Ul(e.summary)}),y.setMetaProperty("ref-origin",p.uri),y.setMetaProperty("ref-referencing-element-id",Ol(IS.identify(e))),qc(f)&&(e.hasKey("description")&&"description"in f&&(y.remove("description"),y.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in f&&(y.remove("summary"),y.set("summary",e.get("summary")))),this.allowMetaPatches&&qc(y)&&!y.hasKey("$$ref")){const e=di(c,h);y.set("$$ref",e)}return o.replaceWith(y,PS),!r&&y}catch(t){const n=jS(t),o=TS(n,{baseDoc:this.reference.uri,$ref:Ul(e.$ref),pointer:fu(Ul(e.$ref)),fullPath:this.basePath??[...wS([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(o)}}async PathItemElement(e,t,r,n,s,o){try{var i,a;if(!$c(e.$ref))return;if(yi()(i=this.indirections).call(i,e))return!1;if(Zc(["cycle"],e.$ref))return!1;const[t,n]=this.toAncestorLineage([...s,r]),c=this.toBaseURI(Ul(e.$ref)),l=pi(this.reference.uri)===c,u=!l;if(!this.options.resolve.internal&&l)return;if(!this.options.resolve.external&&u)return;const p=await this.toReference(Ul(e.$ref)),h=di(c,Ul(e.$ref));this.indirections.push(e);const d=fu(h);let f=Wu(p.value.result,d);if(f.id=IS.identify(f),Gc(f)){const e=`path-item-${Ul(IS.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=Hv.refract(f),this.refractCache.set(e,f))}if(e===f)throw new Kn("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(yi()(t).call(t,f)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Kn("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new vc.sI(f.id,{type:"path-item",uri:p.uri,$ref:Ul(e.$ref),baseURI:h,referencingElement:e}),n=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return o.replaceWith(t,PS),!r&&n}}const m=pi(p.refSet.rootRef.uri)!==p.uri,g=yi()(a=["error","replace"]).call(a,this.options.dereference.circular);if((u||m||rw(f)&&$c(f.$ref)||g)&&!t.includesCycle(f)){n.add(e);const o=new MS({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...wS([...s,r,e]),"$ref"]});f=await NS(f,o,{keyMap:Hw,nodeTypeGetter:Kw}),n.delete(e)}if(this.indirections.pop(),rw(f)){const t=new Hv([...f.content],Ol(f.meta),Ol(f.attributes));if(e.forEach(((e,r,n)=>{t.remove(Ul(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ul(e.$ref)}),t.setMetaProperty("ref-origin",p.uri),t.setMetaProperty("ref-referencing-element-id",Ol(IS.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=di(c,h);t.set("$$ref",e)}f=t}return o.replaceWith(f,PS),r?void 0:f}catch(t){const n=jS(t),o=TS(n,{baseDoc:this.reference.uri,$ref:Ul(e.$ref),pointer:fu(Ul(e.$ref)),fullPath:this.basePath??[...wS([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(o)}}async SchemaElement(e,t,r,n,s,o){try{var i,a;if(!$c(e.$ref))return;if(yi()(i=this.indirections).call(i,e))return!1;const[t,n]=this.toAncestorLineage([...s,r]);let c=await this.toReference(mi(this.reference.uri)),{uri:l}=c;const u=nS(l,e),p=pi(u),h=new gx({uri:p}),d=!this.options.resolve.resolvers.some((e=>e.canRead(h))),f=!d;let m,g=pi(this.reference.uri)===u,y=!g;this.indirections.push(e);try{if(d||f){l=this.toBaseURI(u);const e=u,t=oS(c.value.result);if(m=iS(e,t),m=oS(m),m.id=IS.identify(m),!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&y)return}else{if(l=this.toBaseURI(u),g=pi(this.reference.uri)===l,y=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&y)return;c=await this.toReference(mi(u));const e=fu(u),t=oS(c.value.result);m=Wu(t,e),m=oS(m),m.id=IS.identify(m)}}catch(e){if(!(f&&e instanceof rS))throw e;if(Zx(Qx(u))){if(g=pi(this.reference.uri)===l,y=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&y)return;c=await this.toReference(mi(u));const e=Qx(u),t=oS(c.value.result);m=eS(e,t),m=oS(m),m.id=IS.identify(m)}else{if(l=this.toBaseURI(Ul(u)),g=pi(this.reference.uri)===l,y=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&y)return;c=await this.toReference(mi(u));const e=fu(u),t=oS(c.value.result);m=Wu(t,e),m=oS(m),m.id=IS.identify(m)}}if(e===m)throw new Kn("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(yi()(t).call(t,m)){if(c.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Kn("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new vc.sI(m.id,{type:"json-schema",uri:c.uri,$ref:Ul(e.$ref),baseURI:di(l,u),referencingElement:e}),n=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return o.replaceWith(n,PS),!r&&n}}const v=pi(c.refSet.rootRef.uri)!==c.uri,b=yi()(a=["error","replace"]).call(a,this.options.dereference.circular);if((y||v||uw(m)&&$c(m.$ref)||b)&&!t.includesCycle(m)){n.add(e);const o=new MS({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...wS([...s,r,e]),"$ref"]});m=await NS(m,o,{keyMap:Hw,nodeTypeGetter:Kw}),n.delete(e)}if(this.indirections.pop(),pw(m)){const t=Ol(m);return t.setMetaProperty("ref-fields",{$ref:Ul(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",Ol(IS.identify(e))),o.replaceWith(t,PS),!r&&t}if(uw(m)){const t=new vE([...m.content],Ol(m.meta),Ol(m.attributes));if(e.forEach(((e,r,n)=>{t.remove(Ul(r)),t.content.push(n)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Ul(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",Ol(IS.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=di(l,u);t.set("$$ref",e)}m=t}return o.replaceWith(m,PS),r?void 0:m}catch(t){const n=jS(t),o=new kS(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:Ul(e.$ref),fullPath:this.basePath??[...wS([...s,r,e]),"$ref"],cause:n});return void this.options.dereference.dereferenceOpts?.errors?.push?.(o)}}async LinkElement(){}async ExampleElement(e,t,r,n,s,o){try{return await super.ExampleElement(e,t,r,n,s,o)}catch(t){const n=jS(t),o=TS(n,{baseDoc:this.reference.uri,externalValue:Ul(e.externalValue),fullPath:this.basePath??[...wS([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(o)}}}const RS=MS,DS=il[Symbol.for("nodejs.util.promisify.custom")],$S=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:n,...s}){const o=[];o.push(new RS({...s,options:n})),"function"==typeof t&&o.push(new xS({modelPropertyMacro:t,options:n})),"strict"!==r&&o.push(new OS({options:n})),"function"==typeof e&&o.push(new CS({parameterMacro:e,options:n}));const i=DS(o,{nodeTypeGetter:Kw});Object.assign(this,i)}},FS=Rl[Symbol.for("nodejs.util.promisify.custom")],BS=class extends ES{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:n="non-strict",ancestors:s=[],...o}={}){super({...o}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=n,this.ancestors=[...s]}async dereference(e,t){const r=iu(Yw),n=t.dereference.refSet??new ox,s=new ox;let o,i=n;n.has(e.uri)?o=n.find((t=>t.uri===e.uri)):(o=new sx({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map((e=>new sx({...e,value:Ol(e.value)}))).forEach((e=>s.add(e))),o=s.find((t=>t.uri===e.uri)),i=s);const a=new $S({reference:o,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await FS(i.rootRef.value,a,{keyMap:Hw,nodeTypeGetter:Kw});return t.dereference.immutable&&s.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new sx({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>n.add(e))),null===t.dereference.refSet&&n.clean(),s.clean(),c}},LS=e=>{const t=Ul(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new vc.Sh({$ref:t},Ol(r.meta),Ol(r.attributes))},qS=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:s,responseInterceptor:o,pathDiscriminator:i=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:h="non-strict",strategies:d}=e;try{const{cache:f}=qS,m=d.find((e=>e.match(t))),g=ci(hi())?hi():Wi,y=za(e),v=di(g,y);let b;f.has(t)?b=f.get(t):(b=Vv.refract(t),b.classes.push("result"),f.set(t,b));const E=new kc([b]),w=Du(i),x=""===w?"":`#${w}`,S=Wu(b,w),_=new sx({uri:v,value:E}),A=new ox({refs:[_]});""!==w&&(A.rootRef=void 0);const O=[new Set([S])],C=[],j=await(async(e,t={})=>(async(e,t)=>{let r=e,n=!1;if(!Hc(e)){const t=kl(e);t.classes.push("result"),r=new kc([t]),n=!0}const s=new gx({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),o=await vx("canDereference",[s,t],t.dereference.strategies);if(eu(o))throw new wx(s.uri);try{const{result:e}=await bx("dereference",[s,t],o);return n?e.get(0):e}catch(e){throw new Ex(`Error while dereferencing file "${s.uri}"`,{cause:e})}})(e,mx(cx,t)))(S,{resolve:{baseURI:`${v}${x}`,resolvers:[new Mx({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:o}},strategies:[new Cx]},parse:{mediaType:nx.latest(),parsers:[new Fx({allowEmpty:!1,sourceMap:!1}),new Bx({allowEmpty:!1,sourceMap:!1}),new Dx({allowEmpty:!1,sourceMap:!1}),new $x({allowEmpty:!1,sourceMap:!1}),new Ax({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new BS({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:O})],refSet:A,dereferenceOpts:{errors:C},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?cx.dereference.circularReplacer:LS}}),k=((e,t,r)=>new du({element:r}).transclude(e,t))(S,j,b),T=l?k:m.normalize(k);return{spec:Ul(T),errors:C}}catch(e){if(e instanceof Bu)return{spec:t,errors:[]};throw e}};qS.cache=new WeakMap;const US=qS;function zS(e,t,r){if(r||(r=new JS),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n,s=function(n){var s=r.get(e);if(s)return s;for(var o in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=t?zS(e[o],!0,r):e[o]);return n};switch(Js(e)){case"Object":return s(Object.create(Object.getPrototypeOf(e)));case"Array":return s(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return n=e,new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var JS=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(var t in this.map)for(var r=this.map[t],n=0;n<r.length;n+=1)if((o=r[n])[0]===e)return o[1]}else{var s=this.hash(e);if(r=this.map[s])for(n=0;n<r.length;n+=1){var o;if((o=r[n])[0]===e)return o[1]}}},e}(),VS=function(){function e(e,t,r,n){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=n,this.inputs={}}return e.prototype["@@transducer/init"]=no,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(Ps(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,zS(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function WS(e,t,r){return function(n){return new VS(e,t,r,n)}}const KS=Qn(ms("groupBy",As(4,[],to([],WS,(function(e,t,r,n){var s=ds((function(n,s){var o=r(s),i=e(Ps(o,n)?n[o]:zS(t,!1),s);return i&&i["@@transducer/reduced"]?bc(n):(n[o]=i,n)}));return ps(s,{},n)})))((function(e,t){return e.push(t),e}),[]))),HS=class{internalStore;constructor(e,t,r){this.storageElement=e,this.storageField=t,this.storageSubField=r}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);qc(e)||(e=new vc.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);Uc(t)||(t=new vc.wE,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}},GS=e=>e.replace(/\s/g,""),YS=e=>e.replace(/\W/gi,"_"),XS=(e,t,r)=>{const n=GS(e);return n.length>0?YS(n):((e,t)=>`${YS(GS(t.toLowerCase()))}${YS(GS(e))}`)(t,r)},ZS=({storageField:e="x-normalized",operationIdNormalizer:t=XS}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:s,namespace:o}=r,i=[],a=[],c=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){l=new HS(t,e,"operation-ids")},leave(){const e=KS((e=>Ul(e.operationId)),a);Object.entries(e).forEach((([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach(((t,r)=>{const n=`${e}${r+1}`;t.operationId=new o.elements.String(n)})))})),c.forEach((e=>{if(void 0===e.operationId)return;const t=String(Ul(e.operationId)),r=a.find((e=>Ul(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=Ol.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),a.length=0,c.length=0,l=void 0}},PathItemElement:{enter(e){const t=bs("path",Ul(e.meta.get("path")));i.push(t)},leave(){i.pop()}},OperationElement:{enter(e,r,n,c,u){if(void 0===e.operationId)return;const p=s([...u,n,e]);if(l.includes(p))return;const h=String(Ul(e.operationId)),d=_s(i),f=bs("method",Ul(e.meta.get("http-method"))),m=t(h,d,f);h!==m&&(e.operationId=new o.elements.String(m),e.set("__originalOperationId",h),e.meta.set("originalOperationId",h),a.push(e),l.append(p))}},LinkElement:{leave(e){n.isLinkElement(e)&&void 0!==e.operationId&&c.push(e)}}}}},QS=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t,s=(e,t)=>!!(r.isParameterElement(e)&&r.isParameterElement(t)&&r.isStringElement(e.name)&&r.isStringElement(e.in)&&r.isStringElement(t.name)&&r.isStringElement(t.in)&&Ul(e.name)===Ul(t.name)&&Ul(e.in)===Ul(t.in)),o=[];let i;return{visitor:{OpenApi3_1Element:{enter(t){i=new HS(t,e,"parameters")},leave(){i=void 0}},PathItemElement:{enter(e,t,n,s,i){if(i.some(r.isComponentsElement))return;const{parameters:a}=e;r.isArrayElement(a)?o.push([...a.content]):o.push([])},leave(){o.pop()}},OperationElement:{leave(e,t,r,a,c){const l=_s(o);if(!Array.isArray(l)||0===l.length)return;const u=n([...c,r,e]);if(i.includes(u))return;const p=Kx([],["parameters","content"],e),h=AS(s,[...p,...l]);e.parameters=new Ly(h),i.append(u)}}}}},e_=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let s,o;return{visitor:{OpenApi3_1Element:{enter(t){o=new HS(t,e,"security-requirements"),r.isArrayElement(t.security)&&(s=t.security)},leave(){o=void 0,s=void 0}},OperationElement:{leave(e,t,i,a,c){if(c.some(r.isComponentsElement))return;const l=n([...c,i,e]);var u;o.includes(l)||void 0===e.security&&void 0!==s&&(e.security=new Hy(null===(u=s)||void 0===u?void 0:u.content),o.append(l))}}}}},t_=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let s;return{visitor:{OpenApi3_1Element:{enter(t){s=new HS(t,e,"parameter-examples")},leave(){s=void 0}},ParameterElement:{leave(e,t,o,i,a){var c,l;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(c=e.schema)||void 0===c?void 0:c.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=n([...a,o,e]);if(!s.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>Ol.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),s.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),s.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Ol(e.example)]),s.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Ol(e.example)),s.append(u)))}}}}}},r_=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let s;return{visitor:{OpenApi3_1Element:{enter(t){s=new HS(t,e,"header-examples")},leave(){s=void 0}},HeaderElement:{leave(e,t,o,i,a){var c,l;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(c=e.schema)||void 0===c?void 0:c.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=n([...a,o,e]);if(!s.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>Ol.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),s.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),s.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Ol(e.example)]),s.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Ol(e.example)),s.append(u)))}}}}}},n_=e=>{if(!qc(e))return e;const t=[ZS({operationIdNormalizer:(e,t,r)=>ac({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),QS(),e_(),t_(),r_()];return uu(e,t,{toolboxCreator:Zw,visitorOptions:{keyMap:Hw,nodeTypeGetter:Kw}})},s_={name:"openapi-3-1-apidom",match:e=>hc(e),normalize(e){if(!Dc(e)&&oc(e)&&!e.$$normalized){const r=(t=n_,e=>{const r=Vv.refract(e);r.classes.push("result");const n=t(r),s=Ul(n);return US.cache.set(s,n),Ul(n)})(e);return r.$$normalized=!0,r}var t;return Dc(e)?n_(e):e},resolve:async e=>US(e)},o_=s_,i_=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,s=za(e),o=Ja(e),i=t||await Ca(o,{requestInterceptor:r,responseInterceptor:n})(s),a={...e,spec:i};return e.strategies.find((e=>e.match(i))).resolve(a)})({...e,...t}),a_=i_({strategies:[yc,mc,uc]}),c_=(e,t,r,n,s)=>{if(e===Eu.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-url-template",bu.charsToString(t,r,n)])}return Eu.SEM_OK},l_=(e,t,r,n,s)=>{if(e===Eu.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-variable",bu.charsToString(t,r,n)])}return Eu.SEM_OK},u_=(e,t,r,n,s)=>{if(e===Eu.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["server-variable-name",bu.charsToString(t,r,n)])}return Eu.SEM_OK},p_=(e,t,r,n,s)=>{if(e===Eu.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["literals",bu.charsToString(t,r,n)])}return Eu.SEM_OK},h_=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+="; OpenAPI Server URL templating ABNF syntax\n",e+="server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2\n",e+='server-variable = "{" server-variable-name "}"\n',e+="server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc6570#section-2.1\n",e+="; https://www.rfc-editor.org/errata/eid6937\n",e+="literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded)\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc6570#section-1.5\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive\n',e+="\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+="\n",e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",'; OpenAPI Server URL templating ABNF syntax\nserver-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2\nserver-variable = "{" server-variable-name "}"\nserver-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n\n; https://www.rfc-editor.org/rfc/rfc6570#section-2.1\n; https://www.rfc-editor.org/errata/eid6937\nliterals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded)\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; https://www.rfc-editor.org/rfc/rfc6570#section-1.5\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive\n\npct-encoded = "%" HEXDIG HEXDIG\n\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\n\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'}},d_=e=>{const t=new mu;return t.ast=new gu,t.ast.callbacks["server-url-template"]=c_,t.ast.callbacks["server-variable"]=l_,t.ast.callbacks["server-variable-name"]=u_,t.ast.callbacks.literals=p_,{result:t.parse(h_,"server-url-template",e),ast:t.ast}},f_=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),m_=["literals","server-variable-name"];function g_(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\n",e+="path-template = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+='slash = "/"\n',e+="path-literal = 1*pchar\n",e+='template-expression = "{" template-expression-param-name "}"\n',e+="template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\n",e+='pchar = unreserved / pct-encoded / sub-delims / ":" / "@"\n',e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1\n",e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+=" ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\n; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npath-template = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nslash = "/"\npath-literal = 1*pchar\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)\n\n; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\npchar = unreserved / pct-encoded / sub-delims / ":" / "@"\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3\npct-encoded = "%" HEXDIG HEXDIG\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}}const y_=(e,t,r,n,s)=>(e===Eu.SEM_PRE?s.push(["slash",bu.charsToString(t,r,n)]):Eu.SEM_POST,Eu.SEM_OK),v_=(e,t,r,n,s)=>{if(e===Eu.SEM_PRE){if(!1===Array.isArray(s))throw new Error("parser's user data must be an array");s.push(["path-template",bu.charsToString(t,r,n)])}return Eu.SEM_OK},b_=(e,t,r,n,s)=>(e===Eu.SEM_PRE?s.push(["path-literal",bu.charsToString(t,r,n)]):Eu.SEM_POST,Eu.SEM_OK),E_=(e,t,r,n,s)=>(e===Eu.SEM_PRE?s.push(["template-expression",bu.charsToString(t,r,n)]):Eu.SEM_POST,Eu.SEM_OK),w_=(e,t,r,n,s)=>(e===Eu.SEM_PRE?s.push(["template-expression-param-name",bu.charsToString(t,r,n)]):Eu.SEM_POST,Eu.SEM_OK),x_=new g_,S_=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),__=["slash","path-literal","template-expression-param-name"],A_=(e,t,r={})=>{const n={encoder:S_,...r},s=(e=>{const t=new mu;return t.ast=new gu,t.ast.callbacks["path-template"]=v_,t.ast.callbacks.slash=y_,t.ast.callbacks["path-literal"]=b_,t.ast.callbacks["template-expression"]=E_,t.ast.callbacks["template-expression-param-name"]=w_,{result:t.parse(x_,"path-template",e),ast:t.ast}})(e);if(!s.result.success)return e;const o=[];s.ast.translate(o);const i=o.filter((([e])=>__.includes(e))).map((([e,r])=>"template-expression-param-name"===e?Object.prototype.hasOwnProperty.call(t,r)?n.encoder(t[r],r):`{${r}}`:r));return i.join("")};new g_,new mu;const O_={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},void 0!==r&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){if(e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false"),0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r,baseURL:n}){if(void 0!==t){const s=e.url.replace(n,""),o=A_(s,{[r.name]:t});e.url=n+o}},formData:function({req:e,value:t,parameter:r}){if(!1===t&&"boolean"===r.type&&(t="false"),0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=r.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function C_(e,t){return yi()(t).call(t,"application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map((e=>{try{return JSON.parse(e)}catch(t){return e}}))),JSON.stringify(e)):String(e)}function j_(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"cookie-string",lower:"cookie-string",index:9,isBkr:!1},this.rules[10]={name:"cookie-pair",lower:"cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"cookie-name",lower:"cookie-name",index:11,isBkr:!1},this.rules[12]={name:"cookie-value",lower:"cookie-value",index:12,isBkr:!1},this.rules[13]={name:"cookie-octet",lower:"cookie-octet",index:13,isBkr:!1},this.rules[14]={name:"OWS",lower:"ows",index:14,isBkr:!1},this.rules[15]={name:"token",lower:"token",index:15,isBkr:!1},this.rules[16]={name:"tchar",lower:"tchar",index:16,isBkr:!1},this.rules[17]={name:"CHAR",lower:"char",index:17,isBkr:!1},this.rules[18]={name:"CTL",lower:"ctl",index:18,isBkr:!1},this.rules[19]={name:"separators",lower:"separators",index:19,isBkr:!1},this.rules[20]={name:"SP",lower:"sp",index:20,isBkr:!1},this.rules[21]={name:"HT",lower:"ht",index:21,isBkr:!1},this.rules[22]={name:"ALPHA",lower:"alpha",index:22,isBkr:!1},this.rules[23]={name:"DIGIT",lower:"digit",index:23,isBkr:!1},this.rules[24]={name:"DQUOTE",lower:"dquote",index:24,isBkr:!1},this.rules[25]={name:"WSP",lower:"wsp",index:25,isBkr:!1},this.rules[26]={name:"HTAB",lower:"htab",index:26,isBkr:!1},this.rules[27]={name:"CRLF",lower:"crlf",index:27,isBkr:!1},this.rules[28]={name:"CR",lower:"cr",index:28,isBkr:!1},this.rules[29]={name:"LF",lower:"lf",index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){let e="";return e+="; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n",e+='lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )\n',e+="lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid\n",e+='lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS\n',e+='lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored\n',e+='lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="\n',e+="lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\n",e+="lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE\n",e+="lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE\n",e+="lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E\n",e+=" ; Allow all printable characters except CTLs, semicolon and SP\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\n",e+='cookie-string = cookie-pair *( ";" SP cookie-pair )\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n",e+="; https://www.rfc-editor.org/errata/eid5518\n",e+='cookie-pair = cookie-name "=" cookie-value\n',e+="cookie-name = token\n",e+="cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet\n",e+=" ; https://www.rfc-editor.org/errata/eid8242\n",e+="cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n",e+=" ; US-ASCII characters excluding CTLs,\n",e+=" ; whitespace, DQUOTE, comma, semicolon,\n",e+=" ; and backslash\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2\n",e+='OWS = *( [ CRLF ] WSP ) ; "optional" whitespace\n',e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2\n",e+="token = 1*(tchar)\n",e+='tchar = "!" / "#" / "$" / "%" / "&" / "\'" / "*"\n',e+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',e+=" / DIGIT / ALPHA\n",e+=" ; any VCHAR, except delimiters\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2\n",e+="CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)\n",e+="CTL = %x00-1F / %x7F ; any US-ASCII control character\n",e+='separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT\n',e+="SP = %x20 ; US-ASCII SP, space (32)\n",e+="HT = %x09 ; US-ASCII HT, horizontal-tab (9)\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='DQUOTE = %x22 ; " (Double Quote)\n',e+="WSP = SP / HTAB ; white space\n",e+="HTAB = %x09 ; horizontal tab\n",e+="CRLF = CR LF ; Internet standard newline\n",e+="CR = %x0D ; carriage return\n",e+="LF = %x0A ; linefeed\n",'; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\nlenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )\nlenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid\nlenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS\nlenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored\nlenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="\nlenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet\nlenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE\nlenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE\nlenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E\n ; Allow all printable characters except CTLs, semicolon and SP\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1\ncookie-string = cookie-pair *( ";" SP cookie-pair )\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1\n; https://www.rfc-editor.org/errata/eid5518\ncookie-pair = cookie-name "=" cookie-value\ncookie-name = token\ncookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet\n ; https://www.rfc-editor.org/errata/eid8242\ncookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n ; US-ASCII characters excluding CTLs,\n ; whitespace, DQUOTE, comma, semicolon,\n ; and backslash\n\n; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2\nOWS = *( [ CRLF ] WSP ) ; "optional" whitespace\n\n; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2\ntoken = 1*(tchar)\ntchar = "!" / "#" / "$" / "%" / "&" / "\'" / "*"\n / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n / DIGIT / ALPHA\n ; any VCHAR, except delimiters\n\n; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2\nCHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)\nCTL = %x00-1F / %x7F ; any US-ASCII control character\nseparators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT\nSP = %x20 ; US-ASCII SP, space (32)\nHT = %x09 ; US-ASCII HT, horizontal-tab (9)\n\n; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nDQUOTE = %x22 ; " (Double Quote)\nWSP = SP / HTAB ; white space\nHTAB = %x09 ; horizontal tab\nCRLF = CR LF ; Internet standard newline\nCR = %x0D ; carriage return\nLF = %x0A ; linefeed\n'}}new j_;const k_=e=>{if("string"!=typeof e||1!==[...e].length)throw new TypeError("Input must be a single character string.");const t=e.codePointAt(0);return t<=127?`%${t.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(e)},T_=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),N_=e=>T_(e)?e.slice(1,-1):e,I_=e=>`"${e}"`,P_=e=>e,M_=new mu,R_=new j_,D_=(e,{strict:t=!0,quoted:r=null}={})=>{try{const n=t?"cookie-value":"lenient-cookie-value",s=M_.parse(R_,n,e);return"boolean"==typeof r?s.success&&r===T_(e):s.success}catch{return!1}},$_=e=>{const t=(new TextEncoder).encode(e).reduce(((e,t)=>e+String.fromCharCode(t)),"");return btoa(t)},F_=e=>(e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""))($_(e)),B_=new mu,L_=new j_,q_=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return B_.parse(L_,r,e).success}catch{return!1}},U_=e=>{if(!D_(e))throw new TypeError(`Invalid cookie value: ${e}`)},z_={encoders:{name:P_,value:e=>((e,t=$_)=>{const r=String(e);if(D_(r))return r;const n=T_(r),s=t(n?N_(r):r);return n?I_(s):s})(e,F_)},validators:{name:e=>{if(!q_(e))throw new TypeError(`Invalid cookie name: ${e}`)},value:U_}},J_=(e,t={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map((([e,r])=>((e,t,r={})=>{const n={...z_,...r,encoders:{...z_.encoders,...r.encoders},validators:{...z_.validators,...r.validators}},s=n.encoders.name(e),o=n.encoders.value(t);return n.validators.name(s),n.validators.value(o),`${s}=${o}`})(e,r,t))).join("; "),V_=new mu,W_=new j_;new mu,new j_;const K_=e=>{if(!q_(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)},H_=e=>(e=>{const t=String(e);if(D_(t))return t;const r=T_(t),n=r?N_(t):t;let s="";for(const e of n)s+=V_.parse(W_,"cookie-octet",e).success?e:k_(e);return r?I_(s):s})(e).replace(/[=&]/gu,(e=>"="===e?"%3D":"%26")),G_=(e,t={})=>J_(e,Kl({encoders:{name:P_,value:H_},validators:{name:K_,value:U_}},t));function Y_({req:e,value:t,parameter:r,baseURL:n}){const{name:s,style:o,explode:i,content:a}=r;if(void 0===t)return;const c=e.url.replace(n,"");let l;if(a){const e=Object.keys(a)[0];l=A_(c,{[s]:t},{encoder:t=>Na(C_(t,e))})}else l=A_(c,{[s]:t},{encoder:e=>Ia({key:r.name,value:e,style:o||"simple",explode:i??!1,escape:"reserved"})});e.url=n+l}function X_({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const n=C_(t,Object.keys(r.content)[0]);if(n)e.query[r.name]=n;else if(r.allowEmptyValue){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}else if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:n,explode:s,allowReserved:o}=r;e.query[r.name]={value:t,serializationOption:{style:n,explode:s,allowReserved:o}}}else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}const Z_=["accept","authorization","content-type"];function Q_({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(Z_.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const n=Object.keys(t.content)[0];e.headers[t.name]=C_(r,n)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=Ia({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}function eA({req:e,parameter:t,value:r}){const{name:n}=t;if(e.headers=e.headers||{},void 0!==r&&t.content){const s=C_(r,Object.keys(t.content)[0]);e.headers.Cookie=G_({[n]:s})}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const s=Ia({key:t.name,value:r,escape:!1,style:t.style||"form",explode:t.explode??!1}),o=Array.isArray(r)&&t.explode?`${n}=${s}`:s;e.headers.Cookie=G_({[n]:o})}}const tA="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:rA}=tA,nA=rA;function sA(e,t){return`${t.toLowerCase()}-${e}`}const oA=e=>Array.isArray(e)?e:[],iA=(e,{recurse:t=!0,depth:r=1}={})=>{var n,s;if(oc(e)){if("object"===e.type||"array"===e.type||Array.isArray(e.type)&&(yi()(n=e.type).call(n,"object")||yi()(s=e.type).call(s,"array")))return e;if(!(r>3e3)&&t){const n=Array.isArray(e.oneOf)?e.oneOf.find((e=>iA(e,{recurse:t,depth:r+1}))):void 0;if(n)return n;const s=Array.isArray(e.anyOf)?e.anyOf.find((e=>iA(e,{recurse:t,depth:r+1}))):void 0;if(s)return s}}},aA=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if(oc(r)||Array.isArray(r))return r;if(!t)throw new Error("Expected JSON serialized object or array")}catch{if(!t)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return e},cA=e=>{try{return new URL(e)}catch{const t=new URL(e,Wi),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class lA extends Hn{}const uA={buildRequest:hA};function pA({http:e,fetch:t,spec:r,operationId:n,pathName:s,method:o,parameters:i,securities:a,...c}){const l=e||t||Ua;s&&o&&!n&&(n=sA(s,o));const u=uA.buildRequest({spec:r,operationId:n,parameters:i,securities:a,http:l,...c});return u.body&&(oc(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)}function hA(e){const{spec:t,operationId:r,responseContentType:n,scheme:s,requestInterceptor:o,responseInterceptor:i,contextUrl:a,userFetch:c,server:l,serverVariables:u,http:p,signal:h,serverVariableEncoder:f}=e;let{parameters:m,parameterBuilders:g,baseURL:y}=e;const v=dc(t);g||(g=v?d:O_);let b={url:"",credentials:p&&p.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(b.signal=h),o&&(b.requestInterceptor=o),i&&(b.responseInterceptor=i),c&&(b.userFetch=c);const E=function(e,t){return e&&e.paths?function(e){return function(e,t){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:r}=e;for(const n in r)for(const s in r[n]){if("PARAMETERS"===s.toUpperCase())continue;const o=r[n][s];if(!o||"object"!=typeof o)continue;const i={spec:e,pathName:n,method:s.toUpperCase(),operation:o};if(t(i))return i}}(e,(({pathName:e,method:r,operation:n})=>{if(!n||"object"!=typeof n)return!1;const s=n.operationId;return[ac(n,e,r),sA(e,r),s].some((e=>e&&e===t))}))||null}(e):null}(t,r);if(!E)throw new lA(`Operation ${r} not found`);const{operation:w={},method:x,pathName:S}=E;if(y=y??(dc((_={spec:t,scheme:s,contextUrl:a,server:l,serverVariables:u,pathName:S,method:x,serverVariableEncoder:f}).spec)?function({spec:e,pathName:t,method:r,server:n,contextUrl:s,serverVariables:o={},serverVariableEncoder:i}){let a,c=[],l="";const u=e?.paths?.[t]?.[(r||"").toLowerCase()]?.servers,p=e?.paths?.[t]?.servers,h=e?.servers;return c=fA(u)?u:fA(p)?p:fA(h)?h:[Ki],n&&(a=c.find((e=>e.url===n)),a&&(l=n)),l||([a]=c,l=a.url),((e,{strict:t=!1}={})=>{try{const r=d_(e);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const s=n.some((([e])=>"server-variable"===e));if(!t&&!s)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||s}catch{return!1}})(l,{strict:!0})&&(l=((e,t,r={})=>{const n={encoder:f_,...r},s=d_(e);if(!s.result.success)return e;const o=[];s.ast.translate(o);const i=o.filter((([e])=>m_.includes(e))).map((([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?n.encoder(t[r],r):`{${r}}`:r));return i.join("")})(l,{...Object.entries({...a.variables}).reduce(((e,[t,r])=>(e[t]=r.default,e)),{}),...o},{encoder:"function"==typeof i?i:ax})),function(e="",t=""){const r=cA(e&&t?di(t,e):e),n=cA(t),s=dA(r.protocol)||dA(n.protocol),o=r.host||n.host,i=r.pathname;let a;return a=s&&o?`${s}://${o+i}`:i,"/"===a[a.length-1]?a.slice(0,-1):a}(l,s)}(_):function({spec:e,scheme:t,contextUrl:r=""}){const n=cA(r),s=Array.isArray(e.schemes)?e.schemes[0]:null,o=t||s||dA(n.protocol)||"http",i=e.host||n.host||"",a=e.basePath||"";let c;return c=o&&i?`${o}://${i+a}`:a,"/"===c[c.length-1]?c.slice(0,-1):c}(_)),b.url+=y,!r)return delete b.cookies,b;var _;b.url+=S,b.method=`${x}`.toUpperCase(),m=m||{};const A=t.paths[S]||{};n&&(b.headers.accept=n);const O=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((n=>{r.push(t[e][n])}))})),r})([].concat(oA(w.parameters)).concat(oA(A.parameters)));O.forEach((e=>{const r=g[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=m),n=e&&e.name&&m[e.name],void 0===n?n=e&&e.name&&m[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,O).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);v&&"string"==typeof n&&(gl("type",e.schema)&&"string"==typeof e.schema.type&&iA(e.schema,{recurse:!1})?n=aA({value:n,silentFail:!1}):(gl("type",e.schema)&&Array.isArray(e.schema.type)&&iA(e.schema,{recurse:!1})||!gl("type",e.schema)&&iA(e.schema,{recurse:!0}))&&(n=aA({value:n,silentFail:!0}))),r&&r({req:b,parameter:e,value:n,operation:w,spec:t,baseURL:y})}}));const C={...e,operation:w};if(b=v?function(e,t){const{operation:r,requestBody:n,securities:s,spec:o,attachContentTypeForEmptyPayload:i}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:r={},spec:n}){const s={...e},{authorized:o={}}=t,i=r.security||n.security||[],a=o&&!!Object.keys(o).length,c=n?.components?.securitySchemes||{};return s.headers=s.headers||{},s.query=s.query||{},Object.keys(t).length&&a&&i&&(!Array.isArray(r.security)||r.security.length)?(i.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e],r=c[e];if(!t)return;const n=t.value||t,{type:i}=r;if(t)if("apiKey"===i)"query"===r.in&&(s.query[r.name]=n),"header"===r.in&&(s.headers[r.name]=n),"cookie"===r.in&&(s.cookies[r.name]=n);else if("http"===i){if(/^basic$/i.test(r.scheme)){const e=n.username||"",t=n.password||"",r=nA(`${e}:${t}`);s.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(s.headers.Authorization=`Bearer ${n}`)}else if("oauth2"===i||"openIdConnect"===i){const e=t.token||{},n=e[r["x-tokenName"]||"access_token"];let o=e.token_type;o&&"bearer"!==o.toLowerCase()||(o="Bearer"),s.headers.Authorization=`${o} ${n}`}}))})),s):e}({request:t,securities:s,operation:r,spec:o});const c=r.requestBody||{},l=Object.keys(c.content||{}),u=a&&l.indexOf(a)>-1;if(n||i){if(a&&u)t.headers["Content-Type"]=a;else if(!a){const e=l[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&u&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((([e,t])=>{const r=parseInt(e,10);return r>=200&&r<300&&oc(t.content)})).reduce(((e,[,t])=>e.concat(Object.keys(t.content))),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(n)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof n){const e=c.content[a]?.encoding??{};t.form={},Object.keys(n).forEach((r=>{let s;try{s=JSON.parse(n[r])}catch{s=n[r]}t.form[r]={value:s,encoding:e[r]||{}}}))}else if("string"==typeof n){const e=c.content[a]?.encoding??{};try{t.form={};const r=JSON.parse(n);Object.entries(r).forEach((([r,n])=>{t.form[r]={value:n,encoding:e[r]||{}}}))}catch{t.form=n}}else t.form=n;else t.body=n}else t.body=n;return t}(C,b):function(e,t){const{spec:r,operation:n,securities:s,requestContentType:o,responseContentType:i,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:r={},spec:n}){const s={...e},{authorized:o={},specSecurity:i=[]}=t,a=r.security||i,c=o&&!!Object.keys(o).length,l=n.securityDefinitions;return s.headers=s.headers||{},s.query=s.query||{},Object.keys(t).length&&c&&a&&(!Array.isArray(r.security)||r.security.length)?(a.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e];if(!t)return;const{token:r}=t,n=t.value||t,i=l[e],{type:a}=i,c=i["x-tokenName"]||"access_token",u=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===i.in?"query":"headers";s[e]=s[e]||{},s[e][i.name]=n}else if("basic"===a)if(n.header)s.headers.authorization=n.header;else{const e=n.username||"",t=n.password||"";n.base64=nA(`${e}:${t}`),s.headers.authorization=`Basic ${n.base64}`}else"oauth2"===a&&u&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",s.headers.authorization=`${p} ${u}`)}))})),s):e}({request:t,securities:s,operation:n,spec:r}),t.body||t.form||a)o?t.headers["Content-Type"]=o:Array.isArray(n.consumes)?[t.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter((e=>"file"===e.type)).length?t.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(o){const e=n.parameters&&n.parameters.filter((e=>"body"===e.in)).length>0,r=n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length>0;(e||r)&&(t.headers["Content-Type"]=o)}return!i&&Array.isArray(n.produces)&&n.produces.length>0&&(t.headers.accept=n.produces.join(", ")),t}(C,b),b.cookies&&Object.keys(b.cookies).length>0){const e=G_(b.cookies);wh(b.headers.Cookie)?b.headers.Cookie+=`; ${e}`:b.headers.Cookie=e}return b.cookies&&delete b.cookies,Ba(b)}const dA=e=>e?e.replace(/\W/g,""):null,fA=e=>Array.isArray(e)&&e.length>0,mA=e=>async(t,r,n={})=>(async(e,t,r={})=>{const{returnEntireTree:n,baseDoc:s,requestInterceptor:o,responseInterceptor:i,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:s,requestInterceptor:o,responseInterceptor:i,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u},h=u.find((t=>t.match(e))).normalize(e),d=await a_({spec:h,...p,allowMetaPatches:!0,skipNormalization:!hc(e)});return!n&&Array.isArray(t)&&t.length&&(d.spec=t.reduce(((e,t)=>e?.[t]),d.spec)||null),d})(t,r,{...e,...n});mA({strategies:[yc,mc,uc]});var gA=r(40961),yA=(r(78418),f.version.startsWith("19")),vA=Symbol.for(yA?"react.transitional.element":"react.element"),bA=Symbol.for("react.portal"),EA=Symbol.for("react.fragment"),wA=Symbol.for("react.strict_mode"),xA=Symbol.for("react.profiler"),SA=Symbol.for("react.consumer"),_A=Symbol.for("react.context"),AA=Symbol.for("react.forward_ref"),OA=Symbol.for("react.suspense"),CA=Symbol.for("react.suspense_list"),jA=Symbol.for("react.memo"),kA=Symbol.for("react.lazy"),TA=AA,NA=jA;function IA(e,t,r,n,{areStatesEqual:s,areOwnPropsEqual:o,areStatePropsEqual:i}){let a,c,l,u,p,h=!1;return function(d,f){return h?function(h,d){const f=!o(d,c),m=!s(h,a,d,c);return a=h,c=d,f&&m?(l=e(a,c),t.dependsOnOwnProps&&(u=t(n,c)),p=r(l,u,c),p):f?(e.dependsOnOwnProps&&(l=e(a,c)),t.dependsOnOwnProps&&(u=t(n,c)),p=r(l,u,c),p):m?function(){const t=e(a,c),n=!i(t,l);return l=t,n&&(p=r(l,u,c)),p}():p}(d,f):(a=d,c=f,l=e(a,c),u=t(n,c),p=r(l,u,c),h=!0,p)}}function PA(e){return function(t){const r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function MA(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function RA(e,t){return function(t,{displayName:r}){const n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=MA(e);let s=n(t,r);return"function"==typeof s&&(n.mapToProps=s,n.dependsOnOwnProps=MA(s),s=n(t,r)),s},n}}function DA(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function $A(e,t,r){return{...r,...e,...t}}var FA={notify(){},get:()=>[]};function BA(e,t){let r,n=FA,s=0,o=!1;function i(){l.onStateChange&&l.onStateChange()}function a(){s++,r||(r=t?t.addNestedSub(i):e.subscribe(i),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){!function(e){e()}((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(r){let n=!0;const s=t={callback:r,next:null,prev:t};return s.prev?s.prev.next=s:e=s,function(){n&&null!==e&&(n=!1,s.next?s.next.prev=s.prev:t=s.prev,s.prev?s.prev.next=s.next:e=s.next)}}}}())}function c(){s--,r&&0===s&&(r(),r=void 0,n.clear(),n=FA)}const l={addNestedSub:function(e){a();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),c())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,a())},tryUnsubscribe:function(){o&&(o=!1,c())},getListeners:()=>n};return l}var LA=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),qA=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),UA=(()=>LA||qA?f.useLayoutEffect:f.useEffect)();function zA(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function JA(e,t){if(zA(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!zA(e[r[n]],t[r[n]]))return!1;return!0}var VA={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},WA={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},KA={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},HA={[TA]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[NA]:KA};function GA(e){return function(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case vA:switch(e=e.type){case EA:case xA:case wA:case OA:case CA:return e;default:switch(e=e&&e.$$typeof){case _A:case AA:case kA:case jA:case SA:return e;default:return t}}case bA:return t}}}(e)===jA?KA:HA[e.$$typeof]||VA}var YA=Object.defineProperty,XA=Object.getOwnPropertyNames,ZA=Object.getOwnPropertySymbols,QA=Object.getOwnPropertyDescriptor,eO=Object.getPrototypeOf,tO=Object.prototype;function rO(e,t){if("string"!=typeof t){if(tO){const r=eO(t);r&&r!==tO&&rO(e,r)}let r=XA(t);ZA&&(r=r.concat(ZA(t)));const n=GA(e),s=GA(t);for(let o=0;o<r.length;++o){const i=r[o];if(!(WA[i]||s&&s[i]||n&&n[i])){const r=QA(t,i);try{YA(e,i,r)}catch(e){}}}}return e}var nO=Symbol.for("react-redux-context"),sO="undefined"!=typeof globalThis?globalThis:{};function oO(){if(!f.createContext)return{};const e=sO[nO]??=new Map;let t=e.get(f.createContext);return t||(t=f.createContext(null),e.set(f.createContext,t)),t}var iO=oO(),aO=[null,null];function cO(e,t,r,n,s,o){e.current=n,r.current=!1,s.current&&(s.current=null,o())}function lO(e,t){return e===t}var uO=function(e){const{children:t,context:r,serverState:n,store:s}=e,o=f.useMemo((()=>{const e=BA(s);return{store:s,subscription:e,getServerState:n?()=>n:void 0}}),[s,n]),i=f.useMemo((()=>s.getState()),[s]);UA((()=>{const{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==s.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[o,i]);const a=r||iO;return f.createElement(a.Provider,{value:o},t)},pO=r(83488),hO=r.n(pO),dO=r(80045),fO=r(45458),mO=r(64467),gO=r(58168);function yO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yO(Object(r),!0).forEach((function(t){(0,mO.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yO(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bO={};function EO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t,r,n=e.join(".");return bO[n]||(bO[n]=0===(r=(t=e).length)||1===r?t:2===r?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===r?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:r>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),bO[n]}(e.filter((function(e){return"token"!==e}))).reduce((function(e,t){return vO(vO({},e),r[t])}),t)}function wO(e){return e.join(" ")}function xO(e){var t=e.node,r=e.stylesheet,n=e.style,s=void 0===n?{}:n,o=e.useInlineStyles,i=e.key,a=t.properties,c=t.type,l=t.tagName,u=t.value;if("text"===c)return u;if(l){var p,h=function(e,t){var r=0;return function(n){return r+=1,n.map((function(n,s){return xO({node:n,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(s)})}))}}(r,o);if(o){var d=Object.keys(r).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),m=a.className&&a.className.includes("token")?["token"]:[],g=a.className&&m.concat(a.className.filter((function(e){return!d.includes(e)})));p=vO(vO({},a),{},{className:wO(g)||void 0,style:EO(a.className,Object.assign({},a.style,s),r)})}else p=vO(vO({},a),{},{className:wO(a.className)});var y=h(t.children);return f.createElement(l,(0,gO.A)({key:i},p),y)}}var SO=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function _O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function AO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_O(Object(r),!0).forEach((function(t){(0,mO.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var OO=/\n/g;function CO(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,s=void 0===n?{float:"left",paddingRight:"10px"}:n,o=e.numberStyle,i=void 0===o?{}:o,a=e.startingLineNumber;return f.createElement("code",{style:Object.assign({},r,s)},function(e){var t=e.startingLineNumber,r=e.style;return e.lines.map((function(e,n){var s=n+t;return f.createElement("span",{key:"line-".concat(n),className:"react-syntax-highlighter-line-number",style:"function"==typeof r?r(s):r},"".concat(s,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:i,startingLineNumber:a}))}function jO(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function kO(e,t,r){var n,s={display:"inline-block",minWidth:(n=r,"".concat(n.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"==typeof e?e(t):e;return AO(AO({},s),o)}function TO(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,s=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,a=void 0===i?{}:i,c=e.className,l=void 0===c?[]:c,u=e.showLineNumbers,p=e.wrapLongLines,h=e.wrapLines,d=void 0!==h&&h?AO({},"function"==typeof a?a(r):a):{};if(d.className=d.className?[].concat((0,fO.A)(d.className.trim().split(/\s+/)),(0,fO.A)(l)):l,r&&o){var f=kO(n,r,s);t.unshift(jO(r,f))}return p&u&&(d.style=AO({display:"flex"},d.style)),{type:"element",tagName:"span",properties:d,children:t}}function NO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];void 0===e.length&&(e=[e]);for(var n=0;n<e.length;n++){var s=e[n];if("text"===s.type)r.push(TO({children:[s],className:(0,fO.A)(new Set(t))}));else if(s.children){var o,i=t.concat((null===(o=s.properties)||void 0===o?void 0:o.className)||[]);NO(s.children,i).forEach((function(e){return r.push(e)}))}}return r}function IO(e,t,r,n,s,o,i,a,c){var l,u=NO(e.value),p=[],h=-1,d=0;function f(e,o){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||l.length>0?function(e,o){return TO({children:e,lineNumber:o,lineNumberStyle:a,largestLineNumber:i,showInlineLineNumbers:s,lineProps:r,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:n,wrapLongLines:c,wrapLines:t})}(e,o,l):function(e,t){if(n&&t&&s){var r=kO(a,t,i);e.unshift(jO(t,r))}return e}(e,o)}for(var m=function(){var e=u[d],t=e.children[0].value,r=function(e){return e.match(OO)}(t);if(r){var s=t.split("\n");s.forEach((function(t,r){var i=n&&p.length+o,a={type:"text",value:"".concat(t,"\n")};if(0===r){var c=f(u.slice(h+1,d).concat(TO({children:[a],className:e.properties.className})),i);p.push(c)}else if(r===s.length-1){var l=u[d+1]&&u[d+1].children&&u[d+1].children[0],m={type:"text",value:"".concat(t)};if(l){var g=TO({children:[m],className:e.properties.className});u.splice(d+1,0,g)}else{var y=f([m],i,e.properties.className);p.push(y)}}else{var v=f([a],i,e.properties.className);p.push(v)}})),h=d}d++};d<u.length;)m();if(h!==u.length-1){var g=u.slice(h+1,u.length);if(g&&g.length){var y=f(g,n&&p.length+o);p.push(y)}}return t?p:(l=[]).concat.apply(l,p)}function PO(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map((function(e,t){return xO({node:e,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(t)})}))}function MO(e){return e&&void 0!==e.highlightAuto}var RO,DO,$O=r(43768),FO=(RO=$O,DO={},function(e){var t,r,n=e.language,s=e.children,o=e.style,i=void 0===o?DO:o,a=e.customStyle,c=void 0===a?{}:a,l=e.codeTagProps,u=void 0===l?{className:n?"language-".concat(n):void 0,style:AO(AO({},i['code[class*="language-"]']),i['code[class*="language-'.concat(n,'"]')])}:l,p=e.useInlineStyles,h=void 0===p||p,d=e.showLineNumbers,m=void 0!==d&&d,g=e.showInlineLineNumbers,y=void 0===g||g,v=e.startingLineNumber,b=void 0===v?1:v,E=e.lineNumberContainerStyle,w=e.lineNumberStyle,x=void 0===w?{}:w,S=e.wrapLines,_=e.wrapLongLines,A=void 0!==_&&_,O=e.lineProps,C=void 0===O?{}:O,j=e.renderer,k=e.PreTag,T=void 0===k?"pre":k,N=e.CodeTag,I=void 0===N?"code":N,P=e.code,M=void 0===P?(Array.isArray(s)?s[0]:s)||"":P,R=e.astGenerator,D=(0,dO.A)(e,SO);R=R||RO;var $=m?f.createElement(CO,{containerStyle:E,codeStyle:u.style||{},numberStyle:x,startingLineNumber:b,codeString:M}):null,F=i.hljs||i['pre[class*="language-"]']||{backgroundColor:"#fff"},B=MO(R)?"hljs":"prismjs",L=h?Object.assign({},D,{style:Object.assign({},F,c)}):Object.assign({},D,{className:D.className?"".concat(B," ").concat(D.className):B,style:Object.assign({},c)});if(u.style=AO(A?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"},u.style),!R)return f.createElement(T,L,$,f.createElement(I,u,M));(void 0===S&&j||A)&&(S=!0),j=j||PO;var q=[{type:"text",value:M}],U=function(e){var t=e.astGenerator,r=e.language,n=e.code,s=e.defaultCodeValue;if(MO(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,r);return"text"===r?{value:s,language:"text"}:o?t.highlight(r,n):t.highlightAuto(n)}try{return r&&"text"!==r?{value:t.highlight(n,r)}:{value:s}}catch(e){return{value:s}}}({astGenerator:R,language:n,code:M,defaultCodeValue:q});null===U.language&&(U.value=q);var z=IO(U,S,C,m,y,b,b+(null!==(t=null===(r=M.match(/\n/g))||void 0===r?void 0:r.length)&&void 0!==t?t:0),x,A);return f.createElement(T,L,f.createElement(I,u,!y&&$,j({rows:z,stylesheet:i,useInlineStyles:h})))});FO.registerLanguage=$O.registerLanguage;const BO=FO;var LO=r(95089);const qO=r.n(LO)();var UO=r(65772);const zO=r.n(UO)();var JO=r(17285);const VO=r.n(JO)();var WO=r(35344);const KO=r.n(WO)();var HO=r(17533);const GO=r.n(HO)();var YO=r(73402);const XO=r.n(YO)();var ZO=r(26571);const QO=r.n(ZO)(),eC={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#333",color:"white"},"hljs-name":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-code":{fontStyle:"italic",color:"#888"},"hljs-emphasis":{fontStyle:"italic"},"hljs-tag":{color:"#62c8f3"},"hljs-variable":{color:"#ade5fc"},"hljs-template-variable":{color:"#ade5fc"},"hljs-selector-id":{color:"#ade5fc"},"hljs-selector-class":{color:"#ade5fc"},"hljs-string":{color:"#a2fca2"},"hljs-bullet":{color:"#d36363"},"hljs-type":{color:"#ffa"},"hljs-title":{color:"#ffa"},"hljs-section":{color:"#ffa"},"hljs-attribute":{color:"#ffa"},"hljs-quote":{color:"#ffa"},"hljs-built_in":{color:"#ffa"},"hljs-builtin-name":{color:"#ffa"},"hljs-number":{color:"#d36363"},"hljs-symbol":{color:"#d36363"},"hljs-keyword":{color:"#fcc28c"},"hljs-selector-tag":{color:"#fcc28c"},"hljs-literal":{color:"#fcc28c"},"hljs-comment":{color:"#888"},"hljs-deletion":{color:"#333",backgroundColor:"#fc9b9b"},"hljs-regexp":{color:"#c6b4f0"},"hljs-link":{color:"#c6b4f0"},"hljs-meta":{color:"#fc9b9b"},"hljs-addition":{backgroundColor:"#a2fca2",color:"#333"}};var tC,rC=r(5419),nC=r.n(rC),sC=r(47248),oC=r.n(sC),iC=r(13222),aC=r.n(iC),cC=r(26657),lC=r.n(cC),uC=r(80218),pC=r.n(uC);function hC(e){return(tC=tC||document.createElement("textarea")).innerHTML="&"+e+";",tC.value}var dC=Object.prototype.hasOwnProperty;function fC(e){return[].slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(r){e[r]=t[r]}))}})),e}var mC=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function gC(e){return e.indexOf("\\")<0?e:e.replace(mC,"$1")}function yC(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function vC(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var bC=/&([a-z#][a-z0-9]{1,31});/gi,EC=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function wC(e,t){var r=0,n=hC(t);return t!==n?n:35===t.charCodeAt(0)&&EC.test(t)&&yC(r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?vC(r):e}function xC(e){return e.indexOf("&")<0?e:e.replace(bC,wC)}var SC=/[&<>"]/,_C=/[&<>"]/g,AC={"&":"&","<":"<",">":">",'"':"""};function OC(e){return AC[e]}function CC(e){return SC.test(e)?e.replace(_C,OC):e}var jC={};function kC(e,t){return++t>=e.length-2?t:"paragraph_open"===e[t].type&&e[t].tight&&"inline"===e[t+1].type&&0===e[t+1].content.length&&"paragraph_close"===e[t+2].type&&e[t+2].tight?kC(e,t+2):t}jC.blockquote_open=function(){return"<blockquote>\n"},jC.blockquote_close=function(e,t){return"</blockquote>"+TC(e,t)},jC.code=function(e,t){return e[t].block?"<pre><code>"+CC(e[t].content)+"</code></pre>"+TC(e,t):"<code>"+CC(e[t].content)+"</code>"},jC.fence=function(e,t,r,n,s){var o,i,a,c,l=e[t],u="",p=r.langPrefix;if(l.params){if(i=(o=l.params.split(/\s+/g)).join(" "),a=s.rules.fence_custom,c=o[0],a&&dC.call(a,c))return s.rules.fence_custom[o[0]](e,t,r,n,s);u=' class="'+p+CC(xC(gC(i)))+'"'}return"<pre><code"+u+">"+(r.highlight&&r.highlight.apply(r.highlight,[l.content].concat(o))||CC(l.content))+"</code></pre>"+TC(e,t)},jC.fence_custom={},jC.heading_open=function(e,t){return"<h"+e[t].hLevel+">"},jC.heading_close=function(e,t){return"</h"+e[t].hLevel+">\n"},jC.hr=function(e,t,r){return(r.xhtmlOut?"<hr />":"<hr>")+TC(e,t)},jC.bullet_list_open=function(){return"<ul>\n"},jC.bullet_list_close=function(e,t){return"</ul>"+TC(e,t)},jC.list_item_open=function(){return"<li>"},jC.list_item_close=function(){return"</li>\n"},jC.ordered_list_open=function(e,t){var r=e[t];return"<ol"+(r.order>1?' start="'+r.order+'"':"")+">\n"},jC.ordered_list_close=function(e,t){return"</ol>"+TC(e,t)},jC.paragraph_open=function(e,t){return e[t].tight?"":"<p>"},jC.paragraph_close=function(e,t){var r=!(e[t].tight&&t&&"inline"===e[t-1].type&&!e[t-1].content);return(e[t].tight?"":"</p>")+(r?TC(e,t):"")},jC.link_open=function(e,t,r){var n=e[t].title?' title="'+CC(xC(e[t].title))+'"':"",s=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+CC(e[t].href)+'"'+n+s+">"},jC.link_close=function(){return"</a>"},jC.image=function(e,t,r){var n=' src="'+CC(e[t].src)+'"',s=e[t].title?' title="'+CC(xC(e[t].title))+'"':"";return"<img"+n+' alt="'+(e[t].alt?CC(xC(gC(e[t].alt))):"")+'"'+s+(r.xhtmlOut?" /":"")+">"},jC.table_open=function(){return"<table>\n"},jC.table_close=function(){return"</table>\n"},jC.thead_open=function(){return"<thead>\n"},jC.thead_close=function(){return"</thead>\n"},jC.tbody_open=function(){return"<tbody>\n"},jC.tbody_close=function(){return"</tbody>\n"},jC.tr_open=function(){return"<tr>"},jC.tr_close=function(){return"</tr>\n"},jC.th_open=function(e,t){var r=e[t];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"},jC.th_close=function(){return"</th>"},jC.td_open=function(e,t){var r=e[t];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"},jC.td_close=function(){return"</td>"},jC.strong_open=function(){return"<strong>"},jC.strong_close=function(){return"</strong>"},jC.em_open=function(){return"<em>"},jC.em_close=function(){return"</em>"},jC.del_open=function(){return"<del>"},jC.del_close=function(){return"</del>"},jC.ins_open=function(){return"<ins>"},jC.ins_close=function(){return"</ins>"},jC.mark_open=function(){return"<mark>"},jC.mark_close=function(){return"</mark>"},jC.sub=function(e,t){return"<sub>"+CC(e[t].content)+"</sub>"},jC.sup=function(e,t){return"<sup>"+CC(e[t].content)+"</sup>"},jC.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},jC.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},jC.text=function(e,t){return CC(e[t].content)},jC.htmlblock=function(e,t){return e[t].content},jC.htmltag=function(e,t){return e[t].content},jC.abbr_open=function(e,t){return'<abbr title="'+CC(xC(e[t].title))+'">'},jC.abbr_close=function(){return"</abbr>"},jC.footnote_ref=function(e,t){var r=Number(e[t].id+1).toString(),n="fnref"+r;return e[t].subId>0&&(n+=":"+e[t].subId),'<sup class="footnote-ref"><a href="#fn'+r+'" id="'+n+'">['+r+"]</a></sup>"},jC.footnote_block_open=function(e,t,r){return(r.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'},jC.footnote_block_close=function(){return"</ol>\n</section>\n"},jC.footnote_open=function(e,t){return'<li id="fn'+Number(e[t].id+1).toString()+'" class="footnote-item">'},jC.footnote_close=function(){return"</li>\n"},jC.footnote_anchor=function(e,t){var r="fnref"+Number(e[t].id+1).toString();return e[t].subId>0&&(r+=":"+e[t].subId),' <a href="#'+r+'" class="footnote-backref">↩</a>'},jC.dl_open=function(){return"<dl>\n"},jC.dt_open=function(){return"<dt>"},jC.dd_open=function(){return"<dd>"},jC.dl_close=function(){return"</dl>\n"},jC.dt_close=function(){return"</dt>\n"},jC.dd_close=function(){return"</dd>\n"};var TC=jC.getBreak=function(e,t){return(t=kC(e,t))<e.length&&"list_item_close"===e[t].type?"":"\n"};function NC(){this.rules=fC({},jC),this.getBreak=jC.getBreak}function IC(){this.__rules__=[],this.__cache__=null}function PC(e,t,r,n,s){this.src=e,this.env=n,this.options=r,this.parser=t,this.tokens=s,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}function MC(e,t){var r,n,s,o=-1,i=e.posMax,a=e.pos,c=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,r=1;e.pos<i;){if(91===(s=e.src.charCodeAt(e.pos)))r++;else if(93===s&&0==--r){n=!0;break}e.parser.skipToken(e)}return n?(o=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=r-1,e.pos=a,e.isInLabel=c,o}function RC(e,t,r,n){var s,o,i,a,c,l;if(42!==e.charCodeAt(0))return-1;if(91!==e.charCodeAt(1))return-1;if(-1===e.indexOf("]:"))return-1;if((o=MC(s=new PC(e,t,r,n,[]),1))<0||58!==e.charCodeAt(o+1))return-1;for(a=s.posMax,i=o+2;i<a&&10!==s.src.charCodeAt(i);i++);return c=e.slice(2,o),0===(l=e.slice(o+2,i).trim()).length?-1:(n.abbreviations||(n.abbreviations={}),void 0===n.abbreviations[":"+c]&&(n.abbreviations[":"+c]=l),i)}function DC(e){var t=xC(e);try{t=decodeURI(t)}catch(e){}return encodeURI(t)}function $C(e,t){var r,n,s,o=t,i=e.posMax;if(60===e.src.charCodeAt(t)){for(t++;t<i;){if(10===(r=e.src.charCodeAt(t)))return!1;if(62===r)return s=DC(gC(e.src.slice(o+1,t))),!!e.parser.validateLink(s)&&(e.pos=t+1,e.linkContent=s,!0);92===r&&t+1<i?t+=2:t++}return!1}for(n=0;t<i&&32!==(r=e.src.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<i)t+=2;else{if(40===r&&++n>1)break;if(41===r&&--n<0)break;t++}return o!==t&&(s=gC(e.src.slice(o,t)),!!e.parser.validateLink(s)&&(e.linkContent=s,e.pos=t,!0))}function FC(e,t){var r,n=t,s=e.posMax,o=e.src.charCodeAt(t);if(34!==o&&39!==o&&40!==o)return!1;for(t++,40===o&&(o=41);t<s;){if((r=e.src.charCodeAt(t))===o)return e.pos=t+1,e.linkContent=gC(e.src.slice(n+1,t)),!0;92===r&&t+1<s?t+=2:t++}return!1}function BC(e){return e.trim().replace(/\s+/g," ").toUpperCase()}function LC(e,t,r,n){var s,o,i,a,c,l,u,p,h;if(91!==e.charCodeAt(0))return-1;if(-1===e.indexOf("]:"))return-1;if((o=MC(s=new PC(e,t,r,n,[]),0))<0||58!==e.charCodeAt(o+1))return-1;for(a=s.posMax,i=o+2;i<a&&(32===(c=s.src.charCodeAt(i))||10===c);i++);if(!$C(s,i))return-1;for(u=s.linkContent,l=i=s.pos,i+=1;i<a&&(32===(c=s.src.charCodeAt(i))||10===c);i++);for(i<a&&l!==i&&FC(s,i)?(p=s.linkContent,i=s.pos):(p="",i=l);i<a&&32===s.src.charCodeAt(i);)i++;return i<a&&10!==s.src.charCodeAt(i)?-1:(h=BC(e.slice(1,o)),void 0===n.references[h]&&(n.references[h]={title:p,href:u}),i)}NC.prototype.renderInline=function(e,t,r){for(var n=this.rules,s=e.length,o=0,i="";s--;)i+=n[e[o].type](e,o++,t,r,this);return i},NC.prototype.render=function(e,t,r){for(var n=this.rules,s=e.length,o=-1,i="";++o<s;)"inline"===e[o].type?i+=this.renderInline(e[o].children,t,r):i+=n[e[o].type](e,o,t,r,this);return i},IC.prototype.__find__=function(e){for(var t=this.__rules__.length,r=-1;t--;)if(this.__rules__[++r].name===e)return r;return-1},IC.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(r){r.enabled&&(t&&r.alt.indexOf(t)<0||e.__cache__[t].push(r.fn))}))}))},IC.prototype.at=function(e,t,r){var n=this.__find__(e),s=r||{};if(-1===n)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=s.alt||[],this.__cache__=null},IC.prototype.before=function(e,t,r,n){var s=this.__find__(e),o=n||{};if(-1===s)throw new Error("Parser rule not found: "+e);this.__rules__.splice(s,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null},IC.prototype.after=function(e,t,r,n){var s=this.__find__(e),o=n||{};if(-1===s)throw new Error("Parser rule not found: "+e);this.__rules__.splice(s+1,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null},IC.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null},IC.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach((function(e){e.enabled=!1})),e.forEach((function(e){var t=this.__find__(e);if(t<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!0}),this),this.__cache__=null},IC.prototype.disable=function(e){(e=Array.isArray(e)?e:[e]).forEach((function(e){var t=this.__find__(e);if(t<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!1}),this),this.__cache__=null},IC.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},PC.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},PC.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},PC.prototype.cacheSet=function(e,t){for(var r=this.cache.length;r<=e;r++)this.cache.push(0);this.cache[e]=t},PC.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};var qC=" \n()[]'\".,!?-";function UC(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}var zC=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,JC=/\((c|tm|r|p)\)/gi,VC={c:"©",r:"®",p:"§",tm:"™"};function WC(e){return e.indexOf("(")<0?e:e.replace(JC,(function(e,t){return VC[t.toLowerCase()]}))}var KC=/['"]/,HC=/['"]/g,GC=/[-\s()\[\]]/;function YC(e,t){return!(t<0||t>=e.length||GC.test(e[t]))}function XC(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}var ZC=[["block",function(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}],["abbr",function(e){var t,r,n,s,o=e.tokens;if(!e.inlineMode)for(t=1,r=o.length-1;t<r;t++)if("paragraph_open"===o[t-1].type&&"inline"===o[t].type&&"paragraph_close"===o[t+1].type){for(n=o[t].content;n.length&&!((s=RC(n,e.inline,e.options,e.env))<0);)n=n.slice(s).trim();o[t].content=n,n.length||(o[t-1].tight=!0,o[t+1].tight=!0)}}],["references",function(e){var t,r,n,s,o=e.tokens;if(e.env.references=e.env.references||{},!e.inlineMode)for(t=1,r=o.length-1;t<r;t++)if("inline"===o[t].type&&"paragraph_open"===o[t-1].type&&"paragraph_close"===o[t+1].type){for(n=o[t].content;n.length&&!((s=LC(n,e.inline,e.options,e.env))<0);)n=n.slice(s).trim();o[t].content=n,n.length||(o[t-1].tight=!0,o[t+1].tight=!0)}}],["inline",function(e){var t,r,n,s=e.tokens;for(r=0,n=s.length;r<n;r++)"inline"===(t=s[r]).type&&e.inline.parse(t.content,e.options,e.env,t.children)}],["footnote_tail",function(e){var t,r,n,s,o,i,a,c,l,u=0,p=!1,h={};if(e.env.footnotes&&(e.tokens=e.tokens.filter((function(e){return"footnote_reference_open"===e.type?(p=!0,c=[],l=e.label,!1):"footnote_reference_close"===e.type?(p=!1,h[":"+l]=c,!1):(p&&c.push(e),!p)})),e.env.footnotes.list)){for(i=e.env.footnotes.list,e.tokens.push({type:"footnote_block_open",level:u++}),t=0,r=i.length;t<r;t++){for(e.tokens.push({type:"footnote_open",id:t,level:u++}),i[t].tokens?((a=[]).push({type:"paragraph_open",tight:!1,level:u++}),a.push({type:"inline",content:"",level:u,children:i[t].tokens}),a.push({type:"paragraph_close",tight:!1,level:--u})):i[t].label&&(a=h[":"+i[t].label]),e.tokens=e.tokens.concat(a),o="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop():null,s=i[t].count>0?i[t].count:1,n=0;n<s;n++)e.tokens.push({type:"footnote_anchor",id:t,subId:n,level:u});o&&e.tokens.push(o),e.tokens.push({type:"footnote_close",level:--u})}e.tokens.push({type:"footnote_block_close",level:--u})}}],["abbr2",function(e){var t,r,n,s,o,i,a,c,l,u,p,h,d=e.tokens;if(e.env.abbreviations)for(e.env.abbrRegExp||(h="(^|["+qC.split("").map(UC).join("")+"])("+Object.keys(e.env.abbreviations).map((function(e){return e.substr(1)})).sort((function(e,t){return t.length-e.length})).map(UC).join("|")+")($|["+qC.split("").map(UC).join("")+"])",e.env.abbrRegExp=new RegExp(h,"g")),u=e.env.abbrRegExp,r=0,n=d.length;r<n;r++)if("inline"===d[r].type)for(t=(s=d[r].children).length-1;t>=0;t--)if("text"===(o=s[t]).type){for(c=0,i=o.content,u.lastIndex=0,l=o.level,a=[];p=u.exec(i);)u.lastIndex>c&&a.push({type:"text",content:i.slice(c,p.index+p[1].length),level:l}),a.push({type:"abbr_open",title:e.env.abbreviations[":"+p[2]],level:l++}),a.push({type:"text",content:p[2],level:l}),a.push({type:"abbr_close",level:--l}),c=u.lastIndex-p[3].length;a.length&&(c<i.length&&a.push({type:"text",content:i.slice(c),level:l}),d[r].children=s=[].concat(s.slice(0,t),a,s.slice(t+1)))}}],["replacements",function(e){var t,r,n,s,o;if(e.options.typographer)for(o=e.tokens.length-1;o>=0;o--)if("inline"===e.tokens[o].type)for(t=(s=e.tokens[o].children).length-1;t>=0;t--)"text"===(r=s[t]).type&&(n=WC(n=r.content),zC.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),r.content=n)}],["smartquotes",function(e){var t,r,n,s,o,i,a,c,l,u,p,h,d,f,m,g,y;if(e.options.typographer)for(y=[],m=e.tokens.length-1;m>=0;m--)if("inline"===e.tokens[m].type)for(g=e.tokens[m].children,y.length=0,t=0;t<g.length;t++)if("text"===(r=g[t]).type&&!KC.test(r.text)){for(a=g[t].level,d=y.length-1;d>=0&&!(y[d].level<=a);d--);y.length=d+1,o=0,i=(n=r.content).length;e:for(;o<i&&(HC.lastIndex=o,s=HC.exec(n));)if(c=!YC(n,s.index-1),o=s.index+1,f="'"===s[0],(l=!YC(n,o))||c){if(p=!l,h=!c)for(d=y.length-1;d>=0&&(u=y[d],!(y[d].level<a));d--)if(u.single===f&&y[d].level===a){u=y[d],f?(g[u.token].content=XC(g[u.token].content,u.pos,e.options.quotes[2]),r.content=XC(r.content,s.index,e.options.quotes[3])):(g[u.token].content=XC(g[u.token].content,u.pos,e.options.quotes[0]),r.content=XC(r.content,s.index,e.options.quotes[1])),y.length=d;continue e}p?y.push({token:t,pos:s.index,single:f,level:a}):h&&f&&(r.content=XC(r.content,s.index,"’"))}else f&&(r.content=XC(r.content,s.index,"’"))}}]];function QC(){this.options={},this.ruler=new IC;for(var e=0;e<ZC.length;e++)this.ruler.push(ZC[e][0],ZC[e][1])}function ej(e,t,r,n,s){var o,i,a,c,l,u,p;for(this.src=e,this.parser=t,this.options=r,this.env=n,this.tokens=s,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",u=0,p=!1,a=c=u=0,l=(i=this.src).length;c<l;c++){if(o=i.charCodeAt(c),!p){if(32===o){u++;continue}p=!0}10!==o&&c!==l-1||(10!==o&&c++,this.bMarks.push(a),this.eMarks.push(c),this.tShift.push(u),p=!1,u=0,a=c+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}function tj(e,t){var r,n,s;return(n=e.bMarks[t]+e.tShift[t])>=(s=e.eMarks[t])||42!==(r=e.src.charCodeAt(n++))&&45!==r&&43!==r||n<s&&32!==e.src.charCodeAt(n)?-1:n}function rj(e,t){var r,n=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(n+1>=s)return-1;if((r=e.src.charCodeAt(n++))<48||r>57)return-1;for(;;){if(n>=s)return-1;if(!((r=e.src.charCodeAt(n++))>=48&&r<=57)){if(41===r||46===r)break;return-1}}return n<s&&32!==e.src.charCodeAt(n)?-1:n}QC.prototype.process=function(e){var t,r,n;for(t=0,r=(n=this.ruler.getRules("")).length;t<r;t++)n[t](e)},ej.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ej.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},ej.prototype.skipSpaces=function(e){for(var t=this.src.length;e<t&&32===this.src.charCodeAt(e);e++);return e},ej.prototype.skipChars=function(e,t){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e},ej.prototype.skipCharsBack=function(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e},ej.prototype.getLines=function(e,t,r,n){var s,o,i,a,c,l=e;if(e>=t)return"";if(l+1===t)return o=this.bMarks[l]+Math.min(this.tShift[l],r),i=n?this.eMarks[l]+1:this.eMarks[l],this.src.slice(o,i);for(a=new Array(t-e),s=0;l<t;l++,s++)(c=this.tShift[l])>r&&(c=r),c<0&&(c=0),o=this.bMarks[l]+c,i=l+1<t||n?this.eMarks[l]+1:this.eMarks[l],a[s]=this.src.slice(o,i);return a.join("")};var nj={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach((function(e){nj[e]=!0}));var sj=/^<([a-zA-Z]{1,15})[\s\/>]/,oj=/^<\/([a-zA-Z]{1,15})[\s>]/;function ij(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function aj(e,t){var r,n,s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return s>=o||126!==(n=e.src.charCodeAt(s++))&&58!==n||s===(r=e.skipSpaces(s))||r>=o?-1:r}var cj=[["code",function(e,t,r){var n,s;if(e.tShift[t]-e.blkIndent<4)return!1;for(s=n=t+1;n<r;)if(e.isEmpty(n))n++;else{if(!(e.tShift[n]-e.blkIndent>=4))break;s=++n}return e.line=n,e.tokens.push({type:"code",content:e.getLines(t,s,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}],["fences",function(e,t,r,n){var s,o,i,a,c,l=!1,u=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(u+3>p)return!1;if(126!==(s=e.src.charCodeAt(u))&&96!==s)return!1;if(c=u,(o=(u=e.skipChars(u,s))-c)<3)return!1;if((i=e.src.slice(u,p).trim()).indexOf("`")>=0)return!1;if(n)return!0;for(a=t;!(++a>=r||(u=c=e.bMarks[a]+e.tShift[a])<(p=e.eMarks[a])&&e.tShift[a]<e.blkIndent);)if(e.src.charCodeAt(u)===s&&!(e.tShift[a]-e.blkIndent>=4||(u=e.skipChars(u,s))-c<o||(u=e.skipSpaces(u))<p)){l=!0;break}return o=e.tShift[t],e.line=a+(l?1:0),e.tokens.push({type:"fence",params:i,content:e.getLines(t+1,a,o,!0),lines:[t,e.line],level:e.level}),!0},["paragraph","blockquote","list"]],["blockquote",function(e,t,r,n){var s,o,i,a,c,l,u,p,h,d,f,m=e.bMarks[t]+e.tShift[t],g=e.eMarks[t];if(m>g)return!1;if(62!==e.src.charCodeAt(m++))return!1;if(e.level>=e.options.maxNesting)return!1;if(n)return!0;for(32===e.src.charCodeAt(m)&&m++,c=e.blkIndent,e.blkIndent=0,a=[e.bMarks[t]],e.bMarks[t]=m,o=(m=m<g?e.skipSpaces(m):m)>=g,i=[e.tShift[t]],e.tShift[t]=m-e.bMarks[t],p=e.parser.ruler.getRules("blockquote"),s=t+1;s<r&&!((m=e.bMarks[s]+e.tShift[s])>=(g=e.eMarks[s]));s++)if(62!==e.src.charCodeAt(m++)){if(o)break;for(f=!1,h=0,d=p.length;h<d;h++)if(p[h](e,s,r,!0)){f=!0;break}if(f)break;a.push(e.bMarks[s]),i.push(e.tShift[s]),e.tShift[s]=-1337}else 32===e.src.charCodeAt(m)&&m++,a.push(e.bMarks[s]),e.bMarks[s]=m,o=(m=m<g?e.skipSpaces(m):m)>=g,i.push(e.tShift[s]),e.tShift[s]=m-e.bMarks[s];for(l=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:u=[t,0],level:e.level++}),e.parser.tokenize(e,t,s),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=l,u[1]=e.line,h=0;h<i.length;h++)e.bMarks[h+t]=a[h],e.tShift[h+t]=i[h];return e.blkIndent=c,!0},["paragraph","blockquote","list"]],["hr",function(e,t,r,n){var s,o,i,a=e.bMarks[t],c=e.eMarks[t];if((a+=e.tShift[t])>c)return!1;if(42!==(s=e.src.charCodeAt(a++))&&45!==s&&95!==s)return!1;for(o=1;a<c;){if((i=e.src.charCodeAt(a++))!==s&&32!==i)return!1;i===s&&o++}return!(o<3||(n||(e.line=t+1,e.tokens.push({type:"hr",lines:[t,e.line],level:e.level})),0))},["paragraph","blockquote","list"]],["list",function(e,t,r,n){var s,o,i,a,c,l,u,p,h,d,f,m,g,y,v,b,E,w,x,S,_,A=!0;if((p=rj(e,t))>=0)m=!0;else{if(!((p=tj(e,t))>=0))return!1;m=!1}if(e.level>=e.options.maxNesting)return!1;if(f=e.src.charCodeAt(p-1),n)return!0;for(y=e.tokens.length,m?(u=e.bMarks[t]+e.tShift[t],d=Number(e.src.substr(u,p-u-1)),e.tokens.push({type:"ordered_list_open",order:d,lines:b=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:b=[t,0],level:e.level++}),s=t,v=!1,w=e.parser.ruler.getRules("list");!(!(s<r)||((h=(g=e.skipSpaces(p))>=e.eMarks[s]?1:g-p)>4&&(h=1),h<1&&(h=1),o=p-e.bMarks[s]+h,e.tokens.push({type:"list_item_open",lines:E=[t,0],level:e.level++}),a=e.blkIndent,c=e.tight,i=e.tShift[t],l=e.parentType,e.tShift[t]=g-e.bMarks[t],e.blkIndent=o,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,r,!0),e.tight&&!v||(A=!1),v=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=a,e.tShift[t]=i,e.tight=c,e.parentType=l,e.tokens.push({type:"list_item_close",level:--e.level}),s=t=e.line,E[1]=s,g=e.bMarks[t],s>=r)||e.isEmpty(s)||e.tShift[s]<e.blkIndent);){for(_=!1,x=0,S=w.length;x<S;x++)if(w[x](e,s,r,!0)){_=!0;break}if(_)break;if(m){if((p=rj(e,s))<0)break}else if((p=tj(e,s))<0)break;if(f!==e.src.charCodeAt(p-1))break}return e.tokens.push({type:m?"ordered_list_close":"bullet_list_close",level:--e.level}),b[1]=s,e.line=s,A&&function(e,t){var r,n,s=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===s&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].tight=!0,e.tokens[r].tight=!0,r+=2)}(e,y),!0},["paragraph","blockquote"]],["footnote",function(e,t,r,n){var s,o,i,a,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(l+4>u)return!1;if(91!==e.src.charCodeAt(l))return!1;if(94!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(a=l+2;a<u;a++){if(32===e.src.charCodeAt(a))return!1;if(93===e.src.charCodeAt(a))break}return!(a===l+2||a+1>=u||58!==e.src.charCodeAt(++a)||(n||(a++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),c=e.src.slice(l+2,a-2),e.env.footnotes.refs[":"+c]=-1,e.tokens.push({type:"footnote_reference_open",label:c,level:e.level++}),s=e.bMarks[t],o=e.tShift[t],i=e.parentType,e.tShift[t]=e.skipSpaces(a)-a,e.bMarks[t]=a,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]<e.blkIndent&&(e.tShift[t]+=e.blkIndent,e.bMarks[t]-=e.blkIndent),e.parser.tokenize(e,t,r,!0),e.parentType=i,e.blkIndent-=4,e.tShift[t]=o,e.bMarks[t]=s,e.tokens.push({type:"footnote_reference_close",level:--e.level})),0))},["paragraph"]],["heading",function(e,t,r,n){var s,o,i,a=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(a>=c)return!1;if(35!==(s=e.src.charCodeAt(a))||a>=c)return!1;for(o=1,s=e.src.charCodeAt(++a);35===s&&a<c&&o<=6;)o++,s=e.src.charCodeAt(++a);return!(o>6||a<c&&32!==s||(n||(c=e.skipCharsBack(c,32,a),(i=e.skipCharsBack(c,35,a))>a&&32===e.src.charCodeAt(i-1)&&(c=i),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:o,lines:[t,e.line],level:e.level}),a<c&&e.tokens.push({type:"inline",content:e.src.slice(a,c).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"heading_close",hLevel:o,level:e.level})),0))},["paragraph","blockquote"]],["lheading",function(e,t,r){var n,s,o,i=t+1;return!(i>=r||e.tShift[i]<e.blkIndent||e.tShift[i]-e.blkIndent>3||(s=e.bMarks[i]+e.tShift[i])>=(o=e.eMarks[i])||45!==(n=e.src.charCodeAt(s))&&61!==n||(s=e.skipChars(s,n),(s=e.skipSpaces(s))<o||(s=e.bMarks[t]+e.tShift[t],e.line=i+1,e.tokens.push({type:"heading_open",hLevel:61===n?1:2,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(s,e.eMarks[t]).trim(),level:e.level+1,lines:[t,e.line-1],children:[]}),e.tokens.push({type:"heading_close",hLevel:61===n?1:2,level:e.level}),0)))}],["htmlblock",function(e,t,r,n){var s,o,i,a=e.bMarks[t],c=e.eMarks[t],l=e.tShift[t];if(a+=l,!e.options.html)return!1;if(l>3||a+2>=c)return!1;if(60!==e.src.charCodeAt(a))return!1;if(33===(s=e.src.charCodeAt(a+1))||63===s){if(n)return!0}else{if(47!==s&&!function(e){var t=32|e;return t>=97&&t<=122}(s))return!1;if(47===s){if(!(o=e.src.slice(a,c).match(oj)))return!1}else if(!(o=e.src.slice(a,c).match(sj)))return!1;if(!0!==nj[o[1].toLowerCase()])return!1;if(n)return!0}for(i=t+1;i<e.lineMax&&!e.isEmpty(i);)i++;return e.line=i,e.tokens.push({type:"htmlblock",level:e.level,lines:[t,e.line],content:e.getLines(t,i,0,!0)}),!0},["paragraph","blockquote"]],["table",function(e,t,r,n){var s,o,i,a,c,l,u,p,h,d,f;if(t+2>r)return!1;if(c=t+1,e.tShift[c]<e.blkIndent)return!1;if((i=e.bMarks[c]+e.tShift[c])>=e.eMarks[c])return!1;if(124!==(s=e.src.charCodeAt(i))&&45!==s&&58!==s)return!1;if(o=ij(e,t+1),!/^[-:| ]+$/.test(o))return!1;if((l=o.split("|"))<=2)return!1;for(p=[],a=0;a<l.length;a++){if(!(h=l[a].trim())){if(0===a||a===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;58===h.charCodeAt(h.length-1)?p.push(58===h.charCodeAt(0)?"center":"right"):58===h.charCodeAt(0)?p.push("left"):p.push("")}if(-1===(o=ij(e,t).trim()).indexOf("|"))return!1;if(l=o.replace(/^\||\|$/g,"").split("|"),p.length!==l.length)return!1;if(n)return!0;for(e.tokens.push({type:"table_open",lines:d=[t,0],level:e.level++}),e.tokens.push({type:"thead_open",lines:[t,t+1],level:e.level++}),e.tokens.push({type:"tr_open",lines:[t,t+1],level:e.level++}),a=0;a<l.length;a++)e.tokens.push({type:"th_open",align:p[a],lines:[t,t+1],level:e.level++}),e.tokens.push({type:"inline",content:l[a].trim(),lines:[t,t+1],level:e.level,children:[]}),e.tokens.push({type:"th_close",level:--e.level});for(e.tokens.push({type:"tr_close",level:--e.level}),e.tokens.push({type:"thead_close",level:--e.level}),e.tokens.push({type:"tbody_open",lines:f=[t+2,0],level:e.level++}),c=t+2;c<r&&!(e.tShift[c]<e.blkIndent)&&-1!==(o=ij(e,c).trim()).indexOf("|");c++){for(l=o.replace(/^\||\|$/g,"").split("|"),e.tokens.push({type:"tr_open",level:e.level++}),a=0;a<l.length;a++)e.tokens.push({type:"td_open",align:p[a],level:e.level++}),u=l[a].substring(124===l[a].charCodeAt(0)?1:0,124===l[a].charCodeAt(l[a].length-1)?l[a].length-1:l[a].length).trim(),e.tokens.push({type:"inline",content:u,level:e.level,children:[]}),e.tokens.push({type:"td_close",level:--e.level});e.tokens.push({type:"tr_close",level:--e.level})}return e.tokens.push({type:"tbody_close",level:--e.level}),e.tokens.push({type:"table_close",level:--e.level}),d[1]=f[1]=c,e.line=c,!0},["paragraph"]],["deflist",function(e,t,r,n){var s,o,i,a,c,l,u,p,h,d,f,m,g,y;if(n)return!(e.ddIndent<0)&&aj(e,t)>=0;if(u=t+1,e.isEmpty(u)&&++u>r)return!1;if(e.tShift[u]<e.blkIndent)return!1;if((s=aj(e,u))<0)return!1;if(e.level>=e.options.maxNesting)return!1;l=e.tokens.length,e.tokens.push({type:"dl_open",lines:c=[t,0],level:e.level++}),i=t,o=u;e:for(;;){for(y=!0,g=!1,e.tokens.push({type:"dt_open",lines:[i,i],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(i,i+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[i,i],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:a=[u,0],level:e.level++}),m=e.tight,h=e.ddIndent,p=e.blkIndent,f=e.tShift[o],d=e.parentType,e.blkIndent=e.ddIndent=e.tShift[o]+2,e.tShift[o]=s-e.bMarks[o],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,o,r,!0),e.tight&&!g||(y=!1),g=e.line-o>1&&e.isEmpty(e.line-1),e.tShift[o]=f,e.tight=m,e.parentType=d,e.blkIndent=p,e.ddIndent=h,e.tokens.push({type:"dd_close",level:--e.level}),a[1]=u=e.line,u>=r)break e;if(e.tShift[u]<e.blkIndent)break e;if((s=aj(e,u))<0)break;o=u}if(u>=r)break;if(i=u,e.isEmpty(i))break;if(e.tShift[i]<e.blkIndent)break;if((o=i+1)>=r)break;if(e.isEmpty(o)&&o++,o>=r)break;if(e.tShift[o]<e.blkIndent)break;if((s=aj(e,o))<0)break}return e.tokens.push({type:"dl_close",level:--e.level}),c[1]=u,e.line=u,y&&function(e,t){var r,n,s=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===s&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].tight=!0,e.tokens[r].tight=!0,r+=2)}(e,l),!0},["paragraph"]],["paragraph",function(e,t){var r,n,s,o,i,a,c=t+1;if(c<(r=e.lineMax)&&!e.isEmpty(c))for(a=e.parser.ruler.getRules("paragraph");c<r&&!e.isEmpty(c);c++)if(!(e.tShift[c]-e.blkIndent>3)){for(s=!1,o=0,i=a.length;o<i;o++)if(a[o](e,c,r,!0)){s=!0;break}if(s)break}return n=e.getLines(t,c,e.blkIndent,!1).trim(),e.line=c,n.length&&(e.tokens.push({type:"paragraph_open",tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:n,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"paragraph_close",tight:!1,level:e.level})),!0}]];function lj(){this.ruler=new IC;for(var e=0;e<cj.length;e++)this.ruler.push(cj[e][0],cj[e][1],{alt:(cj[e][2]||[]).slice()})}lj.prototype.tokenize=function(e,t,r){for(var n,s=this.ruler.getRules(""),o=s.length,i=t,a=!1;i<r&&(e.line=i=e.skipEmptyLines(i),!(i>=r))&&!(e.tShift[i]<e.blkIndent);){for(n=0;n<o&&!s[n](e,i,r,!1);n++);if(e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(i=e.line)<r&&e.isEmpty(i)){if(a=!0,++i<r&&"list"===e.parentType&&e.isEmpty(i))break;e.line=i}}};var uj=/[\n\t]/g,pj=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,hj=/\u00a0/g;function dj(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}lj.prototype.parse=function(e,t,r,n){var s,o=0,i=0;if(!e)return[];(e=(e=e.replace(hj," ")).replace(pj,"\n")).indexOf("\t")>=0&&(e=e.replace(uj,(function(t,r){var n;return 10===e.charCodeAt(r)?(o=r+1,i=0,t):(n=" ".slice((r-o-i)%4),i=r-o+1,n)}))),s=new ej(e,this,t,r,n),this.tokenize(s,s.line,s.lineMax)};for(var fj=[],mj=0;mj<256;mj++)fj.push(0);function gj(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function yj(e,t){var r,n,s,o=t,i=!0,a=!0,c=e.posMax,l=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;o<c&&e.src.charCodeAt(o)===l;)o++;return o>=c&&(i=!1),(s=o-t)>=4?i=a=!1:(32!==(n=o<c?e.src.charCodeAt(o):-1)&&10!==n||(i=!1),32!==r&&10!==r||(a=!1),95===l&&(gj(r)&&(i=!1),gj(n)&&(a=!1))),{can_open:i,can_close:a,delims:s}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){fj[e.charCodeAt(0)]=1}));var vj=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,bj=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,Ej=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],wj=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,xj=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Sj(e,t){return e=e.source,t=t||"",function r(n,s){return n?(s=s.source||s,e=e.replace(n,s),r):new RegExp(e,t)}}var _j=Sj(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),Aj=Sj(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",_j)(),Oj=Sj(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",Aj)(),Cj=Sj(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",Oj)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/)("processing",/<[?].*?[?]>/)("declaration",/<![A-Z]+\s+[^>]*>/)("cdata",/<!\[CDATA\[[\s\S]*?\]\]>/)(),jj=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,kj=/^&([a-z][a-z0-9]{1,31});/i,Tj=[["text",function(e,t){for(var r=e.pos;r<e.posMax&&!dj(e.src.charCodeAt(r));)r++;return r!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}],["newline",function(e,t){var r,n,s=e.pos;if(10!==e.src.charCodeAt(s))return!1;if(r=e.pending.length-1,n=e.posMax,!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){for(var o=r-2;o>=0;o--)if(32!==e.pending.charCodeAt(o)){e.pending=e.pending.substring(0,o+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(s++;s<n&&32===e.src.charCodeAt(s);)s++;return e.pos=s,!0}],["escape",function(e,t){var r,n=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(++n<s){if((r=e.src.charCodeAt(n))<256&&0!==fj[r])return t||(e.pending+=e.src[n]),e.pos+=2,!0;if(10===r){for(t||e.push({type:"hardbreak",level:e.level}),n++;n<s&&32===e.src.charCodeAt(n);)n++;return e.pos=n,!0}}return t||(e.pending+="\\"),e.pos++,!0}],["backticks",function(e,t){var r,n,s,o,i,a=e.pos;if(96!==e.src.charCodeAt(a))return!1;for(r=a,a++,n=e.posMax;a<n&&96===e.src.charCodeAt(a);)a++;for(s=e.src.slice(r,a),o=i=a;-1!==(o=e.src.indexOf("`",i));){for(i=o+1;i<n&&96===e.src.charCodeAt(i);)i++;if(i-o===s.length)return t||e.push({type:"code",content:e.src.slice(a,o).replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos=i,!0}return t||(e.pending+=s),e.pos+=s.length,!0}],["del",function(e,t){var r,n,s,o,i,a=e.posMax,c=e.pos;if(126!==e.src.charCodeAt(c))return!1;if(t)return!1;if(c+4>=a)return!1;if(126!==e.src.charCodeAt(c+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(o=c>0?e.src.charCodeAt(c-1):-1,i=e.src.charCodeAt(c+2),126===o)return!1;if(126===i)return!1;if(32===i||10===i)return!1;for(n=c+2;n<a&&126===e.src.charCodeAt(n);)n++;if(n>c+3)return e.pos+=n-c,t||(e.pending+=e.src.slice(c,n)),!0;for(e.pos=c+2,s=1;e.pos+1<a;){if(126===e.src.charCodeAt(e.pos)&&126===e.src.charCodeAt(e.pos+1)&&(o=e.src.charCodeAt(e.pos-1),126!==(i=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1)&&126!==o&&(32!==o&&10!==o?s--:32!==i&&10!==i&&s++,s<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=c+2,t||(e.push({type:"del_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"del_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=c,!1)}],["ins",function(e,t){var r,n,s,o,i,a=e.posMax,c=e.pos;if(43!==e.src.charCodeAt(c))return!1;if(t)return!1;if(c+4>=a)return!1;if(43!==e.src.charCodeAt(c+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(o=c>0?e.src.charCodeAt(c-1):-1,i=e.src.charCodeAt(c+2),43===o)return!1;if(43===i)return!1;if(32===i||10===i)return!1;for(n=c+2;n<a&&43===e.src.charCodeAt(n);)n++;if(n!==c+2)return e.pos+=n-c,t||(e.pending+=e.src.slice(c,n)),!0;for(e.pos=c+2,s=1;e.pos+1<a;){if(43===e.src.charCodeAt(e.pos)&&43===e.src.charCodeAt(e.pos+1)&&(o=e.src.charCodeAt(e.pos-1),43!==(i=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1)&&43!==o&&(32!==o&&10!==o?s--:32!==i&&10!==i&&s++,s<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=c+2,t||(e.push({type:"ins_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"ins_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=c,!1)}],["mark",function(e,t){var r,n,s,o,i,a=e.posMax,c=e.pos;if(61!==e.src.charCodeAt(c))return!1;if(t)return!1;if(c+4>=a)return!1;if(61!==e.src.charCodeAt(c+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(o=c>0?e.src.charCodeAt(c-1):-1,i=e.src.charCodeAt(c+2),61===o)return!1;if(61===i)return!1;if(32===i||10===i)return!1;for(n=c+2;n<a&&61===e.src.charCodeAt(n);)n++;if(n!==c+2)return e.pos+=n-c,t||(e.pending+=e.src.slice(c,n)),!0;for(e.pos=c+2,s=1;e.pos+1<a;){if(61===e.src.charCodeAt(e.pos)&&61===e.src.charCodeAt(e.pos+1)&&(o=e.src.charCodeAt(e.pos-1),61!==(i=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1)&&61!==o&&(32!==o&&10!==o?s--:32!==i&&10!==i&&s++,s<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=c+2,t||(e.push({type:"mark_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"mark_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=c,!1)}],["emphasis",function(e,t){var r,n,s,o,i,a,c,l=e.posMax,u=e.pos,p=e.src.charCodeAt(u);if(95!==p&&42!==p)return!1;if(t)return!1;if(r=(c=yj(e,u)).delims,!c.can_open)return e.pos+=r,t||(e.pending+=e.src.slice(u,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=u+r,a=[r];e.pos<l;)if(e.src.charCodeAt(e.pos)!==p)e.parser.skipToken(e);else{if(n=(c=yj(e,e.pos)).delims,c.can_close){for(o=a.pop(),i=n;o!==i;){if(i<o){a.push(o-i);break}if(i-=o,0===a.length)break;e.pos+=o,o=a.pop()}if(0===a.length){r=o,s=!0;break}e.pos+=n;continue}c.can_open&&a.push(n),e.pos+=n}return s?(e.posMax=e.pos,e.pos=u+r,t||(2!==r&&3!==r||e.push({type:"strong_open",level:e.level++}),1!==r&&3!==r||e.push({type:"em_open",level:e.level++}),e.parser.tokenize(e),1!==r&&3!==r||e.push({type:"em_close",level:--e.level}),2!==r&&3!==r||e.push({type:"strong_close",level:--e.level})),e.pos=e.posMax+r,e.posMax=l,!0):(e.pos=u,!1)}],["sub",function(e,t){var r,n,s=e.posMax,o=e.pos;if(126!==e.src.charCodeAt(o))return!1;if(t)return!1;if(o+2>=s)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=o+1;e.pos<s;){if(126===e.src.charCodeAt(e.pos)){r=!0;break}e.parser.skipToken(e)}return r&&o+1!==e.pos?(n=e.src.slice(o+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=o,!1):(e.posMax=e.pos,e.pos=o+1,t||e.push({type:"sub",level:e.level,content:n.replace(vj,"$1")}),e.pos=e.posMax+1,e.posMax=s,!0):(e.pos=o,!1)}],["sup",function(e,t){var r,n,s=e.posMax,o=e.pos;if(94!==e.src.charCodeAt(o))return!1;if(t)return!1;if(o+2>=s)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=o+1;e.pos<s;){if(94===e.src.charCodeAt(e.pos)){r=!0;break}e.parser.skipToken(e)}return r&&o+1!==e.pos?(n=e.src.slice(o+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=o,!1):(e.posMax=e.pos,e.pos=o+1,t||e.push({type:"sup",level:e.level,content:n.replace(bj,"$1")}),e.pos=e.posMax+1,e.posMax=s,!0):(e.pos=o,!1)}],["links",function(e,t){var r,n,s,o,i,a,c,l,u=!1,p=e.pos,h=e.posMax,d=e.pos,f=e.src.charCodeAt(d);if(33===f&&(u=!0,f=e.src.charCodeAt(++d)),91!==f)return!1;if(e.level>=e.options.maxNesting)return!1;if(r=d+1,(n=MC(e,d))<0)return!1;if((a=n+1)<h&&40===e.src.charCodeAt(a)){for(a++;a<h&&(32===(l=e.src.charCodeAt(a))||10===l);a++);if(a>=h)return!1;for(d=a,$C(e,a)?(o=e.linkContent,a=e.pos):o="",d=a;a<h&&(32===(l=e.src.charCodeAt(a))||10===l);a++);if(a<h&&d!==a&&FC(e,a))for(i=e.linkContent,a=e.pos;a<h&&(32===(l=e.src.charCodeAt(a))||10===l);a++);else i="";if(a>=h||41!==e.src.charCodeAt(a))return e.pos=p,!1;a++}else{if(e.linkLevel>0)return!1;for(;a<h&&(32===(l=e.src.charCodeAt(a))||10===l);a++);if(a<h&&91===e.src.charCodeAt(a)&&(d=a+1,(a=MC(e,a))>=0?s=e.src.slice(d,a++):a=d-1),s||(void 0===s&&(a=n+1),s=e.src.slice(r,n)),!(c=e.env.references[BC(s)]))return e.pos=p,!1;o=c.href,i=c.title}return t||(e.pos=r,e.posMax=n,u?e.push({type:"image",src:o,title:i,alt:e.src.substr(r,n-r),level:e.level}):(e.push({type:"link_open",href:o,title:i,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=a,e.posMax=h,!0}],["footnote_inline",function(e,t){var r,n,s,o,i=e.posMax,a=e.pos;return!(a+2>=i||94!==e.src.charCodeAt(a)||91!==e.src.charCodeAt(a+1)||e.level>=e.options.maxNesting||(r=a+2,(n=MC(e,a+1))<0||(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),s=e.env.footnotes.list.length,e.pos=r,e.posMax=n,e.push({type:"footnote_ref",id:s,level:e.level}),e.linkLevel++,o=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[s]={tokens:e.tokens.splice(o)},e.linkLevel--),e.pos=n+1,e.posMax=i,0)))}],["footnote_ref",function(e,t){var r,n,s,o,i=e.posMax,a=e.pos;if(a+3>i)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(a))return!1;if(94!==e.src.charCodeAt(a+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(n=a+2;n<i;n++){if(32===e.src.charCodeAt(n))return!1;if(10===e.src.charCodeAt(n))return!1;if(93===e.src.charCodeAt(n))break}return!(n===a+2||n>=i||(n++,r=e.src.slice(a+2,n-1),void 0===e.env.footnotes.refs[":"+r]||(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+r]<0?(s=e.env.footnotes.list.length,e.env.footnotes.list[s]={label:r,count:0},e.env.footnotes.refs[":"+r]=s):s=e.env.footnotes.refs[":"+r],o=e.env.footnotes.list[s].count,e.env.footnotes.list[s].count++,e.push({type:"footnote_ref",id:s,subId:o,level:e.level})),e.pos=n,e.posMax=i,0)))}],["autolink",function(e,t){var r,n,s,o,i,a=e.pos;return!(60!==e.src.charCodeAt(a)||(r=e.src.slice(a)).indexOf(">")<0||((n=r.match(xj))?Ej.indexOf(n[1].toLowerCase())<0||(i=DC(o=n[0].slice(1,-1)),!e.parser.validateLink(o)||(t||(e.push({type:"link_open",href:i,level:e.level}),e.push({type:"text",content:o,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=n[0].length,0)):!(s=r.match(wj))||(i=DC("mailto:"+(o=s[0].slice(1,-1))),!e.parser.validateLink(i)||(t||(e.push({type:"link_open",href:i,level:e.level}),e.push({type:"text",content:o,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=s[0].length,0))))}],["htmltag",function(e,t){var r,n,s,o=e.pos;return!(!e.options.html||(s=e.posMax,60!==e.src.charCodeAt(o)||o+2>=s||33!==(r=e.src.charCodeAt(o+1))&&63!==r&&47!==r&&!function(e){var t=32|e;return t>=97&&t<=122}(r)||!(n=e.src.slice(o).match(Cj))||(t||e.push({type:"htmltag",content:e.src.slice(o,o+n[0].length),level:e.level}),e.pos+=n[0].length,0)))}],["entity",function(e,t){var r,n,s=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(s))return!1;if(s+1<o)if(35===e.src.charCodeAt(s+1)){if(n=e.src.slice(s).match(jj))return t||(r="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),e.pending+=yC(r)?vC(r):vC(65533)),e.pos+=n[0].length,!0}else if(n=e.src.slice(s).match(kj)){var i=hC(n[1]);if(n[1]!==i)return t||(e.pending+=i),e.pos+=n[0].length,!0}return t||(e.pending+="&"),e.pos++,!0}]];function Nj(){this.ruler=new IC;for(var e=0;e<Tj.length;e++)this.ruler.push(Tj[e][0],Tj[e][1]);this.validateLink=Ij}function Ij(e){var t=e.trim().toLowerCase();return-1===(t=xC(t)).indexOf(":")||-1===["vbscript","javascript","file","data"].indexOf(t.split(":")[0])}Nj.prototype.skipToken=function(e){var t,r,n=this.ruler.getRules(""),s=n.length,o=e.pos;if((r=e.cacheGet(o))>0)e.pos=r;else{for(t=0;t<s;t++)if(n[t](e,!0))return void e.cacheSet(o,e.pos);e.pos++,e.cacheSet(o,e.pos)}},Nj.prototype.tokenize=function(e){for(var t,r,n=this.ruler.getRules(""),s=n.length,o=e.posMax;e.pos<o;){for(r=0;r<s&&!(t=n[r](e,!1));r++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Nj.prototype.parse=function(e,t,r,n){var s=new PC(e,this,t,r,n);this.tokenize(s)};var Pj={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function Mj(e,t,r){this.src=t,this.env=r,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Rj(e,t){"string"!=typeof e&&(t=e,e="default"),t&&null!=t.linkify&&console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"),this.inline=new Nj,this.block=new lj,this.core=new QC,this.renderer=new NC,this.ruler=new IC,this.options={},this.configure(Pj[e]),this.set(t||{})}function Dj(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function $j(e,t){for(var r=e.length-1;r>=0;r--)!0===t(e[r])&&e.splice(r,1)}function Fj(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}Rj.prototype.set=function(e){fC(this.options,e)},Rj.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach((function(r){e.components[r].rules&&t[r].ruler.enable(e.components[r].rules,!0)}))},Rj.prototype.use=function(e,t){return e(this,t),this},Rj.prototype.parse=function(e,t){var r=new Mj(this,e,t);return this.core.process(r),r.tokens},Rj.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Rj.prototype.parseInline=function(e,t){var r=new Mj(this,e,t);return r.inlineMode=!0,this.core.process(r),r.tokens},Rj.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Bj,Lj=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,r=this.getClass(),n=this.whitespaceRegex,s=r?r.split(n):[],o=e.split(n);t=o.shift();)-1===Dj(s,t)&&s.push(t);return this.getAttrs().class=s.join(" "),this},e.prototype.removeClass=function(e){for(var t,r=this.getClass(),n=this.whitespaceRegex,s=r?r.split(n):[],o=e.split(n);s.length&&(t=o.shift());){var i=Dj(s,t);-1!==i&&s.splice(i,1)}return this.getAttrs().class=s.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+'="'+e[r]+'"');return t.join(" ")},e}(),qj=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new Lj({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},r=this.createCssClass(e);return r&&(t.class=r),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var r=[t],n=e.getCssClassSuffixes(),s=0,o=n.length;s<o;s++)r.push(t+"-"+n[s]);return r.join(" ")}return""},e.prototype.processAnchorText=function(e){return this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var r=t.length,n=t.location;return"smart"===n?function(e,t,r){var n,s;null==r?(r="…",s=3,n=8):(s=r.length,n=r.length);var o=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},i=function(e,t){var n=t/2,s=Math.ceil(n),o=-1*Math.floor(n),i="";return o<0&&(i=e.substr(o)),e.substr(0,s)+r+i};if(e.length<=t)return e;var a=t-s,c=function(e){var t={},r=e,n=r.match(/^([a-z]+):\/\//i);return n&&(t.scheme=n[1],r=r.substr(n[0].length)),(n=r.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=n[1],r=r.substr(n[0].length)),(n=r.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=n[1],r=r.substr(n[0].length)),(n=r.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=n[1],r=r.substr(n[0].length)),(n=r.match(/^#(.*?)$/i))&&(t.fragment=n[1]),t}(e);if(c.query){var l=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);l&&(c.query=c.query.substr(0,l[1].length),e=o(c))}if(e.length<=t)return e;if(c.host&&(c.host=c.host.replace(/^www\./,""),e=o(c)),e.length<=t)return e;var u="";if(c.host&&(u+=c.host),u.length>=a)return c.host.length==t?(c.host.substr(0,t-s)+r).substr(0,a+n):i(u,a).substr(0,a+n);var p="";if(c.path&&(p+="/"+c.path),c.query&&(p+="?"+c.query),p){if((u+p).length>=a)return(u+p).length==t?(u+p).substr(0,t):(u+i(p,a-u.length)).substr(0,a+n);u+=p}if(c.fragment){var h="#"+c.fragment;if((u+h).length>=a)return(u+h).length==t?(u+h).substr(0,t):(u+i(h,a-u.length)).substr(0,a+n);u+=h}if(c.scheme&&c.host){var d=c.scheme+"://";if((u+d).length<a)return(d+u).substr(0,t)}if(u.length<=t)return u;var f="";return a>0&&(f=u.substr(-1*Math.floor(a/2))),(u.substr(0,Math.ceil(a/2))+r+f).substr(0,a+n)}(e,r):"middle"===n?function(e,t,r){if(e.length<=t)return e;var n,s;null==r?(r="…",n=8,s=3):(n=r.length,s=r.length);var o=t-s,i="";return o>0&&(i=e.substr(-1*Math.floor(o/2))),(e.substr(0,Math.ceil(o/2))+r+i).substr(0,o+n)}(e,r):function(e,t){return function(e,t,r){var n;return e.length>t&&(null==r?(r="…",n=3):n=r.length,e=e.substring(0,t-n)+r),e}(e,t,void 0)}(e,r)},e}(),Uj=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),zj=r(31635),Jj=function(e){function t(t){var r=e.call(this,t)||this;return r.email="",r.email=t.email,r}return(0,zj.C6)(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(Uj),Vj=function(e){function t(t){var r=e.call(this,t)||this;return r.serviceName="",r.hashtag="",r.serviceName=t.serviceName,r.hashtag=t.hashtag,r}return(0,zj.C6)(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;case"tiktok":return"https://www.tiktok.com/tag/"+t;default:throw new Error("Unknown service name to point hashtag to: "+e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(Uj),Wj=function(e){function t(t){var r=e.call(this,t)||this;return r.serviceName="twitter",r.mention="",r.mention=t.mention,r.serviceName=t.serviceName,r}return(0,zj.C6)(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),r=this.getServiceName();return r&&t.push(r),t},t}(Uj),Kj=function(e){function t(t){var r=e.call(this,t)||this;return r.number="",r.plusSign=!1,r.number=t.number,r.plusSign=t.plusSign,r}return(0,zj.C6)(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(Uj),Hj=function(e){function t(t){var r=e.call(this,t)||this;return r.url="",r.urlMatchType="scheme",r.protocolUrlMatch=!1,r.protocolRelativeMatch=!1,r.stripPrefix={scheme:!0,www:!0},r.stripTrailingSlash=!0,r.decodePercentEncoding=!0,r.schemePrefixRegex=/^(https?:\/\/)?/i,r.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,r.protocolRelativeRegex=/^\/\//,r.protocolPrepended=!1,r.urlMatchType=t.urlMatchType,r.url=t.url,r.protocolUrlMatch=t.protocolUrlMatch,r.protocolRelativeMatch=t.protocolRelativeMatch,r.stripPrefix=t.stripPrefix,r.stripTrailingSlash=t.stripTrailingSlash,r.decodePercentEncoding=t.decodePercentEncoding,r}return(0,zj.C6)(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var t=e.replace(/%22/gi,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">");try{return decodeURIComponent(t)}catch(e){return t}},t}(Uj),Gj=function(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder},Yj=/[A-Za-z]/,Xj=/[\d]/,Zj=/[\D]/,Qj=/\s/,ek=/['"]/,tk=/[\x00-\x1F\x7F]/,rk=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,nk=rk+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,sk=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,ok=nk+sk,ik=nk+sk,ak=new RegExp("[".concat(ik,"]")),ck="(?:["+sk+"]{1,3}\\.){3}["+sk+"]{1,3}",lk="["+ik+"](?:["+ik+"\\-_]{0,61}["+ik+"])?",uk=function(e){return"(?=("+lk+"))\\"+e},pk=function(e){return"(?:"+uk(e)+"(?:\\."+uk(e+1)+"){0,126}|"+ck+")"},hk=(new RegExp("["+ik+".\\-]*["+ik+"\\-]"),ak),dk=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,fk=new RegExp("[".concat(ik,"!#$%&'*+/=?^_`{|}~-]")),mk=new RegExp("^".concat(dk.source,"$")),gk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localPartCharRegex=fk,t.strictTldRegex=mk,t}return(0,zj.C6)(t,e),t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,r=this.localPartCharRegex,n=this.strictTldRegex,s=[],o=e.length,i=new yk,a={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},c=0,l=0,u=i;c<o;){var p=e.charAt(c);switch(l){case 0:h(p);break;case 1:d(e.charAt(c-1),p);break;case 2:f(p);break;case 3:m(p);break;case 4:g(p);break;case 5:y(p);break;case 6:v(p);break;case 7:b(p);break;default:Fj(l)}c++}return x(),s;function h(e){"m"===e?E(1):r.test(e)&&E()}function d(e,t){":"===e?r.test(t)?(l=2,u=new yk((0,zj.Cl)((0,zj.Cl)({},u),{hasMailtoPrefix:!0}))):w():a[e]===t||(r.test(t)?l=2:"."===t?l=3:"@"===t?l=4:w())}function f(e){"."===e?l=3:"@"===e?l=4:r.test(e)||w()}function m(e){"."===e||"@"===e?w():r.test(e)?l=2:w()}function g(e){hk.test(e)?l=5:w()}function y(e){"."===e?l=7:"-"===e?l=6:hk.test(e)||x()}function v(e){"-"===e||"."===e?x():hk.test(e)?l=5:x()}function b(e){"."===e||"-"===e?x():hk.test(e)?(l=5,u=new yk((0,zj.Cl)((0,zj.Cl)({},u),{hasDomainDot:!0}))):x()}function E(e){void 0===e&&(e=2),l=e,u=new yk({idx:c})}function w(){l=0,u=i}function x(){if(u.hasDomainDot){var r=e.slice(u.idx,c);/[-.]$/.test(r)&&(r=r.slice(0,-1));var o=u.hasMailtoPrefix?r.slice(7):r;(function(e){var t=(e.split(".").pop()||"").toLowerCase();return n.test(t)})(o)&&s.push(new Jj({tagBuilder:t,matchedText:r,offset:u.idx,email:o}))}w()}},t}(Gj),yk=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot},vk=function(){function e(){}return e.isValid=function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},e.isValidIpAddress=function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return null!==e.match(t)},e.containsMultipleDots=function(e){var t=e;return this.hasFullProtocolRegex.test(e)&&(t=e.split("://")[1]),t.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),r=t&&t[0].toLowerCase();return"javascript:"!==r&&"vbscript:"!==r},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t||this.hasFullProtocolRegex.test(t)||this.hasWordCharAfterProtocolRegex.test(e))},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+rk+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),bk=(Bj=new RegExp("[/?#](?:["+ik+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+ik+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,pk(2),")","|","(","(//)?",/(?:www\.)/.source,pk(6),")","|","(","(//)?",pk(10)+"\\.",dk.source,"(?![-"+ok+"])",")",")","(?::[0-9]+)?","(?:"+Bj.source+")?"].join(""),"gi")),Ek=new RegExp("["+ik+"]"),wk=function(e){function t(t){var r=e.call(this,t)||this;return r.stripPrefix={scheme:!0,www:!0},r.stripTrailingSlash=!0,r.decodePercentEncoding=!0,r.matcherRegex=bk,r.wordCharRegExp=Ek,r.stripPrefix=t.stripPrefix,r.stripTrailingSlash=t.stripTrailingSlash,r.decodePercentEncoding=t.decodePercentEncoding,r}return(0,zj.C6)(t,e),t.prototype.parseMatches=function(e){for(var t,r=this.matcherRegex,n=this.stripPrefix,s=this.stripTrailingSlash,o=this.decodePercentEncoding,i=this.tagBuilder,a=[],c=function(){var r=t[0],c=t[1],u=t[4],p=t[5],h=t[9],d=t.index,f=p||h,m=e.charAt(d-1);if(!vk.isValid(r,c))return"continue";if(d>0&&"@"===m)return"continue";if(d>0&&f&&l.wordCharRegExp.test(m))return"continue";if(/\?$/.test(r)&&(r=r.substr(0,r.length-1)),l.matchHasUnbalancedClosingParen(r))r=r.substr(0,r.length-1);else{var g=l.matchHasInvalidCharAfterTld(r,c);g>-1&&(r=r.substr(0,g))}var y=["http://","https://"].find((function(e){return!!c&&-1!==c.indexOf(e)}));if(y){var v=r.indexOf(y);r=r.substr(v),c=c.substr(v),d+=v}var b=c?"scheme":u?"www":"tld",E=!!c;a.push(new Hj({tagBuilder:i,matchedText:r,offset:d,urlMatchType:b,url:r,protocolUrlMatch:E,protocolRelativeMatch:!!f,stripPrefix:n,stripTrailingSlash:s,decodePercentEncoding:o}))},l=this;null!==(t=r.exec(e));)c();return a},t.prototype.matchHasUnbalancedClosingParen=function(e){var t,r=e.charAt(e.length-1);if(")"===r)t="(";else if("]"===r)t="[";else{if("}"!==r)return!1;t="{"}for(var n=0,s=0,o=e.length-1;s<o;s++){var i=e.charAt(s);i===t?n++:i===r&&(n=Math.max(n-1,0))}return 0===n},t.prototype.matchHasInvalidCharAfterTld=function(e,t){if(!e)return-1;var r=0;t&&(r=e.indexOf(":"),e=e.slice(r));var n=new RegExp("^((.?//)?[-."+ik+"]*[-"+ik+"]\\.[-"+ik+"]+)").exec(e);return null===n?-1:(r+=n[1].length,e=e.slice(n[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?r:-1)},t}(Gj),xk=new RegExp("[_".concat(ik,"]")),Sk=function(e){function t(t){var r=e.call(this,t)||this;return r.serviceName="twitter",r.serviceName=t.serviceName,r}return(0,zj.C6)(t,e),t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,r=this.serviceName,n=[],s=e.length,o=0,i=-1,a=0;o<s;){var c=e.charAt(o);switch(a){case 0:l(c);break;case 1:u(c);break;case 2:p(c);break;case 3:h(c);break;default:Fj(a)}o++}return d(),n;function l(e){"#"===e?(a=2,i=o):ak.test(e)&&(a=1)}function u(e){ak.test(e)||(a=0)}function p(e){a=xk.test(e)?3:ak.test(e)?1:0}function h(e){xk.test(e)||(d(),i=-1,a=ak.test(e)?1:0)}function d(){if(i>-1&&o-i<=140){var s=e.slice(i,o),a=new Vj({tagBuilder:t,matchedText:s,offset:i,serviceName:r,hashtag:s.slice(1)});n.push(a)}}},t}(Gj),_k=["twitter","facebook","instagram","tiktok"],Ak=new RegExp("".concat(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source),"g"),Ok=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.matcherRegex=Ak,t}return(0,zj.C6)(t,e),t.prototype.parseMatches=function(e){for(var t,r=this.matcherRegex,n=this.tagBuilder,s=[];null!==(t=r.exec(e));){var o=t[0],i=o.replace(/[^0-9,;#]/g,""),a=!(!t[1]&&!t[2]),c=0==t.index?"":e.substr(t.index-1,1),l=e.substr(t.index+o.length,1),u=!c.match(/\d/)&&!l.match(/\d/);this.testMatch(t[3])&&this.testMatch(o)&&u&&s.push(new Kj({tagBuilder:n,matchedText:o,offset:t.index,number:i,plusSign:a}))}return s},t.prototype.testMatch=function(e){return Zj.test(e)},t}(Gj),Ck=new RegExp("@[_".concat(ik,"]{1,50}(?![_").concat(ik,"])"),"g"),jk=new RegExp("@[_.".concat(ik,"]{1,30}(?![_").concat(ik,"])"),"g"),kk=new RegExp("@[-_.".concat(ik,"]{1,50}(?![-_").concat(ik,"])"),"g"),Tk=new RegExp("@[_.".concat(ik,"]{1,23}[_").concat(ik,"](?![_").concat(ik,"])"),"g"),Nk=new RegExp("[^"+ik+"]"),Ik=function(e){function t(t){var r=e.call(this,t)||this;return r.serviceName="twitter",r.matcherRegexes={twitter:Ck,instagram:jk,soundcloud:kk,tiktok:Tk},r.nonWordCharRegex=Nk,r.serviceName=t.serviceName,r}return(0,zj.C6)(t,e),t.prototype.parseMatches=function(e){var t,r=this.serviceName,n=this.matcherRegexes[this.serviceName],s=this.nonWordCharRegex,o=this.tagBuilder,i=[];if(!n)return i;for(;null!==(t=n.exec(e));){var a=t.index,c=e.charAt(a-1);if(0===a||s.test(c)){var l=t[0].replace(/\.+$/g,""),u=l.slice(1);i.push(new Wj({tagBuilder:o,matchedText:l,offset:a,serviceName:r,mention:u}))}}return i},t}(Gj);var Pk=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},Mk=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"==typeof t.email?t.email:this.email,this.phone="boolean"==typeof t.phone?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var r=this.mention;if(!1!==r&&-1===["twitter","instagram","soundcloud","tiktok"].indexOf(r))throw new Error("invalid `mention` cfg '".concat(r,"' - see docs"));var n=this.hashtag;if(!1!==n&&-1===_k.indexOf(n))throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,r){return new e(r).link(t)},e.parse=function(t,r){return new e(r).parse(t)},e.prototype.normalizeUrlsCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},e.prototype.normalizeStripPrefixCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},e.prototype.normalizeTruncateCfg=function(e){return"number"==typeof e?{length:e,location:"end"}:function(e,t){for(var r in t)t.hasOwnProperty(r)&&void 0===e[r]&&(e[r]=t[r]);return e}(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(e){var t=this,r=["a","style","script"],n=0,s=[];return function(e,t){for(var r,n=t.onOpenTag,s=t.onCloseTag,o=t.onText,i=t.onComment,a=t.onDoctype,c=new Pk,l=0,u=e.length,p=0,h=0,d=c;l<u;){var f=e.charAt(l);switch(p){case 0:m(f);break;case 1:g(f);break;case 2:v(f);break;case 3:y(f);break;case 4:b(f);break;case 5:E(f);break;case 6:w(f);break;case 7:x(f);break;case 8:S(f);break;case 9:_(f);break;case 10:A(f);break;case 11:O(f);break;case 12:C(f);break;case 13:"--"===e.substr(l,2)?(l+=2,d=new Pk((0,zj.Cl)((0,zj.Cl)({},d),{type:"comment"})),p=14):"DOCTYPE"===e.substr(l,7).toUpperCase()?(l+=7,d=new Pk((0,zj.Cl)((0,zj.Cl)({},d),{type:"doctype"})),p=20):R();break;case 14:j(f);break;case 15:k(f);break;case 16:T(f);break;case 17:N(f);break;case 18:I(f);break;case 19:P(f);break;case 20:M(f);break;default:Fj(p)}l++}function m(e){"<"===e&&D()}function g(e){"!"===e?p=13:"/"===e?(p=2,d=new Pk((0,zj.Cl)((0,zj.Cl)({},d),{isClosing:!0}))):"<"===e?D():Yj.test(e)?(p=3,d=new Pk((0,zj.Cl)((0,zj.Cl)({},d),{isOpening:!0}))):(p=0,d=c)}function y(e){Qj.test(e)?(d=new Pk((0,zj.Cl)((0,zj.Cl)({},d),{name:F()})),p=4):"<"===e?D():"/"===e?(d=new Pk((0,zj.Cl)((0,zj.Cl)({},d),{name:F()})),p=12):">"===e?(d=new Pk((0,zj.Cl)((0,zj.Cl)({},d),{name:F()})),$()):Yj.test(e)||Xj.test(e)||":"===e||R()}function v(e){">"===e?R():Yj.test(e)?p=3:R()}function b(e){Qj.test(e)||("/"===e?p=12:">"===e?$():"<"===e?D():"="===e||ek.test(e)||tk.test(e)?R():p=5)}function E(e){Qj.test(e)?p=6:"/"===e?p=12:"="===e?p=7:">"===e?$():"<"===e?D():ek.test(e)&&R()}function w(e){Qj.test(e)||("/"===e?p=12:"="===e?p=7:">"===e?$():"<"===e?D():ek.test(e)?R():p=5)}function x(e){Qj.test(e)||('"'===e?p=8:"'"===e?p=9:/[>=`]/.test(e)?R():"<"===e?D():p=10)}function S(e){'"'===e&&(p=11)}function _(e){"'"===e&&(p=11)}function A(e){Qj.test(e)?p=4:">"===e?$():"<"===e&&D()}function O(e){Qj.test(e)?p=4:"/"===e?p=12:">"===e?$():"<"===e?D():(p=4,l--)}function C(e){">"===e?(d=new Pk((0,zj.Cl)((0,zj.Cl)({},d),{isClosing:!0})),$()):p=4}function j(e){"-"===e?p=15:">"===e?R():p=16}function k(e){"-"===e?p=18:">"===e?R():p=16}function T(e){"-"===e&&(p=17)}function N(e){p="-"===e?18:16}function I(e){">"===e?$():"!"===e?p=19:"-"===e||(p=16)}function P(e){"-"===e?p=17:">"===e?$():p=16}function M(e){">"===e?$():"<"===e&&D()}function R(){p=0,d=c}function D(){p=1,d=new Pk({idx:l})}function $(){var t=e.slice(h,d.idx);t&&o(t,h),"comment"===d.type?i(d.idx):"doctype"===d.type?a(d.idx):(d.isOpening&&n(d.name,d.idx),d.isClosing&&s(d.name,d.idx)),R(),h=l+1}function F(){var t=d.idx+(d.isClosing?2:1);return e.slice(t,l).toLowerCase()}h<l&&(r=e.slice(h,l),o(r,h),h=l+1)}(e,{onOpenTag:function(e){r.indexOf(e)>=0&&n++},onText:function(e,r){if(0===n){var o=function(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var r,n=[],s=0;r=t.exec(e);)n.push(e.substring(s,r.index)),n.push(r[0]),s=r.index+r[0].length;return n.push(e.substring(s)),n}(e,/( | |<|<|>|>|"|"|')/gi),i=r;o.forEach((function(e,r){if(r%2==0){var n=t.parseText(e,i);s.push.apply(s,n)}i+=e.length}))}},onCloseTag:function(e){r.indexOf(e)>=0&&(n=Math.max(n-1,0))},onComment:function(e){},onDoctype:function(e){}}),s=this.compactMatches(s),s=this.removeUnwantedMatches(s)},e.prototype.compactMatches=function(e){e.sort((function(e,t){return e.getOffset()-t.getOffset()}));for(var t=0;t<e.length-1;){var r=e[t],n=r.getOffset(),s=r.getMatchedText().length,o=n+s;if(t+1<e.length){if(e[t+1].getOffset()===n){var i=e[t+1].getMatchedText().length>s?t:t+1;e.splice(i,1);continue}if(e[t+1].getOffset()<o){e.splice(t+1,1);continue}}t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||$j(e,(function(e){return"hashtag"===e.getType()})),this.email||$j(e,(function(e){return"email"===e.getType()})),this.phone||$j(e,(function(e){return"phone"===e.getType()})),this.mention||$j(e,(function(e){return"mention"===e.getType()})),this.urls.schemeMatches||$j(e,(function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()})),this.urls.wwwMatches||$j(e,(function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()})),this.urls.tldMatches||$j(e,(function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()})),e},e.prototype.parseText=function(e,t){void 0===t&&(t=0),t=t||0;for(var r=this.getMatchers(),n=[],s=0,o=r.length;s<o;s++){for(var i=r[s].parseMatches(e),a=0,c=i.length;a<c;a++)i[a].setOffset(t+i[a].getOffset());n.push.apply(n,i)}return n},e.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"<").replace(/>/g,">"));for(var t=this.parse(e),r=[],n=0,s=0,o=t.length;s<o;s++){var i=t[s];r.push(e.substring(n,i.getOffset())),r.push(this.createMatchReturnVal(i)),n=i.getOffset()+i.getMatchedText().length}return r.push(e.substring(n)),r.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof Lj?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),t=[new Sk({tagBuilder:e,serviceName:this.hashtag}),new gk({tagBuilder:e}),new Ok({tagBuilder:e}),new Ik({tagBuilder:e,serviceName:this.mention}),new wk({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=t},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new qj({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="3.16.2",e.AnchorTagBuilder=qj,e.HtmlTag=Lj,e.matcher={Email:gk,Hashtag:Sk,Matcher:Gj,Mention:Ik,Phone:Ok,Url:wk},e.match={Email:Jj,Hashtag:Vj,Match:Uj,Mention:Wj,Phone:Kj,Url:Hj},e}();const Rk=Mk;var Dk=/www|@|\:\/\//;function $k(e){return/^<a[>\s]/i.test(e)}function Fk(e){return/^<\/a\s*>/i.test(e)}function Bk(){var e=[],t=new Rk({stripPrefix:!1,url:!0,email:!0,replaceFn:function(t){switch(t.getType()){case"url":e.push({text:t.matchedText,url:t.getUrl()});break;case"email":e.push({text:t.matchedText,url:"mailto:"+t.getEmail().replace(/^mailto:/i,"")})}return!1}});return{links:e,autolinker:t}}function Lk(e){var t,r,n,s,o,i,a,c,l,u,p,h,d,f=e.tokens,m=null;for(r=0,n=f.length;r<n;r++)if("inline"===f[r].type)for(p=0,t=(s=f[r].children).length-1;t>=0;t--)if("link_close"!==(o=s[t]).type){if("htmltag"===o.type&&($k(o.content)&&p>0&&p--,Fk(o.content)&&p++),!(p>0)&&"text"===o.type&&Dk.test(o.content)){if(m||(h=(m=Bk()).links,d=m.autolinker),i=o.content,h.length=0,d.link(i),!h.length)continue;for(a=[],u=o.level,c=0;c<h.length;c++)e.inline.validateLink(h[c].url)&&((l=i.indexOf(h[c].text))&&a.push({type:"text",content:i.slice(0,l),level:u}),a.push({type:"link_open",href:h[c].url,title:"",level:u++}),a.push({type:"text",content:h[c].text,level:u}),a.push({type:"link_close",level:--u}),i=i.slice(l+h[c].text.length));i.length&&a.push({type:"text",content:i,level:u}),f[r].children=s=[].concat(s.slice(0,t),a,s.slice(t+1))}}else for(t--;s[t].level!==o.level&&"link_open"!==s[t].type;)t--}function qk(e){e.core.ruler.push("linkify",Lk)}const{entries:Uk,setPrototypeOf:zk,isFrozen:Jk,getPrototypeOf:Vk,getOwnPropertyDescriptor:Wk}=Object;let{freeze:Kk,seal:Hk,create:Gk}=Object,{apply:Yk,construct:Xk}="undefined"!=typeof Reflect&&Reflect;Kk||(Kk=function(e){return e}),Hk||(Hk=function(e){return e}),Yk||(Yk=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];return e.apply(t,n)}),Xk||(Xk=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});const Zk=bT(Array.prototype.forEach),Qk=bT(Array.prototype.lastIndexOf),eT=bT(Array.prototype.pop),tT=bT(Array.prototype.push),rT=bT(Array.prototype.splice),nT=Array.isArray,sT=bT(String.prototype.toLowerCase),oT=bT(String.prototype.toString),iT=bT(String.prototype.match),aT=bT(String.prototype.replace),cT=bT(String.prototype.indexOf),lT=bT(String.prototype.trim),uT=bT(Number.prototype.toString),pT=bT(Boolean.prototype.toString),hT="undefined"==typeof BigInt?null:bT(BigInt.prototype.toString),dT="undefined"==typeof Symbol?null:bT(Symbol.prototype.toString),fT=bT(Object.prototype.hasOwnProperty),mT=bT(Object.prototype.toString),gT=bT(RegExp.prototype.test),yT=(vT=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Xk(vT,t)});var vT;function bT(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return Yk(e,t,n)}}function ET(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sT;if(zk&&zk(e,null),!nT(t))return e;let n=t.length;for(;n--;){let s=t[n];if("string"==typeof s){const e=r(s);e!==s&&(Jk(t)||(t[n]=e),s=e)}e[s]=!0}return e}function wT(e){for(let t=0;t<e.length;t++)fT(e,t)||(e[t]=null);return e}function xT(e){const t=Gk(null);for(const[r,n]of Uk(e))fT(e,r)&&(nT(n)?t[r]=wT(n):n&&"object"==typeof n&&n.constructor===Object?t[r]=xT(n):t[r]=n);return t}function ST(e,t){for(;null!==e;){const r=Wk(e,t);if(r){if(r.get)return bT(r.get);if("function"==typeof r.value)return bT(r.value)}e=Vk(e)}return function(){return null}}const _T=Kk(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),AT=Kk(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),OT=Kk(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),CT=Kk(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),jT=Kk(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),kT=Kk(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),TT=Kk(["#text"]),NT=Kk(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),IT=Kk(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),PT=Kk(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),MT=Kk(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),RT=Hk(/\{\{[\w\W]*|[\w\W]*\}\}/gm),DT=Hk(/<%[\w\W]*|[\w\W]*%>/gm),$T=Hk(/\$\{[\w\W]*/gm),FT=Hk(/^data-[\-\w.\u00B7-\uFFFF]+$/),BT=Hk(/^aria-[\-\w]+$/),LT=Hk(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qT=Hk(/^(?:\w+script|data):/i),UT=Hk(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zT=Hk(/^html$/i),JT=Hk(/^[a-z][.\w]*(-[.\w]+)+$/i);var VT=Object.freeze({__proto__:null,ARIA_ATTR:BT,ATTR_WHITESPACE:UT,CUSTOM_ELEMENT:JT,DATA_ATTR:FT,DOCTYPE_NAME:zT,ERB_EXPR:DT,IS_ALLOWED_URI:LT,IS_SCRIPT_OR_DATA:qT,MUSTACHE_EXPR:RT,TMPLIT_EXPR:$T});const WT=function(){return"undefined"==typeof window?null:window};var KT=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:WT();const r=t=>e(t);if(r.version="3.4.1",r.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return r.isSupported=!1,r;let{document:n}=t;const s=n,o=s.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:c,Element:l,NodeFilter:u,NamedNodeMap:p=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:d,trustedTypes:f}=t,m=l.prototype,g=ST(m,"cloneNode"),y=ST(m,"remove"),v=ST(m,"nextSibling"),b=ST(m,"childNodes"),E=ST(m,"parentNode");if("function"==typeof a){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let w,x="";const{implementation:S,createNodeIterator:_,createDocumentFragment:A,getElementsByTagName:O}=n,{importNode:C}=s;let j={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof Uk&&"function"==typeof E&&S&&void 0!==S.createHTMLDocument;const{MUSTACHE_EXPR:k,ERB_EXPR:T,TMPLIT_EXPR:N,DATA_ATTR:I,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:D}=VT;let{IS_ALLOWED_URI:$}=VT,F=null;const B=ET({},[..._T,...AT,...OT,...jT,...TT]);let L=null;const q=ET({},[...NT,...IT,...PT,...MT]);let U=Object.seal(Gk(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}})),z=null,J=null;const V=Object.seal(Gk(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let W=!0,K=!0,H=!1,G=!0,Y=!1,X=!0,Z=!1,Q=!1,ee=!1,te=!1,re=!1,ne=!1,se=!0,oe=!1;const ie="user-content-";let ae=!0,ce=!1,le={},ue=null;const pe=ET({},["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"]);let he=null;const de=ET({},["audio","video","img","source","image","track"]);let fe=null;const me=ET({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",ye="http://www.w3.org/2000/svg",ve="http://www.w3.org/1999/xhtml";let be=ve,Ee=!1,we=null;const xe=ET({},[ge,ye,ve],oT);let Se=ET({},["mi","mo","mn","ms","mtext"]),_e=ET({},["annotation-xml"]);const Ae=ET({},["title","style","font","a","script"]);let Oe=null;const Ce=["application/xhtml+xml","text/html"];let je=null,ke=null;const Te=n.createElement("form"),Ne=function(e){return e instanceof RegExp||e instanceof Function},Ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ke&&ke===e)return;e&&"object"==typeof e||(e={}),e=xT(e),Oe=-1===Ce.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,je="application/xhtml+xml"===Oe?oT:sT,F=fT(e,"ALLOWED_TAGS")&&nT(e.ALLOWED_TAGS)?ET({},e.ALLOWED_TAGS,je):B,L=fT(e,"ALLOWED_ATTR")&&nT(e.ALLOWED_ATTR)?ET({},e.ALLOWED_ATTR,je):q,we=fT(e,"ALLOWED_NAMESPACES")&&nT(e.ALLOWED_NAMESPACES)?ET({},e.ALLOWED_NAMESPACES,oT):xe,fe=fT(e,"ADD_URI_SAFE_ATTR")&&nT(e.ADD_URI_SAFE_ATTR)?ET(xT(me),e.ADD_URI_SAFE_ATTR,je):me,he=fT(e,"ADD_DATA_URI_TAGS")&&nT(e.ADD_DATA_URI_TAGS)?ET(xT(de),e.ADD_DATA_URI_TAGS,je):de,ue=fT(e,"FORBID_CONTENTS")&&nT(e.FORBID_CONTENTS)?ET({},e.FORBID_CONTENTS,je):pe,z=fT(e,"FORBID_TAGS")&&nT(e.FORBID_TAGS)?ET({},e.FORBID_TAGS,je):xT({}),J=fT(e,"FORBID_ATTR")&&nT(e.FORBID_ATTR)?ET({},e.FORBID_ATTR,je):xT({}),le=!!fT(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?xT(e.USE_PROFILES):e.USE_PROFILES),W=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,H=e.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,re=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,se=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,ce=e.IN_PLACE||!1,$=function(e){try{return gT(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:LT,be="string"==typeof e.NAMESPACE?e.NAMESPACE:ve,Se=fT(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?xT(e.MATHML_TEXT_INTEGRATION_POINTS):ET({},["mi","mo","mn","ms","mtext"]),_e=fT(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?xT(e.HTML_INTEGRATION_POINTS):ET({},["annotation-xml"]);const t=fT(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?xT(e.CUSTOM_ELEMENT_HANDLING):Gk(null);if(U=Gk(null),fT(t,"tagNameCheck")&&Ne(t.tagNameCheck)&&(U.tagNameCheck=t.tagNameCheck),fT(t,"attributeNameCheck")&&Ne(t.attributeNameCheck)&&(U.attributeNameCheck=t.attributeNameCheck),fT(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(U.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Y&&(K=!1),re&&(te=!0),le&&(F=ET({},TT),L=Gk(null),!0===le.html&&(ET(F,_T),ET(L,NT)),!0===le.svg&&(ET(F,AT),ET(L,IT),ET(L,MT)),!0===le.svgFilters&&(ET(F,OT),ET(L,IT),ET(L,MT)),!0===le.mathMl&&(ET(F,jT),ET(L,PT),ET(L,MT))),V.tagCheck=null,V.attributeCheck=null,fT(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?V.tagCheck=e.ADD_TAGS:nT(e.ADD_TAGS)&&(F===B&&(F=xT(F)),ET(F,e.ADD_TAGS,je))),fT(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?V.attributeCheck=e.ADD_ATTR:nT(e.ADD_ATTR)&&(L===q&&(L=xT(L)),ET(L,e.ADD_ATTR,je))),fT(e,"ADD_URI_SAFE_ATTR")&&nT(e.ADD_URI_SAFE_ATTR)&&ET(fe,e.ADD_URI_SAFE_ATTR,je),fT(e,"FORBID_CONTENTS")&&nT(e.FORBID_CONTENTS)&&(ue===pe&&(ue=xT(ue)),ET(ue,e.FORBID_CONTENTS,je)),fT(e,"ADD_FORBID_CONTENTS")&&nT(e.ADD_FORBID_CONTENTS)&&(ue===pe&&(ue=xT(ue)),ET(ue,e.ADD_FORBID_CONTENTS,je)),ae&&(F["#text"]=!0),Z&&ET(F,["html","head","body"]),F.table&&(ET(F,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw yT('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw yT('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(f,o)),null!==w&&"string"==typeof x&&(x=w.createHTML(""));Kk&&Kk(e),ke=e},Pe=ET({},[...AT,...OT,...CT]),Me=ET({},[...jT,...kT]),Re=function(e){tT(r.removed,{element:e});try{E(e).removeChild(e)}catch(t){y(e)}},De=function(e,t){try{tT(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){tT(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||re)try{Re(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},$e=function(e){let t=null,r=null;if(ee)e="<remove></remove>"+e;else{const t=iT(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===Oe&&be===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=w?w.createHTML(e):e;if(be===ve)try{t=(new d).parseFromString(s,Oe)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(be,"template",null);try{t.documentElement.innerHTML=Ee?x:s}catch(e){}}const o=t.body||t.documentElement;return e&&r&&o.insertBefore(n.createTextNode(r),o.childNodes[0]||null),be===ve?O.call(t,Z?"html":"body")[0]:Z?t.documentElement:o},Fe=function(e){return _.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Be=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Le=function(e){return"function"==typeof c&&e instanceof c};function qe(e,t,n){Zk(e,(e=>{e.call(r,t,n,ke)}))}const Ue=function(e){let t=null;if(qe(j.beforeSanitizeElements,e,null),Be(e))return Re(e),!0;const n=je(e.nodeName);if(qe(j.uponSanitizeElement,e,{tagName:n,allowedTags:F}),X&&e.hasChildNodes()&&!Le(e.firstElementChild)&&gT(/<[/\w!]/g,e.innerHTML)&&gT(/<[/\w!]/g,e.textContent))return Re(e),!0;if(X&&e.namespaceURI===ve&&"style"===n&&Le(e.firstElementChild))return Re(e),!0;if(7===e.nodeType)return Re(e),!0;if(X&&8===e.nodeType&&gT(/<[/\w]/g,e.data))return Re(e),!0;if(z[n]||!(V.tagCheck instanceof Function&&V.tagCheck(n))&&!F[n]){if(!z[n]&&Ve(n)){if(U.tagNameCheck instanceof RegExp&&gT(U.tagNameCheck,n))return!1;if(U.tagNameCheck instanceof Function&&U.tagNameCheck(n))return!1}if(ae&&!ue[n]){const t=E(e)||e.parentNode,r=b(e)||e.childNodes;if(r&&t)for(let n=r.length-1;n>=0;--n){const s=g(r[n],!0);t.insertBefore(s,v(e))}}return Re(e),!0}return e instanceof l&&!function(e){let t=E(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});const r=sT(e.tagName),n=sT(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===ye?t.namespaceURI===ve?"svg"===r:t.namespaceURI===ge?"svg"===r&&("annotation-xml"===n||Se[n]):Boolean(Pe[r]):e.namespaceURI===ge?t.namespaceURI===ve?"math"===r:t.namespaceURI===ye?"math"===r&&_e[n]:Boolean(Me[r]):e.namespaceURI===ve?!(t.namespaceURI===ye&&!_e[n])&&!(t.namespaceURI===ge&&!Se[n])&&!Me[r]&&(Ae[r]||!Pe[r]):!("application/xhtml+xml"!==Oe||!we[e.namespaceURI]))}(e)?(Re(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!gT(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,Zk([k,T,N],(e=>{t=aT(t,e," ")})),e.textContent!==t&&(tT(r.removed,{element:e.cloneNode()}),e.textContent=t)),qe(j.afterSanitizeElements,e,null),!1):(Re(e),!0)},ze=function(e,t,r){if(J[t])return!1;if(se&&("id"===t||"name"===t)&&(r in n||r in Te))return!1;if(K&&!J[t]&&gT(I,t));else if(W&&gT(P,t));else if(V.attributeCheck instanceof Function&&V.attributeCheck(t,e));else if(!L[t]||J[t]){if(!(Ve(e)&&(U.tagNameCheck instanceof RegExp&&gT(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&gT(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t,e))||"is"===t&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&gT(U.tagNameCheck,r)||U.tagNameCheck instanceof Function&&U.tagNameCheck(r))))return!1}else if(fe[t]);else if(gT($,aT(r,R,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==cT(r,"data:")||!he[e])if(H&&!gT(M,aT(r,R,"")));else if(r)return!1;return!0},Je=ET({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ve=function(e){return!Je[sT(e)]&&gT(D,e)},We=function(e){qe(j.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Be(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0};let s=t.length;for(;s--;){const o=t[s],{name:i,namespaceURI:a,value:c}=o,l=je(i),u=c;let p="value"===i?u:lT(u);if(n.attrName=l,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,qe(j.uponSanitizeAttribute,e,n),p=n.attrValue,!oe||"id"!==l&&"name"!==l||0===cT(p,ie)||(De(i,e),p=ie+p),X&&gT(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)){De(i,e);continue}if("attributename"===l&&iT(p,"href")){De(i,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){De(i,e);continue}if(!G&&gT(/\/>/i,p)){De(i,e);continue}Y&&Zk([k,T,N],(e=>{p=aT(p,e," ")}));const h=je(e.nodeName);if(ze(h,l,p)){if(w&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(a);else switch(f.getAttributeType(h,l)){case"TrustedHTML":p=w.createHTML(p);break;case"TrustedScriptURL":p=w.createScriptURL(p)}if(p!==u)try{a?e.setAttributeNS(a,i,p):e.setAttribute(i,p),Be(e)?Re(e):eT(r.removed)}catch(t){De(i,e)}}else De(i,e)}qe(j.afterSanitizeAttributes,e,null)},Ke=function(e){let t=null;const r=Fe(e);for(qe(j.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)qe(j.uponSanitizeShadowNode,t,null),Ue(t),We(t),t.content instanceof i&&Ke(t.content);qe(j.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,l=null;if(Ee=!e,Ee&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Le(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return uT(e);case"boolean":return pT(e);case"bigint":return hT?hT(e):"0";case"symbol":return dT?dT(e):"Symbol()";case"undefined":default:return mT(e);case"function":case"object":{if(null===e)return mT(e);const t=e,r=ST(t,"toString");if("function"==typeof r){const e=r(t);return"string"==typeof e?e:mT(e)}return mT(e)}}}(e)))throw yT("dirty is not a string, aborting");if(!r.isSupported)return e;if(Q||Ie(t),r.removed=[],"string"==typeof e&&(ce=!1),ce){const t=e.nodeName;if("string"==typeof t){const e=je(t);if(!F[e]||z[e])throw yT("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)n=$e("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!te&&!Y&&!Z&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(n=$e(e),!n)return te?null:ne?x:""}n&&ee&&Re(n.firstChild);const u=Fe(ce?e:n);for(;a=u.nextNode();)Ue(a),We(a),a.content instanceof i&&Ke(a.content);if(ce)return e;if(te){if(Y){n.normalize();let e=n.innerHTML;Zk([k,T,N],(t=>{e=aT(e,t," ")})),n.innerHTML=e}if(re)for(l=A.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(L.shadowroot||L.shadowrootmode)&&(l=C.call(s,l,!0)),l}let p=Z?n.outerHTML:n.innerHTML;return Z&&F["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&gT(zT,n.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+p),Y&&Zk([k,T,N],(e=>{p=aT(p,e," ")})),w&&ne?w.createHTML(p):p},r.setConfig=function(){Ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},r.clearConfig=function(){ke=null,Q=!1},r.isValidAttribute=function(e,t,r){ke||Ie({});const n=je(e),s=je(t);return ze(n,s,r)},r.addHook=function(e,t){"function"==typeof t&&tT(j[e],t)},r.removeHook=function(e,t){if(void 0!==t){const r=Qk(j[e],t);return-1===r?void 0:rT(j[e],r,1)[0]}return eT(j[e])},r.removeHooks=function(e){j[e]=[]},r.removeAllHooks=function(){j={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),HT=r(60680),GT=r.n(HT),YT=r(61448),XT=r.n(YT),ZT=r(77731),QT=r.n(ZT),eN={287:function(e,t,r){const n=r(987),s=r(362),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const i=2147483647;function a(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|m(e,t);let n=a(r);const s=n.write(e,t);return s!==r&&(n=n.slice(0,s)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(G(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const s=function(e){if(c.isBuffer(e)){const t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?a(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return u(e),a(e<0?0:0|f(e))}function h(e){const t=e.length<0?0:0|f(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function f(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let s=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(e).length;default:if(s)return n?-1:W(e).length;t=(""+t).toLowerCase(),s=!0}}function g(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return j(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,s){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=s?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(s)return-1;r=e.length-1}else if(r<0){if(!s)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,s);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,s);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,s){let o,i=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,a/=2,c/=2,r/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(s){let n=-1;for(o=r;o<a;o++)if(l(e,o)===l(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===c)return n*i}else-1!==n&&(o-=o-n),n=-1}else for(r+c>a&&(r=a-c),o=r;o>=0;o--){let r=!0;for(let n=0;n<c;n++)if(l(e,o+n)!==l(t,n)){r=!1;break}if(r)return o}return-1}function E(e,t,r,n){r=Number(r)||0;const s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;const o=t.length;let i;for(n>o/2&&(n=o/2),i=0;i<n;++i){const n=parseInt(t.substr(2*i,2),16);if(Y(n))return i;e[r+i]=n}return i}function w(e,t,r,n){return H(W(t,e.length-r),e,r,n)}function x(e,t,r,n){return H(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return H(K(t),e,r,n)}function _(e,t,r,n){return H(function(e,t){let r,n,s;const o=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),n=r>>8,s=r%256,o.push(s),o.push(n);return o}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function O(e,t,r){r=Math.min(e.length,r);const n=[];let s=t;for(;s<r;){const t=e[s];let o=null,i=t>239?4:t>223?3:t>191?2:1;if(s+i<=r){let r,n,a,c;switch(i){case 1:t<128&&(o=t);break;case 2:r=e[s+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(o=c));break;case 3:r=e[s+1],n=e[s+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=e[s+1],n=e[s+2],a=e[s+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,i=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),s+=i}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=C));return r}(n)}t.kMaxLength=i,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return function(e,t,r){return u(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}(e,t,r)},c.allocUnsafe=function(e){return p(e)},c.allocUnsafeSlow=function(e){return p(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(G(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let s=0,o=Math.min(r,n);s<o;++s)if(e[s]!==t[s]){r=e[s],n=t[s];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=c.allocUnsafe(t);let s=0;for(r=0;r<e.length;++r){let t=e[r];if(G(t,Uint8Array))s+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,s)):Uint8Array.prototype.set.call(n,t,s);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,s)}s+=t.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,s){if(G(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),t<0||r>e.length||n<0||s>this.length)throw new RangeError("out of range index");if(n>=s&&t>=r)return 0;if(n>=s)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(s>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0);const a=Math.min(o,i),l=this.slice(n,s),u=e.slice(t,r);for(let e=0;e<a;++e)if(l[e]!==u[e]){o=l[e],i=u[e];break}return o<i?-1:i<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const s=this.length-t;if((void 0===r||r>s)&&(r=s),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return E(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":case"latin1":case"binary":return x(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function j(e,t,r){let n="";r=Math.min(e.length,r);for(let s=t;s<r;++s)n+=String.fromCharCode(127&e[s]);return n}function k(e,t,r){let n="";r=Math.min(e.length,r);for(let s=t;s<r;++s)n+=String.fromCharCode(e[s]);return n}function T(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let s="";for(let n=t;n<r;++n)s+=X[e[n]];return s}function N(e,t,r){const n=e.slice(t,r);let s="";for(let e=0;e<n.length-1;e+=2)s+=String.fromCharCode(n[e]+256*n[e+1]);return s}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,r,n,s,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function M(e,t,r,n,s){U(t,n,s,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,r}function R(e,t,r,n,s){U(t,n,s,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let i=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=i,i>>=8,e[r+2]=i,i>>=8,e[r+1]=i,i>>=8,e[r]=i,r+8}function D(e,t,r,n,s,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $(e,t,r,n,o){return t=+t,r>>>=0,o||D(e,0,r,4),s.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,o){return t=+t,r>>>=0,o||D(e,0,r,8),s.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(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),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],s=1,o=0;for(;++o<t&&(s*=256);)n+=this[e+o]*s;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e+--t],s=1;for(;t>0&&(s*=256);)n+=this[e+--t]*s;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,s=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(s)<<BigInt(32))})),c.prototype.readBigUInt64BE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],s=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(s)})),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],s=1,o=0;for(;++o<t&&(s*=256);)n+=this[e+o]*s;return s*=128,n>=s&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=t,s=1,o=this[e+--n];for(;n>0&&(s*=256);)o+=this[e+--n]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(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 e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),s.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),s.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),s.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),s.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||P(this,e,t,r,Math.pow(2,8*r)-1,0);let s=1,o=0;for(this[t]=255&e;++o<r&&(s*=256);)this[t+o]=e/s&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||P(this,e,t,r,Math.pow(2,8*r)-1,0);let s=r-1,o=1;for(this[t+s]=255&e;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Z((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Z((function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}let s=0,o=1,i=0;for(this[t]=255&e;++s<r&&(o*=256);)e<0&&0===i&&0!==this[t+s-1]&&(i=1),this[t+s]=(e/o|0)-i&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);P(this,e,t,r,n-1,-n)}let s=r-1,o=1,i=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===i&&0!==this[t+s+1]&&(i=1),this[t+s]=(e/o|0)-i&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Z((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Z((function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return $(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return $(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const s=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),s},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let s;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(s=t;s<r;++s)this[s]=e;else{const o=c.isBuffer(e)?e:c.from(e,n),i=o.length;if(0===i)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<r-t;++s)this[s+t]=o[s%i]}return this};const B={};function L(e,t,r){B[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function q(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function U(e,t,r,n,s,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let s;throw s=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new B.ERR_OUT_OF_RANGE("value",s,e)}!function(e,t,r){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||J(t,e.length-(r+1))}(n,s,o)}function z(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,r){if(Math.floor(e)!==e)throw z(e,r),new B.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}L("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),L("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),L("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,s=r;return Number.isInteger(r)&&Math.abs(r)>2**32?s=q(String(r)):"bigint"==typeof r&&(s=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(s=q(s)),s+="n"),n+=` It must be ${t}. Received ${s}`,n}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function W(e,t){let r;t=t||1/0;const n=e.length;let s=null;const o=[];for(let i=0;i<n;++i){if(r=e.charCodeAt(i),r>55295&&r<57344){if(!s){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&o.push(239,191,189);continue}s=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&(t-=3)>-1&&o.push(239,191,189);if(s=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function K(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){let s;for(s=0;s<n&&!(s+r>=t.length||s>=e.length);++s)t[s+r]=e[s];return s}function G(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let s=0;s<16;++s)t[n+s]=e[r]+e[s]}return t}();function Z(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},919:function(e,t,r){var n=r(287).Buffer;function s(e){return e instanceof n||e instanceof Date||e instanceof RegExp}function o(e){if(e instanceof n){var t=n.alloc?n.alloc(e.length):new n(e.length);return e.copy(t),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}function i(e){var t=[];return e.forEach((function(e,r){"object"==typeof e&&null!==e?Array.isArray(e)?t[r]=i(e):s(e)?t[r]=o(e):t[r]=c({},e):t[r]=e})),t}function a(e,t){return"__proto__"===t?void 0:e[t]}var c=e.exports=function(){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];var e,t,r=arguments[0];return Array.prototype.slice.call(arguments,1).forEach((function(n){"object"!=typeof n||null===n||Array.isArray(n)||Object.keys(n).forEach((function(l){return t=a(r,l),(e=a(n,l))===r?void 0:"object"!=typeof e||null===e?void(r[l]=e):Array.isArray(e)?void(r[l]=i(e)):s(e)?void(r[l]=o(e)):"object"!=typeof t||null===t||Array.isArray(t)?void(r[l]=c({},e)):void(r[l]=c(t,e))}))})),r}},7:function(e){var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function s(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",s),r([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,s)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var s,o,i;if(a(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),i=o[t]),void 0===i)i=o[t]=r,++e._eventsCount;else if("function"==typeof i?i=o[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),(s=c(e))>0&&i.length>s&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=i.length,function(e){console&&console.warn&&console.warn(e)}(l)}return e}function u(){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 p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},s=u.bind(n);return s.listener=r,n.wrapFn=s,s}function h(e,t,r){var n=e._events;if(void 0===n)return[];var s=n[t];return void 0===s?[]:"function"==typeof s?r?[s.listener||s]:[s]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(s):f(s,s.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function s(o){n.once&&e.removeEventListener(t,s),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var s="error"===e,o=this._events;if(void 0!==o)s=s&&void 0===o.error;else if(!s)return!1;if(s){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var l=c.length,u=f(c,l);for(r=0;r<l;++r)n(u[r],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,s,o,i;if(a(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(s=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){i=r[o].listener,s=o;break}if(s<0)return this;0===s?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,s),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,i||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var s,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(s=o[n])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},698:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},606:function(e){var t,r,n=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var a,c=[],l=!1,u=-1;function p(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=i(p);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u<t;)a&&a[u].run();u=-1,t=c.length}a=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function f(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new d(e,t)),1!==c.length||l||i(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},209:function(e,t,r){var n=r(606),s=65536,o=r(861).Buffer,i=r.g.crypto||r.g.msCrypto;i&&i.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(e);if(e>0)if(e>s)for(var a=0;a<e;a+=s)i.getRandomValues(r.slice(a,a+s));else i.getRandomValues(r);return"function"==typeof t?n.nextTick((function(){t(null,r)})):r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},48:function(e){var t={};function r(e,r,n){n||(n=Error);var s=function(e){function t(t,n,s){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,s))||this}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t}(n);s.prototype.name=n.name,s.prototype.code=e,t[e]=s}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var s,o;if("string"==typeof t&&function(e,t){return e.substr(0,4)===t}(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))o="The ".concat(e," ").concat(s," ").concat(n(t,"type"));else{var i=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+1>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument";o='The "'.concat(e,'" ').concat(i," ").concat(s," ").concat(n(t,"type"))}return o+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},382:function(e,t,r){var n=r(606),s=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(412),i=r(708);r(698)(u,o);for(var a=s(i.prototype),c=0;c<a.length;c++){var l=a[c];u.prototype[l]||(u.prototype[l]=i.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",p)))}function p(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},600:function(e,t,r){e.exports=s;var n=r(610);function s(e){if(!(this instanceof s))return new s(e);n.call(this,e)}r(698)(s,n),s.prototype._transform=function(e,t,r){r(null,e)}},412:function(e,t,r){var n,s=r(606);e.exports=A,A.ReadableState=_,r(7).EventEmitter;var o,i=function(e,t){return e.listeners(t).length},a=r(345),c=r(287).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=r(838);o=u&&u.debuglog?u.debuglog("stream"):function(){};var p,h,d,f=r(726),m=r(896),g=r(291).getHighWaterMark,y=r(48).F,v=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,E=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(698)(A,a);var x=m.errorOrDestroy,S=["error","close","destroy","pause","resume"];function _(e,t,s){n=n||r(382),e=e||{},"boolean"!=typeof s&&(s=t instanceof n),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",s),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(141).I),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function A(e){if(n=n||r(382),!(this instanceof A))return new A(e);var t=this instanceof n;this._readableState=new _(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function O(e,t,r,n,s){o("readableAddChunk",t);var i,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,N(e)))}}(e,a);else if(s||(i=function(e,t){var r;return function(e){return c.isBuffer(e)||e instanceof l}(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t)),r}(a,t)),i)x(e,i);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n)a.endEmitted?x(e,new w):C(e,a,t,!0);else if(a.ended)x(e,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?C(e,a,t,!1):I(e,a)):C(e,a,t,!1)}else n||(a.reading=!1,I(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function C(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),I(e,t)}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=m.destroy,A.prototype._undestroy=m.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),O(this,e,t,!1,r)},A.prototype.unshift=function(e){return O(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){p||(p=r(141).I);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,s="";null!==n;)s+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==s&&this._readableState.buffer.push(s),this._readableState.length=s.length,this};var j=1073741824;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=j?e=j:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,s.nextTick(N,e))}function N(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,$(e)}function I(e,t){t.readingMore||(t.readingMore=!0,s.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function M(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){o("readable nexttick read 0"),e.read(0)}function D(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function B(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,s.nextTick(L,t,e))}function L(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}A.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):T(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&B(this),null;var n,s=t.needReadable;return o("need readable",s),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",s=!0),t.ended||t.reading?o("reading or ended",s=!1):s&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(r,t))),null===(n=e>0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},A.prototype._read=function(e){x(this,new E("_read()"))},A.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,t);var a=t&&!1===t.end||e===s.stdout||e===s.stderr?m:c;function c(){o("onend"),e.end()}n.endEmitted?s.nextTick(a):r.once("end",a),e.on("unpipe",(function t(s,i){o("onunpipe"),s===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",f),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",p),u=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,$(e))}}(r);e.on("drain",l);var u=!1;function p(t){o("ondata");var s=e.write(t);o("dest.write",s),!1===s&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==q(n.pipes,e))&&!u&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){o("onerror",t),m(),e.removeListener("error",h),0===i(e,"error")&&x(e,t)}function d(){e.removeListener("finish",f),m()}function f(){o("onfinish"),e.removeListener("close",d),m()}function m(){o("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",d),e.once("finish",f),e.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<s;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var i=q(t.pipes,e);return-1===i||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},A.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?T(this):n.reading||s.nextTick(R,this))),r},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&s.nextTick(M,this),r},A.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||s.nextTick(M,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,s.nextTick(D,e,t))}(this,e)),e.paused=!1,this},A.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var s in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(s){o("wrapped data"),r.decoder&&(s=r.decoder.write(s)),r.objectMode&&null==s||(r.objectMode||s&&s.length)&&(t.push(s)||(n=!0,e.pause()))})),e)void 0===this[s]&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var i=0;i<S.length;i++)e.on(S[i],this.emit.bind(this,S[i]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(955)),h(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),A._fromList=F,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(e,t){return void 0===d&&(d=r(157)),d(A,e,t)})},610:function(e,t,r){e.exports=u;var n=r(48).F,s=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,i=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(382);function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",p)}function p(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new i;return e.push(null)}r(698)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new s("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var s=this._readableState;(n.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},708:function(e,t,r){var n,s=r(606);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(undefined),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=A,A.WritableState=_;var i,a={deprecate:r(643)},c=r(345),l=r(287).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=r(896),h=r(291).getHighWaterMark,d=r(48).F,f=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,y=d.ERR_STREAM_CANNOT_PIPE,v=d.ERR_STREAM_DESTROYED,b=d.ERR_STREAM_NULL_VALUES,E=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,x=p.errorOrDestroy;function S(){}function _(e,t,i){n=n||r(382),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,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 r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(s.nextTick(o,n),s.nextTick(N,e,t),e._writableState.errorEmitted=!0,x(e,n)):(o(n),e._writableState.errorEmitted=!0,x(e,n),N(e,t))}(e,r,n,t,o);else{var i=k(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||j(e,r),n?s.nextTick(C,e,r,i,o):C(e,r,i,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function A(e){var t=this instanceof(n=n||r(382));if(!t&&!i.call(A,this))return new A(e);this._writableState=new _(e,this,t),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)),c.call(this)}function O(e,t,r,n,s,o,i){t.writelen=n,t.writecb=i,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(s,t.onwrite):e._write(s,o,t.onwrite),t.sync=!1}function C(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),N(e,t)}function j(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,s=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var a=0,c=!0;r;)s[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;s.allBuffers=c,O(e,t,!0,t.length,s,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,p=r.callback;if(O(e,t,!1,t.objectMode?1:l.length,l,u,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&x(e,r),t.prefinished=!0,e.emit("prefinish"),N(e,t)}))}function N(e,t){var r=k(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,s.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(698)(A,c),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:a.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]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===A&&e&&e._writableState instanceof _}})):i=function(e){return e instanceof this},A.prototype.pipe=function(){x(this,new y)},A.prototype.write=function(e,t,r){var n=this._writableState,o=!1,i=!n.objectMode&&function(e){return l.isBuffer(e)||e instanceof u}(e);return i&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(r=t,t=null),i?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=S),n.ending?function(e,t){var r=new E;x(e,r),s.nextTick(t,r)}(this,r):(i||function(e,t,r,n){var o;return null===r?o=new b:"string"==typeof r||t.objectMode||(o=new f("chunk",["string","Buffer"],r)),!o||(x(e,o),s.nextTick(n,o),!1)}(this,n,e,r))&&(n.pendingcb++,o=function(e,t,r,n,s,o){if(!r){var i=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}(t,n,s);n!==i&&(r=!0,s="buffer",n=i)}var a=t.objectMode?1:n.length;t.length+=a;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:s,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,a,n,s,o);return c}(this,n,i,e,t,r)),o},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||j(this,e))},A.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,r){r(new m("_write()"))},A.prototype._writev=null,A.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,N(e,t),r&&(t.finished?s.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=p.destroy,A.prototype._undestroy=p.undestroy,A.prototype._destroy=function(e,t){t(e)}},955:function(e,t,r){var n,s=r(606);function o(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(238),a=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),p=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[a];if(null!==t){var r=e[d].read();null!==r&&(e[p]=null,e[a]=null,e[c]=null,t(f(r,!1)))}}function g(e){s.nextTick(m,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((o(n={get stream(){return this[d]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(t,r){s.nextTick((function(){e[l]?r(e[l]):t(f(void 0,!0))}))}));var r,n=this[p];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(f(void 0,!0)):t[h](r,n)}),n)}}(n,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(f(o,!1));r=new Promise(this[h])}return this[p]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(f(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(v,(o(t={},d,{value:e,writable:!0}),o(t,a,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,u,{value:e._readableState.endEmitted,writable:!0}),o(t,h,{value:function(e,t){var n=r[d].read();n?(r[p]=null,r[a]=null,r[c]=null,e(f(n,!1))):(r[a]=e,r[c]=t)},writable:!0}),t));return r[p]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];return null!==t&&(r[p]=null,r[a]=null,r[c]=null,t(e)),void(r[l]=e)}var n=r[a];null!==n&&(r[p]=null,r[a]=null,r[c]=null,n(f(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}},726:function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var c=r(287).Buffer,l=r(340).inspect,u=l&&l.custom||"inspect";function p(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return function(e,t){t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)p(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var s=t.data,o=e>s.length?s.length:e;if(o===s.length?n+=s:n+=s.slice(0,e),0==(e-=o)){o===s.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=s.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(s.copy(t,t.length-e,0,o),0==(e-=o)){o===s.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=s.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return l(this,s(s({},t),{},{depth:0,customInspect:!1}))}}]),e}()},896:function(e,t,r){var n=r(606);function s(e,t){i(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return a||c?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(s,r,e)):n.nextTick(s,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},238:function(e,t,r){var n=r(48).F.ERR_STREAM_PREMATURE_CLOSE;function s(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];e.apply(this,n)}}}(o||s);var i=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){a=!1,l=!0,i||o.call(t)},p=t._readableState&&t._readableState.endEmitted,h=function(){i=!1,p=!0,a||o.call(t)},d=function(e){o.call(t,e)},f=function(){var e;return i&&!p?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!l?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",u),t.on("abort",f),t.req?m():t.on("request",m)):a&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",h),t.on("finish",u),!1!==r.error&&t.on("error",d),t.on("close",f),function(){t.removeListener("complete",u),t.removeListener("abort",f),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",f)}}},157:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},758:function(e,t,r){var n,s=r(48).F,o=s.ERR_MISSING_ARGS,i=s.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];var u,p=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var h=t.map((function(e,s){var o=s<t.length-1;return function(e,t,s,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=r(238)),n(e,{readable:t,writable:s},(function(e){if(e)return o(e);a=!0,o()}));var c=!1;return function(t){if(!a&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new i("pipe"))}}(e,o,s>0,(function(e){u||(u=e),e&&h.forEach(c),o||(h.forEach(c),p(u))}))}));return t.reduce(l)}},291:function(e,t,r){var n=r(48).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,s){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,s,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(s?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},345:function(e,t,r){e.exports=r(7).EventEmitter},861:function(e,t,r){var n=r(287),s=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return s(e,t,r)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i),i.prototype=Object.create(s.prototype),o(s,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=s(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},392:function(e,t,r){var n=r(861).Buffer,s=r(496);function o(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){e=s(e,t||"utf8");for(var r=this._block,n=this._blockSize,o=e.length,i=this._len,a=0;a<o;){for(var c=i%n,l=Math.min(o-a,n-c),u=0;u<l;u++)r[c+u]=e[a+u];a+=l,(i+=l)%n==0&&this._update(r)}return this._len+=o,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,s=(r-n)/4294967296;this._block.writeUInt32BE(s,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},802:function(e,t,r){e.exports=function(t){var r=t.toLowerCase(),n=e.exports[r];if(!n)throw new Error(r+" is not supported (we accept pull requests)");return new n},e.exports.sha=r(816),e.exports.sha1=r(737),e.exports.sha224=r(710),e.exports.sha256=r(107),e.exports.sha384=r(827),e.exports.sha512=r(890)},816:function(e,t,r){var n=r(698),s=r(392),o=r(861).Buffer,i=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,s.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,s),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,s=0|this._b,o=0|this._c,a=0|this._d,c=0|this._e,p=0;p<16;++p)r[p]=e.readInt32BE(4*p);for(;p<80;++p)r[p]=r[p-3]^r[p-8]^r[p-14]^r[p-16];for(var h=0;h<80;++h){var d=~~(h/20),f=0|((t=n)<<5|t>>>27)+u(d,s,o,a)+c+r[h]+i[d];c=a,a=o,o=l(s),s=n,n=f}this._a=n+this._a|0,this._b=s+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},737:function(e,t,r){var n=r(698),s=r(392),o=r(861).Buffer,i=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,s.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function p(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,s),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,s=0|this._b,o=0|this._c,a=0|this._d,c=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31;for(var d=0;d<80;++d){var f=~~(d/20),m=l(n)+p(f,s,o,a)+c+r[d]+i[f]|0;c=a,a=o,o=u(s),s=n,n=m}this._a=n+this._a|0,this._b=s+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},710:function(e,t,r){var n=r(698),s=r(107),o=r(392),i=r(861).Buffer,a=new Array(64);function c(){this.init(),this._w=a,o.call(this,64,56)}n(c,s),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=i.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},107:function(e,t,r){var n=r(698),s=r(392),o=r(861).Buffer,i=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function c(){this.init(),this._w=a,s.call(this,64,56)}function l(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function p(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,s),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,s=0|this._b,o=0|this._c,a=0|this._d,c=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)r[y]=e.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((t=r[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[y-7]+d(r[y-15])+r[y-16];for(var v=0;v<64;++v){var b=g+h(c)+l(c,f,m)+i[v]+r[v]|0,E=p(n)+u(n,s,o)|0;g=m,m=f,f=c,c=a+b|0,a=o,o=s,s=n,n=b+E|0}this._a=n+this._a|0,this._b=s+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},827:function(e,t,r){var n=r(698),s=r(890),o=r(392),i=r(861).Buffer,a=new Array(160);function c(){this.init(),this._w=a,o.call(this,128,112)}n(c,s),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=i.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},890:function(e,t,r){var n=r(698),s=r(392),o=r(861).Buffer,i=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function c(){this.init(),this._w=a,s.call(this,128,112)}function l(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function p(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0<t>>>0?1:0}n(c,s),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,s=0|this._ch,o=0|this._dh,a=0|this._eh,c=0|this._fh,v=0|this._gh,b=0|this._hh,E=0|this._al,w=0|this._bl,x=0|this._cl,S=0|this._dl,_=0|this._el,A=0|this._fl,O=0|this._gl,C=0|this._hl,j=0;j<32;j+=2)t[j]=e.readInt32BE(4*j),t[j+1]=e.readInt32BE(4*j+4);for(;j<160;j+=2){var k=t[j-30],T=t[j-30+1],N=d(k,T),I=f(T,k),P=m(k=t[j-4],T=t[j-4+1]),M=g(T,k),R=t[j-14],D=t[j-14+1],$=t[j-32],F=t[j-32+1],B=I+D|0,L=N+R+y(B,I)|0;L=(L=L+P+y(B=B+M|0,M)|0)+$+y(B=B+F|0,F)|0,t[j]=L,t[j+1]=B}for(var q=0;q<160;q+=2){L=t[q],B=t[q+1];var U=u(r,n,s),z=u(E,w,x),J=p(r,E),V=p(E,r),W=h(a,_),K=h(_,a),H=i[q],G=i[q+1],Y=l(a,c,v),X=l(_,A,O),Z=C+K|0,Q=b+W+y(Z,C)|0;Q=(Q=(Q=Q+Y+y(Z=Z+X|0,X)|0)+H+y(Z=Z+G|0,G)|0)+L+y(Z=Z+B|0,B)|0;var ee=V+z|0,te=J+U+y(ee,V)|0;b=v,C=O,v=c,O=A,c=a,A=_,a=o+Q+y(_=S+Z|0,S)|0,o=s,S=x,s=n,x=w,n=r,w=E,r=Q+te+y(E=Z+ee|0,Z)|0}this._al=this._al+E|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+S|0,this._el=this._el+_|0,this._fl=this._fl+A|0,this._gl=this._gl+O|0,this._hl=this._hl+C|0,this._ah=this._ah+r+y(this._al,E)|0,this._bh=this._bh+n+y(this._bl,w)|0,this._ch=this._ch+s+y(this._cl,x)|0,this._dh=this._dh+o+y(this._dl,S)|0,this._eh=this._eh+a+y(this._el,_)|0,this._fh=this._fh+c+y(this._fl,A)|0,this._gh=this._gh+v+y(this._gl,O)|0,this._hh=this._hh+b+y(this._hl,C)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},310:function(e,t,r){e.exports=s;var n=r(7).EventEmitter;function s(){n.call(this)}r(698)(s,n),s.Readable=r(412),s.Writable=r(708),s.Duplex=r(382),s.Transform=r(610),s.PassThrough=r(600),s.finished=r(238),s.pipeline=r(758),s.Stream=s,s.prototype.pipe=function(e,t){var r=this;function s(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",s),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",c));var i=!1;function a(){i||(i=!0,e.end())}function c(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",s),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",c),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",l),e.on("error",l),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},141:function(e,t,r){var n=r(861).Buffer,s=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===s||!s(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=u,this.end=p,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var s=i(t[n]);return s>=0?(s>0&&(e.lastNeed=s-1),s):--n<r||-2===s?0:(s=i(t[n]))>=0?(s>0&&(e.lastNeed=s-2),s):--n<r||-2===s?0:(s=i(t[n]))>=0?(s>0&&(2===s?s=0:e.lastNeed=s-3),s):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},643:function(e,t,r){function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},499:function(e){var t={"&":"&",'"':""","'":"'","<":"<",">":">"};e.exports=function(e){return e&&e.replace?e.replace(/([&"<>'])/g,(function(e,r){return t[r]})):e}},123:function(e,t,r){var n=r(606),s=r(499),o=r(310).Stream;function i(e,t,r){var n,o=function(e,t){return new Array(t||0).join(e||"")}(t,r=r||0),a=e;if("object"==typeof e&&(a=e[n=Object.keys(e)[0]])&&a._elem)return a._elem.name=n,a._elem.icount=r,a._elem.indent=t,a._elem.indents=o,a._elem.interrupt=a,a._elem;var c,l=[],u=[];function p(e){Object.keys(e).forEach((function(t){l.push(function(e,t){return e+'="'+s(t)+'"'}(t,e[t]))}))}switch(typeof a){case"object":if(null===a)break;a._attr&&p(a._attr),a._cdata&&u.push(("<![CDATA["+a._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),a.forEach&&(c=!1,u.push(""),a.forEach((function(e){"object"==typeof e?"_attr"==Object.keys(e)[0]?p(e._attr):u.push(i(e,t,r+1)):(u.pop(),c=!0,u.push(s(e)))})),c||u.push(""));break;default:u.push(s(a))}return{name:n,interrupt:!1,attributes:l,content:u,icount:r,indents:o,indent:t}}function a(e,t,r){if("object"!=typeof t)return e(!1,t);var n=t.interrupt?1:t.content.length;function s(){for(;t.content.length;){var s=t.content.shift();if(void 0!==s){if(o(s))return;a(e,s)}}e(!1,(n>1?t.indents:"")+(t.name?"</"+t.name+">":"")+(t.indent&&!r?"\n":"")),r&&r()}function o(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=s,t.interrupt=!1,e(!0),!0)}if(e(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(n?t.name?">":"":t.name?"/>":"")+(t.indent&&n>1?"\n":"")),!n)return e(!1,t.indent?"\n":"");o(t)||s()}e.exports=function(e,t){"object"!=typeof t&&(t={indent:t});var r=t.stream?new o:null,s="",c=!1,l=t.indent?!0===t.indent?" ":t.indent:"",u=!0;function p(e){u?n.nextTick(e):e()}function h(e,t){if(void 0!==t&&(s+=t),e&&!c&&(r=r||new o,c=!0),e&&c){var n=s;p((function(){r.emit("data",n)})),s=""}}function d(e,t){a(h,i(e,l,l?1:0),t)}function f(){if(r){var e=s;p((function(){r.emit("data",e),r.emit("end"),r.readable=!1,r.emit("close")}))}}return p((function(){u=!1})),t.declaration&&function(e){var t={version:"1.0",encoding:e.encoding||"UTF-8"};e.standalone&&(t.standalone=e.standalone),d({"?xml":{_attr:t}}),s=s.replace("/>","?>")}(t.declaration),e&&e.forEach?e.forEach((function(t,r){var n;r+1===e.length&&(n=f),d(t,n)})):d(e,f),r?(r.readable=!0,r):s},e.exports.element=e.exports.Element=function(){var e={_elem:i(Array.prototype.slice.call(arguments)),push:function(e){if(!this.append)throw new Error("not assigned to a parent!");var t=this,r=this._elem.indent;a(this.append,i(e,r,this._elem.icount+(r?1:0)),(function(){t.append(!0)}))},close:function(e){void 0!==e&&this.push(e),this.end&&this.end()}};return e}},987:function(e){e.exports=g},362:function(e){e.exports=v},496:function(e){e.exports=b},340:function(){},838:function(){}},tN={};function rN(e){var t=tN[e];if(void 0!==t)return t.exports;var r=tN[e]={exports:{}};return eN[e](r,r.exports,rN),r.exports}rN.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return rN.d(t,{a:t}),t},rN.d=function(e,t){for(var r in t)rN.o(t,r)&&!rN.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},rN.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),rN.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},rN.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var nN={};rN.r(nN),rN.d(nN,{CLEAR:function(){return IN},CLEAR_BY:function(){return PN},NEW_AUTH_ERR:function(){return NN},NEW_SPEC_ERR:function(){return kN},NEW_SPEC_ERR_BATCH:function(){return TN},NEW_THROWN_ERR:function(){return CN},NEW_THROWN_ERR_BATCH:function(){return jN},clear:function(){return BN},clearBy:function(){return LN},newAuthErr:function(){return FN},newSpecErr:function(){return DN},newSpecErrBatch:function(){return $N},newThrownErr:function(){return MN},newThrownErrBatch:function(){return RN}});var sN={};rN.r(sN),rN.d(sN,{AUTHORIZE:function(){return PI},AUTHORIZE_OAUTH2:function(){return RI},CONFIGURE_AUTH:function(){return DI},LOGOUT:function(){return MI},RESTORE_AUTHORIZATION:function(){return $I},SHOW_AUTH_POPUP:function(){return II},authPopup:function(){return eP},authorize:function(){return BI},authorizeAccessCodeWithBasicAuthentication:function(){return GI},authorizeAccessCodeWithFormParams:function(){return HI},authorizeApplication:function(){return KI},authorizeOauth2:function(){return JI},authorizeOauth2WithPersistOption:function(){return VI},authorizePassword:function(){return WI},authorizeRequest:function(){return YI},authorizeWithPersistOption:function(){return LI},configureAuth:function(){return XI},logout:function(){return qI},logoutWithPersistOption:function(){return UI},persistAuthorizationIfNeeded:function(){return QI},preAuthorizeImplicit:function(){return zI},restoreAuthorization:function(){return ZI},showDefinitions:function(){return FI}});var oN={};rN.r(oN),rN.d(oN,{authorized:function(){return cP},definitionsForRequirements:function(){return aP},definitionsToAuthorize:function(){return sP},getConfigs:function(){return uP},getDefinitionsByNames:function(){return iP},isAuthorized:function(){return lP},selectAuthPath:function(){return oP},shownDefinitions:function(){return nP}});var iN={};rN.r(iN),rN.d(iN,{TOGGLE_CONFIGS:function(){return SP},UPDATE_CONFIGS:function(){return xP},downloadConfig:function(){return CP},getConfigByUrl:function(){return jP},loaded:function(){return OP},toggle:function(){return AP},update:function(){return _P}});var aN={};rN.r(aN),rN.d(aN,{get:function(){return kP}});var cN={};rN.r(cN),rN.d(cN,{transform:function(){return BP}});var lN={};rN.r(lN),rN.d(lN,{transform:function(){return LP}});var uN={};rN.r(uN),rN.d(uN,{allErrors:function(){return JP},lastError:function(){return VP}});var pN={};rN.r(pN),rN.d(pN,{SHOW:function(){return iM},UPDATE_FILTER:function(){return sM},UPDATE_LAYOUT:function(){return nM},UPDATE_MODE:function(){return oM},changeMode:function(){return uM},show:function(){return lM},updateFilter:function(){return cM},updateLayout:function(){return aM}});var hN={};rN.r(hN),rN.d(hN,{current:function(){return hM},currentFilter:function(){return dM},isShown:function(){return fM},showSummary:function(){return gM},whatMode:function(){return mM}});var dN={};rN.r(dN),rN.d(dN,{taggedOperations:function(){return yM}});var fN={};rN.r(fN),rN.d(fN,{getActiveLanguage:function(){return PM},getDefaultExpanded:function(){return MM},getGenerators:function(){return NM},getSnippetGenerators:function(){return IM}});var mN={};rN.r(mN),rN.d(mN,{JsonSchemaArrayItemFile:function(){return lR},JsonSchemaArrayItemText:function(){return cR},JsonSchemaForm:function(){return oR},JsonSchema_array:function(){return aR},JsonSchema_boolean:function(){return uR},JsonSchema_object:function(){return hR},JsonSchema_string:function(){return iR}});var gN={};rN.r(gN),rN.d(gN,{allowTryItOutFor:function(){return ND},basePath:function(){return yD},canExecuteScheme:function(){return WD},consumes:function(){return pD},consumesOptionsFor:function(){return JD},contentTypeValues:function(){return qD},currentProducesFor:function(){return UD},definitions:function(){return gD},externalDocs:function(){return oD},findDefinition:function(){return mD},getOAS3RequiredRequestBodyContentType:function(){return GD},getParameter:function(){return DD},hasHost:function(){return $D},host:function(){return vD},info:function(){return sD},isMediaTypeSchemaPropertiesEqual:function(){return YD},isOAS3:function(){return nD},lastError:function(){return WR},mutatedRequestFor:function(){return TD},mutatedRequests:function(){return CD},operationScheme:function(){return VD},operationWithMeta:function(){return RD},operations:function(){return uD},operationsWithRootInherited:function(){return ED},operationsWithTags:function(){return SD},parameterInclusionSettingFor:function(){return PD},parameterValues:function(){return FD},parameterWithMeta:function(){return MD},parameterWithMetaByIdentity:function(){return ID},parametersIncludeIn:function(){return BD},parametersIncludeType:function(){return LD},paths:function(){return cD},produces:function(){return hD},producesOptionsFor:function(){return zD},requestFor:function(){return kD},requests:function(){return OD},responseFor:function(){return jD},responses:function(){return AD},schemes:function(){return bD},security:function(){return dD},securityDefinitions:function(){return fD},semver:function(){return aD},spec:function(){return rD},specJS:function(){return XR},specJson:function(){return YR},specJsonWithResolvedSubtrees:function(){return tD},specResolved:function(){return ZR},specResolvedSubtree:function(){return QR},specSource:function(){return GR},specStr:function(){return HR},tagDetails:function(){return xD},taggedOperations:function(){return _D},tags:function(){return wD},url:function(){return KR},validOperationMethods:function(){return lD},validateBeforeExecute:function(){return HD},validationErrors:function(){return KD},version:function(){return iD}});var yN={};rN.r(yN),rN.d(yN,{CLEAR_REQUEST:function(){return l$},CLEAR_RESPONSE:function(){return c$},CLEAR_VALIDATE_PARAMS:function(){return u$},LOG_REQUEST:function(){return a$},SET_MUTATED_REQUEST:function(){return i$},SET_REQUEST:function(){return o$},SET_RESPONSE:function(){return s$},SET_SCHEME:function(){return f$},UPDATE_EMPTY_PARAM_INCLUSION:function(){return r$},UPDATE_JSON:function(){return e$},UPDATE_OPERATION_META_VALUE:function(){return p$},UPDATE_PARAM:function(){return t$},UPDATE_RESOLVED:function(){return h$},UPDATE_RESOLVED_SUBTREE:function(){return d$},UPDATE_SPEC:function(){return ZD},UPDATE_URL:function(){return QD},VALIDATE_PARAMS:function(){return n$},changeConsumesValue:function(){return I$},changeParam:function(){return A$},changeParamByIdentity:function(){return O$},changeProducesValue:function(){return P$},clearRequest:function(){return q$},clearResponse:function(){return L$},clearValidateParams:function(){return N$},execute:function(){return B$},executeRequest:function(){return F$},invalidateResolvedSubtreeCache:function(){return j$},logRequest:function(){return $$},parseToJson:function(){return b$},requestResolvedSubtree:function(){return _$},resolveSpec:function(){return w$},setMutatedRequest:function(){return D$},setRequest:function(){return R$},setResponse:function(){return M$},setScheme:function(){return U$},updateEmptyParamInclusion:function(){return T$},updateJsonSpec:function(){return v$},updateResolved:function(){return g$},updateResolvedSubtree:function(){return C$},updateSpec:function(){return m$},updateUrl:function(){return y$},validateParams:function(){return k$}});var vN={};rN.r(vN),rN.d(vN,{executeRequest:function(){return W$},updateJsonSpec:function(){return V$},updateSpec:function(){return J$},validateParams:function(){return K$}});var bN={};rN.r(bN),rN.d(bN,{Button:function(){return CB},Col:function(){return AB},Collapse:function(){return PB},Container:function(){return SB},Input:function(){return kB},Link:function(){return NB},Row:function(){return OB},Select:function(){return TB},TextArea:function(){return jB}});var EN={};rN.r(EN),rN.d(EN,{basePath:function(){return wL},consumes:function(){return xL},definitions:function(){return gL},findDefinition:function(){return mL},hasHost:function(){return yL},host:function(){return EL},produces:function(){return SL},schemes:function(){return _L},securityDefinitions:function(){return vL},validOperationMethods:function(){return bL}});var wN={};rN.r(wN),rN.d(wN,{definitionsToAuthorize:function(){return AL}});var xN={};rN.r(xN),rN.d(xN,{callbacksOperations:function(){return RL},findSchema:function(){return ML},isOAS3:function(){return NL},isOAS30:function(){return TL},isSwagger2:function(){return kL},servers:function(){return PL}});var SN={};rN.r(SN),rN.d(SN,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:function(){return oq},CLEAR_REQUEST_BODY_VALUE:function(){return iq},SET_REQUEST_BODY_VALIDATE_ERROR:function(){return sq},UPDATE_ACTIVE_EXAMPLES_MEMBER:function(){return eq},UPDATE_REQUEST_BODY_INCLUSION:function(){return QL},UPDATE_REQUEST_BODY_VALUE:function(){return XL},UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:function(){return ZL},UPDATE_REQUEST_CONTENT_TYPE:function(){return tq},UPDATE_RESPONSE_CONTENT_TYPE:function(){return rq},UPDATE_SELECTED_SERVER:function(){return YL},UPDATE_SERVER_VARIABLE_VALUE:function(){return nq},clearRequestBodyValidateError:function(){return gq},clearRequestBodyValue:function(){return vq},initRequestBodyValidateError:function(){return yq},setActiveExamplesMember:function(){return pq},setRequestBodyInclusion:function(){return uq},setRequestBodyValidateError:function(){return mq},setRequestBodyValue:function(){return cq},setRequestContentType:function(){return hq},setResponseContentType:function(){return dq},setRetainRequestBodyValueFlag:function(){return lq},setSelectedServer:function(){return aq},setServerVariableValue:function(){return fq}});var _N={};rN.r(_N),rN.d(_N,{activeExamplesMember:function(){return Cq},hasUserEditedBody:function(){return _q},requestBodyErrors:function(){return Oq},requestBodyInclusionSetting:function(){return Aq},requestBodyValue:function(){return wq},requestContentType:function(){return jq},responseContentType:function(){return kq},selectDefaultRequestBodyValue:function(){return Sq},selectedServer:function(){return Eq},serverEffectiveValue:function(){return Iq},serverVariableValue:function(){return Tq},serverVariables:function(){return Nq},shouldRetainRequestBodyValue:function(){return xq},validOperationMethods:function(){return Rq},validateBeforeExecute:function(){return Pq},validateShallowRequired:function(){return Mq}});var AN=rN(919),ON=rN.n(AN);const CN="err_new_thrown_err",jN="err_new_thrown_err_batch",kN="err_new_spec_err",TN="err_new_spec_err_batch",NN="err_new_auth_err",IN="err_clear",PN="err_clear_by";function MN(e){return{type:CN,payload:(0,_.serializeError)(e)}}function RN(e){return{type:jN,payload:e}}function DN(e){return{type:kN,payload:e}}function $N(e){return{type:TN,payload:e}}function FN(e){return{type:NN,payload:e}}function BN(e={}){return{type:IN,payload:e}}function LN(e=()=>!0){return{type:PN,payload:e}}var qN=function(){var e={location:{},history:{},open:()=>{},close:()=>{},File:function(){},FormData:function(){}};if("undefined"==typeof window)return e;try{for(var t of(e=window,["File","Blob","FormData"]))t in window&&(e[t]=window[t])}catch(e){console.error(e)}return e}(),UN=rN(209),zN=rN.n(UN),JN=rN(802),VN=rN.n(JN);const WN=x().Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function KN(e,{isOAS3:t}={}){if(!x().Map.isMap(e))return{schema:x().Map(),parameterContentMediaType:null};if(!t)return"body"===e.get("in")?{schema:e.get("schema",x().Map()),parameterContentMediaType:null}:{schema:e.filter(((e,t)=>WN.includes(t))),parameterContentMediaType:null};if(e.get("content")){const t=e.get("content",x().Map({})).keySeq().first();return{schema:e.getIn(["content",t,"schema"],x().Map()),parameterContentMediaType:t}}return{schema:e.get("schema")?e.get("schema",x().Map()):x().Map(),parameterContentMediaType:null}}var HN=rN(287).Buffer;const GN="default",YN=e=>x().Iterable.isIterable(e),XN=e=>YN(e)?e.toJS():e;function ZN(e){return rI(e)?XN(e):{}}function QN(e){if(YN(e))return e;if(e instanceof qN.File)return e;if(!rI(e))return e;if(Array.isArray(e))return x().Seq(e).map(QN).toList();if(D()(e.entries)){const t=function(e){if(!D()(e.entries))return e;const t={},r="_**[]",n={};for(let s of e.entries())t[s[0]]||n[s[0]]&&n[s[0]].containsMultiple?(n[s[0]]||(n[s[0]]={containsMultiple:!0,length:1},t[`${s[0]}${r}${n[s[0]].length}`]=t[s[0]],delete t[s[0]]),n[s[0]].length+=1,t[`${s[0]}${r}${n[s[0]].length}`]=s[1]):t[s[0]]=s[1];return t}(e);return x().OrderedMap(t).map(QN)}return x().OrderedMap(e).map(QN)}function eI(e){return Array.isArray(e)?e:[e]}function tI(e){return"function"==typeof e}function rI(e){return!!e&&"object"==typeof e}function nI(e){return"function"==typeof e}function sI(e){return Array.isArray(e)}const oI=j();function iI(e,t){return Object.keys(e).reduce(((r,n)=>(r[n]=t(e[n],n),r)),{})}function aI(e,t){return Object.keys(e).reduce(((r,n)=>{let s=t(e[n],n);return s&&"object"==typeof s&&Object.assign(r,s),r}),{})}function cI(e){return({dispatch:t,getState:r})=>t=>r=>"function"==typeof r?r(e()):t(r)}function lI(e,t,r,n,s,o){if(!t)return[];let i=[],a=t.get("nullable"),c=t.get("required"),l=t.get("maximum"),u=t.get("minimum"),p=t.get("type"),h=t.get("format"),d=t.get("maxLength"),f=t.get("minLength"),m=t.get("uniqueItems"),g=t.get("maxItems"),y=t.get("minItems"),v=t.get("pattern");const b=r||!0===c,E=null!=e,S=b||E&&"array"===p||!(!b&&!E),_=a&&null===e;if(b&&!E&&!_&&!n&&!p)return i.push("Required field is not provided"),i;if(_||!p||!S)return[];let A="string"===p&&e,O="array"===p&&Array.isArray(e)&&e.length,C="array"===p&&x().List.isList(e)&&e.count(),j="array"===p&&"string"==typeof e&&e;const k=[A,O,C,"file"===p&&e instanceof qN.File,"boolean"===p&&(e||!1===e),"number"===p&&(e||0===e),"integer"===p&&(e||0===e),"object"===p&&"object"==typeof e&&null!==e,"object"===p&&"string"==typeof e&&e],T=(o?k:k.concat(j)).some((e=>!!e));if(b&&!T&&!n)return i.push("Required field is not provided"),i;if("object"===p&&(null===s||"application/json"===s)){let r=e;if("string"==typeof e)try{r=JSON.parse(e)}catch(e){return i.push("Parameter string value must be valid JSON"),i}t&&t.has("required")&&nI(c.isList)&&c.isList()&&c.forEach((e=>{void 0===r[e]&&i.push({propKey:e,error:"Required property not found"})})),t&&t.has("properties")&&t.get("properties").forEach(((e,t)=>{const a=lI(r[t],e,!1,n,s,o);i.push(...a.map((e=>({propKey:t,error:e}))))}))}if(v){let t=((e,t)=>{if(!new RegExp(t).test(e))return"Value must follow pattern "+t})(e,v);t&&i.push(t)}if(y&&"array"===p){let t=((e,t)=>{if(!e&&t>=1||e&&e.length<t)return`Array must contain at least ${t} item${1===t?"":"s"}`})(e,y);t&&i.push(t)}if(g&&"array"===p){let t=((e,t)=>{if(e&&e.length>t)return`Array must not contain more then ${t} item${1===t?"":"s"}`})(e,g);t&&i.push({needRemove:!0,error:t})}if(m&&"array"===p){let t=((e,t)=>{if(e&&("true"===t||!0===t)){const t=(0,w.fromJS)(e),r=t.toSet();if(e.length>r.size){let e=(0,w.Set)();if(t.forEach(((r,n)=>{t.filter((e=>nI(e.equals)?e.equals(r):e===r)).size>1&&(e=e.add(n))})),0!==e.size)return e.map((e=>({index:e,error:"No duplicates allowed."}))).toArray()}}})(e,m);t&&i.push(...t)}if(d||0===d){let t=((e,t)=>{if(e.length>t)return`Value must be no longer than ${t} character${1!==t?"s":""}`})(e,d);t&&i.push(t)}if(f){let t=((e,t)=>{if(e.length<t)return`Value must be at least ${t} character${1!==t?"s":""}`})(e,f);t&&i.push(t)}if(l||0===l){let t=((e,t)=>{if(e>t)return`Value must be less than or equal to ${t}`})(e,l);t&&i.push(t)}if(u||0===u){let t=((e,t)=>{if(e<t)return`Value must be greater than or equal to ${t}`})(e,u);t&&i.push(t)}if("string"===p){let t;if(t="date-time"===h?(e=>{if(isNaN(Date.parse(e)))return"Value must be a DateTime"})(e):"uuid"===h?(e=>{if(e=e.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(e))return"Value must be a Guid"})(e):(e=>{if(e&&"string"!=typeof e)return"Value must be a string"})(e),!t)return i;i.push(t)}else if("boolean"===p){let t=(e=>{if("true"!==e&&"false"!==e&&!0!==e&&!1!==e)return"Value must be a boolean"})(e);if(!t)return i;i.push(t)}else if("number"===p){let t=(e=>{if(!/^-?\d+(\.?\d+)?$/.test(e))return"Value must be a number"})(e);if(!t)return i;i.push(t)}else if("integer"===p){let t=(e=>{if(!/^-?\d+$/.test(e))return"Value must be an integer"})(e);if(!t)return i;i.push(t)}else if("array"===p){if(!O&&!C)return i;e&&e.forEach(((e,r)=>{const a=lI(e,t.get("items"),!1,n,s,o);i.push(...a.map((e=>({index:r,error:e}))))}))}else if("file"===p){let t=(e=>{if(e&&!(e instanceof qN.File))return"Value must be a file"})(e);if(!t)return i;i.push(t)}return i}const uI=e=>{let t;return t=e instanceof HN?e:HN.from(e.toString(),"utf-8"),t.toString("base64")},pI={operationsSorter:{alpha:(e,t)=>e.get("path").localeCompare(t.get("path")),method:(e,t)=>e.get("method").localeCompare(t.get("method"))},tagsSorter:{alpha:(e,t)=>e.localeCompare(t)}},hI=e=>{let t=[];for(let r in e){let n=e[r];void 0!==n&&""!==n&&t.push([r,"=",encodeURIComponent(n).replace(/%20/g,"+")].join(""))}return t.join("&")},dI=(e,t,r)=>!!T()(r,(r=>M()(e[r],t[r])));function fI(e){return!(!e||e.indexOf("localhost")>=0||e.indexOf("127.0.0.1")>=0||"none"===e)}const mI=e=>"string"==typeof e||e instanceof String?e.trim().replace(/\s/g,"%20"):"",gI=e=>F()(mI(e).replace(/%20/g,"_")),yI=e=>/^x-/.test(e),vI=e=>w.Map.isMap(e)?e.filter(((e,t)=>yI(t))):Object.keys(e).filter((e=>yI(e))),bI=e=>e.filter(((e,t)=>/^pattern|maxLength|minLength|maximum|minimum/.test(t)));function EI(e,t,r=()=>!0){if("object"!=typeof e||Array.isArray(e)||null===e||!t)return e;const n=Object.assign({},e);return Object.keys(n).forEach((e=>{e===t&&r(n[e],e)?delete n[e]:n[e]=EI(n[e],t,r)})),n}function wI(e){if("string"==typeof e)return e;if(e&&e.toJS&&(e=e.toJS()),"object"==typeof e&&null!==e)try{return JSON.stringify(e,null,2)}catch(t){return String(e)}return null==e?"":e.toString()}function xI(e,{returnAll:t=!1,allowHashes:r=!0}={}){if(!x().Map.isMap(e))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const n=e.get("name"),s=e.get("in");let o=[];return e&&e.hashCode&&s&&n&&r&&o.push(`${s}.${n}.hash-${e.hashCode()}`),s&&n&&o.push(`${s}.${n}`),o.push(n),t?o:o[0]||""}function SI(e,t){return xI(e,{returnAll:!0}).map((e=>t[e])).filter((e=>void 0!==e))[0]}function _I(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const AI=e=>!e||!(!YN(e)||!e.isEmpty()),OI=e=>e;class CI{constructor(e={}){ON()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},e),this.getSystem=this._getSystem.bind(this),this.store=function(e,t,r){return function(e,t,r){let n=[cI(r)];const s=qN.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||E.Zz;return(0,E.y$)(e,t,s((0,E.Tw)(...n)))}(e,t,r)}(OI,(0,w.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(e,t=!0){var r=jI(e,this.getSystem());TI(this.system,r),t&&this.buildSystem(),kI.call(this.system,e,this.getSystem())&&this.buildSystem()}buildSystem(e=!0){let t=this.getStore().dispatch,r=this.getStore().getState;this.boundSystem=Object.assign({},this.getRootInjects(),this.getWrappedAndBoundActions(t),this.getWrappedAndBoundSelectors(r,this.getSystem),this.getStateThunks(r),this.getFn(),this.getConfigs()),e&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){return Object.assign({getSystem:this.getSystem,getStore:this.getStore.bind(this),getComponents:this.getComponents.bind(this),getState:this.getStore().getState,getConfigs:this._getConfigs.bind(this),Im:x(),React:f},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(e){this.system.configs=e}rebuildReducer(){var e,t;this.store.replaceReducer((e=this.system.statePlugins,t=this.getSystem,function(e,t){let r=Object.keys(e).reduce(((r,n)=>(r[n]=function(e,t){return(r=new w.Map,n)=>{if(!e)return r;let s=e[n.type];if(s){const e=NI(s,t)(r,n);return null===e?r:e}return r}}(e[n],t),r)),{});return Object.keys(r).length?(0,S.H)(r):OI}(iI(e,(e=>e.reducers)),t)))}getType(e){let t=e[0].toUpperCase()+e.slice(1);return aI(this.system.statePlugins,((r,n)=>{let s=r[e];if(s)return{[n+t]:s}}))}getSelectors(){return this.getType("selectors")}getActions(){return iI(this.getType("actions"),(e=>aI(e,((e,t)=>{if(tI(e))return{[t]:e}}))))}getWrappedAndBoundActions(e){return iI(this.getBoundActions(e),((e,t)=>{let r=this.system.statePlugins[t.slice(0,-7)].wrapActions;return r?iI(e,((e,t)=>{let n=r[t];return n?(Array.isArray(n)||(n=[n]),n.reduce(((e,t)=>{let r=(...r)=>t(e,this.getSystem())(...r);if(!tI(r))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return NI(r,this.getSystem)}),e||Function.prototype)):e})):e}))}getWrappedAndBoundSelectors(e,t){return iI(this.getBoundSelectors(e,t),((t,r)=>{let n=[r.slice(0,-9)],s=this.system.statePlugins[n].wrapSelectors;return s?iI(t,((t,r)=>{let o=s[r];return o?(Array.isArray(o)||(o=[o]),o.reduce(((t,r)=>{let s=(...s)=>r(t,this.getSystem())(e().getIn(n),...s);if(!tI(s))throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)");return s}),t||Function.prototype)):t})):t}))}getStates(e){return Object.keys(this.system.statePlugins).reduce(((t,r)=>(t[r]=e.get(r),t)),{})}getStateThunks(e){return Object.keys(this.system.statePlugins).reduce(((t,r)=>(t[r]=()=>e().get(r),t)),{})}getFn(){return{fn:this.system.fn}}getComponents(e){const t=this.system.components[e];return Array.isArray(t)?t.reduce(((e,t)=>t(e,this.getSystem()))):void 0!==e?this.system.components[e]:this.system.components}getBoundSelectors(e,t){return iI(this.getSelectors(),((r,n)=>{let s=[n.slice(0,-9)];return iI(r,(r=>(...n)=>{let o=NI(r,this.getSystem).apply(null,[e().getIn(s),...n]);return"function"==typeof o&&(o=NI(o,this.getSystem)(t())),o}))}))}getBoundActions(e){e=e||this.getStore().dispatch;const t=this.getActions(),r=e=>"function"!=typeof e?iI(e,(e=>r(e))):(...t)=>{var r=null;try{r=e(...t)}catch(e){r={type:CN,error:!0,payload:(0,_.serializeError)(e)}}finally{return r}};return iI(t,(t=>(0,E.zH)(r(t),e)))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(e){return t=>ON()({},this.getWrappedAndBoundActions(t),this.getFn(),e)}}function jI(e,t){return rI(e)&&!sI(e)?O()({},e):nI(e)?jI(e(t),t):sI(e)?e.map((e=>jI(e,t))).reduce(TI,{components:t.getComponents()}):{}}function kI(e,t,{hasLoaded:r}={}){let n=r;return rI(e)&&!sI(e)&&"function"==typeof e.afterLoad&&(n=!0,NI(e.afterLoad,t.getSystem).call(this,t)),nI(e)?kI.call(this,e(t),t,{hasLoaded:n}):sI(e)?e.map((e=>kI.call(this,e,t,{hasLoaded:n}))):n}function TI(e={},t={}){if(!rI(e))return{};if(!rI(t))return e;t.wrapComponents&&(iI(t.wrapComponents,((r,n)=>{const s=e.components&&e.components[n];s&&Array.isArray(s)?(e.components[n]=s.concat([r]),delete t.wrapComponents[n]):s&&(e.components[n]=[s,r],delete t.wrapComponents[n])})),Object.keys(t.wrapComponents).length||delete t.wrapComponents);const{statePlugins:r}=e;if(rI(r))for(let e in r){const n=r[e];if(!rI(n))continue;const{wrapActions:s,wrapSelectors:o}=n;if(rI(s))for(let r in s){let n=s[r];Array.isArray(n)||(n=[n],s[r]=n),t&&t.statePlugins&&t.statePlugins[e]&&t.statePlugins[e].wrapActions&&t.statePlugins[e].wrapActions[r]&&(t.statePlugins[e].wrapActions[r]=s[r].concat(t.statePlugins[e].wrapActions[r]))}if(rI(o))for(let r in o){let n=o[r];Array.isArray(n)||(n=[n],o[r]=n),t&&t.statePlugins&&t.statePlugins[e]&&t.statePlugins[e].wrapSelectors&&t.statePlugins[e].wrapSelectors[r]&&(t.statePlugins[e].wrapSelectors[r]=o[r].concat(t.statePlugins[e].wrapSelectors[r]))}}return ON()(e,t)}function NI(e,t,{logErrors:r=!0}={}){return"function"!=typeof e?e:function(...n){try{return e.call(this,...n)}catch(e){if(r){const{uncaughtExceptionHandler:r}=t().getConfigs();"function"==typeof r?r(e):console.error(e)}return null}}}const II="show_popup",PI="authorize",MI="logout",RI="authorize_oauth2",DI="configure_auth",$I="restore_authorization";function FI(e){return{type:II,payload:e}}function BI(e){return{type:PI,payload:e}}const LI=e=>({authActions:t})=>{t.authorize(e),t.persistAuthorizationIfNeeded()};function qI(e){return{type:MI,payload:e}}const UI=e=>({authActions:t})=>{t.logout(e),t.persistAuthorizationIfNeeded()},zI=e=>({authActions:t,errActions:r})=>{let{auth:n,token:s,isValid:o}=e,{schema:i,name:a}=n,c=i.get("flow");delete qN.swaggerUIRedirectOauth2,"accessCode"===c||o||r.newAuthErr({authId:a,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),s.error?r.newAuthErr({authId:a,source:"auth",level:"error",message:JSON.stringify(s)}):t.authorizeOauth2WithPersistOption({auth:n,token:s})};function JI(e){return{type:RI,payload:e}}const VI=e=>({authActions:t})=>{t.authorizeOauth2(e),t.persistAuthorizationIfNeeded()},WI=e=>({authActions:t})=>{let{schema:r,name:n,username:s,password:o,passwordType:i,clientId:a,clientSecret:c}=e,l={grant_type:"password",scope:e.scopes.join(" "),username:s,password:o},u={};switch(i){case"request-body":!function(e,t,r){t&&Object.assign(e,{client_id:t}),r&&Object.assign(e,{client_secret:r})}(l,a,c);break;case"basic":u.Authorization="Basic "+uI(a+":"+c);break;default:console.warn(`Warning: invalid passwordType ${i} was passed, not including client id and secret`)}return t.authorizeRequest({body:hI(l),url:r.get("tokenUrl"),name:n,headers:u,query:{},auth:e})},KI=e=>({authActions:t})=>{let{schema:r,scopes:n,name:s,clientId:o,clientSecret:i}=e,a={Authorization:"Basic "+uI(o+":"+i)},c={grant_type:"client_credentials",scope:n.join(" ")};return t.authorizeRequest({body:hI(c),name:s,url:r.get("tokenUrl"),auth:e,headers:a})},HI=({auth:e,redirectUrl:t})=>({authActions:r})=>{let{schema:n,name:s,clientId:o,clientSecret:i,codeVerifier:a}=e,c={grant_type:"authorization_code",code:e.code,client_id:o,client_secret:i,redirect_uri:t,code_verifier:a};return r.authorizeRequest({body:hI(c),name:s,url:n.get("tokenUrl"),auth:e})},GI=({auth:e,redirectUrl:t})=>({authActions:r})=>{let{schema:n,name:s,clientId:o,clientSecret:i,codeVerifier:a}=e,c={Authorization:"Basic "+uI(o+":"+i)},l={grant_type:"authorization_code",code:e.code,client_id:o,redirect_uri:t,code_verifier:a};return r.authorizeRequest({body:hI(l),name:s,url:n.get("tokenUrl"),auth:e,headers:c})},YI=e=>({fn:t,getConfigs:r,authActions:n,errActions:s,oas3Selectors:o,specSelectors:i,authSelectors:a})=>{let c,{body:l,query:u={},headers:p={},name:h,url:d,auth:f}=e,{additionalQueryStringParams:m}=a.getConfigs()||{};if(i.isOAS3()){let e=o.serverEffectiveValue(o.selectedServer());c=L()(d,e,!0)}else c=L()(d,i.url(),!0);"object"==typeof m&&(c.query=Object.assign({},c.query,m));const g=c.toString();let y=Object.assign({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},p);t.fetch({url:g,method:"post",headers:y,query:u,body:l,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then((function(e){let t=JSON.parse(e.data),r=t&&(t.error||""),o=t&&(t.parseError||"");e.ok?r||o?s.newAuthErr({authId:h,level:"error",source:"auth",message:JSON.stringify(t)}):n.authorizeOauth2WithPersistOption({auth:f,token:t}):s.newAuthErr({authId:h,level:"error",source:"auth",message:e.statusText})})).catch((e=>{let t=new Error(e).message;if(e.response&&e.response.data){const r=e.response.data;try{const e="string"==typeof r?JSON.parse(r):r;e.error&&(t+=`, error: ${e.error}`),e.error_description&&(t+=`, description: ${e.error_description}`)}catch(e){}}s.newAuthErr({authId:h,level:"error",source:"auth",message:t})}))};function XI(e){return{type:DI,payload:e}}function ZI(e){return{type:$I,payload:e}}const QI=()=>({authSelectors:e,getConfigs:t})=>{if(!t().persistAuthorization)return;const r=e.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},eP=(e,t)=>()=>{qN.swaggerUIRedirectOauth2=t,qN.open(e)};var tP={[II]:(e,{payload:t})=>e.set("showDefinitions",t),[PI]:(e,{payload:t})=>{let r=(0,w.fromJS)(t),n=e.get("authorized")||(0,w.Map)();return r.entrySeq().forEach((([t,r])=>{if(!nI(r.getIn))return e.set("authorized",n);let s=r.getIn(["schema","type"]);if("apiKey"===s||"http"===s)n=n.set(t,r);else if("basic"===s){let e=r.getIn(["value","username"]),s=r.getIn(["value","password"]);n=n.setIn([t,"value"],{username:e,header:"Basic "+uI(e+":"+s)}),n=n.setIn([t,"schema"],r.get("schema"))}})),e.set("authorized",n)},[RI]:(e,{payload:t})=>{let r,{auth:n,token:s}=t;n.token=Object.assign({},s),r=(0,w.fromJS)(n);let o=e.get("authorized")||(0,w.Map)();return o=o.set(r.get("name"),r),e.set("authorized",o)},[MI]:(e,{payload:t})=>{let r=e.get("authorized").withMutations((e=>{t.forEach((t=>{e.delete(t)}))}));return e.set("authorized",r)},[DI]:(e,{payload:t})=>e.set("configs",t),[$I]:(e,{payload:t})=>e.set("authorized",(0,w.fromJS)(t.authorized))};const rP=e=>e,nP=(0,q.Mz)(rP,(e=>e.get("showDefinitions"))),sP=(0,q.Mz)(rP,(()=>({specSelectors:e})=>{let t=e.securityDefinitions()||(0,w.Map)({}),r=(0,w.List)();return t.entrySeq().forEach((([e,t])=>{let n=(0,w.Map)();n=n.set(e,t),r=r.push(n)})),r})),oP=(e,t)=>({specSelectors:e})=>(0,w.List)(e.isOAS3()?["components","securitySchemes",t]:["securityDefinitions",t]),iP=(e,t)=>({specSelectors:e})=>{console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let r=e.securityDefinitions(),n=(0,w.List)();return t.valueSeq().forEach((e=>{let t=(0,w.Map)();e.entrySeq().forEach((([e,n])=>{let s,o=r.get(e);"oauth2"===o.get("type")&&n.size&&(s=o.get("scopes"),s.keySeq().forEach((e=>{n.contains(e)||(s=s.delete(e))})),o=o.set("allowedScopes",s)),t=t.set(e,o)})),n=n.push(t)})),n},aP=(e,t=(0,w.List)())=>({authSelectors:e})=>{const r=e.definitionsToAuthorize()||(0,w.List)();let n=(0,w.List)();return r.forEach((e=>{let r=t.find((t=>t.get(e.keySeq().first())));r&&(e.forEach(((t,n)=>{if("oauth2"===t.get("type")){const s=r.get(n);let o=t.get("scopes");w.List.isList(s)&&w.Map.isMap(o)&&(o.keySeq().forEach((e=>{s.contains(e)||(o=o.delete(e))})),e=e.set(n,t.set("scopes",o)))}})),n=n.push(e))})),n},cP=(0,q.Mz)(rP,(e=>e.get("authorized")||(0,w.Map)())),lP=(e,t)=>({authSelectors:e})=>{let r=e.authorized();return w.List.isList(t)?!!t.toJS().filter((e=>-1===Object.keys(e).map((e=>!!r.get(e))).indexOf(!1))).length:null},uP=(0,q.Mz)(rP,(e=>e.get("configs"))),pP=(e,{authSelectors:t,specSelectors:r})=>({path:n,method:s,operation:o,extras:i})=>{let a={authorized:t.authorized()&&t.authorized().toJS(),definitions:r.securityDefinitions()&&r.securityDefinitions().toJS(),specSecurity:r.security()&&r.security().toJS()};return e({path:n,method:s,operation:o,securities:a,...i})},hP=(e,t)=>r=>{const{getConfigs:n,authActions:s}=t,o=n();if(e(r),o.persistAuthorization){const e=localStorage.getItem("authorized");e&&s.restoreAuthorization({authorized:JSON.parse(e)})}},dP=(e,t)=>r=>{if(e(r),t.getConfigs().persistAuthorization)try{const[{schema:e,value:t}]=Object.values(r),n=(0,w.fromJS)(e),s="apiKey"===n.get("type"),o="cookie"===n.get("in");s&&o&&(document.cookie=`${n.get("name")}=${t}; SameSite=None; Secure`)}catch(e){console.error("Error persisting cookie based apiKey in document.cookie.",e)}},fP=(e,t)=>r=>{const n=t.getConfigs(),s=t.authSelectors.authorized();try{n.persistAuthorization&&Array.isArray(r)&&r.forEach((e=>{const t=s.get(e,{}),r="apiKey"===t.getIn(["schema","type"]),n="cookie"===t.getIn(["schema","in"]);if(r&&n){const e=t.getIn(["schema","name"]);document.cookie=`${e}=; Max-Age=-99999999`}}))}catch(e){console.error("Error deleting cookie based apiKey from document.cookie.",e)}e(r)};class mP extends f.Component{mapStateToProps(e,t){return{state:e,ownProps:V()(t,Object.keys(t.getSystem()))}}render(){const{getComponent:e,ownProps:t}=this.props,r=e("LockIcon");return f.createElement(r,t)}}var gP=mP;class yP extends f.Component{mapStateToProps(e,t){return{state:e,ownProps:V()(t,Object.keys(t.getSystem()))}}render(){const{getComponent:e,ownProps:t}=this.props,r=e("UnlockIcon");return f.createElement(r,t)}}var vP=yP;function bP(){return{afterLoad(e){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=e.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=wP.bind(null,e),this.rootInjects.preauthorizeBasic=EP.bind(null,e)},components:{LockAuthIcon:gP,UnlockAuthIcon:vP,LockAuthOperationIcon:gP,UnlockAuthOperationIcon:vP},statePlugins:{auth:{reducers:tP,actions:sN,selectors:oN,wrapActions:{authorize:dP,logout:fP}},configs:{wrapActions:{loaded:hP}},spec:{wrapActions:{execute:pP}}}}}function EP(e,t,r,n){const{authActions:{authorize:s},specSelectors:{specJson:o,isOAS3:i}}=e,a=i()?["components","securitySchemes"]:["securityDefinitions"],c=o().getIn([...a,t]);return c?s({[t]:{value:{username:r,password:n},schema:c.toJS()}}):null}function wP(e,t,r){const{authActions:{authorize:n},specSelectors:{specJson:s,isOAS3:o}}=e,i=o()?["components","securitySchemes"]:["securityDefinitions"],a=s().getIn([...i,t]);return a?n({[t]:{value:r,schema:a.toJS()}}):null}const xP="configs_update",SP="configs_toggle";function _P(e,t){return{type:xP,payload:{[e]:t}}}function AP(e){return{type:SP,payload:e}}const OP=()=>()=>{},CP=e=>t=>{const{fn:{fetch:r}}=t;return r(e)},jP=(e,t)=>r=>{const{specActions:n,configsActions:s}=r;if(e)return s.downloadConfig(e).then(o,o);function o(s){s instanceof Error||s.status>=400?(n.updateLoadingStatus("failedConfig"),n.updateLoadingStatus("failedConfig"),n.updateUrl(""),console.error(s.statusText+" "+e.url),t(null)):t(((e,t)=>{try{return nr.load(e)}catch(e){return t&&t.errActions.newThrownErr(new Error(e)),{}}})(s.text,r))}},kP=(e,t)=>e.getIn(Array.isArray(t)?t:[t]);var TP={[xP]:(e,t)=>e.merge((0,w.fromJS)(t.payload)),[SP]:(e,t)=>{const r=t.payload,n=e.get(r);return e.set(r,!n)}};function NP(){return{statePlugins:{configs:{reducers:TP,actions:iN,selectors:aN}}}}const IP=e=>e?history.pushState(null,null,`#${e}`):window.location.hash="",PP="layout_scroll_to",MP="layout_clear_scroll";var RP={fn:{getScrollParent:function(e,t){const r=document.documentElement;let n=getComputedStyle(e);const s="absolute"===n.position,o=t?/(auto|scroll|hidden)/:/(auto|scroll)/;if("fixed"===n.position)return r;for(let t=e;t=t.parentElement;)if(n=getComputedStyle(t),(!s||"static"!==n.position)&&o.test(n.overflow+n.overflowY+n.overflowX))return t;return r}},statePlugins:{layout:{actions:{scrollToElement:(e,t)=>r=>{try{t=t||r.fn.getScrollParent(e),or().createScroller(t).to(e)}catch(e){console.error(e)}},scrollTo:e=>({type:PP,payload:Array.isArray(e)?e:[e]}),clearScrollTo:()=>({type:MP}),readyToScroll:(e,t)=>r=>{const n=r.layoutSelectors.getScrollToKey();x().is(n,(0,w.fromJS)(e))&&(r.layoutActions.scrollToElement(t),r.layoutActions.clearScrollTo())},parseDeepLinkHash:e=>({layoutActions:t,layoutSelectors:r,getConfigs:n})=>{if(n().deepLinking&&e){let n=e.slice(1);"!"===n[0]&&(n=n.slice(1)),"/"===n[0]&&(n=n.slice(1));const s=n.split("/").map((e=>e||"")),o=r.isShownKeyFromUrlHashArray(s),[i,a="",c=""]=o;if("operations"===i){const e=r.isShownKeyFromUrlHashArray([a]);a.indexOf("_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),t.show(e.map((e=>e.replace(/_/g," "))),!0)),t.show(e,!0)}(a.indexOf("_")>-1||c.indexOf("_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),t.show(o.map((e=>e.replace(/_/g," "))),!0)),t.show(o,!0),t.scrollTo(o)}}},selectors:{getScrollToKey:e=>e.get("scrollToKey"),isShownKeyFromUrlHashArray(e,t){const[r,n]=t;return n?["operations",r,n]:r?["operations-tag",r]:[]},urlHashArrayFromIsShownKey(e,t){let[r,n,s]=t;return"operations"==r?[n,s]:"operations-tag"==r?[n]:[]}},reducers:{[PP]:(e,t)=>e.set("scrollToKey",x().fromJS(t.payload)),[MP]:e=>e.delete("scrollToKey")},wrapActions:{show:(e,{getConfigs:t,layoutSelectors:r})=>(...n)=>{if(e(...n),t().deepLinking)try{let[e,t]=n;e=Array.isArray(e)?e:[e];const s=r.urlHashArrayFromIsShownKey(e);if(!s.length)return;const[o,i]=s;if(!t)return IP("/");2===s.length?IP(mI(`/${encodeURIComponent(o)}/${encodeURIComponent(i)}`)):1===s.length&&IP(mI(`/${encodeURIComponent(o)}`))}catch(e){console.error(e)}}}}}},DP=(e,t)=>class extends f.Component{onLoad=e=>{const{operation:r}=this.props,{tag:n,operationId:s}=r.toObject();let{isShownKey:o}=r.toObject();o=o||["operations",n,s],t.layoutActions.readyToScroll(o,e)};render(){return f.createElement("span",{ref:this.onLoad},f.createElement(e,this.props))}},$P=(e,t)=>class extends f.Component{onLoad=e=>{const{tag:r}=this.props,n=["operations-tag",r];t.layoutActions.readyToScroll(n,e)};render(){return f.createElement("span",{ref:this.onLoad},f.createElement(e,this.props))}};function FP(){return[RP,{statePlugins:{configs:{wrapActions:{loaded:(e,t)=>(...r)=>{e(...r);const n=decodeURIComponent(window.location.hash);t.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:DP,OperationTag:$P}}]}function BP(e){return e.map((e=>{let t=e.get("message").indexOf("is not of a type(s)");if(t>-1){let r=e.get("message").slice(t+19).split(",");return e.set("message",e.get("message").slice(0,t)+function(e){return e.reduce(((e,t,r,n)=>r===n.length-1&&n.length>1?e+"or "+t:n[r+1]&&n.length>2?e+t+", ":n[r+1]?e+t+" ":e+t),"should be a")}(r))}return e}))}function LP(e,{jsSpec:t}){return e}const qP=[cN,lN];function UP(e){let t={jsSpec:{}},r=lr()(qP,((e,r)=>{try{return r.transform(e,t).filter((e=>!!e))}catch(t){return console.error("Transformer error:",t),e}}),e);return r.filter((e=>!!e)).map((e=>(!e.get("line")&&e.get("path"),e)))}let zP={line:0,level:"error",message:"Unknown error"};const JP=(0,q.Mz)((e=>e),(e=>e.get("errors",(0,w.List)()))),VP=(0,q.Mz)(JP,(e=>e.last()));function WP(e){return{statePlugins:{err:{reducers:{[CN]:(e,{payload:t})=>{let r=Object.assign(zP,t,{type:"thrown"});return e.update("errors",(e=>(e||(0,w.List)()).push((0,w.fromJS)(r)))).update("errors",(e=>UP(e)))},[jN]:(e,{payload:t})=>(t=t.map((e=>(0,w.fromJS)(Object.assign(zP,e,{type:"thrown"})))),e.update("errors",(e=>(e||(0,w.List)()).concat((0,w.fromJS)(t)))).update("errors",(e=>UP(e)))),[kN]:(e,{payload:t})=>{let r=(0,w.fromJS)(t);return r=r.set("type","spec"),e.update("errors",(e=>(e||(0,w.List)()).push((0,w.fromJS)(r)).sortBy((e=>e.get("line"))))).update("errors",(e=>UP(e)))},[TN]:(e,{payload:t})=>(t=t.map((e=>(0,w.fromJS)(Object.assign(zP,e,{type:"spec"})))),e.update("errors",(e=>(e||(0,w.List)()).concat((0,w.fromJS)(t)))).update("errors",(e=>UP(e)))),[NN]:(e,{payload:t})=>{let r=(0,w.fromJS)(Object.assign({},t));return r=r.set("type","auth"),e.update("errors",(e=>(e||(0,w.List)()).push((0,w.fromJS)(r)))).update("errors",(e=>UP(e)))},[IN]:(e,{payload:t})=>{if(!t||!e.get("errors"))return e;let r=e.get("errors").filter((e=>e.keySeq().every((r=>{const n=e.get(r),s=t[r];return!s||n!==s}))));return e.merge({errors:r})},[PN]:(e,{payload:t})=>{if(!t||"function"!=typeof t)return e;let r=e.get("errors").filter((e=>t(e)));return e.merge({errors:r})}},actions:nN,selectors:uN}}}}function KP(e,t){return e.filter(((e,r)=>-1!==r.indexOf(t)))}function HP(){return{fn:{opsFilter:KP}}}var GP=({className:e=null,width:t=20,height:r=20,...n})=>f.createElement("svg",fr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),f.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),YP=({className:e=null,width:t=20,height:r=20,...n})=>f.createElement("svg",fr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),f.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),XP=({className:e=null,width:t=20,height:r=20,...n})=>f.createElement("svg",fr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),f.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),ZP=({className:e=null,width:t=20,height:r=20,...n})=>f.createElement("svg",fr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),f.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),QP=({className:e=null,width:t=15,height:r=16,...n})=>f.createElement("svg",fr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),f.createElement("g",{transform:"translate(2, -1)"},f.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))),eM=({className:e=null,width:t=20,height:r=20,...n})=>f.createElement("svg",fr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),f.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),tM=({className:e=null,width:t=20,height:r=20,...n})=>f.createElement("svg",fr({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),f.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),rM=()=>({components:{ArrowUpIcon:GP,ArrowDownIcon:YP,ArrowIcon:XP,CloseIcon:ZP,CopyIcon:QP,LockIcon:eM,UnlockIcon:tM}});const nM="layout_update_layout",sM="layout_update_filter",oM="layout_update_mode",iM="layout_show";function aM(e){return{type:nM,payload:e}}function cM(e){return{type:sM,payload:e}}function lM(e,t=!0){return e=eI(e),{type:iM,payload:{thing:e,shown:t}}}function uM(e,t=""){return e=eI(e),{type:oM,payload:{thing:e,mode:t}}}var pM={[nM]:(e,t)=>e.set("layout",t.payload),[sM]:(e,t)=>e.set("filter",t.payload),[iM]:(e,t)=>{const r=t.payload.shown,n=(0,w.fromJS)(t.payload.thing);return e.update("shown",(0,w.fromJS)({}),(e=>e.set(n,r)))},[oM]:(e,t)=>{let r=t.payload.thing,n=t.payload.mode;return e.setIn(["modes"].concat(r),(n||"")+"")}};const hM=e=>e.get("layout"),dM=e=>e.get("filter"),fM=(e,t,r)=>(t=eI(t),e.get("shown",(0,w.fromJS)({})).get((0,w.fromJS)(t),r)),mM=(e,t,r="")=>(t=eI(t),e.getIn(["modes",...t],r)),gM=(0,q.Mz)((e=>e),(e=>!fM(e,"editor"))),yM=(e,t)=>(r,...n)=>{let s=e(r,...n);const{fn:o,layoutSelectors:i,getConfigs:a}=t.getSystem(),c=a(),{maxDisplayedTags:l}=c;let u=i.currentFilter();return u&&!0!==u&&(s=o.opsFilter(s,u)),l>=0&&(s=s.slice(0,l)),s};function vM(){return{statePlugins:{layout:{reducers:pM,actions:pN,selectors:hN},spec:{wrapSelectors:dN}}}}function bM({configs:e}){const t={debug:0,info:1,log:2,warn:3,error:4},r=e=>t[e]||-1;let{logLevel:n}=e,s=r(n);function o(e,...t){r(e)>=s&&console[e](...t)}return o.warn=o.bind(null,"warn"),o.error=o.bind(null,"error"),o.info=o.bind(null,"info"),o.debug=o.bind(null,"debug"),{rootInjects:{log:o}}}let EM=!1;function wM(){return{statePlugins:{spec:{wrapActions:{updateSpec:e=>(...t)=>(EM=!0,e(...t)),updateJsonSpec:(e,t)=>(...r)=>{const n=t.getConfigs().onComplete;return EM&&"function"==typeof n&&(setTimeout(n,0),EM=!1),e(...r)}}}}}}const xM=e=>{const t="_**[]";return e.indexOf(t)<0?e:e.split(t)[0].trim()},SM=e=>"-d "===e||/^[_\/-]/g.test(e)?e:"'"+e.replace(/'/g,"'\\''")+"'",_M=e=>"-d "===(e=e.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,"^\n"))?e.replace(/-d /g,"-d ^\n"):/^[_\/-]/g.test(e)?e:'"'+e+'"',AM=e=>"-d "===e?e:/\n/.test(e)?`@"\n${e.replace(/`/g,"``").replace(/\$/g,"`$")}\n"@`:/^[_\/-]/.test(e)?e:`'${e.replace(/'/g,"''")}'`,OM=(e,t,r,n="")=>{let s=!1,o="";const i=(...e)=>o+=" "+e.map(t).join(" "),a=(...e)=>o+=e.map(t).join(" "),c=()=>o+=` ${r}`,l=(e=1)=>o+=" ".repeat(e);let u=e.get("headers");o+="curl"+n;const p=e.get("curlOptions");if(w.List.isList(p)&&!p.isEmpty()&&i(...e.get("curlOptions")),i("-X",e.get("method")),c(),l(),a(`${e.get("url")}`),u&&u.size)for(let t of e.get("headers").entries()){c(),l();let[e,r]=t;a("-H",`${e}: ${r}`),s=s||/^content-type$/i.test(e)&&/^multipart\/form-data$/i.test(r)}const h=e.get("body");if(h)if(s&&["POST","PUT","PATCH"].includes(e.get("method")))for(let[e,t]of h.entrySeq()){let r=xM(e);c(),l(),a("-F"),t instanceof qN.File&&"string"==typeof t.valueOf()?i(`${r}=${t.data}${t.type?`;type=${t.type}`:""}`):t instanceof qN.File?i(`${r}=@${t.name}${t.type?`;type=${t.type}`:""}`):i(`${r}=${t}`)}else if(h instanceof qN.File)c(),l(),a(`--data-binary '@${h.name}'`);else{c(),l(),a("-d ");let t=h;w.Map.isMap(t)?a(function(e){let t=[];for(let[r,n]of e.get("body").entrySeq()){let e=xM(r);n instanceof qN.File?t.push(` "${e}": {\n "name": "${n.name}"${n.type?`,\n "type": "${n.type}"`:""}\n }`):t.push(` "${e}": ${JSON.stringify(n,null,2).replace(/(\r\n|\r|\n)/g,"\n ")}`)}return`{\n${t.join(",\n")}\n}`}(e)):("string"!=typeof t&&(t=JSON.stringify(t)),a(t))}else h||"POST"!==e.get("method")||(c(),l(),a("-d ''"));return o},CM=e=>OM(e,AM,"`\n",".exe"),jM=e=>OM(e,SM,"\\\n"),kM=e=>OM(e,_M,"^\n"),TM=e=>e||(0,w.Map)(),NM=(0,q.Mz)(TM,(e=>{const t=e.get("languages"),r=e.get("generators",(0,w.Map)());return!t||t.isEmpty()?r:r.filter(((e,r)=>t.includes(r)))})),IM=e=>({fn:t})=>NM(e).map(((e,r)=>{const n=(e=>t[`requestSnippetGenerator_${e}`])(r);return"function"!=typeof n?null:e.set("fn",n)})).filter((e=>e)),PM=(0,q.Mz)(TM,(e=>e.get("activeLanguage"))),MM=(0,q.Mz)(TM,(e=>e.get("defaultExpanded"))),RM={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(250, 250, 250)",paddingBottom:"0",paddingTop:"0",border:"1px solid rgb(51, 51, 51)",borderRadius:"4px 4px 0 0",boxShadow:"none",borderBottom:"none"},DM={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(51, 51, 51)",boxShadow:"none",border:"1px solid rgb(51, 51, 51)",paddingBottom:"0",paddingTop:"0",borderRadius:"4px 4px 0 0",marginTop:"-5px",marginRight:"-5px",marginLeft:"-5px",zIndex:"9999",borderBottom:"none"};var $M=({request:e,requestSnippetsSelectors:t,getComponent:r})=>{const n=(0,f.useRef)(null),s=r("ArrowUpIcon"),o=r("ArrowDownIcon"),i=r("SyntaxHighlighter",!0),[a,c]=(0,f.useState)(t.getSnippetGenerators()?.keySeq().first()),[l,u]=(0,f.useState)(t?.getDefaultExpanded()),p=t.getSnippetGenerators(),h=p.get(a),d=h.get("fn")(e),m=()=>{u(!l)},g=e=>e===a?DM:RM,y=e=>{const{target:t,deltaY:r}=e,{scrollHeight:n,offsetHeight:s,scrollTop:o}=t;n>s&&(0===o&&r<0||s+o>=n&&r>0)&&e.preventDefault()};return(0,f.useEffect)((()=>{}),[]),(0,f.useEffect)((()=>{const e=Array.from(n.current.childNodes).filter((e=>!!e.nodeType&&e.classList?.contains("curl-command")));return e.forEach((e=>e.addEventListener("mousewheel",y,{passive:!1}))),()=>{e.forEach((e=>e.removeEventListener("mousewheel",y)))}}),[e]),f.createElement("div",{className:"request-snippets",ref:n},f.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},f.createElement("h4",{onClick:()=>m(),style:{cursor:"pointer"}},"Snippets"),f.createElement("button",{onClick:()=>m(),style:{border:"none",background:"none"},title:l?"Collapse operation":"Expand operation"},l?f.createElement(o,{className:"arrow",width:"10",height:"10"}):f.createElement(s,{className:"arrow",width:"10",height:"10"}))),l&&f.createElement("div",{className:"curl-command"},f.createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},p.entrySeq().map((([e,t])=>f.createElement("div",{className:gr()("btn",{active:e===a}),style:g(e),key:e,onClick:()=>(e=>{a!==e&&c(e)})(e)},f.createElement("h4",{style:e===a?{color:"white"}:{}},t.get("title")))))),f.createElement("div",{className:"copy-to-clipboard"},f.createElement(yr.CopyToClipboard,{text:d},f.createElement("button",null))),f.createElement("div",null,f.createElement(i,{language:h.get("syntax"),className:"curl microlight",renderPlainText:({children:e,PlainTextViewer:t})=>f.createElement(t,{className:"curl"},e)},d))))},FM=()=>({components:{RequestSnippets:$M},fn:{requestSnippetGenerator_curl_bash:jM,requestSnippetGenerator_curl_cmd:kM,requestSnippetGenerator_curl_powershell:CM},statePlugins:{requestSnippets:{selectors:fN}}});class BM extends f.Component{static defaultProps={collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:x().List([])};constructor(e,t){super(e,t);let{expanded:r,collapsedContent:n}=this.props;this.state={expanded:r,collapsedContent:n||BM.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:e,expanded:t,modelName:r}=this.props;e&&t&&this.props.onToggle(r,t)}UNSAFE_componentWillReceiveProps(e){this.props.expanded!==e.expanded&&this.setState({expanded:e.expanded})}toggleCollapsed=()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})};onLoad=e=>{if(e&&this.props.layoutSelectors){const t=this.props.layoutSelectors.getScrollToKey();x().is(t,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,e.parentElement)}};render(){const{title:e,classes:t}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?f.createElement("span",{className:t||""},this.props.children):f.createElement("span",{className:t||"",ref:this.onLoad},f.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},e&&f.createElement("span",{className:"pointer"},e),f.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&f.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}}var LM,qM=({schema:e,example:t,isExecute:r=!1,specPath:n,includeWriteOnly:s=!1,includeReadOnly:o=!1,getComponent:i,getConfigs:a,specSelectors:c})=>{const{defaultModelRendering:l,defaultModelExpandDepth:u}=a(),p=i("ModelWrapper"),h=i("HighlightCode",!0),d=zN()(5).toString("base64"),m=zN()(5).toString("base64"),g=zN()(5).toString("base64"),y=zN()(5).toString("base64"),v=c.isOAS3(),{activeTab:b,tabs:E,onTabChange:w}=(({initialTab:e,isExecute:t,schema:r,example:n})=>{const s=(0,f.useMemo)((()=>({example:"example",model:"model"})),[]),o=(0,f.useMemo)((()=>Object.keys(s)),[s]).includes(e)&&r&&!t?e:s.example,i=(e=>{const t=(0,f.useRef)();return(0,f.useEffect)((()=>{t.current=e})),t.current})(t),[a,c]=(0,f.useState)(o),l=(0,f.useCallback)((e=>{c(e.target.dataset.name)}),[]);return(0,f.useEffect)((()=>{i&&!t&&n&&c(s.example)}),[i,t,n]),{activeTab:a,onTabChange:l,tabs:s}})({initialTab:l,isExecute:r,schema:e,example:t});return f.createElement("div",{className:"model-example"},f.createElement("ul",{className:"tab",role:"tablist"},f.createElement("li",{className:gr()("tabitem",{active:b===E.example}),role:"presentation"},f.createElement("button",{"aria-controls":m,"aria-selected":b===E.example,className:"tablinks","data-name":"example",id:d,onClick:w,role:"tab"},r?"Edit Value":"Example Value")),e&&f.createElement("li",{className:gr()("tabitem",{active:b===E.model}),role:"presentation"},f.createElement("button",{"aria-controls":y,"aria-selected":b===E.model,className:gr()("tablinks",{inactive:r}),"data-name":"model",id:g,onClick:w,role:"tab"},v?"Schema":"Model"))),b===E.example&&f.createElement("div",{"aria-hidden":b!==E.example,"aria-labelledby":d,"data-name":"examplePanel",id:m,role:"tabpanel",tabIndex:"0"},t||f.createElement(h,null,"(no example available")),b===E.model&&f.createElement("div",{className:"model-container","aria-hidden":b===E.example,"aria-labelledby":g,"data-name":"modelPanel",id:y,role:"tabpanel",tabIndex:"0"},f.createElement(p,{schema:e,getComponent:i,getConfigs:a,specSelectors:c,expandDepth:u,specPath:n,includeReadOnly:o,includeWriteOnly:s})))};class UM extends f.Component{onToggle=(e,t)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,t)};render(){let{getComponent:e,getConfigs:t}=this.props;const r=e("Model");let n;return this.props.layoutSelectors&&(n=this.props.layoutSelectors.isShown(this.props.fullPath)),f.createElement("div",{className:"model-box"},f.createElement(r,fr({},this.props,{getConfigs:t,expanded:n,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}function zM(){return zM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zM.apply(null,arguments)}var JM=e=>(0,f.createElement)("svg",zM({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"rolling-load_svg__lds-rolling",preserveAspectRatio:"xMidYMid",style:{backgroundImage:"none",backgroundPosition:"initial initial",backgroundRepeat:"initial initial"},viewBox:"0 0 100 100"},e),LM||(LM=(0,f.createElement)("circle",{cx:50,cy:50,r:35,fill:"none",stroke:"#555",strokeDasharray:"164.93361431346415 56.97787143782138",strokeWidth:10},(0,f.createElement)("animateTransform",{attributeName:"transform",begin:"0s",calcMode:"linear",dur:"1s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"}))));const VM=e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}};class WM extends kr{static propTypes={schema:ar().map.isRequired,getComponent:z().func.isRequired,getConfigs:z().func.isRequired,specSelectors:z().object.isRequired,name:z().string,displayName:z().string,isRef:z().bool,required:z().bool,expandDepth:z().number,depth:z().number,specPath:ar().list.isRequired,includeReadOnly:z().bool,includeWriteOnly:z().bool};getModelName=e=>-1!==e.indexOf("#/definitions/")?VM(e.replace(/^.*#\/definitions\//,"")):-1!==e.indexOf("#/components/schemas/")?VM(e.replace(/^.*#\/components\/schemas\//,"")):void 0;getRefSchema=e=>{let{specSelectors:t}=this.props;return t.findDefinition(e)};render(){let{getComponent:e,getConfigs:t,specSelectors:r,schema:n,required:s,name:o,isRef:i,specPath:a,displayName:c,includeReadOnly:l,includeWriteOnly:u}=this.props;const p=e("ObjectModel"),h=e("ArrayModel"),d=e("PrimitiveModel");let m="object",g=n&&n.get("$$ref"),y=n&&n.get("$ref");if(!o&&g&&(o=this.getModelName(g)),y){const e=this.getModelName(y),t=this.getRefSchema(e);w.Map.isMap(t)?(n=t.mergeDeep(n),g||(n=n.set("$$ref",y),g=y)):w.Map.isMap(n)&&1===n.size&&(n=null,o=y)}if(!n)return f.createElement("span",{className:"model model-title"},f.createElement("span",{className:"model-title__text"},c||o),!y&&f.createElement(JM,{height:"20px",width:"20px"}));const v=r.isOAS3()&&n.get("deprecated");switch(i=void 0!==i?i:!!g,m=n&&n.get("type")||m,m){case"object":return f.createElement(p,fr({className:"object"},this.props,{specPath:a,getConfigs:t,schema:n,name:o,deprecated:v,isRef:i,includeReadOnly:l,includeWriteOnly:u}));case"array":return f.createElement(h,fr({className:"array"},this.props,{getConfigs:t,schema:n,name:o,deprecated:v,required:s,includeReadOnly:l,includeWriteOnly:u}));default:return f.createElement(d,fr({},this.props,{getComponent:e,getConfigs:t,schema:n,name:o,deprecated:v,required:s}))}}}class KM extends f.Component{getSchemaBasePath=()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"];getCollapsedContent=()=>" ";handleToggle=(e,t)=>{const{layoutActions:r}=this.props;r.show([...this.getSchemaBasePath(),e],t),t&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),e])};onLoadModels=e=>{e&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),e)};onLoadModel=e=>{if(e){const t=e.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),t],e)}};render(){let{specSelectors:e,getComponent:t,layoutSelectors:r,layoutActions:n,getConfigs:s}=this.props,o=e.definitions(),{docExpansion:i,defaultModelsExpandDepth:a}=s();if(!o.size||a<0)return null;const c=this.getSchemaBasePath();let l=r.isShown(c,a>0&&"none"!==i);const u=e.isOAS3(),p=t("ModelWrapper"),h=t("Collapse"),d=t("ModelCollapse"),m=t("JumpToPath",!0),g=t("ArrowUpIcon"),y=t("ArrowDownIcon");return f.createElement("section",{className:l?"models is-open":"models",ref:this.onLoadModels},f.createElement("h4",null,f.createElement("button",{"aria-expanded":l,className:"models-control",onClick:()=>n.show(c,!l)},f.createElement("span",null,u?"Schemas":"Models"),l?f.createElement(g,null):f.createElement(y,null))),f.createElement(h,{isOpened:l},o.entrySeq().map((([o])=>{const i=[...c,o],l=x().List(i),u=e.specResolvedSubtree(i),h=e.specJson().getIn(i),g=w.Map.isMap(u)?u:x().Map(),y=w.Map.isMap(h)?h:x().Map(),v=g.get("title")||y.get("title")||o,b=r.isShown(i,!1);b&&0===g.size&&y.size>0&&this.props.specActions.requestResolvedSubtree(i);const E=f.createElement(p,{name:o,expandDepth:a,schema:g||x().Map(),displayName:v,fullPath:i,specPath:l,getComponent:t,specSelectors:e,getConfigs:s,layoutSelectors:r,layoutActions:n,includeReadOnly:!0,includeWriteOnly:!0}),S=f.createElement("span",{className:"model-box"},f.createElement("span",{className:"model model-title"},v));return f.createElement("div",{id:`model-${o}`,className:"model-container",key:`models-section-${o}`,"data-name":o,ref:this.onLoadModel},f.createElement("span",{className:"models-jump-to-path"},f.createElement(m,{path:l})),f.createElement(d,{classes:"model-box",collapsedContent:this.getCollapsedContent(o),onToggle:this.handleToggle,title:S,displayName:v,modelName:o,specPath:l,layoutSelectors:r,layoutActions:n,hideSelfOnExpand:!0,expanded:a>0&&b},E))})).toArray()))}}var HM=({value:e,getComponent:t})=>{let r=t("ModelCollapse"),n=f.createElement("span",null,"Array [ ",e.count()," ]");return f.createElement("span",{className:"prop-enum"},"Enum:",f.createElement("br",null),f.createElement(r,{collapsedContent:n},"[ ",e.map(String).join(", ")," ]"))};function GM(e){return e.match(/^(?:[a-z]+:)?\/\//i)}function YM(e,t,{selectedServer:r=""}={}){try{return function(e,t,{selectedServer:r=""}={}){if(!e)return;if(GM(e))return e;const n=function(e,t){return e?GM(e)?function(e){return e.match(/^\/\//i)?`${window.location.protocol}${e}`:e}(e):new URL(e,t).href:t}(r,t);return GM(n)?new URL(e,n).href:new URL(e,window.location.href).href}(e,t,{selectedServer:r})}catch{return}}function XM(e){if("string"!=typeof e||""===e.trim())return"";const t=e.trim(),r="about:blank";try{const e=`https://base${String(Math.random()).slice(2)}`,n=new URL(t,e),s=n.protocol.slice(0,-1);return["javascript","data","vbscript"].includes(s.toLowerCase())?r:n.origin===e?t.startsWith("/")?`${n.pathname}${n.search}${n.hash}`:t.startsWith("./")||t.startsWith("../")?`${t.match(/^(\.\.?\/)+/)[0]}${n.pathname.substring(1)}${n.search}${n.hash}`:`${n.pathname.substring(1)}${n.search}${n.hash}`:String(n)}catch{return r}}class ZM extends f.Component{render(){let{schema:e,name:t,displayName:r,isRef:n,getComponent:s,getConfigs:o,depth:i,onToggle:a,expanded:c,specPath:l,...u}=this.props,{specSelectors:p,expandDepth:h,includeReadOnly:d,includeWriteOnly:m}=u;const{isOAS3:g}=p,y=i>2||2===i&&"items"!==l.last();if(!e)return null;const{showExtensions:v}=o(),b=v?vI(e):(0,w.List)();let E=e.get("description"),x=e.get("properties"),S=e.get("additionalProperties"),_=e.get("title")||r||t,A=e.get("required"),O=e.filter(((e,t)=>-1!==["maxProperties","minProperties","nullable","example"].indexOf(t))),C=e.get("deprecated"),j=e.getIn(["externalDocs","url"]),k=e.getIn(["externalDocs","description"]);const T=s("JumpToPath",!0),N=s("Markdown",!0),I=s("Model"),P=s("ModelCollapse"),M=s("Property"),R=s("Link"),D=s("ModelExtensions"),$=()=>f.createElement("span",{className:"model-jump-to-path"},f.createElement(T,{path:l})),F=f.createElement("span",null,f.createElement("span",null,"{"),"...",f.createElement("span",null,"}"),n?f.createElement($,null):""),B=p.isOAS3()?e.get("allOf"):null,L=p.isOAS3()?e.get("anyOf"):null,q=p.isOAS3()?e.get("oneOf"):null,U=p.isOAS3()?e.get("not"):null,z=_&&f.createElement("span",{className:"model-title"},n&&e.get("$$ref")&&f.createElement("span",{className:gr()("model-hint",{"model-hint--embedded":y})},e.get("$$ref")),f.createElement("span",{className:"model-title__text"},_));return f.createElement("span",{className:"model"},f.createElement(P,{modelName:t,title:z,onToggle:a,expanded:!!c||i<=h,collapsedContent:F},f.createElement("span",{className:"brace-open object"},"{"),n?f.createElement($,null):null,f.createElement("span",{className:"inner-object"},f.createElement("table",{className:"model"},f.createElement("tbody",null,E?f.createElement("tr",{className:"description"},f.createElement("td",null,"description:"),f.createElement("td",null,f.createElement(N,{source:E}))):null,j&&f.createElement("tr",{className:"external-docs"},f.createElement("td",null,"externalDocs:"),f.createElement("td",null,f.createElement(R,{target:"_blank",href:XM(j)},k||j))),C?f.createElement("tr",{className:"property"},f.createElement("td",null,"deprecated:"),f.createElement("td",null,"true")):null,x&&x.size?x.entrySeq().filter((([,e])=>(!e.get("readOnly")||d)&&(!e.get("writeOnly")||m))).map((([e,r])=>{let n=g()&&r.get("deprecated"),a=w.List.isList(A)&&A.contains(e),c=["property-row"];return n&&c.push("deprecated"),a&&c.push("required"),f.createElement("tr",{key:e,className:c.join(" ")},f.createElement("td",null,e,a&&f.createElement("span",{className:"star"},"*")),f.createElement("td",null,f.createElement(I,fr({key:`object-${t}-${e}_${r}`},u,{required:a,getComponent:s,specPath:l.push("properties",e),getConfigs:o,schema:r,depth:i+1}))))})).toArray():null,0===b.size?null:f.createElement(f.Fragment,null,f.createElement("tr",null,f.createElement("td",null," ")),f.createElement(D,{extensions:b,propClass:"extension"})),S&&S.size?f.createElement("tr",null,f.createElement("td",null,"< * >:"),f.createElement("td",null,f.createElement(I,fr({},u,{required:!1,getComponent:s,specPath:l.push("additionalProperties"),getConfigs:o,schema:S,depth:i+1})))):null,B?f.createElement("tr",null,f.createElement("td",null,"allOf ->"),f.createElement("td",null,B.map(((e,t)=>f.createElement("div",{key:t},f.createElement(I,fr({},u,{required:!1,getComponent:s,specPath:l.push("allOf",t),getConfigs:o,schema:e,depth:i+1}))))))):null,L?f.createElement("tr",null,f.createElement("td",null,"anyOf ->"),f.createElement("td",null,L.map(((e,t)=>f.createElement("div",{key:t},f.createElement(I,fr({},u,{required:!1,getComponent:s,specPath:l.push("anyOf",t),getConfigs:o,schema:e,depth:i+1}))))))):null,q?f.createElement("tr",null,f.createElement("td",null,"oneOf ->"),f.createElement("td",null,q.map(((e,t)=>f.createElement("div",{key:t},f.createElement(I,fr({},u,{required:!1,getComponent:s,specPath:l.push("oneOf",t),getConfigs:o,schema:e,depth:i+1}))))))):null,U?f.createElement("tr",null,f.createElement("td",null,"not ->"),f.createElement("td",null,f.createElement("div",null,f.createElement(I,fr({},u,{required:!1,getComponent:s,specPath:l.push("not"),getConfigs:o,schema:U,depth:i+1}))))):null))),f.createElement("span",{className:"brace-close"},"}")),O.size?O.entrySeq().map((([e,t])=>f.createElement(M,{key:`${e}-${t}`,propKey:e,propVal:t,propClass:"property"}))):null)}}class QM extends f.Component{render(){let{getComponent:e,getConfigs:t,schema:r,depth:n,expandDepth:s,name:o,displayName:i,specPath:a}=this.props,c=r.get("description"),l=r.get("items"),u=r.get("title")||i||o,p=r.filter(((e,t)=>-1===["type","items","description","$$ref","externalDocs"].indexOf(t))),h=r.getIn(["externalDocs","url"]),d=r.getIn(["externalDocs","description"]);const m=e("Markdown",!0),g=e("ModelCollapse"),y=e("Model"),v=e("Property"),b=e("Link"),E=u&&f.createElement("span",{className:"model-title"},f.createElement("span",{className:"model-title__text"},u));return f.createElement("span",{className:"model"},f.createElement(g,{title:E,expanded:n<=s,collapsedContent:"[...]"},"[",p.size?p.entrySeq().map((([e,t])=>f.createElement(v,{key:`${e}-${t}`,propKey:e,propVal:t,propClass:"property"}))):null,c?f.createElement(m,{source:c}):p.size?f.createElement("div",{className:"markdown"}):null,h&&f.createElement("div",{className:"external-docs"},f.createElement(b,{target:"_blank",href:XM(h)},d||h)),f.createElement("span",null,f.createElement(y,fr({},this.props,{getConfigs:t,specPath:a.push("items"),name:null,schema:l,required:!1,depth:n+1}))),"]"))}}const eR="property primitive";class tR extends f.Component{render(){let{schema:e,getComponent:t,getConfigs:r,name:n,displayName:s,depth:o,expandDepth:i}=this.props;const{showExtensions:a}=r();if(!e||!e.get)return f.createElement("div",null);let c=e.get("type"),l=e.get("format"),u=e.get("xml"),p=e.get("enum"),h=e.get("title")||s||n,d=e.get("description");const m=vI(e);let g=e.filter(((e,t)=>-1===["enum","type","format","description","$$ref","externalDocs"].indexOf(t))).filterNot(((e,t)=>m.has(t))),y=e.getIn(["externalDocs","url"]),v=e.getIn(["externalDocs","description"]);const b=t("Markdown",!0),E=t("EnumModel"),w=t("Property"),x=t("ModelCollapse"),S=t("Link"),_=t("ModelExtensions"),A=h&&f.createElement("span",{className:"model-title"},f.createElement("span",{className:"model-title__text"},h));return f.createElement("span",{className:"model"},f.createElement(x,{title:A,expanded:o<=i,collapsedContent:"[...]"},f.createElement("span",{className:"prop"},n&&o>1&&f.createElement("span",{className:"prop-name"},h),f.createElement("span",{className:"prop-type"},c),l&&f.createElement("span",{className:"prop-format"},"($",l,")"),g.size?g.entrySeq().map((([e,t])=>f.createElement(w,{key:`${e}-${t}`,propKey:e,propVal:t,propClass:eR}))):null,a&&m.size>0?f.createElement(_,{extensions:m,propClass:`${eR} extension`}):null,d?f.createElement(b,{source:d}):null,y&&f.createElement("div",{className:"external-docs"},f.createElement(S,{target:"_blank",href:XM(y)},v||y)),u&&u.size?f.createElement("span",null,f.createElement("br",null),f.createElement("span",{className:eR},"xml:"),u.entrySeq().map((([e,t])=>f.createElement("span",{key:`${e}-${t}`,className:eR},f.createElement("br",null)," ",e,": ",String(t)))).toArray()):null,p&&f.createElement(E,{value:p,getComponent:t}))))}}class rR extends f.Component{UNSAFE_componentWillMount(){let{schemes:e}=this.props;this.setScheme(e.first())}UNSAFE_componentWillReceiveProps(e){this.props.currentScheme&&e.schemes.includes(this.props.currentScheme)||this.setScheme(e.schemes.first())}onChange=e=>{this.setScheme(e.target.value)};setScheme=e=>{let{path:t,method:r,specActions:n}=this.props;n.setScheme(e,t,r)};render(){let{schemes:e,currentScheme:t}=this.props;return f.createElement("label",{htmlFor:"schemes"},f.createElement("span",{className:"schemes-title"},"Schemes"),f.createElement("select",{onChange:this.onChange,value:t,id:"schemes"},e.valueSeq().map((e=>f.createElement("option",{value:e,key:e},e))).toArray()))}}class nR extends f.Component{render(){const{specActions:e,specSelectors:t,getComponent:r}=this.props,n=t.operationScheme(),s=t.schemes(),o=r("schemes");return s&&s.size?f.createElement(o,{currentScheme:n,schemes:s,specActions:e}):null}}const sR={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,w.List)()};class oR extends f.Component{static defaultProps=sR;componentDidMount(){const{dispatchInitialValue:e,value:t,onChange:r}=this.props;e?r(t):!1===e&&r("")}render(){let{schema:e,errors:t,value:r,onChange:n,getComponent:s,fn:o,disabled:i}=this.props;const a=e&&e.get?e.get("format"):null,c=e&&e.get?e.get("type"):null,l=o.getSchemaObjectType(e),u=o.isFileUploadIntended(e);let p=c?(e=>s(e,!1,{failSilently:!0}))(a?`JsonSchema_${c}_${a}`:`JsonSchema_${c}`):s("JsonSchema_string");return u||!w.List.isList(c)||"array"!==l&&"object"!==l||(p=s("JsonSchema_object")),p||(p=s("JsonSchema_string")),f.createElement(p,fr({},this.props,{errors:t,fn:o,getComponent:s,value:r,onChange:n,schema:e,disabled:i}))}}class iR extends f.Component{static defaultProps=sR;onChange=e=>{const t=this.props.schema&&"file"===this.props.schema.get("type")?e.target.files[0]:e.target.value;this.props.onChange(t,this.props.keyName)};onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:t,schema:r,errors:n,required:s,description:o,disabled:i}=this.props;const a=r&&r.get?r.get("enum"):null,c=r&&r.get?r.get("format"):null,l=r&&r.get?r.get("type"):null,u=r&&r.get?r.get("in"):null;if(t?(YN(t)||"object"==typeof t)&&(t=wI(t)):t="",n=n.toJS?n.toJS():[],a){const r=e("Select");return f.createElement(r,{className:n.length?"invalid":"",title:n.length?n:"",allowedValues:[...a],value:t,allowEmptyValue:!s,disabled:i,onChange:this.onEnumChange})}const p=i||u&&"formData"===u&&!("FormData"in window),h=e("Input");return l&&"file"===l?f.createElement(h,{type:"file",className:n.length?"invalid":"",title:n.length?n:"",onChange:this.onChange,disabled:p}):f.createElement(Ir(),{type:c&&"password"===c?"password":"text",className:n.length?"invalid":"",title:n.length?n:"",value:t,minLength:0,debounceTimeout:350,placeholder:o,onChange:this.onChange,disabled:p})}}class aR extends f.PureComponent{static defaultProps=sR;constructor(e,t){super(e,t),this.state={value:dR(e.value),schema:e.schema}}UNSAFE_componentWillReceiveProps(e){const t=dR(e.value);t!==this.state.value&&this.setState({value:t}),e.schema!==this.state.schema&&this.setState({schema:e.schema})}onChange=()=>{this.props.onChange(this.state.value)};onItemChange=(e,t)=>{this.setState((({value:r})=>({value:r.set(t,e)})),this.onChange)};removeItem=e=>{this.setState((({value:t})=>({value:t.delete(e)})),this.onChange)};addItem=()=>{const{fn:e}=this.props;let t=dR(this.state.value);this.setState((()=>({value:t.push(e.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))})),this.onChange)};onEnumChange=e=>{this.setState((()=>({value:e})),this.onChange)};render(){let{getComponent:e,required:t,schema:r,errors:n,fn:s,disabled:o}=this.props;n=n.toJS?n.toJS():Array.isArray(n)?n:[];const i=n.filter((e=>"string"==typeof e)),a=n.filter((e=>void 0!==e.needRemove)).map((e=>e.error)),c=this.state.value,l=!!(c&&c.count&&c.count()>0),u=r.getIn(["items","enum"]),p=r.get("items"),h=s.getSchemaObjectType(p),d=s.getSchemaObjectTypeLabel(p),m=r.getIn(["items","format"]),g=r.get("items");let y,v=!1,b="file"===h||"string"===h&&"binary"===m;if(h&&m?y=e(`JsonSchema_${h}_${m}`):"boolean"!==h&&"array"!==h&&"object"!==h||(y=e(`JsonSchema_${h}`)),!w.List.isList(p?.get("type"))||"array"!==h&&"object"!==h||(y=e("JsonSchema_object")),y||b||(v=!0),u){const r=e("Select");return f.createElement(r,{className:n.length?"invalid":"",title:n.length?n:"",multiple:!0,value:c,disabled:o,allowedValues:u,allowEmptyValue:!t,onChange:this.onEnumChange})}const E=e("Button");return f.createElement("div",{className:"json-schema-array"},l?c.map(((t,r)=>{const i=(0,w.fromJS)([...n.filter((e=>e.index===r)).map((e=>e.error))]);return f.createElement("div",{key:r,className:"json-schema-form-item"},b?f.createElement(lR,{value:t,onChange:e=>this.onItemChange(e,r),disabled:o,errors:i,getComponent:e}):v?f.createElement(cR,{value:t,onChange:e=>this.onItemChange(e,r),disabled:o,errors:i}):f.createElement(y,fr({},this.props,{value:t,onChange:e=>this.onItemChange(e,r),disabled:o,errors:i,schema:g,getComponent:e,fn:s})),o?null:f.createElement(E,{className:`btn btn-sm json-schema-form-item-remove ${a.length?"invalid":null}`,title:a.length?a:"",onClick:()=>this.removeItem(r)}," - "))})):null,o?null:f.createElement(E,{className:`btn btn-sm json-schema-form-item-add ${i.length?"invalid":null}`,title:i.length?i:"",onClick:this.addItem},"Add ",d," item"))}}class cR extends f.Component{static defaultProps=sR;onChange=e=>{const t=e.target.value;this.props.onChange(t,this.props.keyName)};render(){let{value:e,errors:t,description:r,disabled:n}=this.props;return e?(YN(e)||"object"==typeof e)&&(e=wI(e)):e="",t=t.toJS?t.toJS():[],f.createElement(Ir(),{type:"text",className:t.length?"invalid":"",title:t.length?t:"",value:e,minLength:0,debounceTimeout:350,placeholder:r,onChange:this.onChange,disabled:n})}}class lR extends f.Component{static defaultProps=sR;onFileChange=e=>{const t=e.target.files[0];this.props.onChange(t,this.props.keyName)};render(){let{getComponent:e,errors:t,disabled:r}=this.props;const n=e("Input"),s=r||!("FormData"in window);return f.createElement(n,{type:"file",className:t.length?"invalid":"",title:t.length?t:"",onChange:this.onFileChange,disabled:s})}}class uR extends f.Component{static defaultProps=sR;onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:t,errors:r,schema:n,required:s,disabled:o}=this.props;r=r.toJS?r.toJS():[];let i=n&&n.get?n.get("enum"):null,a=!i||!s,c=!i&&["true","false"];const l=e("Select");return f.createElement(l,{className:r.length?"invalid":"",title:r.length?r:"",value:String(t),disabled:o,allowedValues:i?[...i]:c,allowEmptyValue:a,onChange:this.onEnumChange})}}const pR=e=>e.map((e=>{const t=void 0!==e.propKey?e.propKey:e.index;let r="string"==typeof e?e:"string"==typeof e.error?e.error:null;if(!t&&r)return r;let n=e.error,s=`/${e.propKey}`;for(;"object"==typeof n;){const e=void 0!==n.propKey?n.propKey:n.index;if(void 0===e)break;if(s+=`/${e}`,!n.error)break;n=n.error}return`${s}: ${n}`}));class hR extends f.PureComponent{constructor(){super()}static defaultProps=sR;onChange=e=>{this.props.onChange(e)};handleOnChange=e=>{const t=e.target.value;this.onChange(t)};render(){let{getComponent:e,value:t,errors:r,disabled:n}=this.props;const s=e("TextArea");return r=r.toJS?r.toJS():Array.isArray(r)?r:[],f.createElement("div",null,f.createElement(s,{className:gr()({invalid:r.length}),title:r.length?pR(r).join(", "):"",value:wI(t),disabled:n,onChange:this.handleOnChange}))}}function dR(e){return w.List.isList(e)?e:Array.isArray(e)?(0,w.fromJS)(e):(0,w.List)()}const fR=({extensions:e,propClass:t=""})=>e.entrySeq().map((([e,r])=>{const n=XN(r)??null;return f.createElement("tr",{key:e,className:t},f.createElement("td",null,e),f.createElement("td",null,JSON.stringify(n)))})).toArray(),mR=(e,t)=>{const r=w.Map.isMap(e);if(!r&&!Mr()(e))return!1;const n=r?e.get("type"):e.type;return t===n||Array.isArray(t)&&t.includes(n)},gR=(e,t=new WeakSet)=>{if(null==e)return"any";if(t.has(e))return"any";t.add(e);const{type:r,items:n}=e;return Object.hasOwn(e,"items")?n?`array<${gR(n,t)}>`:"array<any>":r},yR=e=>gR(XN(e));var vR=()=>({components:{modelExample:qM,ModelWrapper:UM,ModelCollapse:BM,Model:WM,Models:KM,EnumModel:HM,ObjectModel:ZM,ArrayModel:QM,PrimitiveModel:tR,ModelExtensions:fR,schemes:rR,SchemesContainer:nR,...mN},fn:{hasSchemaType:mR,getSchemaObjectTypeLabel:yR}}),bR=rN(123),ER=rN.n(bR);const wR=e=>t=>Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,r)=>e===t[r])),xR=(...e)=>e;class SR extends Map{delete(e){const t=Array.from(this.keys()).find(wR(e));return super.delete(t)}get(e){const t=Array.from(this.keys()).find(wR(e));return super.get(t)}has(e){return-1!==Array.from(this.keys()).findIndex(wR(e))}}var _R=(e,t=xR)=>{const{Cache:r}=j();j().Cache=SR;const n=j()(e,t);return j().Cache=r,n};const AR={string:e=>e.pattern?(e=>{try{const t=/(?<=(?<!\\)\{)(\d{3,})(?=\})|(?<=(?<!\\)\{\d*,)(\d{3,})(?=\})|(?<=(?<!\\)\{)(\d{3,})(?=,\d*\})/g,r=e.replace(t,"100"),n=new(Dr())(r);return n.max=100,n.gen()}catch(e){return"string"}})(e.pattern):"string",string_email:()=>"user@example.com","string_date-time":()=>(new Date).toISOString(),string_date:()=>(new Date).toISOString().substring(0,10),string_time:()=>(new Date).toISOString().substring(11),string_uuid:()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",string_hostname:()=>"example.com",string_ipv4:()=>"198.51.100.42",string_ipv6:()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",number:()=>0,number_float:()=>0,integer:()=>0,boolean:e=>"boolean"!=typeof e.default||e.default},OR=e=>{e=ZN(e);let{type:t,format:r}=e,n=AR[`${t}_${r}`]||AR[t];return nI(n)?n(e):"Unknown Type: "+e.type},CR=e=>EI(e,"$$ref",(e=>"string"==typeof e&&e.indexOf("#")>-1)),jR=["maxProperties","minProperties"],kR=["minItems","maxItems"],TR=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],NR=["minLength","maxLength"],IR=(e,t,r={})=>{const n={...e};if(["example","default","enum","xml","type",...jR,...kR,...TR,...NR].forEach((e=>(e=>{void 0===n[e]&&void 0!==t[e]&&(n[e]=t[e])})(e))),void 0!==t.required&&Array.isArray(t.required)&&(void 0!==n.required&&n.required.length||(n.required=[]),t.required.forEach((e=>{n.required.includes(e)||n.required.push(e)}))),t.properties){n.properties||(n.properties={});let e=ZN(t.properties);for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(e[s]&&e[s].deprecated||e[s]&&e[s].readOnly&&!r.includeReadOnly||e[s]&&e[s].writeOnly&&!r.includeWriteOnly||n.properties[s]||(n.properties[s]=e[s],!t.required&&Array.isArray(t.required)&&-1!==t.required.indexOf(s)&&(n.required?n.required.push(s):n.required=[s])))}return t.items&&(n.items||(n.items={}),n.items=IR(n.items,t.items,r)),n},PR=(e,t={},r=void 0,n=!1)=>{e&&nI(e.toJS)&&(e=e.toJS());let s=void 0!==r||e&&void 0!==e.example||e&&void 0!==e.default;const o=!s&&e&&e.oneOf&&e.oneOf.length>0,i=!s&&e&&e.anyOf&&e.anyOf.length>0;if(!s&&(o||i)){const r=ZN(o?e.oneOf[0]:e.anyOf[0]);if(!(e=IR(e,r,t)).xml&&r.xml&&(e.xml=r.xml),void 0!==e.example&&void 0!==r.example)s=!0;else if(r.properties){e.properties||(e.properties={});let n=ZN(r.properties);for(let s in n)Object.prototype.hasOwnProperty.call(n,s)&&(n[s]&&n[s].deprecated||n[s]&&n[s].readOnly&&!t.includeReadOnly||n[s]&&n[s].writeOnly&&!t.includeWriteOnly||e.properties[s]||(e.properties[s]=n[s],!r.required&&Array.isArray(r.required)&&-1!==r.required.indexOf(s)&&(e.required?e.required.push(s):e.required=[s])))}}const a={};let{xml:c,type:l,example:u,properties:p,additionalProperties:h,items:d}=e||{},{includeReadOnly:f,includeWriteOnly:m}=t;c=c||{};let g,{name:y,prefix:v,namespace:b}=c,E={};n&&(y=y||"notagname",g=(v?v+":":"")+y,b)&&(a[v?"xmlns:"+v:"xmlns"]=b),n&&(E[g]=[]);const w=t=>t.some((t=>Object.prototype.hasOwnProperty.call(e,t)));e&&!l&&(p||h||w(jR)?l="object":d||w(kR)?l="array":w(TR)?(l="number",e.type="number"):s||e.enum||(l="string",e.type="string"));const x=t=>{if(null!=e?.maxItems&&(t=t.slice(0,e?.maxItems)),null!=e?.minItems){let r=0;for(;t.length<e?.minItems;)t.push(t[r++%t.length])}return t},S=ZN(p);let _,A=0;const O=()=>e&&null!==e.maxProperties&&void 0!==e.maxProperties&&A>=e.maxProperties,C=t=>!e||null===e.maxProperties||void 0===e.maxProperties||!O()&&(!(t=>!(e&&e.required&&e.required.length&&e.required.includes(t)))(t)||e.maxProperties-A-(()=>{if(!e||!e.required)return 0;let t=0;return n?e.required.forEach((e=>t+=void 0===E[e]?0:1)):e.required.forEach((e=>t+=void 0===E[g]?.find((t=>void 0!==t[e]))?0:1)),e.required.length-t})()>0);if(_=n?(r,s=void 0)=>{if(e&&S[r]){if(S[r].xml=S[r].xml||{},S[r].xml.attribute){const e=Array.isArray(S[r].enum)?S[r].enum[0]:void 0,t=S[r].example,n=S[r].default;return void(a[S[r].xml.name||r]=void 0!==t?t:void 0!==n?n:void 0!==e?e:OR(S[r]))}S[r].xml.name=S[r].xml.name||r}else S[r]||!1===h||(S[r]={xml:{name:r}});let o=PR(e&&S[r]||void 0,t,s,n);C(r)&&(A++,Array.isArray(o)?E[g]=E[g].concat(o):E[g].push(o))}:(r,s)=>{if(C(r)){if(Object.prototype.hasOwnProperty.call(e,"discriminator")&&e.discriminator&&Object.prototype.hasOwnProperty.call(e.discriminator,"mapping")&&e.discriminator.mapping&&Object.prototype.hasOwnProperty.call(e,"$$ref")&&e.$$ref&&e.discriminator.propertyName===r){for(let t in e.discriminator.mapping)if(-1!==e.$$ref.search(e.discriminator.mapping[t])){E[r]=t;break}}else E[r]=PR(S[r],t,s,n);A++}},s){let s;if(s=CR(void 0!==r?r:void 0!==u?u:e.default),!n){if("number"==typeof s&&"string"===l)return`${s}`;if("string"!=typeof s||"string"===l)return s;try{return JSON.parse(s)}catch(e){return s}}if(e||(l=Array.isArray(s)?"array":typeof s),"array"===l){if(!Array.isArray(s)){if("string"==typeof s)return s;s=[s]}const r=e?e.items:void 0;r&&(r.xml=r.xml||c||{},r.xml.name=r.xml.name||c.name);let o=s.map((e=>PR(r,t,e,n)));return o=x(o),c.wrapped?(E[g]=o,Fr()(a)||E[g].push({_attr:a})):E=o,E}if("object"===l){if("string"==typeof s)return s;for(let t in s)Object.prototype.hasOwnProperty.call(s,t)&&(e&&S[t]&&S[t].readOnly&&!f||e&&S[t]&&S[t].writeOnly&&!m||(e&&S[t]&&S[t].xml&&S[t].xml.attribute?a[S[t].xml.name||t]=s[t]:_(t,s[t])));return Fr()(a)||E[g].push({_attr:a}),E}return E[g]=Fr()(a)?s:[{_attr:a},s],E}if("object"===l){for(let e in S)Object.prototype.hasOwnProperty.call(S,e)&&(S[e]&&S[e].deprecated||S[e]&&S[e].readOnly&&!f||S[e]&&S[e].writeOnly&&!m||_(e));if(n&&a&&E[g].push({_attr:a}),O())return E;if(!0===h)n?E[g].push({additionalProp:"Anything can be here"}):E.additionalProp1={},A++;else if(h){const r=ZN(h),s=PR(r,t,void 0,n);if(n&&r.xml&&r.xml.name&&"notagname"!==r.xml.name)E[g].push(s);else{const t=r["x-additionalPropertiesName"]||"additionalProp",o=null!==e.minProperties&&void 0!==e.minProperties&&A<e.minProperties?e.minProperties-A:3;for(let e=1;e<=o;e++){if(O())return E;if(n){const r={};r[t+e]=s.notagname,E[g].push(r)}else E[t+e]=s;A++}}}return E}if("array"===l){if(!d)return;let r;if(n&&(d.xml=d.xml||e?.xml||{},d.xml.name=d.xml.name||c.name),Array.isArray(d.anyOf))r=d.anyOf.map((e=>PR(IR(e,d,t),t,void 0,n)));else if(Array.isArray(d.oneOf))r=d.oneOf.map((e=>PR(IR(e,d,t),t,void 0,n)));else{if(!(!n||n&&c.wrapped))return PR(d,t,void 0,n);r=[PR(d,t,void 0,n)]}return r=x(r),n&&c.wrapped?(E[g]=r,Fr()(a)||E[g].push({_attr:a}),E):r}let j;if(e&&Array.isArray(e.enum))j=eI(e.enum)[0];else{if(!e)return;if(j=OR(e),"number"==typeof j){let t=e.minimum;null!=t&&(e.exclusiveMinimum&&t++,j=t);let r=e.maximum;null!=r&&(e.exclusiveMaximum&&r--,j=r)}if("string"==typeof j&&(null!==e.maxLength&&void 0!==e.maxLength&&(j=j.slice(0,e.maxLength)),null!==e.minLength&&void 0!==e.minLength)){let t=0;for(;j.length<e.minLength;)j+=j[t++%j.length]}}if("file"!==l)return n?(E[g]=Fr()(a)?j:[{_attr:a},j],E):j},MR=e=>(e.schema&&(e=e.schema),e.properties&&(e.type="object"),e),RR=(e,t,r)=>{const n=PR(e,t,r,!0);if(n)return"string"==typeof n?n:ER()(n,{declaration:!0,indent:"\t"})},DR=(e,t,r)=>PR(e,t,r,!1),$R=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],FR=_R(RR,$R),BR=_R(DR,$R),LR=e=>XN(e)?.type??"string",qR=[{when:/json/,shouldStringifyTypes:["string"]}],UR=["object"];var zR=({getSystem:e})=>{const t=(e=>(t,r,n,s)=>{const{fn:o}=e(),i=o.memoizedSampleFromSchema(t,r,s),a=typeof i,c=qR.reduce(((e,t)=>t.when.test(n)?[...e,...t.shouldStringifyTypes]:e),UR);return I()(c,(e=>e===a))?JSON.stringify(i,null,2):i})(e),r=(e=>(t,r,n,s)=>{const{fn:o}=e(),i=o.getJsonSampleSchema(t,r,n,s);let a;try{a=nr.dump(nr.load(i),{lineWidth:-1},{schema:Wt}),"\n"===a[a.length-1]&&(a=a.slice(0,a.length-1))}catch(e){return console.error(e),"error: could not generate yaml example"}return a.replace(/\t/g," ")})(e),n=(e=>(t,r,n)=>{const{fn:s}=e();if(t&&!t.xml&&(t.xml={}),t&&!t.xml.name){if(!t.$$ref&&(t.type||t.items||t.properties||t.additionalProperties))return'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e';if(t.$$ref){let e=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=e[1]}}return s.memoizedCreateXMLExample(t,r,n)})(e),s=(e=>(t,r="",n={},s=void 0)=>{const{fn:o}=e();return"function"==typeof s?.toJS&&(s=s.toJS()),/xml/.test(r)?("function"==typeof t?.toJS&&(t=t.toJS()),o.getXmlSampleSchema(t,n,s)):/(yaml|yml)/.test(r)?o.getYamlSampleSchema(t,n,r,s):o.getJsonSampleSchema(t,n,r,s)})(e);return{fn:{jsonSchema5:{inferSchema:MR,sampleFromSchema:DR,sampleFromSchemaGeneric:PR,createXMLExample:RR,memoizedSampleFromSchema:BR,memoizedCreateXMLExample:FR,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:s,mergeJsonSchema:IR},inferSchema:MR,sampleFromSchema:DR,sampleFromSchemaGeneric:PR,createXMLExample:RR,memoizedSampleFromSchema:BR,memoizedCreateXMLExample:FR,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:s,mergeJsonSchema:IR,getSchemaObjectType:LR}}};const JR=["get","put","post","delete","options","head","patch","trace","query"],VR=e=>e||(0,w.Map)(),WR=(0,q.Mz)(VR,(e=>e.get("lastError"))),KR=(0,q.Mz)(VR,(e=>e.get("url"))),HR=(0,q.Mz)(VR,(e=>e.get("spec")||"")),GR=(0,q.Mz)(VR,(e=>e.get("specSource")||"not-editor")),YR=(0,q.Mz)(VR,(e=>e.get("json",(0,w.Map)()))),XR=(0,q.Mz)(YR,(e=>e.toJS())),ZR=(0,q.Mz)(VR,(e=>e.get("resolved",(0,w.Map)()))),QR=(e,t)=>e.getIn(["resolvedSubtrees",...t],void 0),eD=(e,t)=>w.Map.isMap(e)&&w.Map.isMap(t)?t.get("$$ref")?t:(0,w.OrderedMap)().mergeWith(eD,e,t):t,tD=(0,q.Mz)(VR,(e=>(0,w.OrderedMap)().mergeWith(eD,e.get("json"),e.get("resolvedSubtrees")))),rD=e=>YR(e),nD=(0,q.Mz)(rD,(()=>!1)),sD=(0,q.Mz)(rD,(e=>XD(e&&e.get("info")))),oD=(0,q.Mz)(rD,(e=>XD(e&&e.get("externalDocs")))),iD=(0,q.Mz)(sD,(e=>e&&e.get("version"))),aD=(0,q.Mz)(iD,(e=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e).slice(1))),cD=(0,q.Mz)(tD,(e=>e.get("paths"))),lD=Lr()(["get","put","post","delete","options","head","patch"]),uD=(0,q.Mz)(cD,(e=>{let t=(0,w.List)();return!w.Map.isMap(e)||e.isEmpty()||e.forEach(((e,r)=>{if(!e||!e.forEach)return{};e.forEach(((e,n)=>{JR.indexOf(n)<0||(t=t.push((0,w.fromJS)({path:r,method:n,operation:e,id:`${n}-${r}`,specPath:["paths",r,n]})))}))})),t})),pD=(0,q.Mz)(rD,(e=>(0,w.Set)(e.get("consumes")))),hD=(0,q.Mz)(rD,(e=>(0,w.Set)(e.get("produces")))),dD=(0,q.Mz)(rD,(e=>e.get("security",(0,w.List)()))),fD=(0,q.Mz)(rD,(e=>e.get("securityDefinitions"))),mD=(e,t)=>{const r=e.getIn(["resolvedSubtrees","definitions",t],null),n=e.getIn(["json","definitions",t],null);return r||n||null},gD=(0,q.Mz)(rD,(e=>{const t=e.get("definitions");return w.Map.isMap(t)?t:(0,w.Map)()})),yD=(0,q.Mz)(rD,(e=>e.get("basePath"))),vD=(0,q.Mz)(rD,(e=>e.get("host"))),bD=(0,q.Mz)(rD,(e=>e.get("schemes",(0,w.Map)()))),ED=(0,q.Mz)([uD,pD,hD],((e,t,r)=>e.map((e=>e.update("operation",(e=>w.Map.isMap(e)?e.withMutations((e=>(e.get("consumes")||e.update("consumes",(e=>(0,w.Set)(e).merge(t))),e.get("produces")||e.update("produces",(e=>(0,w.Set)(e).merge(r))),e))):(0,w.Map)())))))),wD=(0,q.Mz)(rD,(e=>{const t=e.get("tags",(0,w.List)());return w.List.isList(t)?t.filter((e=>w.Map.isMap(e))):(0,w.List)()})),xD=(e,t)=>(wD(e)||(0,w.List)()).filter(w.Map.isMap).find((e=>e.get("name")===t),(0,w.Map)()),SD=(0,q.Mz)(ED,wD,((e,t)=>e.reduce(((e,t)=>{let r=(0,w.Set)(t.getIn(["operation","tags"]));return r.count()<1?e.update("default",(0,w.List)(),(e=>e.push(t))):r.reduce(((e,r)=>e.update(r,(0,w.List)(),(e=>e.push(t)))),e)}),t.reduce(((e,t)=>e.set(t.get("name"),(0,w.List)())),(0,w.OrderedMap)())))),_D=e=>({getConfigs:t})=>{let{tagsSorter:r,operationsSorter:n}=t();return SD(e).sortBy(((e,t)=>t),((e,t)=>{let n="function"==typeof r?r:pI.tagsSorter[r];return n?n(e,t):null})).map(((t,r)=>{let s="function"==typeof n?n:pI.operationsSorter[n],o=s?t.sort(s):t;return(0,w.Map)({tagDetails:xD(e,r),operations:o})}))},AD=(0,q.Mz)(VR,(e=>e.get("responses",(0,w.Map)()))),OD=(0,q.Mz)(VR,(e=>e.get("requests",(0,w.Map)()))),CD=(0,q.Mz)(VR,(e=>e.get("mutatedRequests",(0,w.Map)()))),jD=(e,t,r)=>AD(e).getIn([t,r],null),kD=(e,t,r)=>OD(e).getIn([t,r],null),TD=(e,t,r)=>CD(e).getIn([t,r],null),ND=()=>!0,ID=(e,t,r)=>{const n=tD(e).getIn(["paths",...t,"parameters"],(0,w.OrderedMap)()),s=e.getIn(["meta","paths",...t,"parameters"],(0,w.OrderedMap)());return n.map((e=>{const t=s.get(`${r.get("in")}.${r.get("name")}`),n=s.get(`${r.get("in")}.${r.get("name")}.hash-${r.hashCode()}`);return(0,w.OrderedMap)().merge(e,t,n)})).find((e=>e.get("in")===r.get("in")&&e.get("name")===r.get("name")),(0,w.OrderedMap)())},PD=(e,t,r,n)=>{const s=`${n}.${r}`;return e.getIn(["meta","paths",...t,"parameter_inclusions",s],!1)},MD=(e,t,r,n)=>{const s=tD(e).getIn(["paths",...t,"parameters"],(0,w.OrderedMap)()).find((e=>e.get("in")===n&&e.get("name")===r),(0,w.OrderedMap)());return ID(e,t,s)},RD=(e,t,r)=>{const n=tD(e).getIn(["paths",t,r],(0,w.OrderedMap)()),s=e.getIn(["meta","paths",t,r],(0,w.OrderedMap)()),o=n.get("parameters",(0,w.List)()).map((n=>ID(e,[t,r],n)));return(0,w.OrderedMap)().merge(n,s).set("parameters",o)};function DD(e,t,r,n){return t=t||[],e.getIn(["meta","paths",...t,"parameters"],(0,w.fromJS)([])).find((e=>w.Map.isMap(e)&&e.get("name")===r&&e.get("in")===n))||(0,w.Map)()}const $D=(0,q.Mz)(rD,(e=>{const t=e.get("host");return"string"==typeof t&&t.length>0&&"/"!==t[0]}));function FD(e,t,r){return t=t||[],RD(e,...t).get("parameters",(0,w.List)()).reduce(((e,t)=>{let n=r&&"body"===t.get("in")?t.get("value_xml"):t.get("value");return w.List.isList(n)&&(n=n.filter((e=>""!==e))),e.set(xI(t,{allowHashes:!1}),n)}),(0,w.fromJS)({}))}function BD(e,t=""){if(w.List.isList(e))return e.some((e=>w.Map.isMap(e)&&e.get("in")===t))}function LD(e,t=""){if(w.List.isList(e))return e.some((e=>w.Map.isMap(e)&&e.get("type")===t))}function qD(e,t){t=t||[];let r=tD(e).getIn(["paths",...t],(0,w.fromJS)({})),n=e.getIn(["meta","paths",...t],(0,w.fromJS)({})),s=UD(e,t);const o=r.get("parameters")||new w.List,i=n.get("consumes_value")?n.get("consumes_value"):LD(o,"file")?"multipart/form-data":LD(o,"formData")?"application/x-www-form-urlencoded":void 0;return(0,w.fromJS)({requestContentType:i,responseContentType:s})}function UD(e,t){t=t||[];const r=tD(e).getIn(["paths",...t],null);if(null===r)return;const n=e.getIn(["meta","paths",...t,"produces_value"],null),s=r.getIn(["produces",0],null);return n||s||"application/json"}function zD(e,t){t=t||[];const r=tD(e),n=r.getIn(["paths",...t],null);if(null===n)return;const[s]=t,o=n.get("produces",null),i=r.getIn(["paths",s,"produces"],null),a=r.getIn(["produces"],null);return o||i||a}function JD(e,t){t=t||[];const r=tD(e),n=r.getIn(["paths",...t],null);if(null===n)return;const[s]=t,o=n.get("consumes",null),i=r.getIn(["paths",s,"consumes"],null),a=r.getIn(["consumes"],null);return o||i||a}const VD=(e,t,r)=>{let n=e.get("url").match(/^([a-z][a-z0-9+\-.]*):/),s=Array.isArray(n)?n[1]:null;return e.getIn(["scheme",t,r])||e.getIn(["scheme","_defaultScheme"])||s||""},WD=(e,t,r)=>["http","https"].indexOf(VD(e,t,r))>-1,KD=(e,t)=>{t=t||[];const r=e.getIn(["meta","paths",...t,"parameters"],(0,w.fromJS)([])),n=[];if(0===r.length)return n;const s=(e,t=[])=>{const r=(e,t)=>{const r=[...t,e.get("propKey")||e.get("index")];return w.Map.isMap(e.get("error"))?s(e.get("error"),r):{error:e.get("error"),path:r}};return w.List.isList(e)?e.map((e=>w.Map.isMap(e)?r(e,t):{error:e,path:t})):r(e,t)};return r.forEach(((e,t)=>{const r=t.split(".").slice(1,-1).join("."),o=e.get("errors");o&&o.count()&&s(o).forEach((({error:e,path:t})=>{n.push(((e,t,r)=>`For '${r}'${(t=t.reduce(((e,t)=>"number"==typeof t?`${e}[${t}]`:e?`${e}.${t}`:t),""))?` at path '${t}'`:""}: ${e}.`)(e,t,r))}))})),n},HD=(e,t)=>0===KD(e,t).length,GD=(e,t)=>{let r={requestBody:!1,requestContentType:{}},n=e.getIn(["resolvedSubtrees","paths",...t,"requestBody"],(0,w.fromJS)([]));return n.size<1||(n.getIn(["required"])&&(r.requestBody=n.getIn(["required"])),n.getIn(["content"]).entrySeq().forEach((e=>{const t=e[0];if(e[1].getIn(["schema","required"])){const n=e[1].getIn(["schema","required"]).toJS();r.requestContentType[t]=n}}))),r},YD=(e,t,r,n)=>{if((r||n)&&r===n)return!0;let s=e.getIn(["resolvedSubtrees","paths",...t,"requestBody","content"],(0,w.fromJS)([]));if(s.size<2||!r||!n)return!1;let o=s.getIn([r,"schema","properties"],(0,w.fromJS)([])),i=s.getIn([n,"schema","properties"],(0,w.fromJS)([]));return!!o.equals(i)};function XD(e){return w.Map.isMap(e)?e:new w.Map}const ZD="spec_update_spec",QD="spec_update_url",e$="spec_update_json",t$="spec_update_param",r$="spec_update_empty_param_inclusion",n$="spec_validate_param",s$="spec_set_response",o$="spec_set_request",i$="spec_set_mutated_request",a$="spec_log_request",c$="spec_clear_response",l$="spec_clear_request",u$="spec_clear_validate_param",p$="spec_update_operation_meta_value",h$="spec_update_resolved",d$="spec_update_resolved_subtree",f$="set_scheme";function m$(e){const t=(e=>Ur()(e)?e:"")(e).replace(/\t/g," ");if("string"==typeof e)return{type:ZD,payload:t}}function g$(e){return{type:h$,payload:e}}function y$(e){return{type:QD,payload:e}}function v$(e){return{type:e$,payload:e}}const b$=e=>({specActions:t,specSelectors:r,errActions:n})=>{let{specStr:s}=r,o=null;try{e=e||s(),n.clear({source:"parser"}),o=nr.load(e,{schema:Wt})}catch(e){return console.error(e),n.newSpecErr({source:"parser",level:"error",message:e.reason,line:e.mark&&e.mark.line?e.mark.line+1:void 0})}return o&&"object"==typeof o?t.updateJsonSpec(o):t.updateJsonSpec({})};let E$=!1;const w$=(e,t)=>({specActions:r,specSelectors:n,errActions:s,fn:{fetch:o,resolve:i,AST:a={}},getConfigs:c})=>{E$||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),E$=!0);const{modelPropertyMacro:l,parameterMacro:u,requestInterceptor:p,responseInterceptor:h}=c();void 0===e&&(e=n.specJson()),void 0===t&&(t=n.url());let d=a.getLineNumberForPath?a.getLineNumberForPath:()=>{},f=n.specStr();return i({fetch:o,spec:e,baseDoc:String(new URL(t,document.baseURI)),modelPropertyMacro:l,parameterMacro:u,requestInterceptor:p,responseInterceptor:h}).then((({spec:e,errors:t})=>{if(s.clear({type:"thrown"}),Array.isArray(t)&&t.length>0){let e=t.map((e=>(console.error(e),e.line=e.fullPath?d(f,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",Object.defineProperty(e,"message",{enumerable:!0,value:e.message}),e)));s.newThrownErrBatch(e)}return r.updateResolved(e)}))};let x$=[];const S$=Jr()((()=>{const e=x$.reduce(((e,{path:t,system:r})=>(e.has(r)||e.set(r,[]),e.get(r).push(t),e)),new Map);x$=[],e.forEach((async(e,t)=>{if(!t)return void console.error("debResolveSubtrees: don't have a system to operate on, aborting.");if(!t.fn.resolveSubtree)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");const{errActions:r,errSelectors:n,fn:{resolveSubtree:s,fetch:o,AST:i={}},specSelectors:a,specActions:c}=t,l=i.getLineNumberForPath??Lr()(void 0),u=a.specStr(),{modelPropertyMacro:p,parameterMacro:h,requestInterceptor:d,responseInterceptor:f}=t.getConfigs();try{const t=await e.reduce((async(e,t)=>{let{resultMap:i,specWithCurrentSubtrees:c}=await e;const{errors:m,spec:g}=await s(c,t,{baseDoc:String(new URL(a.url(),document.baseURI)),modelPropertyMacro:p,parameterMacro:h,requestInterceptor:d,responseInterceptor:f});if(n.allErrors().size&&r.clearBy((e=>"thrown"!==e.get("type")||"resolver"!==e.get("source")||!e.get("fullPath")?.every(((e,r)=>e===t[r]||void 0===t[r])))),Array.isArray(m)&&m.length>0){let e=m.map((e=>(e.line=e.fullPath?l(u,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",Object.defineProperty(e,"message",{enumerable:!0,value:e.message}),e)));r.newThrownErrBatch(e)}return g&&a.isOAS3()&&"components"===t[0]&&"securitySchemes"===t[1]&&await Promise.all(Object.values(g).filter((e=>"openIdConnect"===e?.type)).map((async e=>{const t={url:e.openIdConnectUrl,requestInterceptor:d,responseInterceptor:f};try{const r=await o(t);r instanceof Error||r.status>=400?console.error(r.statusText+" "+t.url):e.openIdConnectData=JSON.parse(r.text)}catch(e){console.error(e)}}))),Wr()(i,t,g),c=Hr()(t,g,c),{resultMap:i,specWithCurrentSubtrees:c}}),Promise.resolve({resultMap:(a.specResolvedSubtree([])||(0,w.Map)()).toJS(),specWithCurrentSubtrees:a.specJS()}));c.updateResolvedSubtree([],t.resultMap)}catch(e){console.error(e)}}))}),35),_$=e=>t=>{x$.find((({path:r,system:n})=>n===t&&r.toString()===e.toString()))||(x$.push({path:e,system:t}),S$())};function A$(e,t,r,n,s){return{type:t$,payload:{path:e,value:n,paramName:t,paramIn:r,isXml:s}}}function O$(e,t,r,n){return{type:t$,payload:{path:e,param:t,value:r,isXml:n}}}const C$=(e,t)=>({type:d$,payload:{path:e,value:t}}),j$=()=>({type:d$,payload:{path:[],value:(0,w.Map)()}}),k$=(e,t)=>({type:n$,payload:{pathMethod:e,isOAS3:t}}),T$=(e,t,r,n)=>({type:r$,payload:{pathMethod:e,paramName:t,paramIn:r,includeEmptyValue:n}});function N$(e){return{type:u$,payload:{pathMethod:e}}}function I$(e,t){return{type:p$,payload:{path:e,value:t,key:"consumes_value"}}}function P$(e,t){return{type:p$,payload:{path:e,value:t,key:"produces_value"}}}const M$=(e,t,r)=>({payload:{path:e,method:t,res:r},type:s$}),R$=(e,t,r)=>({payload:{path:e,method:t,req:r},type:o$}),D$=(e,t,r)=>({payload:{path:e,method:t,req:r},type:i$}),$$=e=>({payload:e,type:a$}),F$=e=>({fn:t,specActions:r,specSelectors:n,getConfigs:s,oas3Selectors:o})=>{let{pathName:i,method:a,operation:c}=e,{requestInterceptor:l,responseInterceptor:u}=s(),p=c.toJS();if(c&&c.get("parameters")&&c.get("parameters").filter((e=>e&&!0===e.get("allowEmptyValue"))).forEach((t=>{if(n.parameterInclusionSettingFor([i,a],t.get("name"),t.get("in"))){e.parameters=e.parameters||{};const r=SI(t,e.parameters);(!r||r&&0===r.size)&&(e.parameters[t.get("name")]="")}})),e.contextUrl=L()(n.url()).toString(),p&&p.operationId?e.operationId=p.operationId:p&&i&&a&&(e.operationId=t.opId(p,i,a)),n.isOAS3()){const t=`${i}:${a}`;e.server=o.selectedServer(t)||o.selectedServer();const r=o.serverVariables({server:e.server,namespace:t}).toJS(),n=o.serverVariables({server:e.server}).toJS();e.serverVariables=Object.keys(r).length?r:n,e.requestContentType=o.requestContentType(i,a),e.responseContentType=o.responseContentType(i,a)||"*/*";const s=o.requestBodyValue(i,a),c=o.requestBodyInclusionSetting(i,a);s&&s.toJS?e.requestBody=s.map((e=>w.Map.isMap(e)?e.get("value"):e)).filter(((e,t)=>(Array.isArray(e)?0!==e.length:!AI(e))||c.get(t))).toJS():e.requestBody=s}let h=Object.assign({},e);h=t.buildRequest(h),r.setRequest(e.pathName,e.method,h),e.requestInterceptor=async t=>{let n=await l.apply(void 0,[t]),s=Object.assign({},n);return r.setMutatedRequest(e.pathName,e.method,s),n},e.responseInterceptor=u;const d=Date.now();return t.execute(e).then((t=>{t.duration=Date.now()-d,r.setResponse(e.pathName,e.method,t)})).catch((t=>{"Failed to fetch"===t.message&&(t.name="",t.message='**Failed to fetch.** \n**Possible Reasons:** \n - CORS \n - Network Failure \n - URL scheme must be "http" or "https" for CORS request.'),r.setResponse(e.pathName,e.method,{error:!0,err:t})}))},B$=({path:e,method:t,...r}={})=>n=>{let{fn:{fetch:s},specSelectors:o,specActions:i}=n,a=o.specJsonWithResolvedSubtrees().toJS(),c=o.operationScheme(e,t),{requestContentType:l,responseContentType:u}=o.contentTypeValues([e,t]).toJS(),p=/xml/i.test(l),h=o.parameterValues([e,t],p).toJS();return i.executeRequest({...r,fetch:s,spec:a,pathName:e,method:t,parameters:h,requestContentType:l,scheme:c,responseContentType:u})};function L$(e,t){return{type:c$,payload:{path:e,method:t}}}function q$(e,t){return{type:l$,payload:{path:e,method:t}}}function U$(e,t,r){return{type:f$,payload:{scheme:e,path:t,method:r}}}var z$={[ZD]:(e,t)=>"string"==typeof t.payload?e.set("spec",t.payload):e,[QD]:(e,t)=>e.set("url",t.payload+""),[e$]:(e,t)=>e.set("json",QN(t.payload)),[h$]:(e,t)=>e.setIn(["resolved"],QN(t.payload)),[d$]:(e,t)=>{const{value:r,path:n}=t.payload;return e.setIn(["resolvedSubtrees",...n],QN(r))},[t$]:(e,{payload:t})=>{let{path:r,paramName:n,paramIn:s,param:o,value:i,isXml:a}=t,c=o?xI(o):`${s}.${n}`;const l=a?"value_xml":"value";return e.setIn(["meta","paths",...r,"parameters",c,l],(0,w.fromJS)(i))},[r$]:(e,{payload:t})=>{let{pathMethod:r,paramName:n,paramIn:s,includeEmptyValue:o}=t;if(!n||!s)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),e;const i=`${s}.${n}`;return e.setIn(["meta","paths",...r,"parameter_inclusions",i],o)},[n$]:(e,{payload:{pathMethod:t,isOAS3:r}})=>{const n=tD(e).getIn(["paths",...t]),s=FD(e,t).toJS();return e.updateIn(["meta","paths",...t,"parameters"],(0,w.fromJS)({}),(o=>n.get("parameters",(0,w.List)()).reduce(((n,o)=>{const i=SI(o,s),a=PD(e,t,o.get("name"),o.get("in")),c=((e,t,{isOAS3:r=!1,bypassRequiredCheck:n=!1}={})=>{let s=e.get("required"),{schema:o,parameterContentMediaType:i}=KN(e,{isOAS3:r});return lI(t,o,s,n,i,r)})(o,i,{bypassRequiredCheck:a,isOAS3:r});return n.setIn([xI(o),"errors"],(0,w.fromJS)(c))}),o)))},[u$]:(e,{payload:{pathMethod:t}})=>e.updateIn(["meta","paths",...t,"parameters"],(0,w.fromJS)([]),(e=>e.map((e=>e.set("errors",(0,w.fromJS)([])))))),[s$]:(e,{payload:{res:t,path:r,method:n}})=>{let s;s=t.error?Object.assign({error:!0,name:t.err.name,message:t.err.message,statusCode:t.err.statusCode},t.err.response):t,s.headers=s.headers||{};let o=e.setIn(["responses",r,n],QN(s));return qN.Blob&&s.data instanceof qN.Blob&&(o=o.setIn(["responses",r,n,"text"],s.data)),o},[o$]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["requests",r,n],QN(t)),[i$]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["mutatedRequests",r,n],QN(t)),[p$]:(e,{payload:{path:t,value:r,key:n}})=>{let s=["paths",...t],o=["meta","paths",...t];return e.getIn(["json",...s])||e.getIn(["resolved",...s])||e.getIn(["resolvedSubtrees",...s])?e.setIn([...o,n],(0,w.fromJS)(r)):e},[c$]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["responses",t,r]),[l$]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["requests",t,r]),[f$]:(e,{payload:{scheme:t,path:r,method:n}})=>r&&n?e.setIn(["scheme",r,n],t):r||n?void 0:e.setIn(["scheme","_defaultScheme"],t)};const J$=(e,{specActions:t})=>(...r)=>{e(...r),t.parseToJson(...r)},V$=(e,{specActions:t})=>(...r)=>{e(...r),t.invalidateResolvedSubtreeCache();const[n]=r,s=pr()(n,["paths"])||{};Object.keys(s).forEach((e=>{const r=pr()(s,[e]);Mr()(r)&&r.$ref&&t.requestResolvedSubtree(["paths",e])})),t.requestResolvedSubtree(["components","securitySchemes"])},W$=(e,{specActions:t})=>r=>(t.logRequest(r),e(r)),K$=(e,{specSelectors:t})=>r=>e(r,t.isOAS3());var H$=()=>({statePlugins:{spec:{wrapActions:{...vN},reducers:{...z$},actions:{...yN},selectors:{...gN}}}});const G$=(e,t)=>(...r)=>{e(...r);const n=t.getConfigs().withCredentials;t.fn.fetch.withCredentials=n};function Y$({configs:e,getConfigs:t}){return{fn:{fetch:(r=Ua,n=e.preFetch,s=e.postFetch,s=s||(e=>e),n=n||(e=>e),e=>("string"==typeof e&&(e={url:e}),e=Ba(e),e=n(e),s(r(e)))),buildRequest:hA,execute:pA,resolve:i_({strategies:[o_,yc,mc,uc]}),resolveSubtree:async(e,r,n={})=>{const s=t(),o={modelPropertyMacro:s.modelPropertyMacro,parameterMacro:s.parameterMacro,requestInterceptor:s.requestInterceptor,responseInterceptor:s.responseInterceptor,strategies:[o_,yc,mc,uc]};return mA(o)(e,r,n)},serializeRes:qa,opId:ac},statePlugins:{configs:{wrapActions:{loaded:G$}}}};var r,n,s}function X$(){return{fn:{shallowEqualKeys:dI,sanitizeUrl:XM}}}const Z$=e=>t=>{const{fn:r}=e();class n extends f.Component{render(){return f.createElement(t,fr({},e(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(t)})`,n},Q$=(e,t)=>r=>{const{fn:n}=e();class s extends f.Component{render(){return f.createElement(uO,{store:t},f.createElement(r,fr({},this.props,this.context)))}}return s.displayName=`WithRoot(${n.getDisplayName(r)})`,s},eF=(e,t,r)=>(0,E.Zz)(r?Q$(e,r):hO(),function(e,t,r,{pure:n,areStatesEqual:s=lO,areOwnPropsEqual:o=JA,areStatePropsEqual:i=JA,areMergedPropsEqual:a=JA,forwardRef:c=!1,context:l=iO}={}){const u=l,p=function(e){return e?"function"==typeof e?RA(e):DA(e,"mapStateToProps"):PA((()=>({})))}(e),h=function(e){return e&&"object"==typeof e?PA((t=>function(e,t){const r={};for(const n in e){const s=e[n];"function"==typeof s&&(r[n]=(...e)=>t(s(...e)))}return r}(e,t))):e?"function"==typeof e?RA(e):DA(e,"mapDispatchToProps"):PA((e=>({dispatch:e})))}(t),d=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:n}){let s,o=!1;return function(t,r,i){const a=e(t,r,i);return o?n(a,s)||(s=a):(o=!0,s=a),s}}}(e):DA(e,"mergeProps"):()=>$A}(r),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,n={shouldHandleStateChanges:m,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:h,initMergeProps:d,areStatesEqual:s,areStatePropsEqual:i,areOwnPropsEqual:o,areMergedPropsEqual:a};function l(t){const[r,s,o]=f.useMemo((()=>{const{reactReduxForwardedRef:e,...r}=t;return[t.context,e,r]}),[t]),i=f.useMemo((()=>u),[r,u]),a=f.useContext(i),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),l=Boolean(a)&&Boolean(a.store),p=c?t.store:a.store,h=l?a.getServerState:p.getState,d=f.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...s}){return IA(t(e,s),r(e,s),n(e,s),e,s)}(p.dispatch,n)),[p]),[g,y]=f.useMemo((()=>{if(!m)return aO;const e=BA(p,c?void 0:a.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,a]),v=f.useMemo((()=>c?a:{...a,subscription:g}),[c,a,g]),b=f.useRef(void 0),E=f.useRef(o),w=f.useRef(void 0),x=f.useRef(!1),S=f.useRef(!1),_=f.useRef(void 0);UA((()=>(S.current=!0,()=>{S.current=!1})),[]);const A=f.useMemo((()=>()=>w.current&&o===E.current?w.current:d(p.getState(),o)),[p,o]),O=f.useMemo((()=>e=>g?function(e,t,r,n,s,o,i,a,c,l,u){if(!e)return()=>{};let p=!1,h=null;const d=()=>{if(p||!a.current)return;const e=t.getState();let r,d;try{r=n(e,s.current)}catch(e){d=e,h=e}d||(h=null),r===o.current?i.current||l():(o.current=r,c.current=r,i.current=!0,u())};return r.onStateChange=d,r.trySubscribe(),d(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}(m,p,g,d,E,b,x,S,w,y,e):()=>{}),[g]);var C,j;let k;C=cO,j=[E,b,x,o,w,y],UA((()=>C(...j)),void 0);try{k=f.useSyncExternalStore(O,A,h?()=>d(h(),o):A)}catch(e){throw _.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${_.current.stack}\n\n`),e}UA((()=>{_.current=void 0,w.current=void 0,b.current=k}));const T=f.useMemo((()=>f.createElement(e,{...k,ref:s})),[s,e,k]);return f.useMemo((()=>m?f.createElement(i.Provider,{value:v},T):T),[i,T,v])}const g=f.memo(l);if(g.WrappedComponent=e,g.displayName=l.displayName=r,c){const t=f.forwardRef((function(e,t){return f.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=r,t.WrappedComponent=e,rO(t,e)}return rO(g,e)}}(((r,n)=>{const s={...n,...e()},o=t.prototype?.mapStateToProps||(e=>({state:e}));return o(r,s)})),Z$(e))(t),tF=(e,t,r,n)=>{for(const s in t){const o=t[s];"function"==typeof o&&o(r[s],n[s],e())}},rF=(e,t,r)=>(t,n)=>{const{fn:s}=e(),o=r(t,"root");class i extends f.Component{constructor(t,r){super(t,r),tF(e,n,t,{})}UNSAFE_componentWillReceiveProps(t){tF(e,n,t,this.props)}render(){const e=V()(this.props,n?Object.keys(n):[]);return f.createElement(o,e)}}return i.displayName=`WithMappedContainer(${s.getDisplayName(o)})`,i},nF=(e,t,r,n)=>s=>{const o=r(e,t,n)("App","root"),{createRoot:i}=gA;i(s).render(f.createElement(o,null))},sF=(e,t,r)=>(n,s,o={})=>{if("string"!=typeof n)throw new TypeError("Need a string, to fetch a component. Was given a "+typeof n);const i=r(n);return i?s?"root"===s?eF(e,i,t()):eF(e,i):i:(o.failSilently||e().log.warn("Could not find component:",n),null)},oF=e=>e.displayName||e.name||"Component";var iF=({getComponents:e,getStore:t,getSystem:r})=>{const n=(s=sF(r,t,e),oI(s,((...e)=>JSON.stringify(e))));var s;const o=(e=>_R(e,((...e)=>e)))(rF(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:o,render:nF(r,t,sF,e)},fn:{getDisplayName:oF}}},aF=({React:e,getSystem:t,getStore:r,getComponents:n})=>{const s={},o=parseInt(e?.version,10);return o>=16&&o<18&&(s.render=((e,t,r,n)=>s=>{const o=r(e,t,n)("App","root");gA.render(f.createElement(o,null),s)})(t,r,sF,n)),{rootInjects:s}};function cF(e){let{fn:t}=e;const r={download:e=>({errActions:r,specSelectors:n,specActions:s,getConfigs:o})=>{let{fetch:i}=t;const a=o();function c(t){if(t instanceof Error||t.status>=400)return s.updateLoadingStatus("failed"),r.newThrownErr(Object.assign(new Error((t.message||t.statusText)+" "+e),{source:"fetch"})),void(!t.status&&t instanceof Error&&function(){try{let t;if("URL"in qN?t=new URL(e):(t=document.createElement("a"),t.href=e),"https:"!==t.protocol&&"https:"===qN.location.protocol){const e=Object.assign(new Error(`Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:"fetch"});return void r.newThrownErr(e)}if(t.origin!==qN.location.origin){const e=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${qN.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:"fetch"});r.newThrownErr(e)}}catch(e){return}}());s.updateLoadingStatus("success"),s.updateSpec(t.text),n.url()!==e&&s.updateUrl(e)}e=e||n.url(),s.updateLoadingStatus("loading"),r.clear({source:"fetch"}),i({url:e,loadSpec:!0,requestInterceptor:a.requestInterceptor||(e=>e),responseInterceptor:a.responseInterceptor||(e=>e),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(c,c)},updateLoadingStatus:e=>{let t=[null,"loading","failed","success","failedConfig"];return-1===t.indexOf(e)&&console.error(`Error: ${e} is not one of ${JSON.stringify(t)}`),{type:"spec_update_loading_status",payload:e}}};let n={loadingStatus:(0,q.Mz)((e=>e||(0,w.Map)()),(e=>e.get("loadingStatus")||null))};return{statePlugins:{spec:{actions:r,reducers:{spec_update_loading_status:(e,t)=>"string"==typeof t.payload?e.set("loadingStatus",t.payload):e},selectors:n}}}}var lF=()=>{BO.registerLanguage("json",zO),BO.registerLanguage("js",qO),BO.registerLanguage("xml",VO),BO.registerLanguage("yaml",GO),BO.registerLanguage("http",XO),BO.registerLanguage("bash",KO),BO.registerLanguage("powershell",QO),BO.registerLanguage("javascript",qO)};const uF={agate:eC,arta:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#222",color:"#aaa"},"hljs-subst":{color:"#aaa"},"hljs-section":{color:"#fff",fontWeight:"bold"},"hljs-comment":{color:"#444"},"hljs-quote":{color:"#444"},"hljs-meta":{color:"#444"},"hljs-string":{color:"#ffcc33"},"hljs-symbol":{color:"#ffcc33"},"hljs-bullet":{color:"#ffcc33"},"hljs-regexp":{color:"#ffcc33"},"hljs-number":{color:"#00cc66"},"hljs-addition":{color:"#00cc66"},"hljs-built_in":{color:"#32aaee"},"hljs-builtin-name":{color:"#32aaee"},"hljs-literal":{color:"#32aaee"},"hljs-type":{color:"#32aaee"},"hljs-template-variable":{color:"#32aaee"},"hljs-attribute":{color:"#32aaee"},"hljs-link":{color:"#32aaee"},"hljs-keyword":{color:"#6644aa"},"hljs-selector-tag":{color:"#6644aa"},"hljs-name":{color:"#6644aa"},"hljs-selector-id":{color:"#6644aa"},"hljs-selector-class":{color:"#6644aa"},"hljs-title":{color:"#bb1166"},"hljs-variable":{color:"#bb1166"},"hljs-deletion":{color:"#bb1166"},"hljs-template-tag":{color:"#bb1166"},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},monokai:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#272822",color:"#ddd"},"hljs-tag":{color:"#f92672"},"hljs-keyword":{color:"#f92672",fontWeight:"bold"},"hljs-selector-tag":{color:"#f92672",fontWeight:"bold"},"hljs-literal":{color:"#f92672",fontWeight:"bold"},"hljs-strong":{color:"#f92672"},"hljs-name":{color:"#f92672"},"hljs-code":{color:"#66d9ef"},"hljs-class .hljs-title":{color:"white"},"hljs-attribute":{color:"#bf79db"},"hljs-symbol":{color:"#bf79db"},"hljs-regexp":{color:"#bf79db"},"hljs-link":{color:"#bf79db"},"hljs-string":{color:"#a6e22e"},"hljs-bullet":{color:"#a6e22e"},"hljs-subst":{color:"#a6e22e"},"hljs-title":{color:"#a6e22e",fontWeight:"bold"},"hljs-section":{color:"#a6e22e",fontWeight:"bold"},"hljs-emphasis":{color:"#a6e22e"},"hljs-type":{color:"#a6e22e",fontWeight:"bold"},"hljs-built_in":{color:"#a6e22e"},"hljs-builtin-name":{color:"#a6e22e"},"hljs-selector-attr":{color:"#a6e22e"},"hljs-selector-pseudo":{color:"#a6e22e"},"hljs-addition":{color:"#a6e22e"},"hljs-variable":{color:"#a6e22e"},"hljs-template-tag":{color:"#a6e22e"},"hljs-template-variable":{color:"#a6e22e"},"hljs-comment":{color:"#75715e"},"hljs-quote":{color:"#75715e"},"hljs-deletion":{color:"#75715e"},"hljs-meta":{color:"#75715e"},"hljs-doctag":{fontWeight:"bold"},"hljs-selector-id":{fontWeight:"bold"}},nord:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#2E3440",color:"#D8DEE9"},"hljs-subst":{color:"#D8DEE9"},"hljs-selector-tag":{color:"#81A1C1"},"hljs-selector-id":{color:"#8FBCBB",fontWeight:"bold"},"hljs-selector-class":{color:"#8FBCBB"},"hljs-selector-attr":{color:"#8FBCBB"},"hljs-selector-pseudo":{color:"#88C0D0"},"hljs-addition":{backgroundColor:"rgba(163, 190, 140, 0.5)"},"hljs-deletion":{backgroundColor:"rgba(191, 97, 106, 0.5)"},"hljs-built_in":{color:"#8FBCBB"},"hljs-type":{color:"#8FBCBB"},"hljs-class":{color:"#8FBCBB"},"hljs-function":{color:"#88C0D0"},"hljs-function > .hljs-title":{color:"#88C0D0"},"hljs-keyword":{color:"#81A1C1"},"hljs-literal":{color:"#81A1C1"},"hljs-symbol":{color:"#81A1C1"},"hljs-number":{color:"#B48EAD"},"hljs-regexp":{color:"#EBCB8B"},"hljs-string":{color:"#A3BE8C"},"hljs-title":{color:"#8FBCBB"},"hljs-params":{color:"#D8DEE9"},"hljs-bullet":{color:"#81A1C1"},"hljs-code":{color:"#8FBCBB"},"hljs-emphasis":{fontStyle:"italic"},"hljs-formula":{color:"#8FBCBB"},"hljs-strong":{fontWeight:"bold"},"hljs-link:hover":{textDecoration:"underline"},"hljs-quote":{color:"#4C566A"},"hljs-comment":{color:"#4C566A"},"hljs-doctag":{color:"#8FBCBB"},"hljs-meta":{color:"#5E81AC"},"hljs-meta-keyword":{color:"#5E81AC"},"hljs-meta-string":{color:"#A3BE8C"},"hljs-attr":{color:"#8FBCBB"},"hljs-attribute":{color:"#D8DEE9"},"hljs-builtin-name":{color:"#81A1C1"},"hljs-name":{color:"#81A1C1"},"hljs-section":{color:"#88C0D0"},"hljs-tag":{color:"#81A1C1"},"hljs-variable":{color:"#D8DEE9"},"hljs-template-variable":{color:"#D8DEE9"},"hljs-template-tag":{color:"#5E81AC"},"abnf .hljs-attribute":{color:"#88C0D0"},"abnf .hljs-symbol":{color:"#EBCB8B"},"apache .hljs-attribute":{color:"#88C0D0"},"apache .hljs-section":{color:"#81A1C1"},"arduino .hljs-built_in":{color:"#88C0D0"},"aspectj .hljs-meta":{color:"#D08770"},"aspectj > .hljs-title":{color:"#88C0D0"},"bnf .hljs-attribute":{color:"#8FBCBB"},"clojure .hljs-name":{color:"#88C0D0"},"clojure .hljs-symbol":{color:"#EBCB8B"},"coq .hljs-built_in":{color:"#88C0D0"},"cpp .hljs-meta-string":{color:"#8FBCBB"},"css .hljs-built_in":{color:"#88C0D0"},"css .hljs-keyword":{color:"#D08770"},"diff .hljs-meta":{color:"#8FBCBB"},"ebnf .hljs-attribute":{color:"#8FBCBB"},"glsl .hljs-built_in":{color:"#88C0D0"},"groovy .hljs-meta:not(:first-child)":{color:"#D08770"},"haxe .hljs-meta":{color:"#D08770"},"java .hljs-meta":{color:"#D08770"},"ldif .hljs-attribute":{color:"#8FBCBB"},"lisp .hljs-name":{color:"#88C0D0"},"lua .hljs-built_in":{color:"#88C0D0"},"moonscript .hljs-built_in":{color:"#88C0D0"},"nginx .hljs-attribute":{color:"#88C0D0"},"nginx .hljs-section":{color:"#5E81AC"},"pf .hljs-built_in":{color:"#88C0D0"},"processing .hljs-built_in":{color:"#88C0D0"},"scss .hljs-keyword":{color:"#81A1C1"},"stylus .hljs-keyword":{color:"#81A1C1"},"swift .hljs-meta":{color:"#D08770"},"vim .hljs-built_in":{color:"#88C0D0",fontStyle:"italic"},"yaml .hljs-meta":{color:"#D08770"}},obsidian:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#282b2e",color:"#e0e2e4"},"hljs-keyword":{color:"#93c763",fontWeight:"bold"},"hljs-selector-tag":{color:"#93c763",fontWeight:"bold"},"hljs-literal":{color:"#93c763",fontWeight:"bold"},"hljs-selector-id":{color:"#93c763"},"hljs-number":{color:"#ffcd22"},"hljs-attribute":{color:"#668bb0"},"hljs-code":{color:"white"},"hljs-class .hljs-title":{color:"white"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-regexp":{color:"#d39745"},"hljs-link":{color:"#d39745"},"hljs-meta":{color:"#557182"},"hljs-tag":{color:"#8cbbad"},"hljs-name":{color:"#8cbbad",fontWeight:"bold"},"hljs-bullet":{color:"#8cbbad"},"hljs-subst":{color:"#8cbbad"},"hljs-emphasis":{color:"#8cbbad"},"hljs-type":{color:"#8cbbad",fontWeight:"bold"},"hljs-built_in":{color:"#8cbbad"},"hljs-selector-attr":{color:"#8cbbad"},"hljs-selector-pseudo":{color:"#8cbbad"},"hljs-addition":{color:"#8cbbad"},"hljs-variable":{color:"#8cbbad"},"hljs-template-tag":{color:"#8cbbad"},"hljs-template-variable":{color:"#8cbbad"},"hljs-string":{color:"#ec7600"},"hljs-symbol":{color:"#ec7600"},"hljs-comment":{color:"#818e96"},"hljs-quote":{color:"#818e96"},"hljs-deletion":{color:"#818e96"},"hljs-selector-class":{color:"#A082BD"},"hljs-doctag":{fontWeight:"bold"},"hljs-title":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"}},"tomorrow-night":{"hljs-comment":{color:"#969896"},"hljs-quote":{color:"#969896"},"hljs-variable":{color:"#cc6666"},"hljs-template-variable":{color:"#cc6666"},"hljs-tag":{color:"#cc6666"},"hljs-name":{color:"#cc6666"},"hljs-selector-id":{color:"#cc6666"},"hljs-selector-class":{color:"#cc6666"},"hljs-regexp":{color:"#cc6666"},"hljs-deletion":{color:"#cc6666"},"hljs-number":{color:"#de935f"},"hljs-built_in":{color:"#de935f"},"hljs-builtin-name":{color:"#de935f"},"hljs-literal":{color:"#de935f"},"hljs-type":{color:"#de935f"},"hljs-params":{color:"#de935f"},"hljs-meta":{color:"#de935f"},"hljs-link":{color:"#de935f"},"hljs-attribute":{color:"#f0c674"},"hljs-string":{color:"#b5bd68"},"hljs-symbol":{color:"#b5bd68"},"hljs-bullet":{color:"#b5bd68"},"hljs-addition":{color:"#b5bd68"},"hljs-title":{color:"#81a2be"},"hljs-section":{color:"#81a2be"},"hljs-keyword":{color:"#b294bb"},"hljs-selector-tag":{color:"#b294bb"},hljs:{display:"block",overflowX:"auto",background:"#1d1f21",color:"#c5c8c6",padding:"0.5em"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},idea:{hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#fff"},"hljs-subst":{fontWeight:"normal",color:"#000"},"hljs-title":{fontWeight:"normal",color:"#000"},"hljs-comment":{color:"#808080",fontStyle:"italic"},"hljs-quote":{color:"#808080",fontStyle:"italic"},"hljs-meta":{color:"#808000"},"hljs-tag":{background:"#efefef"},"hljs-section":{fontWeight:"bold",color:"#000080"},"hljs-name":{fontWeight:"bold",color:"#000080"},"hljs-literal":{fontWeight:"bold",color:"#000080"},"hljs-keyword":{fontWeight:"bold",color:"#000080"},"hljs-selector-tag":{fontWeight:"bold",color:"#000080"},"hljs-type":{fontWeight:"bold",color:"#000080"},"hljs-selector-id":{fontWeight:"bold",color:"#000080"},"hljs-selector-class":{fontWeight:"bold",color:"#000080"},"hljs-attribute":{fontWeight:"bold",color:"#0000ff"},"hljs-number":{fontWeight:"normal",color:"#0000ff"},"hljs-regexp":{fontWeight:"normal",color:"#0000ff"},"hljs-link":{fontWeight:"normal",color:"#0000ff"},"hljs-string":{color:"#008000",fontWeight:"bold"},"hljs-symbol":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-bullet":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-formula":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-doctag":{textDecoration:"underline"},"hljs-variable":{color:"#660e7a"},"hljs-template-variable":{color:"#660e7a"},"hljs-addition":{background:"#baeeba"},"hljs-deletion":{background:"#ffc8bd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}}},pF=eC;var hF=({language:e,className:t="",getConfigs:r,syntaxHighlighting:n={},children:s=""})=>{const o=r().syntaxHighlight.theme,{styles:i,defaultStyle:a}=n,c=i?.[o]??a;return f.createElement(BO,{language:e,className:t,style:c},s)},dF=({fileName:e="response.txt",className:t,downloadable:r,getComponent:n,canCopy:s,language:o,children:i})=>{const a=(0,f.useRef)(null),c=n("SyntaxHighlighter",!0),l=e=>{const{target:t,deltaY:r}=e,{scrollHeight:n,offsetHeight:s,scrollTop:o}=t;n>s&&(0===o&&r<0||s+o>=n&&r>0)&&e.preventDefault()};return(0,f.useEffect)((()=>{const e=Array.from(a.current.childNodes).filter((e=>!!e.nodeType&&e.classList.contains("microlight")));return e.forEach((e=>e.addEventListener("mousewheel",l,{passive:!1}))),()=>{e.forEach((e=>e.removeEventListener("mousewheel",l)))}}),[i,t,o]),f.createElement("div",{className:"highlight-code",ref:a},s&&f.createElement("div",{className:"copy-to-clipboard"},f.createElement(yr.CopyToClipboard,{text:i},f.createElement("button",null))),r?f.createElement("button",{className:"download-contents",onClick:()=>{nC()(i,e)}},"Download"):null,f.createElement(c,{language:o,className:gr()(t,"microlight"),renderPlainText:({children:e,PlainTextViewer:r})=>f.createElement(r,{className:t},e)},i))},fF=({className:e="",children:t})=>f.createElement("pre",{className:gr()("microlight",e)},t),mF=(e,t)=>({renderPlainText:r,children:n,...s})=>{const o=t.getConfigs().syntaxHighlight.activated,i=t.getComponent("PlainTextViewer");return o||"function"!=typeof r?o?f.createElement(e,s,n):f.createElement(i,null,n):r({children:n,PlainTextViewer:i})};const gF=()=>({afterLoad:lF,rootInjects:{syntaxHighlighting:{styles:uF,defaultStyle:pF}},components:{SyntaxHighlighter:hF,HighlightCode:dF,PlainTextViewer:fF}}),yF=()=>({wrapComponents:{SyntaxHighlighter:mF}});var vF=()=>[gF,yF],bF=()=>{const{GIT_DIRTY:e,GIT_COMMIT:t,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.32.6",GIT_COMMIT:"g871b8974",GIT_DIRTY:!0,BUILD_TIME:"Tue, 12 May 2026 09:34:58 GMT"};qN.versions=qN.versions||{},qN.versions.swaggerUI={version:r,gitRevision:t,gitDirty:e,buildTimestamp:n}},EF=()=>({afterLoad:bF});const wF=console.error,xF=e=>t=>{const{getComponent:r,fn:n}=e(),s=r("ErrorBoundary"),o=n.getDisplayName(t);class i extends f.Component{render(){return f.createElement(s,{targetName:o,getComponent:r,fn:n},f.createElement(t,fr({},this.props,this.context)))}}var a;return i.displayName=`WithErrorBoundary(${o})`,(a=t).prototype&&a.prototype.isReactComponent&&(i.prototype.mapStateToProps=t.prototype.mapStateToProps),i};var SF=({name:e})=>f.createElement("div",{className:"fallback"},"😱 ",f.createElement("i",null,"Could not render ","t"===e?"this component":e,", see the console.")),_F=class extends f.Component{static defaultProps={targetName:"this component",getComponent:()=>SF,fn:{componentDidCatch:wF},children:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}constructor(...e){super(...e),this.state={hasError:!1,error:null}}componentDidCatch(e,t){this.props.fn.componentDidCatch(e,t)}render(){const{getComponent:e,targetName:t,children:r}=this.props;if(this.state.hasError){const r=e("Fallback");return f.createElement(r,{name:t})}return r}},AF=({componentList:e=[],fullOverride:t=!1}={})=>({getSystem:r})=>{const n=t?e:["App","BaseLayout","VersionPragmaFilter","InfoContainer","ServersContainer","SchemesContainer","AuthorizeBtnContainer","FilterContainer","Operations","OperationContainer","parameters","responses","OperationServers","Models","ModelWrapper",...e],s=oC()(n,Array(n.length).fill(((e,{fn:t})=>t.withErrorBoundary(e))));return{fn:{componentDidCatch:wF,withErrorBoundary:xF(r)},components:{ErrorBoundary:_F,Fallback:SF},wrapComponents:s}};class OF extends f.Component{getLayout(){const{getComponent:e,layoutSelectors:t}=this.props,r=t.current();return e(r,!0)||(()=>f.createElement("h1",null,' No layout defined for "',r,'" '))}render(){const e=this.getLayout();return f.createElement(e,null)}}var CF=OF;class jF extends f.Component{close=()=>{let{authActions:e}=this.props;e.showDefinitions(!1)};render(){let{authSelectors:e,authActions:t,getComponent:r,errSelectors:n,specSelectors:s,fn:{AST:o={}}}=this.props,i=e.shownDefinitions();const a=r("auths"),c=r("CloseIcon");return f.createElement("div",{className:"dialog-ux"},f.createElement("div",{className:"backdrop-ux"}),f.createElement("div",{className:"modal-ux"},f.createElement("div",{className:"modal-dialog-ux"},f.createElement("div",{className:"modal-ux-inner"},f.createElement("div",{className:"modal-ux-header"},f.createElement("h3",null,"Available authorizations"),f.createElement("button",{type:"button",className:"close-modal",onClick:this.close},f.createElement(c,null))),f.createElement("div",{className:"modal-ux-content"},i.valueSeq().map(((i,c)=>f.createElement(a,{key:c,AST:o,definitions:i,getComponent:r,errSelectors:n,authSelectors:e,authActions:t,specSelectors:s}))))))))}}class kF extends f.Component{render(){let{isAuthorized:e,showPopup:t,onClick:r,getComponent:n}=this.props;const s=n("authorizationPopup",!0),o=n("LockAuthIcon",!0),i=n("UnlockAuthIcon",!0);return f.createElement("div",{className:"auth-wrapper"},f.createElement("button",{className:e?"btn authorize locked":"btn authorize unlocked",onClick:r},f.createElement("span",null,"Authorize"),e?f.createElement(o,null):f.createElement(i,null)),t&&f.createElement(s,null))}}class TF extends f.Component{render(){const{authActions:e,authSelectors:t,specSelectors:r,getComponent:n}=this.props,s=r.securityDefinitions(),o=t.definitionsToAuthorize(),i=n("authorizeBtn");return s?f.createElement(i,{onClick:()=>e.showDefinitions(o),isAuthorized:!!t.authorized().size,showPopup:!!t.shownDefinitions(),getComponent:n}):null}}class NF extends f.Component{onClick=e=>{e.stopPropagation();let{onClick:t}=this.props;t&&t()};render(){let{isAuthorized:e,getComponent:t}=this.props;const r=t("LockAuthOperationIcon",!0),n=t("UnlockAuthOperationIcon",!0);return f.createElement("button",{className:"authorization__btn","aria-label":e?"authorization button locked":"authorization button unlocked",onClick:this.onClick},e?f.createElement(r,{className:"locked"}):f.createElement(n,{className:"unlocked"}))}}class IF extends f.Component{constructor(e,t){super(e,t),this.state={}}onAuthChange=e=>{let{name:t}=e;this.setState({[t]:e})};submitAuth=e=>{e.preventDefault();let{authActions:t}=this.props;t.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:t,definitions:r}=this.props,n=r.map(((e,t)=>t)).toArray();this.setState(n.reduce(((e,t)=>(e[t]="",e)),{})),t.logoutWithPersistOption(n)};close=e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)};render(){let{definitions:e,getComponent:t,authSelectors:r,errSelectors:n}=this.props;const s=t("AuthItem"),o=t("oauth2",!0),i=t("Button");let a=r.authorized(),c=e.filter(((e,t)=>!!a.get(t))),l=e.filter((e=>"oauth2"!==e.get("type"))),u=e.filter((e=>"oauth2"===e.get("type")));return f.createElement("div",{className:"auth-container"},!!l.size&&f.createElement("form",{onSubmit:this.submitAuth},l.map(((e,o)=>f.createElement(s,{key:o,schema:e,name:o,getComponent:t,onAuthChange:this.onAuthChange,authorized:a,errSelectors:n,authSelectors:r}))).toArray(),f.createElement("div",{className:"auth-btn-wrapper"},l.size===c.size?f.createElement(i,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):f.createElement(i,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),f.createElement(i,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),u&&u.size?f.createElement("div",null,f.createElement("div",{className:"scope-def"},f.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),f.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((e=>"oauth2"===e.get("type"))).map(((e,t)=>f.createElement("div",{key:t},f.createElement(o,{authorized:a,schema:e,name:t})))).toArray()):null)}}class PF extends f.Component{render(){let{schema:e,name:t,getComponent:r,onAuthChange:n,authorized:s,errSelectors:o,authSelectors:i}=this.props;const a=r("apiKeyAuth"),c=r("basicAuth");let l;const u=e.get("type");switch(u){case"apiKey":l=f.createElement(a,{key:t,schema:e,name:t,errSelectors:o,authorized:s,getComponent:r,onChange:n,authSelectors:i});break;case"basic":l=f.createElement(c,{key:t,schema:e,name:t,errSelectors:o,authorized:s,getComponent:r,onChange:n,authSelectors:i});break;default:l=f.createElement("div",{key:t},"Unknown security definition type ",u)}return f.createElement("div",{key:`${t}-jump`},l)}}class MF extends f.Component{render(){let{error:e}=this.props,t=e.get("level"),r=e.get("message"),n=e.get("source");return f.createElement("div",{className:"errors"},f.createElement("b",null,n," ",t),f.createElement("span",null,r))}}class RF extends f.Component{constructor(e,t){super(e,t);let{name:r,schema:n}=this.props,s=this.getValue();this.state={name:r,schema:n,value:s}}getValue(){let{name:e,authorized:t}=this.props;return t&&t.getIn([e,"value"])}onChange=e=>{let{onChange:t}=this.props,r=e.target.value,n=Object.assign({},this.state,{value:r});this.setState(n),t(n)};render(){let{schema:e,getComponent:t,errSelectors:r,name:n,authSelectors:s}=this.props;const o=t("Input"),i=t("Row"),a=t("Col"),c=t("authError"),l=t("Markdown",!0),u=t("JumpToPath",!0),p=s.selectAuthPath(n);let h=this.getValue(),d=r.allErrors().filter((e=>e.get("authId")===n));return f.createElement("div",null,f.createElement("h4",null,f.createElement("code",null,n||e.get("name"))," (apiKey)",f.createElement(u,{path:p})),h&&f.createElement("h6",null,"Authorized"),f.createElement(i,null,f.createElement(l,{source:e.get("description")})),f.createElement(i,null,f.createElement("p",null,"Name: ",f.createElement("code",null,e.get("name")))),f.createElement(i,null,f.createElement("p",null,"In: ",f.createElement("code",null,e.get("in")))),f.createElement(i,null,f.createElement("label",{htmlFor:"api_key_value"},"Value:"),h?f.createElement("code",null," ****** "):f.createElement(a,null,f.createElement(o,{id:"api_key_value",type:"text",onChange:this.onChange,autoFocus:!0}))),d.valueSeq().map(((e,t)=>f.createElement(c,{error:e,key:t}))))}}class DF extends f.Component{constructor(e,t){super(e,t);let{schema:r,name:n}=this.props,s=this.getValue().username;this.state={name:n,schema:r,value:s?{username:s}:{}}}getValue(){let{authorized:e,name:t}=this.props;return e&&e.getIn([t,"value"])||{}}onChange=e=>{let{onChange:t}=this.props,{value:r,name:n}=e.target,s=this.state.value;s[n]=r,this.setState({value:s}),t(this.state)};render(){let{schema:e,getComponent:t,name:r,errSelectors:n,authSelectors:s}=this.props;const o=t("Input"),i=t("Row"),a=t("Col"),c=t("authError"),l=t("JumpToPath",!0),u=t("Markdown",!0),p=s.selectAuthPath(r);let h=this.getValue().username,d=n.allErrors().filter((e=>e.get("authId")===r));return f.createElement("div",null,f.createElement("h4",null,"Basic authorization",f.createElement(l,{path:p})),h&&f.createElement("h6",null,"Authorized"),f.createElement(i,null,f.createElement(u,{source:e.get("description")})),f.createElement(i,null,f.createElement("label",{htmlFor:"auth_username"},"Username:"),h?f.createElement("code",null," ",h," "):f.createElement(a,null,f.createElement(o,{id:"auth_username",type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),f.createElement(i,null,f.createElement("label",{htmlFor:"auth_password"},"Password:"),h?f.createElement("code",null," ****** "):f.createElement(a,null,f.createElement(o,{id:"auth_password",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),d.valueSeq().map(((e,t)=>f.createElement(c,{error:e,key:t}))))}}function $F(e){const{example:t,showValue:r,getComponent:n}=e,s=n("Markdown",!0),o=n("HighlightCode",!0);return t&&w.Map.isMap(t)?f.createElement("div",{className:"example"},t.get("description")?f.createElement("section",{className:"example__section"},f.createElement("div",{className:"example__section-header"},"Example Description"),f.createElement("p",null,f.createElement(s,{source:t.get("description")}))):null,r&&t.has("value")?f.createElement("section",{className:"example__section"},f.createElement("div",{className:"example__section-header"},"Example Value"),f.createElement(o,null,wI(t.get("value")))):null):null}class FF extends f.PureComponent{static defaultProps={examples:(0,w.Map)({}),onSelect:(...e)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...e),currentExampleKey:null,showLabels:!0};_onSelect=(e,{isSyntheticChange:t=!1}={})=>{"function"==typeof this.props.onSelect&&this.props.onSelect(e,{isSyntheticChange:t})};_onDomSelect=e=>{if("function"==typeof this.props.onSelect){const t=e.target.selectedOptions[0].getAttribute("value");this._onSelect(t,{isSyntheticChange:!1})}};getCurrentExample=()=>{const{examples:e,currentExampleKey:t}=this.props,r=e.get(t),n=e.keySeq().first(),s=e.get(n);return r||s||(0,w.Map)({})};componentDidMount(){const{onSelect:e,examples:t}=this.props;if("function"==typeof e){const e=t.first(),r=t.keyOf(e);this._onSelect(r,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(e){const{currentExampleKey:t,examples:r}=e;if(r!==this.props.examples&&!r.has(t)){const e=r.first(),t=r.keyOf(e);this._onSelect(t,{isSyntheticChange:!0})}}render(){const{examples:e,currentExampleKey:t,isValueModified:r,isModifiedValueAvailable:n,showLabels:s}=this.props;return f.createElement("div",{className:"examples-select"},s?f.createElement("span",{className:"examples-select__section-label"},"Examples: "):null,f.createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:n&&r?"__MODIFIED__VALUE__":t||""},n?f.createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,e.map(((e,t)=>f.createElement("option",{key:t,value:t},w.Map.isMap(e)&&e.get("summary")||t))).valueSeq()))}}const BF=e=>w.List.isList(e)?e:wI(e);class LF extends f.PureComponent{static defaultProps={userHasEditedBody:!1,examples:(0,w.Map)({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:(...e)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...e),updateValue:(...e)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...e)};constructor(e){super(e);const t=this._getCurrentExampleValue();this.state={[e.currentNamespace]:(0,w.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:t,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==t})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}_getStateForCurrentNamespace=()=>{const{currentNamespace:e}=this.props;return(this.state[e]||(0,w.Map)()).toObject()};_setStateForCurrentNamespace=e=>{const{currentNamespace:t}=this.props;return this._setStateForNamespace(t,e)};_setStateForNamespace=(e,t)=>{const r=(this.state[e]||(0,w.Map)()).mergeDeep(t);return this.setState({[e]:r})};_isCurrentUserInputSameAsExampleValue=()=>{const{currentUserInputValue:e}=this.props;return this._getCurrentExampleValue()===e};_getValueForExample=(e,t)=>{const{examples:r}=t||this.props;return BF((r||(0,w.Map)({})).getIn([e,"value"]))};_getCurrentExampleValue=e=>{const{currentKey:t}=e||this.props;return this._getValueForExample(t,e||this.props)};_onExamplesSelect=(e,{isSyntheticChange:t}={},...r)=>{const{onSelect:n,updateValue:s,currentUserInputValue:o,userHasEditedBody:i}=this.props,{lastUserEditedValue:a}=this._getStateForCurrentNamespace(),c=this._getValueForExample(e);if("__MODIFIED__VALUE__"===e)return s(BF(a)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});"function"==typeof n&&n(e,{isSyntheticChange:t},...r),this._setStateForCurrentNamespace({lastDownstreamValue:c,isModifiedValueSelected:t&&i||!!o&&o!==c}),t||"function"==typeof s&&s(BF(c))};UNSAFE_componentWillReceiveProps(e){const{currentUserInputValue:t,examples:r,onSelect:n,userHasEditedBody:s}=e,{lastUserEditedValue:o,lastDownstreamValue:i}=this._getStateForCurrentNamespace(),a=this._getValueForExample(e.currentKey,e),c=r.filter((e=>w.Map.isMap(e)&&(e.get("value")===t||wI(e.get("value"))===t)));if(c.size){let t;t=c.has(e.currentKey)?e.currentKey:c.keySeq().first(),n(t,{isSyntheticChange:!0})}else t!==this.props.currentUserInputValue&&t!==o&&t!==i&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(e.currentNamespace,{lastUserEditedValue:e.currentUserInputValue,isModifiedValueSelected:s||t!==a}))}render(){const{currentUserInputValue:e,examples:t,currentKey:r,getComponent:n,userHasEditedBody:s}=this.props,{lastDownstreamValue:o,lastUserEditedValue:i,isModifiedValueSelected:a}=this._getStateForCurrentNamespace(),c=n("ExamplesSelect");return f.createElement(c,{examples:t,currentExampleKey:r,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!i&&i!==o,isValueModified:void 0!==e&&a&&e!==this._getCurrentExampleValue()||s})}}class qF extends f.Component{constructor(e,t){super(e,t);let{name:r,schema:n,authorized:s,authSelectors:o}=this.props,i=s&&s.get(r),a=o.getConfigs()||{},c=i&&i.get("username")||"",l=i&&i.get("clientId")||a.clientId||"",u=i&&i.get("clientSecret")||a.clientSecret||"",p=i&&i.get("passwordType")||"basic",h=i&&i.get("scopes")||a.scopes||[];"string"==typeof h&&(h=h.split(a.scopeSeparator||" ")),this.state={appName:a.appName,name:r,schema:n,scopes:h,clientId:l,clientSecret:u,username:c,password:"",passwordType:p}}close=e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)};authorize=()=>{let{authActions:e,errActions:t,getConfigs:r,authSelectors:n,oas3Selectors:s}=this.props,o=r(),i=n.getConfigs();t.clear({authId:name,type:"auth",source:"auth"}),function({auth:e,authActions:t,errActions:r,configs:n,authConfigs:s={},currentServer:o}){let{schema:i,scopes:a,name:c,clientId:l}=e,u=i.get("flow"),p=[];switch(u){case"password":return void t.authorizePassword(e);case"application":case"clientCredentials":case"client_credentials":return void t.authorizeApplication(e);case"accessCode":case"authorizationCode":case"authorization_code":p.push("response_type=code");break;case"implicit":p.push("response_type=token")}"string"==typeof l&&p.push("client_id="+encodeURIComponent(l));let h=n.oauth2RedirectUrl;if(void 0===h)return void r.newAuthErr({authId:c,source:"validation",level:"error",message:"oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed."});p.push("redirect_uri="+encodeURIComponent(h));let d=[];if(Array.isArray(a)?d=a:x().List.isList(a)&&(d=a.toArray()),d.length>0){let e=s.scopeSeparator||" ";p.push("scope="+encodeURIComponent(d.join(e)))}let f=uI(new Date);if(p.push("state="+encodeURIComponent(f)),void 0!==s.realm&&p.push("realm="+encodeURIComponent(s.realm)),("authorizationCode"===u||"authorization_code"===u||"accessCode"===u)&&s.usePkceWithAuthorizationCodeGrant){const t=_I(zN()(32).toString("base64")),r=function(e){return _I(VN()("sha256").update(e).digest("base64"))}(t);p.push("code_challenge="+r),p.push("code_challenge_method=S256"),e.codeVerifier=t}let{additionalQueryStringParams:m}=s;for(let e in m)void 0!==m[e]&&p.push([e,m[e]].map(encodeURIComponent).join("="));const g=i.get("authorizationUrl");let y;y=o?L()(XM(g),o,!0).toString():XM(g);let v,b=[y,p.join("&")].join("string"!=typeof g||g.includes("?")?"&":"?");v="implicit"===u?t.preAuthorizeImplicit:s.useBasicAuthenticationWithAccessCodeGrant?t.authorizeAccessCodeWithBasicAuthentication:t.authorizeAccessCodeWithFormParams,t.authPopup(b,{auth:e,state:f,redirectUrl:h,callback:v,errCb:r.newAuthErr})}({auth:this.state,currentServer:s.serverEffectiveValue(s.selectedServer()),authActions:e,errActions:t,configs:o,authConfigs:i})};onScopeChange=e=>{let{target:t}=e,{checked:r}=t,n=t.dataset.value;if(r&&-1===this.state.scopes.indexOf(n)){let e=this.state.scopes.concat([n]);this.setState({scopes:e})}else!r&&this.state.scopes.indexOf(n)>-1&&this.setState({scopes:this.state.scopes.filter((e=>e!==n))})};onInputChange=e=>{let{target:{dataset:{name:t},value:r}}=e,n={[t]:r};this.setState(n)};selectScopes=e=>{e.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).keys())}):this.setState({scopes:[]})};logout=e=>{e.preventDefault();let{authActions:t,errActions:r,name:n}=this.props;r.clear({authId:n,type:"auth",source:"auth"}),t.logoutWithPersistOption([n])};render(){let{schema:e,getComponent:t,authSelectors:r,errSelectors:n,name:s,specSelectors:o}=this.props;const i=t("Input"),a=t("Row"),c=t("Col"),l=t("Button"),u=t("authError"),p=t("JumpToPath",!0),h=t("Markdown",!0),d=t("InitializedInput"),{isOAS3:m}=o;let g=m()?e.get("openIdConnectUrl"):null;const y="implicit",v="password",b=m()?g?"authorization_code":"authorizationCode":"accessCode",E=m()?g?"client_credentials":"clientCredentials":"application",w=r.selectAuthPath(s);let x=!!(r.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,S=e.get("flow"),_=S===b&&x?S+" with PKCE":S,A=e.get("allowedScopes")||e.get("scopes"),O=!!r.authorized().get(s),C=n.allErrors().filter((e=>e.get("authId")===s)),j=!C.filter((e=>"validation"===e.get("source"))).size,k=e.get("description");return f.createElement("div",null,f.createElement("h4",null,s," (OAuth2, ",_,") ",f.createElement(p,{path:w})),this.state.appName?f.createElement("h5",null,"Application: ",this.state.appName," "):null,k&&f.createElement(h,{source:e.get("description")}),O&&f.createElement("h6",null,"Authorized"),g&&f.createElement("p",null,"OpenID Connect URL: ",f.createElement("code",null,g)),(S===y||S===b)&&f.createElement("p",null,"Authorization URL: ",f.createElement("code",null,e.get("authorizationUrl"))),(S===v||S===b||S===E)&&f.createElement("p",null,"Token URL:",f.createElement("code",null," ",e.get("tokenUrl"))),f.createElement("p",{className:"flow"},"Flow: ",f.createElement("code",null,_)),S!==v?null:f.createElement(a,null,f.createElement(a,null,f.createElement("label",{htmlFor:"oauth_username"},"username:"),O?f.createElement("code",null," ",this.state.username," "):f.createElement(c,{tablet:10,desktop:10},f.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),f.createElement(a,null,f.createElement("label",{htmlFor:"oauth_password"},"password:"),O?f.createElement("code",null," ****** "):f.createElement(c,{tablet:10,desktop:10},f.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),f.createElement(a,null,f.createElement("label",{htmlFor:"password_type"},"Client credentials location:"),O?f.createElement("code",null," ",this.state.passwordType," "):f.createElement(c,{tablet:10,desktop:10},f.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},f.createElement("option",{value:"basic"},"Authorization header"),f.createElement("option",{value:"request-body"},"Request body"))))),(S===E||S===y||S===b||S===v)&&(!O||O&&this.state.clientId)&&f.createElement(a,null,f.createElement("label",{htmlFor:`client_id_${S}`},"client_id:"),O?f.createElement("code",null," ****** "):f.createElement(c,{tablet:10,desktop:10},f.createElement(d,{id:`client_id_${S}`,type:"text",required:S===v,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(S===E||S===b||S===v)&&f.createElement(a,null,f.createElement("label",{htmlFor:`client_secret_${S}`},"client_secret:"),O?f.createElement("code",null," ****** "):f.createElement(c,{tablet:10,desktop:10},f.createElement(d,{id:`client_secret_${S}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!O&&A&&A.size?f.createElement("div",{className:"scopes"},f.createElement("h2",null,"Scopes:",f.createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),f.createElement("a",{onClick:this.selectScopes},"select none")),A.map(((e,t)=>f.createElement(a,{key:t},f.createElement("div",{className:"checkbox"},f.createElement(i,{"data-value":t,id:`${t}-${S}-checkbox-${this.state.name}`,disabled:O,checked:this.state.scopes.includes(t),type:"checkbox",onChange:this.onScopeChange}),f.createElement("label",{htmlFor:`${t}-${S}-checkbox-${this.state.name}`},f.createElement("span",{className:"item"}),f.createElement("div",{className:"text"},f.createElement("p",{className:"name"},t),f.createElement("p",{className:"description"},e))))))).toArray()):null,C.valueSeq().map(((e,t)=>f.createElement(u,{error:e,key:t}))),f.createElement("div",{className:"auth-btn-wrapper"},j&&(O?f.createElement(l,{className:"btn modal-btn auth authorize",onClick:this.logout,"aria-label":"Remove authorization"},"Logout"):f.createElement(l,{className:"btn modal-btn auth authorize",onClick:this.authorize,"aria-label":"Apply given OAuth2 credentials"},"Authorize")),f.createElement(l,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class UF extends f.Component{onClick=()=>{let{specActions:e,path:t,method:r}=this.props;e.clearResponse(t,r),e.clearRequest(t,r)};render(){return f.createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const zF=({headers:e})=>f.createElement("div",null,f.createElement("h5",null,"Response headers"),f.createElement("pre",{className:"microlight"},e)),JF=({duration:e})=>f.createElement("div",null,f.createElement("h5",null,"Request duration"),f.createElement("pre",{className:"microlight"},e," ms"));class VF extends f.Component{shouldComponentUpdate(e){return this.props.response!==e.response||this.props.path!==e.path||this.props.method!==e.method||this.props.displayRequestDuration!==e.displayRequestDuration}render(){const{response:e,getComponent:t,getConfigs:r,displayRequestDuration:n,specSelectors:s,path:o,method:i}=this.props,{showMutatedRequest:a,requestSnippetsEnabled:c}=r(),l=a?s.mutatedRequestFor(o,i):s.requestFor(o,i),u=e.get("status"),p=l.get("url"),h=e.get("headers").toJS(),d=e.get("notDocumented"),m=e.get("error"),g=e.get("text"),y=e.get("duration"),v=Object.keys(h),b=h["content-type"]||h["Content-Type"],E=t("responseBody"),w=v.map((e=>{var t=Array.isArray(h[e])?h[e].join():h[e];return f.createElement("span",{className:"headerline",key:e}," ",e,": ",t," ")})),x=0!==w.length,S=t("Markdown",!0),_=t("RequestSnippets",!0),A=t("curl",!0);return f.createElement("div",null,l&&c?f.createElement(_,{request:l}):f.createElement(A,{request:l}),p&&f.createElement("div",null,f.createElement("div",{className:"request-url"},f.createElement("h4",null,"Request URL"),f.createElement("pre",{className:"microlight"},p))),f.createElement("h4",null,"Server response"),f.createElement("table",{className:"responses-table live-responses-table"},f.createElement("thead",null,f.createElement("tr",{className:"responses-header"},f.createElement("td",{className:"col_header response-col_status"},"Code"),f.createElement("td",{className:"col_header response-col_description"},"Details"))),f.createElement("tbody",null,f.createElement("tr",{className:"response"},f.createElement("td",{className:"response-col_status"},u,d?f.createElement("div",{className:"response-undocumented"},f.createElement("i",null," Undocumented ")):null),f.createElement("td",{className:"response-col_description"},m?f.createElement(S,{source:`${""!==e.get("name")?`${e.get("name")}: `:""}${e.get("message")}`}):null,g?f.createElement(E,{content:g,contentType:b,url:p,headers:h,getConfigs:r,getComponent:t}):null,x?f.createElement(zF,{headers:w}):null,n&&y?f.createElement(JF,{duration:y}):null)))))}}class WF extends f.Component{constructor(e,t){super(e,t);let{getConfigs:r}=e,{validatorUrl:n}=r();this.state={url:this.getDefinitionUrl(),validatorUrl:void 0===n?"https://validator.swagger.io/validator":n}}getDefinitionUrl=()=>{let{specSelectors:e}=this.props;return new(L())(e.url(),qN.location).toString()};UNSAFE_componentWillReceiveProps(e){let{getConfigs:t}=e,{validatorUrl:r}=t();this.setState({url:this.getDefinitionUrl(),validatorUrl:void 0===r?"https://validator.swagger.io/validator":r})}render(){let{getConfigs:e}=this.props,{spec:t}=e(),r=XM(this.state.validatorUrl);return"object"==typeof t&&Object.keys(t).length?null:this.state.url&&fI(this.state.validatorUrl)&&fI(this.state.url)?f.createElement("span",{className:"float-right"},f.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${r}/debug?url=${encodeURIComponent(this.state.url)}`},f.createElement(KF,{src:`${r}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class KF extends f.Component{constructor(e){super(e),this.state={loaded:!1,error:!1}}componentDidMount(){const e=new Image;e.onload=()=>{this.setState({loaded:!0})},e.onerror=()=>{this.setState({error:!0})},e.src=this.props.src}UNSAFE_componentWillReceiveProps(e){if(e.src!==this.props.src){const t=new Image;t.onload=()=>{this.setState({loaded:!0})},t.onerror=()=>{this.setState({error:!0})},t.src=e.src}}render(){return this.state.error?f.createElement("img",{alt:"Error"}):this.state.loaded?f.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}class HF extends f.Component{render(){let{specSelectors:e}=this.props;const t=e.taggedOperations();return 0===t.size?f.createElement("h3",null," No operations defined in spec!"):f.createElement("div",null,t.map(this.renderOperationTag).toArray(),t.size<1?f.createElement("h3",null," No operations defined in spec! "):null)}renderOperationTag=(e,t)=>{const{specSelectors:r,getComponent:n,oas3Selectors:s,layoutSelectors:o,layoutActions:i,getConfigs:a}=this.props,c=r.validOperationMethods(),l=n("OperationContainer",!0),u=n("OperationTag"),p=e.get("operations");return f.createElement(u,{key:"operation-"+t,tagObj:e,tag:t,oas3Selectors:s,layoutSelectors:o,layoutActions:i,getConfigs:a,getComponent:n,specUrl:r.url()},f.createElement("div",{className:"operation-tag-content"},p.map((e=>{const r=e.get("path"),n=e.get("method"),s=e.get("specPath");return-1===c.indexOf(n)?null:f.createElement(l,{key:`${r}-${n}`,specPath:s,op:e,path:r,method:n,tag:t})})).toArray()))}}class GF extends f.Component{static defaultProps={tagObj:x().fromJS({}),tag:""};render(){const{tagObj:e,tag:t,children:r,oas3Selectors:n,layoutSelectors:s,layoutActions:o,getConfigs:i,getComponent:a,specUrl:c}=this.props;let{docExpansion:l,deepLinking:u}=i();const p=a("Collapse"),h=a("Markdown",!0),d=a("DeepLink"),m=a("Link"),g=a("ArrowUpIcon"),y=a("ArrowDownIcon");let v,b=e.getIn(["tagDetails","description"],null),E=e.getIn(["tagDetails","externalDocs","description"]),w=e.getIn(["tagDetails","externalDocs","url"]);v=nI(n)&&nI(n.selectedServer)?YM(w,c,{selectedServer:n.selectedServer()}):w;let x=["operations-tag",t],S=s.isShown(x,"full"===l||"list"===l);return f.createElement("div",{className:S?"opblock-tag-section is-open":"opblock-tag-section"},f.createElement("h3",{onClick:()=>o.show(x,!S),className:b?"opblock-tag":"opblock-tag no-desc",id:x.map((e=>gI(e))).join("-"),"data-tag":t,"data-is-open":S},f.createElement(d,{enabled:u,isShown:S,path:mI(t),text:t}),b?f.createElement("small",null,f.createElement(h,{source:b})):f.createElement("small",null),v?f.createElement("div",{className:"info__externaldocs"},f.createElement("small",null,f.createElement(m,{href:XM(v),onClick:e=>e.stopPropagation(),target:"_blank"},E||v))):null,f.createElement("button",{"aria-expanded":S,className:"expand-operation",title:S?"Collapse operation":"Expand operation",onClick:()=>o.show(x,!S)},S?f.createElement(g,{className:"arrow"}):f.createElement(y,{className:"arrow"}))),f.createElement(p,{isOpened:S},r))}}class YF extends f.PureComponent{static defaultProps={operation:null,response:null,request:null,specPath:(0,w.List)(),summary:""};render(){let{specPath:e,response:t,request:r,toggleShown:n,onTryoutClick:s,onResetClick:o,onCancelClick:i,onExecute:a,fn:c,getComponent:l,getConfigs:u,specActions:p,specSelectors:h,authActions:d,authSelectors:m,oas3Actions:g,oas3Selectors:y}=this.props,v=this.props.operation,{deprecated:b,isShown:E,path:w,method:S,op:_,tag:A,operationId:O,allowTryItOut:C,displayRequestDuration:j,tryItOutEnabled:k,executeInProgress:T}=v.toObject();const N=_.get("description"),I=_.get("externalDocs")?.toJS(),P=_.get("schemes")?.toJS(),M=I?YM(I.url,h.url(),{selectedServer:y.selectedServer()}):"";let R=v.getIn(["op"]),D=R.get("responses"),$=function(e,t){if(!x().Iterable.isIterable(e))return x().List();let r=e.getIn(Array.isArray(t)?t:[t]);return x().List.isList(r)?r:x().List()}(R,["parameters"]),F=h.operationScheme(w,S),B=["operations",A,O],L=vI(R);const q=l("responses",!0),U=l("parameters",!0),z=l("execute"),J=l("clear"),V=l("Collapse"),W=l("Markdown",!0),K=l("schemes"),H=l("OperationServers"),G=l("OperationExt"),Y=l("OperationSummary"),X=l("Link"),{showExtensions:Z}=u();if(D&&t&&t.size>0){let e=!D.get(String(t.get("status")))&&!D.get("default");t=t.set("notDocumented",e)}let Q=[w,S];const ee=h.validationErrors([w,S]);return f.createElement("div",{className:b?"opblock opblock-deprecated":E?`opblock opblock-${S} is-open`:`opblock opblock-${S}`,id:gI(B.join("-"))},f.createElement(Y,{operationProps:v,isShown:E,toggleShown:n,getComponent:l,authActions:d,authSelectors:m,specPath:e}),f.createElement(V,{isOpened:E},f.createElement("div",{className:"opblock-body"},R&&R.size||null===R?null:f.createElement(JM,{height:"32px",width:"32px",className:"opblock-loading-animation"}),b&&f.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),N&&f.createElement("div",{className:"opblock-description-wrapper"},f.createElement("div",{className:"opblock-description"},f.createElement(W,{source:N}))),M?f.createElement("div",{className:"opblock-external-docs-wrapper"},f.createElement("h4",{className:"opblock-title_normal"},"Find more details"),f.createElement("div",{className:"opblock-external-docs"},I.description&&f.createElement("span",{className:"opblock-external-docs__description"},f.createElement(W,{source:I.description})),f.createElement(X,{target:"_blank",className:"opblock-external-docs__link",href:XM(M)},M))):null,R&&R.size?f.createElement(U,{parameters:$,specPath:e.push("parameters"),operation:R,onChangeKey:Q,onTryoutClick:s,onResetClick:o,onCancelClick:i,tryItOutEnabled:k,allowTryItOut:C,fn:c,getComponent:l,specActions:p,specSelectors:h,pathMethod:[w,S],getConfigs:u,oas3Actions:g,oas3Selectors:y}):null,k?f.createElement(H,{getComponent:l,path:w,method:S,operationServers:R.get("servers"),pathServers:h.paths().getIn([w,"servers"]),getSelectedServer:y.selectedServer,setSelectedServer:g.setSelectedServer,setServerVariableValue:g.setServerVariableValue,getServerVariable:y.serverVariableValue,getEffectiveServerValue:y.serverEffectiveValue}):null,k&&C&&P&&P.size?f.createElement("div",{className:"opblock-schemes"},f.createElement(K,{schemes:P,path:w,method:S,specActions:p,currentScheme:F})):null,!k||!C||ee.length<=0?null:f.createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",f.createElement("ul",null,ee.map(((e,t)=>f.createElement("li",{key:t}," ",e," "))))),f.createElement("div",{className:k&&t&&C?"btn-group":"execute-wrapper"},k&&C?f.createElement(z,{operation:R,specActions:p,specSelectors:h,oas3Selectors:y,oas3Actions:g,path:w,method:S,onExecute:a,disabled:T}):null,k&&t&&C?f.createElement(J,{specActions:p,path:w,method:S}):null),T?f.createElement("div",{className:"loading-container"},f.createElement("div",{className:"loading"})):null,D?f.createElement(q,{responses:D,request:r,tryItOutResponse:t,getComponent:l,getConfigs:u,specSelectors:h,oas3Actions:g,oas3Selectors:y,specActions:p,produces:h.producesOptionsFor([w,S]),producesValue:h.currentProducesFor([w,S]),specPath:e.push("responses"),path:w,method:S,displayRequestDuration:j,fn:c}):null,Z&&L.size?f.createElement(G,{extensions:L,getComponent:l}):null)))}}class XF extends f.PureComponent{constructor(e,t){super(e,t);const{tryItOutEnabled:r}=e.getConfigs();this.state={tryItOutEnabled:r,executeInProgress:!1}}static defaultProps={showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1};mapStateToProps(e,t){const{op:r,layoutSelectors:n,getConfigs:s}=t,{docExpansion:o,deepLinking:i,displayOperationId:a,displayRequestDuration:c,supportedSubmitMethods:l}=s(),u=n.showSummary(),p=r.getIn(["operation","__originalOperationId"])||r.getIn(["operation","operationId"])||ac(r.get("operation"),t.path,t.method)||r.get("id"),h=["operations",t.tag,p],d=l.indexOf(t.method)>=0&&(void 0===t.allowTryItOut?t.specSelectors.allowTryItOutFor(t.path,t.method):t.allowTryItOut),f=r.getIn(["operation","security"])||t.specSelectors.security();return{operationId:p,isDeepLinkingEnabled:i,showSummary:u,displayOperationId:a,displayRequestDuration:c,allowTryItOut:d,security:f,isAuthorized:t.authSelectors.isAuthorized(f),isShown:n.isShown(h,"full"===o),jumpToKey:`paths.${t.path}.${t.method}`,response:t.specSelectors.responseFor(t.path,t.method),request:t.specSelectors.requestFor(t.path,t.method)}}componentDidMount(){const{isShown:e}=this.props,t=this.getResolvedSubtree();e&&void 0===t&&this.requestResolvedSubtree()}componentDidUpdate(e){const{response:t,isShown:r}=this.props,n=this.getResolvedSubtree();t!==e.response&&this.setState({executeInProgress:!1}),r&&void 0===n&&this.requestResolvedSubtree()}toggleShown=()=>{let{layoutActions:e,tag:t,operationId:r,isShown:n}=this.props;const s=this.getResolvedSubtree();n||void 0!==s||this.requestResolvedSubtree(),e.show(["operations",t,r],!n)};onCancelClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onTryoutClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onResetClick=e=>{const t=this.props.oas3Selectors.selectDefaultRequestBodyValue(...e),r=this.props.oas3Selectors.requestContentType(...e);if("application/x-www-form-urlencoded"===r||"multipart/form-data"===r){const r=JSON.parse(t);Object.entries(r).forEach((([e,t])=>{Array.isArray(t)?r[e]=r[e].map((e=>"object"==typeof e?JSON.stringify(e,null,2):e)):"object"==typeof t&&(r[e]=JSON.stringify(r[e],null,2))})),this.props.oas3Actions.setRequestBodyValue({value:(0,w.fromJS)(r),pathMethod:e})}else this.props.oas3Actions.setRequestBodyValue({value:t,pathMethod:e})};onExecute=()=>{this.setState({executeInProgress:!0})};getResolvedSubtree=()=>{const{specSelectors:e,path:t,method:r,specPath:n}=this.props;return n?e.specResolvedSubtree(n.toJS()):e.specResolvedSubtree(["paths",t,r])};requestResolvedSubtree=()=>{const{specActions:e,path:t,method:r,specPath:n}=this.props;return n?e.requestResolvedSubtree(n.toJS()):e.requestResolvedSubtree(["paths",t,r])};render(){let{op:e,tag:t,path:r,method:n,security:s,isAuthorized:o,operationId:i,showSummary:a,isShown:c,jumpToKey:l,allowTryItOut:u,response:p,request:h,displayOperationId:d,displayRequestDuration:m,isDeepLinkingEnabled:g,specPath:y,specSelectors:v,specActions:b,getComponent:E,getConfigs:x,layoutSelectors:S,layoutActions:_,authActions:A,authSelectors:O,oas3Actions:C,oas3Selectors:j,fn:k}=this.props;const T=E("operation"),N=this.getResolvedSubtree()||(0,w.Map)(),I=(0,w.fromJS)({op:N,tag:t,path:r,summary:e.getIn(["operation","summary"])||"",deprecated:N.get("deprecated")||e.getIn(["operation","deprecated"])||!1,method:n,security:s,isAuthorized:o,operationId:i,originalOperationId:N.getIn(["operation","__originalOperationId"]),showSummary:a,isShown:c,jumpToKey:l,allowTryItOut:u,request:h,displayOperationId:d,displayRequestDuration:m,isDeepLinkingEnabled:g,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return f.createElement(T,{operation:I,response:p,request:h,isShown:c,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:y,specActions:b,specSelectors:v,oas3Actions:C,oas3Selectors:j,layoutActions:_,layoutSelectors:S,authActions:A,authSelectors:O,getComponent:E,getConfigs:x,fn:k})}}class ZF extends f.PureComponent{static defaultProps={operationProps:null,specPath:(0,w.List)(),summary:""};render(){let{isShown:e,toggleShown:t,getComponent:r,authActions:n,authSelectors:s,operationProps:o,specPath:i}=this.props,{summary:a,isAuthorized:c,method:l,op:u,showSummary:p,path:h,operationId:d,originalOperationId:m,displayOperationId:g}=o.toObject();const y=u.get("summary"),v=o.get("security"),b=r("authorizeOperationBtn",!0),E=r("OperationSummaryMethod"),w=r("OperationSummaryPath"),x=r("JumpToPath",!0),S=r("CopyToClipboardBtn",!0),_=r("ArrowUpIcon"),A=r("ArrowDownIcon"),O=v&&!!v.count(),C=O&&1===v.size&&v.first().isEmpty(),j=!O||C;return f.createElement("div",{className:`opblock-summary opblock-summary-${l}`},f.createElement("button",{"aria-expanded":e,className:"opblock-summary-control",onClick:t},f.createElement(E,{method:l}),f.createElement("div",{className:"opblock-summary-path-description-wrapper"},f.createElement(w,{getComponent:r,operationProps:o,specPath:i}),p?f.createElement("div",{className:"opblock-summary-description"},aC()(y||a)):null),g&&(m||d)?f.createElement("span",{className:"opblock-summary-operation-id"},m||d):null),f.createElement(S,{textToCopy:`${i.get(1)}`}),j?null:f.createElement(b,{isAuthorized:c,onClick:()=>{const e=s.definitionsForRequirements(v);n.showDefinitions(e)}}),f.createElement(x,{path:i}),f.createElement("button",{"aria-label":`${l} ${h.replace(/\//g,"/")}`,className:"opblock-control-arrow","aria-expanded":e,tabIndex:"-1",onClick:t},e?f.createElement(_,{className:"arrow"}):f.createElement(A,{className:"arrow"})))}}class QF extends f.PureComponent{static defaultProps={operationProps:null};render(){let{method:e}=this.props;return f.createElement("span",{className:"opblock-summary-method"},e.toUpperCase())}}class eB extends f.PureComponent{render(){let{getComponent:e,operationProps:t}=this.props,{deprecated:r,isShown:n,path:s,tag:o,operationId:i,isDeepLinkingEnabled:a}=t.toObject();const c=s.split(/(?=\/)/g);for(let e=1;e<c.length;e+=2)c.splice(e,0,f.createElement("wbr",{key:e}));const l=e("DeepLink");return f.createElement("span",{className:r?"opblock-summary-path__deprecated":"opblock-summary-path","data-path":s},f.createElement(l,{enabled:a,isShown:n,path:mI(`${o}/${i}`),text:c}))}}var tB=({extensions:e,getComponent:t})=>{let r=t("OperationExtRow");return f.createElement("div",{className:"opblock-section"},f.createElement("div",{className:"opblock-section-header"},f.createElement("h4",null,"Extensions")),f.createElement("div",{className:"table-container"},f.createElement("table",null,f.createElement("thead",null,f.createElement("tr",null,f.createElement("td",{className:"col_header"},"Field"),f.createElement("td",{className:"col_header"},"Value"))),f.createElement("tbody",null,e.entrySeq().map((([e,t])=>f.createElement(r,{key:`${e}-${t}`,xKey:e,xVal:t})))))))},rB=({xKey:e,xVal:t})=>{const r=t?t.toJS?t.toJS():t:null;return f.createElement("tr",null,f.createElement("td",null,e),f.createElement("td",null,JSON.stringify(r)))};function nB(e,t="_"){return e.replace(/[^\w-]/g,t)}class sB extends f.Component{static defaultProps={tryItOutResponse:null,produces:(0,w.fromJS)(["application/json"]),displayRequestDuration:!1};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);onResponseContentTypeChange=({controlsAcceptHeader:e,value:t})=>{const{oas3Actions:r,path:n,method:s}=this.props;e&&r.setResponseContentType({value:t,path:n,method:s})};render(){let{responses:e,tryItOutResponse:t,getComponent:r,getConfigs:n,specSelectors:s,fn:o,producesValue:i,displayRequestDuration:a,specPath:c,path:l,method:u,oas3Selectors:p,oas3Actions:h}=this.props,d=function(e){let t=e.keySeq();return t.contains(GN)?GN:t.filter((e=>"2"===(e+"")[0])).sort().first()}(e);const m=r("contentType"),g=r("liveResponse"),y=r("response");let v=this.props.produces&&this.props.produces.size?this.props.produces:sB.defaultProps.produces;const b=s.isOAS3()?function(e){if(!x().OrderedMap.isOrderedMap(e))return null;if(!e.size)return null;const t=e.find(((e,t)=>t.startsWith("2")&&Object.keys(e.get("content")||{}).length>0)),r=e.get("default")||x().OrderedMap(),n=(r.get("content")||x().OrderedMap()).keySeq().toJS().length?r:null;return t||n}(e):null,E=e.filter(((e,t)=>!yI(t))),w=nB(`${u}${l}_responses`),S=`${w}_select`;return E&&E.size?f.createElement("div",{className:"responses-wrapper"},f.createElement("div",{className:"opblock-section-header"},f.createElement("h4",null,"Responses"),s.isOAS3()?null:f.createElement("label",{htmlFor:S},f.createElement("span",null,"Response content type"),f.createElement(m,{value:i,ariaControls:w,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:v,controlId:S,onChange:this.onChangeProducesWrapper}))),f.createElement("div",{className:"responses-inner"},t?f.createElement("div",null,f.createElement(g,{response:t,getComponent:r,getConfigs:n,specSelectors:s,path:this.props.path,method:this.props.method,displayRequestDuration:a}),f.createElement("h4",null,"Responses")):null,f.createElement("table",{"aria-live":"polite",className:"responses-table",id:w,role:"region"},f.createElement("thead",null,f.createElement("tr",{className:"responses-header"},f.createElement("td",{className:"col_header response-col_status"},"Code"),f.createElement("td",{className:"col_header response-col_description"},"Description"),s.isOAS3()?f.createElement("td",{className:"col col_header response-col_links"},"Links"):null)),f.createElement("tbody",null,E.entrySeq().map((([e,a])=>{let m=t&&t.get("status")==e?"response_current":"";return f.createElement(y,{key:e,path:l,method:u,specPath:c.push(e),isDefault:d===e,fn:o,className:m,code:e,response:a,specSelectors:s,controlsAcceptHeader:a===b,onContentTypeChange:this.onResponseContentTypeChange,contentType:i,getConfigs:n,activeExamplesKey:p.activeExamplesMember(l,u,"responses",e),oas3Actions:h,getComponent:r})})).toArray())))):null}}function oB(e){return function(e){try{return!!JSON.parse(e)}catch(e){return null}}(e)?"json":null}class iB extends f.Component{constructor(e,t){super(e,t),this.state={responseContentType:""}}static defaultProps={response:(0,w.fromJS)({}),onContentTypeChange:()=>{}};_onContentTypeChange=e=>{const{onContentTypeChange:t,controlsAcceptHeader:r}=this.props;this.setState({responseContentType:e}),t({value:e,controlsAcceptHeader:r})};getTargetExamplesKey=()=>{const{response:e,contentType:t,activeExamplesKey:r}=this.props,n=this.state.responseContentType||t,s=e.getIn(["content",n],(0,w.Map)({})).get("examples",null).keySeq().first();return r||s};render(){let{path:e,method:t,code:r,response:n,className:s,specPath:o,fn:i,getComponent:a,getConfigs:c,specSelectors:l,contentType:u,controlsAcceptHeader:p,oas3Actions:h}=this.props,{inferSchema:d,getSampleSchema:m}=i,g=l.isOAS3();const{showExtensions:y}=c();let v=y?vI(n):null,b=n.get("headers"),E=n.get("links");const x=a("ResponseExtension"),S=a("headers"),_=a("HighlightCode",!0),A=a("modelExample"),O=a("Markdown",!0),C=a("operationLink"),j=a("contentType"),k=a("ExamplesSelect"),T=a("Example");var N,I;const P=this.state.responseContentType||u,M=n.getIn(["content",P],(0,w.Map)({})),R=M.get("examples",null);if(g){const e=M.get("schema");N=e?d(e.toJS()):null,I=e?o.push("content",this.state.responseContentType,"schema"):o}else N=n.get("schema"),I=n.has("schema")?o.push("schema"):o;let D,$,F=!1,B={includeReadOnly:!0};if(g)if($=M.get("schema")?.toJS(),w.Map.isMap(R)&&!R.isEmpty()){const e=this.getTargetExamplesKey(),t=e=>w.Map.isMap(e)?e.get("value"):void 0;D=t(R.get(e,(0,w.Map)({}))),void 0===D&&(D=t(R.values().next().value)),F=!0}else void 0!==M.get("example")&&(D=M.get("example"),F=!0);else{$=N,B={...B,includeWriteOnly:!0};const e=n.getIn(["examples",P]);e&&(D=e,F=!0)}const L=((e,t)=>{if(null==e)return null;const r=oB(e)?"json":null;return f.createElement("div",null,f.createElement(t,{className:"example",language:r},wI(e)))})(m($,P,B,F?D:void 0),_);return f.createElement("tr",{className:"response "+(s||""),"data-code":r},f.createElement("td",{className:"response-col_status"},r),f.createElement("td",{className:"response-col_description"},f.createElement("div",{className:"response-col_description__inner"},f.createElement(O,{source:n.get("description")})),y&&v.size?v.entrySeq().map((([e,t])=>f.createElement(x,{key:`${e}-${t}`,xKey:e,xVal:t}))):null,g&&n.get("content")?f.createElement("section",{className:"response-controls"},f.createElement("div",{className:gr()("response-control-media-type",{"response-control-media-type--accept-controller":p})},f.createElement("small",{className:"response-control-media-type__title"},"Media type"),f.createElement(j,{value:this.state.responseContentType,contentTypes:n.get("content")?n.get("content").keySeq():(0,w.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),p?f.createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",f.createElement("code",null,"Accept")," header."):null),w.Map.isMap(R)&&!R.isEmpty()?f.createElement("div",{className:"response-control-examples"},f.createElement("small",{className:"response-control-examples__title"},"Examples"),f.createElement(k,{examples:R,currentExampleKey:this.getTargetExamplesKey(),onSelect:n=>h.setActiveExamplesMember({name:n,pathMethod:[e,t],contextType:"responses",contextName:r}),showLabels:!1})):null):null,L||N?f.createElement(A,{specPath:I,getComponent:a,getConfigs:c,specSelectors:l,schema:QN(N),example:L,includeReadOnly:!0}):null,g&&R?f.createElement(T,{example:R.get(this.getTargetExamplesKey(),(0,w.Map)({})),getComponent:a,getConfigs:c,omitValue:!0}):null,b?f.createElement(S,{headers:b,getComponent:a}):null),g?f.createElement("td",{className:"response-col_links"},E?E.toSeq().entrySeq().map((([e,t])=>f.createElement(C,{key:e,name:e,link:t,getComponent:a}))):f.createElement("i",null,"No links")):null)}}var aB=({xKey:e,xVal:t})=>f.createElement("div",{className:"response__extension"},e,": ",String(t));class cB extends f.PureComponent{state={parsedContent:null};updateParsedContent=e=>{const{content:t}=this.props;if(e!==t)if(t&&t instanceof Blob){var r=new FileReader;r.onload=()=>{this.setState({parsedContent:r.result})},r.readAsText(t)}else this.setState({parsedContent:t.toString()})};componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(e){this.updateParsedContent(e.content)}render(){let{content:e,contentType:t,url:r,headers:n={},getComponent:s}=this.props;const{parsedContent:o}=this.state,i=s("HighlightCode",!0),a="response_"+(new Date).getTime();let c,l;if(r=r||"",(/^application\/octet-stream/i.test(t)||n["Content-Disposition"]&&/attachment/i.test(n["Content-Disposition"])||n["content-disposition"]&&/attachment/i.test(n["content-disposition"])||n["Content-Description"]&&/File Transfer/i.test(n["Content-Description"])||n["content-description"]&&/File Transfer/i.test(n["content-description"]))&&(e.size>0||e.length>0))if("Blob"in window){let s=t||"text/html",o=e instanceof Blob?e:new Blob([e],{type:s}),i=window.URL.createObjectURL(o),a=[s,r.substr(r.lastIndexOf("/")+1),i].join(":"),c=n["content-disposition"]||n["Content-Disposition"];if(void 0!==c){let e=function(e){let t;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((r=>(t=r.exec(e),null!==t))),null!==t&&t.length>1)try{return decodeURIComponent(t[1])}catch(e){console.error(e)}return null}(c);null!==e&&(a=e)}l=qN.navigator&&qN.navigator.msSaveOrOpenBlob?f.createElement("div",null,f.createElement("a",{href:i,onClick:()=>qN.navigator.msSaveOrOpenBlob(o,a)},"Download file")):f.createElement("div",null,f.createElement("a",{href:i,download:a},"Download file"))}else l=f.createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(t)){let r=null;oB(e)&&(r="json");try{c=JSON.stringify(JSON.parse(e),null," ")}catch(t){c="can't parse JSON. Raw result:\n\n"+e}l=f.createElement(i,{language:r,downloadable:!0,fileName:`${a}.json`,canCopy:!0},c)}else/xml/i.test(t)?(c=lC()(e,{textNodesOnSameLine:!0,indentor:" "}),l=f.createElement(i,{downloadable:!0,fileName:`${a}.xml`,canCopy:!0},c)):l="text/html"===pC()(t)||/text\/plain/.test(t)?f.createElement(i,{downloadable:!0,fileName:`${a}.html`,canCopy:!0},e):"text/csv"===pC()(t)||/text\/csv/.test(t)?f.createElement(i,{downloadable:!0,fileName:`${a}.csv`,canCopy:!0},e):/^image\//i.test(t)?t.includes("svg")?f.createElement("div",null," ",e," "):f.createElement("img",{src:window.URL.createObjectURL(e)}):/^audio\//i.test(t)?f.createElement("pre",{className:"microlight"},f.createElement("audio",{controls:!0,key:r},f.createElement("source",{src:r,type:t}))):"string"==typeof e?f.createElement(i,{downloadable:!0,fileName:`${a}.txt`,canCopy:!0},e):e.size>0?o?f.createElement("div",null,f.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),f.createElement(i,{downloadable:!0,fileName:`${a}.txt`,canCopy:!0},o)):f.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return l?f.createElement("div",null,f.createElement("h5",null,"Response body"),l):null}}class lB extends f.Component{constructor(e){super(e),this.state={callbackVisible:!1,parametersVisible:!0}}static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]};onChange=(e,t,r)=>{let{specActions:{changeParamByIdentity:n},onChangeKey:s}=this.props;n(s,e,t,r)};onChangeConsumesWrapper=e=>{let{specActions:{changeConsumesValue:t},onChangeKey:r}=this.props;t(r,e)};toggleTab=e=>"parameters"===e?this.setState({parametersVisible:!0,callbackVisible:!1}):"callbacks"===e?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0;onChangeMediaType=({value:e,pathMethod:t})=>{let{specActions:r,oas3Selectors:n,oas3Actions:s}=this.props;const o=n.hasUserEditedBody(...t),i=n.shouldRetainRequestBodyValue(...t);s.setRequestContentType({value:e,pathMethod:t}),s.initRequestBodyValidateError({pathMethod:t}),o||(i||s.setRequestBodyValue({value:void 0,pathMethod:t}),r.clearResponse(...t),r.clearRequest(...t),r.clearValidateParams(t))};render(){let{onTryoutClick:e,onResetClick:t,parameters:r,allowTryItOut:n,tryItOutEnabled:s,specPath:o,fn:i,getComponent:a,getConfigs:c,specSelectors:l,specActions:u,pathMethod:p,oas3Actions:h,oas3Selectors:d,operation:m}=this.props;const g=a("parameterRow"),y=a("TryItOutButton"),v=a("contentType"),b=a("Callbacks",!0),E=a("RequestBody",!0),x=s&&n,S=l.isOAS3(),_=`${nB(`${p[1]}${p[0]}_requests`)}_select`,A=m.get("requestBody"),O=Object.values(r.reduce(((e,t)=>{if(w.Map.isMap(t)){const r=t.get("in");e[r]??=[],e[r].push(t)}return e}),{})).reduce(((e,t)=>e.concat(t)),[]);return f.createElement("div",{className:"opblock-section"},f.createElement("div",{className:"opblock-section-header"},S?f.createElement("div",{className:"tab-header"},f.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},f.createElement("h4",{className:"opblock-title"},f.createElement("span",null,"Parameters"))),m.get("callbacks")?f.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},f.createElement("h4",{className:"opblock-title"},f.createElement("span",null,"Callbacks"))):null):f.createElement("div",{className:"tab-header"},f.createElement("h4",{className:"opblock-title"},"Parameters")),n?f.createElement(y,{isOAS3:l.isOAS3(),hasUserEditedBody:d.hasUserEditedBody(...p),enabled:s,onCancelClick:this.props.onCancelClick,onTryoutClick:e,onResetClick:()=>t(p)}):null),this.state.parametersVisible?f.createElement("div",{className:"parameters-container"},O.length?f.createElement("div",{className:"table-container"},f.createElement("table",{className:"parameters"},f.createElement("thead",null,f.createElement("tr",null,f.createElement("th",{className:"col_header parameters-col_name"},"Name"),f.createElement("th",{className:"col_header parameters-col_description"},"Description"))),f.createElement("tbody",null,O.map(((e,t)=>f.createElement(g,{fn:i,specPath:o.push(t.toString()),getComponent:a,getConfigs:c,rawParam:e,param:l.parameterWithMetaByIdentity(p,e),key:`${e.get("in")}.${e.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:l,specActions:u,oas3Actions:h,oas3Selectors:d,pathMethod:p,isExecute:x})))))):f.createElement("div",{className:"opblock-description-wrapper"},f.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?f.createElement("div",{className:"callbacks-container opblock-description-wrapper"},f.createElement(b,{callbacks:(0,w.Map)(m.get("callbacks")),specPath:o.slice(0,-1).push("callbacks")})):null,S&&A&&this.state.parametersVisible&&f.createElement("div",{className:"opblock-section opblock-section-request-body"},f.createElement("div",{className:"opblock-section-header"},f.createElement("h4",{className:`opblock-title parameter__name ${A.get("required")&&"required"}`},"Request body"),f.createElement("label",{id:_},f.createElement(v,{value:d.requestContentType(...p),contentTypes:A.get("content",(0,w.List)()).keySeq(),onChange:e=>{this.onChangeMediaType({value:e,pathMethod:p})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:_}))),f.createElement("div",{className:"opblock-description-wrapper"},f.createElement(E,{setRetainRequestBodyValueFlag:e=>h.setRetainRequestBodyValueFlag({value:e,pathMethod:p}),userHasEditedBody:d.hasUserEditedBody(...p),specPath:o.slice(0,-1).push("requestBody"),requestBody:A,requestBodyValue:d.requestBodyValue(...p),requestBodyInclusionSetting:d.requestBodyInclusionSetting(...p),requestBodyErrors:d.requestBodyErrors(...p),isExecute:x,getConfigs:c,activeExamplesKey:d.activeExamplesMember(...p,"requestBody","requestBody"),updateActiveExamplesKey:e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(e,t)=>{if(t){const r=d.requestBodyValue(...p),n=w.Map.isMap(r)?r:(0,w.Map)();return h.setRequestBodyValue({pathMethod:p,value:n.setIn(t,e)})}h.setRequestBodyValue({value:e,pathMethod:p})},onChangeIncludeEmpty:(e,t)=>{h.setRequestBodyInclusion({pathMethod:p,value:t,name:e})},contentType:d.requestContentType(...p)}))))}}var uB=({xKey:e,xVal:t})=>f.createElement("div",{className:"parameter__extension"},e,": ",String(t));const pB={onChange:()=>{},isIncludedOptions:{}};class hB extends f.Component{static defaultProps=pB;componentDidMount(){const{isIncludedOptions:e,onChange:t}=this.props,{shouldDispatchInit:r,defaultValue:n}=e;r&&t(n)}onCheckboxChange=e=>{const{onChange:t}=this.props;t(e.target.checked)};render(){let{isIncluded:e,isDisabled:t}=this.props;return f.createElement("div",null,f.createElement("label",{htmlFor:"include_empty_value",className:gr()("parameter__empty_value_toggle",{disabled:t})},f.createElement("input",{id:"include_empty_value",type:"checkbox",disabled:t,checked:!t&&e,onChange:this.onCheckboxChange}),"Send empty value"))}}class dB extends f.Component{constructor(e,t){super(e,t),this.setDefaultValue()}UNSAFE_componentWillReceiveProps(e){let t,{specSelectors:r,pathMethod:n,rawParam:s}=e,o=r.isOAS3(),i=r.parameterWithMetaByIdentity(n,s)||new w.Map;if(i=i.isEmpty()?s:i,o){let{schema:e}=KN(i,{isOAS3:o});t=e?e.get("enum"):void 0}else t=i?i.get("enum"):void 0;let a,c=i?i.get("value"):void 0;void 0!==c?a=c:s.get("required")&&t&&t.size&&(a=t.first()),void 0!==a&&a!==c&&this.onChangeWrapper(function(e){return"number"==typeof e?e.toString():e}(a)),this.setDefaultValue()}onChangeWrapper=(e,t=!1)=>{let r,{onChange:n,rawParam:s}=this.props;return r=""===e||e&&0===e.size?null:e,n(s,r,t)};_onExampleSelect=e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})};onChangeIncludeEmpty=e=>{let{specActions:t,param:r,pathMethod:n}=this.props;const s=r.get("name"),o=r.get("in");return t.updateEmptyParamInclusion(n,s,o,e)};setDefaultValue=()=>{let{specSelectors:e,pathMethod:t,rawParam:r,oas3Selectors:n,fn:s}=this.props;const o=e.parameterWithMetaByIdentity(t,r)||(0,w.Map)();let{schema:i}=KN(o,{isOAS3:e.isOAS3()});const a=o.get("content",(0,w.Map)()).keySeq().first(),c=i?s.getSampleSchema(i.toJS(),a,{includeWriteOnly:!0}):null;if(o&&void 0===o.get("value")&&"body"!==o.get("in")){let r;if(e.isSwagger2())r=void 0!==o.get("x-example")?o.get("x-example"):void 0!==o.getIn(["schema","example"])?o.getIn(["schema","example"]):i&&i.getIn(["default"]);else if(e.isOAS3()){i=this.composeJsonSchema(i);const e=n.activeExamplesMember(...t,"parameters",this.getParamKey());r=void 0!==o.getIn(["examples",e,"value"])?o.getIn(["examples",e,"value"]):void 0!==o.getIn(["content",a,"example"])?o.getIn(["content",a,"example"]):void 0!==o.get("example")?o.get("example"):void 0!==(i&&i.get("example"))?i&&i.get("example"):void 0!==(i&&i.get("default"))?i&&i.get("default"):o.get("default")}void 0===r||w.List.isList(r)||(r=wI(r));const l=s.getSchemaObjectType(i),u=s.getSchemaObjectType(i?.get("items"));void 0!==r?this.onChangeWrapper(r):"object"===l&&c&&!o.get("examples")?this.onChangeWrapper(w.List.isList(c)?c:wI(c)):"array"===l&&"object"===u&&c&&!o.get("examples")&&this.onChangeWrapper(w.List.isList(c)?c:(0,w.List)(JSON.parse(c)))}};getParamKey(){const{param:e}=this.props;return e?`${e.get("name")}-${e.get("in")}`:null}composeJsonSchema(e){const{fn:t}=this.props,r=e.get("oneOf")?.get(0)?.toJS(),n=e.get("anyOf")?.get(0)?.toJS();return(0,w.fromJS)(t.mergeJsonSchema(e.toJS(),r??n??{}))}render(){let{param:e,rawParam:t,getComponent:r,getConfigs:n,isExecute:s,fn:o,onChangeConsumes:i,specSelectors:a,pathMethod:c,specPath:l,oas3Selectors:u}=this.props,p=a.isOAS3();const{showExtensions:h,showCommonExtensions:d}=n();if(e||(e=t),!t)return null;const m=r("JsonSchemaForm"),g=r("ParamBody");let y=e.get("in"),v="body"!==y?null:f.createElement(g,{getComponent:r,getConfigs:n,fn:o,param:e,consumes:a.consumesOptionsFor(c),consumesValue:a.contentTypeValues(c).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:i,isExecute:s,specSelectors:a,pathMethod:c});const b=r("modelExample"),E=r("Markdown",!0),x=r("ParameterExt"),S=r("ParameterIncludeEmpty"),_=r("ExamplesSelectValueRetainer"),A=r("Example");let{schema:O}=KN(e,{isOAS3:p}),C=a.parameterWithMetaByIdentity(c,t)||(0,w.Map)();const j=C.get("content",(0,w.Map)()).keySeq().first();p&&(O=this.composeJsonSchema(O));let k=O?O.get("format"):null,T="formData"===y,N="FormData"in qN,I=e.get("required");const P=o.getSchemaObjectType(O),M=o.getSchemaObjectType(O?.get("items")),R=o.getSchemaObjectTypeLabel(O),D=!v&&"object"===P,$=!v&&"object"===M;let F,B,L,q,U=C?C.get("value"):"",z=d?bI(O):null,J=h?vI(e):null,V=!1;void 0!==e&&O&&(F=O.get("items")),void 0!==F?(B=F.get("enum"),L=F.get("default")):O&&(B=O.get("enum")),B&&B.size&&B.size>0&&(V=!0),void 0!==e&&(O&&(L=O.get("default")),void 0===L&&(L=e.get("default")),q=e.get("example"),void 0===q&&(q=e.get("x-example")));const W=v?null:f.createElement(m,{fn:o,getComponent:r,value:U,required:I,disabled:!s,description:e.get("name"),onChange:this.onChangeWrapper,errors:C.get("errors"),schema:O});return f.createElement("tr",{"data-param-name":e.get("name"),"data-param-in":e.get("in")},f.createElement("td",{className:"parameters-col_name"},f.createElement("div",{className:I?"parameter__name required":"parameter__name"},e.get("name"),I?f.createElement("span",null," *"):null),f.createElement("div",{className:"parameter__type"},R,k&&f.createElement("span",{className:"prop-format"},"($",k,")")),f.createElement("div",{className:"parameter__deprecated"},p&&e.get("deprecated")?"deprecated":null),f.createElement("div",{className:"parameter__in"},"(",e.get("in"),")")),f.createElement("td",{className:"parameters-col_description"},e.get("description")?f.createElement(E,{source:e.get("description")}):null,!v&&s||!V?null:f.createElement(E,{className:"parameter__enum",source:"<i>Available values</i> : "+B.map((function(e){return e})).toArray().map(String).join(", ")}),!v&&s||void 0===L?null:f.createElement(E,{className:"parameter__default",source:"<i>Default value</i> : "+L}),!v&&s||void 0===q?null:f.createElement(E,{source:"<i>Example</i> : "+q}),T&&!N&&f.createElement("div",null,"Error: your browser does not support FormData"),p&&e.get("examples")?f.createElement("section",{className:"parameter-controls"},f.createElement(_,{examples:e.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:r,defaultToFirstExample:!0,currentKey:u.activeExamplesMember(...c,"parameters",this.getParamKey()),currentUserInputValue:U})):null,D||$?f.createElement(b,{getComponent:r,specPath:j?l.push("content",j,"schema"):l.push("schema"),getConfigs:n,isExecute:s,specSelectors:a,schema:O,example:W}):W,v&&O?f.createElement(b,{getComponent:r,specPath:l.push("schema"),getConfigs:n,isExecute:s,specSelectors:a,schema:O,example:v,includeWriteOnly:!0}):null,!v&&s&&e.get("allowEmptyValue")?f.createElement(S,{onChange:this.onChangeIncludeEmpty,isIncluded:a.parameterInclusionSettingFor(c,e.get("name"),e.get("in")),isDisabled:!AI(U)}):null,p&&e.get("examples")?f.createElement(A,{example:e.getIn(["examples",u.activeExamplesMember(...c,"parameters",this.getParamKey())]),getComponent:r,getConfigs:n}):null,d&&z.size?z.entrySeq().map((([e,t])=>f.createElement(x,{key:`${e}-${t}`,xKey:e,xVal:t}))):null,h&&J.size?J.entrySeq().map((([e,t])=>f.createElement(x,{key:`${e}-${t}`,xKey:e,xVal:t}))):null))}}class fB extends f.Component{handleValidateParameters=()=>{let{specSelectors:e,specActions:t,path:r,method:n}=this.props;return t.validateParams([r,n]),e.validateBeforeExecute([r,n])};handleValidateRequestBody=()=>{let{path:e,method:t,specSelectors:r,oas3Selectors:n,oas3Actions:s}=this.props,o={missingBodyValue:!1,missingRequiredKeys:[]};s.clearRequestBodyValidateError({path:e,method:t});let i=r.getOAS3RequiredRequestBodyContentType([e,t]),a=n.requestBodyValue(e,t),c=n.validateBeforeExecute([e,t]),l=n.requestContentType(e,t);if(!c)return o.missingBodyValue=!0,s.setRequestBodyValidateError({path:e,method:t,validationErrors:o}),!1;if(!i)return!0;let u=n.validateShallowRequired({oas3RequiredRequestBodyContentType:i,oas3RequestContentType:l,oas3RequestBodyValue:a});return!u||u.length<1||(u.forEach((e=>{o.missingRequiredKeys.push(e)})),s.setRequestBodyValidateError({path:e,method:t,validationErrors:o}),!1)};handleValidationResultPass=()=>{let{specActions:e,operation:t,path:r,method:n}=this.props;this.props.onExecute&&this.props.onExecute(),e.execute({operation:t,path:r,method:n})};handleValidationResultFail=()=>{let{specActions:e,path:t,method:r}=this.props;e.clearValidateParams([t,r]),setTimeout((()=>{e.validateParams([t,r])}),40)};handleValidationResult=e=>{e?this.handleValidationResultPass():this.handleValidationResultFail()};onClick=()=>{let e=this.handleValidateParameters(),t=this.handleValidateRequestBody(),r=e&&t;this.handleValidationResult(r)};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);render(){const{disabled:e}=this.props;return f.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:e},"Execute")}}class mB extends f.Component{render(){let{headers:e,getComponent:t}=this.props;const r=t("Property"),n=t("Markdown",!0);return e&&e.size?f.createElement("div",{className:"headers-wrapper"},f.createElement("h4",{className:"headers__title"},"Headers:"),f.createElement("table",{className:"headers"},f.createElement("thead",null,f.createElement("tr",{className:"header-row"},f.createElement("th",{className:"header-col"},"Name"),f.createElement("th",{className:"header-col"},"Description"),f.createElement("th",{className:"header-col"},"Type"))),f.createElement("tbody",null,e.entrySeq().map((([e,t])=>{if(!x().Map.isMap(t))return null;const s=t.get("description"),o=t.getIn(["schema"])?t.getIn(["schema","type"]):t.getIn(["type"]),i=t.getIn(["schema","example"]);return f.createElement("tr",{key:e},f.createElement("td",{className:"header-col"},e),f.createElement("td",{className:"header-col"},s?f.createElement(n,{source:s}):null),f.createElement("td",{className:"header-col"},o," ",i?f.createElement(r,{propKey:"Example",propVal:i,propClass:"header-example"}):null))})).toArray()))):null}}class gB extends f.Component{render(){let{editorActions:e,errSelectors:t,layoutSelectors:r,layoutActions:n,getComponent:s}=this.props;const o=s("Collapse");if(e&&e.jumpToLine)var i=e.jumpToLine;let a=t.allErrors().filter((e=>"thrown"===e.get("type")||"error"===e.get("level")));if(!a||a.count()<1)return null;let c=r.isShown(["errorPane"],!0),l=a.sortBy((e=>e.get("line")));return f.createElement("pre",{className:"errors-wrapper"},f.createElement("hgroup",{className:"error"},f.createElement("h4",{className:"errors__title"},"Errors"),f.createElement("button",{className:"btn errors__clear-btn",onClick:()=>n.show(["errorPane"],!c)},c?"Hide":"Show")),f.createElement(o,{isOpened:c,animated:!0},f.createElement("div",{className:"errors"},l.map(((e,t)=>{let r=e.get("type");return"thrown"===r||"auth"===r?f.createElement(yB,{key:t,error:e.get("error")||e,jumpToLine:i}):"spec"===r?f.createElement(vB,{key:t,error:e,jumpToLine:i}):void 0})))))}}const yB=({error:e,jumpToLine:t})=>{if(!e)return null;let r=e.get("line");return f.createElement("div",{className:"error-wrapper"},e?f.createElement("div",null,f.createElement("h4",null,e.get("source")&&e.get("level")?bB(e.get("source"))+" "+e.get("level"):"",e.get("path")?f.createElement("small",null," at ",e.get("path")):null),f.createElement("span",{className:"message thrown"},e.get("message")),f.createElement("div",{className:"error-line"},r&&t?f.createElement("a",{onClick:t.bind(null,r)},"Jump to line ",r):null)):null)},vB=({error:e,jumpToLine:t=null})=>{let r=null;return e.get("path")?r=w.List.isList(e.get("path"))?f.createElement("small",null,"at ",e.get("path").join(".")):f.createElement("small",null,"at ",e.get("path")):e.get("line")&&!t&&(r=f.createElement("small",null,"on line ",e.get("line"))),f.createElement("div",{className:"error-wrapper"},e?f.createElement("div",null,f.createElement("h4",null,bB(e.get("source"))+" "+e.get("level")," ",r),f.createElement("span",{className:"message"},e.get("message")),f.createElement("div",{className:"error-line"},t?f.createElement("a",{onClick:t.bind(null,e.get("line"))},"Jump to line ",e.get("line")):null)):null)};function bB(e){return(e||"").split(" ").map((e=>e[0].toUpperCase()+e.slice(1))).join(" ")}const EB=()=>{};class wB extends f.Component{static defaultProps={onChange:EB,value:null,contentTypes:(0,w.fromJS)(["application/json"])};componentDidMount(){const{contentTypes:e,onChange:t}=this.props;e&&e.size&&t(e.first())}componentDidUpdate(){const{contentTypes:e,value:t,onChange:r}=this.props;e&&e.size&&(e.includes(t)||r(e.first()))}onChangeWrapper=e=>this.props.onChange(e.target.value);render(){let{ariaControls:e,ariaLabel:t,className:r,contentTypes:n,controlId:s,value:o}=this.props;return n&&n.size?f.createElement("div",{className:"content-type-wrapper "+(r||"")},f.createElement("select",{"aria-controls":e,"aria-label":t,className:"content-type",id:s,onChange:this.onChangeWrapper,value:o||""},n.map((e=>f.createElement("option",{key:e,value:e},e))).toArray())):null}}function xB(...e){return e.filter((e=>!!e)).join(" ").trim()}class SB extends f.Component{render(){let{fullscreen:e,full:t,...r}=this.props;if(e)return f.createElement("section",r);let n="swagger-container"+(t?"-full":"");return f.createElement("section",fr({},r,{className:xB(r.className,n)}))}}const _B={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class AB extends f.Component{render(){const{hide:e,keepContents:t,mobile:r,tablet:n,desktop:s,large:o,...i}=this.props;if(e&&!t)return f.createElement("span",null);let a=[];for(let e in _B){if(!Object.prototype.hasOwnProperty.call(_B,e))continue;let t=_B[e];if(e in this.props){let r=this.props[e];if(r<1){a.push("none"+t);continue}a.push("block"+t),a.push("col-"+r+t)}}e&&a.push("hidden");let c=xB(i.className,...a);return f.createElement("section",fr({},i,{className:c}))}}class OB extends f.Component{render(){return f.createElement("div",fr({},this.props,{className:xB(this.props.className,"wrapper")}))}}class CB extends f.Component{static defaultProps={className:""};render(){return f.createElement("button",fr({},this.props,{className:xB(this.props.className,"button")}))}}const jB=e=>f.createElement("textarea",e),kB=e=>f.createElement("input",e);class TB extends f.Component{static defaultProps={multiple:!1,allowEmptyValue:!0};constructor(e,t){let r;super(e,t),r=e.value?e.value:e.multiple?[""]:"",this.state={value:r}}onChange=e=>{let t,{onChange:r,multiple:n}=this.props,s=[].slice.call(e.target.options);t=n?s.filter((function(e){return e.selected})).map((function(e){return e.value})):e.target.value,this.setState({value:t}),r&&r(t)};UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){let{allowedValues:e,multiple:t,allowEmptyValue:r,disabled:n}=this.props,s=this.state.value?.toJS?.()||this.state.value;return f.createElement("select",{className:this.props.className,multiple:t,value:s,onChange:this.onChange,disabled:n},r?f.createElement("option",{value:""},"--"):null,e.map((function(e,t){return f.createElement("option",{key:t,value:String(e)},String(e))})))}}class NB extends f.Component{render(){return f.createElement("a",fr({},this.props,{rel:"noopener noreferrer",className:xB(this.props.className,"link")}))}}const IB=({children:e})=>f.createElement("div",{className:"no-margin"}," ",e," ");class PB extends f.Component{static defaultProps={isOpened:!1,animated:!1};renderNotAnimated(){return this.props.isOpened?f.createElement(IB,null,this.props.children):f.createElement("noscript",null)}render(){let{animated:e,isOpened:t,children:r}=this.props;return e?(r=t?r:null,f.createElement(IB,null,r)):this.renderNotAnimated()}}class MB extends f.Component{constructor(...e){super(...e),this.setTagShown=this._setTagShown.bind(this)}_setTagShown(e,t){this.props.layoutActions.show(e,t)}showOp(e,t){let{layoutActions:r}=this.props;r.show(e,t)}render(){let{specSelectors:e,layoutSelectors:t,layoutActions:r,getComponent:n}=this.props,s=e.taggedOperations();const o=n("Collapse");return f.createElement("div",null,f.createElement("h4",{className:"overview-title"},"Overview"),s.map(((e,n)=>{let s=e.get("operations"),i=["overview-tags",n],a=t.isShown(i,!0);return f.createElement("div",{key:"overview-"+n},f.createElement("h4",{onClick:()=>r.show(i,!a),className:"link overview-tag"}," ",a?"-":"+",n),f.createElement(o,{isOpened:a,animated:!0},s.map((e=>{let{path:n,method:s,id:o}=e.toObject(),i="operations",a=o,c=t.isShown([i,a]);return f.createElement(RB,{key:o,path:n,method:s,id:n+"-"+s,shown:c,showOpId:a,showOpIdPrefix:i,href:`#operation-${a}`,onClick:r.show})})).toArray()))})).toArray(),s.size<1&&f.createElement("h3",null," No operations defined in spec! "))}}class RB extends f.Component{constructor(e){super(e),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:e,showOpIdPrefix:t,onClick:r,shown:n}=this.props;r([t,e],!n)}render(){let{id:e,method:t,shown:r,href:n}=this.props;return f.createElement(NB,{href:n,onClick:this.onClick,className:"block opblock-link "+(r?"shown":"")},f.createElement("div",null,f.createElement("small",{className:`bold-label-${t}`},t.toUpperCase()),f.createElement("span",{className:"bold-label"},e)))}}class DB extends f.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:e,defaultValue:t,initialValue:r,...n}=this.props;return f.createElement("input",fr({},n,{ref:e=>this.inputRef=e}))}}class $B extends f.Component{render(){const{host:e,basePath:t}=this.props;return f.createElement("pre",{className:"base-url"},"[ Base URL: ",e,t," ]")}}class FB extends f.PureComponent{render(){const{url:e,getComponent:t}=this.props,r=t("Link");return f.createElement(r,{target:"_blank",href:XM(e)},f.createElement("span",{className:"url"}," ",e))}}class BB extends f.Component{render(){const{info:e,url:t,host:r,basePath:n,getComponent:s,externalDocs:o,selectedServer:i,url:a}=this.props,c=e.get("version"),l=e.get("description"),u=e.get("title"),p=YM(e.get("termsOfService"),a,{selectedServer:i}),h=e.get("contact"),d=e.get("license"),m=YM(o&&o.get("url"),a,{selectedServer:i}),g=o&&o.get("description"),y=s("Markdown",!0),v=s("Link"),b=s("VersionStamp"),E=s("OpenAPIVersion"),w=s("InfoUrl"),x=s("InfoBasePath"),S=s("License"),_=s("Contact");return f.createElement("div",{className:"info"},f.createElement("hgroup",{className:"main"},f.createElement("h1",{className:"title"},u,f.createElement("span",null,c&&f.createElement(b,{version:c}),f.createElement(E,{oasVersion:"2.0"}))),r||n?f.createElement(x,{host:r,basePath:n}):null,t&&f.createElement(w,{getComponent:s,url:t})),f.createElement("div",{className:"description"},f.createElement(y,{source:l})),p&&f.createElement("div",{className:"info__tos"},f.createElement(v,{target:"_blank",href:XM(p)},"Terms of service")),h?.size>0&&f.createElement(_,{getComponent:s,data:h,selectedServer:i,url:t}),d?.size>0&&f.createElement(S,{getComponent:s,license:d,selectedServer:i,url:t}),m?f.createElement(v,{className:"info__extdocs",target:"_blank",href:XM(m)},g||m):null)}}var LB=BB;class qB extends f.Component{render(){const{specSelectors:e,getComponent:t,oas3Selectors:r}=this.props,n=e.info(),s=e.url(),o=e.basePath(),i=e.host(),a=e.externalDocs(),c=r.selectedServer(),l=t("info");return f.createElement("div",null,n&&n.count()?f.createElement(l,{info:n,url:s,host:i,basePath:o,externalDocs:a,getComponent:t,selectedServer:c}):null)}}class UB extends f.Component{render(){const{data:e,getComponent:t,selectedServer:r,url:n}=this.props,s=e.get("name","the developer"),o=YM(e.get("url"),n,{selectedServer:r}),i=e.get("email"),a=t("Link");return f.createElement("div",{className:"info__contact"},o&&f.createElement("div",null,f.createElement(a,{href:XM(o),target:"_blank"},s," - Website")),i&&f.createElement(a,{href:XM(`mailto:${i}`)},o?`Send email to ${s}`:`Contact ${s}`))}}var zB=UB;class JB extends f.Component{render(){const{license:e,getComponent:t,selectedServer:r,url:n}=this.props,s=e.get("name","License"),o=YM(e.get("url"),n,{selectedServer:r}),i=t("Link");return f.createElement("div",{className:"info__license"},o?f.createElement("div",{className:"info__license__url"},f.createElement(i,{target:"_blank",href:XM(o)},s)):f.createElement("span",null,s))}}var VB=JB;class WB extends f.Component{render(){return null}}class KB extends f.Component{render(){let{getComponent:e}=this.props;const t=e("CopyIcon");return f.createElement("div",{className:"view-line-link copy-to-clipboard",title:"Copy to clipboard"},f.createElement(yr.CopyToClipboard,{text:this.props.textToCopy},f.createElement(t,null)))}}class HB extends f.Component{render(){return f.createElement("div",{className:"footer"})}}class GB extends f.Component{onFilterChange=e=>{const{target:{value:t}}=e;this.props.layoutActions.updateFilter(t)};render(){const{specSelectors:e,layoutSelectors:t,getComponent:r}=this.props,n=r("Col"),s="loading"===e.loadingStatus(),o="failed"===e.loadingStatus(),i=t.currentFilter(),a=["operation-filter-input"];return o&&a.push("failed"),s&&a.push("loading"),f.createElement("div",null,!1===i?null:f.createElement("div",{className:"filter-container"},f.createElement(n,{className:"filter wrapper",mobile:12},f.createElement("input",{className:a.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:"string"==typeof i?i:"",disabled:s}))))}}const YB=Function.prototype;class XB extends f.PureComponent{static defaultProp={consumes:(0,w.fromJS)(["application/json"]),param:(0,w.fromJS)({}),onChange:YB,onChangeConsumes:YB};constructor(e,t){super(e,t),this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(e){this.updateValues.call(this,e)}updateValues=e=>{let{param:t,isExecute:r,consumesValue:n=""}=e,s=/xml/i.test(n),o=/json/i.test(n),i=s?t.get("value_xml"):t.get("value");if(void 0!==i){let e=!i&&o?"{}":i;this.setState({value:e}),this.onChange(e,{isXml:s,isEditBox:r})}else s?this.onChange(this.sample("xml"),{isXml:s,isEditBox:r}):this.onChange(this.sample(),{isEditBox:r})};sample=e=>{let{param:t,fn:r}=this.props,n=r.inferSchema(t.toJS());return r.getSampleSchema(n,e,{includeWriteOnly:!0})};onChange=(e,{isEditBox:t,isXml:r})=>{this.setState({value:e,isEditBox:t}),this._onChange(e,r)};_onChange=(e,t)=>{(this.props.onChange||YB)(e,t)};handleOnChange=e=>{const{consumesValue:t}=this.props,r=/xml/i.test(t),n=e.target.value;this.onChange(n,{isXml:r,isEditBox:this.state.isEditBox})};toggleIsEditBox=()=>this.setState((e=>({isEditBox:!e.isEditBox})));render(){let{onChangeConsumes:e,param:t,isExecute:r,specSelectors:n,pathMethod:s,getComponent:o}=this.props;const i=o("Button"),a=o("TextArea"),c=o("HighlightCode",!0),l=o("contentType");let u=(n?n.parameterWithMetaByIdentity(s,t):t).get("errors",(0,w.List)()),p=n.contentTypeValues(s).get("requestContentType"),h=this.props.consumes&&this.props.consumes.size?this.props.consumes:XB.defaultProp.consumes,{value:d,isEditBox:m}=this.state,g=null;oB(d)&&(g="json");const y=`${nB(`${s[1]}${s[0]}_parameters`)}_select`;return f.createElement("div",{className:"body-param","data-param-name":t.get("name"),"data-param-in":t.get("in")},m&&r?f.createElement(a,{className:"body-param__text"+(u.count()?" invalid":""),value:d,onChange:this.handleOnChange}):d&&f.createElement(c,{className:"body-param__example",language:g},d),f.createElement("div",{className:"body-param-options"},r?f.createElement("div",{className:"body-param-edit"},f.createElement(i,{className:m?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},m?"Cancel":"Edit")):null,f.createElement("label",{htmlFor:y},f.createElement("span",null,"Parameter content type"),f.createElement(l,{value:p,contentTypes:h,onChange:e,className:"body-param-content-type",ariaLabel:"Parameter content type",controlId:y}))))}}class ZB extends f.Component{render(){const{request:e,getComponent:t}=this.props,r=jM(e),n=t("SyntaxHighlighter",!0);return f.createElement("div",{className:"curl-command"},f.createElement("h4",null,"Curl"),f.createElement("div",{className:"copy-to-clipboard"},f.createElement(yr.CopyToClipboard,{text:r},f.createElement("button",null))),f.createElement("div",null,f.createElement(n,{language:"bash",className:"curl microlight",renderPlainText:({children:e,PlainTextViewer:t})=>f.createElement(t,{className:"curl"},e)},r)))}}var QB=({propKey:e,propVal:t,propClass:r})=>f.createElement("span",{className:r},f.createElement("br",null),e,": ",wI(t));class eL extends f.Component{static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1};render(){const{onTryoutClick:e,onCancelClick:t,onResetClick:r,enabled:n,hasUserEditedBody:s,isOAS3:o}=this.props,i=o&&s;return f.createElement("div",{className:i?"try-out btn-group":"try-out"},n?f.createElement("button",{className:"btn try-out__btn cancel",onClick:t},"Cancel"):f.createElement("button",{className:"btn try-out__btn",onClick:e},"Try it out "),i&&f.createElement("button",{className:"btn try-out__btn reset",onClick:r},"Reset"))}}class tL extends f.PureComponent{static defaultProps={alsoShow:null,children:null,bypass:!1};render(){const{bypass:e,isSwagger2:t,isOAS3:r,alsoShow:n}=this.props;return e?f.createElement("div",null,this.props.children):t&&r?f.createElement("div",{className:"version-pragma"},n,f.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},f.createElement("div",null,f.createElement("h3",null,"Unable to render this definition"),f.createElement("p",null,f.createElement("code",null,"swagger")," and ",f.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),f.createElement("p",null,"Supported version fields are ",f.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",f.createElement("code",null,"openapi: 3.0.n")," (for example, ",f.createElement("code",null,"openapi: 3.0.4"),").")))):t||r?f.createElement("div",null,this.props.children):f.createElement("div",{className:"version-pragma"},n,f.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},f.createElement("div",null,f.createElement("h3",null,"Unable to render this definition"),f.createElement("p",null,"The provided definition does not specify a valid version field."),f.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",f.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",f.createElement("code",null,"openapi: 3.0.n")," (for example, ",f.createElement("code",null,"openapi: 3.0.4"),")."))))}}var rL=({version:e})=>f.createElement("small",null,f.createElement("pre",{className:"version"}," ",e," ")),nL=({oasVersion:e})=>f.createElement("small",{className:"version-stamp"},f.createElement("pre",{className:"version"},"OAS ",e)),sL=({enabled:e,path:t,text:r})=>f.createElement("a",{className:"nostyle",onClick:e?e=>e.preventDefault():null,href:e?`#/${t}`:null},f.createElement("span",null,r)),oL=()=>f.createElement("div",null,f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},f.createElement("defs",null,f.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},f.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),f.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},f.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),f.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},f.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),f.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},f.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),f.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},f.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),f.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},f.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),f.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},f.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),f.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},f.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),f.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},f.createElement("g",{transform:"translate(2, -1)"},f.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))))));KT.addHook&&KT.addHook("beforeSanitizeElements",(function(e){return e.href&&e.setAttribute("rel","noopener noreferrer"),e}));var iL=function({source:e,className:t="",getConfigs:r=()=>({useUnsafeMarkdown:!1})}){if("string"!=typeof e)return null;const n=new Rj({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(qk);n.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:s}=r(),o=n.render(e),i=aL(o,{useUnsafeMarkdown:s});return e&&o&&i?f.createElement("div",{className:gr()(t,"markdown"),dangerouslySetInnerHTML:{__html:i}}):null};function aL(e,{useUnsafeMarkdown:t=!1}={}){const r=t,n=t?[]:["style","class"];return t&&!aL.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),aL.hasWarnedAboutDeprecation=!0),KT.sanitize(e,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}aL.hasWarnedAboutDeprecation=!1;class cL extends f.Component{render(){const{errSelectors:e,specSelectors:t,getComponent:r}=this.props,n=r("SvgAssets"),s=r("InfoContainer",!0),o=r("VersionPragmaFilter"),i=r("operations",!0),a=r("Models",!0),c=r("Webhooks",!0),l=r("Row"),u=r("Col"),p=r("errors",!0),h=r("ServersContainer",!0),d=r("SchemesContainer",!0),m=r("AuthorizeBtnContainer",!0),g=r("FilterContainer",!0),y=t.isSwagger2(),v=t.isOAS3(),b=t.isOAS31(),E=t.isOAS32(),w=!t.specStr(),x=t.loadingStatus();let S=null;if("loading"===x&&(S=f.createElement("div",{className:"info"},f.createElement("div",{className:"loading-container"},f.createElement("div",{className:"loading"})))),"failed"===x&&(S=f.createElement("div",{className:"info"},f.createElement("div",{className:"loading-container"},f.createElement("h4",{className:"title"},"Failed to load API definition."),f.createElement(p,null)))),"failedConfig"===x){const t=e.lastError(),r=t?t.get("message"):"";S=f.createElement("div",{className:"info failed-config"},f.createElement("div",{className:"loading-container"},f.createElement("h4",{className:"title"},"Failed to load remote configuration."),f.createElement("p",null,r)))}if(!S&&w&&(S=f.createElement("h4",null,"No API definition provided.")),S)return f.createElement("div",{className:"swagger-ui"},f.createElement("div",{className:"loading-container"},S));const _=t.servers(),A=t.schemes(),O=_&&_.size,C=A&&A.size,j=!!t.securityDefinitions();return f.createElement("div",{className:"swagger-ui"},f.createElement(n,null),f.createElement(o,{isSwagger2:y,isOAS3:v,isOAS31:b,isOAS32:E,alsoShow:f.createElement(p,null)},f.createElement(p,null),f.createElement(l,{className:"information-container"},f.createElement(u,{mobile:12},f.createElement(s,null))),O||C||j?f.createElement("div",{className:"scheme-container"},f.createElement(u,{className:"schemes wrapper",mobile:12},O||C?f.createElement("div",{className:"schemes-server-container"},O?f.createElement(h,null):null,C?f.createElement(d,null):null):null,j?f.createElement(m,null):null)):null,f.createElement(g,null),f.createElement(l,null,f.createElement(u,{mobile:12,desktop:12},f.createElement(i,null))),b&&f.createElement(l,{className:"webhooks-container"},f.createElement(u,{mobile:12,desktop:12},f.createElement(c,null))),f.createElement(l,null,f.createElement(u,{mobile:12,desktop:12},f.createElement(a,null)))))}}var lL=()=>({components:{App:CF,authorizationPopup:jF,authorizeBtn:kF,AuthorizeBtnContainer:TF,authorizeOperationBtn:NF,auths:IF,AuthItem:PF,authError:MF,oauth2:qF,apiKeyAuth:RF,basicAuth:DF,clear:UF,liveResponse:VF,InitializedInput:DB,info:LB,InfoContainer:qB,InfoUrl:FB,InfoBasePath:$B,Contact:zB,License:VB,JumpToPath:WB,CopyToClipboardBtn:KB,onlineValidatorBadge:WF,operations:HF,operation:YF,OperationSummary:ZF,OperationSummaryMethod:QF,OperationSummaryPath:eB,responses:sB,response:iB,ResponseExtension:aB,responseBody:cB,parameters:lB,parameterRow:dB,execute:fB,headers:mB,errors:gB,contentType:wB,overview:MB,footer:HB,FilterContainer:GB,ParamBody:XB,curl:ZB,Property:QB,TryItOutButton:eL,Markdown:iL,BaseLayout:cL,VersionPragmaFilter:tL,VersionStamp:rL,OperationExt:tB,OperationExtRow:rB,ParameterExt:uB,ParameterIncludeEmpty:hB,OperationTag:GF,OperationContainer:XF,OpenAPIVersion:nL,DeepLink:sL,SvgAssets:oL,Example:$F,ExamplesSelect:FF,ExamplesSelectValueRetainer:LF}}),uL=()=>({components:{...bN}}),pL=()=>[NP,X$,bM,iF,aF,H$,WP,rM,vM,vR,zR,lL,uL,Y$,bP,cF,FP,HP,wM,FM,vF,EF,AF()];const hL=(0,w.Map)();function dL(e){return(t,r)=>(...n)=>{if(r.getSystem().specSelectors.isOAS3()){const t=e(...n);return"function"==typeof t?t(r):t}return t(...n)}}const fL=dL(Lr()(null)),mL=dL(((e,t)=>e=>e.getSystem().specSelectors.findSchema(t))),gL=dL((()=>e=>{const t=e.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return w.Map.isMap(t)?t:hL})),yL=dL((()=>e=>e.getSystem().specSelectors.specJson().hasIn(["servers",0]))),vL=dL((0,q.Mz)(tD,(e=>e.getIn(["components","securitySchemes"])||null))),bL=(e,t)=>(r,...n)=>t.specSelectors.isOAS3()?t.oas3Selectors.validOperationMethods():e(...n),EL=fL,wL=fL,xL=fL,SL=fL,_L=fL,AL=(OL=(0,q.Mz)((e=>e),(({specSelectors:e})=>e.securityDefinitions()),((e,t)=>{let r=(0,w.List)();return t?(t.entrySeq().forEach((([e,t])=>{const n=t?.get("type");if("oauth2"===n&&t.get("flows").entrySeq().forEach((([n,s])=>{let o=(0,w.fromJS)({flow:n,authorizationUrl:s.get("authorizationUrl"),tokenUrl:s.get("tokenUrl"),scopes:s.get("scopes"),type:t.get("type"),description:t.get("description")});r=r.push(new w.Map({[e]:o.filter((e=>void 0!==e))}))})),"http"!==n&&"apiKey"!==n||(r=r.push(new w.Map({[e]:t}))),"openIdConnect"===n&&t.get("openIdConnectData")){let n=t.get("openIdConnectData");(n.get("grant_types_supported")||["authorization_code","implicit"]).forEach((s=>{let o=n.get("scopes_supported")&&n.get("scopes_supported").reduce(((e,t)=>e.set(t,"")),new w.Map),i=(0,w.fromJS)({flow:s,authorizationUrl:n.get("authorization_endpoint"),tokenUrl:n.get("token_endpoint"),scopes:o,type:"oauth2",openIdConnectUrl:t.get("openIdConnectUrl")});r=r.push(new w.Map({[e]:i.filter((e=>void 0!==e))}))}))}})),r):r})),(e,t)=>(...r)=>{if(t.getSystem().specSelectors.isOAS3()){let e=t.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return OL(t,e,...r)}return e(...r)});var OL;function CL(e){return(t,r)=>n=>"function"==typeof r.specSelectors?.isOAS3?r.specSelectors.isOAS3()?f.createElement(e,fr({},n,r,{Ori:t})):f.createElement(t,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}const jL=(0,w.Map)(),kL=()=>e=>function(e){const t=e.get("swagger");return"string"==typeof t&&"2.0"===t}(e.getSystem().specSelectors.specJson()),TL=()=>e=>function(e){const t=e.get("openapi");return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}(e.getSystem().specSelectors.specJson()),NL=()=>e=>e.getSystem().specSelectors.isOAS30();function IL(e){return(t,...r)=>n=>{if(n.specSelectors.isOAS3()){const s=e(t,...r);return"function"==typeof s?s(n):s}return null}}const PL=IL((()=>e=>e.specSelectors.specJson().get("servers",jL))),ML=(e,t)=>{const r=e.getIn(["resolvedSubtrees","components","schemas",t],null),n=e.getIn(["json","components","schemas",t],null);return r||n||null},RL=IL(((e,{callbacks:t,specPath:r})=>e=>{const n=e.specSelectors.validOperationMethods();return w.Map.isMap(t)?t.reduce(((e,t,s)=>{if(!w.Map.isMap(t))return e;const o=t.reduce(((e,t,o)=>{if(!w.Map.isMap(t))return e;const i=t.entrySeq().filter((([e])=>n.includes(e))).map((([e,t])=>({operation:(0,w.Map)({operation:t}),method:e,path:o,callbackName:s,specPath:r.concat([s,o,e])})));return e.concat(i)}),(0,w.List)());return e.concat(o)}),(0,w.List)()).groupBy((e=>e.callbackName)).map((e=>e.toArray())).toObject():{}})),DL=(e,t,r,n)=>{const s=e.getIn(["content",t])??(0,w.OrderedMap)(),o=s.get("schema",(0,w.OrderedMap)()),i=void 0!==s.get("examples"),a=s.get("example"),c=i?s.getIn(["examples",r,"value"]):a;return wI(n.getSampleSchema(o,t,{includeWriteOnly:!0},c))};var $L=class extends f.Component{render(){const{link:e,name:t,getComponent:r}=this.props,n=r("Markdown",!0);let s=e.get("operationId")||e.get("operationRef"),o=e.get("parameters")&&e.get("parameters").toJS(),i=e.get("description");return f.createElement("div",{className:"operation-link"},f.createElement("div",{className:"description"},f.createElement("b",null,f.createElement("code",null,t)),i?f.createElement(n,{source:i}):null),f.createElement("pre",null,"Operation `",s,"`",f.createElement("br",null),f.createElement("br",null),"Parameters ",function(e,t){return"string"!=typeof t?"":t.split("\n").map(((e,t)=>t>0?Array(1).join(" ")+e:e)).join("\n")}(0,JSON.stringify(o,null,2))||"{}",f.createElement("br",null)))}};class FL extends f.Component{render(){const{specSelectors:e,oas3Selectors:t,oas3Actions:r,getComponent:n}=this.props,s=e.servers(),o=n("Servers");return s&&s.size?f.createElement("div",null,f.createElement("span",{className:"servers-title"},"Servers"),f.createElement(o,{servers:s,currentServer:t.selectedServer(),setSelectedServer:r.setSelectedServer,setServerVariableValue:r.setServerVariableValue,getServerVariable:t.serverVariableValue,getEffectiveServerValue:t.serverEffectiveValue})):null}}const BL=Function.prototype;class LL extends f.Component{constructor(e,t){super(e,t);let{name:r,schema:n}=this.props,s=this.getValue();this.state={name:r,schema:n,value:s}}getValue(){let{name:e,authorized:t}=this.props;return t&&t.getIn([e,"value"])}onChange=e=>{let{onChange:t}=this.props,{value:r,name:n}=e.target,s=Object.assign({},this.state.value);n?s[n]=r:s=r,this.setState({value:s},(()=>t(this.state)))};render(){let{schema:e,getComponent:t,errSelectors:r,name:n,authSelectors:s}=this.props;const o=t("Input"),i=t("Row"),a=t("Col"),c=t("authError"),l=t("Markdown",!0),u=t("JumpToPath",!0),p=(e.get("scheme")||"").toLowerCase(),h=s.selectAuthPath(n);let d=this.getValue(),m=r.allErrors().filter((e=>e.get("authId")===n));if("basic"===p){let t=d?d.get("username"):null;return f.createElement("div",null,f.createElement("h4",null,f.createElement("code",null,n)," (http, Basic)",f.createElement(u,{path:h})),t&&f.createElement("h6",null,"Authorized"),f.createElement(i,null,f.createElement(l,{source:e.get("description")})),f.createElement(i,null,f.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),t?f.createElement("code",null," ",t," "):f.createElement(a,null,f.createElement(o,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),f.createElement(i,null,f.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),t?f.createElement("code",null," ****** "):f.createElement(a,null,f.createElement(o,{id:"auth-basic-password",autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),m.valueSeq().map(((e,t)=>f.createElement(c,{error:e,key:t}))))}return"bearer"===p?f.createElement("div",null,f.createElement("h4",null,f.createElement("code",null,n)," (http, Bearer)",f.createElement(u,{path:h})),d&&f.createElement("h6",null,"Authorized"),f.createElement(i,null,f.createElement(l,{source:e.get("description")})),f.createElement(i,null,f.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),d?f.createElement("code",null," ****** "):f.createElement(a,null,f.createElement(o,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),m.valueSeq().map(((e,t)=>f.createElement(c,{error:e,key:t})))):f.createElement("div",null,f.createElement("em",null,f.createElement("b",null,n)," HTTP authentication: unsupported scheme ",`'${p}'`))}}class qL extends f.Component{setSelectedServer=e=>{const{path:t,method:r}=this.props;return this.forceUpdate(),this.props.setSelectedServer(e,`${t}:${r}`)};setServerVariableValue=e=>{const{path:t,method:r}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...e,namespace:`${t}:${r}`})};getSelectedServer=()=>{const{path:e,method:t}=this.props;return this.props.getSelectedServer(`${e}:${t}`)};getServerVariable=(e,t)=>{const{path:r,method:n}=this.props;return this.props.getServerVariable({namespace:`${r}:${n}`,server:e},t)};getEffectiveServerValue=e=>{const{path:t,method:r}=this.props;return this.props.getEffectiveServerValue({server:e,namespace:`${t}:${r}`})};render(){const{operationServers:e,pathServers:t,getComponent:r}=this.props;if(!e&&!t)return null;const n=r("Servers"),s=e||t,o=e?"operation":"path";return f.createElement("div",{className:"opblock-section operation-servers"},f.createElement("div",{className:"opblock-section-header"},f.createElement("div",{className:"tab-header"},f.createElement("h4",{className:"opblock-title"},"Servers"))),f.createElement("div",{className:"opblock-description-wrapper"},f.createElement("h4",{className:"message"},"These ",o,"-level options override the global server options."),f.createElement(n,{servers:s,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}var UL={Callbacks:({callbacks:e,specPath:t,specSelectors:r,getComponent:n})=>{const s=r.callbacksOperations({callbacks:e,specPath:t}),o=Object.keys(s),i=n("OperationContainer",!0);return 0===o.length?f.createElement("span",null,"No callbacks"):f.createElement("div",null,o.map((e=>f.createElement("div",{key:`${e}`},f.createElement("h2",null,e),s[e].map((t=>f.createElement(i,{key:`${e}-${t.path}-${t.method}`,op:t.operation,tag:"callbacks",method:t.method,path:t.path,specPath:t.specPath,allowTryItOut:!1})))))))},HttpAuth:LL,RequestBody:({userHasEditedBody:e,requestBody:t,requestBodyValue:r,requestBodyInclusionSetting:n,requestBodyErrors:s,getComponent:o,getConfigs:i,specSelectors:a,fn:c,contentType:l,isExecute:u,specPath:p,onChange:h,onChangeIncludeEmpty:d,activeExamplesKey:m,updateActiveExamplesKey:g,setRetainRequestBodyValueFlag:y})=>{const v=e=>{h(e.target.files[0])},b=e=>{let t={key:e,shouldDispatchInit:!1,defaultValue:!0};return"no value"===n.get(e,"no value")&&(t.shouldDispatchInit=!0),t},E=o("Markdown",!0),x=o("modelExample"),S=o("RequestBodyEditor"),_=o("HighlightCode",!0),A=o("ExamplesSelectValueRetainer"),O=o("Example"),C=o("ParameterIncludeEmpty"),{showCommonExtensions:j}=i(),k=t?.get("description")??null,T=t?.get("content")??new w.OrderedMap;l=l||T.keySeq().first()||"";const N=T.get(l)??(0,w.OrderedMap)(),I=N.get("schema",(0,w.OrderedMap)()),P=N.get("examples",null),M=P?.map(((e,r)=>{const n=e?.get("value",null);return n&&(e=e.set("value",DL(t,l,r,c),n)),e}));if(s=w.List.isList(s)?s:(0,w.List)(),c.isFileUploadIntended(N?.get("schema"),l)){const e=o("Input");return u?f.createElement(e,{type:"file",onChange:v}):f.createElement("i",null,"Example values are not available for ",f.createElement("code",null,l)," media types.")}if(!N.size)return null;if(c.hasSchemaType(N.get("schema"),"object")&&("application/x-www-form-urlencoded"===l||0===l.indexOf("multipart/"))&&I.get("properties",(0,w.OrderedMap)()).size>0){const e=o("JsonSchemaForm"),t=o("ParameterExt"),l=I.get("properties",(0,w.OrderedMap)());return r=w.Map.isMap(r)?r:(0,w.OrderedMap)(),f.createElement("div",{className:"table-container"},k&&f.createElement(E,{source:k}),f.createElement("table",null,f.createElement("tbody",null,w.Map.isMap(l)&&l.entrySeq().map((([l,m])=>{if(m.get("readOnly"))return;const g=m.get("oneOf")?.get(0)?.toJS(),y=m.get("anyOf")?.get(0)?.toJS();m=(0,w.fromJS)(c.mergeJsonSchema(m.toJS(),g??y??{}));let v=j?bI(m):null;const S=I.get("required",(0,w.List)()).includes(l),_=c.getSchemaObjectType(m),A=c.getSchemaObjectTypeLabel(m),O=c.getSchemaObjectType(m?.get("items")),k=m.get("format"),T=m.get("description"),N=r.getIn([l,"value"]),P=r.getIn([l,"errors"])||s,M=n.get(l)||!1;let R=c.getSampleSchema(m,!1,{includeWriteOnly:!0});!1===R&&(R="false"),0===R&&(R="0"),"string"!=typeof R&&"object"===_&&(R=wI(R)),"string"==typeof R&&"array"===_&&(R=JSON.parse(R));const D=c.isFileUploadIntended(m),$=f.createElement(e,{fn:c,dispatchInitialValue:!D,schema:m,description:l,getComponent:o,value:void 0===N?R:N,required:S,errors:P,onChange:e=>{h(e,[l])}});return f.createElement("tr",{key:l,className:"parameters","data-property-name":l},f.createElement("td",{className:"parameters-col_name"},f.createElement("div",{className:S?"parameter__name required":"parameter__name"},l,S?f.createElement("span",null," *"):null),f.createElement("div",{className:"parameter__type"},A,k&&f.createElement("span",{className:"prop-format"},"($",k,")"),j&&v.size?v.entrySeq().map((([e,r])=>f.createElement(t,{key:`${e}-${r}`,xKey:e,xVal:r}))):null),f.createElement("div",{className:"parameter__deprecated"},m.get("deprecated")?"deprecated":null)),f.createElement("td",{className:"parameters-col_description"},f.createElement(E,{source:T}),u?f.createElement("div",null,"object"===_||"object"===O?f.createElement(x,{getComponent:o,specPath:p.push("schema"),getConfigs:i,isExecute:u,specSelectors:a,schema:m,example:$}):$,S?null:f.createElement(C,{onChange:e=>d(l,e),isIncluded:M,isIncludedOptions:b(l),isDisabled:Array.isArray(N)?0!==N.length:!AI(N)})):null))})))))}const R=DL(t,l,m,c);let D=null;oB(R)&&(D="json");const $=u?f.createElement(S,{value:r,errors:s,defaultValue:R,onChange:h,getComponent:o}):f.createElement(_,{className:"body-param__example",language:D},wI(r)||R);return f.createElement("div",null,k&&f.createElement(E,{source:k}),M?f.createElement(A,{userHasEditedBody:e,examples:M,currentKey:m,currentUserInputValue:r,onSelect:e=>{g(e)},updateValue:h,defaultToFirstExample:!0,getComponent:o,setRetainRequestBodyValueFlag:y}):null,f.createElement(x,{getComponent:o,getConfigs:i,specSelectors:a,expandDepth:1,isExecute:u,schema:N.get("schema"),specPath:p.push("content",l,"schema"),example:$,includeWriteOnly:!0}),M?f.createElement(O,{example:M.get(m),getComponent:o,getConfigs:i}):null)},Servers:({servers:e,currentServer:t,setSelectedServer:r,setServerVariableValue:n,getServerVariable:s,getEffectiveServerValue:o})=>{const i=(e.find((e=>e.get("url")===t))||(0,w.OrderedMap)()).get("variables")||(0,w.OrderedMap)(),a=0!==i.size;(0,f.useEffect)((()=>{t||r(e.first()?.get("url"))}),[]),(0,f.useEffect)((()=>{const s=e.find((e=>e.get("url")===t));s?(s.get("variables")||(0,w.OrderedMap)()).map(((e,r)=>{n({server:t,key:r,val:e.get("default")||""})})):r(e.first().get("url"))}),[t,e]);const c=(0,f.useCallback)((e=>{r(e.target.value)}),[r]),l=(0,f.useCallback)((e=>{const r=e.target.getAttribute("data-variable"),s=e.target.value;n({server:t,key:r,val:s})}),[n,t]);return f.createElement("div",{className:"servers"},f.createElement("label",{htmlFor:"servers"},f.createElement("select",{onChange:c,value:t,id:"servers"},e.valueSeq().map((e=>f.createElement("option",{value:e.get("url"),key:e.get("url")},e.get("url"),e.get("description")&&` - ${e.get("description")}`))).toArray())),a&&f.createElement("div",null,f.createElement("div",{className:"computed-url"},"Computed URL:",f.createElement("code",null,o(t))),f.createElement("h4",null,"Server variables"),f.createElement("table",null,f.createElement("tbody",null,i.entrySeq().map((([e,r])=>f.createElement("tr",{key:e},f.createElement("td",null,e),f.createElement("td",null,r.get("enum")?f.createElement("select",{"data-variable":e,onChange:l},r.get("enum").map((r=>f.createElement("option",{selected:r===s(t,e),key:r,value:r},r)))):f.createElement("input",{type:"text",value:s(t,e)||"",onChange:l,"data-variable":e})))))))))},ServersContainer:FL,RequestBodyEditor:class extends f.PureComponent{static defaultProps={onChange:BL,userHasEditedBody:!1};constructor(e,t){super(e,t),this.state={value:wI(e.value)||e.defaultValue},e.onChange(e.value)}applyDefaultValue=e=>{const{onChange:t,defaultValue:r}=e||this.props;return this.setState({value:r}),t(r)};onChange=e=>{this.props.onChange(wI(e))};onDomChange=e=>{const t=e.target.value;this.setState({value:t},(()=>this.onChange(t)))};UNSAFE_componentWillReceiveProps(e){this.props.value!==e.value&&e.value!==this.state.value&&this.setState({value:wI(e.value)}),!e.value&&e.defaultValue&&this.state.value&&this.applyDefaultValue(e)}render(){let{getComponent:e,errors:t}=this.props,{value:r}=this.state,n=t.size>0;const s=e("TextArea");return f.createElement("div",{className:"body-param"},f.createElement(s,{className:gr()("body-param__text",{invalid:n}),title:t.size?t.join(", "):"",value:r,onChange:this.onDomChange}))}},OperationServers:qL,operationLink:$L};const zL=new Rj("commonmark");zL.block.ruler.enable(["table"]),zL.set({linkTarget:"_blank"});var JL=CL((({source:e,className:t="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if("string"!=typeof e)return null;if(e){const{useUnsafeMarkdown:n}=r(),s=aL(zL.render(e),{useUnsafeMarkdown:n});let o;return"string"==typeof s&&(o=s.trim()),f.createElement("div",{dangerouslySetInnerHTML:{__html:o},className:gr()(t,"renderedMarkdown")})}return null})),VL=CL((({Ori:e,...t})=>{const{schema:r,getComponent:n,errSelectors:s,authorized:o,onAuthChange:i,name:a,authSelectors:c}=t,l=n("HttpAuth");return"http"===r.get("type")?f.createElement(l,{key:a,schema:r,name:a,errSelectors:s,authorized:o,getComponent:n,onChange:i,authSelectors:c}):f.createElement(e,t)})),WL=CL(WF),KL=CL(class extends f.Component{render(){let{getConfigs:e,schema:t,Ori:r}=this.props,n=["model-box"],s=null;return!0===t.get("deprecated")&&(n.push("deprecated"),s=f.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),f.createElement("div",{className:n.join(" ")},s,f.createElement(r,fr({},this.props,{getConfigs:e,depth:1,expandDepth:this.props.expandDepth||0})))}}),HL=CL((({Ori:e,...t})=>{const{schema:r,getComponent:n,errors:s,onChange:o,fn:i}=t,a=i.isFileUploadIntended(r),c=n("Input");return a?f.createElement(c,{type:"file",className:s.length?"invalid":"",title:s.length?s:"",onChange:e=>{o(e.target.files[0])},disabled:e.isDisabled}):f.createElement(e,t)})),GL={Markdown:JL,AuthItem:VL,OpenAPIVersion:function(e){return(t,r)=>n=>"function"==typeof r.specSelectors?.isOAS30?r.specSelectors.isOAS30()?f.createElement(e,fr({},n,r,{Ori:t})):f.createElement(t,n):(console.warn("OAS30 wrapper: couldn't get spec"),null)}((e=>{const{Ori:t}=e;return f.createElement(t,{oasVersion:"3.0"})})),JsonSchema_string:HL,model:KL,onlineValidatorBadge:WL};const YL="oas3_set_servers",XL="oas3_set_request_body_value",ZL="oas3_set_request_body_retain_flag",QL="oas3_set_request_body_inclusion",eq="oas3_set_active_examples_member",tq="oas3_set_request_content_type",rq="oas3_set_response_content_type",nq="oas3_set_server_variable_value",sq="oas3_set_request_body_validate_error",oq="oas3_clear_request_body_validate_error",iq="oas3_clear_request_body_value";function aq(e,t){return{type:YL,payload:{selectedServerUrl:e,namespace:t}}}function cq({value:e,pathMethod:t}){return{type:XL,payload:{value:e,pathMethod:t}}}const lq=({value:e,pathMethod:t})=>({type:ZL,payload:{value:e,pathMethod:t}});function uq({value:e,pathMethod:t,name:r}){return{type:QL,payload:{value:e,pathMethod:t,name:r}}}function pq({name:e,pathMethod:t,contextType:r,contextName:n}){return{type:eq,payload:{name:e,pathMethod:t,contextType:r,contextName:n}}}function hq({value:e,pathMethod:t}){return{type:tq,payload:{value:e,pathMethod:t}}}function dq({value:e,path:t,method:r}){return{type:rq,payload:{value:e,path:t,method:r}}}function fq({server:e,namespace:t,key:r,val:n}){return{type:nq,payload:{server:e,namespace:t,key:r,val:n}}}const mq=({path:e,method:t,validationErrors:r})=>({type:sq,payload:{path:e,method:t,validationErrors:r}}),gq=({path:e,method:t})=>({type:oq,payload:{path:e,method:t}}),yq=({pathMethod:e})=>({type:oq,payload:{path:e[0],method:e[1]}}),vq=({pathMethod:e})=>({type:iq,payload:{pathMethod:e}}),bq=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const s=e(t,...r);return"function"==typeof s?s(n):s}return null},Eq=bq(((e,t)=>{const r=t?[t,"selectedServer"]:["selectedServer"];return e.getIn(r)||""})),wq=bq(((e,t,r)=>e.getIn(["requestData",t,r,"bodyValue"])||null)),xq=bq(((e,t,r)=>e.getIn(["requestData",t,r,"retainBodyValue"])||!1)),Sq=(e,t,r)=>e=>{const{oas3Selectors:n,specSelectors:s,fn:o}=e.getSystem();if(s.isOAS3()){const e=n.requestContentType(t,r);if(e)return DL(s.specResolvedSubtree(["paths",t,r,"requestBody"]),e,n.activeExamplesMember(t,r,"requestBody","requestBody"),o)}return null},_q=bq(((e,t,r)=>e=>{const{oas3Selectors:n,specSelectors:s,fn:o}=e;let i=!1;const a=n.requestContentType(t,r);let c=n.requestBodyValue(t,r);const l=s.specResolvedSubtree(["paths",t,r,"requestBody"]);if(!l)return!1;if(w.Map.isMap(c)&&(c=wI(c.mapEntries((e=>w.Map.isMap(e[1])?[e[0],e[1].get("value")]:e)).toJS())),w.List.isList(c)&&(c=wI(c)),a){const e=DL(l,a,n.activeExamplesMember(t,r,"requestBody","requestBody"),o);i=!!c&&c!==e}return i})),Aq=bq(((e,t,r)=>e.getIn(["requestData",t,r,"bodyInclusion"])||(0,w.Map)())),Oq=bq(((e,t,r)=>e.getIn(["requestData",t,r,"errors"])||null)),Cq=bq(((e,t,r,n,s)=>e.getIn(["examples",t,r,n,s,"activeExample"])||null)),jq=bq(((e,t,r)=>e.getIn(["requestData",t,r,"requestContentType"])||null)),kq=bq(((e,t,r)=>e.getIn(["requestData",t,r,"responseContentType"])||null)),Tq=bq(((e,t,r)=>{let n;if("string"!=typeof t){const{server:e,namespace:s}=t;n=s?[s,"serverVariableValues",e,r]:["serverVariableValues",e,r]}else n=["serverVariableValues",t,r];return e.getIn(n)||null})),Nq=bq(((e,t)=>{let r;if("string"!=typeof t){const{server:e,namespace:n}=t;r=n?[n,"serverVariableValues",e]:["serverVariableValues",e]}else r=["serverVariableValues",t];return e.getIn(r)||(0,w.OrderedMap)()})),Iq=bq(((e,t)=>{var r,n;if("string"!=typeof t){const{server:s,namespace:o}=t;n=s,r=o?e.getIn([o,"serverVariableValues",n]):e.getIn(["serverVariableValues",n])}else n=t,r=e.getIn(["serverVariableValues",n]);r=r||(0,w.OrderedMap)();let s=n;return r.map(((e,t)=>{s=s.replace(new RegExp(`{${GT()(t)}}`,"g"),e)})),s})),Pq=(...e)=>t=>{const r=t.getSystem().specSelectors.specJson();let n=[...e][1]||[];return!r.getIn(["paths",...n,"requestBody","required"])||((e,t)=>((e,t)=>(t=t||[],!!e.getIn(["requestData",...t,"bodyValue"])))(e,t))(...e)},Mq=(e,{oas3RequiredRequestBodyContentType:t,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let s=[];if(!w.Map.isMap(n))return s;let o=[];return Object.keys(t.requestContentType).forEach((e=>{e===r&&t.requestContentType[e].forEach((e=>{o.indexOf(e)<0&&o.push(e)}))})),o.forEach((e=>{n.getIn([e,"value"])||s.push(e)})),s},Rq=Lr()(["get","put","post","delete","options","head","patch","trace"]);var Dq={[YL]:(e,{payload:{selectedServerUrl:t,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return e.setIn(n,t)},[XL]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,s]=r;if(!w.Map.isMap(t))return e.setIn(["requestData",n,s,"bodyValue"],t);let o=e.getIn(["requestData",n,s,"bodyValue"])||(0,w.Map)();w.Map.isMap(o)||(o=(0,w.Map)());let i=o;const[...a]=t.keys();return a.forEach((e=>{let r=t.getIn([e]);i.has(e)&&w.Map.isMap(r)||(i=i.setIn([e,"value"],r))})),e.setIn(["requestData",n,s,"bodyValue"],i)},[ZL]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,s]=r;return e.setIn(["requestData",n,s,"retainBodyValue"],t)},[QL]:(e,{payload:{value:t,pathMethod:r,name:n}})=>{let[s,o]=r;return e.setIn(["requestData",s,o,"bodyInclusion",n],t)},[eq]:(e,{payload:{name:t,pathMethod:r,contextType:n,contextName:s}})=>{let[o,i]=r;return e.setIn(["examples",o,i,n,s,"activeExample"],t)},[tq]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,s]=r;return e.setIn(["requestData",n,s,"requestContentType"],t)},[rq]:(e,{payload:{value:t,path:r,method:n}})=>e.setIn(["requestData",r,n,"responseContentType"],t),[nq]:(e,{payload:{server:t,namespace:r,key:n,val:s}})=>{const o=r?[r,"serverVariableValues",t,n]:["serverVariableValues",t,n];return e.setIn(o,s)},[sq]:(e,{payload:{path:t,method:r,validationErrors:n}})=>{let s=[];if(s.push("Required field is not provided"),n.missingBodyValue)return e.setIn(["requestData",t,r,"errors"],(0,w.fromJS)(s));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:o}=n;return e.updateIn(["requestData",t,r,"bodyValue"],(0,w.fromJS)({}),(e=>o.reduce(((e,t)=>e.setIn([t,"errors"],(0,w.fromJS)(s))),e)))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),e},[oq]:(e,{payload:{path:t,method:r}})=>{const n=e.getIn(["requestData",t,r,"bodyValue"]);if(!w.Map.isMap(n))return e.setIn(["requestData",t,r,"errors"],(0,w.fromJS)([]));const[...s]=n.keys();return s?e.updateIn(["requestData",t,r,"bodyValue"],(0,w.fromJS)({}),(e=>s.reduce(((e,t)=>e.setIn([t,"errors"],(0,w.fromJS)([]))),e))):e},[iq]:(e,{payload:{pathMethod:t}})=>{let[r,n]=t;const s=e.getIn(["requestData",r,n,"bodyValue"]);return s?w.Map.isMap(s)?e.setIn(["requestData",r,n,"bodyValue"],(0,w.Map)()):e.setIn(["requestData",r,n,"bodyValue"],""):e}};function $q({getSystem:e}){const t=(e=>(t,r=null)=>{const{getConfigs:n,fn:s}=e(),{fileUploadMediaTypes:o}=n();if("string"==typeof r&&o.some((e=>r.startsWith(e))))return!0;const i=w.Map.isMap(t);if(!i&&!Mr()(t))return!1;const a=i?t.get("format"):t.format;return s.hasSchemaType(t,"string")&&["binary","byte"].includes(a)})(e);return{components:UL,wrapComponents:GL,statePlugins:{spec:{wrapSelectors:EN,selectors:xN},auth:{wrapSelectors:wN},oas3:{actions:{...SN},reducers:Dq,selectors:{..._N}}},fn:{isFileUploadIntended:t,isFileUploadIntendedOAS30:t}}}var Fq=({specSelectors:e,getComponent:t})=>{const r=e.selectWebhooksOperations();if(!r)return null;const n=Object.keys(r),s=t("OperationContainer",!0);return 0===n.length?null:f.createElement("div",{className:"webhooks"},f.createElement("h2",null,"Webhooks"),n.map((e=>f.createElement("div",{key:`${e}-webhook`},r[e].map((t=>f.createElement(s,{key:`${e}-${t.method}-webhook`,op:t.operation,tag:"webhooks",method:t.method,path:e,specPath:(0,w.List)(t.specPath),allowTryItOut:!1})))))))},Bq=({getComponent:e,specSelectors:t})=>{const r=t.selectLicenseNameField(),n=t.selectLicenseUrl(),s=e("Link");return f.createElement("div",{className:"info__license"},n?f.createElement("div",{className:"info__license__url"},f.createElement(s,{target:"_blank",href:XM(n)},r)):f.createElement("span",null,r))},Lq=({getComponent:e,specSelectors:t})=>{const r=t.selectContactNameField(),n=t.selectContactUrl(),s=t.selectContactEmailField(),o=e("Link");return f.createElement("div",{className:"info__contact"},n&&f.createElement("div",null,f.createElement(o,{href:XM(n),target:"_blank"},r," - Website")),s&&f.createElement(o,{href:XM(`mailto:${s}`)},n?`Send email to ${r}`:`Contact ${r}`))},qq=({getComponent:e,specSelectors:t})=>{const r=t.version(),n=t.url(),s=t.basePath(),o=t.host(),i=t.selectInfoSummaryField(),a=t.selectInfoDescriptionField(),c=t.selectInfoTitleField(),l=t.selectInfoTermsOfServiceUrl(),u=t.selectExternalDocsUrl(),p=t.selectExternalDocsDescriptionField(),h=t.contact(),d=t.license(),m=e("Markdown",!0),g=e("Link"),y=e("VersionStamp"),v=e("OpenAPIVersion"),b=e("InfoUrl"),E=e("InfoBasePath"),w=e("License",!0),x=e("Contact",!0),S=e("JsonSchemaDialect",!0);return f.createElement("div",{className:"info"},f.createElement("hgroup",{className:"main"},f.createElement("h1",{className:"title"},c,f.createElement("span",null,r&&f.createElement(y,{version:r}),f.createElement(v,{oasVersion:"3.1"}))),(o||s)&&f.createElement(E,{host:o,basePath:s}),n&&f.createElement(b,{getComponent:e,url:n})),i&&f.createElement("p",{className:"info__summary"},i),f.createElement("div",{className:"info__description description"},f.createElement(m,{source:a})),l&&f.createElement("div",{className:"info__tos"},f.createElement(g,{target:"_blank",href:XM(l)},"Terms of service")),h.size>0&&f.createElement(x,null),d.size>0&&f.createElement(w,null),u&&f.createElement(g,{className:"info__extdocs",target:"_blank",href:XM(u)},p||u),f.createElement(S,null))},Uq=({getComponent:e,specSelectors:t})=>{const r=t.selectJsonSchemaDialectField(),n=t.selectJsonSchemaDialectDefault(),s=e("Link");return f.createElement(f.Fragment,null,r&&r===n&&f.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",f.createElement(s,{target:"_blank",href:XM(r)},r)),r&&r!==n&&f.createElement("div",{className:"error-wrapper"},f.createElement("div",{className:"no-margin"},f.createElement("div",{className:"errors"},f.createElement("div",{className:"errors-wrapper"},f.createElement("h4",{className:"center"},"Warning"),f.createElement("p",{className:"message"},f.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",f.createElement(s,{target:"_blank",href:n},n),". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value."))))))},zq=({bypass:e,isSwagger2:t,isOAS3:r,isOAS31:n,alsoShow:s,children:o})=>e?f.createElement("div",null,o):t&&(r||n)?f.createElement("div",{className:"version-pragma"},s,f.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},f.createElement("div",null,f.createElement("h3",null,"Unable to render this definition"),f.createElement("p",null,f.createElement("code",null,"swagger")," and ",f.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),f.createElement("p",null,"Supported version fields are ",f.createElement("code",null,'swagger: "2.0"'),","," ",f.createElement("code",null,"openapi: 3.0.x"),", or ",f.createElement("code",null,"openapi: 3.1.x")," (for example, ",f.createElement("code",null,"openapi: 3.1.0"),").")))):t||r||n?f.createElement("div",null,o):f.createElement("div",{className:"version-pragma"},s,f.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},f.createElement("div",null,f.createElement("h3",null,"Unable to render this definition"),f.createElement("p",null,"The provided definition does not specify a valid version field."),f.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",f.createElement("code",null,'swagger: "2.0"'),","," ",f.createElement("code",null,"openapi: 3.0.x"),", or ",f.createElement("code",null,"openapi: 3.1.x")," (for example, ",f.createElement("code",null,"openapi: 3.1.0"),")."))));const Jq=(0,f.forwardRef)((({schema:e,getComponent:t,onToggle:r=()=>{},specPath:n},s)=>{const o=t("JSONSchema202012"),i=(e=>"string"==typeof e&&e.includes("#/components/schemas/")?(e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}})(e.replace(/^.*#\/components\/schemas\//,"")):null)(e.get("$$ref")),a=(0,f.useCallback)(((e,t)=>{r(i,t)}),[i,r]);return f.createElement(o,{name:i,schema:e.toJS(),ref:s,onExpand:a,identifier:n.toJS().join("_")})}));var Vq=Jq,Wq=({specActions:e,specSelectors:t,layoutSelectors:r,layoutActions:n,getComponent:s,getConfigs:o,fn:i})=>{const a=t.selectSchemas(),c=Object.keys(a).length>0,l=["components","schemas"],{docExpansion:u,defaultModelsExpandDepth:p}=o(),h=p>0&&"none"!==u,d=r.isShown(l,h),m=s("Collapse"),g=s("JSONSchema202012"),y=s("ArrowUpIcon"),v=s("ArrowDownIcon"),{getTitle:b}=i.jsonSchema202012.useFn();(0,f.useEffect)((()=>{const n=Object.entries(a).some((([e])=>r.isShown([...l,e],!1))),s=d&&(p>1||n),o=null!=t.specResolvedSubtree(l);s&&!o&&e.requestResolvedSubtree(l)}),[d,p]);const E=(0,f.useCallback)((()=>{n.show(l,!d)}),[d]),w=(0,f.useCallback)((e=>{null!==e&&n.readyToScroll(l,e)}),[]),x=e=>t=>{null!==t&&n.readyToScroll([...l,e],t)},S=r=>(s,o)=>{const i=[...l,r];o?(null!=t.specResolvedSubtree(i)||e.requestResolvedSubtree([...l,r]),n.show(i,!0)):n.show(i,!1)};return!c||p<0?null:f.createElement("section",{className:gr()("models",{"is-open":d}),ref:w},f.createElement("h4",null,f.createElement("button",{"aria-expanded":d,className:"models-control",onClick:E},f.createElement("span",null,"Schemas"),d?f.createElement(y,null):f.createElement(v,null))),f.createElement(m,{isOpened:d},Object.entries(a).map((([e,t])=>{const r=b(t,{lookup:"basic"})||e;return f.createElement(g,{key:e,ref:x(e),schema:t,name:r,onExpand:S(e)})}))))},Kq=({schema:e,getComponent:t,name:r,authSelectors:n})=>{const s=t("JumpToPath",!0),o=n.selectAuthPath(r);return f.createElement("div",null,f.createElement("h4",null,r," (mutualTLS) ",f.createElement(s,{path:o})),f.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),f.createElement("p",null,e.get("description")))};class Hq extends f.Component{constructor(e,t){super(e,t),this.state={}}onAuthChange=e=>{let{name:t}=e;this.setState({[t]:e})};submitAuth=e=>{e.preventDefault();let{authActions:t}=this.props;t.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:t,definitions:r}=this.props,n=r.map(((e,t)=>t)).toArray();this.setState(n.reduce(((e,t)=>(e[t]="",e)),{})),t.logoutWithPersistOption(n)};close=e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)};render(){let{definitions:e,getComponent:t,authSelectors:r,errSelectors:n}=this.props;const s=t("AuthItem"),o=t("oauth2",!0),i=t("Button"),a=r.authorized(),c=e.filter(((e,t)=>!!a.get(t))),l=e.filter((e=>"oauth2"!==e.get("type")&&"mutualTLS"!==e.get("type"))),u=e.filter((e=>"oauth2"===e.get("type"))),p=e.filter((e=>"mutualTLS"===e.get("type")));return f.createElement("div",{className:"auth-container"},l.size>0&&f.createElement("form",{onSubmit:this.submitAuth},l.map(((e,o)=>f.createElement(s,{key:o,schema:e,name:o,getComponent:t,onAuthChange:this.onAuthChange,authorized:a,errSelectors:n,authSelectors:r}))).toArray(),f.createElement("div",{className:"auth-btn-wrapper"},l.size===c.size?f.createElement(i,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):f.createElement(i,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),f.createElement(i,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),u.size>0?f.createElement("div",null,f.createElement("div",{className:"scope-def"},f.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),f.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((e=>"oauth2"===e.get("type"))).map(((e,t)=>f.createElement("div",{key:t},f.createElement(o,{authorized:a,schema:e,name:t})))).toArray()):null,p.size>0&&f.createElement("div",null,p.map(((e,o)=>f.createElement(s,{key:o,schema:e,name:o,getComponent:t,onAuthChange:this.onAuthChange,authorized:a,errSelectors:n,authSelectors:r}))).toArray()))}}var Gq=Hq;const Yq=e=>{const t=e.get("openapi");return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)},Xq=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const s=e(t,...r);return"function"==typeof s?s(n):s}return null},Zq=e=>(t,r)=>(n,...s)=>{if(r.getSystem().specSelectors.isOAS31()){const o=e(n,...s);return"function"==typeof o?o(t,r):o}return t(...s)},Qq=e=>(t,...r)=>n=>{const s=e(t,n,...r);return"function"==typeof s?s(n):s},eU=e=>(t,r)=>n=>r.specSelectors.isOAS31()?f.createElement(e,fr({},n,{originalComponent:t,getSystem:r.getSystem})):f.createElement(t,n),tU=(e,t)=>{const{fn:r,specSelectors:n}=t;return Object.fromEntries(Object.entries(e).map((([e,t])=>{const s=r[e];return[e,(...e)=>n.isOAS31()?t(...e):"function"==typeof s?s(...e):void 0]})))};var rU=eU((({getSystem:e})=>{const t=e().getComponent("OAS31License",!0);return f.createElement(t,null)})),nU=eU((({getSystem:e})=>{const t=e().getComponent("OAS31Contact",!0);return f.createElement(t,null)})),sU=eU((({getSystem:e})=>{const t=e().getComponent("OAS31Info",!0);return f.createElement(t,null)}));const oU=(e,{includeReadOnly:t,includeWriteOnly:r})=>{if(!e?.properties)return{};const n=Object.entries(e.properties).filter((([,e])=>(!(!0===e?.readOnly)||t)&&(!(!0===e?.writeOnly)||r)));return Object.fromEntries(n)},iU=e=>{if("function"!=typeof e)return null;const t=e();return()=>[...t,"discriminator","xml","externalDocs","example","$$ref"]},aU=eU((({getSystem:e,...t})=>{const r=e(),{getComponent:n,fn:s,getConfigs:o}=r,i=o(),a=window?.location?.pathname??"/";if(aU.ModelWithJSONSchemaContext&&aU.pathname===a)return f.createElement(aU.ModelWithJSONSchemaContext,t);const c=n("OAS31Model"),l=n("withJSONSchema202012SystemContext");return aU.ModelWithJSONSchemaContext=l(c,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:i.defaultModelExpandDepth,includeReadOnly:t.includeReadOnly,includeWriteOnly:t.includeWriteOnly},fn:{getProperties:s.jsonSchema202012.getProperties,isExpandable:s.jsonSchema202012.isExpandable,getSchemaKeywords:iU(s.jsonSchema202012.getSchemaKeywords)}}),aU.pathname=a,f.createElement(aU.ModelWithJSONSchemaContext,t)}));aU.ModelWithJSONSchemaContext=null,aU.pathname=null;var cU=aU;const lU=eU((({getSystem:e})=>{const{getComponent:t,fn:r,getConfigs:n}=e(),s=n(),o=window?.location?.pathname??"/";if(lU.ModelsWithJSONSchemaContext&&lU.pathname===o)return f.createElement(lU.ModelsWithJSONSchemaContext,null);const i=t("OAS31Models",!0),a=t("withJSONSchema202012SystemContext");return lU.ModelsWithJSONSchemaContext=a(i,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:s.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:iU(r.jsonSchema202012.getSchemaKeywords)}}),lU.pathname=o,f.createElement(lU.ModelsWithJSONSchemaContext,null)}));lU.ModelsWithJSONSchemaContext=null,lU.pathname=null;var uU=lU,pU=(e,t)=>e=>{const r=t.specSelectors.isOAS31(),n=t.getComponent("OAS31VersionPragmaFilter");return f.createElement(n,fr({isOAS31:r},e))};const hU=eU((({originalComponent:e,...t})=>{const{getComponent:r,schema:n,name:s}=t,o=r("MutualTLSAuth",!0);return"mutualTLS"===n.get("type")?f.createElement(o,{schema:n,name:s}):f.createElement(e,t)}));var dU=hU,fU=eU((({getSystem:e,...t})=>{const r=e().getComponent("OAS31Auths",!0);return f.createElement(r,t)}));const mU=(0,w.Map)(),gU=(0,q.Mz)(((e,t)=>t.specSelectors.specJson()),Yq),yU=()=>e=>{const t=e.specSelectors.specJson().get("webhooks");return w.Map.isMap(t)?t:mU},vU=(0,q.Mz)([(e,t)=>t.specSelectors.webhooks(),(e,t)=>t.specSelectors.validOperationMethods(),(e,t)=>t.specSelectors.specResolvedSubtree(["webhooks"])],((e,t)=>e.reduce(((e,r,n)=>{if(!w.Map.isMap(r))return e;const s=r.entrySeq().filter((([e])=>t.includes(e))).map((([e,t])=>({operation:(0,w.Map)({operation:t}),method:e,path:n,specPath:["webhooks",n,e]})));return e.concat(s)}),(0,w.List)()).groupBy((e=>e.path)).map((e=>e.toArray())).toObject())),bU=()=>e=>{const t=e.specSelectors.info().get("license");return w.Map.isMap(t)?t:mU},EU=()=>e=>e.specSelectors.license().get("name","License"),wU=()=>e=>e.specSelectors.license().get("url"),xU=(0,q.Mz)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField()],((e,t,r)=>{if(r)return YM(r,e,{selectedServer:t})})),SU=()=>e=>e.specSelectors.license().get("identifier"),_U=()=>e=>{const t=e.specSelectors.info().get("contact");return w.Map.isMap(t)?t:mU},AU=()=>e=>e.specSelectors.contact().get("name","the developer"),OU=()=>e=>e.specSelectors.contact().get("email"),CU=()=>e=>e.specSelectors.contact().get("url"),jU=(0,q.Mz)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectContactUrlField()],((e,t,r)=>{if(r)return YM(r,e,{selectedServer:t})})),kU=()=>e=>e.specSelectors.info().get("title"),TU=()=>e=>e.specSelectors.info().get("summary"),NU=()=>e=>e.specSelectors.info().get("description"),IU=()=>e=>e.specSelectors.info().get("termsOfService"),PU=(0,q.Mz)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectInfoTermsOfServiceField()],((e,t,r)=>{if(r)return YM(r,e,{selectedServer:t})})),MU=()=>e=>e.specSelectors.externalDocs().get("description"),RU=()=>e=>e.specSelectors.externalDocs().get("url"),DU=(0,q.Mz)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectExternalDocsUrlField()],((e,t,r)=>{if(r)return YM(r,e,{selectedServer:t})})),$U=()=>e=>e.specSelectors.specJson().get("jsonSchemaDialect"),FU=()=>"https://spec.openapis.org/oas/3.1/dialect/base",BU=(0,q.Mz)(((e,t)=>t.specSelectors.definitions()),((e,t)=>t.specSelectors.specResolvedSubtree(["components","schemas"])),((e,t)=>w.Map.isMap(e)?w.Map.isMap(t)?Object.entries(e.toJS()).reduce(((e,[r,n])=>{const s=t.get(r);return e[r]=s?.toJS()||n,e}),{}):e.toJS():{})),LU=(e,t)=>(r,...n)=>t.specSelectors.isOAS31()||e(...n),qU=Zq((()=>(e,t)=>t.oas31Selectors.selectLicenseUrl())),UU=Zq((()=>(e,t)=>{const r=t.specSelectors.securityDefinitions();let n=e();return r?(r.entrySeq().forEach((([e,t])=>{const r=t?.get("type");"mutualTLS"===r&&(n=n.push(new w.Map({[e]:t})))})),n):n})),zU=(0,q.Mz)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField(),(e,t)=>t.specSelectors.selectLicenseIdentifierField()],((e,t,r,n)=>r?YM(r,e,{selectedServer:t}):n?`https://spdx.org/licenses/${n}.html`:void 0));var JU=({schema:e,getSystem:t})=>{const{fn:r,getComponent:n}=t(),{hasKeyword:s}=r.jsonSchema202012.useFn(),o=n("JSONSchema202012JSONViewer");return s(e,"example")?f.createElement(o,{name:"Example",value:e.example,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"}):null},VU=({schema:e,getSystem:t})=>{const r=e?.xml||{},{fn:n,getComponent:s,getConfigs:o}=t(),{showExtensions:i}=o(),{useComponent:a,useIsExpanded:c,usePath:l,useLevel:u}=n.jsonSchema202012,{path:p}=l("xml"),{isExpanded:h,setExpanded:d,setCollapsed:m}=c("xml"),[g,y]=u(),v=i?vI(r):[],b=!!(r.name||r.namespace||r.prefix||v.length>0),E=a("Accordion"),w=a("ExpandDeepButton"),x=s("OpenAPI31Extensions"),S=s("JSONSchema202012PathContext")(),_=s("JSONSchema202012LevelContext")(),A=(0,f.useCallback)((()=>{h?m():d()}),[h,d,m]),O=(0,f.useCallback)(((e,t)=>{t?d({deep:!0}):m({deep:!0})}),[d,m]);return 0===Object.keys(r).length?null:f.createElement(S.Provider,{value:p},f.createElement(_.Provider,{value:y},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml","data-json-schema-level":g},b?f.createElement(f.Fragment,null,f.createElement(E,{expanded:h,onChange:A},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),f.createElement(w,{expanded:h,onClick:O})):f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),!0===r.attribute&&f.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),!0===r.wrapped&&f.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),f.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.createElement("ul",{className:gr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!h})},h&&f.createElement(f.Fragment,null,r.name&&f.createElement("li",{className:"json-schema-2020-12-property"},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.name))),r.namespace&&f.createElement("li",{className:"json-schema-2020-12-property"},f.createElement("div",{className:"json-schema-2020-12-keyword"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.namespace))),r.prefix&&f.createElement("li",{className:"json-schema-2020-12-property"},f.createElement("div",{className:"json-schema-2020-12-keyword"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.prefix)))),v.length>0&&f.createElement(x,{openAPISpecObj:r,openAPIExtensions:v,getSystem:t})))))},WU=({discriminator:e})=>{const t=e?.mapping||{};return 0===Object.keys(t).length?null:Object.entries(t).map((([e,t])=>f.createElement("div",{key:`${e}-${t}`,className:"json-schema-2020-12-keyword"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},e),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t))))},KU=({schema:e,getSystem:t})=>{const r=e?.discriminator||{},{fn:n,getComponent:s,getConfigs:o}=t(),{showExtensions:i}=o(),{useComponent:a,useIsExpanded:c,usePath:l,useLevel:u}=n.jsonSchema202012,p="discriminator",{path:h}=l(p),{isExpanded:d,setExpanded:m,setCollapsed:g}=c(p),[y,v]=u(),b=i?vI(r):[],E=!!(r.mapping||b.length>0),w=a("Accordion"),x=a("ExpandDeepButton"),S=s("OpenAPI31Extensions"),_=s("JSONSchema202012PathContext")(),A=s("JSONSchema202012LevelContext")(),O=(0,f.useCallback)((()=>{d?g():m()}),[d,m,g]),C=(0,f.useCallback)(((e,t)=>{t?m({deep:!0}):g({deep:!0})}),[m,g]);return 0===Object.keys(r).length?null:f.createElement(_.Provider,{value:h},f.createElement(A.Provider,{value:v},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator","data-json-schema-level":y},E?f.createElement(f.Fragment,null,f.createElement(w,{expanded:d,onChange:O},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),f.createElement(x,{expanded:d,onClick:C})):f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),r.propertyName&&f.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},r.propertyName),f.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.createElement("ul",{className:gr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&f.createElement("li",{className:"json-schema-2020-12-property"},f.createElement(WU,{discriminator:r})),b.length>0&&f.createElement(S,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},HU=({openAPISpecObj:e,getSystem:t,openAPIExtensions:r})=>{const{fn:n}=t(),{useComponent:s}=n.jsonSchema202012,o=s("JSONViewer");return r.map((t=>f.createElement(o,{key:t,name:t,value:e[t],className:"json-schema-2020-12-json-viewer-extension-keyword"})))},GU=({schema:e,getSystem:t})=>{const r=e?.externalDocs||{},{fn:n,getComponent:s,getConfigs:o}=t(),{showExtensions:i}=o(),{useComponent:a,useIsExpanded:c,usePath:l,useLevel:u}=n.jsonSchema202012,p="externalDocs",{path:h}=l(p),{isExpanded:d,setExpanded:m,setCollapsed:g}=c(p),[y,v]=u(),b=i?vI(r):[],E=!!(r.description||r.url||b.length>0),w=a("Accordion"),x=a("ExpandDeepButton"),S=s("JSONSchema202012KeywordDescription"),_=s("Link"),A=s("OpenAPI31Extensions"),O=s("JSONSchema202012PathContext")(),C=s("JSONSchema202012LevelContext")(),j=(0,f.useCallback)((()=>{d?g():m()}),[d,m,g]),k=(0,f.useCallback)(((e,t)=>{t?m({deep:!0}):g({deep:!0})}),[m,g]);return 0===Object.keys(r).length?null:f.createElement(O.Provider,{value:h},f.createElement(C.Provider,{value:v},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs","data-json-schema-level":y},E?f.createElement(f.Fragment,null,f.createElement(w,{expanded:d,onChange:j},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),f.createElement(x,{expanded:d,onClick:k})):f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),f.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.createElement("ul",{className:gr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&f.createElement(f.Fragment,null,r.description&&f.createElement("li",{className:"json-schema-2020-12-property"},f.createElement(S,{schema:r,getSystem:t})),r.url&&f.createElement("li",{className:"json-schema-2020-12-property"},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},f.createElement(_,{target:"_blank",href:XM(r.url)},r.url))))),b.length>0&&f.createElement(A,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},YU=eU((({schema:e,getSystem:t})=>{if(!e?.description)return null;const{getComponent:r}=t(),n=r("Markdown");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},f.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},f.createElement(n,{source:e.description})))}));const XU=eU((({schema:e,getSystem:t,originalComponent:r})=>{const{getComponent:n}=t(),s=n("JSONSchema202012KeywordDiscriminator"),o=n("JSONSchema202012KeywordXml"),i=n("JSONSchema202012KeywordExample"),a=n("JSONSchema202012KeywordExternalDocs");return f.createElement(f.Fragment,null,f.createElement(r,{schema:e}),f.createElement(s,{schema:e,getSystem:t}),f.createElement(o,{schema:e,getSystem:t}),f.createElement(a,{schema:e,getSystem:t}),f.createElement(i,{schema:e,getSystem:t}))}));var ZU=XU,QU=eU((({schema:e,getSystem:t})=>{const{fn:r,getComponent:n}=t(),{useComponent:s,usePath:o}=r.jsonSchema202012,{getDependentRequired:i,getProperties:a}=r.jsonSchema202012.useFn(),c=r.jsonSchema202012.useConfig(),l=Array.isArray(e?.required)?e.required:[],{path:u}=o("properties"),p=s("JSONSchema"),h=n("JSONSchema202012PathContext")(),d=a(e,c);return 0===Object.keys(d).length?null:f.createElement(h.Provider,{value:u},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},f.createElement("ul",null,Object.entries(d).map((([t,r])=>{const n=l.includes(t),s=i(t,e);return f.createElement("li",{key:t,className:gr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":n})},f.createElement(p,{name:t,schema:r,dependentRequired:s}))})))))})),ez=function({fn:e,getSystem:t}){if(e.jsonSchema202012){const r=((e,t)=>{const{fn:r}=t();if("function"!=typeof e)return null;const{hasKeyword:n}=r.jsonSchema202012;return t=>e(t)||n(t,"example")||t?.xml||t?.discriminator||t?.externalDocs})(e.jsonSchema202012.isExpandable,t);Object.assign(this.fn.jsonSchema202012,{isExpandable:r,getProperties:oU})}if("function"==typeof e.sampleFromSchema&&e.jsonSchema202012){const r=tU({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:t=>e.jsonSchema202012.getType(XN(t)),getSchemaObjectType:t=>e.jsonSchema202012.foldType(XN(t)?.type)},t());Object.assign(this.fn,r)}const r=(e=>(t,r=null)=>{const{fn:n}=e();if(n.isFileUploadIntendedOAS30(t,r))return!0;const s=w.Map.isMap(t);if(!s&&!Mr()(t))return!1;const o=s?t.get("contentMediaType"):t.contentMediaType,i=s?t.get("contentEncoding"):t.contentEncoding;return"string"==typeof o&&""!==o||"string"==typeof i&&""!==i})(t),{isFileUploadIntended:n}=tU({isFileUploadIntended:r},t());if(this.fn.isFileUploadIntended=n,this.fn.isFileUploadIntendedOAS31=r,e.jsonSchema202012){const{hasSchemaType:r}=tU({hasSchemaType:e.jsonSchema202012.hasSchemaType},t());this.fn.hasSchemaType=r}},tz=({fn:e})=>{const t=e.createSystemSelector||Qq,r=e.createOnlyOAS31Selector||Xq;return{afterLoad:ez,fn:{isOAS31:Yq,createSystemSelector:Qq,createOnlyOAS31Selector:Xq},components:{Webhooks:Fq,JsonSchemaDialect:Uq,MutualTLSAuth:Kq,OAS31Info:qq,OAS31License:Bq,OAS31Contact:Lq,OAS31VersionPragmaFilter:zq,OAS31Model:Vq,OAS31Models:Wq,OAS31Auths:Gq,JSONSchema202012KeywordExample:JU,JSONSchema202012KeywordXml:VU,JSONSchema202012KeywordDiscriminator:KU,JSONSchema202012KeywordExternalDocs:GU,OpenAPI31Extensions:HU},wrapComponents:{InfoContainer:sU,License:rU,Contact:nU,VersionPragmaFilter:pU,Model:cU,Models:uU,AuthItem:dU,auths:fU,JSONSchema202012KeywordDescription:YU,JSONSchema202012KeywordExamples:ZU,JSONSchema202012KeywordProperties:QU},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:UU}},spec:{selectors:{isOAS31:t(gU),license:bU,selectLicenseNameField:EU,selectLicenseUrlField:wU,selectLicenseIdentifierField:r(SU),selectLicenseUrl:t(xU),contact:_U,selectContactNameField:AU,selectContactEmailField:OU,selectContactUrlField:CU,selectContactUrl:t(jU),selectInfoTitleField:kU,selectInfoSummaryField:r(TU),selectInfoDescriptionField:NU,selectInfoTermsOfServiceField:IU,selectInfoTermsOfServiceUrl:t(PU),selectExternalDocsDescriptionField:MU,selectExternalDocsUrlField:RU,selectExternalDocsUrl:t(DU),webhooks:r(yU),selectWebhooksOperations:r(t(vU)),selectJsonSchemaDialectField:$U,selectJsonSchemaDialectDefault:FU,selectSchemas:t(BU)},wrapSelectors:{isOAS3:LU,selectLicenseUrl:qU}},oas31:{selectors:{selectLicenseUrl:r(t(zU))}}}}},rz=({bypass:e,isSwagger2:t,isOAS3:r,isOAS31:n,isOAS32:s,alsoShow:o,children:i})=>e?f.createElement("div",null,i):t&&(r||n||s)?f.createElement("div",{className:"version-pragma"},o,f.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},f.createElement("div",null,f.createElement("h3",null,"Unable to render this definition"),f.createElement("p",null,f.createElement("code",null,"swagger")," and ",f.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),f.createElement("p",null,"Supported version fields are ",f.createElement("code",null,'swagger: "2.0"')," ","and ",f.createElement("code",null,"openapi: 3.0.x"),", ",f.createElement("code",null,"openapi: 3.1.x"),", or"," ",f.createElement("code",null,"openapi: 3.2.x")," (for example,"," ",f.createElement("code",null,"openapi: 3.2.0"),").")))):t||r||n||s?f.createElement("div",null,i):f.createElement("div",{className:"version-pragma"},o,f.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},f.createElement("div",null,f.createElement("h3",null,"Unable to render this definition"),f.createElement("p",null,"The provided definition does not specify a valid version field."),f.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",f.createElement("code",null,'swagger: "2.0"')," ","and ",f.createElement("code",null,"openapi: 3.0.x"),", ",f.createElement("code",null,"openapi: 3.1.x"),", or"," ",f.createElement("code",null,"openapi: 3.2.x")," (for example,"," ",f.createElement("code",null,"openapi: 3.2.0"),")."))));const nz=e=>{const t=e.get("openapi");return"string"==typeof t&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)},sz=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS32()){const s=e(t,...r);return"function"==typeof s?s(n):s}return null},oz=e=>(t,...r)=>n=>{const s=e(t,n,...r);return"function"==typeof s?s(n):s},iz=e=>(t,r)=>n=>r.specSelectors.isOAS32()?f.createElement(e,fr({},n,{originalComponent:t,getSystem:r.getSystem})):f.createElement(t,n),az=(e,t)=>{const{fn:r,specSelectors:n}=t;return Object.fromEntries(Object.entries(e).map((([e,t])=>{const s=r[e];return[e,(...e)=>n.isOAS32()?t(...e):"function"==typeof s?s(...e):void 0]})))};var cz=iz((e=>{const{getSystem:t}=e,r=t().getComponent("OAS31Contact",!0);return f.createElement(r,e)})),lz=iz((({getSystem:e})=>{const t=e().getComponent("OAS31Info",!0);return f.createElement(t,null)})),uz=iz((e=>{const{getSystem:t}=e,r=t().getComponent("OAS31License",!0);return f.createElement(r,e)}));const pz=e=>{if("function"!=typeof e)return null;const t=e();return()=>[...t,"discriminator","xml","externalDocs","example","$$ref"]},hz=iz((({getSystem:e,...t})=>{const r=e(),{getComponent:n,fn:s,getConfigs:o}=r,i=o(),a=window?.location?.pathname??"/";if(hz.ModelWithJSONSchemaContext&&hz.pathname===a)return f.createElement(hz.ModelWithJSONSchemaContext,t);const c=n("OAS31Model"),l=n("withJSONSchema202012SystemContext");return hz.ModelWithJSONSchemaContext=l(c,{config:{default$schema:"https://spec.openapis.org/oas/3.2/schema/2025-09-17",defaultExpandedLevels:i.defaultModelExpandDepth,includeReadOnly:t.includeReadOnly,includeWriteOnly:t.includeWriteOnly},fn:{getProperties:s.jsonSchema202012.getProperties,isExpandable:s.jsonSchema202012.isExpandable,getSchemaKeywords:pz(s.jsonSchema202012.getSchemaKeywords)}}),hz.pathname=a,f.createElement(hz.ModelWithJSONSchemaContext,t)}));hz.ModelWithJSONSchemaContext=null,hz.pathname=null;var dz=hz;const fz=iz((({getSystem:e})=>{const{getComponent:t,fn:r,getConfigs:n}=e(),s=n(),o=window?.location?.pathname??"/";if(fz.ModelsWithJSONSchemaContext&&fz.pathname===o)return f.createElement(fz.ModelsWithJSONSchemaContext,null);const i=t("OAS31Models",!0),a=t("withJSONSchema202012SystemContext");return fz.ModelsWithJSONSchemaContext=a(i,{config:{default$schema:"https://spec.openapis.org/oas/3.2/schema/2025-09-17",defaultExpandedLevels:s.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:pz(r.jsonSchema202012.getSchemaKeywords)}}),fz.pathname=o,f.createElement(fz.ModelsWithJSONSchemaContext,null)}));fz.ModelsWithJSONSchemaContext=null,fz.pathname=null;var mz=fz,gz=iz((e=>{const{originalComponent:t}=e;return f.createElement(t,{oasVersion:"3.2"})})),yz=(e,t)=>e=>{const r=t.specSelectors.isOAS32(),n=t.getComponent("OAS32VersionPragmaFilter");return f.createElement(n,fr({isOAS32:r},e))},vz=iz((({schema:e,getSystem:t})=>{if(!e?.description)return null;const{getComponent:r}=t(),n=r("Markdown");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},f.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},f.createElement(n,{source:e.description})))}));const bz=iz((({schema:e,getSystem:t,originalComponent:r})=>{const{getComponent:n}=t(),s=n("JSONSchema202012KeywordDiscriminator"),o=n("JSONSchema202012KeywordXml"),i=n("JSONSchema202012KeywordExample"),a=n("JSONSchema202012KeywordExternalDocs");return f.createElement(f.Fragment,null,f.createElement(r,{schema:e}),f.createElement(s,{schema:e,getSystem:t}),f.createElement(o,{schema:e,getSystem:t}),f.createElement(a,{schema:e,getSystem:t}),f.createElement(i,{schema:e,getSystem:t}))}));var Ez=bz,wz=iz((({schema:e,getSystem:t})=>{const{fn:r,getComponent:n}=t(),{useComponent:s,usePath:o}=r.jsonSchema202012,{getDependentRequired:i,getProperties:a}=r.jsonSchema202012.useFn(),c=r.jsonSchema202012.useConfig(),l=Array.isArray(e?.required)?e.required:[],{path:u}=o("properties"),p=s("JSONSchema"),h=n("JSONSchema202012PathContext")(),d=a(e,c);return 0===Object.keys(d).length?null:f.createElement(h.Provider,{value:u},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},f.createElement("ul",null,Object.entries(d).map((([t,r])=>{const n=l.includes(t),s=i(t,e);return f.createElement("li",{key:t,className:gr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":n})},f.createElement(p,{name:t,schema:r,dependentRequired:s}))})))))}));const xz=Lr()(["get","put","post","delete","options","head","patch","trace","query"]),Sz=(e,t)=>(r,...n)=>t.specSelectors.isOAS32()||e(...n),_z=(e,t)=>(r,...n)=>{if(t.getSystem().specSelectors.isOAS32()){const r=(e,t)=>t.oas32Selectors.validOperationMethods();return"function"==typeof r?r(e,t):r}return e(...n)},Az=(0,w.Map)(),Oz=(e,t)=>()=>{const e=t.specSelectors.specJson();return nz(e)},Cz=()=>e=>{const t=e.specSelectors.info().get("license");return w.Map.isMap(t)?t:Az},jz=()=>e=>e.specSelectors.license().get("name","License"),kz=()=>e=>e.specSelectors.license().get("url"),Tz=(0,q.Mz)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField()],((e,t,r)=>{if(r)return YM(r,e,{selectedServer:t})})),Nz=()=>e=>e.specSelectors.license().get("identifier"),Iz=()=>e=>{const t=e.specSelectors.info().get("contact");return w.Map.isMap(t)?t:Az},Pz=()=>e=>e.specSelectors.contact().get("name","the developer"),Mz=()=>e=>e.specSelectors.contact().get("email"),Rz=()=>e=>e.specSelectors.contact().get("url"),Dz=(0,q.Mz)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectContactUrlField()],((e,t,r)=>{if(r)return YM(r,e,{selectedServer:t})})),$z=()=>e=>e.specSelectors.info().get("summary");var Fz=function({fn:e,getSystem:t}){if("function"==typeof e.sampleFromSchema&&e.jsonSchema202012){const r=az({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:t=>e.jsonSchema202012.getType(XN(t)),getSchemaObjectType:t=>e.jsonSchema202012.foldType(XN(t)?.type)},t());Object.assign(this.fn,r)}const r=(e=>(t,r=null)=>{const{fn:n}=e();if(n.isFileUploadIntendedOAS30(t,r))return!0;const s=w.Map.isMap(t);if(!s&&!Mr()(t))return!1;const o=s?t.get("contentMediaType"):t.contentMediaType,i=s?t.get("contentEncoding"):t.contentEncoding;return"string"==typeof o&&""!==o||"string"==typeof i&&""!==i})(t),{isFileUploadIntended:n}=az({isFileUploadIntended:r},t());if(this.fn.isFileUploadIntended=n,this.fn.isFileUploadIntendedOAS32=r,e.jsonSchema202012){const{hasSchemaType:r}=az({hasSchemaType:e.jsonSchema202012.hasSchemaType},t());this.fn.hasSchemaType=r}},Bz=({fn:e})=>{const t=e.createSystemSelector||oz;return{afterLoad:Fz,fn:{isOAS32:nz,createSystemSelector:oz,createOnlyOAS32Selector:sz},components:{OAS32VersionPragmaFilter:rz},wrapComponents:{Contact:cz,InfoContainer:lz,License:uz,Model:dz,Models:mz,OpenAPIVersion:gz,VersionPragmaFilter:yz,JSONSchema202012KeywordDescription:vz,JSONSchema202012KeywordExamples:Ez,JSONSchema202012KeywordProperties:wz},statePlugins:{spec:{selectors:{isOAS32:t(Oz),selectInfoSummaryField:$z,license:Cz,selectLicenseNameField:jz,selectLicenseUrlField:kz,selectLicenseIdentifierField:Nz,selectLicenseUrl:t(Tz),contact:Iz,selectContactNameField:Pz,selectContactEmailField:Mz,selectContactUrlField:Rz,selectContactUrl:t(Dz)},wrapSelectors:{isOAS3:Sz,validOperationMethods:_z}},oas32:{selectors:{validOperationMethods:xz}}}}};const Lz=z().object,qz=z().bool,Uz=(z().oneOfType([Lz,qz]),(0,f.createContext)(null));Uz.displayName="JSONSchemaContext";const zz=(0,f.createContext)(0);zz.displayName="JSONSchemaLevelContext";const Jz=(0,f.createContext)(new Set),Vz=(0,f.createContext)([]);class Wz{static Collapsed="collapsed";static Expanded="expanded";static DeeplyExpanded="deeply-expanded"}const Kz=()=>{const{config:e}=(0,f.useContext)(Uz);return e},Hz=e=>{const{components:t}=(0,f.useContext)(Uz);return t[e]||null},Gz=(e=void 0)=>{const{fn:t}=(0,f.useContext)(Uz);return void 0!==e?t[e]:t},Yz=()=>{const[,e]=(0,f.useState)(null),{state:t}=(0,f.useContext)(Uz);return{state:t,setState:r=>{r(t),e({})}}},Xz=()=>{const e=(0,f.useContext)(zz);return[e,e+1]},Zz=e=>{const t=(0,f.useContext)(Vz),{setState:r}=Yz(),n="string"==typeof e?[...t,e]:t;return{path:n,pathMutator:(e,t={deep:!1})=>{const s=n.toString();t.deep?r((t=>{Object.keys(t.paths).forEach((r=>{r.startsWith(s)&&(t.paths[r]=e)}))})):r((t=>{t.paths[s]=e,e===Wz.Collapsed&&Object.keys(t.paths).forEach((e=>{e.startsWith(s)&&t.paths[e]===Wz.DeeplyExpanded&&(t.paths[e]=Wz.Expanded)}))}))}}},Qz=e=>{const[t]=Xz(),{defaultExpandedLevels:r}=Kz(),{path:n,pathMutator:s}=Zz(e),{path:o}=Zz(),{state:i}=Yz(),a=i.paths[n.toString()],c=i.paths[o.toString()]??i.paths[o.slice(0,-1).toString()],l=a??(r-t>0?Wz.Expanded:Wz.Collapsed),u=l!==Wz.Collapsed;return(0,f.useEffect)((()=>{s(c===Wz.DeeplyExpanded?Wz.DeeplyExpanded:l)}),[c]),{isExpanded:u,setExpanded:(0,f.useCallback)(((e={deep:!1})=>{s(e.deep?Wz.DeeplyExpanded:Wz.Expanded)}),[]),setCollapsed:(0,f.useCallback)(((e={deep:!1})=>{s(Wz.Collapsed,e)}),[])}},eJ=(e=void 0)=>{if(void 0===e)return(0,f.useContext)(Jz);const t=(0,f.useContext)(Jz);return new Set([...t,e])},tJ=(0,f.forwardRef)((({schema:e,name:t="",dependentRequired:r=[],onExpand:n=()=>{},identifier:s=""},o)=>{const i=Gz(),a=s||e?.$id||t,{path:c}=Zz(a),{isExpanded:l,setExpanded:u,setCollapsed:p}=Qz(a),[h,d]=Xz(),m=(()=>{const[e]=Xz();return e>0})(),g=i.isExpandable(e)||r.length>0,y=(e=>eJ().has(e))(e),v=eJ(e),b=i.stringifyConstraints(e),E=Hz("Accordion"),w=Hz("Keyword$schema"),x=Hz("Keyword$vocabulary"),S=Hz("Keyword$id"),_=Hz("Keyword$anchor"),A=Hz("Keyword$dynamicAnchor"),O=Hz("Keyword$ref"),C=Hz("Keyword$dynamicRef"),j=Hz("Keyword$defs"),k=Hz("Keyword$comment"),T=Hz("KeywordAllOf"),N=Hz("KeywordAnyOf"),I=Hz("KeywordOneOf"),P=Hz("KeywordNot"),M=Hz("KeywordIf"),R=Hz("KeywordThen"),D=Hz("KeywordElse"),$=Hz("KeywordDependentSchemas"),F=Hz("KeywordPrefixItems"),B=Hz("KeywordItems"),L=Hz("KeywordContains"),q=Hz("KeywordProperties"),U=Hz("KeywordPatternProperties"),z=Hz("KeywordAdditionalProperties"),J=Hz("KeywordPropertyNames"),V=Hz("KeywordUnevaluatedItems"),W=Hz("KeywordUnevaluatedProperties"),K=Hz("KeywordType"),H=Hz("KeywordEnum"),G=Hz("KeywordConst"),Y=Hz("KeywordConstraint"),X=Hz("KeywordDependentRequired"),Z=Hz("KeywordContentSchema"),Q=Hz("KeywordTitle"),ee=Hz("KeywordDescription"),te=Hz("KeywordDefault"),re=Hz("KeywordDeprecated"),ne=Hz("KeywordReadOnly"),se=Hz("KeywordWriteOnly"),oe=Hz("KeywordExamples"),ie=Hz("ExtensionKeywords"),ae=Hz("ExpandDeepButton"),ce=(0,f.useCallback)(((e,t)=>{t?u():p(),n(e,t,!1)}),[n,u,p]),le=(0,f.useCallback)(((e,t)=>{t?u({deep:!0}):p({deep:!0}),n(e,t,!0)}),[n,u,p]);return f.createElement(Vz.Provider,{value:c},f.createElement(zz.Provider,{value:d},f.createElement(Jz.Provider,{value:v},f.createElement("article",{ref:o,"data-json-schema-level":h,className:gr()("json-schema-2020-12",{"json-schema-2020-12--embedded":m,"json-schema-2020-12--circular":y})},f.createElement("div",{className:"json-schema-2020-12-head"},g&&!y?f.createElement(f.Fragment,null,f.createElement(E,{expanded:l,onChange:ce},f.createElement(Q,{title:t,schema:e})),f.createElement(ae,{expanded:l,onClick:le})):f.createElement(Q,{title:t,schema:e}),f.createElement(re,{schema:e}),f.createElement(ne,{schema:e}),f.createElement(se,{schema:e}),f.createElement(K,{schema:e,isCircular:y}),b.length>0&&b.map((e=>f.createElement(Y,{key:`${e.scope}-${e.value}`,constraint:e})))),f.createElement("div",{className:gr()("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!l})},l&&f.createElement(f.Fragment,null,f.createElement(ee,{schema:e}),!y&&g&&f.createElement(f.Fragment,null,f.createElement(q,{schema:e}),f.createElement(U,{schema:e}),f.createElement(z,{schema:e}),f.createElement(W,{schema:e}),f.createElement(J,{schema:e}),f.createElement(T,{schema:e}),f.createElement(N,{schema:e}),f.createElement(I,{schema:e}),f.createElement(P,{schema:e}),f.createElement(M,{schema:e}),f.createElement(R,{schema:e}),f.createElement(D,{schema:e}),f.createElement($,{schema:e}),f.createElement(F,{schema:e}),f.createElement(B,{schema:e}),f.createElement(V,{schema:e}),f.createElement(L,{schema:e}),f.createElement(Z,{schema:e})),f.createElement(H,{schema:e}),f.createElement(G,{schema:e}),f.createElement(X,{schema:e,dependentRequired:r}),f.createElement(te,{schema:e}),f.createElement(oe,{schema:e}),f.createElement(w,{schema:e}),f.createElement(x,{schema:e}),f.createElement(S,{schema:e}),f.createElement(_,{schema:e}),f.createElement(A,{schema:e}),f.createElement(O,{schema:e}),!y&&g&&f.createElement(j,{schema:e}),f.createElement(C,{schema:e}),f.createElement(k,{schema:e}),f.createElement(ie,{schema:e})))))))}));var rJ=tJ,nJ=({schema:e})=>e?.$schema?f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$schema)):null,sJ=({schema:e})=>{const t="$vocabulary",{path:r}=Zz(t),{isExpanded:n,setExpanded:s,setCollapsed:o}=Qz(t),i=Hz("Accordion"),a=(0,f.useCallback)((()=>{n?o():s()}),[n,s,o]);return e?.$vocabulary?"object"!=typeof e.$vocabulary?null:f.createElement(Vz.Provider,{value:r},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},f.createElement(i,{expanded:n,onChange:a},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),f.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.createElement("ul",null,n&&Object.entries(e.$vocabulary).map((([e,t])=>f.createElement("li",{key:e,className:gr()("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!t})},f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e))))))):null},oJ=({schema:e})=>e?.$id?f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$id)):null,iJ=({schema:e})=>e?.$anchor?f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$anchor)):null,aJ=({schema:e})=>e?.$dynamicAnchor?f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$dynamicAnchor)):null,cJ=({schema:e})=>e?.$ref?f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$ref)):null,lJ=({schema:e})=>e?.$dynamicRef?f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$dynamicRef)):null,uJ=({schema:e})=>{const t=e?.$defs||{},r="$defs",{path:n}=Zz(r),{isExpanded:s,setExpanded:o,setCollapsed:i}=Qz(r),[a,c]=Xz(),l=Hz("Accordion"),u=Hz("ExpandDeepButton"),p=Hz("JSONSchema"),h=(0,f.useCallback)((()=>{s?i():o()}),[s,o,i]),d=(0,f.useCallback)(((e,t)=>{t?o({deep:!0}):i({deep:!0})}),[o,i]);return 0===Object.keys(t).length?null:f.createElement(Vz.Provider,{value:n},f.createElement(zz.Provider,{value:c},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs","data-json-schema-level":a},f.createElement(l,{expanded:s,onChange:h},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),f.createElement(u,{expanded:s,onClick:d}),f.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.createElement("ul",{className:gr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&f.createElement(f.Fragment,null,Object.entries(t).map((([e,t])=>f.createElement("li",{key:e,className:"json-schema-2020-12-property"},f.createElement(p,{name:e,schema:t})))))))))},pJ=({schema:e})=>e?.$comment?f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$comment)):null,hJ=({schema:e})=>{const t=e?.allOf||[],r=Gz(),n="allOf",{path:s}=Zz(n),{isExpanded:o,setExpanded:i,setCollapsed:a}=Qz(n),[c,l]=Xz(),u=Hz("Accordion"),p=Hz("ExpandDeepButton"),h=Hz("JSONSchema"),d=Hz("KeywordType"),m=(0,f.useCallback)((()=>{o?a():i()}),[o,i,a]),g=(0,f.useCallback)(((e,t)=>{t?i({deep:!0}):a({deep:!0})}),[i,a]);return Array.isArray(t)&&0!==t.length?f.createElement(Vz.Provider,{value:s},f.createElement(zz.Provider,{value:l},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf","data-json-schema-level":c},f.createElement(u,{expanded:o,onChange:m},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),f.createElement(p,{expanded:o,onClick:g}),f.createElement(d,{schema:{allOf:t}}),f.createElement("ul",{className:gr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&f.createElement(f.Fragment,null,t.map(((e,t)=>f.createElement("li",{key:`#${t}`,className:"json-schema-2020-12-property"},f.createElement(h,{name:`#${t} ${r.getTitle(e)}`,schema:e}))))))))):null},dJ=({schema:e})=>{const t=e?.anyOf||[],r=Gz(),n="anyOf",{path:s}=Zz(n),{isExpanded:o,setExpanded:i,setCollapsed:a}=Qz(n),[c,l]=Xz(),u=Hz("Accordion"),p=Hz("ExpandDeepButton"),h=Hz("JSONSchema"),d=Hz("KeywordType"),m=(0,f.useCallback)((()=>{o?a():i()}),[o,i,a]),g=(0,f.useCallback)(((e,t)=>{t?i({deep:!0}):a({deep:!0})}),[i,a]);return Array.isArray(t)&&0!==t.length?f.createElement(Vz.Provider,{value:s},f.createElement(zz.Provider,{value:l},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf","data-json-schema-level":c},f.createElement(u,{expanded:o,onChange:m},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),f.createElement(p,{expanded:o,onClick:g}),f.createElement(d,{schema:{anyOf:t}}),f.createElement("ul",{className:gr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&f.createElement(f.Fragment,null,t.map(((e,t)=>f.createElement("li",{key:`#${t}`,className:"json-schema-2020-12-property"},f.createElement(h,{name:`#${t} ${r.getTitle(e)}`,schema:e}))))))))):null},fJ=({schema:e})=>{const t=e?.oneOf||[],r=Gz(),n="oneOf",{path:s}=Zz(n),{isExpanded:o,setExpanded:i,setCollapsed:a}=Qz(n),[c,l]=Xz(),u=Hz("Accordion"),p=Hz("ExpandDeepButton"),h=Hz("JSONSchema"),d=Hz("KeywordType"),m=(0,f.useCallback)((()=>{o?a():i()}),[o,i,a]),g=(0,f.useCallback)(((e,t)=>{t?i({deep:!0}):a({deep:!0})}),[i,a]);return Array.isArray(t)&&0!==t.length?f.createElement(Vz.Provider,{value:s},f.createElement(zz.Provider,{value:l},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf","data-json-schema-level":c},f.createElement(u,{expanded:o,onChange:m},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),f.createElement(p,{expanded:o,onClick:g}),f.createElement(d,{schema:{oneOf:t}}),f.createElement("ul",{className:gr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&f.createElement(f.Fragment,null,t.map(((e,t)=>f.createElement("li",{key:`#${t}`,className:"json-schema-2020-12-property"},f.createElement(h,{name:`#${t} ${r.getTitle(e)}`,schema:e}))))))))):null},mJ=({schema:e})=>{const t=Gz(),r=Hz("JSONSchema");if(!t.hasKeyword(e,"not"))return null;const n=f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},f.createElement(r,{name:n,schema:e.not,identifier:"not"}))},gJ=({schema:e})=>{const t=Gz(),r=Hz("JSONSchema");if(!t.hasKeyword(e,"if"))return null;const n=f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},f.createElement(r,{name:n,schema:e.if,identifier:"if"}))},yJ=({schema:e})=>{const t=Gz(),r=Hz("JSONSchema");if(!t.hasKeyword(e,"then"))return null;const n=f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},f.createElement(r,{name:n,schema:e.then,identifier:"then"}))},vJ=({schema:e})=>{const t=Gz(),r=Hz("JSONSchema");if(!t.hasKeyword(e,"else"))return null;const n=f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},f.createElement(r,{name:n,schema:e.else,identifier:"else"}))},bJ=({schema:e})=>{const t=e?.dependentSchemas||[],r="dependentSchemas",{path:n}=Zz(r),{isExpanded:s,setExpanded:o,setCollapsed:i}=Qz(r),[a,c]=Xz(),l=Hz("Accordion"),u=Hz("ExpandDeepButton"),p=Hz("JSONSchema"),h=(0,f.useCallback)((()=>{s?i():o()}),[s,o,i]),d=(0,f.useCallback)(((e,t)=>{t?o({deep:!0}):i({deep:!0})}),[o,i]);return"object"!=typeof t||0===Object.keys(t).length?null:f.createElement(Vz.Provider,{value:n},f.createElement(zz.Provider,{value:c},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas","data-json-schema-level":a},f.createElement(l,{expanded:s,onChange:h},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),f.createElement(u,{expanded:s,onClick:d}),f.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.createElement("ul",{className:gr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&f.createElement(f.Fragment,null,Object.entries(t).map((([e,t])=>f.createElement("li",{key:e,className:"json-schema-2020-12-property"},f.createElement(p,{name:e,schema:t})))))))))},EJ=({schema:e})=>{const t=e?.prefixItems||[],r=Gz(),n="prefixItems",{path:s}=Zz(n),{isExpanded:o,setExpanded:i,setCollapsed:a}=Qz(n),[c,l]=Xz(),u=Hz("Accordion"),p=Hz("ExpandDeepButton"),h=Hz("JSONSchema"),d=Hz("KeywordType"),m=(0,f.useCallback)((()=>{o?a():i()}),[o,i,a]),g=(0,f.useCallback)(((e,t)=>{t?i({deep:!0}):a({deep:!0})}),[i,a]);return Array.isArray(t)&&0!==t.length?f.createElement(Vz.Provider,{value:s},f.createElement(zz.Provider,{value:l},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems","data-json-schema-level":c},f.createElement(u,{expanded:o,onChange:m},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),f.createElement(p,{expanded:o,onClick:g}),f.createElement(d,{schema:{prefixItems:t}}),f.createElement("ul",{className:gr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!o})},o&&f.createElement(f.Fragment,null,t.map(((e,t)=>f.createElement("li",{key:`#${t}`,className:"json-schema-2020-12-property"},f.createElement(h,{name:`#${t} ${r.getTitle(e)}`,schema:e}))))))))):null},wJ=({schema:e})=>{const t=Gz(),r=Hz("JSONSchema");if(!t.hasKeyword(e,"items"))return null;const n=f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},f.createElement(r,{name:n,schema:e.items,identifier:"items"}))},xJ=({schema:e})=>{const t=Gz(),r=Hz("JSONSchema");if(!t.hasKeyword(e,"contains"))return null;const n=f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},f.createElement(r,{name:n,schema:e.contains,identifier:"contains"}))},SJ=({schema:e})=>{const t=Gz(),r=e?.properties||{},n=Array.isArray(e?.required)?e.required:[],s=Hz("JSONSchema"),{path:o}=Zz("properties");return 0===Object.keys(r).length?null:f.createElement(Vz.Provider,{value:o},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},f.createElement("ul",null,Object.entries(r).map((([r,o])=>{const i=n.includes(r),a=t.getDependentRequired(r,e);return f.createElement("li",{key:r,className:gr()("json-schema-2020-12-property",{"json-schema-2020-12-property--required":i})},f.createElement(s,{name:r,schema:o,dependentRequired:a}))})))))},_J=({schema:e})=>{const t=e?.patternProperties||{},r=Hz("JSONSchema"),{path:n}=Zz("patternProperties");return 0===Object.keys(t).length?null:f.createElement(Vz.Provider,{value:n},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},f.createElement("ul",null,Object.entries(t).map((([e,t])=>f.createElement("li",{key:e,className:"json-schema-2020-12-property"},f.createElement(r,{name:e,schema:t})))))))},AJ=({schema:e})=>{const t=Gz(),r=Hz("JSONSchema");if(!t.hasKeyword(e,"additionalProperties"))return null;const n=f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},!0===e.additionalProperties?f.createElement(f.Fragment,null,n,f.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):!1===e.additionalProperties?f.createElement(f.Fragment,null,n,f.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):f.createElement(r,{name:n,schema:e.additionalProperties,identifier:"additionalProperties"}))},OJ=({schema:e})=>{const t=Gz(),r=Hz("JSONSchema"),n=f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return t.hasKeyword(e,"propertyNames")?f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},f.createElement(r,{name:n,schema:e.propertyNames,identifier:"propertyNames"})):null},CJ=({schema:e})=>{const t=Gz(),r=Hz("JSONSchema");if(!t.hasKeyword(e,"unevaluatedItems"))return null;const n=f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},f.createElement(r,{name:n,schema:e.unevaluatedItems,identifier:"unevaluatedItems"}))},jJ=({schema:e})=>{const t=Gz(),r=Hz("JSONSchema");if(!t.hasKeyword(e,"unevaluatedProperties"))return null;const n=f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},f.createElement(r,{name:n,schema:e.unevaluatedProperties,identifier:"unevaluatedProperties"}))},kJ=({schema:e,isCircular:t=!1})=>{const r=Gz().getType(e),n=t?" [circular]":"";return f.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},TJ=({schema:e})=>{const t=Hz("JSONViewer");return Array.isArray(e?.enum)?f.createElement(t,{name:"Enum",value:e.enum,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"}):null},NJ=({schema:e})=>{const t=Gz(),r=Hz("JSONViewer");return t.hasKeyword(e,"const")?f.createElement(r,{name:"Const",value:e.const,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"}):null};const IJ=e=>"string"==typeof e?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e,PJ=e=>(t,{lookup:r="extended"}={})=>{const n=e();if(null!=t?.title)return n.upperFirst(String(t.title));if("extended"===r){if(null!=t?.$anchor)return n.upperFirst(String(t.$anchor));if(null!=t?.$id)return String(t.$id)}return""},MJ=e=>{const t=(r,n=new WeakSet)=>{const s=e();if(null==r)return"any";if(s.isBooleanJSONSchema(r))return r?"any":"never";if("object"!=typeof r)return"any";if(n.has(r))return"any";n.add(r);const{type:o,prefixItems:i,items:a}=r,c=()=>{if(Array.isArray(i)){const e=i.map((e=>t(e,n))),r=a?t(a,n):"any";return`array<[${e.join(", ")}], ${r}>`}return a?`array<${t(a,n)}>`:"array<any>"};if(r.not&&"any"===t(r.not))return"never";const l=(e,s)=>Array.isArray(r[e])?`(${r[e].map((e=>t(e,n))).join(s)})`:null,u=[Array.isArray(o)?o.map((e=>"array"===e?c():e)).join(" | "):"array"===o?c():["null","boolean","object","array","number","integer","string"].includes(o)?o:(()=>{if(Object.hasOwn(r,"prefixItems")||Object.hasOwn(r,"items")||Object.hasOwn(r,"contains"))return c();if(Object.hasOwn(r,"properties")||Object.hasOwn(r,"additionalProperties")||Object.hasOwn(r,"patternProperties"))return"object";if(["int32","int64"].includes(r.format))return"integer";if(["float","double"].includes(r.format))return"number";if(Object.hasOwn(r,"minimum")||Object.hasOwn(r,"maximum")||Object.hasOwn(r,"exclusiveMinimum")||Object.hasOwn(r,"exclusiveMaximum")||Object.hasOwn(r,"multipleOf"))return"number | integer";if(Object.hasOwn(r,"pattern")||Object.hasOwn(r,"format")||Object.hasOwn(r,"minLength")||Object.hasOwn(r,"maxLength")||Object.hasOwn(r,"contentEncoding")||Object.hasOwn(r,"contentMediaType"))return"string";if(void 0!==r.const){if(null===r.const)return"null";if("boolean"==typeof r.const)return"boolean";if("number"==typeof r.const)return Number.isInteger(r.const)?"integer":"number";if("string"==typeof r.const)return"string";if(Array.isArray(r.const))return"array<any>";if("object"==typeof r.const)return"object"}return null})(),l("oneOf"," | "),l("anyOf"," | "),l("allOf"," & ")].filter(Boolean).join(" | ");return n.delete(r),u||"any"};return t},RJ=e=>"boolean"==typeof e,DJ=(e,t)=>null!==e&&"object"==typeof e&&Object.hasOwn(e,t),$J=e=>t=>{const r=e();return t?.$schema||t?.$vocabulary||t?.$id||t?.$anchor||t?.$dynamicAnchor||t?.$ref||t?.$dynamicRef||t?.$defs||t?.$comment||t?.allOf||t?.anyOf||t?.oneOf||r.hasKeyword(t,"not")||r.hasKeyword(t,"if")||r.hasKeyword(t,"then")||r.hasKeyword(t,"else")||t?.dependentSchemas||t?.prefixItems||r.hasKeyword(t,"items")||r.hasKeyword(t,"contains")||t?.properties||t?.patternProperties||r.hasKeyword(t,"additionalProperties")||r.hasKeyword(t,"propertyNames")||r.hasKeyword(t,"unevaluatedItems")||r.hasKeyword(t,"unevaluatedProperties")||t?.description||t?.enum||r.hasKeyword(t,"const")||r.hasKeyword(t,"contentSchema")||r.hasKeyword(t,"default")||t?.examples||r.getExtensionKeywords(t).length>0},FJ=e=>null===e||["number","bigint","boolean"].includes(typeof e)?String(e):Array.isArray(e)?`[${e.map(FJ).join(", ")}]`:JSON.stringify(e),BJ=(e,t,r)=>{const n="number"==typeof t,s="number"==typeof r;return n&&s?t===r?`${t} ${e}`:`[${t}, ${r}] ${e}`:n?`≥ ${t} ${e}`:s?`≤ ${r} ${e}`:null},LJ=e=>{const t=[],r=(e=>{if("number"!=typeof e?.multipleOf)return null;if(e.multipleOf<=0)return null;if(1===e.multipleOf)return null;const{multipleOf:t}=e;if(Number.isInteger(t))return`multiple of ${t}`;const r=10**t.toString().split(".")[1].length;return`multiple of ${t*r}/${r}`})(e);null!==r&&t.push({scope:"number",value:r});const n=(e=>{const t=e?.minimum,r=e?.maximum,n=e?.exclusiveMinimum,s=e?.exclusiveMaximum,o="number"==typeof t,i="number"==typeof r,a="number"==typeof n,c="number"==typeof s,l=a&&(!o||t<n),u=c&&(!i||r>s);return(o||a)&&(i||c)?`${l?"(":"["}${l?n:t}, ${u?s:r}${u?")":"]"}`:o||a?`${l?">":"≥"} ${l?n:t}`:i||c?`${u?"<":"≤"} ${u?s:r}`:null})(e);null!==n&&t.push({scope:"number",value:n}),e?.format&&t.push({scope:"string",value:e.format});const s=BJ("characters",e?.minLength,e?.maxLength);null!==s&&t.push({scope:"string",value:s}),e?.pattern&&t.push({scope:"string",value:`matches ${e?.pattern}`}),e?.contentMediaType&&t.push({scope:"string",value:`media type: ${e.contentMediaType}`}),e?.contentEncoding&&t.push({scope:"string",value:`encoding: ${e.contentEncoding}`});const o=BJ(e?.uniqueItems?"unique items":"items",e?.minItems,e?.maxItems);null!==o&&t.push({scope:"array",value:o}),e?.uniqueItems&&!o&&t.push({scope:"array",value:"unique"});const i=BJ("contained items",e?.minContains,e?.maxContains);null!==i&&t.push({scope:"array",value:i});const a=BJ("properties",e?.minProperties,e?.maxProperties);return null!==a&&t.push({scope:"object",value:a}),t},qJ=(e,t)=>t?.dependentRequired?Array.from(Object.entries(t.dependentRequired).reduce(((t,[r,n])=>Array.isArray(n)&&n.includes(e)?(t.add(r),t):t),new Set)):[],UJ=e=>"object"==typeof e&&null!==e&&!Array.isArray(e)&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),zJ=()=>["$schema","$vocabulary","$id","$anchor","$dynamicAnchor","$dynamicRef","$ref","$defs","$comment","allOf","anyOf","oneOf","not","if","then","else","dependentSchemas","prefixItems","items","contains","properties","patternProperties","additionalProperties","propertyNames","unevaluatedItems","unevaluatedProperties","type","enum","const","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","maxContains","minContains","maxProperties","minProperties","required","dependentRequired","title","description","default","deprecated","readOnly","writeOnly","examples","format","contentEncoding","contentMediaType","contentSchema"],JJ=e=>t=>{const r=e().getSchemaKeywords();return UJ(t)?((e,t)=>{const r=new Set(t);return e.filter((e=>!r.has(e)))})(Object.keys(t),r):[]},VJ=(e,t)=>{const r=w.Map.isMap(e);if(!r&&!UJ(e))return!1;const n=e=>t===e||Array.isArray(t)&&t.includes(e),s=r?e.get("type"):e.type;return w.List.isList(s)||Array.isArray(s)?s.some((e=>n(e))):n(s)};var WJ=f.memo((({constraint:e})=>UJ(e)&&"string"==typeof e.scope&&"string"==typeof e.value?f.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${e.scope}`},e.value):null)),KJ=({dependentRequired:e})=>Array.isArray(e)&&0!==e.length?f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),f.createElement("ul",null,e.map((e=>f.createElement("li",{key:e},f.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},e)))))):null,HJ=({schema:e})=>{const t=Gz(),r=Hz("JSONSchema");if(!t.hasKeyword(e,"contentSchema"))return null;const n=f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},f.createElement(r,{name:n,schema:e.contentSchema,identifier:"contentSchema"}))},GJ=({title:e="",schema:t})=>{const r=Gz(),n=e||r.getTitle(t);return n?f.createElement("div",{className:"json-schema-2020-12__title"},n):null},YJ=({schema:e})=>e?.description?f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},f.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},e.description)):null,XJ=({schema:e})=>{const t=Gz(),r=Hz("JSONViewer");return t.hasKeyword(e,"default")?f.createElement(r,{name:"Default",value:e.default,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"}):null},ZJ=({schema:e})=>!0!==e?.deprecated?null:f.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),QJ=({schema:e})=>!0!==e?.readOnly?null:f.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),eV=({schema:e})=>!0!==e?.writeOnly?null:f.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),tV=({schema:e})=>{const t=e?.examples||[],r=Hz("JSONViewer");return Array.isArray(t)&&0!==t.length?f.createElement(r,{name:"Examples",value:e.examples,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--examples"}):null},rV=({schema:e})=>{const t=Gz(),r="ExtensionKeywords",{path:n}=Zz(r),{isExpanded:s,setExpanded:o,setCollapsed:i}=Qz(r),[a,c]=Xz(),l=Hz("Accordion"),u=Hz("ExpandDeepButton"),p=Hz("JSONViewer"),{showExtensionKeywords:h}=Kz(),d=t.getExtensionKeywords(e),m=(0,f.useCallback)((()=>{s?i():o()}),[s,o,i]),g=(0,f.useCallback)(((e,t)=>{t?o({deep:!0}):i({deep:!0})}),[o,i]);return h&&0!==d.length?f.createElement(Vz.Provider,{value:n},f.createElement(zz.Provider,{value:c},f.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords","data-json-schema-level":a},f.createElement(l,{expanded:s,onChange:m},f.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension"},"Extension Keywords")),f.createElement(u,{expanded:s,onClick:g}),f.createElement("ul",{className:gr()("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&f.createElement(f.Fragment,null,d.map((t=>f.createElement(p,{key:t,name:t,value:e[t],className:"json-schema-2020-12-json-viewer-extension-keyword"})))))))):null};const nV=({name:e,value:t,className:r})=>{const n=Gz(),{path:s}=Zz(e),{isExpanded:o,setExpanded:i,setCollapsed:a}=Qz(e),[c,l]=Xz(),u=Hz("Accordion"),p=Hz("ExpandDeepButton"),h="string"==typeof t||"number"==typeof t||"bigint"==typeof t||"boolean"==typeof t||"symbol"==typeof t||null==t,d=(e=>UJ(e)&&0===Object.keys(e).length)(t)||(e=>Array.isArray(e)&&0===e.length)(t),m=(0,f.useCallback)((()=>{o?a():i()}),[o,i,a]),g=(0,f.useCallback)(((e,t)=>{t?i({deep:!0}):a({deep:!0})}),[i,a]);return h?f.createElement("div",{className:gr()("json-schema-2020-12-json-viewer",r)},f.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e),f.createElement("span",{className:"json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary"},n.stringify(t))):d?f.createElement("div",{className:gr()("json-schema-2020-12-json-viewer",r)},f.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e),f.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(t)?"empty array":"empty object")):f.createElement(Vz.Provider,{value:s},f.createElement(zz.Provider,{value:l},f.createElement("div",{className:gr()("json-schema-2020-12-json-viewer",r),"data-json-schema-level":c},f.createElement(u,{expanded:o,onChange:m},f.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e)),f.createElement(p,{expanded:o,onClick:g}),f.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(t)?"array":"object"),f.createElement("ul",{className:gr()("json-schema-2020-12-json-viewer__children",{"json-schema-2020-12-json-viewer__children--collapsed":!o})},o&&f.createElement(f.Fragment,null,Array.isArray(t)?t.map(((e,t)=>f.createElement("li",{key:`#${t}`,className:"json-schema-2020-12-property"},f.createElement(nV,{name:`#${t}`,value:e,className:r})))):Object.entries(t).map((([e,t])=>f.createElement("li",{key:e,className:"json-schema-2020-12-property"},f.createElement(nV,{name:e,value:t,className:r})))))))))};var sV=nV,oV=({expanded:e=!1,children:t,onChange:r})=>{const n=Hz("ChevronRightIcon"),s=(0,f.useCallback)((t=>{r(t,!e)}),[e,r]);return f.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:s},f.createElement("div",{className:"json-schema-2020-12-accordion__children"},t),f.createElement("span",{className:gr()("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":e,"json-schema-2020-12-accordion__icon--collapsed":!e})},f.createElement(n,null)))},iV=({expanded:e,onClick:t})=>{const r=(0,f.useCallback)((r=>{t(r,!e)}),[e,t]);return f.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:r},e?"Collapse all":"Expand all")},aV=()=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},f.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));const cV=(e,t={})=>{const r={components:{JSONSchema:rJ,Keyword$schema:nJ,Keyword$vocabulary:sJ,Keyword$id:oJ,Keyword$anchor:iJ,Keyword$dynamicAnchor:aJ,Keyword$ref:cJ,Keyword$dynamicRef:lJ,Keyword$defs:uJ,Keyword$comment:pJ,KeywordAllOf:hJ,KeywordAnyOf:dJ,KeywordOneOf:fJ,KeywordNot:mJ,KeywordIf:gJ,KeywordThen:yJ,KeywordElse:vJ,KeywordDependentSchemas:bJ,KeywordPrefixItems:EJ,KeywordItems:wJ,KeywordContains:xJ,KeywordProperties:SJ,KeywordPatternProperties:_J,KeywordAdditionalProperties:AJ,KeywordPropertyNames:OJ,KeywordUnevaluatedItems:CJ,KeywordUnevaluatedProperties:jJ,KeywordType:kJ,KeywordEnum:TJ,KeywordConst:NJ,KeywordConstraint:WJ,KeywordDependentRequired:KJ,KeywordContentSchema:HJ,KeywordTitle:GJ,KeywordDescription:YJ,KeywordDefault:XJ,KeywordDeprecated:ZJ,KeywordReadOnly:QJ,KeywordWriteOnly:eV,KeywordExamples:tV,ExtensionKeywords:rV,JSONViewer:sV,Accordion:oV,ExpandDeepButton:iV,ChevronRightIcon:aV,...t.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...t.config},fn:{upperFirst:IJ,getTitle:PJ(Gz),getType:MJ(Gz),isBooleanJSONSchema:RJ,hasKeyword:DJ,isExpandable:$J(Gz),stringify:FJ,stringifyConstraints:LJ,getDependentRequired:qJ,getSchemaKeywords:zJ,getExtensionKeywords:JJ(Gz),...t.fn},state:{paths:{}}},n=t=>f.createElement(Uz.Provider,{value:r},f.createElement(e,t));return n.contexts={JSONSchemaContext:Uz},n.displayName=e.displayName,n},lV=({getSystem:e})=>(t,r={})=>{const{getComponent:n,getConfigs:s}=e(),o=s(),i=n("JSONSchema202012"),a=n("JSONSchema202012Keyword$schema"),c=n("JSONSchema202012Keyword$vocabulary"),l=n("JSONSchema202012Keyword$id"),u=n("JSONSchema202012Keyword$anchor"),p=n("JSONSchema202012Keyword$dynamicAnchor"),h=n("JSONSchema202012Keyword$ref"),d=n("JSONSchema202012Keyword$dynamicRef"),f=n("JSONSchema202012Keyword$defs"),m=n("JSONSchema202012Keyword$comment"),g=n("JSONSchema202012KeywordAllOf"),y=n("JSONSchema202012KeywordAnyOf"),v=n("JSONSchema202012KeywordOneOf"),b=n("JSONSchema202012KeywordNot"),E=n("JSONSchema202012KeywordIf"),w=n("JSONSchema202012KeywordThen"),x=n("JSONSchema202012KeywordElse"),S=n("JSONSchema202012KeywordDependentSchemas"),_=n("JSONSchema202012KeywordPrefixItems"),A=n("JSONSchema202012KeywordItems"),O=n("JSONSchema202012KeywordContains"),C=n("JSONSchema202012KeywordProperties"),j=n("JSONSchema202012KeywordPatternProperties"),k=n("JSONSchema202012KeywordAdditionalProperties"),T=n("JSONSchema202012KeywordPropertyNames"),N=n("JSONSchema202012KeywordUnevaluatedItems"),I=n("JSONSchema202012KeywordUnevaluatedProperties"),P=n("JSONSchema202012KeywordType"),M=n("JSONSchema202012KeywordEnum"),R=n("JSONSchema202012KeywordConst"),D=n("JSONSchema202012KeywordConstraint"),$=n("JSONSchema202012KeywordDependentRequired"),F=n("JSONSchema202012KeywordContentSchema"),B=n("JSONSchema202012KeywordTitle"),L=n("JSONSchema202012KeywordDescription"),q=n("JSONSchema202012KeywordDefault"),U=n("JSONSchema202012KeywordDeprecated"),z=n("JSONSchema202012KeywordReadOnly"),J=n("JSONSchema202012KeywordWriteOnly"),V=n("JSONSchema202012KeywordExamples"),W=n("JSONSchema202012ExtensionKeywords"),K=n("JSONSchema202012JSONViewer"),H=n("JSONSchema202012Accordion"),G=n("JSONSchema202012ExpandDeepButton"),Y=n("JSONSchema202012ChevronRightIcon");return cV(t,{components:{JSONSchema:i,Keyword$schema:a,Keyword$vocabulary:c,Keyword$id:l,Keyword$anchor:u,Keyword$dynamicAnchor:p,Keyword$ref:h,Keyword$dynamicRef:d,Keyword$defs:f,Keyword$comment:m,KeywordAllOf:g,KeywordAnyOf:y,KeywordOneOf:v,KeywordNot:b,KeywordIf:E,KeywordThen:w,KeywordElse:x,KeywordDependentSchemas:S,KeywordPrefixItems:_,KeywordItems:A,KeywordContains:O,KeywordProperties:C,KeywordPatternProperties:j,KeywordAdditionalProperties:k,KeywordPropertyNames:T,KeywordUnevaluatedItems:N,KeywordUnevaluatedProperties:I,KeywordType:P,KeywordEnum:M,KeywordConst:R,KeywordConstraint:D,KeywordDependentRequired:$,KeywordContentSchema:F,KeywordTitle:B,KeywordDescription:L,KeywordDefault:q,KeywordDeprecated:U,KeywordReadOnly:z,KeywordWriteOnly:J,KeywordExamples:V,ExtensionKeywords:W,JSONViewer:K,Accordion:H,ExpandDeepButton:G,ChevronRightIcon:Y,...r.components},config:{showExtensionKeywords:o.showExtensions,...r.config},fn:{...r.fn}})};var uV=({getSystem:e,fn:t})=>{const r=()=>({upperFirst:t.upperFirst,...t.jsonSchema202012});return{components:{JSONSchema202012:rJ,JSONSchema202012Keyword$schema:nJ,JSONSchema202012Keyword$vocabulary:sJ,JSONSchema202012Keyword$id:oJ,JSONSchema202012Keyword$anchor:iJ,JSONSchema202012Keyword$dynamicAnchor:aJ,JSONSchema202012Keyword$ref:cJ,JSONSchema202012Keyword$dynamicRef:lJ,JSONSchema202012Keyword$defs:uJ,JSONSchema202012Keyword$comment:pJ,JSONSchema202012KeywordAllOf:hJ,JSONSchema202012KeywordAnyOf:dJ,JSONSchema202012KeywordOneOf:fJ,JSONSchema202012KeywordNot:mJ,JSONSchema202012KeywordIf:gJ,JSONSchema202012KeywordThen:yJ,JSONSchema202012KeywordElse:vJ,JSONSchema202012KeywordDependentSchemas:bJ,JSONSchema202012KeywordPrefixItems:EJ,JSONSchema202012KeywordItems:wJ,JSONSchema202012KeywordContains:xJ,JSONSchema202012KeywordProperties:SJ,JSONSchema202012KeywordPatternProperties:_J,JSONSchema202012KeywordAdditionalProperties:AJ,JSONSchema202012KeywordPropertyNames:OJ,JSONSchema202012KeywordUnevaluatedItems:CJ,JSONSchema202012KeywordUnevaluatedProperties:jJ,JSONSchema202012KeywordType:kJ,JSONSchema202012KeywordEnum:TJ,JSONSchema202012KeywordConst:NJ,JSONSchema202012KeywordConstraint:WJ,JSONSchema202012KeywordDependentRequired:KJ,JSONSchema202012KeywordContentSchema:HJ,JSONSchema202012KeywordTitle:GJ,JSONSchema202012KeywordDescription:YJ,JSONSchema202012KeywordDefault:XJ,JSONSchema202012KeywordDeprecated:ZJ,JSONSchema202012KeywordReadOnly:QJ,JSONSchema202012KeywordWriteOnly:eV,JSONSchema202012KeywordExamples:tV,JSONSchema202012ExtensionKeywords:rV,JSONSchema202012JSONViewer:sV,JSONSchema202012Accordion:oV,JSONSchema202012ExpandDeepButton:iV,JSONSchema202012ChevronRightIcon:aV,withJSONSchema202012Context:cV,withJSONSchema202012SystemContext:lV(e()),JSONSchema202012PathContext:()=>Vz,JSONSchema202012LevelContext:()=>zz},fn:{upperFirst:IJ,jsonSchema202012:{getTitle:PJ(r),getType:MJ(r),isExpandable:$J(r),isBooleanJSONSchema:RJ,hasKeyword:DJ,useFn:Gz,useConfig:Kz,useComponent:Hz,useIsExpanded:Qz,usePath:Zz,useLevel:Xz,getSchemaKeywords:zJ,getExtensionKeywords:JJ(r),hasSchemaType:VJ}}}};const pV=e=>zN()(e),hV=e=>e.at(0),dV=e=>"boolean"==typeof e,fV=e=>Mr()(e),mV=e=>dV(e)||fV(e);var gV=class{data={};register(e,t){this.data[e]=t}unregister(e){void 0===e?this.data={}:delete this.data[e]}get(e){return this.data[e]}},yV=()=>0,vV=()=>0,bV=()=>.1,EV=()=>.1,wV=()=>"user@example.com",xV=()=>"실례@example.com",SV=()=>"example.com",_V=()=>"실례.com",AV=()=>"198.51.100.42",OV=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",CV=()=>"https://example.com/",jV=()=>"path/index.html",kV=()=>"https://실례.com/",TV=()=>"path/실례.html",NV=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",IV=()=>"https://example.com/dictionary/{term:1}/{term}",PV=()=>"/a/b/c",MV=()=>"1/0",RV=()=>(new Date).toISOString(),DV=()=>(new Date).toISOString().substring(0,10),$V=()=>(new Date).toISOString().substring(11),FV=()=>"P3D",BV=()=>"********",LV=()=>"^[a-z]+$";const qV=new class extends gV{#s={int32:yV,int64:vV,float:bV,double:EV,email:wV,"idn-email":xV,hostname:SV,"idn-hostname":_V,ipv4:AV,ipv6:OV,uri:CV,"uri-reference":jV,iri:kV,"iri-reference":TV,uuid:NV,"uri-template":IV,"json-pointer":PV,"relative-json-pointer":MV,"date-time":RV,date:DV,time:$V,duration:FV,password:BV,regex:LV};data={...this.#s};get defaults(){return{...this.#s}}},UV=(e,t)=>"function"==typeof t?qV.register(e,t):null===t?qV.unregister(e):qV.get(e);UV.getDefaults=()=>qV.defaults;var zV=UV,JV=rN(287).Buffer,VV=e=>JV.from(e).toString("ascii"),WV=rN(287).Buffer,KV=e=>WV.from(e).toString("utf8"),HV=rN(287).Buffer,GV=e=>HV.from(e).toString("binary"),YV=e=>{let t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(61===n)t+="=3D";else if(n>=33&&n<=60||n>=62&&n<=126||9===n||32===n)t+=e.charAt(r);else if(13===n||10===n)t+="\r\n";else if(n>126){const n=unescape(encodeURIComponent(e.charAt(r)));for(let e=0;e<n.length;e++)t+="="+("0"+n.charCodeAt(e).toString(16)).slice(-2).toUpperCase()}else t+="="+("0"+n.toString(16)).slice(-2).toUpperCase()}return t},XV=rN(287).Buffer,ZV=e=>XV.from(e).toString("hex"),QV=rN(287).Buffer,eW=e=>{const t=QV.from(e).toString("utf8"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let n=0,s="",o=0,i=0;for(let e=0;e<t.length;e++)for(o=o<<8|t.charCodeAt(e),i+=8;i>=5;)s+=r.charAt(o>>>i-5&31),i-=5;i>0&&(s+=r.charAt(o<<5-i&31),n=(8-8*t.length%5)%5);for(let e=0;e<n;e++)s+="=";return s},tW=rN(287).Buffer,rW=e=>tW.from(e).toString("base64"),nW=rN(287).Buffer,sW=e=>nW.from(e).toString("base64url");const oW=new class extends gV{#s={"7bit":VV,"8bit":KV,binary:GV,"quoted-printable":YV,base16:ZV,base32:eW,base64:rW,base64url:sW};data={...this.#s};get defaults(){return{...this.#s}}},iW=(e,t)=>"function"==typeof t?oW.register(e,t):null===t?oW.unregister(e):oW.get(e);iW.getDefaults=()=>oW.defaults;var aW=iW,cW={"text/plain":()=>"string","text/css":()=>".selector { border: 1px solid red }","text/csv":()=>"value1,value2,value3","text/html":()=>"<p>content</p>","text/calendar":()=>"BEGIN:VCALENDAR","text/javascript":()=>"console.dir('Hello world!');","text/xml":()=>'<person age="30">John Doe</person>',"text/*":()=>"string"},lW={"image/*":()=>pV(25).toString("binary")},uW={"audio/*":()=>pV(25).toString("binary")},pW={"video/*":()=>pV(25).toString("binary")},hW={"application/json":()=>'{"key":"value"}',"application/ld+json":()=>'{"name": "John Doe"}',"application/x-httpd-php":()=>"<?php echo '<p>Hello World!</p>'; ?>","application/rtf":()=>String.raw`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,"application/x-sh":()=>'echo "Hello World!"',"application/xhtml+xml":()=>"<p>content</p>","application/*":()=>pV(25).toString("binary")};const dW=new class extends gV{#s={...cW,...lW,...uW,...pW,...hW};data={...this.#s};get defaults(){return{...this.#s}}},fW=(e,t)=>{if("function"==typeof t)return dW.register(e,t);if(null===t)return dW.unregister(e);const r=e.split(";").at(0),n=`${r.split("/").at(0)}/*`;return dW.get(e)||dW.get(r)||dW.get(n)};fW.getDefaults=()=>dW.defaults;var mW=fW;const gW=(e,t={})=>{const{maxLength:r,minLength:n}=t;let s=e;if(Number.isInteger(r)&&r>0&&(s=s.slice(0,r)),Number.isInteger(n)&&n>0){let e=0;for(;s.length<n;)s+=s[e++%s.length]}return s},yW=(e,t={})=>{const{minimum:r,maximum:n,exclusiveMinimum:s,exclusiveMaximum:o}=t,{multipleOf:i}=t,a=Number.isInteger(e)?1:Number.EPSILON;let c="number"==typeof r?r:null,l="number"==typeof n?n:null,u=e;if("number"==typeof s&&(c=null!==c?Math.max(c,s+a):s+a),"number"==typeof o&&(l=null!==l?Math.min(l,o-a):o-a),u=c>l&&e||c||l||u,"number"==typeof i&&i>0){const e=u%i;u=0===e?u:u+i-e}return u};var vW=new Proxy({array:(e,{sample:t=[]}={})=>((e,t={})=>{const{minItems:r,maxItems:n,uniqueItems:s}=t,{contains:o,minContains:i,maxContains:a}=t;let c=[...e];if(null!=o&&"object"==typeof o){if(Number.isInteger(i)&&i>1){const e=c.at(0);for(let t=1;t<i;t+=1)c.unshift(e)}Number.isInteger(a)}if(Number.isInteger(n)&&n>0&&(c=e.slice(0,n)),Number.isInteger(r)&&r>0)for(let e=0;c.length<r;e+=1)c.push(c[e%c.length]);return!0===s&&(c=Array.from(new Set(c))),c})(t,e),object:()=>{throw new Error("Not implemented")},string:(e,{sample:t}={})=>{const{contentEncoding:r,contentMediaType:n,contentSchema:s}=e,{pattern:o,format:i}=e,a=aW(r)||hO();let c;return c="string"==typeof o?gW((e=>{try{const t=/(?<=(?<!\\)\{)(\d{3,})(?=\})|(?<=(?<!\\)\{\d*,)(\d{3,})(?=\})|(?<=(?<!\\)\{)(\d{3,})(?=,\d*\})/g,r=e.replace(t,"100"),n=new(Dr())(r);return n.max=100,n.gen()}catch{return"string"}})(o),e):"string"==typeof i?(e=>{const{format:t}=e,r=zV(t);return"function"==typeof r?r(e):"string"})(e):mV(s)&&"string"==typeof n&&void 0!==t?Array.isArray(t)||"object"==typeof t?JSON.stringify(t):gW(String(t),e):"string"==typeof n?(e=>{const{contentMediaType:t}=e,r=mW(t);return"function"==typeof r?r(e):"string"})(e):gW("string",e),a(c)},number:e=>{const{format:t}=e;let r;return r="string"==typeof t?(e=>{const{format:t}=e,r=zV(t);return"function"==typeof r?r(e):0})(e):0,yW(r,e)},integer:e=>{const{format:t}=e;let r;return r="string"==typeof t?(e=>{const{format:t}=e,r=zV(t);if("function"==typeof r)return r(e);switch(t){case"int32":case"int64":return 0}return 0})(e):0,yW(r,e)},boolean:e=>"boolean"!=typeof e.default||e.default,null:()=>null},{get:(e,t)=>"string"==typeof t&&Object.hasOwn(e,t)?e[t]:()=>`Unknown Type: ${t}`});const bW=["array","object","number","integer","string","boolean","null"],EW=e=>{if(!fV(e))return!1;const{examples:t,example:r,default:n}=e;return!!(Array.isArray(t)&&t.length>=1)||void 0!==n||void 0!==r},wW=e=>{if(!fV(e))return null;const{examples:t,example:r,default:n}=e;return Array.isArray(t)&&t.length>=1?t.at(0):void 0!==n?n:void 0!==r?r:void 0},xW={array:["items","prefixItems","contains","maxContains","minContains","maxItems","minItems","uniqueItems","unevaluatedItems"],object:["properties","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","required","dependentSchemas","dependentRequired","unevaluatedProperties"],string:["pattern","format","minLength","maxLength","contentEncoding","contentMediaType","contentSchema"],integer:["minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf"]};xW.number=xW.integer;const SW="string",_W=e=>void 0===e?null:null===e?"null":Array.isArray(e)?"array":Number.isInteger(e)?"integer":typeof e,AW=e=>{if(Array.isArray(e)&&e.length>=1){if(e.includes("array"))return"array";if(e.includes("object"))return"object";{const t=e.filter((e=>"null"!==e)),r=hV(t.length>0?t:e);if(bW.includes(r))return r}}return bW.includes(e)?e:null},OW=(e,t=new WeakSet)=>{if(!fV(e))return SW;if(t.has(e))return SW;t.add(e);let{type:r,const:n}=e;if(r=AW(r),"string"!=typeof r){const t=Object.keys(xW);e:for(let n=0;n<t.length;n+=1){const s=t[n],o=xW[s];for(let t=0;t<o.length;t+=1){const n=o[t];if(Object.hasOwn(e,n)){r=s;break e}}}}if("string"!=typeof r&&void 0!==n){const e=_W(n);r="string"==typeof e?e:r}if("string"!=typeof r){const n=r=>{if(Array.isArray(e[r])){const n=e[r].map((e=>OW(e,t)));return AW(n)}return null},s=n("allOf"),o=n("anyOf"),i=n("oneOf"),a=e.not?OW(e.not,t):null;(s||o||i||a)&&(r=AW([s,o,i,a].filter(Boolean)))}if("string"!=typeof r&&EW(e)){const t=wW(e),n=_W(t);r="string"==typeof n?n:r}return t.delete(e),r||SW},CW=e=>OW(e),jW=e=>dV(e)?(e=>!1===e?{not:{}}:{})(e):fV(e)?e:{},kW=(e,t,r={})=>{if(dV(e)&&!0===e)return!0;if(dV(e)&&!1===e)return!1;if(dV(t)&&!0===t)return!0;if(dV(t)&&!1===t)return!1;if(!mV(e))return t;if(!mV(t))return e;const n={...t,...e};if(t.type&&e.type&&Array.isArray(t.type)&&"string"==typeof t.type){const r=eI(t.type).concat(e.type);n.type=Array.from(new Set(r))}if(Array.isArray(t.required)&&Array.isArray(e.required)&&(n.required=[...new Set([...e.required,...t.required])]),t.properties&&e.properties){const s=new Set([...Object.keys(t.properties),...Object.keys(e.properties)]);n.properties={};for(const o of s){const s=t.properties[o]||{},i=e.properties[o]||{};s.readOnly&&!r.includeReadOnly||s.writeOnly&&!r.includeWriteOnly?n.required=(n.required||[]).filter((e=>e!==o)):n.properties[o]=kW(i,s,r)}}return mV(t.items)&&mV(e.items)&&(n.items=kW(e.items,t.items,r)),mV(t.contains)&&mV(e.contains)&&(n.contains=kW(e.contains,t.contains,r)),mV(t.contentSchema)&&mV(e.contentSchema)&&(n.contentSchema=kW(e.contentSchema,t.contentSchema,r)),n};var TW=kW;const NW=(e,t={},r=void 0,n=!1)=>{if(null==e&&void 0===r)return;"function"==typeof e?.toJS&&(e=e.toJS()),e=jW(e);let s=void 0!==r||EW(e);const o=!s&&Array.isArray(e.oneOf)&&e.oneOf.length>0,i=!s&&Array.isArray(e.anyOf)&&e.anyOf.length>0;if(!s&&(o||i)){const r=jW(hV(o?e.oneOf:e.anyOf));!(e=TW(e,r,t)).xml&&r.xml&&(e.xml=r.xml),EW(e)&&EW(r)&&(s=!0)}const a={};let{xml:c,properties:l,additionalProperties:u,items:p,contains:h}=e||{},d=CW(e),{includeReadOnly:f,includeWriteOnly:m}=t;c=c||{};let g,{name:y,prefix:v,namespace:b}=c,E={};Object.hasOwn(e,"type")||(e.type=d),n&&(y=y||"notagname",g=(v?`${v}:`:"")+y,b)&&(a[v?`xmlns:${v}`:"xmlns"]=b),n&&(E[g]=[]);const w=ZN(l);let x,S=0;const _=()=>Number.isInteger(e.maxProperties)&&e.maxProperties>0&&S>=e.maxProperties,A=t=>!(Number.isInteger(e.maxProperties)&&e.maxProperties>0)||!_()&&(!(t=>!Array.isArray(e.required)||0===e.required.length||!e.required.includes(t))(t)||e.maxProperties-S-(()=>{if(!Array.isArray(e.required)||0===e.required.length)return 0;let t=0;return n?e.required.forEach((e=>t+=void 0===E[e]?0:1)):e.required.forEach((e=>{t+=void 0===E[g]?.find((t=>void 0!==t[e]))?0:1})),e.required.length-t})()>0);if(x=n?(r,s=void 0)=>{if(e&&w[r]){if(w[r].xml=w[r].xml||{},w[r].xml.attribute){const e=Array.isArray(w[r].enum)?hV(w[r].enum):void 0;if(EW(w[r]))a[w[r].xml.name||r]=wW(w[r]);else if(void 0!==e)a[w[r].xml.name||r]=e;else{const e=jW(w[r]),n=CW(e),o=w[r].xml.name||r;if("array"===n){const e=NW(w[r],t,s,!1);a[o]=e.map((e=>Mr()(e)?"UnknownTypeObject":Array.isArray(e)?"UnknownTypeArray":e)).join(" ")}else a[o]="object"===n?"UnknownTypeObject":vW[n](e)}return}w[r].xml.name=w[r].xml.name||r}else w[r]||!1===u||(w[r]={xml:{name:r}});let o=NW(w[r],t,s,n);A(r)&&(S++,Array.isArray(o)?E[g]=E[g].concat(o):E[g].push(o))}:(r,s)=>{if(A(r)){if(Mr()(e.discriminator?.mapping)&&e.discriminator.propertyName===r&&"string"==typeof e.$$ref){for(const t in e.discriminator.mapping)if(-1!==e.$$ref.search(e.discriminator.mapping[t])){E[r]=t;break}}else E[r]=NW(w[r],t,s,n);S++}},s){let s;if(s=void 0!==r?r:wW(e),!n){if("number"==typeof s&&"string"===d)return`${s}`;if("string"!=typeof s||"string"===d)return s;try{return JSON.parse(s)}catch{return s}}if("array"===d){if(!Array.isArray(s)){if("string"==typeof s)return s;s=[s]}let r=[];return fV(p)&&(p.xml=p.xml||c||{},p.xml.name=p.xml.name||c.name,r=s.map((e=>NW(p,t,e,n)))),fV(h)&&(h.xml=h.xml||c||{},h.xml.name=h.xml.name||c.name,r=[NW(h,t,void 0,n),...r]),r=vW.array(e,{sample:r}),c.wrapped?(E[g]=r,Fr()(a)||E[g].push({_attr:a})):E=r,E}if("object"===d){if("string"==typeof s)return s;for(const e in s)Object.hasOwn(s,e)&&(w[e]?.readOnly&&!f||w[e]?.writeOnly&&!m||(w[e]?.xml?.attribute?a[w[e].xml.name||e]=s[e]:x(e,s[e])));return Fr()(a)||E[g].push({_attr:a}),E}return E[g]=Fr()(a)?s:[{_attr:a},s],E}if("array"===d){let r=[];if(fV(h))if(n&&(h.xml=h.xml||e.xml||{},h.xml.name=h.xml.name||c.name),Array.isArray(h.anyOf)){const{anyOf:e,...s}=p;r.push(...h.anyOf.map((e=>NW(TW(e,s,t),t,void 0,n))))}else if(Array.isArray(h.oneOf)){const{oneOf:e,...s}=p;r.push(...h.oneOf.map((e=>NW(TW(e,s,t),t,void 0,n))))}else{if(!(!n||n&&c.wrapped))return NW(h,t,void 0,n);r.push(NW(h,t,void 0,n))}if(fV(p))if(n&&(p.xml=p.xml||e.xml||{},p.xml.name=p.xml.name||c.name),Array.isArray(p.anyOf)){const{anyOf:e,...s}=p;r.push(...p.anyOf.map((e=>NW(TW(e,s,t),t,void 0,n))))}else if(Array.isArray(p.oneOf)){const{oneOf:e,...s}=p;r.push(...p.oneOf.map((e=>NW(TW(e,s,t),t,void 0,n))))}else{if(!(!n||n&&c.wrapped))return NW(p,t,void 0,n);r.push(NW(p,t,void 0,n))}return r=vW.array(e,{sample:r}),n&&c.wrapped?(E[g]=r,Fr()(a)||E[g].push({_attr:a}),E):r}if("object"===d){for(let e in w)Object.hasOwn(w,e)&&(w[e]?.deprecated||w[e]?.readOnly&&!f||w[e]?.writeOnly&&!m||x(e));if(n&&a&&E[g].push({_attr:a}),_())return E;if(dV(u)&&u)n?E[g].push({additionalProp:"Anything can be here"}):E.additionalProp1={},S++;else if(fV(u)){const r=u,s=NW(r,t,void 0,n);if(n&&"string"==typeof r?.xml?.name&&"notagname"!==r?.xml?.name)E[g].push(s);else{const t=r?.["x-additionalPropertiesName"]||"additionalProp",o=Number.isInteger(e.minProperties)&&e.minProperties>0&&S<e.minProperties?e.minProperties-S:3;for(let e=1;e<=o;e++){if(_())return E;if(n){const r={};r[t+e]=s.notagname,E[g].push(r)}else E[t+e]=s;S++}}}return E}let O;if(void 0!==e.const)O=e.const;else if(e&&Array.isArray(e.enum))O=hV(eI(e.enum));else{const r=fV(e.contentSchema)?NW(e.contentSchema,t,void 0,n):void 0;O=vW[d](e,{sample:r})}return n?(E[g]=Fr()(a)?O:[{_attr:a},O],E):O},IW=(e,t,r)=>{const n=NW(e,t,r,!0);if(n)return"string"==typeof n?n:ER()(n,{declaration:!0,indent:"\t"})},PW=(e,t,r)=>NW(e,t,r,!1),MW=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],RW=_R(IW,MW),DW=_R(PW,MW),$W=new class extends gV{#s={};data={...this.#s};get defaults(){return{...this.#s}}};var FW=(e,t)=>(void 0!==t&&$W.register(e,t),$W.get(e));const BW=[{when:/json/,shouldStringifyTypes:["string"]}],LW=["object"];var qW=({getSystem:e})=>{const t=(e=>(t,r,n,s)=>{const{fn:o}=e(),i=o.jsonSchema202012.memoizedSampleFromSchema(t,r,s),a=typeof i,c=BW.reduce(((e,t)=>t.when.test(n)?[...e,...t.shouldStringifyTypes]:e),LW);return I()(c,(e=>e===a))?JSON.stringify(i,null,2):i})(e),r=(e=>(t,r,n,s)=>{const{fn:o}=e(),i=o.jsonSchema202012.getJsonSampleSchema(t,r,n,s);let a;try{a=nr.dump(nr.load(i),{lineWidth:-1},{schema:Wt}),"\n"===a[a.length-1]&&(a=a.slice(0,a.length-1))}catch(e){return console.error(e),"error: could not generate yaml example"}return a.replace(/\t/g," ")})(e),n=(e=>(t,r,n)=>{const{fn:s}=e();if(t&&!t.xml&&(t.xml={}),t&&!t.xml.name){if(!t.$$ref&&(t.type||t.items||t.properties||t.additionalProperties))return'<?xml version="1.0" encoding="UTF-8"?>\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e';if(t.$$ref){let e=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=e[1]}}return s.jsonSchema202012.memoizedCreateXMLExample(t,r,n)})(e),s=(e=>(t,r="",n={},s=void 0)=>{const{fn:o}=e();return"function"==typeof t?.toJS&&(t=t.toJS()),"function"==typeof s?.toJS&&(s=s.toJS()),/xml/.test(r)?o.jsonSchema202012.getXmlSampleSchema(t,n,s):/(yaml|yml)/.test(r)?o.jsonSchema202012.getYamlSampleSchema(t,n,r,s):o.jsonSchema202012.getJsonSampleSchema(t,n,r,s)})(e);return{fn:{jsonSchema202012:{sampleFromSchema:PW,sampleFromSchemaGeneric:NW,sampleOptionAPI:FW,sampleEncoderAPI:aW,sampleFormatAPI:zV,sampleMediaTypeAPI:mW,createXMLExample:IW,memoizedSampleFromSchema:DW,memoizedCreateXMLExample:RW,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:s,mergeJsonSchema:TW,foldType:AW}}}};function UW(){return[pL,$q,uV,qW,tz,Bz]}var zW=Object.freeze({dom_id:null,domNode:null,spec:{},url:"",urls:null,configUrl:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:-1,filter:!1,validatorUrl:"https://validator.swagger.io/validator",oauth2RedirectUrl:void 0,persistAuthorization:!1,configs:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:e=>(e.curlOptions=[],e),responseInterceptor:e=>e,showMutatedRequest:!0,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:!1,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:"cURL (bash)",syntax:"bash"},curl_powershell:{title:"cURL (PowerShell)",syntax:"powershell"},curl_cmd:{title:"cURL (CMD)",syntax:"bash"}},defaultExpanded:!0,languages:null},supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],queryConfigEnabled:!1,presets:[UW],plugins:[],initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"},operationsSorter:null,tagsSorter:null,onComplete:null,modelPropertyMacro:null,parameterMacro:null,fileUploadMediaTypes:["application/octet-stream","image/","audio/","video/"],uncaughtExceptionHandler:null}),JW=(e,t=[])=>Array.isArray(e)?e:t,VW=(e,t=!1)=>!0===e||"true"===e||1===e||"1"===e||!1!==e&&"false"!==e&&0!==e&&"0"!==e&&t,WW=(e,t)=>"function"==typeof e?e:t,KW=e=>"function"==typeof e?e:null,HW=e=>null===e||"null"===e?null:String(e),GW=(e,t=-1)=>{const r=parseInt(e,10);return Number.isNaN(r)?t:r},YW=(e,t={})=>Mr()(e)?e:t,XW=e=>"function"==typeof e||"string"==typeof e?e:null,ZW=e=>String(e),QW={components:{typeCaster:YW},configs:{typeCaster:YW},configUrl:{typeCaster:HW},deepLinking:{typeCaster:VW,defaultValue:zW.deepLinking},defaultModelExpandDepth:{typeCaster:GW,defaultValue:zW.defaultModelExpandDepth},defaultModelRendering:{typeCaster:ZW},defaultModelsExpandDepth:{typeCaster:GW,defaultValue:zW.defaultModelsExpandDepth},displayOperationId:{typeCaster:VW,defaultValue:zW.displayOperationId},displayRequestDuration:{typeCaster:VW,defaultValue:zW.displayRequestDuration},docExpansion:{typeCaster:ZW},dom_id:{typeCaster:HW},domNode:{typeCaster:e=>null===e||"null"===e?null:e},fileUploadMediaTypes:{typeCaster:JW,defaultValue:zW.fileUploadMediaTypes},filter:{typeCaster:e=>{const t=String(e);return VW(e,t)}},fn:{typeCaster:YW},initialState:{typeCaster:YW},layout:{typeCaster:ZW},maxDisplayedTags:{typeCaster:GW,defaultValue:zW.maxDisplayedTags},modelPropertyMacro:{typeCaster:KW},oauth2RedirectUrl:{typeCaster:e=>void 0===e||"undefined"===e?void 0:String(e)},onComplete:{typeCaster:KW},operationsSorter:{typeCaster:XW},paramaterMacro:{typeCaster:KW},persistAuthorization:{typeCaster:VW,defaultValue:zW.persistAuthorization},plugins:{typeCaster:JW,defaultValue:zW.plugins},presets:{typeCaster:JW,defaultValue:zW.presets},requestInterceptor:{typeCaster:WW,defaultValue:zW.requestInterceptor},requestSnippets:{typeCaster:YW,defaultValue:zW.requestSnippets},requestSnippetsEnabled:{typeCaster:VW,defaultValue:zW.requestSnippetsEnabled},responseInterceptor:{typeCaster:WW,defaultValue:zW.responseInterceptor},showCommonExtensions:{typeCaster:VW,defaultValue:zW.showCommonExtensions},showExtensions:{typeCaster:VW,defaultValue:zW.showExtensions},showMutatedRequest:{typeCaster:VW,defaultValue:zW.showMutatedRequest},spec:{typeCaster:YW,defaultValue:zW.spec},supportedSubmitMethods:{typeCaster:JW,defaultValue:zW.supportedSubmitMethods},syntaxHighlight:{typeCaster:(e,t)=>Mr()(e)?e:!1===e||"false"===e||0===e||"0"===e?{activated:!1}:t,defaultValue:zW.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:VW,defaultValue:zW.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:ZW},tagsSorter:{typeCaster:XW},tryItOutEnabled:{typeCaster:VW,defaultValue:zW.tryItOutEnabled},url:{typeCaster:ZW},urls:{typeCaster:e=>Array.isArray(e)?e:null},"urls.primaryName":{typeCaster:ZW},validatorUrl:{typeCaster:HW},withCredentials:{typeCaster:VW,defaultValue:zW.withCredentials},uncaughtExceptionHandler:{typeCaster:KW}},eK=e=>Object.entries(QW).reduce(((e,[t,{typeCaster:r,defaultValue:n}])=>{if(XT()(e,t)){const s=r(pr()(e,t),n);e=QT()(t,s,e)}return e}),{...e});function tK(e){const t=(e=>{const t=e.queryConfigEnabled?(()=>{const e=new URLSearchParams(qN.location.search);return Object.fromEntries(e)})():{};return Object.entries(t).reduce(((e,[t,r])=>("config"===t?e.configUrl=r:"urls.primaryName"===t?e[t]=r:e=Wr()(e,t,r),e)),{})})(e),r=(()=>{const e={};return globalThis.location&&(e.oauth2RedirectUrl=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname.substring(0,globalThis.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`),e})(),n=tK.config.merge({},tK.config.defaults,r,e,t),s=(e=>{const t=ON()({layout:{layout:e.layout,filter:e.filter},spec:{spec:"",url:e.url},requestSnippets:e.requestSnippets},e.initialState);if(e.initialState)for(const[r,n]of Object.entries(e.initialState))void 0===n&&delete t[r];return{system:{configs:e.configs},plugins:e.presets,state:t}})(n),o=(e=>()=>({fn:e.fn,components:e.components}))(n),i=new CI(s);i.register([n.plugins,o]);const a=i.getSystem(),c=e=>{i.setConfigs(e),a.configsActions.loaded()},l=e=>{!t.url&&"object"==typeof e.spec&&Object.keys(e.spec).length>0?(a.specActions.updateUrl(""),a.specActions.updateLoadingStatus("success"),a.specActions.updateSpec(JSON.stringify(e.spec))):"function"==typeof a.specActions.download&&e.url&&!e.urls&&(a.specActions.updateUrl(e.url),a.specActions.download(e.url))},u=e=>{if(e.domNode)a.render(e.domNode,"App");else if(e.dom_id){const t=document.querySelector(e.dom_id);a.render(t,"App")}else null===e.dom_id||null===e.domNode||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return n.configUrl?((async()=>{const{configUrl:e}=n,r=await(({url:e,system:t})=>async r=>{if(!e)return{};if("function"!=typeof t.configsActions?.getConfigByUrl)return{};const n=(()=>{const e={};return e.promise=new Promise(((t,r)=>{e.resolve=t,e.reject=r})),e})();return t.configsActions.getConfigByUrl({url:e,loadRemoteConfig:!0,requestInterceptor:r.requestInterceptor,responseInterceptor:r.responseInterceptor},(e=>{n.resolve(e)})),n.promise})({url:e,system:a})(n),s=tK.config.merge({},n,r,t);c(s),null!==r&&l(s),u(s)})(),a):(c(n),l(n),u(n),a)}tK.System=CI,tK.config={defaults:zW,merge:(e,...t)=>{let r=Symbol.for("domNode"),n=Symbol.for("primaryName");const s=[];for(const e of t){const t={...e};Object.hasOwn(t,"domNode")&&(r=t.domNode,delete t.domNode),Object.hasOwn(t,"urls.primaryName")?(n=t["urls.primaryName"],delete t["urls.primaryName"]):Array.isArray(t.urls)&&Object.hasOwn(t.urls,"primaryName")&&(n=t.urls.primaryName,delete t.urls.primaryName),s.push(t)}const o=ON()(e,...s);return r!==Symbol.for("domNode")&&(o.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(o.urls)&&(o.urls.primaryName=n),eK(o)},typeCast:eK,typeCastMappings:QW},tK.presets={base:pL,apis:UW},tK.plugins={Auth:bP,Configs:NP,DeepLining:FP,Err:WP,Filter:HP,Icons:rM,JSONSchema5:vR,JSONSchema5Samples:zR,JSONSchema202012:uV,JSONSchema202012Samples:qW,Layout:vM,Logs:bM,OpenAPI30:$q,OpenAPI31:$q,OnComplete:wM,RequestSnippets:FM,Spec:H$,SwaggerClient:Y$,Util:X$,View:iF,ViewLegacy:aF,DownloadUrl:cF,SyntaxHighlighting:vF,Versions:EF,SafeRender:AF};var rK=tK;const{config:nK}=rK,sK=e=>{const t=(0,f.useRef)();return(0,f.useEffect)((()=>{t.current=e}),[e]),t.current},oK=({spec:e=nK.defaults.spec,url:t=nK.defaults.url,layout:r=nK.defaults.layout,requestInterceptor:n=nK.defaults.requestInterceptor,responseInterceptor:s=nK.defaults.responseInterceptor,supportedSubmitMethods:o=nK.defaults.supportedSubmitMethods,queryConfigEnabled:i=nK.defaults.queryConfigEnabled,plugins:a=nK.defaults.plugins,displayOperationId:c=nK.defaults.displayOperationId,showMutatedRequest:l=nK.defaults.showMutatedRequest,docExpansion:u=nK.defaults.docExpansion,defaultModelExpandDepth:p=nK.defaults.defaultModelExpandDepth,defaultModelsExpandDepth:h=nK.defaults.defaultModelsExpandDepth,defaultModelRendering:d=nK.defaults.defaultModelRendering,presets:m=nK.defaults.presets,deepLinking:g=nK.defaults.deepLinking,showExtensions:y=nK.defaults.showExtensions,showCommonExtensions:v=nK.defaults.showCommonExtensions,filter:b=nK.defaults.filter,requestSnippetsEnabled:E=nK.defaults.requestSnippetsEnabled,requestSnippets:w=nK.defaults.requestSnippets,tryItOutEnabled:x=nK.defaults.tryItOutEnabled,displayRequestDuration:S=nK.defaults.displayRequestDuration,withCredentials:_=nK.defaults.withCredentials,persistAuthorization:A=nK.defaults.persistAuthorization,oauth2RedirectUrl:O=nK.defaults.oauth2RedirectUrl,onComplete:C=null,initialState:j=nK.defaults.initialState,uncaughtExceptionHandler:k=nK.defaults.uncaughtExceptionHandler})=>{const[T,N]=(0,f.useState)(null),I=T?.getComponent("App","root"),P=sK(e),M=sK(t);return(0,f.useEffect)((()=>{const f=rK({plugins:a,spec:e,url:t,layout:r,defaultModelsExpandDepth:h,defaultModelRendering:d,presets:[rK.presets.apis,...m],requestInterceptor:n,responseInterceptor:s,onComplete:()=>{"function"==typeof C&&C(f)},docExpansion:u,supportedSubmitMethods:o,queryConfigEnabled:i,defaultModelExpandDepth:p,displayOperationId:c,tryItOutEnabled:x,displayRequestDuration:S,requestSnippetsEnabled:E,requestSnippets:w,showMutatedRequest:l,deepLinking:g,showExtensions:y,showCommonExtensions:v,filter:b,persistAuthorization:A,withCredentials:_,initialState:j,uncaughtExceptionHandler:k,..."string"==typeof O?{oauth2RedirectUrl:O}:{}});N(f)}),[]),(0,f.useEffect)((()=>{if(T){const e=T.specSelectors.url();t===e&&t===M||(T.specActions.updateSpec(""),t&&(T.specActions.updateUrl(t),T.specActions.download(t)))}}),[T,t]),(0,f.useEffect)((()=>{if(T){const t=T.specSelectors.specStr();if(e&&e!==rK.config.defaults.spec&&(e!==t||e!==P)){const t="object"==typeof e?JSON.stringify(e):e;T.specActions.updateSpec(t)}}}),[T,e]),I?f.createElement(I,null):null};oK.System=rK.System,oK.presets=rK.presets,oK.plugins=rK.plugins,oK.config=rK.config;const iK=oK}}]);
Back to Directory
File Manager