swagger-client 3.36.1 → 3.36.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see swagger-client.browser.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerClient=t():e.SwaggerClient=t()}(window,(()=>(()=>{var e={2:(e,t,r)=>{var s=r(2199),n=r(4664),i=r(5950);e.exports=function(e){return s(e,i,n)}},43:(e,t,r)=>{"use strict";var s=r(4018),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},79:(e,t,r)=>{var s=r(3702),n=r(80),i=r(4739),o=r(8655),a=r(3556);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},80:(e,t,r)=>{var s=r(6025),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},154:(e,t,r)=>{"use strict";var s=r(3930),n=r(6624),i=r(9367);e.exports=function(e,t,r){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=s(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return n(o),r}},160:(e,t,r)=>{"use strict";var s=r(3948),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},183:(e,t,r)=>{"use strict";var s=r(1091),n=r(3930),i=r(7376),o=r(6833),a=r(2250),c=r(7181),l=r(5972),u=r(9192),p=r(4840),h=r(1626),d=r(8055),m=r(6264),f=r(3742),y=r(5116),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,w=m("iterator"),E="keys",S="values",j="entries",O=function(){return this};e.exports=function(e,t,r,o,m,y,A){c(r,t,o);var P,k,$,T=function(e){if(e===m&&_)return _;if(!x&&e&&e in I)return I[e];switch(e){case E:case S:case j:return function(){return new r(this,e)}}return function(){return new r(this)}},C=t+" Iterator",F=!1,I=e.prototype,M=I[w]||I["@@iterator"]||m&&I[m],_=!x&&M||T(m),R="Array"===t&&I.entries||M;if(R&&(P=l(R.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===b||(u?u(P,b):a(P[w])||d(P,w,O)),p(P,C,!0,!0),i&&(f[C]=O)),g&&m===S&&M&&M.name!==S&&(!i&&v?h(I,"name",S):(F=!0,_=function(){return n(M,this)})),m)if(k={values:T(S),keys:y?_:T(E),entries:T(j)},A)for($ in k)(x||F||!($ in I))&&d(I,$,k[$]);else s({target:t,proto:!0,forced:x||F},k);return i&&!A||I[w]===_||d(I,w,_,{name:m}),f[t]=_,k}},239:(e,t,r)=>{const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},270:(e,t,r)=>{var s=r(7068),n=r(346);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,a))}},289:(e,t,r)=>{var s=r(2651);e.exports=function(e){return s(this,e).get(e)}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},300:(e,t,r)=>{"use strict";var s=r(3930),n=r(2159),i=r(6624),o=r(4640),a=r(3448),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return i(s(r,e));throw new c(o(e)+" is not iterable")}},316:(e,t,r)=>{const s=r(2404),n=r(5973),i=r(2340);class o{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 o?this.content.toValue():this.content instanceof n?{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 i;const s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(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 o)this._content=e;else if(e instanceof i)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 n)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 i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},317:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},376:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},470:(e,t,r)=>{"use strict";var s=r(6028),n=r(5594);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},551:(e,t,r)=>{"use strict";var s=r(5951),n=r(2250),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},575:(e,t,r)=>{"use strict";var s=r(3121);e.exports=function(e){return s(e.length)}},581:(e,t,r)=>{"use strict";var s=r(3930),n=r(2250),i=r(6285),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!i(a=s(r,e)))return a;if(n(r=e.valueOf)&&!i(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!i(a=s(r,e)))return a;throw new o("Can't convert object to primitive value")}},659:(e,t,r)=>{var s=r(1873),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[a]=r:delete e[a]),n}},689:(e,t,r)=>{var s=r(2),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,l=s(e),u=l.length;if(u!=s(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:n.call(t,h)))return!1}var d=a.get(e),m=a.get(t);if(d&&m)return d==t&&m==e;var f=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=c?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(!(void 0===b?g===v||o(g,v,r,i,a):b)){f=!1;break}y||(y="constructor"==h)}if(f&&!y){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(f=!1)}return a.delete(e),a.delete(t),f}},694:(e,t,r)=>{"use strict";r(1599);var s=r(7257);r(2560),e.exports=s},695:(e,t,r)=>{var s=r(8096),n=r(2428),i=r(6449),o=r(3656),a=r(361),c=r(7167),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&n(e),p=!r&&!u&&o(e),h=!r&&!u&&!p&&c(e),d=r||u||p||h,m=d?s(e.length,String):[],f=m.length;for(var y in e)!t&&!l.call(e,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,f))||m.push(y);return m}},798:(e,t,r)=>{"use strict";var s,n,i=r(5951),o=r(6794),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(s=u.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},850:(e,t,r)=>{"use strict";e.exports=r(6076)},866:(e,t,r)=>{const s=r(6048),n=r(2340);class i extends n{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},938:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},945:(e,t,r)=>{var s=r(79),n=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},1042:(e,t,r)=>{"use strict";var s=r(5582),n=r(1907),i=r(4443),o=r(7170),a=r(6624),c=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},1045:(e,t,r)=>{const s=r(6048),n=r(3805),i=r(6233),o=r(7726),a=r(866);e.exports=class extends i{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(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.value=t:this.content.push(new o(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(((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},1067:(e,t,r)=>{const s=r(316);e.exports=class extends s{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")}}},1091:(e,t,r)=>{"use strict";var s=r(5951),n=r(6024),i=r(2361),o=r(2250),a=r(3846).f,c=r(7463),l=r(2046),u=r(8311),p=r(1626),h=r(9724);r(6128);var d=function(e){var t=function(r,s,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,s)}return new e(r,s,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,m,f,y,g,v,b,x,w=e.target,E=e.global,S=e.stat,j=e.proto,O=E?s:S?s[w]:s[w]&&s[w].prototype,A=E?l:l[w]||p(l,w,{})[w],P=A.prototype;for(f in t)n=!(r=c(E?f:w+(S?".":"#")+f,e.forced))&&O&&h(O,f),g=A[f],n&&(v=e.dontCallGetSet?(x=a(O,f))&&x.value:O[f]),y=n&&v?v:t[f],(r||j||typeof g!=typeof y)&&(b=e.bind&&n?u(y,s):e.wrap&&n?d(y):j&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(A,f,b),j&&(h(l,m=w+"Prototype")||p(l,m,{}),p(l[m],f,y),e.real&&P&&(r||!P[f])&&p(P,f,y)))}},1167:(e,t,r)=>{const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},1175:(e,t,r)=>{"use strict";var s=r(9846);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1176:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1420:(e,t,r)=>{var s=r(79);e.exports=function(){this.__data__=new s,this.size=0}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},1470:(e,t,r)=>{"use strict";var s=r(1907),n=r(5482),i=r(160),o=r(4239),a=s("".charAt),c=s("".charCodeAt),l=s("".slice),u=function(e){return function(t,r){var s,u,p=i(o(t)),h=n(r),d=p.length;return h<0||h>=d?e?"":void 0:(s=c(p,h))<55296||s>56319||h+1===d||(u=c(p,h+1))<56320||u>57343?e?a(p,h):s:e?l(p,h,h+2):u-56320+(s-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},1505:(e,t,r)=>{"use strict";var s=r(8828);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1549:(e,t,r)=>{var s=r(2032),n=r(3862),i=r(6721),o=r(2749),a=r(5749);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1599:(e,t,r)=>{"use strict";r(4502)},1626:(e,t,r)=>{"use strict";var s=r(9447),n=r(4284),i=r(5817);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},1871:(e,t,r)=>{"use strict";var s=r(1907),n=r(2159);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},1873:(e,t,r)=>{var s=r(9325).Symbol;e.exports=s},1882:(e,t,r)=>{var s=r(2552),n=r(3805);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1907:(e,t,r)=>{"use strict";var s=r(1505),n=Function.prototype,i=n.call,o=s&&n.bind.bind(i,i);e.exports=s?o:function(e){return function(){return i.apply(e,arguments)}}},1986:(e,t,r)=>{var s=r(1873),n=r(7828),i=r(5288),o=r(5911),a=r(317),c=r(4247),l=s?s.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,s,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 n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+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 m=1&s;if(d||(d=c),e.size!=t.size&&!m)return!1;var f=h.get(e);if(f)return f==t;s|=2,h.set(e,t);var y=o(d(e),d(t),s,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},2032:(e,t,r)=>{var s=r(5804);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},2046:e=>{"use strict";e.exports={}},2048:(e,t,r)=>{"use strict";var s=r(1091),n=r(8280),i=r(5972),o=r(9192),a=r(9595),c=r(8075),l=r(1626),u=r(5817),p=r(9259),h=r(5884),d=r(4823),m=r(2096),f=r(6264)("toStringTag"),y=Error,g=[].push,v=function(e,t){var r,s=n(b,this);o?r=o(new y,s?i(this):b):(r=s?this:c(b),l(r,f,"Error")),void 0!==t&&l(r,"message",m(t)),h(r,v,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return d(e,g,{that:a}),l(r,"errors",a),r};o?o(v,y):a(v,y,{name:!0});var b=v.prototype=c(y.prototype,{constructor:u(1,v),message:u(1,""),name:u(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:v})},2096:(e,t,r)=>{"use strict";var s=r(160);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},2156:e=>{"use strict";e.exports=function(){}},2159:(e,t,r)=>{"use strict";var s=r(2250),n=r(4640),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},2199:(e,t,r)=>{var s=r(4528),n=r(6449);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},2220:(e,t,r)=>{"use strict";var s=r(9447),n=r(8661),i=r(4284),o=r(6624),a=r(7374),c=r(2875);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,r=n[u++],s[r]);return e}},2242:(e,t,r)=>{const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},2250: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}},2340:(e,t,r)=>{const s=r(6048);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{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((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(s(e),t))}find(e,t){return e=n(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&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},2361:(e,t,r)=>{"use strict";var s=r(5807),n=r(1907);e.exports=function(e){if("Function"===s(e))return n(e)}},2404:(e,t,r)=>{var s=r(270);e.exports=function(e,t){return s(e,t)}},2416:(e,t,r)=>{"use strict";var s=r(5582);e.exports=s("document","documentElement")},2428:(e,t,r)=>{var s=r(7534),n=r(346),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},2459:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},2522:(e,t,r)=>{"use strict";var s=r(5816),n=r(6499),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},2532:(e,t,r)=>{"use strict";var s=r(5951),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},2552:(e,t,r)=>{var s=r(1873),n=r(659),i=r(9350),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},2560:(e,t,r)=>{"use strict";r(9363);var s=r(9287),n=r(5951),i=r(4840),o=r(3742);for(var a in s)i(n[a],a),o[a]=o.Array},2574:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},2623:(e,t,r)=>{"use strict";var s={};s[r(6264)("toStringTag")]="z",e.exports="[object z]"===String(s)},2651:(e,t,r)=>{var s=r(4218);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},2749:(e,t,r)=>{var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},2804:(e,t,r)=>{var s=r(6110)(r(9325),"Promise");e.exports=s},2875:(e,t,r)=>{"use strict";var s=r(3045),n=r(376);e.exports=Object.keys||function(e){return s(e,n)}},2949:(e,t,r)=>{var s=r(2651);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},3040:(e,t,r)=>{var s=r(1549),n=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},3045:(e,t,r)=>{"use strict";var s=r(1907),n=r(9724),i=r(7374),o=r(4436).indexOf,a=r(8530),c=s([].push);e.exports=function(e,t){var r,s=i(e),l=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&c(u,r);for(;t.length>l;)n(s,r=t[l++])&&(~o(u,r)||c(u,r));return u}},3110:(e,t,r)=>{const s=r(5187),n=r(5015),i=r(8023),o=r(3812),a=r(3805),c=r(5105),l=r(6804);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(s,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,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 s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(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},3121:(e,t,r)=>{"use strict";var s=r(5482),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},3345:e=>{e.exports=function(){return[]}},3448:(e,t,r)=>{"use strict";var s=r(3948),n=r(9367),i=r(7136),o=r(3742),a=r(6264)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[s(e)]}},3556:(e,t,r)=>{var s=r(6025);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},3648:(e,t,r)=>{"use strict";var s=r(9447),n=r(8828),i=r(9552);e.exports=!s&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},3650:(e,t,r)=>{var s=r(4335)(Object.keys,Object);e.exports=s},3656:(e,t,r)=>{e=r.nmd(e);var s=r(9325),n=r(9935),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},3661:(e,t,r)=>{var s=r(3040),n=r(7670),i=r(289),o=r(4509),a=r(2949);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3742:e=>{"use strict";e.exports={}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3812:(e,t,r)=>{var s=r(2552),n=r(346);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},3846:(e,t,r)=>{"use strict";var s=r(9447),n=r(3930),i=r(2574),o=r(5817),a=r(7374),c=r(470),l=r(9724),u=r(3648),p=Object.getOwnPropertyDescriptor;t.f=s?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},3888:(e,t,r)=>{"use strict";var s=r(8828),n=r(5817);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},3930:(e,t,r)=>{"use strict";var s=r(1505),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},3948:(e,t,r)=>{"use strict";var s=r(2623),n=r(2250),i=r(5807),o=r(6264)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(s=i(t))&&n(t.callee)?"Arguments":s}},4018:(e,t,r)=>{"use strict";var s=r(6285);e.exports=function(e){return s(e)||null===e}},4035:(e,t,r)=>{const s=r(3110),n=r(6804);t.g$=s,t.KeyValuePair=r(5973),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(5105),r(5147)},4084:(e,t,r)=>{"use strict";var s=r(2250),n=r(6285),i=r(9192);e.exports=function(e,t,r){var o,a;return i&&s(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4239:(e,t,r)=>{"use strict";var s=r(7136),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},4247:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4248:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},4284:(e,t,r)=>{"use strict";var s=r(9447),n=r(3648),i=r(8661),o=r(6624),a=r(470),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";t.f=s?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var s=u(e,t);s&&s[d]&&(e[t]=r.value,r={configurable:h in r?r[h]:s[h],enumerable:p in r?r[p]:s[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=a(t),o(r),n)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}},4335:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},4436:(e,t,r)=>{"use strict";var s=r(7374),n=r(4849),i=r(575),o=function(e){return function(t,r,o){var a=s(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,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:o(!0),indexOf:o(!1)}},4443:(e,t,r)=>{"use strict";var s=r(3045),n=r(376).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},4502:(e,t,r)=>{"use strict";r(2048)},4509:(e,t,r)=>{var s=r(2651);e.exports=function(e){return s(this,e).has(e)}},4528:e=>{e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},4540:(e,t,r)=>{const s=r(316);e.exports=class extends s{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)}}},4640:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},4664:(e,t,r)=>{var s=r(9770),n=r(3345),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},4739:(e,t,r)=>{var s=r(6025);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},4744:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function n(e,t,r){return e.concat(t).map((function(e){return s(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var n={};return r.isMergeableObject(e)&&i(e).forEach((function(t){n[t]=s(e[t],r)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(i,r)(e[i],t[i],r):n[i]=s(t[i],r))})),n}function c(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||n,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=s;var o=Array.isArray(r);return o===Array.isArray(e)?o?i.arrayMerge(e,r,i):a(e,r,i):s(r,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},4823:(e,t,r)=>{"use strict";var s=r(8311),n=r(3930),i=r(6624),o=r(4640),a=r(7812),c=r(575),l=r(8280),u=r(300),p=r(3448),h=r(154),d=TypeError,m=function(e,t){this.stopped=e,this.result=t},f=m.prototype;e.exports=function(e,t,r){var y,g,v,b,x,w,E,S=r&&r.that,j=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),k=s(t,S),$=function(e){return y&&h(y,"normal"),new m(!0,e)},T=function(e){return j?(i(e),P?k(e[0],e[1],$):k(e[0],e[1])):P?k(e,$):k(e)};if(O)y=e.iterator;else if(A)y=e;else{if(!(g=p(e)))throw new d(o(e)+" is not iterable");if(a(g)){for(v=0,b=c(e);b>v;v++)if((x=T(e[v]))&&l(f,x))return x;return new m(!1)}y=u(e,g)}for(w=O?e.next:y.next;!(E=n(w,y)).done;){try{x=T(E.value)}catch(e){h(y,"throw",e)}if("object"==typeof x&&x&&l(f,x))return x}return new m(!1)}},4829:(e,t,r)=>{"use strict";var s=r(4284).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},4840:(e,t,r)=>{"use strict";var s=r(2623),n=r(4284).f,i=r(1626),o=r(9724),a=r(4878),c=r(6264)("toStringTag");e.exports=function(e,t,r,l){var u=r?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!s&&i(u,"toString",a))}},4849:(e,t,r)=>{"use strict";var s=r(5482),n=Math.max,i=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):i(r,t)}},4878:(e,t,r)=>{"use strict";var s=r(2623),n=r(3948);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},4894:(e,t,r)=>{var s=r(1882),n=r(294);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},4901:(e,t,r)=>{var s=r(2552),n=r(294),i=r(346),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[s(e)]}},4932:(e,t,r)=>{"use strict";var s,n,i,o=r(551),a=r(5951),c=r(6285),l=r(1626),u=r(9724),p=r(6128),h=r(2522),d=r(8530),m="Object already initialized",f=a.TypeError,y=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,s=function(e,t){if(g.has(e))throw new f(m);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=h("state");d[v]=!0,s=function(e,t){if(u(e,v))throw new f(m);return t.facade=e,l(e,v,t),t},n=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:s,get:n,has:i,enforce:function(e){return i(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}},5015:(e,t,r)=>{var s=r(2552),n=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},5083:(e,t,r)=>{var s=r(1882),n=r(7296),i=r(3805),o=r(7473),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!(!i(e)||n(e))&&(s(e)?h:a).test(o(e))}},5105: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]))}))}}},5116:(e,t,r)=>{"use strict";var s,n,i,o=r(8828),a=r(2250),c=r(6285),l=r(8075),u=r(5972),p=r(8055),h=r(6264),d=r(7376),m=h("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(s=n):f=!0),!c(s)||o((function(){var e={};return s[m].call(e)!==e}))?s={}:d&&(s=l(s)),a(s[m])||p(s,m,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:f}},5147:(e,t,r)=>{const s=r(5105);e.exports=class extends s{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 s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)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 s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}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([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),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 s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);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 s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},5187:e=>{e.exports=function(e){return null===e}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5481:(e,t,r)=>{var s=r(9325)["__core-js_shared__"];e.exports=s},5482:(e,t,r)=>{"use strict";var s=r(1176);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},5527:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},5580:(e,t,r)=>{var s=r(6110)(r(9325),"DataView");e.exports=s},5582:(e,t,r)=>{"use strict";var s=r(2046),n=r(5951),i=r(2250),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(s[e])||o(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},5594:(e,t,r)=>{"use strict";var s=r(5582),n=r(2250),i=r(8280),o=r(1175),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,a(e))}},5606:e=>{var t,r,s=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!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:n}catch(e){t=n}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();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=o(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===i||!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 m(){}s.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||o(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=m,s.addListener=m,s.once=m,s.off=m,s.removeListener=m,s.removeAllListeners=m,s.emit=m,s.prependListener=m,s.prependOnceListener=m,s.listeners=function(e){return[]},s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},5749:(e,t,r)=>{var s=r(5804);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},5762:(e,t,r)=>{"use strict";var s=r(1907),n=Error,i=s("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},5804:(e,t,r)=>{var s=r(6110)(Object,"create");e.exports=s},5807:(e,t,r)=>{"use strict";var s=r(1907),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},5816:(e,t,r)=>{"use strict";var s=r(6128);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},5817:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5861:(e,t,r)=>{var s=r(5580),n=r(8223),i=r(2804),o=r(6545),a=r(8303),c=r(2552),l=r(7473),u="[object Map]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",m="[object DataView]",f=l(s),y=l(n),g=l(i),v=l(o),b=l(a),x=c;(s&&x(new s(new ArrayBuffer(1)))!=m||n&&x(new n)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||a&&x(new a)!=d)&&(x=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?l(r):"";if(s)switch(s){case f:return m;case y:return u;case g:return p;case v:return h;case b:return d}return t}),e.exports=x},5884:(e,t,r)=>{"use strict";var s=r(1626),n=r(5762),i=r(3888),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):s(e,"stack",n(r,a)))}},5911:(e,t,r)=>{var s=r(8859),n=r(4248),i=r(9219);e.exports=function(e,t,r,o,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 m=-1,f=!0,y=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var g=e[m],v=t[m];if(o)var b=l?o(v,g,m,t,e,c):o(g,v,m,e,t,c);if(void 0!==b){if(b)continue;f=!1;break}if(y){if(!n(t,(function(e,t){if(!i(y,t)&&(g===e||a(g,e,r,o,c)))return y.push(t)}))){f=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){f=!1;break}}return c.delete(e),c.delete(t),f}},5950:(e,t,r)=>{var s=r(695),n=r(8984),i=r(4894);e.exports=function(e){return i(e)?s(e):n(e)}},5951:function(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},5972:(e,t,r)=>{"use strict";var s=r(9724),n=r(2250),i=r(9298),o=r(2522),a=r(7382),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(s(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},5973: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},6009:(e,t,r)=>{e=r.nmd(e);var s=r(2459),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},6024:(e,t,r)=>{"use strict";var s=r(1505),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?o.bind(i):function(){return o.apply(i,arguments)})},6025:(e,t,r)=>{var s=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},6028:(e,t,r)=>{"use strict";var s=r(3930),n=r(6285),i=r(5594),o=r(9367),a=r(581),c=r(6264),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||i(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},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)}}},6076:(e,t,r)=>{"use strict";r(1599);var s=r(8623);e.exports=s},6110:(e,t,r)=>{var s=r(5083),n=r(392);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},6128:(e,t,r)=>{"use strict";var s=r(7376),n=r(5951),i=r(2532),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.43.0",mode:s?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6233:(e,t,r)=>{const s=r(6048),n=r(316),i=r(2340);class o extends n{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((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}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||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}find(e){return new i(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)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},6264:(e,t,r)=>{"use strict";var s=r(5951),n=r(5816),i=r(9724),o=r(6499),a=r(9846),c=r(1175),l=s.Symbol,u=n("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},6285:(e,t,r)=>{"use strict";var s=r(2250);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},6303:(e,t,r)=>{const s=r(316);e.exports=class extends s{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)}}},6371:(e,t,r)=>{"use strict";var s=r(1091),n=r(5582),i=r(6024),o=r(8828),a=r(9358),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));s({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),u,!0)})},6449:e=>{var t=Array.isArray;e.exports=t},6499:(e,t,r)=>{"use strict";var s=r(1907),n=0,i=Math.random(),o=s(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},6545:(e,t,r)=>{var s=r(6110)(r(9325),"Set");e.exports=s},6605:(e,t,r)=>{"use strict";var s=r(1091),n=r(5951),i=r(6024),o=r(9358),a="WebAssembly",c=n[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=o(e,t,l),s({global:!0,constructor:!0,arity:1,forced:l},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,l),s({target:a,stat:!0,constructor:!0,arity:1,forced:l},r)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},6624:(e,t,r)=>{"use strict";var s=r(6285),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},6721:(e,t,r)=>{var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},6794:(e,t,r)=>{"use strict";var s=r(5951).navigator,n=s&&s.userAgent;e.exports=n?String(n):""},6804:(e,t,r)=>{const s=r(316),n=r(1067),i=r(1167),o=r(239),a=r(2242),c=r(6233),l=r(7726),u=r(1045),p=r(6303),h=r(4540),d=r(2340),m=r(866),f=r(5973);function y(e){if(e instanceof s)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(y));if("object"==typeof e){return new u(e)}return e}s.prototype.ObjectElement=u,s.prototype.RefElement=h,s.prototype.MemberElement=l,s.prototype.refract=y,d.prototype.refract=y,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:d,ObjectSlice:m,KeyValuePair:f}},6833:(e,t,r)=>{"use strict";var s=r(9447),n=r(9724),i=Function.prototype,o=s&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},6946:(e,t,r)=>{"use strict";var s=r(1907),n=r(8828),i=r(5807),o=Object,a=s("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},7057:(e,t,r)=>{"use strict";var s=r(1470).charAt,n=r(160),i=r(4932),o=r(183),a=r(9550),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(e,!1))}))},7068:(e,t,r)=>{var s=r(7217),n=r(5911),i=r(1986),o=r(689),a=r(5861),c=r(6449),l=r(3656),u=r(7167),p="[object Arguments]",h="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,f,y,g){var v=c(e),b=c(t),x=v?h:a(e),w=b?h:a(t),E=(x=x==p?d:x)==d,S=(w=w==p?d:w)==d,j=x==w;if(j&&l(e)){if(!l(t))return!1;v=!0,E=!1}if(j&&!E)return g||(g=new s),v||u(e)?n(e,t,r,f,y,g):i(e,t,x,r,f,y,g);if(!(1&r)){var O=E&&m.call(e,"__wrapped__"),A=S&&m.call(t,"__wrapped__");if(O||A){var P=O?e.value():e,k=A?t.value():t;return g||(g=new s),y(P,k,r,f,g)}}return!!j&&(g||(g=new s),o(e,t,r,f,y,g))}},7136:e=>{"use strict";e.exports=function(e){return null==e}},7167:(e,t,r)=>{var s=r(4901),n=r(7301),i=r(6009),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},7170:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7181:(e,t,r)=>{"use strict";var s=r(5116).IteratorPrototype,n=r(8075),i=r(5817),o=r(4840),a=r(3742),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=n(s,{next:i(+!l,r)}),o(e,u,!1,!0),a[u]=c,e}},7217:(e,t,r)=>{var s=r(79),n=r(1420),i=r(938),o=r(3605),a=r(9817),c=r(945);function l(e){var t=this.__data__=new s(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},7257:(e,t,r)=>{"use strict";r(6605),r(4502),r(6371),r(9363),r(7057);var s=r(2046);e.exports=s.AggregateError},7296:(e,t,r)=>{var s,n=r(5481),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},7374:(e,t,r)=>{"use strict";var s=r(6946),n=r(4239);e.exports=function(e){return s(n(e))}},7376:e=>{"use strict";e.exports=!0},7382:(e,t,r)=>{"use strict";var s=r(8828);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7463:(e,t,r)=>{"use strict";var s=r(8828),n=r(2250),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===u||r!==l&&(n(t)?s(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},7473: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""}},7534:(e,t,r)=>{var s=r(2552),n=r(346);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},7670:(e,t,r)=>{var s=r(2651);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},7726:(e,t,r)=>{const s=r(5973),n=r(316);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),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)}}},7812:(e,t,r)=>{"use strict";var s=r(6264),n=r(3742),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},7828:(e,t,r)=>{var s=r(9325).Uint8Array;e.exports=s},8023:(e,t,r)=>{var s=r(2552),n=r(346);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},8055:(e,t,r)=>{"use strict";var s=r(1626);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},8068:e=>{"use strict";var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,s)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,a=(e,t)=>{for(var r in t||(t={}))n.call(t,r)&&o(e,r,t[r]);if(s)for(var r of s(t))i.call(t,r)&&o(e,r,t[r]);return e},c=(e,t,r)=>o(e,"symbol"!=typeof t?t+"":t,r),l={};((t,r)=>{for(var s in r)e(t,s,{get:r[s],enumerable:!0})})(l,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>u,default:()=>m});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"),s=this._dict_ranges[t];let n=0;for(const[,e]of Object.entries(s)){const[t,r]=e;n+=Math.abs(r-t)}r=new Array(n);let i=0;for(const[,e]of Object.entries(s)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const t=this.lowerBound<=this.upperBound,s=this.lowerBound,n=this.upperBound;if(t)for(let e=s;e<n;e++)r[i++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=s;e>n;e--)r[i++]=String.fromCharCode(e),this.dictIndex=e}r.length=i}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 s=[];do{const n=r%e;r=Math.trunc(r/e),s.push(t[n])}while(0!==r);const n=s.join("");return this.counter+=1,n})),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,s=this.dict;for(let n=0;n<e;n++){const e=Math.floor(Math.random()*r);t[n]=s[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 s=e.slice(0,2),n=Number.parseInt(e.slice(2),10);return"$s"===s?r[s]().padStart(n,"0"):"$t"===s&&t?r[s](n,t):r[s](n)}))})),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 s=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,s),s})),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 s=e-9,n=Math.round(Math.random()*(s>15?15:s)),i=this.randomUUID(s);return"".concat(i.substring(0,n)).concat(r).concat(i.substring(n)).concat(n.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),s=Number.parseInt(e.slice(2),10);return t[r](s)})).replace(/^(.*?)(t{8,})(.*)$/g,((t,r,s)=>e.substring(r.length,r.length+s.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 s=Number.parseInt(r.substring(r.length-1),16);return new Date(1e3*Number.parseInt(r.substring(s,s+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:s,length:n,counter:i}=t;this.uuidLength=n,this.setDictionary(r,s),this.setCounter(i),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,m=h;return d=l,((s,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of r(i))n.call(s,c)||c===o||e(s,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return s})(e({},"__esModule",{value:!0}),d)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},8075:(e,t,r)=>{"use strict";var s,n=r(6624),i=r(2220),o=r(376),a=r(8530),c=r(2416),l=r(9552),u=r(2522),p="prototype",h="script",d=u("IE_PROTO"),m=function(){},f=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&s?y(s):(t=l("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):y(s);for(var n=o.length;n--;)delete g[p][o[n]];return g()};a[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[p]=n(e),r=new m,m[p]=null,r[d]=e):r=g(),void 0===t?r:i.f(r,t)}},8096:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},8223:(e,t,r)=>{var s=r(6110)(r(9325),"Map");e.exports=s},8280:(e,t,r)=>{"use strict";var s=r(1907);e.exports=s({}.isPrototypeOf)},8303:(e,t,r)=>{var s=r(6110)(r(9325),"WeakMap");e.exports=s},8311:(e,t,r)=>{"use strict";var s=r(2361),n=r(2159),i=r(1505),o=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},8530:e=>{"use strict";e.exports={}},8623:(e,t,r)=>{"use strict";var s=r(694);e.exports=s},8655:(e,t,r)=>{var s=r(6025);e.exports=function(e){return s(this.__data__,e)>-1}},8661:(e,t,r)=>{"use strict";var s=r(9447),n=r(8828);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8675:(e,t,r)=>{e.exports=r(850)},8828:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},8859:(e,t,r)=>{var s=r(3661),n=r(1380),i=r(1459);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},8984:(e,t,r)=>{var s=r(5527),n=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},9192:(e,t,r)=>{"use strict";var s=r(1871),n=r(6285),i=r(4239),o=r(43);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return i(r),o(s),n(r)?(t?e(r,s):r.__proto__=s,r):r}}():void 0)},9219:e=>{e.exports=function(e,t){return e.has(t)}},9259:(e,t,r)=>{"use strict";var s=r(6285),n=r(1626);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},9287: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}},9298:(e,t,r)=>{"use strict";var s=r(4239),n=Object;e.exports=function(e){return n(s(e))}},9325:(e,t,r)=>{var s=r(2459),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9358:(e,t,r)=>{"use strict";var s=r(5582),n=r(9724),i=r(1626),o=r(8280),a=r(9192),c=r(9595),l=r(4829),u=r(4084),p=r(2096),h=r(9259),d=r(5884),m=r(9447),f=r(7376);e.exports=function(e,t,r,y){var g="stackTraceLimit",v=y?2:1,b=e.split("."),x=b[b.length-1],w=s.apply(null,b);if(w){var E=w.prototype;if(!f&&n(E,"cause")&&delete E.cause,!r)return w;var S=s("Error"),j=t((function(e,t){var r=p(y?t:e,void 0),s=y?new w(e):new w;return void 0!==r&&i(s,"message",r),d(s,j,s.stack,2),this&&o(E,this)&&u(s,this,j),arguments.length>v&&h(s,arguments[v]),s}));if(j.prototype=E,"Error"!==x?a?a(j,S):c(j,S,{name:!0}):m&&g in w&&(l(j,w,g),l(j,w,"prepareStackTrace")),c(j,w),!f)try{E.name!==x&&i(E,"name",x),E.constructor=j}catch(e){}return j}}},9363:(e,t,r)=>{"use strict";var s=r(7374),n=r(2156),i=r(3742),o=r(4932),a=r(4284).f,c=r(183),l=r(9550),u=r(7376),p=r(9447),h="Array Iterator",d=o.set,m=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){d(this,{type:h,target:s(e),index:0,kind:t})}),(function(){var e=m(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 f=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&p&&"values"!==f.name)try{a(f,"name",{value:"values"})}catch(e){}},9367:(e,t,r)=>{"use strict";var s=r(2159),n=r(7136);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},9447:(e,t,r)=>{"use strict";var s=r(8828);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9550:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},9552:(e,t,r)=>{"use strict";var s=r(5951),n=r(6285),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9595:(e,t,r)=>{"use strict";var s=r(9724),n=r(1042),i=r(3846),o=r(4284);e.exports=function(e,t,r){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var p=a[u];s(e,p)||r&&s(r,p)||c(e,p,l(t,p))}}},9724:(e,t,r)=>{"use strict";var s=r(1907),n=r(9298),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},9770:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},9846:(e,t,r)=>{"use strict";var s=r(798),n=r(8828),i=r(5951).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},9935:e=>{e.exports=function(){return!1}}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var s={};return(()=>{"use strict";r.d(s,{default:()=>VO});var e={};r.r(e),r.d(e,{JsonPatchError:()=>yr,_areEquals:()=>Ar,applyOperation:()=>wr,applyPatch:()=>Er,applyReducer:()=>Sr,deepClone:()=>gr,getValueByPointer:()=>xr,validate:()=>Or,validator:()=>jr});var t={};r.r(t),r.d(t,{compare:()=>Mr,generate:()=>Fr,observe:()=>Cr,unobserve:()=>Tr});var n={};r.r(n),r.d(n,{bJ:()=>vi,uQ:()=>hi,Zd:()=>yi,q$:()=>mi,hd:()=>bi,aj:()=>xi,z9:()=>gi,zj:()=>wi});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Fa,includesClasses:()=>Ma,includesSymbols:()=>Ia,isAnnotationElement:()=>ka,isArrayElement:()=>ja,isBooleanElement:()=>Ea,isCommentElement:()=>$a,isElement:()=>va,isLinkElement:()=>Aa,isMemberElement:()=>Oa,isNullElement:()=>wa,isNumberElement:()=>xa,isObjectElement:()=>Sa,isParseResultElement:()=>Ta,isPrimitiveElement:()=>Ca,isRefElement:()=>Pa,isStringElement:()=>ba});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>vp,isJSONSchemaElement:()=>gp,isLinkDescriptionElement:()=>xp,isMediaElement:()=>bp});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>Xd,isCallbackElement:()=>Cd,isComponentsElement:()=>Fd,isContactElement:()=>Id,isDiscriminatorElement:()=>nm,isExampleElement:()=>Md,isExternalDocumentationElement:()=>_d,isHeaderElement:()=>Rd,isInfoElement:()=>Dd,isLicenseElement:()=>Nd,isLinkElement:()=>Ld,isMediaTypeElement:()=>rm,isOpenApi3_0Element:()=>qd,isOpenapiElement:()=>Bd,isOperationElement:()=>Ud,isParameterElement:()=>Jd,isPathItemElement:()=>Vd,isPathsElement:()=>Hd,isReferenceElement:()=>zd,isRequestBodyElement:()=>Gd,isResponseElement:()=>Wd,isResponsesElement:()=>Kd,isSchemaElement:()=>Yd,isSecurityRequirementElement:()=>Qd,isSecuritySchemeElement:()=>Zd,isServerElement:()=>em,isServerVariableElement:()=>tm,isServersElement:()=>sm});var c={};r.r(c),r.d(c,{isJSONReferenceElement:()=>vp,isJSONSchemaElement:()=>Nv,isLinkDescriptionElement:()=>Lv,isMediaElement:()=>bp});var l={};r.r(l),r.d(l,{isJSONReferenceElement:()=>vp,isJSONSchemaElement:()=>Yv,isLinkDescriptionElement:()=>Xv});var u={};r.r(u),r.d(u,{isJSONSchemaElement:()=>Pb,isLinkDescriptionElement:()=>kb});var p={};r.r(p),r.d(p,{isJSONSchemaElement:()=>qb,isLinkDescriptionElement:()=>Ub});var h={};r.r(h),r.d(h,{isBooleanJsonSchemaElement:()=>Zx,isCallbackElement:()=>Tx,isComponentsElement:()=>Cx,isContactElement:()=>Fx,isExampleElement:()=>Ix,isExternalDocumentationElement:()=>Mx,isHeaderElement:()=>_x,isInfoElement:()=>Rx,isJsonSchemaDialectElement:()=>Dx,isLicenseElement:()=>Nx,isLinkElement:()=>Lx,isMediaTypeElement:()=>nw,isOpenApi3_1Element:()=>qx,isOpenapiElement:()=>Bx,isOperationElement:()=>Ux,isParameterElement:()=>Jx,isPathItemElement:()=>Vx,isPathItemElementExternal:()=>Hx,isPathsElement:()=>zx,isReferenceElement:()=>Gx,isReferenceElementExternal:()=>Wx,isRequestBodyElement:()=>Kx,isResponseElement:()=>Yx,isResponsesElement:()=>Xx,isSchemaElement:()=>Qx,isSecurityRequirementElement:()=>ew,isSecuritySchemeElement:()=>tw,isServerElement:()=>rw,isServerVariableElement:()=>sw});var d={};r.r(d),r.d(d,{cookie:()=>EO,header:()=>wO,path:()=>vO,query:()=>bO});const m="application/json, application/yaml",f="https://swagger.io",y=Object.freeze({url:"/"}),g=3e3,{fetch:v,Response:b,Headers:x,Request:w,FormData:E,File:S,Blob:j}=globalThis;function O(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 A(e,t){return Array.isArray(e)&&e.some((e=>O(e,t)))}void 0===globalThis.fetch&&(globalThis.fetch=v),void 0===globalThis.Headers&&(globalThis.Headers=x),void 0===globalThis.Request&&(globalThis.Request=w),void 0===globalThis.Response&&(globalThis.Response=b),void 0===globalThis.FormData&&(globalThis.FormData=E),void 0===globalThis.File&&(globalThis.File=S),void 0===globalThis.Blob&&(globalThis.Blob=j);class P extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const k=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,$=e=>/^[a-z0-9\-._~]+$/i.test(e);function T(e,t="reserved"){return[...e].map((e=>{if($(e))return e;if(k(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 C(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:s,escape:n}){if("simple"===r)return t.map((e=>F(e,n))).join(",");if("label"===r)return`.${t.map((e=>F(e,n))).join(".")}`;if("matrix"===r)return t.map((e=>F(e,n))).reduce(((t,r)=>!t||s?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=s?`&${e}=`:",";return t.map((e=>F(e,n))).join(r)}if("spaceDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>F(e,n))).join(` ${r}`)}if("pipeDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>F(e,n))).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:s,escape:n}){const i=Object.keys(t);if("simple"===r)return i.reduce(((e,r)=>{const i=F(t[r],n);return`${e?`${e},`:""}${r}${s?"=":","}${i}`}),"");if("label"===r)return i.reduce(((e,r)=>{const i=F(t[r],n);return`${e?`${e}.`:"."}${r}${s?"=":"."}${i}`}),"");if("matrix"===r&&s)return i.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${F(t[r],n)}`),"");if("matrix"===r)return i.reduce(((r,s)=>{const i=F(t[s],n);return`${r?`${r},`:`;${e}=`}${s},${i}`}),"");if("form"===r)return i.reduce(((e,r)=>{const i=F(t[r],n);return`${e?`${e}${s?"&":","}`:""}${r}${s?"=":","}${i}`}),"");return}(e):function({key:e,value:t,style:r,escape:s}){if("simple"===r)return F(t,s);if("label"===r)return`.${F(t,s)}`;if("matrix"===r)return`;${e}=${F(t,s)}`;if("form"===r)return F(t,s);if("deepObject"===r)return F(t,s);return}(e)}function F(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?T(e,t):e??""}const I={form:",",spaceDelimited:"%20",pipeDelimited:"|"},M={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function _(e,t,r=!1){const{collectionFormat:s,allowEmptyValue:n,serializationOption:i,encoding:o}=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&&n)return[[l,""]];if(O(a)||A(a))return[[l,a]];if(i)return R(e,a,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:s,allowReserved:n}=o;return R(e,a,r,{style:t,explode:s,allowReserved:n})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new P(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new P(e,"blob",{type:o.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"===s?[[l,a.map(c)]]:[[l,a.map(c).join(M[s||"csv"])]]:[[l,""]]}function R(e,t,r,s){const n=s.style||"form",i=void 0===s.explode?"form"===n:s.explode,o=!r&&(s&&s.allowReserved?"unsafe":"reserved"),a=e=>F(e,o),c=r?e=>e:e=>a(e);return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(I[n])]]:"deepObject"===n?Object.keys(t).map((r=>[c(`${e}[${r}]`),a(t[r])])):i?Object.keys(t).map((e=>[c(e),a(t[e])])):[[c(e),Object.keys(t).map((e=>[`${c(e)},${a(t[e])}`])).join(",")]]}function D(e){return((e,{encode:t=!0}={})=>{const r=(e,t,s)=>(Array.isArray(s)?s.reduce(((s,n)=>r(e,t,n)),e):s instanceof Date?e.append(t,s.toISOString()):"object"==typeof s?Object.entries(s).reduce(((s,[n,i])=>r(e,`${t}[${n}]`,i)),e):e.append(t,s),e),s=Object.entries(e).reduce(((e,[t,s])=>r(e,t,s)),new URLSearchParams),n=String(s);return t?n:decodeURIComponent(n)})(Object.keys(e).reduce(((t,r)=>{for(const[s,n]of _(r,e[r]))t[s]=n instanceof P?n.valueOf():n;return t}),{}),{encode:!1})}function N(e={}){const{url:t="",query:r,form:s}=e;if(s){const t=Object.keys(s).some((e=>{const{value:t}=s[e];return O(t)||A(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(n=e.form,Object.entries(n).reduce(((e,[t,r])=>{for(const[s,n]of _(t,r,!0))if(Array.isArray(n))for(const t of n)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(s,r)}else e.append(s,t);else if(ArrayBuffer.isView(n)){const t=new Blob([n]);e.append(s,t)}else e.append(s,n);return e}),new FormData));e.formdata=t,e.body=t}else e.body=D(s);delete e.form}var n;if(r){const[s,n]=t.split("?");let i="";if(n){const e=new URLSearchParams(n);Object.keys(r).forEach((t=>e.delete(t))),i=String(e)}const o=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(i,D(r));e.url=s+o,delete e.query}return e}function L(e){return null==e}var B={isNothing:L,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:L(e)?[]:[e]},repeat:function(e,t){var r,s="";for(r=0;r<t;r+=1)s+=e;return s},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,s,n,i;if(t)for(r=0,s=(i=Object.keys(t)).length;r<s;r+=1)e[n=i[r]]=t[n];return e}};function q(e,t){var r="",s=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),s+" "+r):s}function U(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=q(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}U.prototype=Object.create(Error.prototype),U.prototype.constructor=U,U.prototype.toString=function(e){return this.name+": "+q(this,e)};var J=U;function V(e,t,r,s,n){var i="",o="",a=Math.floor(n/2)-1;return s-t>a&&(t=s-a+(i=" ... ").length),r-s>a&&(r=s+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:s-t+i.length}}function H(e,t){return B.repeat(" ",t-e.length)+e}var z=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,s=/\r?\n|\r|\0/g,n=[0],i=[],o=-1;r=s.exec(e.buffer);)i.push(r.index),n.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a,c,l="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=V(e.buffer,n[o-a],i[o-a],e.position-(n[o]-n[o-a]),p),l=B.repeat(" ",t.indent)+H((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=V(e.buffer,n[o],i[o],e.position,p),l+=B.repeat(" ",t.indent)+H((e.line+1).toString(),u)+" | "+c.str+"\n",l+=B.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=V(e.buffer,n[o+a],i[o+a],e.position-(n[o]-n[o+a]),p),l+=B.repeat(" ",t.indent)+H((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},G=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],W=["scalar","sequence","mapping"];var K=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===G.indexOf(t))throw new J('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===W.indexOf(this.kind))throw new J('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function Y(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,s){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=s)})),r[t]=e})),r}function X(e){return this.extend(e)}X.prototype.extend=function(e){var t=[],r=[];if(e instanceof K)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 J("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 K))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new J("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 J("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 K))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(X.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=Y(s,"implicit"),s.compiledExplicit=Y(s,"explicit"),s.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function s(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(s);return r}(s.compiledImplicit,s.compiledExplicit),s};var Q=X,Z=new K("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),ee=new K("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),te=new K("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),re=new Q({explicit:[Z,ee,te]});var se=new K("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"});var ne=new K("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 ie(e){return 48<=e&&e<=55}function oe(e){return 48<=e&&e<=57}var ae=new K("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=e.length,n=0,i=!1;if(!s)return!1;if("-"!==(t=e[n])&&"+"!==t||(t=e[++n]),"0"===t){if(n+1===s)return!0;if("b"===(t=e[++n])){for(n++;n<s;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!(48<=(r=e.charCodeAt(n))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!ie(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;n<s;n++)if("_"!==(t=e[n])){if(!oe(e.charCodeAt(n)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,s=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(s=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return s*parseInt(r.slice(2),2);if("x"===r[1])return s*parseInt(r.slice(2),16);if("o"===r[1])return s*parseInt(r.slice(2),8)}return s*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!B.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"]}}),ce=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var le=/^[-+]?[0-9]+e/;var ue=new K("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!ce.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||B.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(B.isNegativeZero(e))return"-0.0";return r=e.toString(10),le.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),pe=re.extend({implicit:[se,ne,ae,ue]}),he=pe,de=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),me=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]))?))?$");var fe=new K("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==de.exec(e)||null!==me.exec(e))},construct:function(e){var t,r,s,n,i,o,a,c,l=0,u=null;if(null===(t=de.exec(e))&&(t=me.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],s=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,s,n));if(i=+t[4],o=+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,s,n,i,o,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var ye=new K("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var ve=new K("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=0,n=e.length,i=ge;for(r=0;r<n;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;s+=6}return s%8==0},construct:function(e){var t,r,s=e.replace(/[\r\n=]/g,""),n=s.length,i=ge,o=0,a=[];for(t=0;t<n;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(s.charAt(t));return 0===(r=n%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,s="",n=0,i=e.length,o=ge;for(t=0;t<i;t++)t%3==0&&t&&(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]),n=(n<<8)+e[t];return 0===(r=i%3)?(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]):2===r?(s+=o[n>>10&63],s+=o[n>>4&63],s+=o[n<<2&63],s+=o[64]):1===r&&(s+=o[n>>2&63],s+=o[n<<4&63],s+=o[64],s+=o[64]),s}}),be=Object.prototype.hasOwnProperty,xe=Object.prototype.toString;var we=new K("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(s=a[t],i=!1,"[object Object]"!==xe.call(s))return!1;for(n in s)if(be.call(s,n)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(n))return!1;o.push(n)}return!0},construct:function(e){return null!==e?e:[]}}),Ee=Object.prototype.toString;var Se=new K("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(s=o[t],"[object Object]"!==Ee.call(s))return!1;if(1!==(n=Object.keys(s)).length)return!1;i[t]=[n[0],s[n[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)s=o[t],n=Object.keys(s),i[t]=[n[0],s[n[0]]];return i}}),je=Object.prototype.hasOwnProperty;var Oe=new K("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(je.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Ae=he.extend({implicit:[fe,ye],explicit:[ve,we,Se,Oe]}),Pe=Object.prototype.hasOwnProperty,ke=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$e=/[\x85\u2028\u2029]/,Te=/[,\[\]\{\}]/,Ce=/^(?:!|!!|![a-z\-]+!)$/i,Fe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ie(e){return Object.prototype.toString.call(e)}function Me(e){return 10===e||13===e}function _e(e){return 9===e||32===e}function Re(e){return 9===e||32===e||10===e||13===e}function De(e){return 44===e||91===e||93===e||123===e||125===e}function Ne(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Le(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 Be(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function qe(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}for(var Ue=new Array(256),Je=new Array(256),Ve=0;Ve<256;Ve++)Ue[Ve]=Le(Ve)?1:0,Je[Ve]=Le(Ve);function He(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ae,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=z(r),new J(t,r)}function Ge(e,t){throw ze(e,t)}function We(e,t){e.onWarning&&e.onWarning.call(null,ze(e,t))}var Ke={YAML:function(e,t,r){var s,n,i;null!==e.version&&Ge(e,"duplication of %YAML directive"),1!==r.length&&Ge(e,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Ge(e,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),i=parseInt(s[2],10),1!==n&&Ge(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&We(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var s,n;2!==r.length&&Ge(e,"TAG directive accepts exactly two arguments"),s=r[0],n=r[1],Ce.test(s)||Ge(e,"ill-formed tag handle (first argument) of the TAG directive"),Pe.call(e.tagMap,s)&&Ge(e,'there is a previously declared suffix for "'+s+'" tag handle'),Fe.test(n)||Ge(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(t){Ge(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function Ye(e,t,r,s){var n,i,o,a;if(t<r){if(a=e.input.slice(t,r),s)for(n=0,i=a.length;n<i;n+=1)9===(o=a.charCodeAt(n))||32<=o&&o<=1114111||Ge(e,"expected valid JSON character");else ke.test(a)&&Ge(e,"the stream contains non-printable characters");e.result+=a}}function Xe(e,t,r,s){var n,i,o,a;for(B.isObject(r)||Ge(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(n=Object.keys(r)).length;o<a;o+=1)i=n[o],Pe.call(t,i)||(qe(t,i,r[i]),s[i]=!0)}function Qe(e,t,r,s,n,i,o,a,c){var l,u;if(Array.isArray(n))for(l=0,u=(n=Array.prototype.slice.call(n)).length;l<u;l+=1)Array.isArray(n[l])&&Ge(e,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===Ie(n[l])&&(n[l]="[object Object]");if("object"==typeof n&&"[object Object]"===Ie(n)&&(n="[object Object]"),n=String(n),null===t&&(t={}),"tag:yaml.org,2002:merge"===s)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)Xe(e,t,i[l],r);else Xe(e,t,i,r);else e.json||Pe.call(r,n)||!Pe.call(t,n)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,Ge(e,"duplicated mapping key")),qe(t,n,i),delete r[n];return t}function Ze(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Ge(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function et(e,t,r){for(var s=0,n=e.input.charCodeAt(e.position);0!==n;){for(;_e(n);)9===n&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&35===n)do{n=e.input.charCodeAt(++e.position)}while(10!==n&&13!==n&&0!==n);if(!Me(n))break;for(Ze(e),n=e.input.charCodeAt(e.position),s++,e.lineIndent=0;32===n;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return-1!==r&&0!==s&&e.lineIndent<r&&We(e,"deficient indentation"),s}function tt(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))&&!Re(t)))}function rt(e,t){1===t?e.result+=" ":t>1&&(e.result+=B.repeat("\n",t-1))}function st(e,t){var r,s,n=e.tag,i=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),s=e.input.charCodeAt(e.position);0!==s&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Ge(e,"tab characters must not be used in indentation")),45===s)&&Re(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,et(e,!0,-1)&&e.lineIndent<=t)o.push(null),s=e.input.charCodeAt(e.position);else if(r=e.line,ot(e,t,3,!1,!0),o.push(e.result),et(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==s)Ge(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0)}function nt(e){var t,r,s,n,i=!1,o=!1;if(33!==(n=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Ge(e,"duplication of a tag property"),60===(n=e.input.charCodeAt(++e.position))?(i=!0,n=e.input.charCodeAt(++e.position)):33===n?(o=!0,r="!!",n=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&62!==n);e.position<e.length?(s=e.input.slice(t,e.position),n=e.input.charCodeAt(++e.position)):Ge(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!Re(n);)33===n&&(o?Ge(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Ce.test(r)||Ge(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),n=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Te.test(s)&&Ge(e,"tag suffix cannot contain flow indicator characters")}s&&!Fe.test(s)&&Ge(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch(t){Ge(e,"tag name is malformed: "+s)}return i?e.tag=s:Pe.call(e.tagMap,r)?e.tag=e.tagMap[r]+s:"!"===r?e.tag="!"+s:"!!"===r?e.tag="tag:yaml.org,2002:"+s:Ge(e,'undeclared tag handle "'+r+'"'),!0}function it(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Ge(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Re(r)&&!De(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Ge(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ot(e,t,r,s,n){var i,o,a,c,l,u,p,h,d,m=1,f=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=4===r||3===r,s&&et(e,!0,-1)&&(f=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;nt(e)||it(e);)et(e,!0,-1)?(f=!0,a=i,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):a=!1;if(a&&(a=f||n),1!==m&&4!==r||(h=1===r||2===r?t:t+1,d=e.position-e.lineStart,1===m?a&&(st(e,d)||function(e,t,r){var s,n,i,o,a,c,l,u=e.tag,p=e.anchor,h={},d=Object.create(null),m=null,f=null,y=null,g=!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(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Ge(e,"tab characters must not be used in indentation")),s=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!Re(s)){if(o=e.line,a=e.lineStart,c=e.position,!ot(e,r,2,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);_e(l);)l=e.input.charCodeAt(++e.position);if(58===l)Re(l=e.input.charCodeAt(++e.position))||Ge(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Qe(e,h,d,m,f,null,o,a,c),m=f=y=null),v=!0,g=!1,n=!1,m=e.tag,f=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;Ge(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;Ge(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(Qe(e,h,d,m,f,null,o,a,c),m=f=y=null),v=!0,g=!0,n=!0):g?(g=!1,n=!0):Ge(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=s;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,a=e.lineStart,c=e.position),ot(e,t,4,!0,n)&&(g?f=e.result:y=e.result),g||(Qe(e,h,d,m,f,y,o,a,c),m=f=y=null),et(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)Ge(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Qe(e,h,d,m,f,null,o,a,c),v&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),v}(e,d,h))||function(e,t){var r,s,n,i,o,a,c,l,u,p,h,d,m=!0,f=e.tag,y=e.anchor,g=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))o=93,l=!1,i=[];else{if(123!==d)return!1;o=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),d=e.input.charCodeAt(++e.position);0!==d;){if(et(e,!0,t),(d=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=f,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;m?44===d&&Ge(e,"expected the node content, but found ','"):Ge(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===d&&Re(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,et(e,!0,t)),r=e.line,s=e.lineStart,n=e.position,ot(e,t,1,!1,!0),p=e.tag,u=e.result,et(e,!0,t),d=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==d||(a=!0,d=e.input.charCodeAt(++e.position),et(e,!0,t),ot(e,t,1,!1,!0),h=e.result),l?Qe(e,i,g,p,u,h,r,s,n):a?i.push(Qe(e,null,g,p,u,h,r,s,n)):i.push(u),et(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(m=!0,d=e.input.charCodeAt(++e.position)):m=!1}Ge(e,"unexpected end of the stream within a flow collection")}(e,h)?y=!0:(o&&function(e,t){var r,s,n,i,o,a=1,c=!1,l=!1,u=t,p=0,h=!1;if(124===(i=e.input.charCodeAt(e.position)))s=!1;else{if(62!==i)return!1;s=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)1===a?a=43===i?3:2:Ge(e,"repeat of a chomping mode identifier");else{if(!((n=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===n?Ge(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Ge(e,"repeat of an indentation width identifier"):(u=t+n-1,l=!0)}if(_e(i)){do{i=e.input.charCodeAt(++e.position)}while(_e(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Me(i)&&0!==i)}for(;0!==i;){for(Ze(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),Me(i))p++;else{if(e.lineIndent<u){3===a?e.result+=B.repeat("\n",c?1+p:p):1===a&&c&&(e.result+="\n");break}for(s?_e(i)?(h=!0,e.result+=B.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=B.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=B.repeat("\n",p):e.result+=B.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!Me(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Ye(e,r,e.position,!1)}}return!0}(e,h)||function(e,t){var r,s,n;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,s=n=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Ye(e,s,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;s=e.position,e.position++,n=e.position}else Me(r)?(Ye(e,s,n,!0),rt(e,et(e,!1,t)),s=n=e.position):e.position===e.lineStart&&tt(e)?Ge(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);Ge(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,s,n,i,o,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Ye(e,r,e.position,!0),e.position++,!0;if(92===a){if(Ye(e,r,e.position,!0),Me(a=e.input.charCodeAt(++e.position)))et(e,!1,t);else if(a<256&&Ue[a])e.result+=Je[a],e.position++;else if((o=120===(c=a)?2:117===c?4:85===c?8:0)>0){for(n=o,i=0;n>0;n--)(o=Ne(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:Ge(e,"expected hexadecimal character");e.result+=Be(i),e.position++}else Ge(e,"unknown escape sequence");r=s=e.position}else Me(a)?(Ye(e,r,s,!0),rt(e,et(e,!1,t)),r=s=e.position):e.position===e.lineStart&&tt(e)?Ge(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}Ge(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?y=!0:!function(e){var t,r,s;if(42!==(s=e.input.charCodeAt(e.position)))return!1;for(s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!Re(s)&&!De(s);)s=e.input.charCodeAt(++e.position);return e.position===t&&Ge(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Pe.call(e.anchorMap,r)||Ge(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],et(e,!0,-1),!0}(e)?function(e,t,r){var s,n,i,o,a,c,l,u,p=e.kind,h=e.result;if(Re(u=e.input.charCodeAt(e.position))||De(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)&&(Re(s=e.input.charCodeAt(e.position+1))||r&&De(s)))return!1;for(e.kind="scalar",e.result="",n=i=e.position,o=!1;0!==u;){if(58===u){if(Re(s=e.input.charCodeAt(e.position+1))||r&&De(s))break}else if(35===u){if(Re(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&tt(e)||r&&De(u))break;if(Me(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,et(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(Ye(e,n,i,!1),rt(e,e.line-a),n=i=e.position,o=!1),_e(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Ye(e,n,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,1===r)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||Ge(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(y=a&&st(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&&Ge(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||Ge(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&Ge(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)):Ge(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function at(e){var t,r,s,n,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(n=e.input.charCodeAt(e.position))&&(et(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){for(o=!0,n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Re(n);)n=e.input.charCodeAt(++e.position);for(s=[],(r=e.input.slice(t,e.position)).length<1&&Ge(e,"directive name must not be less than one character in length");0!==n;){for(;_e(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!Me(n));break}if(Me(n))break;for(t=e.position;0!==n&&!Re(n);)n=e.input.charCodeAt(++e.position);s.push(e.input.slice(t,e.position))}0!==n&&Ze(e),Pe.call(Ke,r)?Ke[r](e,r,s):We(e,'unknown document directive "'+r+'"')}et(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,et(e,!0,-1)):o&&Ge(e,"directives end mark is expected"),ot(e,e.lineIndent-1,4,!1,!0),et(e,!0,-1),e.checkLineBreaks&&$e.test(e.input.slice(i,e.position))&&We(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&tt(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,et(e,!0,-1)):e.position<e.length-1&&Ge(e,"end of the stream or a document separator is expected")}function ct(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 He(e,t),s=e.indexOf("\0");for(-1!==s&&(r.position=s,Ge(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;)at(r);return r.documents}var lt={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var s=ct(e,r);if("function"!=typeof t)return s;for(var n=0,i=s.length;n<i;n+=1)t(s[n])},load:function(e,t){var r=ct(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new J("expected a single document in the stream, but found more")}}},ut=Object.prototype.toString,pt=Object.prototype.hasOwnProperty,ht=65279,dt={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"},mt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ft=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function yt(e){var t,r,s;if(t=e.toString(16).toUpperCase(),e<=255)r="x",s=2;else if(e<=65535)r="u",s=4;else{if(!(e<=4294967295))throw new J("code point within a string may not be greater than 0xFFFFFFFF");r="U",s=8}return"\\"+r+B.repeat("0",s-t.length)+t}function gt(e){this.schema=e.schema||Ae,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=B.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,s,n,i,o,a,c;if(null===t)return{};for(r={},n=0,i=(s=Object.keys(t)).length;n<i;n+=1)o=s[n],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&pt.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=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 vt(e,t){for(var r,s=B.repeat(" ",t),n=0,i=-1,o="",a=e.length;n<a;)-1===(i=e.indexOf("\n",n))?(r=e.slice(n),n=a):(r=e.slice(n,i+1),n=i+1),r.length&&"\n"!==r&&(o+=s),o+=r;return o}function bt(e,t){return"\n"+B.repeat(" ",e.indent*t)}function xt(e){return 32===e||9===e}function wt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==ht||65536<=e&&e<=1114111}function Et(e){return wt(e)&&e!==ht&&13!==e&&10!==e}function St(e,t,r){var s=Et(e),n=s&&!xt(e);return(r?s:s&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!n)||Et(t)&&!xt(t)&&35===e||58===t&&n}function jt(e,t){var r,s=e.charCodeAt(t);return s>=55296&&s<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(s-55296)+r-56320+65536:s}function Ot(e){return/^\n* /.test(e)}function At(e,t,r,s,n,i,o,a){var c,l,u=0,p=null,h=!1,d=!1,m=-1!==s,f=-1,y=wt(l=jt(e,0))&&l!==ht&&!xt(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!xt(e)&&58!==e}(jt(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!wt(u=jt(e,c)))return 5;y=y&&St(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(10===(u=jt(e,c)))h=!0,m&&(d=d||c-f-1>s&&" "!==e[f+1],f=c);else if(!wt(u))return 5;y=y&&St(u,p,a),p=u}d=d||m&&c-f-1>s&&" "!==e[f+1]}return h||d?r>9&&Ot(e)?5:o?2===i?5:2:d?4:3:!y||o||n(e)?2===i?5:2:1}function Pt(e,t,r,s,n){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==mt.indexOf(t)||ft.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=s||e.flowLevel>-1&&r>=e.flowLevel;switch(At(t,a,e.indent,o,(function(t){return function(e,t){var r,s;for(r=0,s=e.implicitTypes.length;r<s;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!s,n)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+kt(t,e.indent)+$t(vt(t,i));case 4:return">"+kt(t,e.indent)+$t(vt(function(e,t){var r,s,n=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,n.lastIndex=a,Tt(e.slice(0,a),t)),o="\n"===e[0]||" "===e[0];var a;for(;s=n.exec(e);){var c=s[1],l=s[2];r=" "===l[0],i+=c+(o||r||""===l?"":"\n")+Tt(l,t),o=r}return i}(t,o),i));case 5:return'"'+function(e){for(var t,r="",s=0,n=0;n<e.length;s>=65536?n+=2:n++)s=jt(e,n),!(t=dt[s])&&wt(s)?(r+=e[n],s>=65536&&(r+=e[n+1])):r+=t||yt(s);return r}(t)+'"';default:throw new J("impossible error: invalid scalar style")}}()}function kt(e,t){var r=Ot(e)?String(t):"",s="\n"===e[e.length-1];return r+(s&&("\n"===e[e.length-2]||"\n"===e)?"+":s?"":"-")+"\n"}function $t(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Tt(e,t){if(""===e||" "===e[0])return e;for(var r,s,n=/ [^ ]/g,i=0,o=0,a=0,c="";r=n.exec(e);)(a=r.index)-i>t&&(s=o>i?o:a,c+="\n"+e.slice(i,s),i=s+1),o=a;return c+="\n",e.length-i>t&&o>i?c+=e.slice(i,o)+"\n"+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Ct(e,t,r,s){var n,i,o,a="",c=e.tag;for(n=0,i=r.length;n<i;n+=1)o=r[n],e.replacer&&(o=e.replacer.call(r,String(n),o)),(It(e,t+1,o,!0,!0,!1,!0)||void 0===o&&It(e,t+1,null,!0,!0,!1,!0))&&(s&&""===a||(a+=bt(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 s,n,i,o,a,c;for(i=0,o=(n=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=n[i]).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]"===ut.call(a.represent))s=a.represent(t,c);else{if(!pt.call(a.represent,c))throw new J("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');s=a.represent[c](t,c)}e.dump=s}return!0}return!1}function It(e,t,r,s,n,i,o){e.tag=null,e.dump=r,Ft(e,r,!1)||Ft(e,r,!0);var a,c=ut.call(e.dump),l=s;s&&(s=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)&&(n=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)s&&0!==Object.keys(e.dump).length?(!function(e,t,r,s){var n,i,o,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 J("sortKeys must be a boolean or a function");for(n=0,i=h.length;n<i;n+=1)l="",s&&""===u||(l+=bt(e,t)),a=r[o=h[n]],e.replacer&&(a=e.replacer.call(r,o,a)),It(e,t+1,o,!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+=bt(e,t)),It(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,n),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var s,n,i,o,a,c="",l=e.tag,u=Object.keys(r);for(s=0,n=u.length;s<n;s+=1)a="",""!==c&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=u[s]],e.replacer&&(o=e.replacer.call(r,i,o)),It(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),It(e,t,o,!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)s&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?Ct(e,t-1,e.dump,n):Ct(e,t,e.dump,n),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var s,n,i,o="",a=e.tag;for(s=0,n=r.length;s<n;s+=1)i=r[s],e.replacer&&(i=e.replacer.call(r,String(s),i)),(It(e,t,i,!1,!1)||void 0===i&&It(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(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 J("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&Pt(e,e.dump,t,i,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 Mt(e,t){var r,s,n=[],i=[];for(_t(e,n,i),r=0,s=i.length;r<s;r+=1)t.duplicates.push(n[i[r]]);t.usedDuplicates=new Array(s)}function _t(e,t,r){var s,n,i;if(null!==e&&"object"==typeof e)if(-1!==(n=t.indexOf(e)))-1===r.indexOf(n)&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,i=e.length;n<i;n+=1)_t(e[n],t,r);else for(n=0,i=(s=Object.keys(e)).length;n<i;n+=1)_t(e[s[n]],t,r)}function Rt(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 Dt=K,Nt=Q,Lt=re,Bt=pe,qt=he,Ut=Ae,Jt=lt.load,Vt=lt.loadAll,Ht={dump:function(e,t){var r=new gt(t=t||{});r.noRefs||Mt(e,r);var s=e;return r.replacer&&(s=r.replacer.call({"":s},"",s)),It(r,0,s,!0,!0)?r.dump+"\n":""}}.dump,zt=J,Gt={binary:ve,float:ue,map:te,null:se,pairs:Se,set:Oe,timestamp:fe,bool:ne,int:ae,merge:ye,omap:we,seq:ee,str:Z},Wt=Rt("safeLoad","load"),Kt=Rt("safeLoadAll","loadAll"),Yt=Rt("safeDump","dump"),Xt={Type:Dt,Schema:Nt,FAILSAFE_SCHEMA:Lt,JSON_SCHEMA:Bt,CORE_SCHEMA:qt,DEFAULT_SCHEMA:Ut,load:Jt,loadAll:Vt,dump:Ht,YAMLException:zt,types:Gt,safeLoad:Wt,safeLoadAll:Kt,safeDump:Yt};function Qt(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,[t,r])=>(e[t]=function(e){return e.includes(", ")?e.split(", "):e}(r),e)),{})}function Zt(e,t,{loadSpec:r=!1}={}){const s={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Qt(e.headers)},n=s.headers["content-type"],i=r||((e="")=>/(json|xml|yaml|text)\b/.test(e))(n);return(i?e.text:e.blob||e.buffer).call(e).then((e=>{if(s.text=e,s.data=e,i)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 Xt.load(e)}(e,n);s.body=t,s.obj=t}catch(e){s.parseError=e}return s}))}async function er(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=N(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 s;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{s=await(t.userFetch||fetch)(t.url,t),s=await Zt(s,e,t),t.responseInterceptor&&(s=await t.responseInterceptor(s)||s)}catch(e){if(!s)throw e;const t=new Error(s.statusText||`response status is ${s.status}`);throw t.status=s.status,t.statusCode=s.status,t.responseError=e,t}if(!s.ok){const e=new Error(s.statusText||`response status is ${s.status}`);throw e.status=s.status,e.statusCode=s.status,e.response=s,e}return s}function tr(e,t={}){const{requestInterceptor:r,responseInterceptor:s}=t,n=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:s,headers:{Accept:m},credentials:n}).then((e=>e.body))}const rr=e=>{const{baseDoc:t,url:r}=e,s=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(s,globalThis.document.baseURI)):s},sr=e=>{const{fetch:t,http:r}=e;return t||r||er};var nr,ir=(nr=function(e,t){return nr=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])},nr(e,t)},function(e,t){function r(){this.constructor=e}nr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),or=Object.prototype.hasOwnProperty;function ar(e,t){return or.call(e,t)}function cr(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 s=[];for(var n in e)ar(e,n)&&s.push(n);return s}function lr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function ur(e){for(var t,r=0,s=e.length;r<s;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function pr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function hr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function dr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(dr(e[t]))return!0}else if("object"==typeof e)for(var s=cr(e),n=s.length,i=0;i<n;i++)if(dr(e[s[i]]))return!0;return!1}function mr(e,t){var r=[e];for(var s in t){var n="object"==typeof t[s]?JSON.stringify(t[s],null,2):t[s];void 0!==n&&r.push(s+": "+n)}return r.join("\n")}var fr=function(e){function t(t,r,s,n,i){var o=this.constructor,a=e.call(this,mr(t,{name:r,index:s,operation:n,tree:i}))||this;return a.name=r,a.index=s,a.operation=n,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=mr(t,{name:r,index:s,operation:n,tree:i}),a}return ir(t,e),t}(Error),yr=fr,gr=lr,vr={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var s=e[t];return delete e[t],{newDocument:r,removed:s}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:function(e,t,r){var s=xr(r,this.path);s&&(s=lr(s));var n=wr(r,{op:"remove",path:this.from}).removed;return wr(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:s}},copy:function(e,t,r){var s=xr(r,this.from);return wr(r,{op:"add",path:this.path,value:lr(s)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Ar(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},br={add:function(e,t,r){return ur(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 s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:vr.move,copy:vr.copy,test:vr.test,_get:vr._get};function xr(e,t){if(""==t)return e;var r={op:"_get",path:t};return wr(e,r),r.value}function wr(e,t,r,s,n,i){if(void 0===r&&(r=!1),void 0===s&&(s=!0),void 0===n&&(n=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):jr(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=xr(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=Ar(e,t.value),!1===o.test)throw new yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new yr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}s||(e=lr(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:jr;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=hr(h)),n&&("__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&&!ur(h))throw new yr("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",i,t,e);ur(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new yr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(o=br[t.op].call(t,c,h,e)).test)throw new yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=vr[t.op].call(t,c,h,e)).test)throw new yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new yr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function Er(e,t,r,s,n){if(void 0===s&&(s=!0),void 0===n&&(n=!0),r&&!Array.isArray(t))throw new yr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");s||(e=lr(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=wr(e,t[o],r,!0,n,o),e=i[o].newDocument;return i.newDocument=e,i}function Sr(e,t,r){var s=wr(e,t);if(!1===s.test)throw new yr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return s.newDocument}function jr(e,t,r,s){if("object"!=typeof e||null===e||Array.isArray(e))throw new yr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!vr[e.op])throw new yr("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 yr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new yr('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 yr("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 yr("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)&&dr(e.value))throw new yr("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 n=e.path.split("/").length,i=s.split("/").length;if(n!==i+1&&n!==i)throw new yr("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!==s)throw new yr("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 o=Or([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new yr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function Or(e,t,r){try{if(!Array.isArray(e))throw new yr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Er(lr(t),lr(e),r||!0);else{r=r||jr;for(var s=0;s<e.length;s++)r(e[s],s,t,void 0)}}catch(e){if(e instanceof yr)return e;throw e}}function Ar(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,s,n,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((s=e.length)!=t.length)return!1;for(r=s;0!=r--;)if(!Ar(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var a=Object.keys(e);if((s=a.length)!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=s;0!=r--;)if(!Ar(e[n=a[r]],t[n]))return!1;return!0}return e!=e&&t!=t}var Pr=new WeakMap,kr=function(e){this.observers=new Map,this.obj=e},$r=function(e,t){this.callback=e,this.observer=t};function Tr(e,t){t.unobserve()}function Cr(e,t){var r,s=function(e){return Pr.get(e)}(e);if(s){var n=function(e,t){return e.observers.get(t)}(s,t);r=n&&n.observer}else s=new kr(e),Pr.set(e,s);if(r)return r;if(r={},s.value=lr(e),t){r.callback=t,r.next=null;var i=function(){Fr(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){Fr(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(s,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},s.observers.set(t,new $r(t,r)),r}function Fr(e,t){void 0===t&&(t=!1);var r=Pr.get(e.object);Ir(r.value,e.object,e.patches,"",t),e.patches.length&&Er(r.value,e.patches);var s=e.patches;return s.length>0&&(e.patches=[],e.callback&&e.callback(s)),s}function Ir(e,t,r,s,n){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=cr(t),o=cr(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!ar(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:s+"/"+pr(p),value:lr(l)}),r.push({op:"remove",path:s+"/"+pr(p)}),a=!0):(n&&r.push({op:"test",path:s,value:e}),r.push({op:"replace",path:s,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?Ir(l,u,r,s+"/"+pr(p),n):l!==u&&(n&&r.push({op:"test",path:s+"/"+pr(p),value:lr(l)}),r.push({op:"replace",path:s+"/"+pr(p),value:lr(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;ar(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:s+"/"+pr(p),value:lr(t[p])})}}}function Mr(e,t,r){void 0===r&&(r=!1);var s=[];return Ir(e,t,s,"",r),s}Object.assign({},e,t,{JsonPatchError:fr,deepClone:lr,escapePathComponent:pr,unescapePathComponent:hr});var _r=r(4744),Rr=r.n(_r);const Dr={add:function(e,t){return{op:"add",path:e,value:t}},replace:Lr,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&&Nr(t.path)}).op){const r=Qr(e,t.path);Object.assign(r,t.value),Er(e,[Lr(t.path,r)])}else if("mergeDeep"===t.op){const r=Qr(e,t.path),s=Rr()(r,t.value,{customMerge:e=>{if("enum"===e)return(e,t)=>Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:Rr()(e,t)}});e=Er(e,[Lr(t.path,s)]).newDocument}else if("add"===t.op&&""===t.path&&zr(t.value)){Er(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${Nr(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:s}=t;r.allowMetaPatches&&t.meta&&Yr(t)&&(Array.isArray(t.value)||zr(t.value))&&(s={...s,...t.meta}),e=s}else if(Er(e,[t]),r.allowMetaPatches&&t.meta&&Yr(t)&&(Array.isArray(t.value)||zr(t.value))){const r={...Qr(e,t.path),...t.meta};Er(e,[Lr(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,s=t.length;r<s;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:Vr,fullyNormalizeArray:function(e){return Hr(Vr(Jr(e)))},normalizeArray:Jr,isPromise:function(e){return zr(e)&&Gr(e.then)},forEachNew:function(e,t){try{return Br(e,Ur,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return Br(e,qr,t)}catch(e){return e}},isJsonPatch:Wr,isContextPatch:function(e){return Xr(e)&&"context"===e.type},isPatch:Xr,isMutation:Kr,isAdditiveMutation:Yr,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Gr,isObject:zr,isError:function(e){return e instanceof Error}};function Nr(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function Lr(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function Br(e,t,r){return Hr(Vr(e.filter(Yr).map((e=>t(e.value,r,e.path)))||[]))}function qr(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,s)=>qr(e,t,r.concat(s)))):zr(e)?Object.keys(e).map((s=>qr(e[s],t,r.concat(s)))):t(e,r[r.length-1],r)}function Ur(e,t,r){let s=[];if((r=r||[]).length>0){const n=t(e,r[r.length-1],r);n&&(s=s.concat(n))}if(Array.isArray(e)){const n=e.map(((e,s)=>Ur(e,t,r.concat(s))));n&&(s=s.concat(n))}else if(zr(e)){const n=Object.keys(e).map((s=>Ur(e[s],t,r.concat(s))));n&&(s=s.concat(n))}return s=Vr(s),s}function Jr(e){return Array.isArray(e)?e:[e]}function Vr(e){return[].concat(...e.map((e=>Array.isArray(e)?Vr(e):e)))}function Hr(e){return e.filter((e=>void 0!==e))}function zr(e){return e&&"object"==typeof e}function Gr(e){return e&&"function"==typeof e}function Wr(e){if(Xr(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Kr(e){return Wr(e)||Xr(e)&&"mutation"===e.type}function Yr(e){return Kr(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Xr(e){return e&&"object"==typeof e}function Qr(e,t){try{return xr(e,t)}catch(e){return console.error(e),{}}}var Zr=r(8675);const es=class extends Zr{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 ts extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(es,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 rs=ts;const ss=class extends rs{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};var ns=r(5606);function is(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function os(e){return function t(r){return 0===arguments.length||is(r)?t:e.apply(this,arguments)}}function as(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return is(r)?t:os((function(t){return e(r,t)}));default:return is(r)&&is(s)?t:is(r)?os((function(t){return e(t,s)})):is(s)?os((function(t){return e(r,t)})):e(r,s)}}}function cs(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return is(r)?t:as((function(t,s){return e(r,t,s)}));case 2:return is(r)&&is(s)?t:is(r)?as((function(t,r){return e(t,s,r)})):is(s)?as((function(t,s){return e(r,t,s)})):os((function(t){return e(r,s,t)}));default:return is(r)&&is(s)&&is(n)?t:is(r)&&is(s)?as((function(t,r){return e(t,r,n)})):is(r)&&is(n)?as((function(t,r){return e(t,s,r)})):is(s)&&is(n)?as((function(t,s){return e(r,t,s)})):is(r)?os((function(t){return e(t,s,n)})):is(s)?os((function(t){return e(r,t,n)})):is(n)?os((function(t){return e(r,s,t)})):e(r,s,n)}}}const ls=Number.isInteger||function(e){return(e|0)===e};function us(e){return"[object String]"===Object.prototype.toString.call(e)}function ps(e,t){var r=e<0?t.length+e:e;return us(t)?t.charAt(r):t[r]}function hs(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=ls(n)?ps(n,r):r[n]}return r}const ds=cs((function(e,t,r){return e(hs(t,r))}));function ms(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function fs(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function ys(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function gs(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const vs="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var bs=Object.prototype.toString;const xs=function(){return"[object Arguments]"===bs.call(arguments)?function(e){return"[object Arguments]"===bs.call(e)}:function(e){return gs("callee",e)}}();var ws=!{toString:null}.propertyIsEnumerable("toString"),Es=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Ss=function(){return arguments.propertyIsEnumerable("length")}(),js=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},Os="function"!=typeof Object.keys||Ss?os((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=Ss&&xs(e);for(t in e)!gs(t,e)||n&&"length"===t||(s[s.length]=t);if(ws)for(r=Es.length-1;r>=0;)gs(t=Es[r],e)&&!js(s,t)&&(s[s.length]=t),r-=1;return s})):os((function(e){return Object(e)!==e?[]:Object.keys(e)}));const As=Os;const Ps=os((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function ks(e,t,r,s){var n=fs(e);function i(e,t){return $s(e,t,r.slice(),s.slice())}return!ys((function(e,t){return!ys(i,t,e)}),fs(t),n)}function $s(e,t,r,s){if(vs(e,t))return!0;var n,i,o=Ps(e);if(o!==Ps(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(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!vs(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!vs(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 s[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&ks(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&ks(e.values(),t.values(),r.concat([e]),s.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=As(e);if(c.length!==As(t).length)return!1;var l=r.concat([e]),u=s.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!gs(p,t)||!$s(t[p],e[p],l,u))return!1;a-=1}return!0}const Ts=as((function(e,t){return $s(e,t,[],[])}));function Cs(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)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(Ts(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function Fs(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function Is(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 Ms=function(e){return(e<10?"0":"")+e};const _s="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ms(e.getUTCMonth()+1)+"-"+Ms(e.getUTCDate())+"T"+Ms(e.getUTCHours())+":"+Ms(e.getUTCMinutes())+":"+Ms(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Rs(e){return function(){return!e.apply(this,arguments)}}function Ds(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const Ns=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Ls(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!Ns(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function Bs(e){return"[object Object]"===Object.prototype.toString.call(e)}const qs=function(){return this.xf["@@transducer/init"]()},Us=function(e){return this.xf["@@transducer/result"](e)};var Js=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=qs,e.prototype["@@transducer/result"]=Us,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Vs(e){return function(t){return new Js(e,t)}}const Hs=as(Ls(["fantasy-land/filter","filter"],Vs,(function(e,t){return Bs(t)?Ds((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},As(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)})));const zs=as((function(e,t){return Hs(Rs(e),t)}));function Gs(e,t){var r=function(r){var s=t.concat([e]);return Cs(r,s)?"<Circular>":Gs(r,s)},s=function(e,t){return Fs((function(t){return Is(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Fs(r,e).join(", ")+"))";case"[object Array]":return"["+Fs(r,e).concat(s(e,zs((function(e){return/^\d+$/.test(e)}),As(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):Is(_s(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())+")":Is(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,As(e)).join(", ")+"}"}}const Ws=os((function(e){return Gs(e,[])}));var Ks=as((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ws(e));var r;return ms(e).test(t)}));const Ys=Ks;function Xs(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,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,o,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 Qs(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Zs=os((function(e){return!!Ns(e)||!!e&&("object"==typeof e&&(!us(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var en="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function tn(e,t,r){return function(s,n,i){if(Zs(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[en])return r(s,n,i[en]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function rn(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const sn=as((function(e,t){return Xs(e.length,(function(){return e.apply(t,arguments)}))}));function nn(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function on(e,t,r,s){return e["@@transducer/result"](r[s](sn(e["@@transducer/step"],e),t))}const an=tn(rn,on,nn);var cn=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 ln(e){return new cn(e)}const un=cs((function(e,t,r){return an("function"==typeof e?ln(e):e,t,r)}));function pn(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return Ns(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const hn=cs(pn("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const dn=os(pn("tail",hn(1,1/0)));function mn(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Xs(arguments[0].length,un(Qs,arguments[0],dn(arguments)))}const fn=as((function(e,t){return null==t||t!=t?e:t}));const yn=as((function(e,t){if(null!=t)return ls(e)?ps(e,t):t[e]}));const gn=cs((function(e,t,r){return fn(e,yn(t,r))}));const vn=os((function(e){return ps(-1,e)}));function bn(e,t,r){return function(){for(var s=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var c;o<t.length&&(!is(t[o])||n>=arguments.length)?c=t[o]:(c=arguments[n],n+=1),s[o]=c,is(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,s):Xs(Math.max(0,i),bn(e,s,r))}}const xn=as((function(e,t){return 1===e?os(t):Xs(e,bn(e,[],t))}));const wn=os((function(e){return xn(e.length,e)}));function En(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Sn=as((function(e,t){return xn(e+1,(function(){var r=arguments[e];if(null!=r&&En(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ws(r)+' does not have a method named "'+t+'"')}))}));const jn=Sn(1,"split");function On(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return hn(0,r+1,t)}var An=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=qs,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=an(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 Pn(e){return function(t){return new An(e,t)}}const kn=as(Ls([],Pn,On));const $n=Sn(1,"join");const Tn=os((function(e){return xn(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(as(Cs));const Cn=wn((function(e,t){return mn(jn(""),kn(Tn(e)),$n(""))(t)}));function Fn(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function In(e,t,r,s){return r[s](e,t)}const Mn=tn(Ds,In,Fn);var _n=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=qs,e.prototype["@@transducer/result"]=Us,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Rn=as(Ls(["fantasy-land/map","map"],(function(e){return function(t){return new _n(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return xn(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Ds((function(r,s){return r[s]=e(t[s]),r}),{},As(t));default:return Fs(e,t)}})));const Dn=as((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))}:Mn((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,Rn(r,t))}),[],e)}));const Nn=as((function(e,t){var r=xn(e,t);return xn(e,(function(){return Ds(Dn,Rn(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Ln=os((function(e){return Nn(e.length,e)}));const Bn=Ln(os((function(e){return!e})));const qn=os((function(e){return function(){return e}}));const Un=qn(void 0);const Jn=Ts(Un());const Vn=Bn(Jn);const Hn=as((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Ws(e),o=r(i,Ws(t));return void 0!==o&&o===i?e:t}));const zn=as((function(e,t){return Rn(yn(e),t)}));const Gn=os((function(e){return xn(un(Hn,0,zn("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));var Wn=function(e,t){switch(arguments.length){case 0:return Wn;case 1:return function t(r){return 0===arguments.length?t:vs(e,r)};default:return vs(e,t)}};const Kn=Wn;const Yn=xn(1,mn(Ps,Kn("GeneratorFunction")));const Xn=xn(1,mn(Ps,Kn("AsyncFunction")));const Qn=Gn([mn(Ps,Kn("Function")),Yn,Xn]);var Zn=cs((function(e,t,r){return r.replace(e,t)}));const ei=Zn;const ti=xn(1,mn(Ps,Kn("RegExp")));const ri=cs((function(e,t,r){return e(r)?t(r):r}));const si=xn(1,mn(Ps,Kn("String")));const ni=ri(si,ei(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var ii=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const oi=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),ii(r,"str"),ii(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 s=new RegExp(ti(e)?e:ni(e),"g");return ei(s,t,r)};var ai=xn(3,oi),ci=Sn(2,"replaceAll");const li=Qn(String.prototype.replaceAll)?ci:ai,ui=()=>ds(Ys(/^win/),["platform"],ns),pi=e=>{try{const t=new URL(e);return Cn(":",t.protocol)}catch{return}},hi=(mn(pi,Vn),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),di=e=>{if(ns.browser)return!1;const t=pi(e);return Jn(t)||"file"===t||/^[a-zA-Z]$/.test(t)},mi=e=>{const t=pi(e);return"http"===t||"https"===t},fi=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],s=gn(!1,"keepFileProtocol",t),n=gn(ui,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substring(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substring(8):i.substring(7),n()&&"/"===i[1]&&(i=`${i[0]}:${i.substring(1)}`),s?i=`file:///${i}`:(o=!1,i=n()?i:`/${i}`)),n()&&!o&&(i=li("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},yi=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},gi=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},vi=()=>{if(ns.browser)return gi(globalThis.location.href);const e=ns.cwd(),t=vn(e);return["/","\\"].includes(t)?e:e+(ui()?"\\":"/")},bi=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:s}=r;return e+t+s}return r.toString()},xi=e=>{if(di(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;ui()&&(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})(fi(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},wi=e=>di(e)?fi(e):decodeURI(e);function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r<t;r++)s[r]=e[r];return s}function Si(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function ji(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Oi(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 s,n,i=[],o=!0,a=!1;try{for(r=r.call(e);!(o=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw n}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ei(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ei(e,t)}(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 Ai(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var Pi=function(e){throw TypeError(e)},ki=function(e,t,r){return t.has(e)||Pi("Cannot "+r)},$i=function(e,t,r){return ki(e,t,"read from private field"),r?r.call(e):t.get(e)},Ti=function(e,t,r){return t.has(e)?Pi("Cannot add the same private member more than once"):ji(t,WeakSet)?t.add(e):t.set(e,r)},Ci=function(e,t,r,s){return ki(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r},Fi=function(e){return Object.prototype.toString.call(e)},Ii=function(e){return ArrayBuffer.isView(e)&&!ji(e,DataView)},Mi=Array.isArray,_i=Object.getOwnPropertyDescriptor,Ri=Object.prototype.propertyIsEnumerable,Di=Object.getOwnPropertySymbols,Ni=Object.prototype.hasOwnProperty;function Li(e){for(var t=Object.keys(e),r=Di(e),s=0;s<r.length;s++)Ri.call(e,r[s])&&t.push(r[s]);return t}function Bi(e,t){var r;return!(null===(r=_i(e,t))||void 0===r?void 0:r.writable)}function qi(e,t){if("object"===(void 0===e?"undefined":Ai(e))&&null!==e){var r;if(Mi(e))r=[];else if("[object Date]"===Fi(e))r=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===Fi(e)}(e))r=new RegExp(e);else if(function(e){return"[object Error]"===Fi(e)}(e))r={message:e.message};else if(function(e){return"[object Boolean]"===Fi(e)}(e)||function(e){return"[object Number]"===Fi(e)}(e)||function(e){return"[object String]"===Fi(e)}(e))r=Object(e);else{if(Ii(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var s=t.includeSymbols?Li:Object.keys,n=!0,i=!1,o=void 0;try{for(var a,c=s(e)[Symbol.iterator]();!(n=(a=c.next()).done);n=!0){var l=a.value;r[l]=e[l]}}catch(e){i=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}return e}var Ui,Ji,Vi={includeSymbols:!1,immutable:!1};function Hi(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vi,s=[],n=[],i=!0,o=r.includeSymbols?Li:Object.keys,a=!!r.immutable;return function e(c){var l=a?qi(c,r):c,u={},p=!0,h={node:l,node_:c,path:[].concat(s),parent:n[n.length-1],parents:n,key:s[s.length-1],isRoot:0===s.length,level:s.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){Mi(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(){i=!1},block:function(){p=!1}};if(!i)return h;function d(){if("object"===Ai(h.node)&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=o(h.node)),h.isLeaf=0===h.keys.length;for(var e=0;e<n.length;e++)if(n[e].node_===c){h.circular=n[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}d();var m=t.call(h,h.node);if(void 0!==m&&h.update&&h.update(m),u.before&&u.before.call(h,h.node),!p)return h;if("object"===Ai(h.node)&&null!==h.node&&!h.circular){var f;n.push(h),d();var y=!0,g=!1,v=void 0;try{for(var b,x=Object.entries(null!==(f=h.keys)&&void 0!==f?f:[])[Symbol.iterator]();!(y=(b=x.next()).done);y=!0){var w,E=Oi(b.value,2),S=E[0],j=E[1];s.push(j),u.pre&&u.pre.call(h,h.node[j],j);var O=e(h.node[j]);a&&Ni.call(h.node,j)&&!Bi(h.node,j)&&(h.node[j]=O.node),O.isLast=!!(null===(w=h.keys)||void 0===w?void 0:w.length)&&+S==h.keys.length-1,O.isFirst=0==+S,u.post&&u.post.call(h,O),s.pop()}}catch(e){g=!0,v=e}finally{try{y||null==x.return||x.return()}finally{if(g)throw v}}n.pop()}return u.after&&u.after.call(h,h.node),h}(e).node}var zi=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vi;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ti(this,Ui),Ti(this,Ji),Ci(this,Ui,t),Ci(this,Ji,r)}var t,r,s;return t=e,r=[{key:"get",value:function(e){for(var t=$i(this,Ui),r=0;t&&r<e.length;r++){var s=e[r];if(!Ni.call(t,s)||!$i(this,Ji).includeSymbols&&"symbol"===(void 0===s?"undefined":Ai(s)))return;t=t[s]}return t}},{key:"has",value:function(e){for(var t=$i(this,Ui),r=0;t&&r<e.length;r++){var s=e[r];if(!Ni.call(t,s)||!$i(this,Ji).includeSymbols&&"symbol"===(void 0===s?"undefined":Ai(s)))return!1;t=t[s]}return!0}},{key:"set",value:function(e,t){var r=$i(this,Ui),s=0;for(s=0;s<e.length-1;s++){var n=e[s];Ni.call(r,n)||(r[n]={}),r=r[n]}return r[e[s]]=t,t}},{key:"map",value:function(e){return Hi($i(this,Ui),e,{immutable:!0,includeSymbols:!!$i(this,Ji).includeSymbols})}},{key:"forEach",value:function(e){return Ci(this,Ui,Hi($i(this,Ui),e,$i(this,Ji))),$i(this,Ui)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,s=r?$i(this,Ui):t;return this.forEach((function(t){this.isRoot&&r||(s=e.call(this,s,t))})),s}},{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=$i(this,Ji);return Ii($i(this,Ui))?$i(this,Ui).slice():function s(n){for(var i=0;i<e.length;i++)if(e[i]===n)return t[i];if("object"===(void 0===n?"undefined":Ai(n))&&null!==n){var o=qi(n,r);e.push(n),t.push(o);var a=r.includeSymbols?Li:Object.keys,c=!0,l=!1,u=void 0;try{for(var p,h=a(n)[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var d=p.value;o[d]=s(n[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(),o}return n}($i(this,Ui))}}],r&&Si(t.prototype,r),s&&Si(t,s),e}();Ui=new WeakMap,Ji=new WeakMap;var Gi=function(e,t){return new zi(e,t)};Gi.get=function(e,t,r){return new zi(e,r).get(t)},Gi.set=function(e,t,r,s){return new zi(e,s).set(t,r)},Gi.has=function(e,t,r){return new zi(e,r).has(t)},Gi.map=function(e,t,r){return new zi(e,r).map(t)},Gi.forEach=function(e,t,r){return new zi(e,r).forEach(t)},Gi.reduce=function(e,t,r,s){return new zi(e,s).reduce(t,r)},Gi.paths=function(e,t){return new zi(e,t).paths()},Gi.nodes=function(e,t){return new zi(e,t).nodes()},Gi.clone=function(e,t){return new zi(e,t).clone()};var Wi=Gi;const Ki=["properties"],Yi=["properties"],Xi=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Qi=["schema/example","items/example"];function Zi(e){const t=e[e.length-1],r=e[e.length-2],s=e.join("/");return Ki.indexOf(t)>-1&&-1===Yi.indexOf(r)||Xi.indexOf(s)>-1||Qi.some((e=>s.indexOf(e)>-1))}function eo(e,t){const[r,s]=e.split("#"),n=t??"",i=r??"";let o;if(mi(n))o=bi(n,i);else{const e=bi(f,n),t=bi(e,i).replace(f,"");o=i.startsWith("/")?t:t.substring(1)}return s?`${o}#${s}`:o}const to=/^([a-z]+:\/\/|\/\/)/i;class ro extends ss{}const so={},no=new WeakMap,io=[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]],oo={key:"$ref",plugin:(e,t,r,s)=>{const n=s.getInstance(),i=r.slice(0,-1);if(Zi(i)||(e=>io.some((t=>t(e))))(i))return;const{baseDoc:o}=s.getContext(r);if("string"!=typeof e)return new ro("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=po(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?lo(c,o):null}catch(t){return uo(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,s){let n=no.get(s);n||(n={},no.set(s,n));const i=function(e){if(0===e.length)return"";return`/${e.map(vo).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=s.contextTree.get([]).baseDoc;if(t===c&&xo(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${vo(e)}`,n[l]&&n[l].some((e=>xo(e,o)||xo(o,e))))));if(u)return!0;return void(n[a]=(n[a]||[]).concat(o))}(l,u,i,s)&&!n.useCircularStructures){const t=eo(e,u);return e===t?null:Dr.replace(r,t)}if(null==u?(h=yo(l),p=s.get(h),void 0===p&&(p=new ro(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=ho(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw uo(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[Dr.remove(r),p];const d=eo(e,u),m=Dr.replace(i,p,{$$ref:d});if(u&&u!==o)return[m,Dr.context(i,{baseDoc:u})];try{if(!function(e,t){const r=[e];return t.path.reduce(((e,t)=>(r.push(e[t]),e[t])),e),s(t.value);function s(e){return Dr.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>s(e[t]))))}}(s.state,m)||n.useCircularStructures)return m}catch(e){return null}}},ao=Object.assign(oo,{docCache:so,absoluteify:lo,clearCache:function(e){void 0!==e?delete so[e]:Object.keys(so).forEach((e=>{delete so[e]}))},JSONRefError:ro,wrapError:uo,getDoc:mo,split:po,extractFromDoc:ho,fetchJSON:function(e){return fetch(e,{headers:{Accept:m},loadSpec:!0}).then((e=>e.text())).then((e=>Xt.load(e)))},extract:fo,jsonPointerToArray:yo,unescapeJsonPointerToken:go}),co=ao;function lo(e,t){if(!to.test(e)){if(!t)throw new ro(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return bi(t,e)}return e}function uo(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new ro(`Could not resolve reference: ${r}`,{...t,cause:e})}function po(e){return(e+"").split("#")}function ho(e,t){const r=so[e];if(r&&!Dr.isPromise(r))try{const e=fo(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return mo(e).then((e=>fo(t,e)))}function mo(e){const t=so[e];return t?Dr.isPromise(t)?t:Promise.resolve(t):(so[e]=ao.fetchJSON(e).then((t=>(so[e]=t,t))),so[e])}function fo(e,t){const r=yo(e);if(r.length<1)return t;const s=Dr.getIn(t,r);if(void 0===s)throw new ro(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return s}function yo(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(go)}function go(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function vo(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const bo=e=>!e||"/"===e||"#"===e;function xo(e,t){if(bo(t))return!0;const r=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==s}const wo={key:"allOf",plugin:(e,t,r,s,n)=>{if(n.meta&&n.meta.$$ref)return;const i=r.slice(0,-1);if(Zi(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=n.value;if(i.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.push(s.replace(i,{})),e.forEach(((e,t)=>{if(!s.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,c.push(e)}c.push(s.mergeDeep(i,e));const n=function(e,t,{specmap:r,getBaseUrlForNodePath:s=e=>r.getContext([...t,...e]).baseDoc,targetKeys:n=["$ref","$$ref"]}={}){const i=[];return Wi(e).forEach((function(){if(n.includes(this.key)&&"string"==typeof this.node){const e=this.path,n=t.concat(this.path),o=eo(this.node,s(e));i.push(r.replace(n,o))}})),i}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>s.getContext([...r,t,...e]).baseDoc,specmap:s});c.push(...n)})),a.example&&c.push(s.remove([].concat(i,"example"))),c.push(s.mergeDeep(i,a)),a.$$ref||c.push(s.remove([].concat(i,"$$ref"))),c}},Eo={key:"parameters",plugin:(e,t,r,s)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),n=r.slice(0,-1),i={...Dr.getIn(s.spec,n)};for(let n=0;n<e.length;n+=1){const o=e[n];try{t[n].default=s.parameterMacro(i,o)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return Dr.replace(r,t)}return Dr.replace(r,e)}},So={key:"properties",plugin:(e,t,r,s)=>{const n={...e};for(const t in e)try{n[t].default=s.modelPropertyMacro(n[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return Dr.replace(r,n)}};class jo{constructor(e){this.root=Oo(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Ao(this.root,t,null);const s=e[e.length-1],{children:n}=r;n[s]?Ao(n[s],t,r):n[s]=Oo(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,s=this.root;for(let n=0;n<e.length&&(r=e[n],t=s.children,t[r]);n+=1)s=t[r];return s&&s.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:s}=e;return!s[r]&&t&&(s[r]=Oo(null,e)),s[r]}),this.root)}}function Oo(e,t){return Ao({children:{}},e,t)}function Ao(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]=Ao(r,r.value,e)})),e}const Po=()=>{};class ko{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 jo,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),Dr,{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(Dr.isFunction),this.patches.push(Dr.add([],this.spec)),this.patches.push(Dr.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 s,n=null;return e[this.pluginProp]?(n=e,s=e[this.pluginProp]):Dr.isFunction(e)?s=e:Dr.isObject(e)&&(s=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(s,n){const i={};for(const[e,t]of s.filter(Dr.isAdditiveMutation).entries()){if(!(e<g))return;yield*o(t.value,t.path,t)}function*o(s,a,c){if(Dr.isObject(s)){const l=a.length-1,u=a[l],p=a.indexOf("properties"),h="properties"===u&&l===p,d=n.allowMetaPatches&&i[s.$$ref];for(const l of Object.keys(s)){const u=s[l],p=a.concat(l),m=Dr.isObject(u),f=s.$$ref;if(d||m&&(n.allowMetaPatches&&f&&t(r,p)&&(i[f]=!0),yield*o(u,p,c)),!h&&l===e.key){const s=t(r,a);r&&!s||(yield e.plugin(u,l,p,n,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(s,e.key,a,n))}}}(e)),Object.assign(s.bind(n),{pluginName:e.name||t,isGenerator:Dr.isGenerator(s)})}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){Dr.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!Dr.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),Dr.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(Dr.isContextPatch(e))return void this.setContext(e.path,e.value);Dr.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=Dr.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 Dr.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(Po,Po)))).then((()=>this.dispatch()))}return function(){e.currentPlugin=t;const s=e.getCurrentMutations(),n=e.mutations.length-1;try{if(t.isGenerator)for(const n of t(s,e.getLib()))r(n);else{r(t(s,e.getLib()))}}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:n})}return e.dispatch()}();function r(r){r&&(r=Dr.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const $o={refs:co,allOf:wo,parameters:Eo,properties:So};async function To(e){const{spec:t,mode:r,allowMetaPatches:s=!0,pathDiscriminator:n,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:c,skipNormalization:l=!1,useCircularStructures:u,strategies:p}=e,h=rr(e),d=sr(e),m=p.find((e=>e.match(t)));return async function(e){h&&($o.refs.docCache[h]=e);$o.refs.fetchJSON=tr(d,{requestInterceptor:a,responseInterceptor:c});const t=[$o.refs];"function"==typeof o&&t.push($o.parameters);"function"==typeof i&&t.push($o.properties);"strict"!==r&&t.push($o.allOf);const p=await(f={spec:e,context:{baseDoc:h},plugins:t,allowMetaPatches:s,pathDiscriminator:n,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new ko(f).dispatch());var f;l||(p.spec=m.normalize(p.spec));return p}(t)}const Co=as((function(e,t){return e&&t}));const Fo=as((function(e,t){return En(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Ln(Co)(e,t)}));const Io=Ts(null);const Mo=Bn(Io);function _o(e){return _o="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},_o(e)}const Ro=function(e){return"object"===_o(e)};const Do=xn(1,Fo(Mo,Ro));var No=mn(Ps,Kn("Object")),Lo=mn(Ws,Ts(Ws(Object))),Bo=ds(Fo(Qn,Lo),["constructor"]);const qo=xn(1,(function(e){if(!Do(e)||!No(e))return!1;var t=Object.getPrototypeOf(e);return!!Io(t)||Bo(t)})),Uo=e=>e.replace(/\W/gi,"_");function Jo(e,t,r="",{v2OperationIdCompatibilityMode:s}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?Uo(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()}${Uo(e)}`}(t,r,{v2OperationIdCompatibilityMode:s})}function Vo(e){const{spec:t}=e,{paths:r}=t,s={};if(!r||t.$$normalized)return e;for(const e in r){const n=r[e];if(null==n||!["object","function"].includes(typeof n))continue;const i=n.parameters;for(const r in n){const o=n[r];if(null==o||!["object","function"].includes(typeof o))continue;const a=Jo(o,e,r);if(a){s[a]?s[a].push(o):s[a]=[o];const e=s[a];if(e.length>1)e.forEach(((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${a}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||o.operationId,t.operationId=a}}if("parameters"!==r){const e=[],r={};for(const s in t)"produces"!==s&&"consumes"!==s&&"security"!==s||(r[s]=t[s],e.push(r));if(i&&(r.parameters=i,e.push(r)),e.length)for(const t of e)for(const e in t)if(Array.isArray(o[e])){if("parameters"===e)for(const r of t[e]){o[e].some((e=>!(!qo(e)&&!qo(r))&&(e===r||["name","$ref","$$ref"].some((t=>"string"==typeof e[t]&&"string"==typeof r[t]&&e[t]===r[t])))))||o[e].push(r)}}else o[e]=t[e]}}}return t.$$normalized=!0,e}const Ho={name:"generic",match:()=>!0,normalize(e){const{spec:t}=Vo({spec:e});return t},resolve:async e=>To(e)};const zo=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},Go=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Wo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Ko=e=>Go(e)||Wo(e),Yo={name:"openapi-2",match:e=>zo(e),normalize(e){const{spec:t}=Vo({spec:e});return t},resolve:async e=>async function(e){return To(e)}(e)};const Xo={name:"openapi-3-0",match:e=>Go(e),normalize(e){const{spec:t}=Vo({spec:e});return t},resolve:async e=>async function(e){return To(e)}(e)},Qo=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:s}=e,n=rr(e),i=sr(e),o=t||await tr(i,{requestInterceptor:r,responseInterceptor:s})(n),a={...e,spec:o};return e.strategies.find((e=>e.match(o))).resolve(a)})({...e,...t}),Zo=Qo({strategies:[Xo,Yo,Ho]}),ea=e=>async(t,r,s={})=>(async(e,t,r={})=>{const{returnEntireTree:s,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u},h=u.find((t=>t.match(e))).normalize(e),d=await Zo({spec:h,...p,allowMetaPatches:!0,skipNormalization:!Wo(e)});return!s&&Array.isArray(t)&&t.length&&(d.spec=t.reduce(((e,t)=>e?.[t]),d.spec)||null),d})(t,r,{...e,...s});ea({strategies:[Xo,Yo,Ho]});var ta=r(4035);function ra(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var sa=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=qs,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=ra(this.xf["@@transducer/step"](e,!1))),e},e}();function na(e){return function(t){return new sa(e,t)}}const ia=as(Ls(["all"],na,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));class oa extends ta.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 aa=oa;class ca extends ta.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const la=ca;class ua extends ta.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(Jn(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const pa=ua,ha=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],da=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,ma=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),fa=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ta.wE)&&t.classes.includes(e),ya=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,ga=e=>e({hasMethod:ha,hasBasicElementProps:da,primitiveEq:ma,isElementType:ya,hasClass:fa}),va=ga((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ta.Hg||e(r)&&t(void 0,r))),ba=ga((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ta.Om||e(r)&&t("string",r))),xa=ga((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ta.kT||e(r)&&t("number",r))),wa=ga((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ta.Os||e(r)&&t("null",r))),Ea=ga((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ta.bd||e(r)&&t("boolean",r))),Sa=ga((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ta.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),ja=ga((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ta.wE&&!(s instanceof ta.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),Oa=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ta.Pr||e(s)&&t("member",s)&&r(void 0,s))),Aa=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ta.Ft||e(s)&&t("link",s)&&r(void 0,s))),Pa=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ta.sI||e(s)&&t("ref",s)&&r(void 0,s))),ka=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aa||e(s)&&t("annotation",s)&&r("array",s))),$a=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof la||e(s)&&t("comment",s)&&r("string",s))),Ta=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pa||e(s)&&t("parseResult",s)&&r("array",s))),Ca=e=>ya("object",e)||ya("array",e)||ya("boolean",e)||ya("number",e)||ya("string",e)||ya("null",e)||ya("member",e),Fa=e=>!!va(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)),Ia=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!ja(r)&&ia(Tn(r.toValue()),e)},Ma=(e,t)=>0===e.length||ia(Tn(t.classes.toValue()),e);const _a=function(){return!0};const Ra=function(){return!1},Da=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},Na={},La=e=>null==e?void 0:e.type,Ba=e=>"string"==typeof La(e),qa=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Ua=(e,{visitFnGetter:t=Da,nodeTypeGetter:r=La,breakSymbol:s=Na,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,p,h,d,m){let f=l,y=!1;const g={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(f),!1);if("function"==typeof a){const t=a.call(e[l],f,u,p,h,d,g);if("function"==typeof(null==t?void 0:t.then))throw new ss("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=f;else if(t===s)c[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;f=t,y=!0}}}}return y?f:void 0},leave(n,o,l,u,p,h){let d=n;const m={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(d),!0);if("function"==typeof a){const t=a.call(e[n],d,o,l,u,p,m);if("function"==typeof(null==t?void 0:t.then))throw new ss("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===d&&(c[n]=a)}}};Ua[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Da,nodeTypeGetter:r=La,breakSymbol:s=Na,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,p,h,d,m){let f=l,y=!1;const g={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(f),!1);if("function"==typeof a){const t=await a.call(e[l],f,u,p,h,d,g);if(t===i)c[l]=f;else if(t===s)c[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;f=t,y=!0}}}}return y?f:void 0},async leave(n,o,l,u,p,h){let d=n;const m={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(d),!0);if("function"==typeof a){const t=await a.call(e[n],d,o,l,u,p,m);if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===d&&(c[n]=a)}}};const Ja=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Na,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Da,nodeTypeGetter:c=La,nodePredicate:l=Ba,nodeCloneFn:u=qa,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let m,f,y=Array.isArray(e),g=[e],v=-1,b=[],x=e;const w=[],E=[];do{v+=1;const e=v===g.length;let r;const O=e&&0!==b.length;if(e){if(r=0===E.length?void 0:w.pop(),x=f,f=E.pop(),O)if(y){x=x.slice();let e=0;for(const[t,r]of b){const s=t-e;r===i?(x.splice(s,1),e+=1):x[s]=r}}else{x=u(x);for(const[e,t]of b)x[e]=t}v=m.index,g=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=y?v:g[v],x=f[r],x===i||void 0===x)continue;w.push(r)}let A;if(!Array.isArray(x)){var S;if(!l(x))throw new ss(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&E.includes(x)){"function"==typeof h&&h(x,r,f,w,E),w.pop();continue}const i=a(t,c(x),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,x,r,f,w,E):f&&(f[r]=t),e||(x=t)}};A=i.call(t,x,r,f,w,E,n)}if("function"==typeof(null===(S=A)||void 0===S?void 0:S.then))throw new ss("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(A===n)break;if(A===o){if(!e){w.pop();continue}}else if(void 0!==A&&(b.push([r,A]),!e)){if(!l(A)){w.pop();continue}x=A}}var j;if(void 0===A&&O&&b.push([r,x]),!e)m={inArray:y,index:v,keys:g,edits:b,prev:m},y=Array.isArray(x),g=y?x:null!==(j=d[c(x)])&&void 0!==j?j:[],v=-1,b=[],f!==i&&void 0!==f&&E.push(f),f=x}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};Ja[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Na,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Da,nodeTypeGetter:c=La,nodePredicate:l=Ba,nodeCloneFn:u=qa,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let m,f,y=Array.isArray(e),g=[e],v=-1,b=[],x=e;const w=[],E=[];do{v+=1;const e=v===g.length;let r;const j=e&&0!==b.length;if(e){if(r=0===E.length?void 0:w.pop(),x=f,f=E.pop(),j)if(y){x=x.slice();let e=0;for(const[t,r]of b){const s=t-e;r===i?(x.splice(s,1),e+=1):x[s]=r}}else{x=u(x);for(const[e,t]of b)x[e]=t}v=m.index,g=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=y?v:g[v],x=f[r],x===i||void 0===x)continue;w.push(r)}let O;if(!Array.isArray(x)){if(!l(x))throw new ss(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&E.includes(x)){"function"==typeof h&&h(x,r,f,w,E),w.pop();continue}const i=a(t,c(x),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,x,r,f,w,E):f&&(f[r]=t),e||(x=t)}};O=await i.call(t,x,r,f,w,E,n)}if(O===n)break;if(O===o){if(!e){w.pop();continue}}else if(void 0!==O&&(b.push([r,O]),!e)){if(!l(O)){w.pop();continue}x=O}}var S;if(void 0===O&&j&&b.push([r,x]),!e)m={inArray:y,index:v,keys:g,edits:b,prev:m},y=Array.isArray(x),g=y?x:null!==(S=d[c(x)])&&void 0!==S?S:[],v=-1,b=[],f!==i&&void 0!==f&&E.push(f),f=x}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};const Va=class extends ss{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Ha=class extends Va{};const za=class extends Va{};const Ga=as((function(e,t){return Ds((function(r,s){return r[s]=e(t[s],s,t),r}),{},As(t))}));const Wa=os((function(e){return null==e}));var Ka=as((function(e,t){if(0===e.length||Wa(t))return!1;for(var r=t,s=0;s<e.length;){if(Wa(r)||!gs(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const Ya=Ka;var Xa=as((function(e,t){return Ya([e],t)}));const Qa=Xa;const Za=cs((function(e,t,r){return e(yn(t,r))}));const ec=as(hs);var tc=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=qs,e.prototype["@@transducer/result"]=Us,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 rc(e){return function(t){return new tc(e,t)}}const sc=as(Ls(["dropWhile"],rc,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return hn(r,1/0,t)})));const nc=wn((function(e,t){return mn(jn(""),sc(Tn(e)),$n(""))(t)})),ic=(e,t)=>{const r=fn(e,t);return Ga((e=>{if(qo(e)&&Qa("$ref",e)&&Za(si,"$ref",e)){const t=ec(["$ref"],e),s=nc("#/",t);return ec(s.split("/"),r)}return qo(e)?ic(e,r):e}),e)},oc=(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),ac=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ta.KeyValuePair){const{key:t,value:n}=e,i=va(t)?ac(t,s):t,o=va(n)?ac(n,s):n,a=new ta.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof ta.ot){const t=e=>ac(e,s),n=[...e].map(t),i=new ta.ot(n);return r.set(e,i),i}if(e instanceof ta.G6){const t=e=>ac(e,s),n=[...e].map(t),i=new ta.G6(n);return r.set(e,i),i}if(va(e)){const t=uc(e);if(r.set(e,t),e.content)if(va(e.content))t.content=ac(e.content,s);else if(e.content instanceof ta.KeyValuePair)t.content=ac(e.content,s);else if(Array.isArray(e.content)){const r=e=>ac(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Ha("Value provided to cloneDeep function couldn't be cloned",{value:e})};ac.safe=e=>{try{return ac(e)}catch{return e}};const cc=e=>{const{key:t,value:r}=e;return new ta.KeyValuePair(t,r)},lc=e=>{const t=new e.constructor;if(t.element=e.element,Fa(e)&&oc(t,e),e.meta.length>0&&(t._meta=ac(e.meta)),e.attributes.length>0&&(t._attributes=ac(e.attributes)),va(e.content)){const r=e.content;t.content=lc(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ta.KeyValuePair?t.content=cc(e.content):t.content=e.content;return t},uc=e=>{if(e instanceof ta.KeyValuePair)return cc(e);if(e instanceof ta.ot)return(e=>{const t=[...e];return new ta.ot(t)})(e);if(e instanceof ta.G6)return(e=>{const t=[...e];return new ta.G6(t)})(e);if(va(e))return lc(e);throw new za("Value provided to cloneShallow function couldn't be cloned",{value:e})};uc.safe=e=>{try{return uc(e)}catch{return e}};const pc=e=>Sa(e)?"ObjectElement":ja(e)?"ArrayElement":Oa(e)?"MemberElement":ba(e)?"StringElement":Ea(e)?"BooleanElement":xa(e)?"NumberElement":wa(e)?"NullElement":Aa(e)?"LinkElement":Pa(e)?"RefElement":void 0,hc=e=>va(e)?uc(e):qa(e),dc=mn(pc,si),mc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class fc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Ra,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 yc=(e,t,{keyMap:r=mc,...s}={})=>Ja(e,t,{keyMap:r,nodeTypeGetter:pc,nodePredicate:dc,nodeCloneFn:hc,...s});yc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=mc,...s}={})=>Ja[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:pc,nodePredicate:dc,nodeCloneFn:hc,...s});const gc=e=>"string"==typeof(null==e?void 0:e.type)?e.type:pc(e),vc={EphemeralObject:["content"],EphemeralArray:["content"],...mc},bc=(e,t,{keyMap:r=vc,...s}={})=>yc(e,t,{keyMap:r,nodeTypeGetter:gc,nodePredicate:_a,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});bc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=vc,...r}={})=>yc[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:gc,nodePredicate:_a,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const xc=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}};const wc=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 Ec{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new wc(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 xc(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 s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ba(e.href)?e.href.toValue():""}}const Sc=e=>va(e)?ba(e)||xa(e)||Ea(e)||wa(e)?e.toValue():bc(e,new Ec):e;const jc=cs((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})gs(s,t)&&(n[s]=gs(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)gs(s,r)&&!gs(s,n)&&(n[s]=r[s]);return n}));const Oc=cs((function e(t,r,s){return jc((function(r,s,n){return Bs(s)&&Bs(n)?e(t,s,n):t(r,s,n)}),r,s)}));const Ac=as((function(e,t){return Oc((function(e,t,r){return r}),e,t)}));const Pc=hn(0,-1);const kc=as((function(e,t){return e.apply(this,t)}));const $c=Bn(Qn);var Tc=os((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():Ns(e)?[]:us(e)?"":Bs(e)?{}:xs(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 Cc=Tc;const Fc=os((function(e){return null!=e&&Ts(e,Cc(e))}));const Ic=xn(1,Qn(Array.isArray)?Array.isArray:mn(Ps,Kn("Array")));const Mc=Fo(Ic,Fc);var _c=xn(3,(function(e,t,r){var s=ec(e,r),n=ec(Pc(e),r);if(!$c(s)&&!Mc(e)){var i=sn(s,n);return kc(i,t)}}));const Rc=_c;class Dc extends ta.g${constructor(){super(),this.register("annotation",aa),this.register("comment",la),this.register("parseResult",pa)}}const Nc=new Dc,Lc=e=>{const t=new Dc;return qo(e)&&t.use(e),t},Bc=Nc,qc=()=>({predicates:{...i},namespace:Bc}),Uc={toolboxCreator:qc,visitorOptions:{nodeTypeGetter:pc,exposeEdits:!0}},Jc=(e,t,r={})=>{if(0===t.length)return e;const s=Ac(Uc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Ua(a.map(gn({},"visitor")),{...i});a.forEach(Rc(["pre"],[]));const l=yc(e,c,i);return a.forEach(Rc(["post"],[])),l};Jc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Ac(Uc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Ua[Symbol.for("nodejs.util.promisify.custom")],l=yc[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(gn({},"visitor")),{...i});await Promise.allSettled(a.map(Rc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(a.map(Rc(["post"],[]))),p};const Vc=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return va(e)&&(e.meta.length>0&&(s.meta=ac(e.meta)),e.attributes.length>0&&(s.attributes=ac(e.attributes))),Jc(s,r,{toolboxCreator:qc,visitorOptions:{nodeTypeGetter:pc}})},Hc=e=>(t,r={})=>Vc(t,{...r,Type:e});ta.Sh.refract=Hc(ta.Sh),ta.wE.refract=Hc(ta.wE),ta.Om.refract=Hc(ta.Om),ta.bd.refract=Hc(ta.bd),ta.Os.refract=Hc(ta.Os),ta.kT.refract=Hc(ta.kT),ta.Ft.refract=Hc(ta.Ft),ta.sI.refract=Hc(ta.sI),aa.refract=Hc(aa),la.refract=Hc(la),pa.refract=Hc(pa);const zc=(e,t=new WeakMap)=>(Oa(e)?(t.set(e.key,e),zc(e.key,t),t.set(e.value,e),zc(e.value,t)):e.children.forEach((r=>{t.set(r,e),zc(r,t)})),t);const Gc=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:zc(this.element);const s=this.edges.get(e);return Jn(s)?void 0:(Sa(s)?((e,t,r)=>{const s=r.get(e);Sa(s)&&(s.content=s.map(((n,i,o)=>o===e?(r.delete(e),r.set(t,s),t):o)))})(e,t,this.edges):ja(s)?((e,t,r)=>{const s=r.get(e);ja(s)&&(s.content=s.map((n=>n===e?(r.delete(e),r.set(t,s),t):n)))})(e,t,this.edges):Oa(s)&&((e,t,r)=>{const s=r.get(e);Oa(s)&&(s.key===e&&(s.key=t,r.delete(e),r.set(t,s)),s.value===e&&(s.value=t,r.delete(e),r.set(t,s)))})(e,t,this.edges),this.element)}},Wc=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))},Kc=function(){const e=el,t=Zc,r=this,s="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let n,i,o,a,c,l,u,p=0,h=0,d=0,m=0,f=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(g,v,x,w)=>{const E=`${s}parse(): `;p=0,h=0,d=0,m=0,f=0,n=void 0,i=void 0,o=void 0,a=void 0,y.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(x),n=g.rules,i=g.udts;const S=v.toLowerCase();let j;for(const e in n)if(n.hasOwnProperty(e)&&S===n[e].lower){j=n[e].index;break}if(void 0===j)throw new Error(`${E}start rule name '${startRule}' not recognized`);(()=>{const e=`${s}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<n.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const s in r.callbacks)if(r.callbacks.hasOwnProperty(s)){if(t=a.indexOf(s.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${s}' not a rule or udt name`);if(o=r.callbacks[s]?r.callbacks[s]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${s}] must be function reference or falsy)`);t<n.length?c[t]=o:l[t-n.length]=o}})(),r.trace&&r.trace.init(n,i,a),r.stats&&r.stats.init(n,i),r.ast&&r.ast.init(n,i,a),u=w,o=[{type:e.RNM,index:j}],b(0,0),o=void 0;let O=!1;switch(y.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:O=!1;break;case e.EMPTY:case e.MATCH:O=y.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:O,state:y.state,stateName:e.idName(y.state),length:a.length,matched:y.phraseLength,maxMatched:f,maxTreeDepth:d,nodeHits:m}};const g=(t,r,n,i)=>{if(r.phraseLength>n){let e=`${s}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${s}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(`${s}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},v=(t,c)=>{let h,d,m;const f=o[t],g=i[f.index];y.UdtIndex=g.index,p||(m=r.ast&&r.ast.udtDefined(f.index),m&&(d=n.length+f.index,h=r.ast.getLength(),r.ast.down(d,g.name)));const v=a.length-c;l[f.index](y,a,c,u),((t,r,n)=>{if(r.phraseLength>n){let e=`${s}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${s}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(g,y,v),p||m&&(y.state===e.NOMATCH?r.ast.setLength(h):r.ast.up(d,g.name,c,y.phraseLength))},b=(t,i)=>{const l=`${s}opExecute(): `,x=o[t];switch(m+=1,h>d&&(d=h),h+=1,y.refresh(),r.trace&&r.trace.down(x,i),x.type){case e.ALT:((t,r)=>{const s=o[t];for(let t=0;t<s.children.length&&(b(s.children[t],r),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,s)=>{let n,i,a,c;const l=o[t];r.ast&&(i=r.ast.getLength()),n=!0,a=s,c=0;for(let t=0;t<l.children.length;t+=1){if(b(l.children[t],a),y.state===e.NOMATCH){n=!1;break}a+=y.phraseLength,c+=y.phraseLength}n?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,s)=>{let n,i,c,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=s,c=0,l=0,r.ast&&(n=r.ast.getLength());!(i>=a.length)&&(b(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,c+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(n))})(t,i);break;case e.RNM:((t,s)=>{let i,l,h;const d=o[t],m=n[d.index],f=c[m.index];if(p||(l=r.ast&&r.ast.ruleDefined(d.index),l&&(i=r.ast.getLength(),r.ast.down(d.index,n[d.index].name))),f){const t=a.length-s;f(y,a,s,u),g(m,y,t,!0),y.state===e.ACTIVE&&(h=o,o=m.opcodes,b(0,s),o=h,f(y,a,s,u),g(m,y,t,!1))}else h=o,o=m.opcodes,b(0,s,y),o=h;p||l&&(y.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(d.index,m.name,s,y.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const s=o[t];y.state=e.NOMATCH,r<a.length&&s.min<=a[r]&&a[r]<=s.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const s=o[t],n=s.string.length;if(y.state=e.NOMATCH,r+n<=a.length){for(let e=0;e<n;e+=1)if(a[r+e]!==s.string[e])return;y.state=e.MATCH,y.phraseLength=n}})(t,i);break;case e.TLS:((t,r)=>{let s;const n=o[t];y.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(r+i<=a.length){for(let e=0;e<i;e+=1)if(s=a[r+e],s>=65&&s<=90&&(s+=32),s!==n.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:v(t,i);break;case e.AND:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+y.phraseLength>f&&(f=i+y.phraseLength),r.stats&&r.stats.collect(x,y),r.trace&&r.trace.up(x,y.state,i,y.phraseLength),h-=1}},Yc=function(){const e=el,t=Zc,r=this;let s,n,i,o=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,o=0,s=e,n=t,i=u;const h=[];for(p=0;p<s.length;p+=1)h.push(s[p].lower);for(p=0;p<n.length;p+=1)h.push(n[p].lower);for(o=s.length+n.length,p=0;p<o;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[s.length+e],r.down=(t,r)=>{const s=l.length;return c.push(s),l.push({name:r,thisIndex:s,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),s},r.up=(t,r,s,n)=>{const i=l.length,o=c.pop();return l.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:s,phraseLength:n,stack:c.length}),l[o].thatIndex=i,l[o].phraseIndex=s,l[o].phraseLength=n,i},r.translate=t=>{let r,s;for(let n=0;n<l.length;n+=1)s=l[n],r=a[s.callbackIndex],r&&(s.state===e.SEM_PRE?r(e.SEM_PRE,i,s.phraseIndex,s.phraseLength,t):r&&r(e.SEM_POST,i,s.phraseIndex,s.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="",s=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${l.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=u(s+2),r+=t.charsToString(i),r+="\n",l.forEach((n=>{n.state===e.SEM_PRE?(s+=1,r+=u(s),r+=`<node name="${n.name}" index="${n.phraseIndex}" length="${n.phraseLength}">\n`,r+=u(s+2),r+=t.charsToString(i,n.phraseIndex,n.phraseLength),r+="\n"):(r+=u(s),r+=`</node>\x3c!-- name="${n.name}" --\x3e\n`,s-=1)})),r+="</root>\n",r}},Xc=function(){const e=el,t=Zc,r="parser.js: Trace(): ";let s,n,i,o="",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)=>{n=e,i=t,s=r};const u=s=>{let o;switch(s.type){case e.ALT:o="ALT";break;case e.CAT:o="CAT";break;case e.REP:o=s.max===1/0?`REP(${s.min},inf)`:`REP(${s.min},${s.max})`;break;case e.RNM:o=`RNM(${n[s.index].name})`;break;case e.TRG:o=`TRG(${s.min},${s.max})`;break;case e.TBS:o=s.string.length>6?`TBS(${t.charsToString(s.string,0,3)}...)`:`TBS(${t.charsToString(s.string,0,6)})`;break;case e.TLS:o=s.string.length>6?`TLS(${t.charsToString(s.string,0,3)}...)`:`TLS(${t.charsToString(s.string,0,6)})`;break;case e.UDT:o=`UDT(${i[s.index].name})`;break;case e.AND:o="AND";break;case e.NOT:o="NOT";break;default:throw new Error(`${r}Trace: opName: unrecognized opcode`)}return o};c.down=(e,r)=>{const n=l(a),i=Math.min(100,s.length-r);let c=t.charsToString(s,r,i);i<s.length-r&&(c+="..."),c=`${n}|-|[${u(e)}]${c}\n`,o+=c,a+=1},c.up=(n,i,c,p)=>{const h=`${r}trace.up: `;a-=1;const d=l(a);let m,f,y;switch(i){case e.EMPTY:y="|E|",f="''";break;case e.MATCH:y="|M|",m=Math.min(100,p),f=m<p?`'${t.charsToString(s,c,m)}...'`:`'${t.charsToString(s,c,m)}'`;break;case e.NOMATCH:y="|N|",f="";break;default:throw new Error(`${h} unrecognized state`)}f=`${d}${y}[${u(n)}]${f}\n`,o+=f},c.displayTrace=()=>o},Qc=function(){const e=el;let t,r,s;const n=[],i=[],o=[];this.init=(e,s)=>{t=e,r=s,h()},this.collect=(t,r)=>{d(s,r.state,r.phraseLength),d(n[t.type],r.state,r.phraseLength),t.type===e.RNM&&d(i[t.index],r.state,r.phraseLength),t.type===e.UDT&&d(o[t.index],r.state,r.phraseLength)},this.displayStats=()=>{let t="";const r={match:0,empty:0,nomatch:0,total:0},s=(e,t,s,n,i)=>{r.match+=t,r.empty+=s,r.nomatch+=n,r.total+=i;return`${e} | ${a(t)} | ${a(s)} | ${a(n)} | ${a(i)} |\n`};return t+=" OPERATOR STATS\n",t+=" | MATCH | EMPTY | NOMATCH | TOTAL |\n",t+=s(" ALT",n[e.ALT].match,n[e.ALT].empty,n[e.ALT].nomatch,n[e.ALT].total),t+=s(" CAT",n[e.CAT].match,n[e.CAT].empty,n[e.CAT].nomatch,n[e.CAT].total),t+=s(" REP",n[e.REP].match,n[e.REP].empty,n[e.REP].nomatch,n[e.REP].total),t+=s(" RNM",n[e.RNM].match,n[e.RNM].empty,n[e.RNM].nomatch,n[e.RNM].total),t+=s(" TRG",n[e.TRG].match,n[e.TRG].empty,n[e.TRG].nomatch,n[e.TRG].total),t+=s(" TBS",n[e.TBS].match,n[e.TBS].empty,n[e.TBS].nomatch,n[e.TBS].total),t+=s(" TLS",n[e.TLS].match,n[e.TLS].empty,n[e.TLS].nomatch,n[e.TLS].total),t+=s(" UDT",n[e.UDT].match,n[e.UDT].empty,n[e.UDT].nomatch,n[e.UDT].total),t+=s(" AND",n[e.AND].match,n[e.AND].empty,n[e.AND].nomatch,n[e.AND].total),t+=s(" NOT",n[e.NOT].match,n[e.NOT].empty,n[e.NOT].nomatch,n[e.NOT].total),t+=s("TOTAL",r.match,r.empty,r.nomatch,r.total),t},this.displayHits=e=>{let t="";const r=(e,t,r,n,i)=>{s.match+=e,s.empty+=t,s.nomatch+=r,s.total+=n;return`| ${a(e)} | ${a(t)} | ${a(r)} | ${a(n)} | ${i}\n`};"string"==typeof e&&"a"===e.toLowerCase()[0]?(i.sort(c),o.sort(c),t+=" RULES/UDTS ALPHABETICALLY\n"):"string"==typeof e&&"i"===e.toLowerCase()[0]?(i.sort(u),o.sort(u),t+=" RULES/UDTS BY INDEX\n"):(i.sort(l),o.sort(l),t+=" RULES/UDTS BY HIT COUNT\n"),t+="| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";for(let e=0;e<i.length;e+=1){let s=i[e];s.total&&(t+=r(s.match,s.empty,s.nomatch,s.total,s.name))}for(let e=0;e<o.length;e+=1){let s=o[e];s.total&&(t+=r(s.match,s.empty,s.nomatch,s.total,s.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=()=>{n.length=0,s=new p,n[e.ALT]=new p,n[e.CAT]=new p,n[e.REP]=new p,n[e.RNM]=new p,n[e.TRG]=new p,n[e.TBS]=new p,n[e.TLS]=new p,n[e.UDT]=new p,n[e.AND]=new p,n[e.NOT]=new p,i.length=0;for(let e=0;e<t.length;e+=1)i.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){o.length=0;for(let e=0;e<r.length;e+=1)o.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}`)}}},Zc={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let s=e;for(;!(void 0===t||t<0);){if(void 0===r){s=e.slice(t);break}if(r<=0)return"";s=e.slice(t,t+r);break}return String.fromCodePoint(...s)}},el={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 el.ALT:return"ALT";case el.CAT:return"CAT";case el.REP:return"REP";case el.RNM:return"RNM";case el.TRG:return"TRG";case el.TBS:return"TBS";case el.TLS:return"TLS";case el.UDT:return"UDT";case el.AND:return"AND";case el.NOT:return"NOT";case el.ACTIVE:return"ACTIVE";case el.EMPTY:return"EMPTY";case el.MATCH:return"MATCH";case el.NOMATCH:return"NOMATCH";case el.SEM_PRE:return"SEM_PRE";case el.SEM_POST:return"SEM_POST";case el.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function tl(){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 rl 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 sl=rl;const nl=class extends sl{},il=e=>(t,r,s,n,i)=>{if("object"!=typeof i||null===i||Array.isArray(i))throw new nl("parser's user data must be an object");if(t===el.SEM_PRE){const t={type:e,text:Zc.charsToString(r,s,n),start:s,length:n,children:[]};if(i.stack.length>0){i.stack[i.stack.length-1].children.push(t)}else i.root=t;i.stack.push(t)}t===el.SEM_POST&&i.stack.pop()};const ol=class extends Yc{constructor(){super(),this.callbacks["json-pointer"]=il("json-pointer"),this.callbacks["reference-token"]=il("reference-token"),this.callbacks.slash=il("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}},al=e=>{if("string"!=typeof e)throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")};const cl=class extends ol{getTree(){const{root:e}=super.getTree();return e.children.filter((({type:e})=>"reference-token"===e)).map((({text:e})=>al(e)))}};const ll=class extends Array{toString(){return this.map((e=>`"${String(e)}"`)).join(", ")}};const ul=class extends Xc{inferExpectations(){const e=this.displayTrace().split("\n"),t=new Set;let r=-1;for(let s=0;s<e.length;s++){const n=e[s];if(n.includes("M|")){const e=n.match(/]'(.*)'$/);e&&e[1]&&(r=s)}if(s>r){const e=n.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new ll(...t)}},pl=new tl,hl=(e,{translator:t=new cl,stats:r=!1,trace:s=!1}={})=>{if("string"!=typeof e)throw new TypeError("JSON Pointer must be a string");try{const n=new Kc;t&&(n.ast=t),r&&(n.stats=new Qc),s&&(n.trace=new ul);const i=n.parse(pl,"json-pointer",e);return{result:i,tree:i.success&&t?n.ast.getTree():void 0,stats:n.stats,trace:n.trace}}catch(t){throw new nl("Unexpected error during JSON Pointer parsing",{cause:t,jsonPointer:e})}};new tl,new Kc,new tl,new Kc;const dl=new tl,ml=new Kc,fl=e=>{if("string"!=typeof e)return!1;try{return ml.parse(dl,"array-index",e).success}catch{return!1}},yl=new tl,gl=new Kc,vl=e=>{if("string"!=typeof e)return!1;try{return gl.parse(yl,"array-dash",e).success}catch{return!1}},bl=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")};const xl=class extends sl{},wl=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 bl(String(e))})).join("/")}`}catch(t){throw new xl("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const El=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:s=!0,reason:n}){const i=this.#t.length;this.#t.push(e);const o={referenceToken:e,referenceTokenPosition:i,input:t,inputType:this.#r.isObject(t)?"object":this.#r.isArray(t)?"array":"unrecognized",output:r,success:s};n&&(o.reason=n),this.#e.steps.push(o),s||(this.#e.failed=!0,this.#e.failedAt=i,this.#e.message=n)}};const Sl=class{name="";isArray(e){throw new sl("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new sl("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new sl("Realm.sizeOf(node) must be implemented in a subclass")}has(e,t){throw new sl("Realm.has(node) must be implemented in a subclass")}evaluate(e,t){throw new sl("Realm.evaluate(node) must be implemented in a subclass")}};const jl=class extends sl{};const Ol=class extends jl{};const Al=class extends Sl{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),s=r>>>0;if(r!==s)throw new Ol(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return s<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]}};const Pl=class extends jl{};const kl=class extends jl{},$l=(e,t,{strictArrays:r=!0,strictObjects:s=!0,realm:n=new Al,trace:i=!0}={})=>{const{result:o,tree:a,trace:c}=hl(t,{trace:!!i}),l="object"==typeof i&&null!==i?new El(i,{jsonPointer:t,referenceTokens:a,strictArrays:r,strictObjects:s,realm:n,value:e}):null;try{let i;if(!o.success){let r=`Invalid JSON Pointer: "${t}". Syntax error at position ${o.maxMatched}`;throw r+=c?`, expected ${c.inferExpectations()}`:"",new jl(r,{jsonPointer:t,currentValue:e,realm:n.name})}return a.reduce(((e,o,c)=>{if(n.isArray(e)){if(vl(o)){if(r)throw new Ol(`Invalid array index "-" at position ${c} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});return i=n.evaluate(e,String(n.sizeOf(e))),null==l||l.step({referenceToken:o,input:e,output:i}),i}if(!fl(o))throw new Ol(`Invalid array index "${o}" at position ${c} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});const s=Number(o);if(!Number.isSafeInteger(s))throw new Ol(`Invalid array index "${o}" at position ${c} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});if(!n.has(e,o)&&r)throw new Ol(`Invalid array index "${o}" at position ${c} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});return i=n.evaluate(e,o),null==l||l.step({referenceToken:o,input:e,output:i}),i}if(n.isObject(e)){if(!n.has(e,o)&&s)throw new kl(`Invalid object key "${o}" at position ${c} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});return i=n.evaluate(e,o),null==l||l.step({referenceToken:o,input:e,output:i}),i}throw new Pl(`Invalid reference token "${o}" at position ${c} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name})}),e)}catch(e){if(null==l||l.step({referenceToken:e.referenceToken,input:e.currentValue,success:!1,reason:e.message}),e instanceof jl)throw e;throw new jl("Unexpected error during JSON Pointer evaluation",{cause:e,jsonPointer:t,referenceTokens:a})}};const Tl=class extends Sl{name="apidom";isArray(e){return ja(e)}isObject(e){return Sa(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,t){if(this.isArray(e)){const r=Number(t),s=r>>>0;if(r!==s)throw new Ol(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return s<this.sizeOf(e)}if(this.isObject(e)){const r=e.keys(),s=new Set(r);if(r.length!==s.size)throw new kl(`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)}},Cl=(e,t,r={})=>$l(e,t,{...r,realm:new Tl});class Fl extends ta.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Il=Fl;class Ml extends ta.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 _l=Ml;class Rl extends ta.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 Dl=Rl;class Nl extends ta.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 Ll=Nl;class Bl extends ta.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 ql=Bl;class Ul extends ta.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 Jl=Ul;class Vl extends ta.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 Hl=Vl;class zl extends ta.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ta.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ta.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(zl.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Gl=zl;class Wl extends ta.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 Kl=Wl;class Yl extends ta.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 Xl=Yl;class Ql extends ta.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 ba(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):ba(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 Zl=Ql;class eu extends ta.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 tu=eu;class ru extends ta.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 su=ru;class nu extends ta.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 iu=nu;class ou extends ta.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const au=ou;class cu extends ta.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 lu=cu;class uu extends ta.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 ta.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 pu=uu;class hu extends ta.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 ta.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ta.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(hu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const du=hu;class mu extends ta.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 fu=mu;class yu extends ta.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const gu=yu;class vu extends ta.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 bu=vu;class xu extends ta.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 ta.bd(!1)}set required(e){this.set("required",e)}}const wu=xu;class Eu extends ta.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 Su=Eu;class ju extends ta.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 Ou=ju;const Au=class extends rs{};class Pu extends ta.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 ku=Pu;class $u extends ta.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 Tu=$u;class Cu extends ta.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 Fu=Cu;class Iu extends ta.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 Mu=Iu,_u=e=>{const t=e.meta.length>0?ac(e.meta):void 0,r=e.attributes.length>0?ac(e.attributes):void 0;return new e.constructor(void 0,t,r)},Ru=(e,t)=>t.clone&&t.isMergeableElement(e)?Nu(_u(e),e,t):e,Du={clone:!0,isMergeableElement:e=>Sa(e)||ja(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>Ru(e,r))),objectElementMerge:(e,t,r)=>{const s=Sa(e)?_u(e):_u(t);return Sa(e)&&e.forEach(((e,t,n)=>{const i=uc(n);i.value=Ru(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=Sc(n);let a;if(Sa(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=uc(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Nu;const r=t.customMerge(e,t);return"function"==typeof r?r:Nu})(n,r)(s,t,r)}else a=uc(i),a.value=Ru(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Nu=(e,t,r)=>{var s,n,i;const o={...Du,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:Du.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:Du.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Du.objectElementMerge;const a=ja(t);if(!(a===ja(e)))return Ru(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>ac(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>ac(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};Nu.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ta.Sh:e.reduce(((e,r)=>Nu(e,r,t)),_u(e[0]))};const Lu=Nu;const Bu=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Lu(t.meta,e.meta)),Fa(e)&&oc(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Lu(t.attributes,e.attributes))}};const qu=class extends Bu{enter(e){return this.element=ac(e),Na}},Uu=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},Ju=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Ju(r,[...t,r])},Vu=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Ju(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),o=Ju(n);for(let t of e){let e=Ju(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(Uu(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},Hu=e=>e.filter(((t,r)=>e.indexOf(t)==r)),zu=(e,t)=>{const r=t.map((e=>Ju(e)));let s=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}s++}},Gu=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(zu(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==zu(s,e)||void 0!==t[s],get:(r,s)=>(zu(s,e)||t)[s],set(t,r,s){const n=zu(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),Wu=null,Ku="copy",Yu="copy",Xu="deep",Qu=new WeakMap,Zu=e=>Qu.get(e),ep=(e,t)=>{var r,s;const n=Hu([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=Hu([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},tp=(e,t)=>{var r,s,n,i;return{property:ep(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:ep(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},rp=(e,t)=>{var r,s,n,i,o,a;return{class:Hu([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:tp(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:tp(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},sp=new Map,np=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...Ju(e.prototype).map((e=>e.constructor)),...null!==(t=Zu(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map((e=>sp.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>rp(e,t)))},ip=e=>{let t=sp.get(e);return t||(t={},sp.set(e,t)),t};function op(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=Wu;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};n.push(r)}function o(...t){for(const r of e)Uu(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Yu?Vu(n,o):(a=n,c=o,Gu([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Ku?Vu(e,null,["prototype"]):Gu(e,Function.prototype));let l=o;if("none"!==Xu){const n="deep"===Xu?np(...e):((...e)=>{const t=e.map((e=>ip(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>rp(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}ap(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},l),ap(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},l.prototype)}var u,p;return u=l,p=e,Qu.set(u,p),l}const ap=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const cp=os((function(e){return xn(un(Hn,0,zn("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 lp=os((function(e){return!Fc(e)}));const up=as((function(e,t){return e||t}));var pp=Bn(xn(1,Fo(Mo,as((function(e,t){return En(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Ln(up)(e,t)}))(Ro,Qn))));const hp=cp([si,pp,lp]);const dp=as((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r}));const mp=class extends Bu{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return dp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ec(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ds(Qn,["visitors",...e],this.specObj)?ec(["visitors",...e],this.specObj):ec(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof qu&&(null==s?void 0:s.constructor)===qu?ac(t):(yc(t,s,r),s.element)}};const fp=class extends mp{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,s,n)=>{if(ba(s)&&r.includes(Sc(s))&&!this.ignoredFields.includes(Sc(s))){const r=this.toRefractedElement([...t,"fixedFields",Sc(s)],e),i=new ta.Pr(ac(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Sc(s))||this.element.content.push(ac(n))})),this.copyMetaAndAttributes(e,this.element),Na}};const yp=class{parent;constructor({parent:e}){this.parent=e}},gp=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ku||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),vp=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tu||e(s)&&t("JSONReference",s)&&r("object",s))),bp=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fu||e(s)&&t("media",s)&&r("object",s))),xp=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mu||e(s)&&t("linkDescription",s)&&r("object",s)));class wp extends(op(fp,yp,qu)){constructor(e){super(e),this.element=new ku,this.specPath=qn(["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,fp.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Jn(this.parent)&&!ba(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(gp(this.parent)&&!ba(e.get("$schema"))){const e=fn(Sc(this.parent.meta.get("inheritedDialectIdentifier")),Sc(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?ac(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ta.wE,s=Sc(e.get(t));hp(s)&&r.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const Ep=wp,Sp=e=>Sa(e)&&e.hasKey("$ref");class jp extends(op(mp,yp,qu)){ObjectElement(e){const t=Sp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Na}ArrayElement(e){return this.element=new ta.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Sp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Na}}const Op=jp;const Ap=class extends qu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Pp=class extends mp{specPath;ignoredFields;fieldPatternPredicate=Ra;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(Sc(t))&&this.fieldPatternPredicate(Sc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new ta.Pr(ac(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Sc(t))||this.element.content.push(ac(r))})),this.copyMetaAndAttributes(e,this.element),Na}};const kp=class extends Pp{constructor(e){super(e),this.fieldPatternPredicate=hp}};class $p extends(op(kp,yp,qu)){constructor(e){super(e),this.element=new ta.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Sp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Tp=$p;class Cp extends(op(kp,yp,qu)){constructor(e){super(e),this.element=new ta.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Sp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Fp=Cp;class Ip extends(op(kp,yp,qu)){constructor(e){super(e),this.element=new ta.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Sp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Mp=Ip;const _p=class extends qu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Rp=class extends qu{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}};class Dp extends(op(mp,yp,qu)){constructor(e){super(e),this.element=new ta.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Sp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Na}}const Np=Dp;class Lp extends(op(mp,yp,qu)){constructor(e){super(e),this.element=new ta.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Sp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Na}}const Bp=Lp;class qp extends(op(mp,yp,qu)){constructor(e){super(e),this.element=new ta.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Sp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Na}}const Up=qp;class Jp extends(op(kp,yp,qu)){constructor(e){super(e),this.element=new ta.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Sp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Vp=Jp;class Hp extends(op(mp,yp,qu)){constructor(e){super(e),this.element=new ta.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),Na}}const zp=Hp;class Gp extends(op(fp,qu)){constructor(e){super(e),this.element=new Tu,this.specPath=qn(["document","objects","JSONReference"])}ObjectElement(e){const t=fp.prototype.ObjectElement.call(this,e);return ba(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Wp=Gp;const Kp=class extends qu{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Yp=cs((function(e,t,r){return xn(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Xp=os((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Qp=as((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Zp=Qp;const eh=os((function(e){return ps(0,e)}));const th=os(ra);const rh=Bn(Wa);const sh=Fo(Ic,lp);function nh(e){return function(e){if(Array.isArray(e))return ih(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ih(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)?ih(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ih(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var oh=mn(Zp(Xp((function(e,t){return e.length>t.length}))),eh,yn("length")),ah=wn((function(e,t,r){var s=r.apply(void 0,nh(e));return rh(s)?th(s):t}));const ch=Yp(sh,(function(e){var t=oh(e);return xn(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return un(ah(r),void 0,e)}))}),Un);const lh=class extends mp{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Yp(e,qn(t),Un))),r=ch(t)(e);return this.element=this.toRefractedElement(r,e),Na}};const uh=class extends lh{constructor(e){super(e),this.alternator=[{predicate:Sp,specPath:["document","objects","JSONReference"]},{predicate:_a,specPath:["document","objects","JSONSchema"]}]}};class ph extends(op(fp,qu)){constructor(e){super(e),this.element=new Fu,this.specPath=qn(["document","objects","Media"])}}const hh=ph;class dh extends(op(fp,qu)){constructor(e){super(e),this.element=new Mu,this.specPath=qn(["document","objects","LinkDescription"])}}const mh=dh,fh={visitors:{value:qu,JSONSchemaOrJSONReferenceVisitor:uh,document:{objects:{JSONSchema:{$visitor:Ep,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:uh,items:Op,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Ap,properties:Tp,additionalProperties:uh,patternProperties:Fp,dependencies:Mp,enum:_p,type:Rp,allOf:Np,anyOf:Bp,oneOf:Up,not:uh,definitions:Vp,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:zp,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Wp,fixedFields:{$ref:Kp}},Media:{$visitor:hh,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:mh,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:uh,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:uh}}}}}},yh=e=>{if(va(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},gh={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...mc},vh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ku),t.register("jSONReference",Tu),t.register("media",Fu),t.register("linkDescription",Mu),t}},bh=()=>{const e=Lc(vh);return{predicates:{...o,isStringElement:ba},namespace:e}},xh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=fh}={})=>{const n=(0,ta.e)(e),i=ic(s),o=new(ec(t,i))({specObj:i});return yc(n,o),Jc(o.element,r,{toolboxCreator:bh,visitorOptions:{keyMap:gh,nodeTypeGetter:yh}})},wh=e=>(t,r={})=>xh(t,{specPath:e,...r});ku.refract=wh(["visitors","document","objects","JSONSchema","$visitor"]),Tu.refract=wh(["visitors","document","objects","JSONReference","$visitor"]),Fu.refract=wh(["visitors","document","objects","Media","$visitor"]),Mu.refract=wh(["visitors","document","objects","LinkDescription","$visitor"]);const Eh=class extends ku{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Au("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Au("idProp setter in Schema class is not not supported.")}get $schema(){throw new Au("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Au("$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 Au("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Au("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Au("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Au("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 Au("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Au("definitions setter in Schema class is not not supported.")}get base(){throw new Au("base getter in Schema class is not not supported.")}set base(e){throw new Au("base setter in Schema class is not not supported.")}get links(){throw new Au("links getter in Schema class is not not supported.")}set links(e){throw new Au("links setter in Schema class is not not supported.")}get media(){throw new Au("media getter in Schema class is not not supported.")}set media(e){throw new Au("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 Sh extends ta.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const jh=Sh;class Oh extends ta.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 Ah=Oh;class Ph extends ta.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 kh=Ph;class $h extends ta.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 Th=$h;class Ch extends ta.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 Fh=Ch;class Ih extends ta.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 Mh=Ih;const _h=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Lu(t.meta,e.meta)),Fa(e)&&oc(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Lu(t.attributes,e.attributes))}};const Rh=class extends _h{enter(e){return this.element=ac(e),Na}};const Dh=class extends _h{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:s,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=s,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return dp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ec(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ds(Qn,["visitors",...e],this.specObj)?ec(["visitors",...e],this.specObj):ec(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof Rh&&(null==s?void 0:s.constructor)===Rh?ac(t):(yc(t,s,r),s.element)}};var Nh=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=qs,e.prototype["@@transducer/result"]=Us,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?ra(r):r},e}();function Lh(e){return function(t){return new Nh(e,t)}}const Bh=as(Ls(["take"],Lh,(function(e,t){return hn(0,e<0?1/0:e,t)})));const qh=as((function(e,t){return Ts(Bh(e.length,t),e)})),Uh=e=>Sa(e)&&e.hasKey("$ref"),Jh=Sa,Vh=Sa,Hh=e=>ba(e.key)&&qh("x-",Sc(e.key));const zh=class extends Dh{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Hh;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(ba(s)&&r.includes(Sc(s))&&!this.ignoredFields.includes(Sc(s))){const r=this.toRefractedElement([...t,"fixedFields",Sc(s)],e),i=new ta.Pr(ac(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(Sc(s))||this.element.content.push(ac(n))})),this.copyMetaAndAttributes(e,this.element),Na}};class Gh extends(op(zh,Rh)){constructor(e){super(e),this.element=new lu,this.specPath=qn(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return zh.prototype.ObjectElement.call(this,e)}}const Wh=Gh;class Kh extends(op(Dh,Rh)){StringElement(e){const t=new au(Sc(e));return this.copyMetaAndAttributes(e,t),this.element=t,Na}}const Yh=Kh;const Xh=class extends Dh{MemberElement(e){return this.element=ac(e),this.element.classes.push("specification-extension"),Na}};class Qh extends(op(zh,Rh)){constructor(e){super(e),this.element=new Kl,this.specPath=qn(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Zh=Qh;const ed=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class td extends(op(zh,Rh)){constructor(e){super(e),this.element=new Dl,this.specPath=qn(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const rd=td;class sd extends(op(zh,Rh)){constructor(e){super(e),this.element=new Xl,this.specPath=qn(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const nd=sd;class id extends(op(zh,Rh)){constructor(e){super(e),this.element=new Zl,this.specPath=qn(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return(ba(this.element.operationId)||ba(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const od=id;const ad=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const cd=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const ld=class extends Dh{specPath;ignoredFields;fieldPatternPredicate=Ra;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Hh;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}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(Sc(t))&&this.fieldPatternPredicate(Sc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new ta.Pr(ac(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Sc(t))||this.element.content.push(ac(r))})),this.copyMetaAndAttributes(e,this.element),Na}};const ud=class extends ld{constructor(e){super(e),this.fieldPatternPredicate=hp}};class pd extends ta.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(pd.primaryClass)}}const hd=pd;class dd extends(op(ud,Rh)){constructor(e){super(e),this.element=new hd,this.specPath=qn(["value"])}}const md=dd;class fd extends(op(zh,Rh)){constructor(e){super(e),this.element=new kh,this.specPath=qn(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const yd=fd;const gd=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class vd extends ta.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(vd.primaryClass)}}const bd=vd;class xd extends(op(Dh,Rh)){constructor(e){super(e),this.element=new bd}ArrayElement(e){return e.forEach((e=>{const t=Jh(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Na}}const wd=xd;class Ed extends(op(zh,Rh)){constructor(e){super(e),this.element=new Th,this.specPath=qn(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Sd=Ed;class jd extends ta.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(jd.primaryClass)}}const Od=jd;class Ad extends(op(ud,Rh)){constructor(e){super(e),this.element=new Od,this.specPath=qn(["document","objects","ServerVariable"])}}const Pd=Ad;class kd extends(op(zh,Rh)){constructor(e){super(e),this.element=new tu,this.specPath=qn(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const $d=kd;const Td=class extends Dh{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Yp(e,qn(t),Un))),r=ch(t)(e);return this.element=this.toRefractedElement(r,e),Na}},Cd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Il||e(s)&&t("callback",s)&&r("object",s))),Fd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _l||e(s)&&t("components",s)&&r("object",s))),Id=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Dl||e(s)&&t("contact",s)&&r("object",s))),Md=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jl||e(s)&&t("example",s)&&r("object",s))),_d=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hl||e(s)&&t("externalDocumentation",s)&&r("object",s))),Rd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gl||e(s)&&t("header",s)&&r("object",s))),Dd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kl||e(s)&&t("info",s)&&r("object",s))),Nd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xl||e(s)&&t("license",s)&&r("object",s))),Ld=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zl||e(s)&&t("link",s)&&r("object",s))),Bd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof au||e(s)&&t("openapi",s)&&r("string",s))),qd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof lu||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),Ud=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pu||e(s)&&t("operation",s)&&r("object",s))),Jd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof du||e(s)&&t("parameter",s)&&r("object",s))),Vd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fu||e(s)&&t("pathItem",s)&&r("object",s))),Hd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gu||e(s)&&t("paths",s)&&r("object",s))),zd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bu||e(s)&&t("reference",s)&&r("object",s))),Gd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wu||e(s)&&t("requestBody",s)&&r("object",s))),Wd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Su||e(s)&&t("response",s)&&r("object",s))),Kd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ou||e(s)&&t("responses",s)&&r("object",s))),Yd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Eh||e(s)&&t("schema",s)&&r("object",s))),Xd=e=>Ea(e)&&e.classes.includes("boolean-json-schema"),Qd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jh||e(s)&&t("securityRequirement",s)&&r("object",s))),Zd=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ah||e(s)&&t("securityScheme",s)&&r("object",s))),em=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kh||e(s)&&t("server",s)&&r("object",s))),tm=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Th||e(s)&&t("serverVariable",s)&&r("object",s))),rm=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tu||e(s)&&t("mediaType",s)&&r("object",s))),sm=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof bd||e(n)&&t("array",n)&&r("array",n)&&s("servers",n))),nm=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ll||e(s)&&t("discriminator",s)&&r("object",s)));class im extends(op(Td,Rh)){constructor(e){super(e),this.alternator=[{predicate:Uh,specPath:["document","objects","Reference"]},{predicate:_a,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Td.prototype.enter.call(this,e);return zd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const om=im;class am extends(op(ud,Rh)){constructor(e){super(e),this.element=new ta.Sh,this.element.classes.push("examples"),this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const cm=am;class lm extends ta.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(lm.primaryClass),this.classes.push("examples")}}const um=lm;const pm=class extends cm{constructor(e){super(e),this.element=new um}};class hm extends ta.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(hm.primaryClass)}}const dm=hm;class mm extends(op(ud,Rh)){constructor(e){super(e),this.element=new dm,this.specPath=qn(["document","objects","Encoding"])}}const fm=mm;class ym extends(op(ud,Rh)){constructor(e){super(e),this.element=new jh,this.specPath=qn(["value"])}}const gm=ym;class vm extends ta.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(vm.primaryClass)}}const bm=vm;class xm extends(op(Dh,Rh)){constructor(e){super(e),this.element=new bm}ArrayElement(e){return e.forEach((e=>{if(Sa(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(ac(e))})),this.copyMetaAndAttributes(e,this.element),Na}}const wm=xm;class Em extends(op(zh,Rh)){constructor(e){super(e),this.element=new _l,this.specPath=qn(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Sm=Em;class jm extends(op(zh,Rh)){constructor(e){super(e),this.element=new Fh,this.specPath=qn(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Om=jm;class Am extends(op(zh,Rh)){constructor(e){super(e),this.element=new bu,this.specPath=qn(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return ba(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Pm=Am;const km=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class $m extends(op(zh,Rh)){constructor(e){super(e),this.element=new du,this.specPath=qn(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return Sa(this.element.contentProp)&&this.element.contentProp.filter(rm).forEach(((e,t)=>{e.setMetaProperty("media-type",Sc(t))})),t}}const Tm=$m;class Cm extends(op(Td,Rh)){constructor(e){super(e),this.alternator=[{predicate:Uh,specPath:["document","objects","Reference"]},{predicate:_a,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Td.prototype.enter.call(this,e);return zd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Fm=Cm;class Im extends(op(zh,Rh)){constructor(e){super(e),this.element=new Gl,this.specPath=qn(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Mm=Im;class _m extends(op(Td,Rh)){constructor(e){super(e),this.alternator=[{predicate:Uh,specPath:["document","objects","Reference"]},{predicate:_a,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Td.prototype.enter.call(this,e);return zd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Rm=_m;class Dm extends ta.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Dm.primaryClass),this.classes.push("examples")}}const Nm=Dm;const Lm=class extends cm{constructor(e){super(e),this.element=new Nm}};class Bm extends(op(ud,Rh)){constructor(e){super(e),this.element=new ta.Sh,this.element.classes.push("content"),this.specPath=qn(["document","objects","MediaType"])}}const qm=Bm;class Um extends ta.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(Um.primaryClass),this.classes.push("content")}}const Jm=Um;const Vm=class extends qm{constructor(e){super(e),this.element=new Jm}};class Hm extends(op(zh,Rh)){constructor(e){super(e),this.element=new Eh,this.specPath=qn(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const zm=Hm,Gm=fh.visitors.document.objects.JSONSchema.fixedFields.allOf;const Wm=class extends Gm{ArrayElement(e){const t=Gm.prototype.ArrayElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Km=fh.visitors.document.objects.JSONSchema.fixedFields.anyOf;const Ym=class extends Km{ArrayElement(e){const t=Km.prototype.ArrayElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Xm=fh.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Qm=class extends Xm{ArrayElement(e){const t=Xm.prototype.ArrayElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Zm=fh.visitors.document.objects.JSONSchema.fixedFields.items;const ef=class extends Zm{ObjectElement(e){const t=Zm.prototype.ObjectElement.call(this,e);return zd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},tf=fh.visitors.document.objects.JSONSchema.fixedFields.properties;const rf=class extends tf{ObjectElement(e){const t=tf.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},sf=fh.visitors.document.objects.JSONSchema.fixedFields.type;const nf=class extends sf{ArrayElement(e){return this.enter(e)}},of=fh.visitors.JSONSchemaOrJSONReferenceVisitor;const af=class extends of{ObjectElement(e){const t=of.prototype.enter.call(this,e);return zd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class cf extends(op(zh,Rh)){constructor(e){super(e),this.element=new Ll,this.specPath=qn(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const lf=cf;class uf extends ta.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(uf.primaryClass)}}const pf=uf;class hf extends(op(ud,Rh)){constructor(e){super(e),this.element=new pf,this.specPath=qn(["value"])}}const df=hf;class mf extends(op(zh,Rh)){constructor(e){super(e),this.element=new Mh,this.specPath=qn(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const ff=mf;class yf extends ta.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(yf.primaryClass),this.classes.push("examples")}}const gf=yf;const vf=class extends cm{constructor(e){super(e),this.element=new gf}};class bf extends ta.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(bf.primaryClass),this.classes.push("content")}}const xf=bf;const wf=class extends qm{constructor(e){super(e),this.element=new xf}};class Ef extends ta.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Ef.primaryClass)}}const Sf=Ef;class jf extends(op(ud,Rh)){constructor(e){super(e),this.element=new Sf,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Of=jf;class Af extends ta.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(Af.primaryClass)}}const Pf=Af;class kf extends(op(ud,Rh)){constructor(e){super(e),this.element=new Pf,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Wd).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Sc(t))})),t}}const $f=kf;class Tf extends ta.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Tf.primaryClass),this.classes.push("parameters")}}const Cf=Tf;class Ff extends(op(ud,Rh)){constructor(e){super(e),this.element=new Cf,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const If=Ff;class Mf extends ta.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Mf.primaryClass),this.classes.push("examples")}}const _f=Mf;class Rf extends(op(ud,Rh)){constructor(e){super(e),this.element=new _f,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Df=Rf;class Nf extends ta.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(Nf.primaryClass)}}const Lf=Nf;class Bf extends(op(ud,Rh)){constructor(e){super(e),this.element=new Lf,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const qf=Bf;class Uf extends ta.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Uf.primaryClass)}}const Jf=Uf;class Vf extends(op(ud,Rh)){constructor(e){super(e),this.element=new Jf,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Rd).forEach(((e,t)=>{e.setMetaProperty("header-name",Sc(t))})),t}}const Hf=Vf;class zf extends ta.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(zf.primaryClass)}}const Gf=zf;class Wf extends(op(ud,Rh)){constructor(e){super(e),this.element=new Gf,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Kf=Wf;class Yf extends ta.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Yf.primaryClass)}}const Xf=Yf;class Qf extends(op(ud,Rh)){constructor(e){super(e),this.element=new Xf,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Zf=Qf;class ey extends ta.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(ey.primaryClass)}}const ty=ey;class ry extends(op(ud,Rh)){constructor(e){super(e),this.element=new ty,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const sy=ry;class ny extends(op(zh,Rh)){constructor(e){super(e),this.element=new Jl,this.specPath=qn(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return ba(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const iy=ny;const oy=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class ay extends(op(zh,Rh)){constructor(e){super(e),this.element=new Hl,this.specPath=qn(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const cy=ay;class ly extends(op(zh,Rh)){constructor(e){super(e),this.element=new ql,this.specPath=qn(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return Sa(this.element.headers)&&this.element.headers.filter(Rd).forEach(((e,t)=>{e.setMetaProperty("header-name",Sc(t))})),t}}const uy=ly;class py extends ta.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(py.primaryClass)}}const hy=py;class dy extends(op(ud,Rh)){constructor(e){super(e),this.element=new hy,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Rd(e))return;const r=Sc(t);e.setMetaProperty("headerName",r)})),t}}const my=dy;class fy extends(op(ld,Rh)){constructor(e){super(e),this.element=new gu,this.specPath=qn(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=_a}ObjectElement(e){const t=ld.prototype.ObjectElement.call(this,e);return this.element.filter(Vd).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",ac(t))})),t}}const yy=fy;class gy extends(op(zh,Rh)){constructor(e){super(e),this.element=new wu,this.specPath=qn(["document","objects","RequestBody"])}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return Sa(this.element.contentProp)&&this.element.contentProp.filter(rm).forEach(((e,t)=>{e.setMetaProperty("media-type",Sc(t))})),t}}const vy=gy;class by extends ta.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(by.primaryClass),this.classes.push("content")}}const xy=by;const wy=class extends qm{constructor(e){super(e),this.element=new xy}};class Ey extends(op(ld,Rh)){constructor(e){super(e),this.element=new Il,this.specPath=qn(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(Vd).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Sc(t))})),t}}const Sy=Ey;class jy extends(op(zh,Rh)){constructor(e){super(e),this.element=new Su,this.specPath=qn(["document","objects","Response"])}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return Sa(this.element.contentProp)&&this.element.contentProp.filter(rm).forEach(((e,t)=>{e.setMetaProperty("media-type",Sc(t))})),Sa(this.element.headers)&&this.element.headers.filter(Rd).forEach(((e,t)=>{e.setMetaProperty("header-name",Sc(t))})),t}}const Oy=jy;class Ay extends ta.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Ay.primaryClass)}}const Py=Ay;class ky extends(op(ud,Rh)){constructor(e){super(e),this.element=new Py,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Rd(e))return;const r=Sc(t);e.setMetaProperty("header-name",r)})),t}}const $y=ky;class Ty extends ta.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(Ty.primaryClass),this.classes.push("content")}}const Cy=Ty;const Fy=class extends qm{constructor(e){super(e),this.element=new Cy}};class Iy extends ta.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(Iy.primaryClass)}}const My=Iy;class _y extends(op(ud,Rh)){constructor(e){super(e),this.element=new My,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Ry=_y;function Dy(e){return"[object Number]"===Object.prototype.toString.call(e)}var Ny=as((function(e,t){if(!Dy(e)||!Dy(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),s=e<0?t+Math.abs(e):t-e,n=0;n<s;)r[n]=n+e,n+=1;return r}));const Ly=Ny;function By(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var i=e?1:0;return!!r._items[n][i]||(t&&(r._items[n][i]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!Cs(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!Cs(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const qy=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!By(e,!0,this)},e.prototype.has=function(e){return By(e,!1,this)},e}();var Uy=as((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new qy,a=0;a<i;a+=1)o.add(t[a]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));const Jy=Uy;class Vy extends(op(zh,ld)){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)],zh.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,ld.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Na}}const Hy=Vy;class zy extends(op(Hy,Rh)){constructor(e){super(e),this.element=new Ou,this.specPathFixedFields=qn(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Ly(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=Hy.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Wd).forEach(((e,t)=>{const r=ac(t);this.fieldPatternPredicate(Sc(r))&&e.setMetaProperty("http-status-code",r)})),t}}const Gy=zy;class Wy extends(op(Td,Rh)){constructor(e){super(e),this.alternator=[{predicate:Uh,specPath:["document","objects","Reference"]},{predicate:_a,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Td.prototype.enter.call(this,e);return zd(this.element)?this.element.setMetaProperty("referenced-element","response"):Wd(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Ky=Wy;class Yy extends(op(zh,Rh)){constructor(e){super(e),this.element=new pu,this.specPath=qn(["document","objects","Operation"])}}const Xy=Yy;class Qy extends ta.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Qy.primaryClass)}}const Zy=Qy;const eg=class extends Rh{constructor(e){super(e),this.element=new Zy}ArrayElement(e){return this.element=this.element.concat(ac(e)),Na}};class tg extends ta.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(tg.primaryClass),this.classes.push("parameters")}}const rg=tg;class sg extends(op(Dh,Rh)){constructor(e){super(e),this.element=new ta.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=Uh(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);zd(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Na}}const ng=sg;const ig=class extends ng{constructor(e){super(e),this.element=new rg}};const og=class extends Td{constructor(e){super(e),this.alternator=[{predicate:Uh,specPath:["document","objects","Reference"]},{predicate:_a,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Td.prototype.enter.call(this,e);return zd(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class ag extends ta.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(ag.primaryClass)}}const cg=ag;class lg extends(op(ud,Rh)){specPath;constructor(e){super(e),this.element=new cg,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const ug=lg;class pg extends ta.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(pg.primaryClass),this.classes.push("security")}}const hg=pg;class dg extends(op(Dh,Rh)){constructor(e){super(e),this.element=new hg}ArrayElement(e){return e.forEach((e=>{const t=Sa(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Na}}const mg=dg;class fg extends ta.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(fg.primaryClass),this.classes.push("servers")}}const yg=fg;const gg=class extends wd{constructor(e){super(e),this.element=new yg}};class vg extends(op(zh,Rh)){constructor(e){super(e),this.element=new fu,this.specPath=qn(["document","objects","PathItem"])}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach(((e,t)=>{const r=ac(t);r.content=Sc(r).toUpperCase(),e.setMetaProperty("http-method",r)})),ba(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const bg=vg;const xg=class extends Rh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class wg extends ta.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(wg.primaryClass),this.classes.push("servers")}}const Eg=wg;const Sg=class extends wd{constructor(e){super(e),this.element=new Eg}};class jg extends ta.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(jg.primaryClass),this.classes.push("parameters")}}const Og=jg;const Ag=class extends ng{constructor(e){super(e),this.element=new Og}};class Pg extends(op(zh,Rh)){constructor(e){super(e),this.element=new Ah,this.specPath=qn(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const kg=Pg;class $g extends(op(zh,Rh)){constructor(e){super(e),this.element=new iu,this.specPath=qn(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Tg=$g;class Cg extends(op(zh,Rh)){constructor(e){super(e),this.element=new su,this.specPath=qn(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Fg=Cg;class Ig extends ta.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(Ig.primaryClass)}}const Mg=Ig;class _g extends(op(ud,Rh)){constructor(e){super(e),this.element=new Mg,this.specPath=qn(["value"])}}const Rg=_g;class Dg extends ta.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(Dg.primaryClass)}}const Ng=Dg;class Lg extends(op(Dh,Rh)){constructor(e){super(e),this.element=new Ng}ArrayElement(e){return e.forEach((e=>{const t=Vh(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Na}}const Bg=Lg,{fixedFields:qg}=fh.visitors.document.objects.JSONSchema,Ug={visitors:{value:Rh,document:{objects:{OpenApi:{$visitor:Wh,fixedFields:{openapi:Yh,info:{$ref:"#/visitors/document/objects/Info"},servers:wd,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:wm,tags:Bg,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Zh,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:ed}},Contact:{$visitor:rd,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:nd,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:yd,fixedFields:{url:gd,description:{$ref:"#/visitors/value"},variables:Pd}},ServerVariable:{$visitor:Sd,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Sm,fixedFields:{schemas:Of,responses:$f,parameters:If,examples:Df,requestBodies:qf,headers:Hf,securitySchemes:Kf,links:Zf,callbacks:sy}},Paths:{$visitor:yy},PathItem:{$visitor:bg,fixedFields:{$ref:xg,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:Sg,parameters:Ag}},Operation:{$visitor:Xy,fixedFields:{tags:eg,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:ig,requestBody:og,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:ug,deprecated:{$ref:"#/visitors/value"},security:mg,servers:gg}},ExternalDocumentation:{$visitor:cy,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:Fm,example:{$ref:"#/visitors/value"},examples:vf,content:wf}},RequestBody:{$visitor:vy,fixedFields:{description:{$ref:"#/visitors/value"},content:wy,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:$d,fixedFields:{schema:om,example:{$ref:"#/visitors/value"},examples:pm,encoding:fm}},Encoding:{$visitor:uy,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:my,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Gy,fixedFields:{default:Ky}},Response:{$visitor:Oy,fixedFields:{description:{$ref:"#/visitors/value"},headers:$y,content:Fy,links:Ry}},Callback:{$visitor:Sy},Example:{$visitor:iy,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:oy}},Link:{$visitor:od,fixedFields:{operationRef:ad,operationId:cd,parameters:md,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:Rm,example:{$ref:"#/visitors/value"},examples:Lm,content:Vm}},Tag:{$visitor:Om,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Pm,fixedFields:{$ref:km}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:zm,fixedFields:{title:qg.title,multipleOf:qg.multipleOf,maximum:qg.maximum,exclusiveMaximum:qg.exclusiveMaximum,minimum:qg.minimum,exclusiveMinimum:qg.exclusiveMinimum,maxLength:qg.maxLength,minLength:qg.minLength,pattern:qg.pattern,maxItems:qg.maxItems,minItems:qg.minItems,uniqueItems:qg.uniqueItems,maxProperties:qg.maxProperties,minProperties:qg.minProperties,required:qg.required,enum:qg.enum,type:nf,allOf:Wm,anyOf:Ym,oneOf:Qm,not:af,items:ef,properties:rf,additionalProperties:af,description:qg.description,format:qg.format,default:qg.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:lf,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:df}},XML:{$visitor:ff,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:kg,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:Tg,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:Fg,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Rg}},SecurityRequirement:{$visitor:gm}},extension:{$visitor:Xh}}}},Jg=e=>{if(va(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Vg={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"],...mc},Hg={namespace:e=>{const{base:t}=e;return t.register("callback",Il),t.register("components",_l),t.register("contact",Dl),t.register("discriminator",Ll),t.register("encoding",ql),t.register("example",Jl),t.register("externalDocumentation",Hl),t.register("header",Gl),t.register("info",Kl),t.register("license",Xl),t.register("link",Zl),t.register("mediaType",tu),t.register("oAuthFlow",su),t.register("oAuthFlows",iu),t.register("openapi",au),t.register("openApi3_0",lu),t.register("operation",pu),t.register("parameter",du),t.register("pathItem",fu),t.register("paths",gu),t.register("reference",bu),t.register("requestBody",wu),t.register("response",Su),t.register("responses",Ou),t.register("schema",Eh),t.register("securityRequirement",jh),t.register("securityScheme",Ah),t.register("server",kh),t.register("serverVariable",Th),t.register("tag",Fh),t.register("xml",Mh),t}},zg=()=>{const e=Lc(Hg);return{predicates:{...a,isElement:va,isStringElement:ba,isArrayElement:ja,isObjectElement:Sa,isMemberElement:Oa,includesClasses:Ma,hasElementSourceMap:Fa},namespace:e}},Gg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,ta.e)(e),n=ic(Ug),i=new(ec(t,n))({specObj:n});return yc(s,i),Jc(i.element,r,{toolboxCreator:zg,visitorOptions:{keyMap:Vg,nodeTypeGetter:Jg}})},Wg=e=>(t,r={})=>Gg(t,{specPath:e,...r});Il.refract=Wg(["visitors","document","objects","Callback","$visitor"]),_l.refract=Wg(["visitors","document","objects","Components","$visitor"]),Dl.refract=Wg(["visitors","document","objects","Contact","$visitor"]),Jl.refract=Wg(["visitors","document","objects","Example","$visitor"]),Ll.refract=Wg(["visitors","document","objects","Discriminator","$visitor"]),ql.refract=Wg(["visitors","document","objects","Encoding","$visitor"]),Hl.refract=Wg(["visitors","document","objects","ExternalDocumentation","$visitor"]),Gl.refract=Wg(["visitors","document","objects","Header","$visitor"]),Kl.refract=Wg(["visitors","document","objects","Info","$visitor"]),Xl.refract=Wg(["visitors","document","objects","License","$visitor"]),Zl.refract=Wg(["visitors","document","objects","Link","$visitor"]),tu.refract=Wg(["visitors","document","objects","MediaType","$visitor"]),su.refract=Wg(["visitors","document","objects","OAuthFlow","$visitor"]),iu.refract=Wg(["visitors","document","objects","OAuthFlows","$visitor"]),au.refract=Wg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),lu.refract=Wg(["visitors","document","objects","OpenApi","$visitor"]),pu.refract=Wg(["visitors","document","objects","Operation","$visitor"]),du.refract=Wg(["visitors","document","objects","Parameter","$visitor"]),fu.refract=Wg(["visitors","document","objects","PathItem","$visitor"]),gu.refract=Wg(["visitors","document","objects","Paths","$visitor"]),bu.refract=Wg(["visitors","document","objects","Reference","$visitor"]),wu.refract=Wg(["visitors","document","objects","RequestBody","$visitor"]),Su.refract=Wg(["visitors","document","objects","Response","$visitor"]),Ou.refract=Wg(["visitors","document","objects","Responses","$visitor"]),Eh.refract=Wg(["visitors","document","objects","Schema","$visitor"]),jh.refract=Wg(["visitors","document","objects","SecurityRequirement","$visitor"]),Ah.refract=Wg(["visitors","document","objects","SecurityScheme","$visitor"]),kh.refract=Wg(["visitors","document","objects","Server","$visitor"]),Th.refract=Wg(["visitors","document","objects","ServerVariable","$visitor"]),Fh.refract=Wg(["visitors","document","objects","Tag","$visitor"]),Mh.refract=Wg(["visitors","document","objects","XML","$visitor"]);const Kg=class extends Il{};const Yg=class extends _l{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Xg=class extends Dl{};const Qg=class extends Ll{};const Zg=class extends ql{};const ev=class extends Jl{};const tv=class extends Hl{};const rv=class extends Gl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const sv=class extends Kl{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 nv extends ta.Om{static default=new nv("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const iv=nv;const ov=class extends Xl{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const av=class extends Zl{};const cv=class extends tu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const lv=class extends su{};const uv=class extends iu{};const pv=class extends au{};class hv extends ta.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 dv=hv;const mv=class extends pu{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const fv=class extends du{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const yv=class extends fu{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)}};const gv=class extends gu{};class vv extends bu{}Object.defineProperty(vv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(vv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const bv=vv;const xv=class extends wu{};const wv=class extends Su{};const Ev=class extends Ou{};const Sv=class extends ku{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new Au("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Au("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)}};const jv=class extends Mu{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 Au("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Au("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 Au("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Au("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Au("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Au("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 Ov=cs((function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!Wa(s)&&gs(n,s)&&"object"==typeof s[n]?s[n]:ls(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(ls(e)&&Ns(r)){var s=[].concat(r);return s[e]=t,s}var n={};for(var i in r)n[i]=r[i];return n[e]=t,n}(n,r,s)}));const Av=Ov;const Pv=cs((function(e,t,r){var s=Array.prototype.slice.call(r,0);return s.splice(e,t),s}));var kv=cs((function(e,t,r){return Av([e],t,r)}));const $v=kv;var Tv=as((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(ls(e)&&Ns(t))return Pv(e,1,t);var r={};for(var s in t)r[s]=t[s];return delete r[e],r}(t[0],r);default:var s=t[0],n=Array.prototype.slice.call(t,1);return null==r[s]?function(e,t){if(ls(e)&&Ns(t))return[].concat(t);var r={};for(var s in t)r[s]=t[s];return r}(s,r):$v(s,e(n,r[s]),r)}}));const Cv=Tv;const Fv=class extends Ep{constructor(e){super(e),this.element=new Sv}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)}};const Iv=class extends Op{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Na}};const Mv=class extends qu{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const _v=class extends mh{constructor(e){super(e),this.element=new jv}},Rv=mn(Av(["visitors","document","objects","JSONSchema","$visitor"],Fv),Cv(["visitors","document","objects","JSONSchema","fixedFields","id"]),Av(["visitors","document","objects","JSONSchema","fixedFields","$id"],fh.visitors.value),Av(["visitors","document","objects","JSONSchema","fixedFields","contains"],fh.visitors.JSONSchemaOrJSONReferenceVisitor),Av(["visitors","document","objects","JSONSchema","fixedFields","items"],Iv),Av(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],fh.visitors.JSONSchemaOrJSONReferenceVisitor),Av(["visitors","document","objects","JSONSchema","fixedFields","const"],fh.visitors.value),Av(["visitors","document","objects","JSONSchema","fixedFields","examples"],Mv),Av(["visitors","document","objects","LinkDescription","$visitor"],_v),Av(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],fh.visitors.JSONSchemaOrJSONReferenceVisitor),Cv(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Av(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],fh.visitors.JSONSchemaOrJSONReferenceVisitor),Cv(["visitors","document","objects","LinkDescription","fixedFields","method"]),Cv(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Av(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],fh.visitors.value))(fh),Dv={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...mc},Nv=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sv||e(s)&&t("JSONSchemaDraft6",s)&&r("object",s))),Lv=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jv||e(s)&&t("linkDescription",s)&&r("object",s))),Bv={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Sv),t.register("jSONReference",Tu),t.register("media",Fu),t.register("linkDescription",jv),t}},qv=()=>{const e=Lc(Bv);return{predicates:{...c,isStringElement:ba},namespace:e}},Uv=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Rv}={})=>{const n=(0,ta.e)(e),i=ic(s),o=new(ec(t,i))({specObj:i});return yc(n,o),Jc(o.element,r,{toolboxCreator:qv,visitorOptions:{keyMap:Dv,nodeTypeGetter:yh}})},Jv=e=>(t,r={})=>Uv(t,{specPath:e,...r});Sv.refract=Jv(["visitors","document","objects","JSONSchema","$visitor"]),jv.refract=Jv(["visitors","document","objects","LinkDescription","$visitor"]);const Vv=class extends Sv{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 Au('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Au('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)}};const Hv=class extends jv{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 Au("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Au("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 Au("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Au("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const zv=class extends Fv{constructor(e){super(e),this.element=new Vv}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const Gv=class extends _v{constructor(e){super(e),this.element=new Hv}},Wv=mn(Av(["visitors","document","objects","JSONSchema","$visitor"],zv),Av(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Rv.visitors.value),Av(["visitors","document","objects","JSONSchema","fixedFields","if"],Rv.visitors.JSONSchemaOrJSONReferenceVisitor),Av(["visitors","document","objects","JSONSchema","fixedFields","then"],Rv.visitors.JSONSchemaOrJSONReferenceVisitor),Av(["visitors","document","objects","JSONSchema","fixedFields","else"],Rv.visitors.JSONSchemaOrJSONReferenceVisitor),Cv(["visitors","document","objects","JSONSchema","fixedFields","media"]),Av(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Rv.visitors.value),Av(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Rv.visitors.value),Av(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Rv.visitors.value),Av(["visitors","document","objects","LinkDescription","$visitor"],Gv),Av(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Rv.visitors.value),Av(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Rv.visitors.value),Cv(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Av(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Rv.visitors.value),Av(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Rv.visitors.value),Av(["visitors","document","objects","LinkDescription","fixedFields","description"],Rv.visitors.value),Av(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Rv.visitors.value),Av(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Rv.visitors.JSONSchemaOrJSONReferenceVisitor),Cv(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Av(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Rv.visitors.value))(Rv),Kv={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...mc},Yv=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vv||e(s)&&t("JSONSchemaDraft7",s)&&r("object",s))),Xv=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hv||e(s)&&t("linkDescription",s)&&r("object",s))),Qv={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",Vv),t.register("jSONReference",Tu),t.register("linkDescription",Hv),t}},Zv=()=>{const e=Lc(Qv);return{predicates:{...l,isStringElement:ba},namespace:e}},eb=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Wv}={})=>{const n=(0,ta.e)(e),i=ic(s),o=new(ec(t,i))({specObj:i});return yc(n,o),Jc(o.element,r,{toolboxCreator:Zv,visitorOptions:{keyMap:Kv,nodeTypeGetter:yh}})},tb=e=>(t,r={})=>eb(t,{specPath:e,...r});Vv.refract=tb(["visitors","document","objects","JSONSchema","$visitor"]),Hv.refract=tb(["visitors","document","objects","LinkDescription","$visitor"]);const rb=class extends Vv{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 Au("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Au("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 Au("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Au("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)}};const sb=class extends Hv{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)}};const nb=class extends zv{constructor(e){super(e),this.element=new rb}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=fp.prototype.ObjectElement.call(this,e);return ba(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const ib=class extends qu{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const ob=class extends qu{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class ab extends(op(kp,yp,qu)){constructor(e){super(e),this.element=new ta.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=qn(["document","objects","JSONSchema"])}}const cb=ab;class lb extends(op(mp,yp,qu)){constructor(e){super(e),this.element=new ta.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),Na}}const ub=lb;class pb extends(op(mp,yp,qu)){constructor(e){super(e),this.element=new ta.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),Na}}const hb=pb;class db extends(op(mp,yp,qu)){constructor(e){super(e),this.element=new ta.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),Na}}const mb=db;class fb extends(op(kp,yp,qu)){constructor(e){super(e),this.element=new ta.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=qn(["document","objects","JSONSchema"])}}const yb=fb;class gb extends(op(mp,yp,qu)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Na}ArrayElement(e){return this.element=new ta.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),Na}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Na}}const vb=gb;class bb extends(op(kp,yp,qu)){constructor(e){super(e),this.element=new ta.Sh,this.element.classes.push("json-schema-properties"),this.specPath=qn(["document","objects","JSONSchema"])}}const xb=bb;class wb extends(op(kp,yp,qu)){constructor(e){super(e),this.element=new ta.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=qn(["document","objects","JSONSchema"])}}const Eb=wb;const Sb=class extends qu{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const jb=class extends Gv{constructor(e){super(e),this.element=new sb}},Ob=mn(Av(["visitors","document","objects","JSONSchema","$visitor"],nb),Av(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],ib),Av(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Wv.visitors.value),Av(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Wv.visitors.value),Av(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Wv.visitors.value),Cv(["visitors","document","objects","JSONReference","$visitor"]),Av(["visitors","document","objects","JSONSchema","fixedFields","$ref"],ob),Cv(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Av(["visitors","document","objects","JSONSchema","fixedFields","$defs"],cb),Av(["visitors","document","objects","JSONSchema","fixedFields","allOf"],ub),Av(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],hb),Av(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],mb),Av(["visitors","document","objects","JSONSchema","fixedFields","not"],nb),Av(["visitors","document","objects","JSONSchema","fixedFields","if"],nb),Av(["visitors","document","objects","JSONSchema","fixedFields","then"],nb),Av(["visitors","document","objects","JSONSchema","fixedFields","else"],nb),Cv(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Av(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],yb),Av(["visitors","document","objects","JSONSchema","fixedFields","items"],vb),Av(["visitors","document","objects","JSONSchema","fixedFields","contains"],nb),Av(["visitors","document","objects","JSONSchema","fixedFields","properties"],xb),Av(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Eb),Av(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],nb),Av(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],nb),Av(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],nb),Av(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],nb),Av(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],nb),Av(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Wv.visitors.value),Av(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Wv.visitors.value),Av(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Sb),Av(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Wv.visitors.value),Av(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],nb),Av(["visitors","document","objects","LinkDescription","$visitor"],jb),Av(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],nb),Av(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],nb),Av(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],nb),Av(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],nb))(Wv),Ab={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...mc},Pb=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rb||e(s)&&t("JSONSchema201909",s)&&r("object",s))),kb=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sb||e(s)&&t("linkDescription",s)&&r("object",s))),$b={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",rb),t.register("linkDescription",sb),t}},Tb=()=>{const e=Lc($b);return{predicates:{...u,isStringElement:ba},namespace:e}},Cb=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Ob}={})=>{const n=(0,ta.e)(e),i=ic(s),o=new(ec(t,i))({specObj:i});return yc(n,o),Jc(o.element,r,{toolboxCreator:Tb,visitorOptions:{keyMap:Ab,nodeTypeGetter:yh}})},Fb=e=>(t,r={})=>Cb(t,{specPath:e,...r});rb.refract=Fb(["visitors","document","objects","JSONSchema","$visitor"]),sb.refract=Fb(["visitors","document","objects","LinkDescription","$visitor"]);const Ib=class extends rb{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 Au("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Au("$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 Au("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Au("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const Mb=class extends sb{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)}};const _b=class extends nb{constructor(e){super(e),this.element=new Ib}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class Rb extends(op(mp,yp,qu)){constructor(e){super(e),this.element=new ta.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),Na}}const Db=Rb;const Nb=class extends jb{constructor(e){super(e),this.element=new Mb}},Lb=mn(Av(["visitors","document","objects","JSONSchema","$visitor"],_b),Cv(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Av(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Ob.visitors.value),Cv(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Av(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Ob.visitors.value),Av(["visitors","document","objects","JSONSchema","fixedFields","not"],_b),Av(["visitors","document","objects","JSONSchema","fixedFields","if"],_b),Av(["visitors","document","objects","JSONSchema","fixedFields","then"],_b),Av(["visitors","document","objects","JSONSchema","fixedFields","else"],_b),Av(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],Db),Av(["visitors","document","objects","JSONSchema","fixedFields","items"],_b),Av(["visitors","document","objects","JSONSchema","fixedFields","contains"],_b),Av(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],_b),Cv(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Av(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],_b),Av(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],_b),Av(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],_b),Av(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],_b),Av(["visitors","document","objects","LinkDescription","$visitor"],Nb),Av(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],_b),Av(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],_b),Av(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],_b),Av(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],_b))(Ob),Bb={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...mc},qb=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ib||e(s)&&t("JSONSchema202012",s)&&r("object",s))),Ub=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mb||e(s)&&t("linkDescription",s)&&r("object",s))),Jb={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",Ib),t.register("linkDescription",Mb),t}},Vb=()=>{const e=Lc(Jb);return{predicates:{...p,isStringElement:ba},namespace:e}},Hb=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Lb}={})=>{const n=(0,ta.e)(e),i=ic(s),o=new(ec(t,i))({specObj:i});return yc(n,o),Jc(o.element,r,{toolboxCreator:Vb,visitorOptions:{keyMap:Bb,nodeTypeGetter:yh}})},zb=e=>(t,r={})=>Hb(t,{specPath:e,...r});Ib.refract=zb(["visitors","document","objects","JSONSchema","$visitor"]),Mb.refract=zb(["visitors","document","objects","LinkDescription","$visitor"]);const Gb=class extends Ib{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)}};const Wb=class extends jh{};const Kb=class extends Ah{};const Yb=class extends kh{};const Xb=class extends Th{};const Qb=class extends Fh{};const Zb=class extends Mh{};class ex extends(op(zh,Rh)){constructor(e){super(e),this.element=new dv,this.specPath=qn(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,zh.prototype.ObjectElement.call(this,e)}}const tx=ex,rx=Ug.visitors.document.objects.Info.$visitor;const sx=class extends rx{constructor(e){super(e),this.element=new sv}},nx=Ug.visitors.document.objects.Contact.$visitor;const ix=class extends nx{constructor(e){super(e),this.element=new Xg}},ox=Ug.visitors.document.objects.License.$visitor;const ax=class extends ox{constructor(e){super(e),this.element=new ov}},cx=Ug.visitors.document.objects.Link.$visitor;const lx=class extends cx{constructor(e){super(e),this.element=new av}};class ux extends(op(Dh,Rh)){StringElement(e){const t=new iv(Sc(e));return this.copyMetaAndAttributes(e,t),this.element=t,Na}}const px=ux,hx=Ug.visitors.document.objects.Server.$visitor;const dx=class extends hx{constructor(e){super(e),this.element=new Yb}},mx=Ug.visitors.document.objects.ServerVariable.$visitor;const fx=class extends mx{constructor(e){super(e),this.element=new Xb}},yx=Ug.visitors.document.objects.MediaType.$visitor;const gx=class extends yx{constructor(e){super(e),this.element=new cv}},vx=Ug.visitors.document.objects.SecurityRequirement.$visitor;const bx=class extends vx{constructor(e){super(e),this.element=new Wb}},xx=Ug.visitors.document.objects.Components.$visitor;const wx=class extends xx{constructor(e){super(e),this.element=new Yg}},Ex=Ug.visitors.document.objects.Tag.$visitor;const Sx=class extends Ex{constructor(e){super(e),this.element=new Qb}},jx=Ug.visitors.document.objects.Reference.$visitor;const Ox=class extends jx{constructor(e){super(e),this.element=new bv}},Ax=Ug.visitors.document.objects.Parameter.$visitor;const Px=class extends Ax{constructor(e){super(e),this.element=new fv}},kx=Ug.visitors.document.objects.Header.$visitor;const $x=class extends kx{constructor(e){super(e),this.element=new rv}},Tx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kg||e(s)&&t("callback",s)&&r("object",s))),Cx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yg||e(s)&&t("components",s)&&r("object",s))),Fx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xg||e(s)&&t("contact",s)&&r("object",s))),Ix=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ev||e(s)&&t("example",s)&&r("object",s))),Mx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tv||e(s)&&t("externalDocumentation",s)&&r("object",s))),_x=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rv||e(s)&&t("header",s)&&r("object",s))),Rx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sv||e(s)&&t("info",s)&&r("object",s))),Dx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof iv||e(s)&&t("jsonSchemaDialect",s)&&r("string",s))),Nx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ov||e(s)&&t("license",s)&&r("object",s))),Lx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof av||e(s)&&t("link",s)&&r("object",s))),Bx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pv||e(s)&&t("openapi",s)&&r("string",s))),qx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof dv||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n))),Ux=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mv||e(s)&&t("operation",s)&&r("object",s))),Jx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fv||e(s)&&t("parameter",s)&&r("object",s))),Vx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yv||e(s)&&t("pathItem",s)&&r("object",s))),Hx=e=>{if(!Vx(e))return!1;if(!ba(e.$ref))return!1;const t=Sc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},zx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gv||e(s)&&t("paths",s)&&r("object",s))),Gx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bv||e(s)&&t("reference",s)&&r("object",s))),Wx=e=>{if(!Gx(e))return!1;if(!ba(e.$ref))return!1;const t=Sc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Kx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xv||e(s)&&t("requestBody",s)&&r("object",s))),Yx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wv||e(s)&&t("response",s)&&r("object",s))),Xx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ev||e(s)&&t("responses",s)&&r("object",s))),Qx=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gb||e(s)&&t("schema",s)&&r("object",s))),Zx=e=>Ea(e)&&e.classes.includes("boolean-json-schema"),ew=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wb||e(s)&&t("securityRequirement",s)&&r("object",s))),tw=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kb||e(s)&&t("securityScheme",s)&&r("object",s))),rw=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yb||e(s)&&t("server",s)&&r("object",s))),sw=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xb||e(s)&&t("serverVariable",s)&&r("object",s))),nw=ga((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof cv||e(s)&&t("mediaType",s)&&r("object",s)));class iw extends(op(zh,yp,Rh)){constructor(e){super(e),this.element=new Gb,this.specPath=qn(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=iv.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=zh.prototype.ObjectElement.call(this,e);return ba(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return _b.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&Dx(this.openApiSemanticElement.jsonSchemaDialect)?Sc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&ba(this.openApiGenericElement.get("jsonSchemaDialect"))?Sc(this.openApiGenericElement.get("jsonSchemaDialect")):Sc(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return _b.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return _b.prototype.handleSchemaIdentifier.call(this,e)}}const ow=iw;const aw=class extends cb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const cw=class extends ub{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const lw=class extends hb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const uw=class extends mb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const pw=class extends yb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const hw=class extends Db{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const dw=class extends xb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const mw=class extends Eb{constructor(e){super(e),this.passingOptionsNames.push("parent")}},fw=Ug.visitors.document.objects.Discriminator.$visitor;const yw=class extends fw{constructor(e){super(e),this.element=new Qg,this.canSupportSpecificationExtensions=!0}},gw=Ug.visitors.document.objects.XML.$visitor;const vw=class extends gw{constructor(e){super(e),this.element=new Zb}};class bw extends(op(ud,Rh)){constructor(e){super(e),this.element=new Sf,this.specPath=qn(["document","objects","Schema"])}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(Qx).forEach(((e,t)=>{e.setMetaProperty("schemaName",Sc(t))})),t}}const xw=bw;class ww extends ta.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(ww.primaryClass)}}const Ew=ww;class Sw extends(op(ud,Rh)){constructor(e){super(e),this.element=new Ew,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(Gx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const jw=Sw,Ow=Ug.visitors.document.objects.Example.$visitor;const Aw=class extends Ow{constructor(e){super(e),this.element=new ev}},Pw=Ug.visitors.document.objects.ExternalDocumentation.$visitor;const kw=class extends Pw{constructor(e){super(e),this.element=new tv}},$w=Ug.visitors.document.objects.Encoding.$visitor;const Tw=class extends $w{constructor(e){super(e),this.element=new Zg}},Cw=Ug.visitors.document.objects.Paths.$visitor;const Fw=class extends Cw{constructor(e){super(e),this.element=new gv}},Iw=Ug.visitors.document.objects.RequestBody.$visitor;const Mw=class extends Iw{constructor(e){super(e),this.element=new xv}},_w=Ug.visitors.document.objects.Callback.$visitor;const Rw=class extends _w{constructor(e){super(e),this.element=new Kg,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=_w.prototype.ObjectElement.call(this,e);return this.element.filter(Gx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},Dw=Ug.visitors.document.objects.Response.$visitor;const Nw=class extends Dw{constructor(e){super(e),this.element=new wv}},Lw=Ug.visitors.document.objects.Responses.$visitor;const Bw=class extends Lw{constructor(e){super(e),this.element=new Ev}},qw=Ug.visitors.document.objects.Operation.$visitor;const Uw=class extends qw{constructor(e){super(e),this.element=new mv}},Jw=Ug.visitors.document.objects.PathItem.$visitor;const Vw=class extends Jw{constructor(e){super(e),this.element=new yv}},Hw=Ug.visitors.document.objects.SecurityScheme.$visitor;const zw=class extends Hw{constructor(e){super(e),this.element=new Kb}},Gw=Ug.visitors.document.objects.OAuthFlows.$visitor;const Ww=class extends Gw{constructor(e){super(e),this.element=new uv}},Kw=Ug.visitors.document.objects.OAuthFlow.$visitor;const Yw=class extends Kw{constructor(e){super(e),this.element=new lv}};class Xw extends ta.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(Xw.primaryClass)}}const Qw=Xw;class Zw extends(op(ud,Rh)){constructor(e){super(e),this.element=new Qw,this.specPath=e=>Uh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=ud.prototype.ObjectElement.call(this,e);return this.element.filter(Gx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Vx).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Sc(t))})),t}}const eE=Zw,{JSONSchema:tE,LinkDescription:rE}=Lb.visitors.document.objects,sE={visitors:{value:Ug.visitors.value,document:{objects:{OpenApi:{$visitor:tx,fixedFields:{openapi:Ug.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:px,servers:Ug.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:eE,components:{$ref:"#/visitors/document/objects/Components"},security:Ug.visitors.document.objects.OpenApi.fixedFields.security,tags:Ug.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:sx,fixedFields:{title:Ug.visitors.document.objects.Info.fixedFields.title,description:Ug.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Ug.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Ug.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:ix,fixedFields:{name:Ug.visitors.document.objects.Contact.fixedFields.name,url:Ug.visitors.document.objects.Contact.fixedFields.url,email:Ug.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:ax,fixedFields:{name:Ug.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Ug.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:dx,fixedFields:{url:Ug.visitors.document.objects.Server.fixedFields.url,description:Ug.visitors.document.objects.Server.fixedFields.description,variables:Ug.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:fx,fixedFields:{enum:Ug.visitors.document.objects.ServerVariable.fixedFields.enum,default:Ug.visitors.document.objects.ServerVariable.fixedFields.default,description:Ug.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:wx,fixedFields:{schemas:xw,responses:Ug.visitors.document.objects.Components.fixedFields.responses,parameters:Ug.visitors.document.objects.Components.fixedFields.parameters,examples:Ug.visitors.document.objects.Components.fixedFields.examples,requestBodies:Ug.visitors.document.objects.Components.fixedFields.requestBodies,headers:Ug.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Ug.visitors.document.objects.Components.fixedFields.securitySchemes,links:Ug.visitors.document.objects.Components.fixedFields.links,callbacks:Ug.visitors.document.objects.Components.fixedFields.callbacks,pathItems:jw}},Paths:{$visitor:Fw},PathItem:{$visitor:Vw,fixedFields:{$ref:Ug.visitors.document.objects.PathItem.fixedFields.$ref,summary:Ug.visitors.document.objects.PathItem.fixedFields.summary,description:Ug.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:Ug.visitors.document.objects.PathItem.fixedFields.servers,parameters:Ug.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Uw,fixedFields:{tags:Ug.visitors.document.objects.Operation.fixedFields.tags,summary:Ug.visitors.document.objects.Operation.fixedFields.summary,description:Ug.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Ug.visitors.document.objects.Operation.fixedFields.operationId,parameters:Ug.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Ug.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Ug.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Ug.visitors.document.objects.Operation.fixedFields.deprecated,security:Ug.visitors.document.objects.Operation.fixedFields.security,servers:Ug.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:kw,fixedFields:{description:Ug.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Ug.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Px,fixedFields:{name:Ug.visitors.document.objects.Parameter.fixedFields.name,in:Ug.visitors.document.objects.Parameter.fixedFields.in,description:Ug.visitors.document.objects.Parameter.fixedFields.description,required:Ug.visitors.document.objects.Parameter.fixedFields.required,deprecated:Ug.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Ug.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Ug.visitors.document.objects.Parameter.fixedFields.style,explode:Ug.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Ug.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ug.visitors.document.objects.Parameter.fixedFields.example,examples:Ug.visitors.document.objects.Parameter.fixedFields.examples,content:Ug.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Mw,fixedFields:{description:Ug.visitors.document.objects.RequestBody.fixedFields.description,content:Ug.visitors.document.objects.RequestBody.fixedFields.content,required:Ug.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:gx,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Ug.visitors.document.objects.MediaType.fixedFields.example,examples:Ug.visitors.document.objects.MediaType.fixedFields.examples,encoding:Ug.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Tw,fixedFields:{contentType:Ug.visitors.document.objects.Encoding.fixedFields.contentType,headers:Ug.visitors.document.objects.Encoding.fixedFields.headers,style:Ug.visitors.document.objects.Encoding.fixedFields.style,explode:Ug.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Ug.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Bw,fixedFields:{default:Ug.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Nw,fixedFields:{description:Ug.visitors.document.objects.Response.fixedFields.description,headers:Ug.visitors.document.objects.Response.fixedFields.headers,content:Ug.visitors.document.objects.Response.fixedFields.content,links:Ug.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Rw},Example:{$visitor:Aw,fixedFields:{summary:Ug.visitors.document.objects.Example.fixedFields.summary,description:Ug.visitors.document.objects.Example.fixedFields.description,value:Ug.visitors.document.objects.Example.fixedFields.value,externalValue:Ug.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:lx,fixedFields:{operationRef:Ug.visitors.document.objects.Link.fixedFields.operationRef,operationId:Ug.visitors.document.objects.Link.fixedFields.operationId,parameters:Ug.visitors.document.objects.Link.fixedFields.parameters,requestBody:Ug.visitors.document.objects.Link.fixedFields.requestBody,description:Ug.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:$x,fixedFields:{description:Ug.visitors.document.objects.Header.fixedFields.description,required:Ug.visitors.document.objects.Header.fixedFields.required,deprecated:Ug.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Ug.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Ug.visitors.document.objects.Header.fixedFields.style,explode:Ug.visitors.document.objects.Header.fixedFields.explode,allowReserved:Ug.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ug.visitors.document.objects.Header.fixedFields.example,examples:Ug.visitors.document.objects.Header.fixedFields.examples,content:Ug.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Sx,fixedFields:{name:Ug.visitors.document.objects.Tag.fixedFields.name,description:Ug.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Ox,fixedFields:{$ref:Ug.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...rE},Schema:{$visitor:ow,fixedFields:{...tE.fixedFields,$defs:aw,allOf:cw,anyOf:lw,oneOf:uw,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:pw,prefixItems:hw,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:dw,patternProperties:mw,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:yw,fixedFields:{propertyName:Ug.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Ug.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:vw,fixedFields:{name:Ug.visitors.document.objects.XML.fixedFields.name,namespace:Ug.visitors.document.objects.XML.fixedFields.namespace,prefix:Ug.visitors.document.objects.XML.fixedFields.prefix,attribute:Ug.visitors.document.objects.XML.fixedFields.attribute,wrapped:Ug.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:zw,fixedFields:{type:Ug.visitors.document.objects.SecurityScheme.fixedFields.type,description:Ug.visitors.document.objects.SecurityScheme.fixedFields.description,name:Ug.visitors.document.objects.SecurityScheme.fixedFields.name,in:Ug.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Ug.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Ug.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Ug.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Ww,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:Yw,fixedFields:{authorizationUrl:Ug.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Ug.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Ug.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Ug.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:bx}},extension:{$visitor:Ug.visitors.document.extension.$visitor}}}},nE=e=>{if(va(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},iE={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"],...mc},oE={namespace:e=>{const{base:t}=e;return t.register("callback",Kg),t.register("components",Yg),t.register("contact",Xg),t.register("discriminator",Qg),t.register("encoding",Zg),t.register("example",ev),t.register("externalDocumentation",tv),t.register("header",rv),t.register("info",sv),t.register("jsonSchemaDialect",iv),t.register("license",ov),t.register("link",av),t.register("mediaType",cv),t.register("oAuthFlow",lv),t.register("oAuthFlows",uv),t.register("openapi",pv),t.register("openApi3_1",dv),t.register("operation",mv),t.register("parameter",fv),t.register("pathItem",yv),t.register("paths",gv),t.register("reference",bv),t.register("requestBody",xv),t.register("response",wv),t.register("responses",Ev),t.register("schema",Gb),t.register("securityRequirement",Wb),t.register("securityScheme",Kb),t.register("server",Yb),t.register("serverVariable",Xb),t.register("tag",Qb),t.register("xml",Zb),t}},aE=e=>{const t=e.reduce(((t,r,s)=>{if(Oa(r)){const e=String(Sc(r.key));t.push(e)}else if(ja(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t}),[]);return wl(t)},cE=()=>{const e=Lc(oE);return{predicates:{...h,isElement:va,isStringElement:ba,isArrayElement:ja,isObjectElement:Sa,isMemberElement:Oa,isServersElement:sm,includesClasses:Ma,hasElementSourceMap:Fa},ancestorLineageToJSONPointer:aE,namespace:e}},lE=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,ta.e)(e),n=ic(sE),i=new(ec(t,n))({specObj:n});return yc(s,i),Jc(i.element,r,{toolboxCreator:cE,visitorOptions:{keyMap:iE,nodeTypeGetter:nE}})},uE=e=>(t,r={})=>lE(t,{specPath:e,...r});Kg.refract=uE(["visitors","document","objects","Callback","$visitor"]),Yg.refract=uE(["visitors","document","objects","Components","$visitor"]),Xg.refract=uE(["visitors","document","objects","Contact","$visitor"]),ev.refract=uE(["visitors","document","objects","Example","$visitor"]),Qg.refract=uE(["visitors","document","objects","Discriminator","$visitor"]),Zg.refract=uE(["visitors","document","objects","Encoding","$visitor"]),tv.refract=uE(["visitors","document","objects","ExternalDocumentation","$visitor"]),rv.refract=uE(["visitors","document","objects","Header","$visitor"]),sv.refract=uE(["visitors","document","objects","Info","$visitor"]),iv.refract=uE(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),ov.refract=uE(["visitors","document","objects","License","$visitor"]),av.refract=uE(["visitors","document","objects","Link","$visitor"]),cv.refract=uE(["visitors","document","objects","MediaType","$visitor"]),lv.refract=uE(["visitors","document","objects","OAuthFlow","$visitor"]),uv.refract=uE(["visitors","document","objects","OAuthFlows","$visitor"]),pv.refract=uE(["visitors","document","objects","OpenApi","fixedFields","openapi"]),dv.refract=uE(["visitors","document","objects","OpenApi","$visitor"]),mv.refract=uE(["visitors","document","objects","Operation","$visitor"]),fv.refract=uE(["visitors","document","objects","Parameter","$visitor"]),yv.refract=uE(["visitors","document","objects","PathItem","$visitor"]),gv.refract=uE(["visitors","document","objects","Paths","$visitor"]),bv.refract=uE(["visitors","document","objects","Reference","$visitor"]),xv.refract=uE(["visitors","document","objects","RequestBody","$visitor"]),wv.refract=uE(["visitors","document","objects","Response","$visitor"]),Ev.refract=uE(["visitors","document","objects","Responses","$visitor"]),Gb.refract=uE(["visitors","document","objects","Schema","$visitor"]),Wb.refract=uE(["visitors","document","objects","SecurityRequirement","$visitor"]),Kb.refract=uE(["visitors","document","objects","SecurityScheme","$visitor"]),Yb.refract=uE(["visitors","document","objects","Server","$visitor"]),Xb.refract=uE(["visitors","document","objects","ServerVariable","$visitor"]),Qb.refract=uE(["visitors","document","objects","Tag","$visitor"]),Zb.refract=uE(["visitors","document","objects","XML","$visitor"]);const pE=class extends Au{};const hE=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new pE("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new pE("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new pE("latest method in MediaTypes class is not yet implemented.")}};class dE extends hE{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 vn(this.filterByFormat(e))}}const mE=new dE("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");const fE=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:r,value:s}){this.uri=e,this.value=s,this.depth=t,this.refSet=r,this.errors=[]}};const yE=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=si(e)?e:e.uri;return Vn(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 gE(e){return e}const vE=os(gE),bE={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:vE,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const xE=as((function(e,t){return function(r){return function(s){return Rn((function(e){return t(e,s)}),r(e(s)))}}}));var wE=function(e){return{value:e,map:function(t){return wE(t(e))}}},EE=cs((function(e,t,r){return e((function(e){return wE(t(e))}))(r).value}));const SE=EE;const jE=Ts(""),OE=xE(ec(["resolve","baseURI"]),Av(["resolve","baseURI"])),AE=e=>jE(e)?vi():e,PE=(e,t)=>{const r=Ac(e,t);return SE(OE,AE,r)};const kE=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t="text/plain",data:r,parseResult:s}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=s}get extension(){return si(this.uri)?hi(this.uri):""}toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Ps(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};const $E=class extends rs{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},TE=async(e,t,r)=>{const s=await Promise.all(r.map(Rc([e],t)));return r.filter(((e,t)=>s[t]))},CE=async(e,t,r)=>{let s;for(const n of r)try{const r=await n[e].call(n,...t);return{plugin:n,result:r}}catch(e){s=new $E("Error while running plugin",{cause:e,plugin:n})}return Promise.reject(s)};const FE=class extends rs{};const IE=class extends FE{},ME=async(e,t)=>{let r=e,s=!1;if(!Ta(e)){const t=uc(e);t.classes.push("result"),r=new pa([t]),s=!0}const n=new kE({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await TE("canDereference",[n,t],t.dereference.strategies);if(Fc(i))throw new IE(n.uri);try{const{result:e}=await CE("dereference",[n,t],i);return s?e.get(0):e}catch(e){throw new FE(`Error while dereferencing file "${n.uri}"`,{cause:e})}};const _E=class extends rs{};const RE=class extends _E{};const DE=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:r=!1,fileExtensions:s=[],mediaTypes:n=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=r,this.fileExtensions=s,this.mediaTypes=n}};const NE=class extends DE{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),s=new pa;if(0!==r.length){const e=new ta.Om(r);e.classes.push("result"),s.push(e)}return s}catch(t){throw new RE(`Error parsing "${e.uri}"`,{cause:t})}}};const LE=class{name;constructor({name:e}){this.name=e}};const BE=class extends LE{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 IE('"openapi-3-1" dereference strategy is not available.');const s=new yE,n=PE(t,{resolve:{internal:!1},dereference:{refSet:s}});return await r.dereference(e,n),s}};const qE=class{name;constructor({name:e}){this.name=e}};const UE=class extends qE{timeout;redirects;withCredentials;constructor(e){const{name:t="http-resolver",timeout:r=5e3,redirects:s=5,withCredentials:n=!1}=null!=e?e:{};super({name:t}),this.timeout=r,this.redirects=s,this.withCredentials=n}canRead(e){return mi(e.uri)}};const JE=class extends rs{};const VE=class extends JE{},{AbortController:HE,AbortSignal:zE}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=HE),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=zE);const GE=class extends UE{swaggerHTTPClient=er;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=er,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:s}=r,n=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",a=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:s,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:i,redirect:o,follow:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new VE(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(n)}}},WE=(e,t=Bc)=>{if(si(e))try{return t.fromRefract(JSON.parse(e))}catch{}return qo(e)&&Qa("element",e)?t.fromRefract(e):t.toElement(e)};const KE=class extends DE{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return JSON.parse(e.toString()),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new RE("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new pa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=WE(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new RE(`Error parsing "${e.uri}"`,{cause:t})}}};const YE=class extends DE{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return Xt.load(e.toString(),{schema:Bt}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new RE("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new pa,r=e.toString();try{const e=Xt.load(r,{schema:Bt});if(this.allowEmpty&&void 0===e)return t;const s=WE(e);return s.classes.push("result"),t.push(s),t}catch(t){throw new RE(`Error parsing "${e.uri}"`,{cause:t})}}};const XE=class extends DE{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new dE(...mE.filterByFormat("generic"),...mE.filterByFormat("json")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)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 RE("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new pa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=dv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new RE(`Error parsing "${e.uri}"`,{cause:t})}}};const QE=class extends DE{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 dE(...mE.filterByFormat("generic"),...mE.filterByFormat("yaml")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return Xt.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new RE("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new pa,r=e.toString();try{const e=Xt.load(r,{schema:Bt});if(this.allowEmpty&&void 0===e)return t;const s=dv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new RE(`Error parsing "${e.uri}"`,{cause:t})}}};const ZE=cs((function(e,t,r){return Ts(e,yn(t,r))}));const eS=class{name;constructor({name:e}){this.name=e}};const tS=as((function(e,t){return ia(Rs(e),t)}));var rS=r(8068);const sS=class extends ss{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class nS{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new rS({length:e}),this.identityMap=new WeakMap}identify(e){if(!va(e))throw new sS("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&ba(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 ta.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 nS;const iS=cs((function(e,t,r){return fn(e,hs(t,r))})),oS=(e,t)=>{const r=new fc({predicate:e,returnOnTrue:Na});return yc(t,r),iS(void 0,[0],r.result)};const aS=class extends rs{};const cS=class extends aS{};const lS=class extends aS{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},uS=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),pS=e=>{const t=yi(e);return nc("#",t)},hS=(e,t)=>{const r=(e=>{if(!uS(e))throw new lS(e);return e})(e),s=oS((e=>Qx(e)&&Sc(e.$anchor)===r),t);if(Jn(s))throw new cS(`Evaluation failed on token: "${r}"`);return s},dS=(e,t)=>{const r=new fc({predicate:e});return yc(t,r),new ta.G6(r.result)};const mS=class extends rs{};const fS=class extends mS{},yS=(e,t)=>{if(void 0===t.$ref)return;const r=yi(Sc(t.$ref)),s=Sc(t.meta.get("ancestorsSchemaIdentifiers"));return`${un(((e,t)=>bi(e,xi(gi(t)))),e,[...s,Sc(t.$ref)])}${"#"===r?"":r}`},gS=e=>{if(gS.cache.has(e))return gS.cache.get(e);const t=Gb.refract(e);return gS.cache.set(e,t),t};gS.cache=new WeakMap;const vS=e=>Ca(e)?gS(e):e,bS=(e,t)=>{const{cache:r}=bS,s=gi(e),n=e=>Qx(e)&&void 0!==e.$id;if(!r.has(t)){const e=dS(n,t);r.set(t,Array.from(e))}const i=r.get(t).find((e=>((e,t)=>{if(void 0===t.$id)return;const r=Sc(t.meta.get("ancestorsSchemaIdentifiers"));return un(((e,t)=>bi(e,xi(gi(t)))),e,r)})(s,e)===s));if(Jn(i))throw new fS(`Evaluation failed on URI: "${e}"`);return uS(pS(e))?hS(pS(e),i):Cl(i,Wc(e))};bS.cache=new WeakMap;const xS=class extends FE{};const wS=class extends JE{};const ES=class extends VE{},SS="apidom-file-cache",jS=async({cacheKey:e,result:t,error:r,cacheTTL:s})=>{if(0!==s)try{const s={cachedResult:t,cachedError:r,timestamp:Date.now()},n=await caches.open(SS),i=new Response(JSON.stringify(s),{headers:{"Content-Type":"application/json"}});await n.put(e,i)}catch(e){console.error("CacheStorage is not available")}},OS=async(e,t)=>{const{cacheTTL:r=0}=t.resolve.resolverOpts,s=`read_${e.uri}`,{cachedResult:n,cachedError:i}=await(async({cacheKey:e,cacheTTL:t})=>{if(0===t)return{cachedResult:null,cachedError:null};try{const r=await caches.open(SS),s=await r.match(e);if(s){const{cachedResult:n,cachedError:i,timestamp:o}=await s.json();if(Date.now()-o<t)return{cachedResult:n,cachedError:i};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:s,cacheTTL:r});if(null!==n)return n;if(null!==i)throw new JE(`Error while reading file "${e.uri}"`,{cause:i});const o=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),a=await TE("canRead",[e,t],o);if(Fc(a))throw new ES(e.uri);try{const{result:t}=await CE("read",[e],a),n=new kE({...e,data:t}).toString();return await jS({cacheKey:s,result:n,error:null,cacheTTL:r}),t}catch(t){var c,l,u;throw await jS({cacheKey:s,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 JE(`Error while reading file "${e.uri}"`,{cause:t})}},AS=async(e,t)=>{const r=new kE({uri:xi(gi(e)),mediaType:t.parse.mediaType}),s=await OS(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)})),s=await TE("canParse",[e,t],r);if(Fc(s))throw new ES(e.uri);try{const{plugin:r,result:n}=await CE("parse",[e,t],s);return!r.allowEmpty&&n.isEmpty?Promise.reject(new _E(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new _E(`Error while parsing file "${e.uri}"`,{cause:t})}})(new kE({...r,data:s}),t)};class PS 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(va(r)&&e(r))return r}}const kS=yc[Symbol.for("nodejs.util.promisify.custom")],$S=new nS,TS=(e,t,r,s)=>{Oa(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class CS{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new PS,refractCache:i=new Map,allOfDiscriminatorMapping:o=new Map}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new PS(...n),this.refractCache=i,this.allOfDiscriminatorMapping=o}handleDereferenceError(e,t,r){var s,n;if(null===(s=this.options.dereference.dereferenceOpts)||void 0===s||!s.continueOnError)throw e;if(r){const t=[...r].find((e=>Sa(e)&&e.getMetaProperty("ref-referencing-element")));var i;if(t)null===(i=this.options.dereference.dereferenceOpts)||void 0===i||i.errors.push({error:e,refEl:t.getMetaProperty("ref-referencing-element")})}null===(n=this.options.dereference.dereferenceOpts)||void 0===n||n.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||!Sc(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 bi(this.reference.uri,xi(gi(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new wS(`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(ZE(t,"uri"));const s=await AS(wi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new fE({uri:t,value:ac(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new fE({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(va));return[new PS(...this.ancestors,t),t]}OpenApi3_1Element={leave:(e,t,r,s,n,i)=>{var o;if(null===(o=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===o||!o.dereferenceDiscriminatorMapping)return;const a=uc(e);return a.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),i.replaceWith(a,TS),r?void 0:a}};async ReferenceElement(e,t,r,s,n,i){var o,a;if(this.indirections.includes(e))return!1;const[c,l]=this.toAncestorLineage([...n,r]),u=this.toBaseURI(Sc(e.$ref)),p=gi(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(Sc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,l)}const m=bi(u,Sc(e.$ref));this.indirections.push(e);const f=Wc(m);let y;try{y=Cl(d.value.result,f)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(y.id=$S.identify(y),Ca(y)){const t=Sc(e.meta.get("referenced-element")),r=`${t}-${Sc($S.identify(y))}`;if(this.refractCache.has(r))y=this.refractCache.get(r);else if(Uh(y))y=bv.refract(y),y.setMetaProperty("referenced-element",t),this.refractCache.set(r,y);else{y=this.namespace.getElementClass(t).refract(y),this.refractCache.set(r,y)}}if(e===y){const t=new rs("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(this.indirections.length>this.options.dereference.maxDepth){const t=new xS(`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(y)){if(d.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new rs("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if("replace"===this.options.dereference.circular){var g,v;const t=new ta.sI(y.id,{type:"reference",uri:d.uri,$ref:Sc(e.$ref)}),s=(null!==(g=null===(v=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===v?void 0:v.circularReplacer)&&void 0!==g?g:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,TS),!r&&s}}const b=gi(d.refSet.rootRef.uri)!==d.uri,x=["error","replace"].includes(this.options.dereference.circular);if((h||b||Gx(y)||x||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!c.includesCycle(y)){l.add(e);const t=new CS({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{y=await kS(y,t,{keyMap:iE,nodeTypeGetter:nE})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,l)}l.delete(e)}this.indirections.pop();const w=uc(y);return w.setMetaProperty("id",$S.generateId()),w.setMetaProperty("ref-fields",{$ref:Sc(e.$ref),description:Sc(e.description),summary:Sc(e.summary)}),w.setMetaProperty("ref-origin",d.uri),w.setMetaProperty("ref-referencing-element-id",ac($S.identify(e))),null!==(a=this.options.dereference.dereferenceOpts)&&void 0!==a&&a.continueOnError&&w.setMetaProperty("ref-referencing-element",e),Sa(y)&&Sa(w)&&(e.hasKey("description")&&"description"in y&&(w.remove("description"),w.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in y&&(w.remove("summary"),w.set("summary",e.get("summary")))),i.replaceWith(w,TS),!r&&w}async PathItemElement(e,t,r,s,n,i){var o;if(!ba(e.$ref))return;if(this.indirections.includes(e))return!1;const[a,c]=this.toAncestorLineage([...n,r]),l=this.toBaseURI(Sc(e.$ref)),u=gi(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(Sc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,c)}const d=bi(l,Sc(e.$ref));this.indirections.push(e);const m=Wc(d);let f;try{f=Cl(h.value.result,m)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(f.id=$S.identify(f),Ca(f)){const e=`path-item-${Sc($S.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=yv.refract(f),this.refractCache.set(e,f))}if(e===f){const t=new rs("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 xS(`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(f)){if(h.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new rs("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if("replace"===this.options.dereference.circular){var y,g;const t=new ta.sI(f.id,{type:"path-item",uri:h.uri,$ref:Sc(e.$ref)}),s=(null!==(y=null===(g=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===g?void 0:g.circularReplacer)&&void 0!==y?y:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,TS),!r&&s}}const v=gi(h.refSet.rootRef.uri)!==h.uri,b=["error","replace"].includes(this.options.dereference.circular);if((p||v||Vx(f)&&ba(f.$ref)||b||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!a.includesCycle(f)){c.add(e);const t=new CS({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{f=await kS(f,t,{keyMap:iE,nodeTypeGetter:nE})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}c.delete(e)}if(this.indirections.pop(),Vx(f)){var x;const t=new yv([...f.content],ac(f.meta),ac(f.attributes));t.setMetaProperty("id",$S.generateId()),e.forEach(((e,r,s)=>{t.remove(Sc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Sc(e.$ref)}),t.setMetaProperty("ref-origin",h.uri),t.setMetaProperty("ref-referencing-element-id",ac($S.identify(e))),null!==(x=this.options.dereference.dereferenceOpts)&&void 0!==x&&x.continueOnError&&t.setMetaProperty("ref-referencing-element",e),f=t}return i.replaceWith(f,TS),r?void 0:f}async LinkElement(e,t,r,s,n,i){if(!ba(e.operationRef)&&!ba(e.operationId))return;if(ba(e.operationRef)&&ba(e.operationId)){const t=new rs("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(t,e)}let o;if(ba(e.operationRef)){var a;const t=Wc(Sc(e.operationRef)),s=this.toBaseURI(Sc(e.operationRef)),n=gi(this.reference.uri)===s,c=!n;if(!this.options.resolve.internal&&n)return;if(!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(Sc(e.operationRef)),o=Cl(l.value.result,t)}catch(t){return this.handleDereferenceError(t,e)}if(Ca(o)){const e=`operation-${Sc($S.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=mv.refract(o),this.refractCache.set(e,o))}o=uc(o),o.setMetaProperty("ref-origin",l.uri);const u=uc(e);return null===(a=u.operationRef)||void 0===a||a.meta.set("operation",o),i.replaceWith(u,TS),r?void 0:u}if(ba(e.operationId)){var c;const t=Sc(e.operationId);let s;try{s=await this.toReference(wi(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=oS((e=>Ux(e)&&va(e.operationId)&&e.operationId.equals(t)),s.value.result),Jn(o)){const r=new rs(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(r,e)}const n=uc(e);return null===(c=n.operationId)||void 0===c||c.meta.set("operation",o),i.replaceWith(n,TS),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!ba(e.externalValue))return;if(e.hasKey("value")&&ba(e.externalValue)){const t=new rs("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(t,e)}const o=this.toBaseURI(Sc(e.externalValue)),a=gi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(Sc(e.externalValue))}catch(t){return this.handleDereferenceError(t,e)}const u=uc(l.value.result);u.setMetaProperty("ref-origin",l.uri);const p=uc(e);return p.value=u,i.replaceWith(p,TS),r?void 0:p}async MemberElement(e,t,r,s,n,i){var o;const a=n[n.length-1];if(!Sa(a)||!a.classes.contains("discriminator-mapping"))return;if(null===(o=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===o||!o.dereferenceDiscriminatorMapping)return!1;if(!ba(e.key)||!ba(e.value))return!1;if(this.indirections.includes(e))return!1;this.indirections.push(e);const[c,l]=this.toAncestorLineage([...n,r]),u=[...l].findLast(Qx),p=ac(u.getMetaProperty("ancestorsSchemaIdentifiers")),h=Sc(e.value),d=/^[a-zA-Z0-9\\.\\-_]+$/.test(h)?`#/components/schemas/${h}`:h,m=new Gb({$ref:d});m.setMetaProperty("ancestorsSchemaIdentifiers",p),l.add(m);const f=new CS({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(m),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});let y;try{y=await kS(m,f,{keyMap:iE,nodeTypeGetter:nE})}catch(e){return this.handleDereferenceError(e,m,l)}l.delete(m),this.indirections.pop();const g=uc(e);return g.value.setMetaProperty("ref-schema",y),i.replaceWith(g,TS),r?void 0:g}async SchemaElement(e,t,r,s,n,i){var o;if(!ba(e.$ref))return;if(this.indirections.includes(e))return!1;const[a,c]=this.toAncestorLineage([...n,r]);let l;try{l=await this.toReference(wi(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e,c)}let{uri:u}=l;const p=yS(u,e),h=gi(p),d=new kE({uri:h}),m=tS((e=>e.canRead(d)),this.options.resolve.resolvers),f=!m;let y,g=gi(this.reference.uri)===p,v=!g;this.indirections.push(e);try{if(m||f){u=this.toBaseURI(p);const e=p,t=vS(l.value.result);if(y=bS(e,t),y=vS(y),y.id=$S.identify(y),!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&v)return}else{if(u=this.toBaseURI(p),g=gi(this.reference.uri)===u,v=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&v)return;l=await this.toReference(wi(p));const e=Wc(p),t=vS(l.value.result);y=Cl(t,e),y=vS(y),y.id=$S.identify(y)}}catch(t){if(!(f&&t instanceof fS))return this.indirections.pop(),this.handleDereferenceError(t,e,c);if(uS(pS(p))){if(g=gi(this.reference.uri)===u,v=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&v)return;try{l=await this.toReference(wi(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}const t=pS(p),r=vS(l.value.result);try{y=hS(t,r)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}y=vS(y),y.id=$S.identify(y)}else{if(u=this.toBaseURI(p),g=gi(this.reference.uri)===u,v=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&v)return;try{l=await this.toReference(wi(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}const t=Wc(p),r=vS(l.value.result);try{y=Cl(r,t)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}y=vS(y),y.id=$S.identify(y)}}if(e===y){const t=new rs("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 xS(`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(y)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new rs("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if("replace"===this.options.dereference.circular){var b,x;const t=new ta.sI(y.id,{type:"json-schema",uri:l.uri,$ref:Sc(e.$ref)}),s=(null!==(b=null===(x=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===x?void 0:x.circularReplacer)&&void 0!==b?b:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,TS),!r&&s}}const w=gi(l.refSet.rootRef.uri)!==l.uri,E=["error","replace"].includes(this.options.dereference.circular);if((v||w||Qx(y)&&ba(y.$ref)||E||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!a.includesCycle(y)){c.add(e);const t=new CS({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{y=await kS(y,t,{keyMap:iE,nodeTypeGetter:nE})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}c.delete(e)}if(this.indirections.pop(),Zx(y)){const t=ac(y);return t.setMetaProperty("id",$S.generateId()),t.setMetaProperty("ref-fields",{$ref:Sc(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",ac($S.identify(e))),i.replaceWith(t,TS),!r&&t}if(Qx(y)){var S,j;const t=new Gb([...y.content],ac(y.meta),ac(y.attributes));if(t.setMetaProperty("id",$S.generateId()),e.forEach(((e,r,s)=>{t.remove(Sc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Sc(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",ac($S.identify(e))),null!==(S=this.options.dereference.dereferenceOpts)&&void 0!==S&&S.continueOnError&&t.setMetaProperty("ref-referencing-element",e),null!==(j=this.options.dereference.strategyOpts["openapi-3-1"])&&void 0!==j&&j.dereferenceDiscriminatorMapping){var O;const e=n[n.length-1],r=[...c].findLast(Qx),s=null==r?void 0:r.getMetaProperty("schemaName"),i=Sc(t.getMetaProperty("schemaName"));if(i&&s&&null!=e&&null!==(O=e.classes)&&void 0!==O&&O.contains("json-schema-allOf")){var A;const e=null!==(A=this.allOfDiscriminatorMapping.get(i))&&void 0!==A?A:[];e.push(r),this.allOfDiscriminatorMapping.set(i,e)}}y=t}return i.replaceWith(y,TS),r?void 0:y}}const FS=CS,IS=yc[Symbol.for("nodejs.util.promisify.custom")];const MS=class extends eS{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?mE.includes(e.mediaType):qx(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=Lc(oE),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new yE,i=new yE;let o,a=n;n.has(e.uri)?o=n.find(ZE(e.uri,"uri")):(o=new fE({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map((e=>new fE({...e,value:ac(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=new FS({reference:o,namespace:s,options:t}),l=await IS(a.rootRef.value,c,{keyMap:iE,nodeTypeGetter:nE});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new fE({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>n.add(e))),null===t.dereference.refSet&&n.clean(),i.clean(),l}},_S=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,s)=>{if(Oa(r)){const t=String(Sc(r.key));e.push(t)}else if(ja(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e}),[])};const RS=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&Sa(e.properties)&&e.properties.forEach((t=>{if(Sa(t))try{const e=this.modelPropertyMacro(Sc(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[..._S([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};var DS=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=qs,e.prototype["@@transducer/result"]=Us,e.prototype["@@transducer/step"]=function(e,t){return ys(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function NS(e){return function(t){return new DS(e,t)}}const LS=as(Ls([],NS,(function(e,t){for(var r,s=0,n=t.length,i=[];s<n;)ys(e,r=t[s],i)||(i[i.length]=r),s+=1;return i})));const BS=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!ja(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[..._S([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return void e.remove("allOf");if(!e.allOf.content.every(Qx)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[..._S([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=Lu.all([...t.content,e],{customMerge:e=>"enum"===Sc(e)?(e,t)=>{if(Ma(["json-schema-enum"],e)&&Ma(["json-schema-enum"],t)){const r=(e,t)=>!(ja(e)||ja(t)||Sa(e)||Sa(t))&&e.equals(Sc(t)),s=uc(e);return s.content=LS(r)([...e.content,...t.content]),s}return Lu(e,t)}:Lu});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}};const qS=class{parameterMacro;options;#s;OperationElement={enter:e=>{this.#s=e},leave:()=>{this.#s=void 0}};ParameterElement={leave:(e,t,r,s,n)=>{const i=this.#s?Sc(this.#s):null,o=Sc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=_S([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},US=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const JS=class extends ss{},{wrapError:VS}=co,HS=yc[Symbol.for("nodejs.util.promisify.custom")],zS=new nS,GS=(e,t,r,s)=>{Oa(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class WS extends FS{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...s}){super(s),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,s,n,i){try{if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(Sc(e.$ref)),a=gi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return!1;if(!this.options.resolve.external&&c)return!1;const l=await this.toReference(Sc(e.$ref)),u=bi(o,Sc(e.$ref));this.indirections.push(e);const p=Wc(u);let h=Cl(l.value.result,p);if(h.id=zS.identify(h),Ca(h)){const t=Sc(e.meta.get("referenced-element")),r=`${t}-${Sc(zS.identify(h))}`;if(this.refractCache.has(r))h=this.refractCache.get(r);else if(Uh(h))h=bv.refract(h),h.setMetaProperty("referenced-element",t),this.refractCache.set(r,h);else{h=this.namespace.getElementClass(t).refract(h),this.refractCache.set(r,h)}}if(e===h)throw new rs("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new xS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new ta.sI(h.id,{type:"reference",uri:l.uri,$ref:Sc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,GS),!r&&s}}const d=gi(l.refSet.rootRef.uri)!==l.uri,m=["error","replace"].includes(this.options.dereference.circular);if((c||d||Gx(h)||m)&&!t.includesCycle(h)){s.add(e);const i=new WS({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[..._S([...n,r,e]),"$ref"]});h=await HS(h,i,{keyMap:iE,nodeTypeGetter:nE}),s.delete(e)}this.indirections.pop();const f=uc(h);if(f.setMetaProperty("ref-fields",{$ref:Sc(e.$ref),description:Sc(e.description),summary:Sc(e.summary)}),f.setMetaProperty("ref-origin",l.uri),f.setMetaProperty("ref-referencing-element-id",ac(zS.identify(e))),Sa(h)&&(e.hasKey("description")&&"description"in h&&(f.remove("description"),f.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in h&&(f.remove("summary"),f.set("summary",e.get("summary")))),this.allowMetaPatches&&Sa(f)&&!f.hasKey("$$ref")){const e=bi(o,u);f.set("$$ref",e)}return i.replaceWith(f,GS),!r&&f}catch(t){const s=US(t),i=VS(s,{baseDoc:this.reference.uri,$ref:Sc(e.$ref),pointer:Wc(Sc(e.$ref)),fullPath:this.basePath??[..._S([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,s,n,i){try{if(!ba(e.$ref))return;if(this.indirections.includes(e))return!1;if(Ma(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(Sc(e.$ref)),a=gi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(Sc(e.$ref)),u=bi(o,Sc(e.$ref));this.indirections.push(e);const p=Wc(u);let h=Cl(l.value.result,p);if(h.id=zS.identify(h),Ca(h)){const e=`path-item-${Sc(zS.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=yv.refract(h),this.refractCache.set(e,h))}if(e===h)throw new rs("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new xS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new ta.sI(h.id,{type:"path-item",uri:l.uri,$ref:Sc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,GS),!r&&s}}const d=gi(l.refSet.rootRef.uri)!==l.uri,m=["error","replace"].includes(this.options.dereference.circular);if((c||d||Vx(h)&&ba(h.$ref)||m)&&!t.includesCycle(h)){s.add(e);const i=new WS({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[..._S([...n,r,e]),"$ref"]});h=await HS(h,i,{keyMap:iE,nodeTypeGetter:nE}),s.delete(e)}if(this.indirections.pop(),Vx(h)){const t=new yv([...h.content],ac(h.meta),ac(h.attributes));if(e.forEach(((e,r,s)=>{t.remove(Sc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Sc(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",ac(zS.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=bi(o,u);t.set("$$ref",e)}h=t}return i.replaceWith(h,GS),r?void 0:h}catch(t){const s=US(t),i=VS(s,{baseDoc:this.reference.uri,$ref:Sc(e.$ref),pointer:Wc(Sc(e.$ref)),fullPath:this.basePath??[..._S([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,s,n,i){try{if(!ba(e.$ref))return;if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let o=await this.toReference(wi(this.reference.uri)),{uri:a}=o;const c=yS(a,e),l=gi(c),u=new kE({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p;let d,m=gi(this.reference.uri)===c,f=!m;this.indirections.push(e);try{if(p||h){a=this.toBaseURI(c);const e=c,t=vS(o.value.result);if(d=bS(e,t),d=vS(d),d.id=zS.identify(d),!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return}else{if(a=this.toBaseURI(c),m=gi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(wi(c));const e=Wc(c),t=vS(o.value.result);d=Cl(t,e),d=vS(d),d.id=zS.identify(d)}}catch(e){if(!(h&&e instanceof fS))throw e;if(uS(pS(c))){if(m=gi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(wi(c));const e=pS(c),t=vS(o.value.result);d=hS(e,t),d=vS(d),d.id=zS.identify(d)}else{if(a=this.toBaseURI(Sc(c)),m=gi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(wi(c));const e=Wc(c),t=vS(o.value.result);d=Cl(t,e),d=vS(d),d.id=zS.identify(d)}}if(e===d)throw new rs("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new xS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(d)){if(o.refSet.circular=!0,"error"===this.options.dereference.circular)throw new rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new ta.sI(d.id,{type:"json-schema",uri:o.uri,$ref:Sc(e.$ref),baseURI:bi(a,c),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,GS),!r&&s}}const y=gi(o.refSet.rootRef.uri)!==o.uri,g=["error","replace"].includes(this.options.dereference.circular);if((f||y||Qx(d)&&ba(d.$ref)||g)&&!t.includesCycle(d)){s.add(e);const i=new WS({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[..._S([...n,r,e]),"$ref"]});d=await HS(d,i,{keyMap:iE,nodeTypeGetter:nE}),s.delete(e)}if(this.indirections.pop(),Zx(d)){const t=ac(d);return t.setMetaProperty("ref-fields",{$ref:Sc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",ac(zS.identify(e))),i.replaceWith(t,GS),!r&&t}if(Qx(d)){const t=new Gb([...d.content],ac(d.meta),ac(d.attributes));if(e.forEach(((e,r,s)=>{t.remove(Sc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Sc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",ac(zS.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=bi(a,c);t.set("$$ref",e)}d=t}return i.replaceWith(d,GS),r?void 0:d}catch(t){const s=US(t),i=new JS(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:Sc(e.$ref),fullPath:this.basePath??[..._S([...n,r,e]),"$ref"],cause:s});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async LinkElement(){}async ExampleElement(e,t,r,s,n,i){try{return await super.ExampleElement(e,t,r,s,n,i)}catch(t){const s=US(t),i=VS(s,{baseDoc:this.reference.uri,externalValue:Sc(e.externalValue),fullPath:this.basePath??[..._S([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const KS=WS,YS=Ua[Symbol.for("nodejs.util.promisify.custom")];const XS=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new KS({...n,options:s})),"function"==typeof t&&i.push(new RS({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new BS({options:s})),"function"==typeof e&&i.push(new qS({parameterMacro:e,options:s}));const o=YS(i,{nodeTypeGetter:nE});Object.assign(this,o)}},QS=yc[Symbol.for("nodejs.util.promisify.custom")];const ZS=class extends MS{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:s="non-strict",ancestors:n=[],...i}={}){super({...i}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=s,this.ancestors=[...n]}async dereference(e,t){const r=Lc(oE),s=t.dereference.refSet??new yE,n=new yE;let i,o=s;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=new fE({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map((e=>new fE({...e,value:ac(e.value)}))).forEach((e=>n.add(e))),i=n.find((t=>t.uri===e.uri)),o=n);const a=new XS({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await QS(o.rootRef.value,a,{keyMap:iE,nodeTypeGetter:nE});return t.dereference.immutable&&n.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new fE({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),n.clean(),c}},ej=e=>{const t=Sc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new ta.Sh({$ref:t},ac(r.meta),ac(r.attributes))},tj=async e=>{const{spec:t,timeout:r,redirects:s,requestInterceptor:n,responseInterceptor:i,pathDiscriminator:o=[],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:m}=tj,y=d.find((e=>e.match(t))),g=mi(vi())?vi():f,v=rr(e),b=bi(g,v);let x;m.has(t)?x=m.get(t):(x=dv.refract(t),x.classes.push("result"),m.set(t,x));const w=new pa([x]),E=wl(o),S=""===E?"":`#${E}`,j=Cl(x,E),O=new fE({uri:b,value:w}),A=new yE({refs:[O]});""!==E&&(A.rootRef=void 0);const P=[new Set([j])],k=[],$=await(async(e,t={})=>{const r=PE(bE,t);return ME(e,r)})(j,{resolve:{baseURI:`${b}${S}`,resolvers:[new GE({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new BE]},parse:{mediaType:mE.latest(),parsers:[new XE({allowEmpty:!1,sourceMap:!1}),new QE({allowEmpty:!1,sourceMap:!1}),new KE({allowEmpty:!1,sourceMap:!1}),new YE({allowEmpty:!1,sourceMap:!1}),new NE({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new ZS({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:P})],refSet:A,dereferenceOpts:{errors:k},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?bE.dereference.circularReplacer:ej}}),T=((e,t,r)=>new Gc({element:r}).transclude(e,t))(j,$,x),C=l?T:y.normalize(T);return{spec:Sc(C),errors:k}}catch(e){if(e instanceof jl)return{spec:t,errors:[]};throw e}};tj.cache=new WeakMap;const rj=tj;function sj(e,t,r){if(r||(r=new nj),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var s=function(s){var n=r.get(e);if(n)return n;for(var i in r.set(e,s),e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=t?sj(e[i],!0,r):e[i]);return s};switch(Ps(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 ms(e);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 nj=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),s=this.map[r];s||(this.map[r]=s=[]),s.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],s=0;s<r.length;s+=1){if((i=r[s])[0]===e)return i[1]}else{var n=this.hash(e);if(r=this.map[n])for(s=0;s<r.length;s+=1){var i;if((i=r[s])[0]===e)return i[1]}}},e}(),ij=function(){function e(e,t,r,s){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=s,this.inputs={}}return e.prototype["@@transducer/init"]=qs,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(gs(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,sj(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function oj(e,t,r){return function(s){return new ij(e,t,r,s)}}const aj=as(pn("groupBy",bn(4,[],Ls([],oj,(function(e,t,r,s){var n=ln((function(s,n){var i=r(n),o=e(gs(i,s)?s[i]:sj(t,!1),n);return o&&o["@@transducer/reduced"]?ra(s):(s[i]=o,s)}));return an(n,{},s)})))((function(e,t){return e.push(t),e}),[])));const cj=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);Sa(e)||(e=new ta.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);ja(t)||(t=new ta.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)}},lj=e=>e.replace(/\s/g,""),uj=e=>e.replace(/\W/gi,"_"),pj=(e,t,r)=>{const s=lj(e);return s.length>0?uj(s):((e,t)=>`${uj(lj(t.toLowerCase()))}${uj(lj(e))}`)(t,r)},hj=({storageField:e="x-normalized",operationIdNormalizer:t=pj}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],a=[],c=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){l=new cj(t,e,"operation-ids")},leave(){const e=aj((e=>Sc(e.operationId)),a);Object.entries(e).forEach((([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach(((t,r)=>{const s=`${e}${r+1}`;t.operationId=new i.elements.String(s)})))})),c.forEach((e=>{if(void 0===e.operationId)return;const t=String(Sc(e.operationId)),r=a.find((e=>Sc(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=ac.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=fn("path",Sc(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,s,c,u){if(void 0===e.operationId)return;const p=n([...u,s,e]);if(l.includes(p))return;const h=String(Sc(e.operationId)),d=vn(o),m=fn("method",Sc(e.meta.get("http-method"))),f=t(h,d,m);h!==f&&(e.operationId=new i.elements.String(f),e.set("__originalOperationId",h),e.meta.set("originalOperationId",h),a.push(e),l.append(p))}},LinkElement:{leave(e){s.isLinkElement(e)&&void 0!==e.operationId&&c.push(e)}}}}},dj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t,n=(e,t)=>!!r.isParameterElement(e)&&(!!r.isParameterElement(t)&&(!!r.isStringElement(e.name)&&(!!r.isStringElement(e.in)&&(!!r.isStringElement(t.name)&&(!!r.isStringElement(t.in)&&(Sc(e.name)===Sc(t.name)&&Sc(e.in)===Sc(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new cj(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,s,n,o){if(o.some(r.isComponentsElement))return;const{parameters:a}=e;r.isArrayElement(a)?i.push([...a.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,a,c){const l=vn(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...c,r,e]);if(o.includes(u))return;const p=iS([],["parameters","content"],e),h=LS(n,[...p,...l]);e.parameters=new rg(h),o.append(u)}}}}},mj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new cj(t,e,"security-requirements"),r.isArrayElement(t.security)&&(n=t.security)},leave(){i=void 0,n=void 0}},OperationElement:{leave(e,t,o,a,c){if(c.some(r.isComponentsElement))return;const l=s([...c,o,e]);if(i.includes(l))return;var u;void 0===e.security&&void 0!==n&&(e.security=new hg(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},fj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new cj(t,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e,t,i,o,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=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>ac.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[ac(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",ac(e.example)),n.append(u)))}}}}}},yj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new cj(t,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e,t,i,o,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=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>ac.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[ac(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",ac(e.example)),n.append(u)))}}}}}},gj=e=>{if(!Sa(e))return e;const t=[hj({operationIdNormalizer:(e,t,r)=>Jo({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),dj(),mj(),fj(),yj()];return Jc(e,t,{toolboxCreator:cE,visitorOptions:{keyMap:iE,nodeTypeGetter:nE}})},vj={name:"openapi-3-1-apidom",match:e=>Wo(e),normalize(e){if(!va(e)&&qo(e)&&!e.$$normalized){const r=(t=gj,e=>{const r=dv.refract(e);r.classes.push("result");const s=t(r),n=Sc(s);return rj.cache.set(n,s),Sc(s)})(e);return r.$$normalized=!0,r}var t;return va(e)?gj(e):e},resolve:async e=>rj(e)};function bj(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:s}=e;for(const n in s)for(const i in s[n]){if("PARAMETERS"===i.toUpperCase())continue;const o=s[n][i];if(!o||"object"!=typeof o)continue;const a={spec:e,pathName:n,method:i.toUpperCase(),operation:o},c=t(a);if(r&&c)return a}}const xj=()=>null,wj={mapTagOperations:function({spec:e,cb:t=xj,defaultTag:r="default",v2OperationIdCompatibilityMode:s}){const n={},i={};return bj(e,(({pathName:o,method:a,operation:c})=>{var l;(c.tags?(l=c.tags,Array.isArray(l)?l:[l]):[r]).forEach((r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const l=i[r],u=Jo(c,o,a,{v2OperationIdCompatibilityMode:s}),p=t({spec:e,pathName:o,method:a,operation:c,operationId:u});if(n[u])n[u]+=1,l[`${u}${n[u]}`]=p;else if(void 0!==l[u]){const e=n[u]||1;n[u]=e+1,l[`${u}${n[u]}`]=p;const t=l[u];delete l[u],l[`${u}${e}`]=t}else l[u]=p}))})),i},makeExecute:function(e={}){return({pathName:t,method:r,operationId:s})=>(n,i={})=>{const{requestInterceptor:o,responseInterceptor:a,userFetch:c}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:c,pathName:t,method:r,parameters:n,operationId:s,...i})}}};const Ej=(e,t,r,s,n)=>{if(e===el.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-url-template",Zc.charsToString(t,r,s)])}return el.SEM_OK},Sj=(e,t,r,s,n)=>{if(e===el.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable",Zc.charsToString(t,r,s)])}return el.SEM_OK},jj=(e,t,r,s,n)=>{if(e===el.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable-name",Zc.charsToString(t,r,s)])}return el.SEM_OK},Oj=(e,t,r,s,n)=>{if(e===el.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["literals",Zc.charsToString(t,r,s)])}return el.SEM_OK},Aj=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'}},Pj=e=>{const t=new Kc;t.ast=new Yc,t.ast.callbacks["server-url-template"]=Ej,t.ast.callbacks["server-variable"]=Sj,t.ast.callbacks["server-variable-name"]=jj,t.ast.callbacks.literals=Oj;return{result:t.parse(Aj,"server-url-template",e),ast:t.ast}},kj=(e,{strict:t=!1}={})=>{try{const r=Pj(e);if(!r.result.success)return!1;const s=[];r.ast.translate(s);const n=s.some((([e])=>"server-variable"===e));if(!t&&!n)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||n}catch{return!1}},$j=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),Tj=["literals","server-variable-name"],Cj=(e,t,r={})=>{const s={...{encoder:$j},...r},n=Pj(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>Tj.includes(e))).map((([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")};function Fj(){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 Ij=(e,t,r,s,n)=>(e===el.SEM_PRE?n.push(["slash",Zc.charsToString(t,r,s)]):el.SEM_POST,el.SEM_OK),Mj=(e,t,r,s,n)=>{if(e===el.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["path-template",Zc.charsToString(t,r,s)])}return el.SEM_OK},_j=(e,t,r,s,n)=>(e===el.SEM_PRE?n.push(["path-literal",Zc.charsToString(t,r,s)]):el.SEM_POST,el.SEM_OK),Rj=(e,t,r,s,n)=>(e===el.SEM_PRE?n.push(["template-expression",Zc.charsToString(t,r,s)]):el.SEM_POST,el.SEM_OK),Dj=(e,t,r,s,n)=>(e===el.SEM_PRE?n.push(["template-expression-param-name",Zc.charsToString(t,r,s)]):el.SEM_POST,el.SEM_OK),Nj=new Fj,Lj=e=>{const t=new Kc;t.ast=new Yc,t.ast.callbacks["path-template"]=Mj,t.ast.callbacks.slash=Ij,t.ast.callbacks["path-literal"]=_j,t.ast.callbacks["template-expression"]=Rj,t.ast.callbacks["template-expression-param-name"]=Dj;return{result:t.parse(Nj,"path-template",e),ast:t.ast}},Bj=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),qj=["slash","path-literal","template-expression-param-name"],Uj=(e,t,r={})=>{const s={...{encoder:Bj},...r},n=Lj(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>qj.includes(e))).map((([e,r])=>"template-expression-param-name"===e?Object.prototype.hasOwnProperty.call(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")},Jj=(new Fj,new Kc,{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}){e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(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:s}){if(void 0!==t){const n=e.url.replace(s,""),i=Uj(n,{[r.name]:t});e.url=s+i}},formData:function({req:e,value:t,parameter:r}){!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(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 Vj(e,t){return t.includes("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 Hj(){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 Hj;const zj=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)},Gj=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),Wj=e=>Gj(e)?e.slice(1,-1):e,Kj=e=>`"${e}"`,Yj=e=>e,Xj=new Kc,Qj=new Hj,Zj=(e,{strict:t=!0,quoted:r=null}={})=>{try{const s=t?"cookie-value":"lenient-cookie-value",n=Xj.parse(Qj,s,e);return"boolean"==typeof r?n.success&&r===Gj(e):n.success}catch{return!1}},eO=e=>{const t=(new TextEncoder).encode(e).reduce(((e,t)=>e+String.fromCharCode(t)),"");return btoa(t)},tO=(e,t=eO)=>{const r=String(e);if(Zj(r))return r;const s=Gj(r),n=t(s?Wj(r):r);return s?Kj(n):n},rO=e=>eO(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),sO=e=>tO(e,rO),nO=new Kc,iO=new Hj,oO=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return nO.parse(iO,r,e).success}catch{return!1}},aO=e=>{if(!oO(e))throw new TypeError(`Invalid cookie name: ${e}`)},cO=e=>{if(!Zj(e))throw new TypeError(`Invalid cookie value: ${e}`)},lO={encoders:{name:Yj,value:sO},validators:{name:aO,value:cO}},uO=(e,t,r={})=>{const s={...lO,...r,encoders:{...lO.encoders,...r.encoders},validators:{...lO.validators,...r.validators}},n=s.encoders.name(e),i=s.encoders.value(t);return s.validators.name(n),s.validators.value(i),`${n}=${i}`},pO=(e,t={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map((([e,r])=>uO(e,r,t))).join("; "),hO=new Kc,dO=new Hj,mO=e=>{const t=String(e);if(Zj(t))return t;const r=Gj(t),s=r?Wj(t):t;let n="";for(const e of s)n+=hO.parse(dO,"cookie-octet",e).success?e:zj(e);return r?Kj(n):n},fO=(new Kc,new Hj,e=>{if(!oO(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)}),yO=e=>mO(e).replace(/[=&]/gu,(e=>"="===e?"%3D":"%26")),gO=(e,t={})=>pO(e,Ac({encoders:{name:Yj,value:yO},validators:{name:fO,value:cO}},t));function vO({req:e,value:t,parameter:r,baseURL:s}){const{name:n,style:i,explode:o,content:a}=r;if(void 0===t)return;const c=e.url.replace(s,"");let l;if(a){const e=Object.keys(a)[0];l=Uj(c,{[n]:t},{encoder:t=>T(Vj(t,e))})}else l=Uj(c,{[n]:t},{encoder:e=>C({key:r.name,value:e,style:i||"simple",explode:o??!1,escape:"reserved"})});e.url=s+l}function bO({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const s=Vj(t,Object.keys(r.content)[0]);if(s)e.query[r.name]=s;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:s,explode:n,allowReserved:i}=r;e.query[r.name]={value:t,serializationOption:{style:s,explode:n,allowReserved:i}}}else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}const xO=["accept","authorization","content-type"];function wO({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(xO.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];e.headers[t.name]=Vj(r,s)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=C({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}function EO({req:e,parameter:t,value:r}){const{name:s}=t;if(e.headers=e.headers||{},void 0!==r&&t.content){const n=Vj(r,Object.keys(t.content)[0]);e.headers.Cookie=gO({[s]:n})}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const n=C({key:t.name,value:r,escape:!1,style:t.style||"form",explode:t.explode??!1}),i=Array.isArray(r)&&t.explode?`${s}=${n}`:n;e.headers.Cookie=gO({[s]:i})}}const SO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:jO}=SO,OO=jO;function AO(e,t){const{operation:r,requestBody:s,securities:n,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={}}=t,o=r.security||s.security||[],a=i&&!!Object.keys(i).length,c=s?.components?.securitySchemes||{};if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!a||!o||Array.isArray(r.security)&&!r.security.length)return e;return o.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e],r=c[e];if(!t)return;const s=t.value||t,{type:o}=r;if(t)if("apiKey"===o)"query"===r.in&&(n.query[r.name]=s),"header"===r.in&&(n.headers[r.name]=s),"cookie"===r.in&&(n.cookies[r.name]=s);else if("http"===o){if(/^basic$/i.test(r.scheme)){const e=s.username||"",t=s.password||"",r=OO(`${e}:${t}`);n.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(n.headers.Authorization=`Bearer ${s}`)}else if("oauth2"===o||"openIdConnect"===o){const e=t.token||{},s=e[r["x-tokenName"]||"access_token"];let i=e.token_type;i&&"bearer"!==i.toLowerCase()||(i="Bearer"),n.headers.Authorization=`${i} ${s}`}}))})),n}({request:t,securities:n,operation:r,spec:i});const c=r.requestBody||{},l=Object.keys(c.content||{}),u=a&&l.indexOf(a)>-1;if(s||o){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&&qo(t.content)})).reduce(((e,[,t])=>e.concat(Object.keys(t.content))),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(s)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof s){const e=c.content[a]?.encoding??{};t.form={},Object.keys(s).forEach((r=>{let n;try{n=JSON.parse(s[r])}catch{n=s[r]}t.form[r]={value:n,encoding:e[r]||{}}}))}else if("string"==typeof s){const e=c.content[a]?.encoding??{};try{t.form={};const r=JSON.parse(s);Object.entries(r).forEach((([r,s])=>{t.form[r]={value:s,encoding:e[r]||{}}}))}catch{t.form=s}}else t.form=s;else t.body=s}else t.body=s;return t}function PO(e,t){const{spec:r,operation:s,securities:n,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={},specSecurity:o=[]}=t,a=r.security||o,c=i&&!!Object.keys(i).length,l=s.securityDefinitions;if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!c||!a||Array.isArray(r.security)&&!r.security.length)return e;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e];if(!t)return;const{token:r}=t,s=t.value||t,o=l[e],{type:a}=o,c=o["x-tokenName"]||"access_token",u=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===o.in?"query":"headers";n[e]=n[e]||{},n[e][o.name]=s}else if("basic"===a)if(s.header)n.headers.authorization=s.header;else{const e=s.username||"",t=s.password||"";s.base64=OO(`${e}:${t}`),n.headers.authorization=`Basic ${s.base64}`}else"oauth2"===a&&u&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",n.headers.authorization=`${p} ${u}`)}))})),n}({request:t,securities:n,operation:s,spec:r}),t.body||t.form||a)i?t.headers["Content-Type"]=i:Array.isArray(s.consumes)?[t.headers["Content-Type"]]=s.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:s.parameters&&s.parameters.filter((e=>"file"===e.type)).length?t.headers["Content-Type"]="multipart/form-data":s.parameters&&s.parameters.filter((e=>"formData"===e.in)).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=s.parameters&&s.parameters.filter((e=>"body"===e.in)).length>0,r=s.parameters&&s.parameters.filter((e=>"formData"===e.in)).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(s.produces)&&s.produces.length>0&&(t.headers.accept=s.produces.join(", ")),t}function kO(e,t){return`${t.toLowerCase()}-${e}`}function $O(e,t){return e&&e.paths?function(e,t){return bj(e,t,!0)||null}(e,(({pathName:e,method:r,operation:s})=>{if(!s||"object"!=typeof s)return!1;const n=s.operationId;return[Jo(s,e,r),kO(e,r),n].some((e=>e&&e===t))})):null}const TO=e=>Array.isArray(e)?e:[],CO=(e,{recurse:t=!0,depth:r=1}={})=>{if(qo(e)){if("object"===e.type||"array"===e.type||Array.isArray(e.type)&&(e.type.includes("object")||e.type.includes("array")))return e;if(!(r>g)&&t){const s=Array.isArray(e.oneOf)?e.oneOf.find((e=>CO(e,{recurse:t,depth:r+1}))):void 0;if(s)return s;const n=Array.isArray(e.anyOf)?e.anyOf.find((e=>CO(e,{recurse:t,depth:r+1}))):void 0;if(n)return n}}},FO=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if(qo(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},IO=e=>{try{return new URL(e)}catch{const t=new URL(e,f),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 MO extends ss{}const _O={buildRequest:RO};function RO(e){const{spec:t,operationId:r,responseContentType:s,scheme:n,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:l,serverVariables:u,http:p,signal:h,serverVariableEncoder:m}=e;let{parameters:f,parameterBuilders:y,baseURL:g}=e;const v=Ko(t);y||(y=v?d:Jj);let b={url:"",credentials:p&&p.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(b.signal=h),i&&(b.requestInterceptor=i),o&&(b.responseInterceptor=o),c&&(b.userFetch=c);const x=$O(t,r);if(!x)throw new MO(`Operation ${r} not found`);const{operation:w={},method:E,pathName:S}=x;if(g=g??NO({spec:t,scheme:n,contextUrl:a,server:l,serverVariables:u,pathName:S,method:E,serverVariableEncoder:m}),b.url+=g,!r)return delete b.cookies,b;b.url+=S,b.method=`${E}`.toUpperCase(),f=f||{};const j=t.paths[S]||{};s&&(b.headers.accept=s);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((s=>{r.push(t[e][s])}))})),r})([].concat(TO(w.parameters)).concat(TO(j.parameters)));O.forEach((e=>{const r=y[e.in];let s;if("body"===e.in&&e.schema&&e.schema.properties&&(s=f),s=e&&e.name&&f[e.name],void 0===s?s=e&&e.name&&f[`${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!==s){if(void 0!==e.default&&void 0===s&&(s=e.default),void 0===s&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);v&&"string"==typeof s&&(Qa("type",e.schema)&&"string"==typeof e.schema.type&&CO(e.schema,{recurse:!1})?s=FO({value:s,silentFail:!1}):(Qa("type",e.schema)&&Array.isArray(e.schema.type)&&CO(e.schema,{recurse:!1})||!Qa("type",e.schema)&&CO(e.schema,{recurse:!0}))&&(s=FO({value:s,silentFail:!0}))),r&&r({req:b,parameter:e,value:s,operation:w,spec:t,baseURL:g})}}));const A={...e,operation:w};if(b=v?AO(A,b):PO(A,b),b.cookies&&Object.keys(b.cookies).length>0){const e=gO(b.cookies);hp(b.headers.Cookie)?b.headers.Cookie+=`; ${e}`:b.headers.Cookie=e}return b.cookies&&delete b.cookies,N(b)}const DO=e=>e?e.replace(/\W/g,""):null;function NO(e){return Ko(e.spec)?function({spec:e,pathName:t,method:r,server:s,contextUrl:n,serverVariables:i={},serverVariableEncoder:o}){let a,c=[],l="";const u=e?.paths?.[t]?.[(r||"").toLowerCase()]?.servers,p=e?.paths?.[t]?.servers,h=e?.servers;c=LO(u)?u:LO(p)?p:LO(h)?h:[y],s&&(a=c.find((e=>e.url===s)),a&&(l=s));l||([a]=c,l=a.url);if(kj(l,{strict:!0})){const e=Object.entries({...a.variables}).reduce(((e,[t,r])=>(e[t]=r.default,e)),{});l=Cj(l,{...e,...i},{encoder:"function"==typeof o?o:vE})}return function(e="",t=""){const r=IO(e&&t?bi(t,e):e),s=IO(t),n=DO(r.protocol)||DO(s.protocol),i=r.host||s.host,o=r.pathname;let a;a=n&&i?`${n}://${i+o}`:o;return"/"===a[a.length-1]?a.slice(0,-1):a}(l,n)}(e):function({spec:e,scheme:t,contextUrl:r=""}){const s=IO(r),n=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||n||DO(s.protocol)||"http",o=e.host||s.host||"",a=e.basePath||"";let c;c=i&&o?`${i}://${o+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(e)}const LO=e=>Array.isArray(e)&&e.length>0;const{q$:BO}=n,qO=BO;function UO(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof UO))return new UO(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,UO.makeApisTagOperation(this)),this)));return r.client=this,r}UO.http=er,UO.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),s=>("string"==typeof s&&(s={url:s}),s=N(s),s=t(s),r(e(s)))}.bind(null,UO.http),UO.resolveStrategies={"openapi-3-1-apidom":vj,"openapi-3-0":Xo,"openapi-2-0":Yo,generic:Ho},UO.resolve=Qo({strategies:[UO.resolveStrategies["openapi-3-1-apidom"],UO.resolveStrategies["openapi-3-0"],UO.resolveStrategies["openapi-2-0"],UO.resolveStrategies.generic]}),UO.resolveSubtree=ea({strategies:[UO.resolveStrategies["openapi-3-1-apidom"],UO.resolveStrategies["openapi-3-0"],UO.resolveStrategies["openapi-2-0"],UO.resolveStrategies.generic]}),UO.execute=function({http:e,fetch:t,spec:r,operationId:s,pathName:n,method:i,parameters:o,securities:a,...c}){const l=e||t||er;n&&i&&!s&&(s=kO(n,i));const u=_O.buildRequest({spec:r,operationId:s,parameters:o,securities:a,http:l,...c});return u.body&&(qo(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},UO.serializeRes=Zt,UO.serializeHeaders=Qt,UO.clearCache=function(){$o.refs.clearCache()},UO.makeApisTagOperation=function(e={}){const t=wj.makeExecute(e);return{apis:wj.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},UO.buildRequest=RO,UO.helpers={opId:Jo},UO.getBaseUrl=NO,UO.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:GE}},parse:{parsers:{JsonParser:KE,YamlParser:YE,OpenApiJson3_1Parser:XE,OpenApiYaml3_1Parser:QE}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:ZS}}},UO.prototype={http:er,execute(e){return this.applyDefaults(),UO.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(e={}){return UO.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,pathDiscriminator:this.pathDiscriminator||[],skipNormalization:this.skipNormalization||!1,...e}).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},UO.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(zo(e)&&qO(t)){const r=new URL(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}else if(Ko(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[y])}};const{helpers:JO}=UO,VO=UO})(),s=s.default})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerClient=t():e.SwaggerClient=t()}(window,(()=>(()=>{var e={4744(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function n(e,t,r){return e.concat(t).map((function(e){return s(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var n={};return r.isMergeableObject(e)&&i(e).forEach((function(t){n[t]=s(e[t],r)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(i,r)(e[i],t[i],r):n[i]=s(t[i],r))})),n}function c(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||n,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=s;var o=Array.isArray(r);return o===Array.isArray(e)?o?i.arrayMerge(e,r,i):a(e,r,i):s(r,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},5580(e,t,r){var s=r(6110)(r(9325),"DataView");e.exports=s},1549(e,t,r){var s=r(2032),n=r(3862),i=r(6721),o=r(2749),a=r(5749);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},79(e,t,r){var s=r(3702),n=r(80),i=r(4739),o=r(8655),a=r(3556);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8223(e,t,r){var s=r(6110)(r(9325),"Map");e.exports=s},3661(e,t,r){var s=r(3040),n=r(7670),i=r(289),o=r(4509),a=r(2949);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},2804(e,t,r){var s=r(6110)(r(9325),"Promise");e.exports=s},6545(e,t,r){var s=r(6110)(r(9325),"Set");e.exports=s},8859(e,t,r){var s=r(3661),n=r(1380),i=r(1459);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},7217(e,t,r){var s=r(79),n=r(1420),i=r(938),o=r(3605),a=r(9817),c=r(945);function l(e){var t=this.__data__=new s(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1873(e,t,r){var s=r(9325).Symbol;e.exports=s},7828(e,t,r){var s=r(9325).Uint8Array;e.exports=s},8303(e,t,r){var s=r(6110)(r(9325),"WeakMap");e.exports=s},9770(e){e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},695(e,t,r){var s=r(8096),n=r(2428),i=r(6449),o=r(3656),a=r(361),c=r(7167),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&n(e),p=!r&&!u&&o(e),h=!r&&!u&&!p&&c(e),d=r||u||p||h,m=d?s(e.length,String):[],f=m.length;for(var y in e)!t&&!l.call(e,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,f))||m.push(y);return m}},4528(e){e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},4248(e){e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},6025(e,t,r){var s=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},2199(e,t,r){var s=r(4528),n=r(6449);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},2552(e,t,r){var s=r(1873),n=r(659),i=r(9350),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7534(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},270(e,t,r){var s=r(7068),n=r(346);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,a))}},7068(e,t,r){var s=r(7217),n=r(5911),i=r(1986),o=r(689),a=r(5861),c=r(6449),l=r(3656),u=r(7167),p="[object Arguments]",h="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,f,y,g){var v=c(e),b=c(t),x=v?h:a(e),w=b?h:a(t),E=(x=x==p?d:x)==d,S=(w=w==p?d:w)==d,j=x==w;if(j&&l(e)){if(!l(t))return!1;v=!0,E=!1}if(j&&!E)return g||(g=new s),v||u(e)?n(e,t,r,f,y,g):i(e,t,x,r,f,y,g);if(!(1&r)){var O=E&&m.call(e,"__wrapped__"),A=S&&m.call(t,"__wrapped__");if(O||A){var P=O?e.value():e,k=A?t.value():t;return g||(g=new s),y(P,k,r,f,g)}}return!!j&&(g||(g=new s),o(e,t,r,f,y,g))}},5083(e,t,r){var s=r(1882),n=r(7296),i=r(3805),o=r(7473),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!(!i(e)||n(e))&&(s(e)?h:a).test(o(e))}},4901(e,t,r){var s=r(2552),n=r(294),i=r(346),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[s(e)]}},8984(e,t,r){var s=r(5527),n=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8096(e){e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},7301(e){e.exports=function(e){return function(t){return e(t)}}},9219(e){e.exports=function(e,t){return e.has(t)}},5481(e,t,r){var s=r(9325)["__core-js_shared__"];e.exports=s},5911(e,t,r){var s=r(8859),n=r(4248),i=r(9219);e.exports=function(e,t,r,o,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 m=-1,f=!0,y=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var g=e[m],v=t[m];if(o)var b=l?o(v,g,m,t,e,c):o(g,v,m,e,t,c);if(void 0!==b){if(b)continue;f=!1;break}if(y){if(!n(t,(function(e,t){if(!i(y,t)&&(g===e||a(g,e,r,o,c)))return y.push(t)}))){f=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){f=!1;break}}return c.delete(e),c.delete(t),f}},1986(e,t,r){var s=r(1873),n=r(7828),i=r(5288),o=r(5911),a=r(317),c=r(4247),l=s?s.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,s,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 n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+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 m=1&s;if(d||(d=c),e.size!=t.size&&!m)return!1;var f=h.get(e);if(f)return f==t;s|=2,h.set(e,t);var y=o(d(e),d(t),s,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689(e,t,r){var s=r(2),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,l=s(e),u=l.length;if(u!=s(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:n.call(t,h)))return!1}var d=a.get(e),m=a.get(t);if(d&&m)return d==t&&m==e;var f=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=c?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(!(void 0===b?g===v||o(g,v,r,i,a):b)){f=!1;break}y||(y="constructor"==h)}if(f&&!y){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(f=!1)}return a.delete(e),a.delete(t),f}},2459(e,t,r){var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},2(e,t,r){var s=r(2199),n=r(4664),i=r(5950);e.exports=function(e){return s(e,i,n)}},2651(e,t,r){var s=r(4218);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},6110(e,t,r){var s=r(5083),n=r(392);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},659(e,t,r){var s=r(1873),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[a]=r:delete e[a]),n}},4664(e,t,r){var s=r(9770),n=r(3345),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},5861(e,t,r){var s=r(5580),n=r(8223),i=r(2804),o=r(6545),a=r(8303),c=r(2552),l=r(7473),u="[object Map]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",m="[object DataView]",f=l(s),y=l(n),g=l(i),v=l(o),b=l(a),x=c;(s&&x(new s(new ArrayBuffer(1)))!=m||n&&x(new n)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||a&&x(new a)!=d)&&(x=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?l(r):"";if(s)switch(s){case f:return m;case y:return u;case g:return p;case v:return h;case b:return d}return t}),e.exports=x},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},2032(e,t,r){var s=r(5804);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,r){var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},2749(e,t,r){var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5749(e,t,r){var s=r(5804);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,r){var s,n=r(5481),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},5527(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,r){var s=r(6025),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},4739(e,t,r){var s=r(6025);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},8655(e,t,r){var s=r(6025);e.exports=function(e){return s(this.__data__,e)>-1}},3556(e,t,r){var s=r(6025);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},3040(e,t,r){var s=r(1549),n=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},7670(e,t,r){var s=r(2651);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var s=r(2651);e.exports=function(e){return s(this,e).get(e)}},4509(e,t,r){var s=r(2651);e.exports=function(e){return s(this,e).has(e)}},2949(e,t,r){var s=r(2651);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},317(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},5804(e,t,r){var s=r(6110)(Object,"create");e.exports=s},3650(e,t,r){var s=r(4335)(Object.keys,Object);e.exports=s},6009(e,t,r){e=r.nmd(e);var s=r(2459),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},9325(e,t,r){var s=r(2459),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},1380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459(e){e.exports=function(e){return this.__data__.has(e)}},4247(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},1420(e,t,r){var s=r(79);e.exports=function(){this.__data__=new s,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var s=r(79),n=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},7473(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""}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428(e,t,r){var s=r(7534),n=r(346),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var s=r(1882),n=r(294);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},3812(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},3656(e,t,r){e=r.nmd(e);var s=r(9325),n=r(9935),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},2404(e,t,r){var s=r(270);e.exports=function(e,t){return s(e,t)}},1882(e,t,r){var s=r(2552),n=r(3805);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5187(e){e.exports=function(e){return null===e}},8023(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},5015(e,t,r){var s=r(2552),n=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},7167(e,t,r){var s=r(4901),n=r(7301),i=r(6009),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},5950(e,t,r){var s=r(695),n=r(8984),i=r(4894);e.exports=function(e){return i(e)?s(e):n(e)}},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)}}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},2340(e,t,r){const s=r(6048);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{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((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(s(e),t))}find(e,t){return e=n(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&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},5973(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 s=r(5187),n=r(5015),i=r(8023),o=r(3812),a=r(3805),c=r(5105),l=r(6804);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(s,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,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 s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(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},866(e,t,r){const s=r(6048),n=r(2340);class i extends n{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},6804(e,t,r){const s=r(316),n=r(1067),i=r(1167),o=r(239),a=r(2242),c=r(6233),l=r(7726),u=r(1045),p=r(6303),h=r(4540),d=r(2340),m=r(866),f=r(5973);function y(e){if(e instanceof s)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(y));if("object"==typeof e){return new u(e)}return e}s.prototype.ObjectElement=u,s.prototype.RefElement=h,s.prototype.MemberElement=l,s.prototype.refract=y,d.prototype.refract=y,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:d,ObjectSlice:m,KeyValuePair:f}},6303(e,t,r){const s=r(316);e.exports=class extends s{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)}}},4540(e,t,r){const s=r(316);e.exports=class extends s{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)}}},4035(e,t,r){const s=r(3110),n=r(6804);t.g$=s,t.KeyValuePair=r(5973),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(5105),r(5147)},6233(e,t,r){const s=r(6048),n=r(316),i=r(2340);class o extends n{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((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}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||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}find(e){return new i(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)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2242(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},316(e,t,r){const s=r(2404),n=r(5973),i=r(2340);class o{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 o?this.content.toValue():this.content instanceof n?{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 i;const s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(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 o)this._content=e;else if(e instanceof i)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 n)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 i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7726(e,t,r){const s=r(5973),n=r(316);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),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)}}},1067(e,t,r){const s=r(316);e.exports=class extends s{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")}}},239(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},1045(e,t,r){const s=r(6048),n=r(3805),i=r(6233),o=r(7726),a=r(866);e.exports=class extends i{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(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.value=t:this.content.push(new o(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(((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},1167(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},5147(e,t,r){const s=r(5105);e.exports=class extends s{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 s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)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 s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}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([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),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 s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);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 s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},5105(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]))}))}}},8068(e){"use strict";var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,s)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,a=(e,t)=>{for(var r in t||(t={}))n.call(t,r)&&o(e,r,t[r]);if(s)for(var r of s(t))i.call(t,r)&&o(e,r,t[r]);return e},c=(e,t,r)=>o(e,"symbol"!=typeof t?t+"":t,r),l={};((t,r)=>{for(var s in r)e(t,s,{get:r[s],enumerable:!0})})(l,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>u,default:()=>m});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"),s=this._dict_ranges[t];let n=0;for(const[,e]of Object.entries(s)){const[t,r]=e;n+=Math.abs(r-t)}r=new Array(n);let i=0;for(const[,e]of Object.entries(s)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const t=this.lowerBound<=this.upperBound,s=this.lowerBound,n=this.upperBound;if(t)for(let e=s;e<n;e++)r[i++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=s;e>n;e--)r[i++]=String.fromCharCode(e),this.dictIndex=e}r.length=i}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 s=[];do{const n=r%e;r=Math.trunc(r/e),s.push(t[n])}while(0!==r);const n=s.join("");return this.counter+=1,n})),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,s=this.dict;for(let n=0;n<e;n++){const e=Math.floor(Math.random()*r);t[n]=s[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 s=e.slice(0,2),n=Number.parseInt(e.slice(2),10);return"$s"===s?r[s]().padStart(n,"0"):"$t"===s&&t?r[s](n,t):r[s](n)}))})),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 s=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,s),s})),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 s=e-9,n=Math.round(Math.random()*(s>15?15:s)),i=this.randomUUID(s);return"".concat(i.substring(0,n)).concat(r).concat(i.substring(n)).concat(n.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),s=Number.parseInt(e.slice(2),10);return t[r](s)})).replace(/^(.*?)(t{8,})(.*)$/g,((t,r,s)=>e.substring(r.length,r.length+s.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 s=Number.parseInt(r.substring(r.length-1),16);return new Date(1e3*Number.parseInt(r.substring(s,s+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:s,length:n,counter:i}=t;this.uuidLength=n,this.setDictionary(r,s),this.setCounter(i),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,m=h;return d=l,((s,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of r(i))n.call(s,c)||c===o||e(s,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return s})(e({},"__esModule",{value:!0}),d)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},8675(e,t,r){e.exports=r(850)},8623(e,t,r){"use strict";var s=r(694);e.exports=s},7257(e,t,r){"use strict";r(6605),r(4502),r(6371),r(9363),r(7057);var s=r(2046);e.exports=s.AggregateError},850(e,t,r){"use strict";e.exports=r(6076)},6076(e,t,r){"use strict";r(1599);var s=r(8623);e.exports=s},2159(e,t,r){"use strict";var s=r(2250),n=r(4640),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},43(e,t,r){"use strict";var s=r(4018),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2156(e){"use strict";e.exports=function(){}},6624(e,t,r){"use strict";var s=r(6285),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},4436(e,t,r){"use strict";var s=r(7374),n=r(4849),i=r(575),o=function(e){return function(t,r,o){var a=s(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,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:o(!0),indexOf:o(!1)}},5807(e,t,r){"use strict";var s=r(1907),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},3948(e,t,r){"use strict";var s=r(2623),n=r(2250),i=r(5807),o=r(6264)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(s=i(t))&&n(t.callee)?"Arguments":s}},9595(e,t,r){"use strict";var s=r(9724),n=r(1042),i=r(3846),o=r(4284);e.exports=function(e,t,r){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var p=a[u];s(e,p)||r&&s(r,p)||c(e,p,l(t,p))}}},7382(e,t,r){"use strict";var s=r(8828);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},9550(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},1626(e,t,r){"use strict";var s=r(9447),n=r(4284),i=r(5817);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5817(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8055(e,t,r){"use strict";var s=r(1626);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},2532(e,t,r){"use strict";var s=r(5951),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},9447(e,t,r){"use strict";var s=r(8828);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552(e,t,r){"use strict";var s=r(5951),n=r(6285),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9287(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}},376(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6794(e,t,r){"use strict";var s=r(5951).navigator,n=s&&s.userAgent;e.exports=n?String(n):""},798(e,t,r){"use strict";var s,n,i=r(5951),o=r(6794),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(s=u.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},5762(e,t,r){"use strict";var s=r(1907),n=Error,i=s("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},5884(e,t,r){"use strict";var s=r(1626),n=r(5762),i=r(3888),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):s(e,"stack",n(r,a)))}},3888(e,t,r){"use strict";var s=r(8828),n=r(5817);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},1091(e,t,r){"use strict";var s=r(5951),n=r(6024),i=r(2361),o=r(2250),a=r(3846).f,c=r(7463),l=r(2046),u=r(8311),p=r(1626),h=r(9724);r(6128);var d=function(e){var t=function(r,s,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,s)}return new e(r,s,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,m,f,y,g,v,b,x,w=e.target,E=e.global,S=e.stat,j=e.proto,O=E?s:S?s[w]:s[w]&&s[w].prototype,A=E?l:l[w]||p(l,w,{})[w],P=A.prototype;for(f in t)n=!(r=c(E?f:w+(S?".":"#")+f,e.forced))&&O&&h(O,f),g=A[f],n&&(v=e.dontCallGetSet?(x=a(O,f))&&x.value:O[f]),y=n&&v?v:t[f],(r||j||typeof g!=typeof y)&&(b=e.bind&&n?u(y,s):e.wrap&&n?d(y):j&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(A,f,b),j&&(h(l,m=w+"Prototype")||p(l,m,{}),p(l[m],f,y),e.real&&P&&(r||!P[f])&&p(P,f,y)))}},8828(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},6024(e,t,r){"use strict";var s=r(1505),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?o.bind(i):function(){return o.apply(i,arguments)})},8311(e,t,r){"use strict";var s=r(2361),n=r(2159),i=r(1505),o=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1505(e,t,r){"use strict";var s=r(8828);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3930(e,t,r){"use strict";var s=r(1505),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},6833(e,t,r){"use strict";var s=r(9447),n=r(9724),i=Function.prototype,o=s&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},1871(e,t,r){"use strict";var s=r(1907),n=r(2159);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},2361(e,t,r){"use strict";var s=r(5807),n=r(1907);e.exports=function(e){if("Function"===s(e))return n(e)}},1907(e,t,r){"use strict";var s=r(1505),n=Function.prototype,i=n.call,o=s&&n.bind.bind(i,i);e.exports=s?o:function(e){return function(){return i.apply(e,arguments)}}},5582(e,t,r){"use strict";var s=r(2046),n=r(5951),i=r(2250),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(s[e])||o(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},3448(e,t,r){"use strict";var s=r(3948),n=r(9367),i=r(7136),o=r(3742),a=r(6264)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[s(e)]}},300(e,t,r){"use strict";var s=r(3930),n=r(2159),i=r(6624),o=r(4640),a=r(3448),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return i(s(r,e));throw new c(o(e)+" is not iterable")}},9367(e,t,r){"use strict";var s=r(2159),n=r(7136);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},5951(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9724(e,t,r){"use strict";var s=r(1907),n=r(9298),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},8530(e){"use strict";e.exports={}},2416(e,t,r){"use strict";var s=r(5582);e.exports=s("document","documentElement")},3648(e,t,r){"use strict";var s=r(9447),n=r(8828),i=r(9552);e.exports=!s&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6946(e,t,r){"use strict";var s=r(1907),n=r(8828),i=r(5807),o=Object,a=s("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},4084(e,t,r){"use strict";var s=r(2250),n=r(6285),i=r(9192);e.exports=function(e,t,r){var o,a;return i&&s(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},9259(e,t,r){"use strict";var s=r(6285),n=r(1626);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},4932(e,t,r){"use strict";var s,n,i,o=r(551),a=r(5951),c=r(6285),l=r(1626),u=r(9724),p=r(6128),h=r(2522),d=r(8530),m="Object already initialized",f=a.TypeError,y=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,s=function(e,t){if(g.has(e))throw new f(m);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=h("state");d[v]=!0,s=function(e,t){if(u(e,v))throw new f(m);return t.facade=e,l(e,v,t),t},n=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:s,get:n,has:i,enforce:function(e){return i(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}},7812(e,t,r){"use strict";var s=r(6264),n=r(3742),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2250(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}},7463(e,t,r){"use strict";var s=r(8828),n=r(2250),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===u||r!==l&&(n(t)?s(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},7136(e){"use strict";e.exports=function(e){return null==e}},6285(e,t,r){"use strict";var s=r(2250);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},4018(e,t,r){"use strict";var s=r(6285);e.exports=function(e){return s(e)||null===e}},7376(e){"use strict";e.exports=!0},5594(e,t,r){"use strict";var s=r(5582),n=r(2250),i=r(8280),o=r(1175),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,a(e))}},4823(e,t,r){"use strict";var s=r(8311),n=r(3930),i=r(6624),o=r(4640),a=r(7812),c=r(575),l=r(8280),u=r(300),p=r(3448),h=r(154),d=TypeError,m=function(e,t){this.stopped=e,this.result=t},f=m.prototype;e.exports=function(e,t,r){var y,g,v,b,x,w,E,S=r&&r.that,j=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),k=s(t,S),$=function(e){return y&&h(y,"normal"),new m(!0,e)},T=function(e){return j?(i(e),P?k(e[0],e[1],$):k(e[0],e[1])):P?k(e,$):k(e)};if(O)y=e.iterator;else if(A)y=e;else{if(!(g=p(e)))throw new d(o(e)+" is not iterable");if(a(g)){for(v=0,b=c(e);b>v;v++)if((x=T(e[v]))&&l(f,x))return x;return new m(!1)}y=u(e,g)}for(w=O?e.next:y.next;!(E=n(w,y)).done;){try{x=T(E.value)}catch(e){h(y,"throw",e)}if("object"==typeof x&&x&&l(f,x))return x}return new m(!1)}},154(e,t,r){"use strict";var s=r(3930),n=r(6624),i=r(9367);e.exports=function(e,t,r){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=s(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return n(o),r}},7181(e,t,r){"use strict";var s=r(5116).IteratorPrototype,n=r(8075),i=r(5817),o=r(4840),a=r(3742),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=n(s,{next:i(+!l,r)}),o(e,u,!1,!0),a[u]=c,e}},183(e,t,r){"use strict";var s=r(1091),n=r(3930),i=r(7376),o=r(6833),a=r(2250),c=r(7181),l=r(5972),u=r(9192),p=r(4840),h=r(1626),d=r(8055),m=r(6264),f=r(3742),y=r(5116),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,w=m("iterator"),E="keys",S="values",j="entries",O=function(){return this};e.exports=function(e,t,r,o,m,y,A){c(r,t,o);var P,k,$,T=function(e){if(e===m&&_)return _;if(!x&&e&&e in I)return I[e];switch(e){case E:case S:case j:return function(){return new r(this,e)}}return function(){return new r(this)}},C=t+" Iterator",F=!1,I=e.prototype,M=I[w]||I["@@iterator"]||m&&I[m],_=!x&&M||T(m),R="Array"===t&&I.entries||M;if(R&&(P=l(R.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===b||(u?u(P,b):a(P[w])||d(P,w,O)),p(P,C,!0,!0),i&&(f[C]=O)),g&&m===S&&M&&M.name!==S&&(!i&&v?h(I,"name",S):(F=!0,_=function(){return n(M,this)})),m)if(k={values:T(S),keys:y?_:T(E),entries:T(j)},A)for($ in k)(x||F||!($ in I))&&d(I,$,k[$]);else s({target:t,proto:!0,forced:x||F},k);return i&&!A||I[w]===_||d(I,w,_,{name:m}),f[t]=_,k}},5116(e,t,r){"use strict";var s,n,i,o=r(8828),a=r(2250),c=r(6285),l=r(8075),u=r(5972),p=r(8055),h=r(6264),d=r(7376),m=h("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(s=n):f=!0),!c(s)||o((function(){var e={};return s[m].call(e)!==e}))?s={}:d&&(s=l(s)),a(s[m])||p(s,m,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:f}},3742(e){"use strict";e.exports={}},575(e,t,r){"use strict";var s=r(3121);e.exports=function(e){return s(e.length)}},1176(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},2096(e,t,r){"use strict";var s=r(160);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},8075(e,t,r){"use strict";var s,n=r(6624),i=r(2220),o=r(376),a=r(8530),c=r(2416),l=r(9552),u=r(2522),p="prototype",h="script",d=u("IE_PROTO"),m=function(){},f=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&s?y(s):(t=l("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):y(s);for(var n=o.length;n--;)delete g[p][o[n]];return g()};a[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[p]=n(e),r=new m,m[p]=null,r[d]=e):r=g(),void 0===t?r:i.f(r,t)}},2220(e,t,r){"use strict";var s=r(9447),n=r(8661),i=r(4284),o=r(6624),a=r(7374),c=r(2875);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,r=n[u++],s[r]);return e}},4284(e,t,r){"use strict";var s=r(9447),n=r(3648),i=r(8661),o=r(6624),a=r(470),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";t.f=s?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var s=u(e,t);s&&s[d]&&(e[t]=r.value,r={configurable:h in r?r[h]:s[h],enumerable:p in r?r[p]:s[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=a(t),o(r),n)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}},3846(e,t,r){"use strict";var s=r(9447),n=r(3930),i=r(2574),o=r(5817),a=r(7374),c=r(470),l=r(9724),u=r(3648),p=Object.getOwnPropertyDescriptor;t.f=s?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},4443(e,t,r){"use strict";var s=r(3045),n=r(376).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},7170(e,t){"use strict";t.f=Object.getOwnPropertySymbols},5972(e,t,r){"use strict";var s=r(9724),n=r(2250),i=r(9298),o=r(2522),a=r(7382),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(s(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},8280(e,t,r){"use strict";var s=r(1907);e.exports=s({}.isPrototypeOf)},3045(e,t,r){"use strict";var s=r(1907),n=r(9724),i=r(7374),o=r(4436).indexOf,a=r(8530),c=s([].push);e.exports=function(e,t){var r,s=i(e),l=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&c(u,r);for(;t.length>l;)n(s,r=t[l++])&&(~o(u,r)||c(u,r));return u}},2875(e,t,r){"use strict";var s=r(3045),n=r(376);e.exports=Object.keys||function(e){return s(e,n)}},2574(e,t){"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},9192(e,t,r){"use strict";var s=r(1871),n=r(6285),i=r(4239),o=r(43);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return i(r),o(s),n(r)?(t?e(r,s):r.__proto__=s,r):r}}():void 0)},4878(e,t,r){"use strict";var s=r(2623),n=r(3948);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},581(e,t,r){"use strict";var s=r(3930),n=r(2250),i=r(6285),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!i(a=s(r,e)))return a;if(n(r=e.valueOf)&&!i(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!i(a=s(r,e)))return a;throw new o("Can't convert object to primitive value")}},1042(e,t,r){"use strict";var s=r(5582),n=r(1907),i=r(4443),o=r(7170),a=r(6624),c=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},2046(e){"use strict";e.exports={}},4829(e,t,r){"use strict";var s=r(4284).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},4239(e,t,r){"use strict";var s=r(7136),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},4840(e,t,r){"use strict";var s=r(2623),n=r(4284).f,i=r(1626),o=r(9724),a=r(4878),c=r(6264)("toStringTag");e.exports=function(e,t,r,l){var u=r?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!s&&i(u,"toString",a))}},2522(e,t,r){"use strict";var s=r(5816),n=r(6499),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},6128(e,t,r){"use strict";var s=r(7376),n=r(5951),i=r(2532),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.43.0",mode:s?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5816(e,t,r){"use strict";var s=r(6128);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},1470(e,t,r){"use strict";var s=r(1907),n=r(5482),i=r(160),o=r(4239),a=s("".charAt),c=s("".charCodeAt),l=s("".slice),u=function(e){return function(t,r){var s,u,p=i(o(t)),h=n(r),d=p.length;return h<0||h>=d?e?"":void 0:(s=c(p,h))<55296||s>56319||h+1===d||(u=c(p,h+1))<56320||u>57343?e?a(p,h):s:e?l(p,h,h+2):u-56320+(s-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},9846(e,t,r){"use strict";var s=r(798),n=r(8828),i=r(5951).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},4849(e,t,r){"use strict";var s=r(5482),n=Math.max,i=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):i(r,t)}},7374(e,t,r){"use strict";var s=r(6946),n=r(4239);e.exports=function(e){return s(n(e))}},5482(e,t,r){"use strict";var s=r(1176);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},3121(e,t,r){"use strict";var s=r(5482),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},9298(e,t,r){"use strict";var s=r(4239),n=Object;e.exports=function(e){return n(s(e))}},6028(e,t,r){"use strict";var s=r(3930),n=r(6285),i=r(5594),o=r(9367),a=r(581),c=r(6264),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||i(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},470(e,t,r){"use strict";var s=r(6028),n=r(5594);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},2623(e,t,r){"use strict";var s={};s[r(6264)("toStringTag")]="z",e.exports="[object z]"===String(s)},160(e,t,r){"use strict";var s=r(3948),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(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 s=r(1907),n=0,i=Math.random(),o=s(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},1175(e,t,r){"use strict";var s=r(9846);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8661(e,t,r){"use strict";var s=r(9447),n=r(8828);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},551(e,t,r){"use strict";var s=r(5951),n=r(2250),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},6264(e,t,r){"use strict";var s=r(5951),n=r(5816),i=r(9724),o=r(6499),a=r(9846),c=r(1175),l=s.Symbol,u=n("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},9358(e,t,r){"use strict";var s=r(5582),n=r(9724),i=r(1626),o=r(8280),a=r(9192),c=r(9595),l=r(4829),u=r(4084),p=r(2096),h=r(9259),d=r(5884),m=r(9447),f=r(7376);e.exports=function(e,t,r,y){var g="stackTraceLimit",v=y?2:1,b=e.split("."),x=b[b.length-1],w=s.apply(null,b);if(w){var E=w.prototype;if(!f&&n(E,"cause")&&delete E.cause,!r)return w;var S=s("Error"),j=t((function(e,t){var r=p(y?t:e,void 0),s=y?new w(e):new w;return void 0!==r&&i(s,"message",r),d(s,j,s.stack,2),this&&o(E,this)&&u(s,this,j),arguments.length>v&&h(s,arguments[v]),s}));if(j.prototype=E,"Error"!==x?a?a(j,S):c(j,S,{name:!0}):m&&g in w&&(l(j,w,g),l(j,w,"prepareStackTrace")),c(j,w),!f)try{E.name!==x&&i(E,"name",x),E.constructor=j}catch(e){}return j}}},6371(e,t,r){"use strict";var s=r(1091),n=r(5582),i=r(6024),o=r(8828),a=r(9358),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));s({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),u,!0)})},2048(e,t,r){"use strict";var s=r(1091),n=r(8280),i=r(5972),o=r(9192),a=r(9595),c=r(8075),l=r(1626),u=r(5817),p=r(9259),h=r(5884),d=r(4823),m=r(2096),f=r(6264)("toStringTag"),y=Error,g=[].push,v=function(e,t){var r,s=n(b,this);o?r=o(new y,s?i(this):b):(r=s?this:c(b),l(r,f,"Error")),void 0!==t&&l(r,"message",m(t)),h(r,v,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return d(e,g,{that:a}),l(r,"errors",a),r};o?o(v,y):a(v,y,{name:!0});var b=v.prototype=c(y.prototype,{constructor:u(1,v),message:u(1,""),name:u(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:v})},4502(e,t,r){"use strict";r(2048)},9363(e,t,r){"use strict";var s=r(7374),n=r(2156),i=r(3742),o=r(4932),a=r(4284).f,c=r(183),l=r(9550),u=r(7376),p=r(9447),h="Array Iterator",d=o.set,m=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){d(this,{type:h,target:s(e),index:0,kind:t})}),(function(){var e=m(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 f=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&p&&"values"!==f.name)try{a(f,"name",{value:"values"})}catch(e){}},6605(e,t,r){"use strict";var s=r(1091),n=r(5951),i=r(6024),o=r(9358),a="WebAssembly",c=n[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=o(e,t,l),s({global:!0,constructor:!0,arity:1,forced:l},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,l),s({target:a,stat:!0,constructor:!0,arity:1,forced:l},r)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},7057(e,t,r){"use strict";var s=r(1470).charAt,n=r(160),i=r(4932),o=r(183),a=r(9550),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(e,!1))}))},1599(e,t,r){"use strict";r(4502)},2560(e,t,r){"use strict";r(9363);var s=r(9287),n=r(5951),i=r(4840),o=r(3742);for(var a in s)i(n[a],a),o[a]=o.Array},694(e,t,r){"use strict";r(1599);var s=r(7257);r(2560),e.exports=s}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var s={};return(()=>{"use strict";r.d(s,{default:()=>BO});var e={};r.r(e),r.d(e,{JsonPatchError:()=>yr,_areEquals:()=>Ar,applyOperation:()=>wr,applyPatch:()=>Er,applyReducer:()=>Sr,deepClone:()=>gr,getValueByPointer:()=>xr,validate:()=>Or,validator:()=>jr});var t={};r.r(t),r.d(t,{compare:()=>Mr,generate:()=>Fr,observe:()=>Cr,unobserve:()=>Tr});var n={};r.r(n),r.d(n,{bJ:()=>hi,uQ:()=>oi,Zd:()=>ui,q$:()=>ci,hd:()=>di,aj:()=>mi,z9:()=>pi,zj:()=>fi});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>ka,includesClasses:()=>Ta,includesSymbols:()=>$a,isAnnotationElement:()=>ja,isArrayElement:()=>xa,isBooleanElement:()=>va,isCommentElement:()=>Oa,isElement:()=>ma,isLinkElement:()=>Ea,isMemberElement:()=>wa,isNullElement:()=>ga,isNumberElement:()=>ya,isObjectElement:()=>ba,isParseResultElement:()=>Aa,isPrimitiveElement:()=>Pa,isRefElement:()=>Sa,isStringElement:()=>fa});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>mp,isJSONSchemaElement:()=>dp,isLinkDescriptionElement:()=>yp,isMediaElement:()=>fp});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>Gd,isCallbackElement:()=>Pd,isComponentsElement:()=>kd,isContactElement:()=>$d,isDiscriminatorElement:()=>em,isExampleElement:()=>Td,isExternalDocumentationElement:()=>Cd,isHeaderElement:()=>Fd,isInfoElement:()=>Id,isLicenseElement:()=>Md,isLinkElement:()=>_d,isMediaTypeElement:()=>Qd,isOpenApi3_0Element:()=>Dd,isOpenapiElement:()=>Rd,isOperationElement:()=>Nd,isParameterElement:()=>Ld,isPathItemElement:()=>Bd,isPathsElement:()=>qd,isReferenceElement:()=>Ud,isRequestBodyElement:()=>Jd,isResponseElement:()=>Vd,isResponsesElement:()=>Hd,isSchemaElement:()=>zd,isSecurityRequirementElement:()=>Wd,isSecuritySchemeElement:()=>Kd,isServerElement:()=>Yd,isServerVariableElement:()=>Xd,isServersElement:()=>Zd});var c={};r.r(c),r.d(c,{isJSONReferenceElement:()=>mp,isJSONSchemaElement:()=>Mv,isLinkDescriptionElement:()=>_v,isMediaElement:()=>fp});var l={};r.r(l),r.d(l,{isJSONReferenceElement:()=>mp,isJSONSchemaElement:()=>zv,isLinkDescriptionElement:()=>Gv});var u={};r.r(u),r.d(u,{isJSONSchemaElement:()=>Sb,isLinkDescriptionElement:()=>jb});var p={};r.r(p),r.d(p,{isJSONSchemaElement:()=>Db,isLinkDescriptionElement:()=>Nb});var h={};r.r(h),r.d(h,{isBooleanJsonSchemaElement:()=>Kx,isCallbackElement:()=>Ax,isComponentsElement:()=>Px,isContactElement:()=>kx,isExampleElement:()=>$x,isExternalDocumentationElement:()=>Tx,isHeaderElement:()=>Cx,isInfoElement:()=>Fx,isJsonSchemaDialectElement:()=>Ix,isLicenseElement:()=>Mx,isLinkElement:()=>_x,isMediaTypeElement:()=>ew,isOpenApi3_1Element:()=>Dx,isOpenapiElement:()=>Rx,isOperationElement:()=>Nx,isParameterElement:()=>Lx,isPathItemElement:()=>Bx,isPathItemElementExternal:()=>qx,isPathsElement:()=>Ux,isReferenceElement:()=>Jx,isReferenceElementExternal:()=>Vx,isRequestBodyElement:()=>Hx,isResponseElement:()=>zx,isResponsesElement:()=>Gx,isSchemaElement:()=>Wx,isSecurityRequirementElement:()=>Yx,isSecuritySchemeElement:()=>Xx,isServerElement:()=>Qx,isServerVariableElement:()=>Zx});var d={};r.r(d),r.d(d,{cookie:()=>vO,header:()=>gO,path:()=>mO,query:()=>fO});const m="application/json, application/yaml",f="https://swagger.io",y=Object.freeze({url:"/"}),g=3e3,{fetch:v,Response:b,Headers:x,Request:w,FormData:E,File:S,Blob:j}=globalThis;function O(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 A(e,t){return Array.isArray(e)&&e.some((e=>O(e,t)))}void 0===globalThis.fetch&&(globalThis.fetch=v),void 0===globalThis.Headers&&(globalThis.Headers=x),void 0===globalThis.Request&&(globalThis.Request=w),void 0===globalThis.Response&&(globalThis.Response=b),void 0===globalThis.FormData&&(globalThis.FormData=E),void 0===globalThis.File&&(globalThis.File=S),void 0===globalThis.Blob&&(globalThis.Blob=j);class P extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const k=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,$=e=>/^[a-z0-9\-._~]+$/i.test(e);function T(e,t="reserved"){return[...e].map((e=>{if($(e))return e;if(k(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 C(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:s,escape:n}){if("simple"===r)return t.map((e=>F(e,n))).join(",");if("label"===r)return`.${t.map((e=>F(e,n))).join(".")}`;if("matrix"===r)return t.map((e=>F(e,n))).reduce(((t,r)=>!t||s?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=s?`&${e}=`:",";return t.map((e=>F(e,n))).join(r)}if("spaceDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>F(e,n))).join(` ${r}`)}if("pipeDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>F(e,n))).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:s,escape:n}){const i=Object.keys(t);if("simple"===r)return i.reduce(((e,r)=>{const i=F(t[r],n);return`${e?`${e},`:""}${r}${s?"=":","}${i}`}),"");if("label"===r)return i.reduce(((e,r)=>{const i=F(t[r],n);return`${e?`${e}.`:"."}${r}${s?"=":"."}${i}`}),"");if("matrix"===r&&s)return i.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${F(t[r],n)}`),"");if("matrix"===r)return i.reduce(((r,s)=>{const i=F(t[s],n);return`${r?`${r},`:`;${e}=`}${s},${i}`}),"");if("form"===r)return i.reduce(((e,r)=>{const i=F(t[r],n);return`${e?`${e}${s?"&":","}`:""}${r}${s?"=":","}${i}`}),"");return}(e):function({key:e,value:t,style:r,escape:s}){if("simple"===r)return F(t,s);if("label"===r)return`.${F(t,s)}`;if("matrix"===r)return`;${e}=${F(t,s)}`;if("form"===r)return F(t,s);if("deepObject"===r)return F(t,s);return}(e)}function F(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?T(e,t):e??""}const I={form:",",spaceDelimited:"%20",pipeDelimited:"|"},M={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function _(e,t,r=!1){const{collectionFormat:s,allowEmptyValue:n,serializationOption:i,encoding:o}=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&&n)return[[l,""]];if(O(a)||A(a))return[[l,a]];if(i)return R(e,a,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:s,allowReserved:n}=o;return R(e,a,r,{style:t,explode:s,allowReserved:n})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new P(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new P(e,"blob",{type:o.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"===s?[[l,a.map(c)]]:[[l,a.map(c).join(M[s||"csv"])]]:[[l,""]]}function R(e,t,r,s){const n=s.style||"form",i=void 0===s.explode?"form"===n:s.explode,o=!r&&(s&&s.allowReserved?"unsafe":"reserved"),a=e=>F(e,o),c=r?e=>e:e=>a(e);return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(I[n])]]:"deepObject"===n?Object.keys(t).map((r=>[c(`${e}[${r}]`),a(t[r])])):i?Object.keys(t).map((e=>[c(e),a(t[e])])):[[c(e),Object.keys(t).map((e=>[`${c(e)},${a(t[e])}`])).join(",")]]}function D(e){return((e,{encode:t=!0}={})=>{const r=(e,t,s)=>(Array.isArray(s)?s.reduce(((s,n)=>r(e,t,n)),e):s instanceof Date?e.append(t,s.toISOString()):"object"==typeof s?Object.entries(s).reduce(((s,[n,i])=>r(e,`${t}[${n}]`,i)),e):e.append(t,s),e),s=Object.entries(e).reduce(((e,[t,s])=>r(e,t,s)),new URLSearchParams),n=String(s);return t?n:decodeURIComponent(n)})(Object.keys(e).reduce(((t,r)=>{for(const[s,n]of _(r,e[r]))t[s]=n instanceof P?n.valueOf():n;return t}),{}),{encode:!1})}function N(e={}){const{url:t="",query:r,form:s}=e;if(s){const t=Object.keys(s).some((e=>{const{value:t}=s[e];return O(t)||A(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(n=e.form,Object.entries(n).reduce(((e,[t,r])=>{for(const[s,n]of _(t,r,!0))if(Array.isArray(n))for(const t of n)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(s,r)}else e.append(s,t);else if(ArrayBuffer.isView(n)){const t=new Blob([n]);e.append(s,t)}else e.append(s,n);return e}),new FormData));e.formdata=t,e.body=t}else e.body=D(s);delete e.form}var n;if(r){const[s,n]=t.split("?");let i="";if(n){const e=new URLSearchParams(n);Object.keys(r).forEach((t=>e.delete(t))),i=String(e)}const o=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(i,D(r));e.url=s+o,delete e.query}return e}function L(e){return null==e}var B={isNothing:L,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:L(e)?[]:[e]},repeat:function(e,t){var r,s="";for(r=0;r<t;r+=1)s+=e;return s},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,s,n,i;if(t)for(r=0,s=(i=Object.keys(t)).length;r<s;r+=1)e[n=i[r]]=t[n];return e}};function q(e,t){var r="",s=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),s+" "+r):s}function U(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=q(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}U.prototype=Object.create(Error.prototype),U.prototype.constructor=U,U.prototype.toString=function(e){return this.name+": "+q(this,e)};var J=U;function V(e,t,r,s,n){var i="",o="",a=Math.floor(n/2)-1;return s-t>a&&(t=s-a+(i=" ... ").length),r-s>a&&(r=s+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:s-t+i.length}}function H(e,t){return B.repeat(" ",t-e.length)+e}var z=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,s=/\r?\n|\r|\0/g,n=[0],i=[],o=-1;r=s.exec(e.buffer);)i.push(r.index),n.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a,c,l="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=V(e.buffer,n[o-a],i[o-a],e.position-(n[o]-n[o-a]),p),l=B.repeat(" ",t.indent)+H((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=V(e.buffer,n[o],i[o],e.position,p),l+=B.repeat(" ",t.indent)+H((e.line+1).toString(),u)+" | "+c.str+"\n",l+=B.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=V(e.buffer,n[o+a],i[o+a],e.position-(n[o]-n[o+a]),p),l+=B.repeat(" ",t.indent)+H((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},G=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],W=["scalar","sequence","mapping"];var K=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===G.indexOf(t))throw new J('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===W.indexOf(this.kind))throw new J('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function Y(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,s){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=s)})),r[t]=e})),r}function X(e){return this.extend(e)}X.prototype.extend=function(e){var t=[],r=[];if(e instanceof K)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 J("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 K))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new J("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 J("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 K))throw new J("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(X.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=Y(s,"implicit"),s.compiledExplicit=Y(s,"explicit"),s.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function s(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(s);return r}(s.compiledImplicit,s.compiledExplicit),s};var Q=X,Z=new K("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),ee=new K("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),te=new K("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),re=new Q({explicit:[Z,ee,te]});var se=new K("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"});var ne=new K("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 ie(e){return 48<=e&&e<=55}function oe(e){return 48<=e&&e<=57}var ae=new K("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=e.length,n=0,i=!1;if(!s)return!1;if("-"!==(t=e[n])&&"+"!==t||(t=e[++n]),"0"===t){if(n+1===s)return!0;if("b"===(t=e[++n])){for(n++;n<s;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!(48<=(r=e.charCodeAt(n))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!ie(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;n<s;n++)if("_"!==(t=e[n])){if(!oe(e.charCodeAt(n)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,s=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(s=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return s*parseInt(r.slice(2),2);if("x"===r[1])return s*parseInt(r.slice(2),16);if("o"===r[1])return s*parseInt(r.slice(2),8)}return s*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!B.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"]}}),ce=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var le=/^[-+]?[0-9]+e/;var ue=new K("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!ce.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||B.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(B.isNegativeZero(e))return"-0.0";return r=e.toString(10),le.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),pe=re.extend({implicit:[se,ne,ae,ue]}),he=pe,de=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),me=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]))?))?$");var fe=new K("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==de.exec(e)||null!==me.exec(e))},construct:function(e){var t,r,s,n,i,o,a,c,l=0,u=null;if(null===(t=de.exec(e))&&(t=me.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],s=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,s,n));if(i=+t[4],o=+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,s,n,i,o,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var ye=new K("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var ve=new K("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=0,n=e.length,i=ge;for(r=0;r<n;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;s+=6}return s%8==0},construct:function(e){var t,r,s=e.replace(/[\r\n=]/g,""),n=s.length,i=ge,o=0,a=[];for(t=0;t<n;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(s.charAt(t));return 0===(r=n%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,s="",n=0,i=e.length,o=ge;for(t=0;t<i;t++)t%3==0&&t&&(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]),n=(n<<8)+e[t];return 0===(r=i%3)?(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]):2===r?(s+=o[n>>10&63],s+=o[n>>4&63],s+=o[n<<2&63],s+=o[64]):1===r&&(s+=o[n>>2&63],s+=o[n<<4&63],s+=o[64],s+=o[64]),s}}),be=Object.prototype.hasOwnProperty,xe=Object.prototype.toString;var we=new K("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(s=a[t],i=!1,"[object Object]"!==xe.call(s))return!1;for(n in s)if(be.call(s,n)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(n))return!1;o.push(n)}return!0},construct:function(e){return null!==e?e:[]}}),Ee=Object.prototype.toString;var Se=new K("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(s=o[t],"[object Object]"!==Ee.call(s))return!1;if(1!==(n=Object.keys(s)).length)return!1;i[t]=[n[0],s[n[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)s=o[t],n=Object.keys(s),i[t]=[n[0],s[n[0]]];return i}}),je=Object.prototype.hasOwnProperty;var Oe=new K("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(je.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Ae=he.extend({implicit:[fe,ye],explicit:[ve,we,Se,Oe]}),Pe=Object.prototype.hasOwnProperty,ke=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$e=/[\x85\u2028\u2029]/,Te=/[,\[\]\{\}]/,Ce=/^(?:!|!!|![a-z\-]+!)$/i,Fe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ie(e){return Object.prototype.toString.call(e)}function Me(e){return 10===e||13===e}function _e(e){return 9===e||32===e}function Re(e){return 9===e||32===e||10===e||13===e}function De(e){return 44===e||91===e||93===e||123===e||125===e}function Ne(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Le(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 Be(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function qe(e,t,r){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}for(var Ue=new Array(256),Je=new Array(256),Ve=0;Ve<256;Ve++)Ue[Ve]=Le(Ve)?1:0,Je[Ve]=Le(Ve);function He(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ae,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=z(r),new J(t,r)}function Ge(e,t){throw ze(e,t)}function We(e,t){e.onWarning&&e.onWarning.call(null,ze(e,t))}var Ke={YAML:function(e,t,r){var s,n,i;null!==e.version&&Ge(e,"duplication of %YAML directive"),1!==r.length&&Ge(e,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Ge(e,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),i=parseInt(s[2],10),1!==n&&Ge(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&We(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var s,n;2!==r.length&&Ge(e,"TAG directive accepts exactly two arguments"),s=r[0],n=r[1],Ce.test(s)||Ge(e,"ill-formed tag handle (first argument) of the TAG directive"),Pe.call(e.tagMap,s)&&Ge(e,'there is a previously declared suffix for "'+s+'" tag handle'),Fe.test(n)||Ge(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(t){Ge(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function Ye(e,t,r,s){var n,i,o,a;if(t<r){if(a=e.input.slice(t,r),s)for(n=0,i=a.length;n<i;n+=1)9===(o=a.charCodeAt(n))||32<=o&&o<=1114111||Ge(e,"expected valid JSON character");else ke.test(a)&&Ge(e,"the stream contains non-printable characters");e.result+=a}}function Xe(e,t,r,s){var n,i,o,a;for(B.isObject(r)||Ge(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(n=Object.keys(r)).length;o<a;o+=1)i=n[o],Pe.call(t,i)||(qe(t,i,r[i]),s[i]=!0)}function Qe(e,t,r,s,n,i,o,a,c){var l,u;if(Array.isArray(n))for(l=0,u=(n=Array.prototype.slice.call(n)).length;l<u;l+=1)Array.isArray(n[l])&&Ge(e,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===Ie(n[l])&&(n[l]="[object Object]");if("object"==typeof n&&"[object Object]"===Ie(n)&&(n="[object Object]"),n=String(n),null===t&&(t={}),"tag:yaml.org,2002:merge"===s)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)Xe(e,t,i[l],r);else Xe(e,t,i,r);else e.json||Pe.call(r,n)||!Pe.call(t,n)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,Ge(e,"duplicated mapping key")),qe(t,n,i),delete r[n];return t}function Ze(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Ge(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function et(e,t,r){for(var s=0,n=e.input.charCodeAt(e.position);0!==n;){for(;_e(n);)9===n&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&35===n)do{n=e.input.charCodeAt(++e.position)}while(10!==n&&13!==n&&0!==n);if(!Me(n))break;for(Ze(e),n=e.input.charCodeAt(e.position),s++,e.lineIndent=0;32===n;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return-1!==r&&0!==s&&e.lineIndent<r&&We(e,"deficient indentation"),s}function tt(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))&&!Re(t)))}function rt(e,t){1===t?e.result+=" ":t>1&&(e.result+=B.repeat("\n",t-1))}function st(e,t){var r,s,n=e.tag,i=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),s=e.input.charCodeAt(e.position);0!==s&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Ge(e,"tab characters must not be used in indentation")),45===s)&&Re(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,et(e,!0,-1)&&e.lineIndent<=t)o.push(null),s=e.input.charCodeAt(e.position);else if(r=e.line,ot(e,t,3,!1,!0),o.push(e.result),et(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==s)Ge(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0)}function nt(e){var t,r,s,n,i=!1,o=!1;if(33!==(n=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Ge(e,"duplication of a tag property"),60===(n=e.input.charCodeAt(++e.position))?(i=!0,n=e.input.charCodeAt(++e.position)):33===n?(o=!0,r="!!",n=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&62!==n);e.position<e.length?(s=e.input.slice(t,e.position),n=e.input.charCodeAt(++e.position)):Ge(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!Re(n);)33===n&&(o?Ge(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Ce.test(r)||Ge(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),n=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Te.test(s)&&Ge(e,"tag suffix cannot contain flow indicator characters")}s&&!Fe.test(s)&&Ge(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch(t){Ge(e,"tag name is malformed: "+s)}return i?e.tag=s:Pe.call(e.tagMap,r)?e.tag=e.tagMap[r]+s:"!"===r?e.tag="!"+s:"!!"===r?e.tag="tag:yaml.org,2002:"+s:Ge(e,'undeclared tag handle "'+r+'"'),!0}function it(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Ge(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Re(r)&&!De(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Ge(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ot(e,t,r,s,n){var i,o,a,c,l,u,p,h,d,m=1,f=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=4===r||3===r,s&&et(e,!0,-1)&&(f=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;nt(e)||it(e);)et(e,!0,-1)?(f=!0,a=i,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):a=!1;if(a&&(a=f||n),1!==m&&4!==r||(h=1===r||2===r?t:t+1,d=e.position-e.lineStart,1===m?a&&(st(e,d)||function(e,t,r){var s,n,i,o,a,c,l,u=e.tag,p=e.anchor,h={},d=Object.create(null),m=null,f=null,y=null,g=!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(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Ge(e,"tab characters must not be used in indentation")),s=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!Re(s)){if(o=e.line,a=e.lineStart,c=e.position,!ot(e,r,2,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);_e(l);)l=e.input.charCodeAt(++e.position);if(58===l)Re(l=e.input.charCodeAt(++e.position))||Ge(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Qe(e,h,d,m,f,null,o,a,c),m=f=y=null),v=!0,g=!1,n=!1,m=e.tag,f=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;Ge(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;Ge(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(Qe(e,h,d,m,f,null,o,a,c),m=f=y=null),v=!0,g=!0,n=!0):g?(g=!1,n=!0):Ge(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=s;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,a=e.lineStart,c=e.position),ot(e,t,4,!0,n)&&(g?f=e.result:y=e.result),g||(Qe(e,h,d,m,f,y,o,a,c),m=f=y=null),et(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)Ge(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Qe(e,h,d,m,f,null,o,a,c),v&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),v}(e,d,h))||function(e,t){var r,s,n,i,o,a,c,l,u,p,h,d,m=!0,f=e.tag,y=e.anchor,g=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))o=93,l=!1,i=[];else{if(123!==d)return!1;o=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),d=e.input.charCodeAt(++e.position);0!==d;){if(et(e,!0,t),(d=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=f,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;m?44===d&&Ge(e,"expected the node content, but found ','"):Ge(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===d&&Re(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,et(e,!0,t)),r=e.line,s=e.lineStart,n=e.position,ot(e,t,1,!1,!0),p=e.tag,u=e.result,et(e,!0,t),d=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==d||(a=!0,d=e.input.charCodeAt(++e.position),et(e,!0,t),ot(e,t,1,!1,!0),h=e.result),l?Qe(e,i,g,p,u,h,r,s,n):a?i.push(Qe(e,null,g,p,u,h,r,s,n)):i.push(u),et(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(m=!0,d=e.input.charCodeAt(++e.position)):m=!1}Ge(e,"unexpected end of the stream within a flow collection")}(e,h)?y=!0:(o&&function(e,t){var r,s,n,i,o,a=1,c=!1,l=!1,u=t,p=0,h=!1;if(124===(i=e.input.charCodeAt(e.position)))s=!1;else{if(62!==i)return!1;s=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)1===a?a=43===i?3:2:Ge(e,"repeat of a chomping mode identifier");else{if(!((n=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===n?Ge(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Ge(e,"repeat of an indentation width identifier"):(u=t+n-1,l=!0)}if(_e(i)){do{i=e.input.charCodeAt(++e.position)}while(_e(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Me(i)&&0!==i)}for(;0!==i;){for(Ze(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),Me(i))p++;else{if(e.lineIndent<u){3===a?e.result+=B.repeat("\n",c?1+p:p):1===a&&c&&(e.result+="\n");break}for(s?_e(i)?(h=!0,e.result+=B.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=B.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=B.repeat("\n",p):e.result+=B.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!Me(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Ye(e,r,e.position,!1)}}return!0}(e,h)||function(e,t){var r,s,n;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,s=n=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Ye(e,s,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;s=e.position,e.position++,n=e.position}else Me(r)?(Ye(e,s,n,!0),rt(e,et(e,!1,t)),s=n=e.position):e.position===e.lineStart&&tt(e)?Ge(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);Ge(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,s,n,i,o,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Ye(e,r,e.position,!0),e.position++,!0;if(92===a){if(Ye(e,r,e.position,!0),Me(a=e.input.charCodeAt(++e.position)))et(e,!1,t);else if(a<256&&Ue[a])e.result+=Je[a],e.position++;else if((o=120===(c=a)?2:117===c?4:85===c?8:0)>0){for(n=o,i=0;n>0;n--)(o=Ne(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:Ge(e,"expected hexadecimal character");e.result+=Be(i),e.position++}else Ge(e,"unknown escape sequence");r=s=e.position}else Me(a)?(Ye(e,r,s,!0),rt(e,et(e,!1,t)),r=s=e.position):e.position===e.lineStart&&tt(e)?Ge(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}Ge(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?y=!0:!function(e){var t,r,s;if(42!==(s=e.input.charCodeAt(e.position)))return!1;for(s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!Re(s)&&!De(s);)s=e.input.charCodeAt(++e.position);return e.position===t&&Ge(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Pe.call(e.anchorMap,r)||Ge(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],et(e,!0,-1),!0}(e)?function(e,t,r){var s,n,i,o,a,c,l,u,p=e.kind,h=e.result;if(Re(u=e.input.charCodeAt(e.position))||De(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)&&(Re(s=e.input.charCodeAt(e.position+1))||r&&De(s)))return!1;for(e.kind="scalar",e.result="",n=i=e.position,o=!1;0!==u;){if(58===u){if(Re(s=e.input.charCodeAt(e.position+1))||r&&De(s))break}else if(35===u){if(Re(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&tt(e)||r&&De(u))break;if(Me(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,et(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(Ye(e,n,i,!1),rt(e,e.line-a),n=i=e.position,o=!1),_e(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Ye(e,n,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,1===r)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||Ge(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(y=a&&st(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&&Ge(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||Ge(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&Ge(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)):Ge(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function at(e){var t,r,s,n,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(n=e.input.charCodeAt(e.position))&&(et(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){for(o=!0,n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Re(n);)n=e.input.charCodeAt(++e.position);for(s=[],(r=e.input.slice(t,e.position)).length<1&&Ge(e,"directive name must not be less than one character in length");0!==n;){for(;_e(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!Me(n));break}if(Me(n))break;for(t=e.position;0!==n&&!Re(n);)n=e.input.charCodeAt(++e.position);s.push(e.input.slice(t,e.position))}0!==n&&Ze(e),Pe.call(Ke,r)?Ke[r](e,r,s):We(e,'unknown document directive "'+r+'"')}et(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,et(e,!0,-1)):o&&Ge(e,"directives end mark is expected"),ot(e,e.lineIndent-1,4,!1,!0),et(e,!0,-1),e.checkLineBreaks&&$e.test(e.input.slice(i,e.position))&&We(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&tt(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,et(e,!0,-1)):e.position<e.length-1&&Ge(e,"end of the stream or a document separator is expected")}function ct(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 He(e,t),s=e.indexOf("\0");for(-1!==s&&(r.position=s,Ge(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;)at(r);return r.documents}var lt={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var s=ct(e,r);if("function"!=typeof t)return s;for(var n=0,i=s.length;n<i;n+=1)t(s[n])},load:function(e,t){var r=ct(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new J("expected a single document in the stream, but found more")}}},ut=Object.prototype.toString,pt=Object.prototype.hasOwnProperty,ht=65279,dt={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"},mt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ft=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function yt(e){var t,r,s;if(t=e.toString(16).toUpperCase(),e<=255)r="x",s=2;else if(e<=65535)r="u",s=4;else{if(!(e<=4294967295))throw new J("code point within a string may not be greater than 0xFFFFFFFF");r="U",s=8}return"\\"+r+B.repeat("0",s-t.length)+t}function gt(e){this.schema=e.schema||Ae,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=B.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,s,n,i,o,a,c;if(null===t)return{};for(r={},n=0,i=(s=Object.keys(t)).length;n<i;n+=1)o=s[n],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&pt.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=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 vt(e,t){for(var r,s=B.repeat(" ",t),n=0,i=-1,o="",a=e.length;n<a;)-1===(i=e.indexOf("\n",n))?(r=e.slice(n),n=a):(r=e.slice(n,i+1),n=i+1),r.length&&"\n"!==r&&(o+=s),o+=r;return o}function bt(e,t){return"\n"+B.repeat(" ",e.indent*t)}function xt(e){return 32===e||9===e}function wt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==ht||65536<=e&&e<=1114111}function Et(e){return wt(e)&&e!==ht&&13!==e&&10!==e}function St(e,t,r){var s=Et(e),n=s&&!xt(e);return(r?s:s&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!n)||Et(t)&&!xt(t)&&35===e||58===t&&n}function jt(e,t){var r,s=e.charCodeAt(t);return s>=55296&&s<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(s-55296)+r-56320+65536:s}function Ot(e){return/^\n* /.test(e)}function At(e,t,r,s,n,i,o,a){var c,l,u=0,p=null,h=!1,d=!1,m=-1!==s,f=-1,y=wt(l=jt(e,0))&&l!==ht&&!xt(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!xt(e)&&58!==e}(jt(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!wt(u=jt(e,c)))return 5;y=y&&St(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(10===(u=jt(e,c)))h=!0,m&&(d=d||c-f-1>s&&" "!==e[f+1],f=c);else if(!wt(u))return 5;y=y&&St(u,p,a),p=u}d=d||m&&c-f-1>s&&" "!==e[f+1]}return h||d?r>9&&Ot(e)?5:o?2===i?5:2:d?4:3:!y||o||n(e)?2===i?5:2:1}function Pt(e,t,r,s,n){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==mt.indexOf(t)||ft.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=s||e.flowLevel>-1&&r>=e.flowLevel;switch(At(t,a,e.indent,o,(function(t){return function(e,t){var r,s;for(r=0,s=e.implicitTypes.length;r<s;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!s,n)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+kt(t,e.indent)+$t(vt(t,i));case 4:return">"+kt(t,e.indent)+$t(vt(function(e,t){var r,s,n=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,n.lastIndex=a,Tt(e.slice(0,a),t)),o="\n"===e[0]||" "===e[0];var a;for(;s=n.exec(e);){var c=s[1],l=s[2];r=" "===l[0],i+=c+(o||r||""===l?"":"\n")+Tt(l,t),o=r}return i}(t,o),i));case 5:return'"'+function(e){for(var t,r="",s=0,n=0;n<e.length;s>=65536?n+=2:n++)s=jt(e,n),!(t=dt[s])&&wt(s)?(r+=e[n],s>=65536&&(r+=e[n+1])):r+=t||yt(s);return r}(t)+'"';default:throw new J("impossible error: invalid scalar style")}}()}function kt(e,t){var r=Ot(e)?String(t):"",s="\n"===e[e.length-1];return r+(s&&("\n"===e[e.length-2]||"\n"===e)?"+":s?"":"-")+"\n"}function $t(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Tt(e,t){if(""===e||" "===e[0])return e;for(var r,s,n=/ [^ ]/g,i=0,o=0,a=0,c="";r=n.exec(e);)(a=r.index)-i>t&&(s=o>i?o:a,c+="\n"+e.slice(i,s),i=s+1),o=a;return c+="\n",e.length-i>t&&o>i?c+=e.slice(i,o)+"\n"+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Ct(e,t,r,s){var n,i,o,a="",c=e.tag;for(n=0,i=r.length;n<i;n+=1)o=r[n],e.replacer&&(o=e.replacer.call(r,String(n),o)),(It(e,t+1,o,!0,!0,!1,!0)||void 0===o&&It(e,t+1,null,!0,!0,!1,!0))&&(s&&""===a||(a+=bt(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 s,n,i,o,a,c;for(i=0,o=(n=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=n[i]).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]"===ut.call(a.represent))s=a.represent(t,c);else{if(!pt.call(a.represent,c))throw new J("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');s=a.represent[c](t,c)}e.dump=s}return!0}return!1}function It(e,t,r,s,n,i,o){e.tag=null,e.dump=r,Ft(e,r,!1)||Ft(e,r,!0);var a,c=ut.call(e.dump),l=s;s&&(s=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)&&(n=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)s&&0!==Object.keys(e.dump).length?(!function(e,t,r,s){var n,i,o,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 J("sortKeys must be a boolean or a function");for(n=0,i=h.length;n<i;n+=1)l="",s&&""===u||(l+=bt(e,t)),a=r[o=h[n]],e.replacer&&(a=e.replacer.call(r,o,a)),It(e,t+1,o,!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+=bt(e,t)),It(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,n),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var s,n,i,o,a,c="",l=e.tag,u=Object.keys(r);for(s=0,n=u.length;s<n;s+=1)a="",""!==c&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=u[s]],e.replacer&&(o=e.replacer.call(r,i,o)),It(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),It(e,t,o,!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)s&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?Ct(e,t-1,e.dump,n):Ct(e,t,e.dump,n),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var s,n,i,o="",a=e.tag;for(s=0,n=r.length;s<n;s+=1)i=r[s],e.replacer&&(i=e.replacer.call(r,String(s),i)),(It(e,t,i,!1,!1)||void 0===i&&It(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(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 J("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&Pt(e,e.dump,t,i,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 Mt(e,t){var r,s,n=[],i=[];for(_t(e,n,i),r=0,s=i.length;r<s;r+=1)t.duplicates.push(n[i[r]]);t.usedDuplicates=new Array(s)}function _t(e,t,r){var s,n,i;if(null!==e&&"object"==typeof e)if(-1!==(n=t.indexOf(e)))-1===r.indexOf(n)&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,i=e.length;n<i;n+=1)_t(e[n],t,r);else for(n=0,i=(s=Object.keys(e)).length;n<i;n+=1)_t(e[s[n]],t,r)}function Rt(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 Dt=K,Nt=Q,Lt=re,Bt=pe,qt=he,Ut=Ae,Jt=lt.load,Vt=lt.loadAll,Ht={dump:function(e,t){var r=new gt(t=t||{});r.noRefs||Mt(e,r);var s=e;return r.replacer&&(s=r.replacer.call({"":s},"",s)),It(r,0,s,!0,!0)?r.dump+"\n":""}}.dump,zt=J,Gt={binary:ve,float:ue,map:te,null:se,pairs:Se,set:Oe,timestamp:fe,bool:ne,int:ae,merge:ye,omap:we,seq:ee,str:Z},Wt=Rt("safeLoad","load"),Kt=Rt("safeLoadAll","loadAll"),Yt=Rt("safeDump","dump"),Xt={Type:Dt,Schema:Nt,FAILSAFE_SCHEMA:Lt,JSON_SCHEMA:Bt,CORE_SCHEMA:qt,DEFAULT_SCHEMA:Ut,load:Jt,loadAll:Vt,dump:Ht,YAMLException:zt,types:Gt,safeLoad:Wt,safeLoadAll:Kt,safeDump:Yt};function Qt(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,[t,r])=>(e[t]=function(e){return e.includes(", ")?e.split(", "):e}(r),e)),{})}function Zt(e,t,{loadSpec:r=!1}={}){const s={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Qt(e.headers)},n=s.headers["content-type"],i=r||((e="")=>/(json|xml|yaml|text)\b/.test(e))(n);return(i?e.text:e.blob||e.buffer).call(e).then((e=>{if(s.text=e,s.data=e,i)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 Xt.load(e)}(e,n);s.body=t,s.obj=t}catch(e){s.parseError=e}return s}))}async function er(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=N(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 s;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{s=await(t.userFetch||fetch)(t.url,t),s=await Zt(s,e,t),t.responseInterceptor&&(s=await t.responseInterceptor(s)||s)}catch(e){if(!s)throw e;const t=new Error(s.statusText||`response status is ${s.status}`);throw t.status=s.status,t.statusCode=s.status,t.responseError=e,t}if(!s.ok){const e=new Error(s.statusText||`response status is ${s.status}`);throw e.status=s.status,e.statusCode=s.status,e.response=s,e}return s}function tr(e,t={}){const{requestInterceptor:r,responseInterceptor:s}=t,n=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:s,headers:{Accept:m},credentials:n}).then((e=>e.body))}const rr=e=>{const{baseDoc:t,url:r}=e,s=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(s,globalThis.document.baseURI)):s},sr=e=>{const{fetch:t,http:r}=e;return t||r||er};var nr,ir=(nr=function(e,t){return nr=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])},nr(e,t)},function(e,t){function r(){this.constructor=e}nr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),or=Object.prototype.hasOwnProperty;function ar(e,t){return or.call(e,t)}function cr(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 s=[];for(var n in e)ar(e,n)&&s.push(n);return s}function lr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function ur(e){for(var t,r=0,s=e.length;r<s;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function pr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function hr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function dr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(dr(e[t]))return!0}else if("object"==typeof e)for(var s=cr(e),n=s.length,i=0;i<n;i++)if(dr(e[s[i]]))return!0;return!1}function mr(e,t){var r=[e];for(var s in t){var n="object"==typeof t[s]?JSON.stringify(t[s],null,2):t[s];void 0!==n&&r.push(s+": "+n)}return r.join("\n")}var fr=function(e){function t(t,r,s,n,i){var o=this.constructor,a=e.call(this,mr(t,{name:r,index:s,operation:n,tree:i}))||this;return a.name=r,a.index=s,a.operation=n,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=mr(t,{name:r,index:s,operation:n,tree:i}),a}return ir(t,e),t}(Error),yr=fr,gr=lr,vr={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var s=e[t];return delete e[t],{newDocument:r,removed:s}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:function(e,t,r){var s=xr(r,this.path);s&&(s=lr(s));var n=wr(r,{op:"remove",path:this.from}).removed;return wr(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:s}},copy:function(e,t,r){var s=xr(r,this.from);return wr(r,{op:"add",path:this.path,value:lr(s)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:Ar(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},br={add:function(e,t,r){return ur(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 s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:vr.move,copy:vr.copy,test:vr.test,_get:vr._get};function xr(e,t){if(""==t)return e;var r={op:"_get",path:t};return wr(e,r),r.value}function wr(e,t,r,s,n,i){if(void 0===r&&(r=!1),void 0===s&&(s=!0),void 0===n&&(n=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):jr(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=xr(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=Ar(e,t.value),!1===o.test)throw new yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new yr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}s||(e=lr(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:jr;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=hr(h)),n&&("__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&&!ur(h))throw new yr("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",i,t,e);ur(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new yr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(o=br[t.op].call(t,c,h,e)).test)throw new yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=vr[t.op].call(t,c,h,e)).test)throw new yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new yr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function Er(e,t,r,s,n){if(void 0===s&&(s=!0),void 0===n&&(n=!0),r&&!Array.isArray(t))throw new yr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");s||(e=lr(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=wr(e,t[o],r,!0,n,o),e=i[o].newDocument;return i.newDocument=e,i}function Sr(e,t,r){var s=wr(e,t);if(!1===s.test)throw new yr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return s.newDocument}function jr(e,t,r,s){if("object"!=typeof e||null===e||Array.isArray(e))throw new yr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!vr[e.op])throw new yr("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 yr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new yr('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 yr("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 yr("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)&&dr(e.value))throw new yr("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 n=e.path.split("/").length,i=s.split("/").length;if(n!==i+1&&n!==i)throw new yr("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!==s)throw new yr("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 o=Or([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new yr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function Or(e,t,r){try{if(!Array.isArray(e))throw new yr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Er(lr(t),lr(e),r||!0);else{r=r||jr;for(var s=0;s<e.length;s++)r(e[s],s,t,void 0)}}catch(e){if(e instanceof yr)return e;throw e}}function Ar(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,s,n,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((s=e.length)!=t.length)return!1;for(r=s;0!=r--;)if(!Ar(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var a=Object.keys(e);if((s=a.length)!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=s;0!=r--;)if(!Ar(e[n=a[r]],t[n]))return!1;return!0}return e!=e&&t!=t}var Pr=new WeakMap,kr=function(e){this.observers=new Map,this.obj=e},$r=function(e,t){this.callback=e,this.observer=t};function Tr(e,t){t.unobserve()}function Cr(e,t){var r,s=function(e){return Pr.get(e)}(e);if(s){var n=function(e,t){return e.observers.get(t)}(s,t);r=n&&n.observer}else s=new kr(e),Pr.set(e,s);if(r)return r;if(r={},s.value=lr(e),t){r.callback=t,r.next=null;var i=function(){Fr(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){Fr(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(s,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},s.observers.set(t,new $r(t,r)),r}function Fr(e,t){void 0===t&&(t=!1);var r=Pr.get(e.object);Ir(r.value,e.object,e.patches,"",t),e.patches.length&&Er(r.value,e.patches);var s=e.patches;return s.length>0&&(e.patches=[],e.callback&&e.callback(s)),s}function Ir(e,t,r,s,n){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=cr(t),o=cr(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!ar(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:s+"/"+pr(p),value:lr(l)}),r.push({op:"remove",path:s+"/"+pr(p)}),a=!0):(n&&r.push({op:"test",path:s,value:e}),r.push({op:"replace",path:s,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?Ir(l,u,r,s+"/"+pr(p),n):l!==u&&(n&&r.push({op:"test",path:s+"/"+pr(p),value:lr(l)}),r.push({op:"replace",path:s+"/"+pr(p),value:lr(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;ar(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:s+"/"+pr(p),value:lr(t[p])})}}}function Mr(e,t,r){void 0===r&&(r=!1);var s=[];return Ir(e,t,s,"",r),s}Object.assign({},e,t,{JsonPatchError:fr,deepClone:lr,escapePathComponent:pr,unescapePathComponent:hr});var _r=r(4744),Rr=r.n(_r);const Dr={add:function(e,t){return{op:"add",path:e,value:t}},replace:Lr,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&&Nr(t.path)}).op){const r=Qr(e,t.path);Object.assign(r,t.value),Er(e,[Lr(t.path,r)])}else if("mergeDeep"===t.op){const r=Qr(e,t.path),s=Rr()(r,t.value,{customMerge:e=>{if("enum"===e)return(e,t)=>Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:Rr()(e,t)}});e=Er(e,[Lr(t.path,s)]).newDocument}else if("add"===t.op&&""===t.path&&zr(t.value)){Er(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${Nr(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:s}=t;r.allowMetaPatches&&t.meta&&Yr(t)&&(Array.isArray(t.value)||zr(t.value))&&(s={...s,...t.meta}),e=s}else if(Er(e,[t]),r.allowMetaPatches&&t.meta&&Yr(t)&&(Array.isArray(t.value)||zr(t.value))){const r={...Qr(e,t.path),...t.meta};Er(e,[Lr(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,s=t.length;r<s;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:Vr,fullyNormalizeArray:function(e){return Hr(Vr(Jr(e)))},normalizeArray:Jr,isPromise:function(e){return zr(e)&&Gr(e.then)},forEachNew:function(e,t){try{return Br(e,Ur,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return Br(e,qr,t)}catch(e){return e}},isJsonPatch:Wr,isContextPatch:function(e){return Xr(e)&&"context"===e.type},isPatch:Xr,isMutation:Kr,isAdditiveMutation:Yr,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Gr,isObject:zr,isError:function(e){return e instanceof Error}};function Nr(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function Lr(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function Br(e,t,r){return Hr(Vr(e.filter(Yr).map((e=>t(e.value,r,e.path)))||[]))}function qr(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,s)=>qr(e,t,r.concat(s)))):zr(e)?Object.keys(e).map((s=>qr(e[s],t,r.concat(s)))):t(e,r[r.length-1],r)}function Ur(e,t,r){let s=[];if((r=r||[]).length>0){const n=t(e,r[r.length-1],r);n&&(s=s.concat(n))}if(Array.isArray(e)){const n=e.map(((e,s)=>Ur(e,t,r.concat(s))));n&&(s=s.concat(n))}else if(zr(e)){const n=Object.keys(e).map((s=>Ur(e[s],t,r.concat(s))));n&&(s=s.concat(n))}return s=Vr(s),s}function Jr(e){return Array.isArray(e)?e:[e]}function Vr(e){return[].concat(...e.map((e=>Array.isArray(e)?Vr(e):e)))}function Hr(e){return e.filter((e=>void 0!==e))}function zr(e){return e&&"object"==typeof e}function Gr(e){return e&&"function"==typeof e}function Wr(e){if(Xr(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Kr(e){return Wr(e)||Xr(e)&&"mutation"===e.type}function Yr(e){return Kr(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Xr(e){return e&&"object"==typeof e}function Qr(e,t){try{return xr(e,t)}catch(e){return console.error(e),{}}}var Zr=r(8675);const es=class extends Zr{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 ts extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(es,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 rs=ts;const ss=class extends rs{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};function ns(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,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,o,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 is(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function os(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function as(e){return function t(r){return 0===arguments.length||os(r)?t:e.apply(this,arguments)}}function cs(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return os(r)?t:as((function(t){return e(r,t)}));default:return os(r)&&os(s)?t:os(r)?as((function(t){return e(t,s)})):os(s)?as((function(t){return e(r,t)})):e(r,s)}}}function ls(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return os(r)?t:cs((function(t,s){return e(r,t,s)}));case 2:return os(r)&&os(s)?t:os(r)?cs((function(t,r){return e(t,s,r)})):os(s)?cs((function(t,s){return e(r,t,s)})):as((function(t){return e(r,s,t)}));default:return os(r)&&os(s)&&os(n)?t:os(r)&&os(s)?cs((function(t,r){return e(t,r,n)})):os(r)&&os(n)?cs((function(t,r){return e(t,s,r)})):os(s)&&os(n)?cs((function(t,s){return e(r,t,s)})):os(r)?as((function(t){return e(t,s,n)})):os(s)?as((function(t){return e(r,t,n)})):os(n)?as((function(t){return e(r,s,t)})):e(r,s,n)}}}const us=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function ps(e){return"[object String]"===Object.prototype.toString.call(e)}const hs=as((function(e){return!!us(e)||!!e&&("object"==typeof e&&(!ps(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var ds="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ms(e,t,r){return function(s,n,i){if(hs(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[ds])return r(s,n,i[ds]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function fs(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const ys=cs((function(e,t){return ns(e.length,(function(){return e.apply(t,arguments)}))}));function gs(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function vs(e,t,r,s){return e["@@transducer/result"](r[s](ys(e["@@transducer/step"],e),t))}const bs=ms(fs,vs,gs);var xs=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 ws(e){return new xs(e)}const Es=ls((function(e,t,r){return bs("function"==typeof e?ws(e):e,t,r)}));function Ss(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return us(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const js=ls(Ss("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Os=as(Ss("tail",js(1,1/0)));function As(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return ns(arguments[0].length,Es(is,arguments[0],Os(arguments)))}const Ps=cs((function(e,t){return null==t||t!=t?e:t})),ks=Number.isInteger||function(e){return(e|0)===e};function $s(e,t){var r=e<0?t.length+e:e;return ps(t)?t.charAt(r):t[r]}const Ts=cs((function(e,t){if(null!=t)return ks(e)?$s(e,t):t[e]}));const Cs=ls((function(e,t,r){return Ps(e,Ts(t,r))}));const Fs=as((function(e){return $s(-1,e)}));function Is(e,t,r){return function(){for(var s=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var c;o<t.length&&(!os(t[o])||n>=arguments.length)?c=t[o]:(c=arguments[n],n+=1),s[o]=c,os(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,s):ns(Math.max(0,i),Is(e,s,r))}}const Ms=cs((function(e,t){return 1===e?as(t):ns(e,Is(e,[],t))}));const _s=as((function(e){return Ms(e.length,e)}));function Rs(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function Ds(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Ns(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function Ls(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const Bs="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var qs=Object.prototype.toString;const Us=function(){return"[object Arguments]"===qs.call(arguments)?function(e){return"[object Arguments]"===qs.call(e)}:function(e){return Ls("callee",e)}}();var Js=!{toString:null}.propertyIsEnumerable("toString"),Vs=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Hs=function(){return arguments.propertyIsEnumerable("length")}(),zs=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},Gs="function"!=typeof Object.keys||Hs?as((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=Hs&&Us(e);for(t in e)!Ls(t,e)||n&&"length"===t||(s[s.length]=t);if(Js)for(r=Vs.length-1;r>=0;)Ls(t=Vs[r],e)&&!zs(s,t)&&(s[s.length]=t),r-=1;return s})):as((function(e){return Object(e)!==e?[]:Object.keys(e)}));const Ws=Gs;const Ks=as((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Ys(e,t,r,s){var n=Ds(e);function i(e,t){return Xs(e,t,r.slice(),s.slice())}return!Ns((function(e,t){return!Ns(i,t,e)}),Ds(t),n)}function Xs(e,t,r,s){if(Bs(e,t))return!0;var n,i,o=Ks(e);if(o!==Ks(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(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Bs(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Bs(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 s[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Ys(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&Ys(e.values(),t.values(),r.concat([e]),s.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=Ws(e);if(c.length!==Ws(t).length)return!1;var l=r.concat([e]),u=s.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!Ls(p,t)||!Xs(t[p],e[p],l,u))return!1;a-=1}return!0}const Qs=cs((function(e,t){return Xs(e,t,[],[])}));function Zs(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)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(Qs(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function en(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function tn(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 rn=function(e){return(e<10?"0":"")+e};const sn="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+rn(e.getUTCMonth()+1)+"-"+rn(e.getUTCDate())+"T"+rn(e.getUTCHours())+":"+rn(e.getUTCMinutes())+":"+rn(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function nn(e){return function(){return!e.apply(this,arguments)}}function on(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}function an(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!us(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function cn(e){return"[object Object]"===Object.prototype.toString.call(e)}const ln=function(){return this.xf["@@transducer/init"]()},un=function(e){return this.xf["@@transducer/result"](e)};var pn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=un,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function hn(e){return function(t){return new pn(e,t)}}const dn=cs(an(["fantasy-land/filter","filter"],hn,(function(e,t){return cn(t)?on((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},Ws(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)})));const mn=cs((function(e,t){return dn(nn(e),t)}));function fn(e,t){var r=function(r){var s=t.concat([e]);return Zs(r,s)?"<Circular>":fn(r,s)},s=function(e,t){return en((function(t){return tn(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+en(r,e).join(", ")+"))";case"[object Array]":return"["+en(r,e).concat(s(e,mn((function(e){return/^\d+$/.test(e)}),Ws(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):tn(sn(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())+")":tn(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,Ws(e)).join(", ")+"}"}}const yn=as((function(e){return fn(e,[])}));const gn=cs((function(e,t){return Ms(e+1,(function(){var r=arguments[e];if(null!=r&&Rs(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(yn(r)+' does not have a method named "'+t+'"')}))}));const vn=gn(1,"split");function bn(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return js(0,r+1,t)}var xn=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=ln,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=bs(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 wn(e){return function(t){return new xn(e,t)}}const En=cs(an([],wn,bn));const Sn=gn(1,"join");const jn=as((function(e){return Ms(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(cs(Zs));const On=_s((function(e,t){return As(vn(""),En(jn(e)),Sn(""))(t)}));function An(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function Pn(e,t,r,s){return r[s](e,t)}const kn=ms(on,Pn,An);var $n=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=un,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Tn=cs(an(["fantasy-land/map","map"],(function(e){return function(t){return new $n(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Ms(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return on((function(r,s){return r[s]=e(t[s]),r}),{},Ws(t));default:return en(e,t)}})));const Cn=cs((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))}:kn((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,Tn(r,t))}),[],e)}));const Fn=cs((function(e,t){var r=Ms(e,t);return Ms(e,(function(){return on(Cn,Tn(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const In=as((function(e){return Fn(e.length,e)}));const Mn=In(as((function(e){return!e})));const _n=as((function(e){return function(){return e}}));const Rn=_n(void 0);const Dn=Qs(Rn());const Nn=Mn(Dn);const Ln=cs((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=yn(e),o=r(i,yn(t));return void 0!==o&&o===i?e:t}));const Bn=cs((function(e,t){return Tn(Ts(e),t)}));const qn=as((function(e){return Ms(Es(Ln,0,Bn("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));var Un=function(e,t){switch(arguments.length){case 0:return Un;case 1:return function t(r){return 0===arguments.length?t:Bs(e,r)};default:return Bs(e,t)}};const Jn=Un;const Vn=Ms(1,As(Ks,Jn("GeneratorFunction")));const Hn=Ms(1,As(Ks,Jn("AsyncFunction")));const zn=qn([As(Ks,Jn("Function")),Vn,Hn]);var Gn=ls((function(e,t,r){return r.replace(e,t)}));const Wn=Gn;const Kn=Ms(1,As(Ks,Jn("RegExp")));const Yn=ls((function(e,t,r){return e(r)?t(r):r}));const Xn=Ms(1,As(Ks,Jn("String")));const Qn=Yn(Xn,Wn(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var Zn=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const ei=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),Zn(r,"str"),Zn(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 s=new RegExp(Kn(e)?e:Qn(e),"g");return Wn(s,t,r)};var ti=Ms(3,ei),ri=gn(2,"replaceAll");const si=zn(String.prototype.replaceAll)?ri:ti,ni=()=>{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 On(":",t.protocol)}catch{return}},oi=(As(ii,Nn),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),ai=e=>{if(void 0!==globalThis.window)return!1;const t=ii(e);return Dn(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,"@"],s=Cs(!1,"keepFileProtocol",t),n=Cs(ni,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substring(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substring(8):i.substring(7),n()&&"/"===i[1]&&(i=`${i[0]}:${i.substring(1)}`),s?i=`file:///${i}`:(o=!1,i=n()?i:`/${i}`)),n()&&!o&&(i=si("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},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:"/",s=Fs(r);return["/","\\"].includes(s)?r:r+(ni()?"\\":"/")},di=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:s}=r;return e+t+s}return r.toString()},mi=e=>{if(ai(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;ni()&&(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,"]")}},fi=e=>ai(e)?li(e):decodeURI(e);function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r<t;r++)s[r]=e[r];return s}function gi(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function vi(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function bi(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 s,n,i=[],o=!0,a=!1;try{for(r=r.call(e);!(o=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw n}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yi(e,t)}(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 wi=function(e){throw TypeError(e)},Ei=function(e,t,r){return t.has(e)||wi("Cannot "+r)},Si=function(e,t,r){return Ei(e,t,"read from private field"),r?r.call(e):t.get(e)},ji=function(e,t,r){return t.has(e)?wi("Cannot add the same private member more than once"):vi(t,WeakSet)?t.add(e):t.set(e,r)},Oi=function(e,t,r,s){return Ei(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r},Ai=function(e){return Object.prototype.toString.call(e)},Pi=function(e){return ArrayBuffer.isView(e)&&!vi(e,DataView)},ki=Array.isArray,$i=Object.getOwnPropertyDescriptor,Ti=Object.prototype.propertyIsEnumerable,Ci=Object.getOwnPropertySymbols,Fi=Object.prototype.hasOwnProperty;function Ii(e){for(var t=Object.keys(e),r=Ci(e),s=0;s<r.length;s++)Ti.call(e,r[s])&&t.push(r[s]);return t}function Mi(e,t){var r;return!(null===(r=$i(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(ki(e))r=[];else if("[object Date]"===Ai(e))r=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===Ai(e)}(e))r=new RegExp(e);else if(function(e){return"[object Error]"===Ai(e)}(e))r={message:e.message};else if(function(e){return"[object Boolean]"===Ai(e)}(e)||function(e){return"[object Number]"===Ai(e)}(e)||function(e){return"[object String]"===Ai(e)}(e))r=Object(e);else{if(Pi(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var s=t.includeSymbols?Ii:Object.keys,n=!0,i=!1,o=void 0;try{for(var a,c=s(e)[Symbol.iterator]();!(n=(a=c.next()).done);n=!0){var l=a.value;r[l]=e[l]}}catch(e){i=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}return e}var Ri,Di,Ni={includeSymbols:!1,immutable:!1};function Li(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ni,s=[],n=[],i=!0,o=r.includeSymbols?Ii: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(s),parent:n[n.length-1],parents:n,key:s[s.length-1],isRoot:0===s.length,level:s.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){ki(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(){i=!1},block:function(){p=!1}};if(!i)return h;function d(){if("object"===xi(h.node)&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=o(h.node)),h.isLeaf=0===h.keys.length;for(var e=0;e<n.length;e++)if(n[e].node_===c){h.circular=n[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}d();var m=t.call(h,h.node);if(void 0!==m&&h.update&&h.update(m),u.before&&u.before.call(h,h.node),!p)return h;if("object"===xi(h.node)&&null!==h.node&&!h.circular){var f;n.push(h),d();var y=!0,g=!1,v=void 0;try{for(var b,x=Object.entries(null!==(f=h.keys)&&void 0!==f?f:[])[Symbol.iterator]();!(y=(b=x.next()).done);y=!0){var w,E=bi(b.value,2),S=E[0],j=E[1];s.push(j),u.pre&&u.pre.call(h,h.node[j],j);var O=e(h.node[j]);a&&Fi.call(h.node,j)&&!Mi(h.node,j)&&(h.node[j]=O.node),O.isLast=!!(null===(w=h.keys)||void 0===w?void 0:w.length)&&+S==h.keys.length-1,O.isFirst=0==+S,u.post&&u.post.call(h,O),s.pop()}}catch(e){g=!0,v=e}finally{try{y||null==x.return||x.return()}finally{if(g)throw v}}n.pop()}return u.after&&u.after.call(h,h.node),h}(e).node}var Bi=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ni;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ji(this,Ri),ji(this,Di),Oi(this,Ri,t),Oi(this,Di,r)}var t,r,s;return t=e,r=[{key:"get",value:function(e){for(var t=Si(this,Ri),r=0;t&&r<e.length;r++){var s=e[r];if(!Fi.call(t,s)||!Si(this,Di).includeSymbols&&"symbol"===(void 0===s?"undefined":xi(s)))return;t=t[s]}return t}},{key:"has",value:function(e){for(var t=Si(this,Ri),r=0;t&&r<e.length;r++){var s=e[r];if(!Fi.call(t,s)||!Si(this,Di).includeSymbols&&"symbol"===(void 0===s?"undefined":xi(s)))return!1;t=t[s]}return!0}},{key:"set",value:function(e,t){var r=Si(this,Ri),s=0;for(s=0;s<e.length-1;s++){var n=e[s];Fi.call(r,n)||(r[n]={}),r=r[n]}return r[e[s]]=t,t}},{key:"map",value:function(e){return Li(Si(this,Ri),e,{immutable:!0,includeSymbols:!!Si(this,Di).includeSymbols})}},{key:"forEach",value:function(e){return Oi(this,Ri,Li(Si(this,Ri),e,Si(this,Di))),Si(this,Ri)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,s=r?Si(this,Ri):t;return this.forEach((function(t){this.isRoot&&r||(s=e.call(this,s,t))})),s}},{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=Si(this,Di);return Pi(Si(this,Ri))?Si(this,Ri).slice():function s(n){for(var i=0;i<e.length;i++)if(e[i]===n)return t[i];if("object"===(void 0===n?"undefined":xi(n))&&null!==n){var o=_i(n,r);e.push(n),t.push(o);var a=r.includeSymbols?Ii:Object.keys,c=!0,l=!1,u=void 0;try{for(var p,h=a(n)[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var d=p.value;o[d]=s(n[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(),o}return n}(Si(this,Ri))}}],r&&gi(t.prototype,r),s&&gi(t,s),e}();Ri=new WeakMap,Di=new WeakMap;var qi=function(e,t){return new Bi(e,t)};qi.get=function(e,t,r){return new Bi(e,r).get(t)},qi.set=function(e,t,r,s){return new Bi(e,s).set(t,r)},qi.has=function(e,t,r){return new Bi(e,r).has(t)},qi.map=function(e,t,r){return new Bi(e,r).map(t)},qi.forEach=function(e,t,r){return new Bi(e,r).forEach(t)},qi.reduce=function(e,t,r,s){return new Bi(e,s).reduce(t,r)},qi.paths=function(e,t){return new Bi(e,t).paths()},qi.nodes=function(e,t){return new Bi(e,t).nodes()},qi.clone=function(e,t){return new Bi(e,t).clone()};var Ui=qi;const Ji=["properties"],Vi=["properties"],Hi=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],zi=["schema/example","items/example"];function Gi(e){const t=e[e.length-1],r=e[e.length-2],s=e.join("/");return Ji.indexOf(t)>-1&&-1===Vi.indexOf(r)||Hi.indexOf(s)>-1||zi.some((e=>s.indexOf(e)>-1))}function Wi(e,t){const[r,s]=e.split("#"),n=t??"",i=r??"";let o;if(ci(n))o=di(n,i);else{const e=di(f,n),t=di(e,i).replace(f,"");o=i.startsWith("/")?t:t.substring(1)}return s?`${o}#${s}`:o}const Ki=/^([a-z]+:\/\/|\/\/)/i;class Yi extends ss{}const Xi={},Qi=new WeakMap,Zi=[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]],eo={key:"$ref",plugin:(e,t,r,s)=>{const n=s.getInstance(),i=r.slice(0,-1);if(Gi(i)||(e=>Zi.some((t=>t(e))))(i))return;const{baseDoc:o}=s.getContext(r);if("string"!=typeof e)return new Yi("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=io(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?so(c,o):null}catch(t){return no(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,s){let n=Qi.get(s);n||(n={},Qi.set(s,n));const i=function(e){if(0===e.length)return"";return`/${e.map(po).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=s.contextTree.get([]).baseDoc;if(t===c&&mo(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${po(e)}`,n[l]&&n[l].some((e=>mo(e,o)||mo(o,e))))));if(u)return!0;return void(n[a]=(n[a]||[]).concat(o))}(l,u,i,s)&&!n.useCircularStructures){const t=Wi(e,u);return e===t?null:Dr.replace(r,t)}if(null==u?(h=lo(l),p=s.get(h),void 0===p&&(p=new Yi(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=oo(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw no(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[Dr.remove(r),p];const d=Wi(e,u),m=Dr.replace(i,p,{$$ref:d});if(u&&u!==o)return[m,Dr.context(i,{baseDoc:u})];try{if(!function(e,t){const r=[e];return t.path.reduce(((e,t)=>(r.push(e[t]),e[t])),e),s(t.value);function s(e){return Dr.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>s(e[t]))))}}(s.state,m)||n.useCircularStructures)return m}catch(e){return null}}},to=Object.assign(eo,{docCache:Xi,absoluteify:so,clearCache:function(e){void 0!==e?delete Xi[e]:Object.keys(Xi).forEach((e=>{delete Xi[e]}))},JSONRefError:Yi,wrapError:no,getDoc:ao,split:io,extractFromDoc:oo,fetchJSON:function(e){return fetch(e,{headers:{Accept:m},loadSpec:!0}).then((e=>e.text())).then((e=>Xt.load(e)))},extract:co,jsonPointerToArray:lo,unescapeJsonPointerToken:uo}),ro=to;function so(e,t){if(!Ki.test(e)){if(!t)throw new Yi(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return di(t,e)}return e}function no(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new Yi(`Could not resolve reference: ${r}`,{...t,cause:e})}function io(e){return(e+"").split("#")}function oo(e,t){const r=Xi[e];if(r&&!Dr.isPromise(r))try{const e=co(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return ao(e).then((e=>co(t,e)))}function ao(e){const t=Xi[e];return t?Dr.isPromise(t)?t:Promise.resolve(t):(Xi[e]=to.fetchJSON(e).then((t=>(Xi[e]=t,t))),Xi[e])}function co(e,t){const r=lo(e);if(r.length<1)return t;const s=Dr.getIn(t,r);if(void 0===s)throw new Yi(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return s}function lo(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(uo)}function uo(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function po(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const ho=e=>!e||"/"===e||"#"===e;function mo(e,t){if(ho(t))return!0;const r=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==s}const fo={key:"allOf",plugin:(e,t,r,s,n)=>{if(n.meta&&n.meta.$$ref)return;const i=r.slice(0,-1);if(Gi(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=n.value;if(i.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.push(s.replace(i,{})),e.forEach(((e,t)=>{if(!s.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,c.push(e)}c.push(s.mergeDeep(i,e));const n=function(e,t,{specmap:r,getBaseUrlForNodePath:s=e=>r.getContext([...t,...e]).baseDoc,targetKeys:n=["$ref","$$ref"]}={}){const i=[];return Ui(e).forEach((function(){if(n.includes(this.key)&&"string"==typeof this.node){const e=this.path,n=t.concat(this.path),o=Wi(this.node,s(e));i.push(r.replace(n,o))}})),i}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>s.getContext([...r,t,...e]).baseDoc,specmap:s});c.push(...n)})),a.example&&c.push(s.remove([].concat(i,"example"))),c.push(s.mergeDeep(i,a)),a.$$ref||c.push(s.remove([].concat(i,"$$ref"))),c}},yo={key:"parameters",plugin:(e,t,r,s)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),n=r.slice(0,-1),i={...Dr.getIn(s.spec,n)};for(let n=0;n<e.length;n+=1){const o=e[n];try{t[n].default=s.parameterMacro(i,o)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return Dr.replace(r,t)}return Dr.replace(r,e)}},go={key:"properties",plugin:(e,t,r,s)=>{const n={...e};for(const t in e)try{n[t].default=s.modelPropertyMacro(n[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return Dr.replace(r,n)}};class vo{constructor(e){this.root=bo(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void xo(this.root,t,null);const s=e[e.length-1],{children:n}=r;n[s]?xo(n[s],t,r):n[s]=bo(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,s=this.root;for(let n=0;n<e.length&&(r=e[n],t=s.children,t[r]);n+=1)s=t[r];return s&&s.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:s}=e;return!s[r]&&t&&(s[r]=bo(null,e)),s[r]}),this.root)}}function bo(e,t){return xo({children:{}},e,t)}function xo(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]=xo(r,r.value,e)})),e}const wo=()=>{};class Eo{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 vo,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),Dr,{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(Dr.isFunction),this.patches.push(Dr.add([],this.spec)),this.patches.push(Dr.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 s,n=null;return e[this.pluginProp]?(n=e,s=e[this.pluginProp]):Dr.isFunction(e)?s=e:Dr.isObject(e)&&(s=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(s,n){const i={};for(const[e,t]of s.filter(Dr.isAdditiveMutation).entries()){if(!(e<g))return;yield*o(t.value,t.path,t)}function*o(s,a,c){if(Dr.isObject(s)){const l=a.length-1,u=a[l],p=a.indexOf("properties"),h="properties"===u&&l===p,d=n.allowMetaPatches&&i[s.$$ref];for(const l of Object.keys(s)){const u=s[l],p=a.concat(l),m=Dr.isObject(u),f=s.$$ref;if(d||m&&(n.allowMetaPatches&&f&&t(r,p)&&(i[f]=!0),yield*o(u,p,c)),!h&&l===e.key){const s=t(r,a);r&&!s||(yield e.plugin(u,l,p,n,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(s,e.key,a,n))}}}(e)),Object.assign(s.bind(n),{pluginName:e.name||t,isGenerator:Dr.isGenerator(s)})}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){Dr.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!Dr.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),Dr.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(Dr.isContextPatch(e))return void this.setContext(e.path,e.value);Dr.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=Dr.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 Dr.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(wo,wo)))).then((()=>this.dispatch()))}return function(){e.currentPlugin=t;const s=e.getCurrentMutations(),n=e.mutations.length-1;try{if(t.isGenerator)for(const n of t(s,e.getLib()))r(n);else{r(t(s,e.getLib()))}}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:n})}return e.dispatch()}();function r(r){r&&(r=Dr.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const So={refs:ro,allOf:fo,parameters:yo,properties:go};async function jo(e){const{spec:t,mode:r,allowMetaPatches:s=!0,pathDiscriminator:n,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:c,skipNormalization:l=!1,useCircularStructures:u,strategies:p}=e,h=rr(e),d=sr(e),m=p.find((e=>e.match(t)));return async function(e){h&&(So.refs.docCache[h]=e);So.refs.fetchJSON=tr(d,{requestInterceptor:a,responseInterceptor:c});const t=[So.refs];"function"==typeof o&&t.push(So.parameters);"function"==typeof i&&t.push(So.properties);"strict"!==r&&t.push(So.allOf);const p=await(f={spec:e,context:{baseDoc:h},plugins:t,allowMetaPatches:s,pathDiscriminator:n,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Eo(f).dispatch());var f;l||(p.spec=m.normalize(p.spec));return p}(t)}function Oo(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=ks(n)?$s(n,r):r[n]}return r}const Ao=ls((function(e,t,r){return e(Oo(t,r))}));const Po=cs((function(e,t){return e&&t}));const ko=cs((function(e,t){return Rs(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:In(Po)(e,t)}));const $o=Qs(null);const To=Mn($o);function Co(e){return Co="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},Co(e)}const Fo=function(e){return"object"===Co(e)};const Io=Ms(1,ko(To,Fo));var Mo=As(Ks,Jn("Object")),_o=As(yn,Qs(yn(Object))),Ro=Ao(ko(zn,_o),["constructor"]);const Do=Ms(1,(function(e){if(!Io(e)||!Mo(e))return!1;var t=Object.getPrototypeOf(e);return!!$o(t)||Ro(t)})),No=e=>e.replace(/\W/gi,"_");function Lo(e,t,r="",{v2OperationIdCompatibilityMode:s}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?No(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()}${No(e)}`}(t,r,{v2OperationIdCompatibilityMode:s})}function Bo(e){const{spec:t}=e,{paths:r}=t,s={};if(!r||t.$$normalized)return e;for(const e in r){const n=r[e];if(null==n||!["object","function"].includes(typeof n))continue;const i=n.parameters;for(const r in n){const o=n[r];if(null==o||!["object","function"].includes(typeof o))continue;const a=Lo(o,e,r);if(a){s[a]?s[a].push(o):s[a]=[o];const e=s[a];if(e.length>1)e.forEach(((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${a}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||o.operationId,t.operationId=a}}if("parameters"!==r){const e=[],r={};for(const s in t)"produces"!==s&&"consumes"!==s&&"security"!==s||(r[s]=t[s],e.push(r));if(i&&(r.parameters=i,e.push(r)),e.length)for(const t of e)for(const e in t)if(Array.isArray(o[e])){if("parameters"===e)for(const r of t[e]){o[e].some((e=>!(!Do(e)&&!Do(r))&&(e===r||["name","$ref","$$ref"].some((t=>"string"==typeof e[t]&&"string"==typeof r[t]&&e[t]===r[t])))))||o[e].push(r)}}else o[e]=t[e]}}}return t.$$normalized=!0,e}const qo={name:"generic",match:()=>!0,normalize(e){const{spec:t}=Bo({spec:e});return t},resolve:async e=>jo(e)};const Uo=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},Jo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Vo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Ho=e=>Jo(e)||Vo(e),zo={name:"openapi-2",match:e=>Uo(e),normalize(e){const{spec:t}=Bo({spec:e});return t},resolve:async e=>async function(e){return jo(e)}(e)};const Go={name:"openapi-3-0",match:e=>Jo(e),normalize(e){const{spec:t}=Bo({spec:e});return t},resolve:async e=>async function(e){return jo(e)}(e)},Wo=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:s}=e,n=rr(e),i=sr(e),o=t||await tr(i,{requestInterceptor:r,responseInterceptor:s})(n),a={...e,spec:o};return e.strategies.find((e=>e.match(o))).resolve(a)})({...e,...t}),Ko=Wo({strategies:[Go,zo,qo]}),Yo=e=>async(t,r,s={})=>(async(e,t,r={})=>{const{returnEntireTree:s,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u},h=u.find((t=>t.match(e))).normalize(e),d=await Ko({spec:h,...p,allowMetaPatches:!0,skipNormalization:!Vo(e)});return!s&&Array.isArray(t)&&t.length&&(d.spec=t.reduce(((e,t)=>e?.[t]),d.spec)||null),d})(t,r,{...e,...s});Yo({strategies:[Go,zo,qo]});var Xo=r(4035);function Qo(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Zo=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=ln,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=Qo(this.xf["@@transducer/step"](e,!1))),e},e}();function ea(e){return function(t){return new Zo(e,t)}}const ta=cs(an(["all"],ea,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));class ra extends Xo.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 sa=ra;class na extends Xo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const ia=na;class oa extends Xo.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(Dn(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const aa=oa,ca=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],la=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,ua=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),pa=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof Xo.wE)&&t.classes.includes(e),ha=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,da=e=>e({hasMethod:ca,hasBasicElementProps:la,primitiveEq:ua,isElementType:ha,hasClass:pa}),ma=da((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.Hg||e(r)&&t(void 0,r))),fa=da((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.Om||e(r)&&t("string",r))),ya=da((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.kT||e(r)&&t("number",r))),ga=da((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.Os||e(r)&&t("null",r))),va=da((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Xo.bd||e(r)&&t("boolean",r))),ba=da((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Xo.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),xa=da((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Xo.wE&&!(s instanceof Xo.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),wa=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xo.Pr||e(s)&&t("member",s)&&r(void 0,s))),Ea=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xo.Ft||e(s)&&t("link",s)&&r(void 0,s))),Sa=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xo.sI||e(s)&&t("ref",s)&&r(void 0,s))),ja=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sa||e(s)&&t("annotation",s)&&r("array",s))),Oa=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ia||e(s)&&t("comment",s)&&r("string",s))),Aa=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aa||e(s)&&t("parseResult",s)&&r("array",s))),Pa=e=>ha("object",e)||ha("array",e)||ha("boolean",e)||ha("number",e)||ha("string",e)||ha("null",e)||ha("member",e),ka=e=>!!ma(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)),$a=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!xa(r)&&ta(jn(r.toValue()),e)},Ta=(e,t)=>0===e.length||ta(jn(t.classes.toValue()),e);const Ca=function(){return!0};const Fa=function(){return!1},Ia=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},Ma={},_a=e=>null==e?void 0:e.type,Ra=e=>"string"==typeof _a(e),Da=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Na=(e,{visitFnGetter:t=Ia,nodeTypeGetter:r=_a,breakSymbol:s=Ma,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,p,h,d,m){let f=l,y=!1;const g={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(f),!1);if("function"==typeof a){const t=a.call(e[l],f,u,p,h,d,g);if("function"==typeof(null==t?void 0:t.then))throw new ss("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=f;else if(t===s)c[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;f=t,y=!0}}}}return y?f:void 0},leave(n,o,l,u,p,h){let d=n;const m={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(d),!0);if("function"==typeof a){const t=a.call(e[n],d,o,l,u,p,m);if("function"==typeof(null==t?void 0:t.then))throw new ss("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===d&&(c[n]=a)}}};Na[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Ia,nodeTypeGetter:r=_a,breakSymbol:s=Ma,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,p,h,d,m){let f=l,y=!1;const g={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(f),!1);if("function"==typeof a){const t=await a.call(e[l],f,u,p,h,d,g);if(t===i)c[l]=f;else if(t===s)c[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;f=t,y=!0}}}}return y?f:void 0},async leave(n,o,l,u,p,h){let d=n;const m={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(d),!0);if("function"==typeof a){const t=await a.call(e[n],d,o,l,u,p,m);if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===d&&(c[n]=a)}}};const La=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Ma,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ia,nodeTypeGetter:c=_a,nodePredicate:l=Ra,nodeCloneFn:u=Da,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let m,f,y=Array.isArray(e),g=[e],v=-1,b=[],x=e;const w=[],E=[];do{v+=1;const e=v===g.length;let r;const O=e&&0!==b.length;if(e){if(r=0===E.length?void 0:w.pop(),x=f,f=E.pop(),O)if(y){x=x.slice();let e=0;for(const[t,r]of b){const s=t-e;r===i?(x.splice(s,1),e+=1):x[s]=r}}else{x=u(x);for(const[e,t]of b)x[e]=t}v=m.index,g=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=y?v:g[v],x=f[r],x===i||void 0===x)continue;w.push(r)}let A;if(!Array.isArray(x)){var S;if(!l(x))throw new ss(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&E.includes(x)){"function"==typeof h&&h(x,r,f,w,E),w.pop();continue}const i=a(t,c(x),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,x,r,f,w,E):f&&(f[r]=t),e||(x=t)}};A=i.call(t,x,r,f,w,E,n)}if("function"==typeof(null===(S=A)||void 0===S?void 0:S.then))throw new ss("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(A===n)break;if(A===o){if(!e){w.pop();continue}}else if(void 0!==A&&(b.push([r,A]),!e)){if(!l(A)){w.pop();continue}x=A}}var j;if(void 0===A&&O&&b.push([r,x]),!e)m={inArray:y,index:v,keys:g,edits:b,prev:m},y=Array.isArray(x),g=y?x:null!==(j=d[c(x)])&&void 0!==j?j:[],v=-1,b=[],f!==i&&void 0!==f&&E.push(f),f=x}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};La[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Ma,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ia,nodeTypeGetter:c=_a,nodePredicate:l=Ra,nodeCloneFn:u=Da,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let m,f,y=Array.isArray(e),g=[e],v=-1,b=[],x=e;const w=[],E=[];do{v+=1;const e=v===g.length;let r;const j=e&&0!==b.length;if(e){if(r=0===E.length?void 0:w.pop(),x=f,f=E.pop(),j)if(y){x=x.slice();let e=0;for(const[t,r]of b){const s=t-e;r===i?(x.splice(s,1),e+=1):x[s]=r}}else{x=u(x);for(const[e,t]of b)x[e]=t}v=m.index,g=m.keys,b=m.edits,y=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=y?v:g[v],x=f[r],x===i||void 0===x)continue;w.push(r)}let O;if(!Array.isArray(x)){if(!l(x))throw new ss(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&E.includes(x)){"function"==typeof h&&h(x,r,f,w,E),w.pop();continue}const i=a(t,c(x),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,x,r,f,w,E):f&&(f[r]=t),e||(x=t)}};O=await i.call(t,x,r,f,w,E,n)}if(O===n)break;if(O===o){if(!e){w.pop();continue}}else if(void 0!==O&&(b.push([r,O]),!e)){if(!l(O)){w.pop();continue}x=O}}var S;if(void 0===O&&j&&b.push([r,x]),!e)m={inArray:y,index:v,keys:g,edits:b,prev:m},y=Array.isArray(x),g=y?x:null!==(S=d[c(x)])&&void 0!==S?S:[],v=-1,b=[],f!==i&&void 0!==f&&E.push(f),f=x}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};const Ba=class extends ss{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const qa=class extends Ba{};const Ua=class extends Ba{};const Ja=cs((function(e,t){return on((function(r,s){return r[s]=e(t[s],s,t),r}),{},Ws(t))}));const Va=as((function(e){return null==e}));var Ha=cs((function(e,t){if(0===e.length||Va(t))return!1;for(var r=t,s=0;s<e.length;){if(Va(r)||!Ls(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const za=Ha;var Ga=cs((function(e,t){return za([e],t)}));const Wa=Ga;const Ka=ls((function(e,t,r){return e(Ts(t,r))}));const Ya=cs(Oo);var Xa=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=un,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 Qa(e){return function(t){return new Xa(e,t)}}const Za=cs(an(["dropWhile"],Qa,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return js(r,1/0,t)})));const ec=_s((function(e,t){return As(vn(""),Za(jn(e)),Sn(""))(t)})),tc=(e,t)=>{const r=Ps(e,t);return Ja((e=>{if(Do(e)&&Wa("$ref",e)&&Ka(Xn,"$ref",e)){const t=Ya(["$ref"],e),s=ec("#/",t);return Ya(s.split("/"),r)}return Do(e)?tc(e,r):e}),e)},rc=(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),sc=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof Xo.KeyValuePair){const{key:t,value:n}=e,i=ma(t)?sc(t,s):t,o=ma(n)?sc(n,s):n,a=new Xo.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof Xo.ot){const t=e=>sc(e,s),n=[...e].map(t),i=new Xo.ot(n);return r.set(e,i),i}if(e instanceof Xo.G6){const t=e=>sc(e,s),n=[...e].map(t),i=new Xo.G6(n);return r.set(e,i),i}if(ma(e)){const t=oc(e);if(r.set(e,t),e.content)if(ma(e.content))t.content=sc(e.content,s);else if(e.content instanceof Xo.KeyValuePair)t.content=sc(e.content,s);else if(Array.isArray(e.content)){const r=e=>sc(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new qa("Value provided to cloneDeep function couldn't be cloned",{value:e})};sc.safe=e=>{try{return sc(e)}catch{return e}};const nc=e=>{const{key:t,value:r}=e;return new Xo.KeyValuePair(t,r)},ic=e=>{const t=new e.constructor;if(t.element=e.element,ka(e)&&rc(t,e),e.meta.length>0&&(t._meta=sc(e.meta)),e.attributes.length>0&&(t._attributes=sc(e.attributes)),ma(e.content)){const r=e.content;t.content=ic(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Xo.KeyValuePair?t.content=nc(e.content):t.content=e.content;return t},oc=e=>{if(e instanceof Xo.KeyValuePair)return nc(e);if(e instanceof Xo.ot)return(e=>{const t=[...e];return new Xo.ot(t)})(e);if(e instanceof Xo.G6)return(e=>{const t=[...e];return new Xo.G6(t)})(e);if(ma(e))return ic(e);throw new Ua("Value provided to cloneShallow function couldn't be cloned",{value:e})};oc.safe=e=>{try{return oc(e)}catch{return e}};const ac=e=>ba(e)?"ObjectElement":xa(e)?"ArrayElement":wa(e)?"MemberElement":fa(e)?"StringElement":va(e)?"BooleanElement":ya(e)?"NumberElement":ga(e)?"NullElement":Ea(e)?"LinkElement":Sa(e)?"RefElement":void 0,cc=e=>ma(e)?oc(e):Da(e),lc=As(ac,Xn),uc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class pc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Fa,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 hc=(e,t,{keyMap:r=uc,...s}={})=>La(e,t,{keyMap:r,nodeTypeGetter:ac,nodePredicate:lc,nodeCloneFn:cc,...s});hc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=uc,...s}={})=>La[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:ac,nodePredicate:lc,nodeCloneFn:cc,...s});const dc=e=>"string"==typeof(null==e?void 0:e.type)?e.type:ac(e),mc={EphemeralObject:["content"],EphemeralArray:["content"],...uc},fc=(e,t,{keyMap:r=mc,...s}={})=>hc(e,t,{keyMap:r,nodeTypeGetter:dc,nodePredicate:Ca,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});fc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=mc,...r}={})=>hc[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:dc,nodePredicate:Ca,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const yc=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}};const gc=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 vc{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new gc(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 yc(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 s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return fa(e.href)?e.href.toValue():""}}const bc=e=>ma(e)?fa(e)||ya(e)||va(e)||ga(e)?e.toValue():fc(e,new vc):e;const xc=ls((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})Ls(s,t)&&(n[s]=Ls(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)Ls(s,r)&&!Ls(s,n)&&(n[s]=r[s]);return n}));const wc=ls((function e(t,r,s){return xc((function(r,s,n){return cn(s)&&cn(n)?e(t,s,n):t(r,s,n)}),r,s)}));const Ec=cs((function(e,t){return wc((function(e,t,r){return r}),e,t)}));const Sc=js(0,-1);const jc=cs((function(e,t){return e.apply(this,t)}));const Oc=Mn(zn);var Ac=as((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():us(e)?[]:ps(e)?"":cn(e)?{}:Us(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 Pc=Ac;const kc=as((function(e){return null!=e&&Qs(e,Pc(e))}));const $c=Ms(1,zn(Array.isArray)?Array.isArray:As(Ks,Jn("Array")));const Tc=ko($c,kc);var Cc=Ms(3,(function(e,t,r){var s=Ya(e,r),n=Ya(Sc(e),r);if(!Oc(s)&&!Tc(e)){var i=ys(s,n);return jc(i,t)}}));const Fc=Cc;class Ic extends Xo.g${constructor(){super(),this.register("annotation",sa),this.register("comment",ia),this.register("parseResult",aa)}}const Mc=new Ic,_c=e=>{const t=new Ic;return Do(e)&&t.use(e),t},Rc=Mc,Dc=()=>({predicates:{...i},namespace:Rc}),Nc={toolboxCreator:Dc,visitorOptions:{nodeTypeGetter:ac,exposeEdits:!0}},Lc=(e,t,r={})=>{if(0===t.length)return e;const s=Ec(Nc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Na(a.map(Cs({},"visitor")),{...i});a.forEach(Fc(["pre"],[]));const l=hc(e,c,i);return a.forEach(Fc(["post"],[])),l};Lc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=Ec(Nc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Na[Symbol.for("nodejs.util.promisify.custom")],l=hc[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(Cs({},"visitor")),{...i});await Promise.allSettled(a.map(Fc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(a.map(Fc(["post"],[]))),p};const Bc=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return ma(e)&&(e.meta.length>0&&(s.meta=sc(e.meta)),e.attributes.length>0&&(s.attributes=sc(e.attributes))),Lc(s,r,{toolboxCreator:Dc,visitorOptions:{nodeTypeGetter:ac}})},qc=e=>(t,r={})=>Bc(t,{...r,Type:e});Xo.Sh.refract=qc(Xo.Sh),Xo.wE.refract=qc(Xo.wE),Xo.Om.refract=qc(Xo.Om),Xo.bd.refract=qc(Xo.bd),Xo.Os.refract=qc(Xo.Os),Xo.kT.refract=qc(Xo.kT),Xo.Ft.refract=qc(Xo.Ft),Xo.sI.refract=qc(Xo.sI),sa.refract=qc(sa),ia.refract=qc(ia),aa.refract=qc(aa);const Uc=(e,t=new WeakMap)=>(wa(e)?(t.set(e.key,e),Uc(e.key,t),t.set(e.value,e),Uc(e.value,t)):e.children.forEach((r=>{t.set(r,e),Uc(r,t)})),t);const Jc=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:Uc(this.element);const s=this.edges.get(e);return Dn(s)?void 0:(ba(s)?((e,t,r)=>{const s=r.get(e);ba(s)&&(s.content=s.map(((n,i,o)=>o===e?(r.delete(e),r.set(t,s),t):o)))})(e,t,this.edges):xa(s)?((e,t,r)=>{const s=r.get(e);xa(s)&&(s.content=s.map((n=>n===e?(r.delete(e),r.set(t,s),t):n)))})(e,t,this.edges):wa(s)&&((e,t,r)=>{const s=r.get(e);wa(s)&&(s.key===e&&(s.key=t,r.delete(e),r.set(t,s)),s.value===e&&(s.value=t,r.delete(e),r.set(t,s)))})(e,t,this.edges),this.element)}};const Vc=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))},Hc=function(){const e=Yc,t=Kc,r=this,s="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let n,i,o,a,c,l,u,p=0,h=0,d=0,m=0,f=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(g,v,x,w)=>{const E=`${s}parse(): `;p=0,h=0,d=0,m=0,f=0,n=void 0,i=void 0,o=void 0,a=void 0,y.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(x),n=g.rules,i=g.udts;const S=v.toLowerCase();let j;for(const e in n)if(n.hasOwnProperty(e)&&S===n[e].lower){j=n[e].index;break}if(void 0===j)throw new Error(`${E}start rule name '${startRule}' not recognized`);(()=>{const e=`${s}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<n.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const s in r.callbacks)if(r.callbacks.hasOwnProperty(s)){if(t=a.indexOf(s.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${s}' not a rule or udt name`);if(o=r.callbacks[s]?r.callbacks[s]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${s}] must be function reference or falsy)`);t<n.length?c[t]=o:l[t-n.length]=o}})(),r.trace&&r.trace.init(n,i,a),r.stats&&r.stats.init(n,i),r.ast&&r.ast.init(n,i,a),u=w,o=[{type:e.RNM,index:j}],b(0,0),o=void 0;let O=!1;switch(y.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:O=!1;break;case e.EMPTY:case e.MATCH:O=y.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:O,state:y.state,stateName:e.idName(y.state),length:a.length,matched:y.phraseLength,maxMatched:f,maxTreeDepth:d,nodeHits:m}};const g=(t,r,n,i)=>{if(r.phraseLength>n){let e=`${s}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${s}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(`${s}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},v=(t,c)=>{let h,d,m;const f=o[t],g=i[f.index];y.UdtIndex=g.index,p||(m=r.ast&&r.ast.udtDefined(f.index),m&&(d=n.length+f.index,h=r.ast.getLength(),r.ast.down(d,g.name)));const v=a.length-c;l[f.index](y,a,c,u),((t,r,n)=>{if(r.phraseLength>n){let e=`${s}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${s}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(g,y,v),p||m&&(y.state===e.NOMATCH?r.ast.setLength(h):r.ast.up(d,g.name,c,y.phraseLength))},b=(t,i)=>{const l=`${s}opExecute(): `,x=o[t];switch(m+=1,h>d&&(d=h),h+=1,y.refresh(),r.trace&&r.trace.down(x,i),x.type){case e.ALT:((t,r)=>{const s=o[t];for(let t=0;t<s.children.length&&(b(s.children[t],r),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,s)=>{let n,i,a,c;const l=o[t];r.ast&&(i=r.ast.getLength()),n=!0,a=s,c=0;for(let t=0;t<l.children.length;t+=1){if(b(l.children[t],a),y.state===e.NOMATCH){n=!1;break}a+=y.phraseLength,c+=y.phraseLength}n?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,s)=>{let n,i,c,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=s,c=0,l=0,r.ast&&(n=r.ast.getLength());!(i>=a.length)&&(b(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,c+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(n))})(t,i);break;case e.RNM:((t,s)=>{let i,l,h;const d=o[t],m=n[d.index],f=c[m.index];if(p||(l=r.ast&&r.ast.ruleDefined(d.index),l&&(i=r.ast.getLength(),r.ast.down(d.index,n[d.index].name))),f){const t=a.length-s;f(y,a,s,u),g(m,y,t,!0),y.state===e.ACTIVE&&(h=o,o=m.opcodes,b(0,s),o=h,f(y,a,s,u),g(m,y,t,!1))}else h=o,o=m.opcodes,b(0,s,y),o=h;p||l&&(y.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(d.index,m.name,s,y.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const s=o[t];y.state=e.NOMATCH,r<a.length&&s.min<=a[r]&&a[r]<=s.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const s=o[t],n=s.string.length;if(y.state=e.NOMATCH,r+n<=a.length){for(let e=0;e<n;e+=1)if(a[r+e]!==s.string[e])return;y.state=e.MATCH,y.phraseLength=n}})(t,i);break;case e.TLS:((t,r)=>{let s;const n=o[t];y.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(r+i<=a.length){for(let e=0;e<i;e+=1)if(s=a[r+e],s>=65&&s<=90&&(s+=32),s!==n.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:v(t,i);break;case e.AND:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+y.phraseLength>f&&(f=i+y.phraseLength),r.stats&&r.stats.collect(x,y),r.trace&&r.trace.up(x,y.state,i,y.phraseLength),h-=1}},zc=function(){const e=Yc,t=Kc,r=this;let s,n,i,o=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,o=0,s=e,n=t,i=u;const h=[];for(p=0;p<s.length;p+=1)h.push(s[p].lower);for(p=0;p<n.length;p+=1)h.push(n[p].lower);for(o=s.length+n.length,p=0;p<o;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[s.length+e],r.down=(t,r)=>{const s=l.length;return c.push(s),l.push({name:r,thisIndex:s,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),s},r.up=(t,r,s,n)=>{const i=l.length,o=c.pop();return l.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:s,phraseLength:n,stack:c.length}),l[o].thatIndex=i,l[o].phraseIndex=s,l[o].phraseLength=n,i},r.translate=t=>{let r,s;for(let n=0;n<l.length;n+=1)s=l[n],r=a[s.callbackIndex],r&&(s.state===e.SEM_PRE?r(e.SEM_PRE,i,s.phraseIndex,s.phraseLength,t):r&&r(e.SEM_POST,i,s.phraseIndex,s.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="",s=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${l.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=u(s+2),r+=t.charsToString(i),r+="\n",l.forEach((n=>{n.state===e.SEM_PRE?(s+=1,r+=u(s),r+=`<node name="${n.name}" index="${n.phraseIndex}" length="${n.phraseLength}">\n`,r+=u(s+2),r+=t.charsToString(i,n.phraseIndex,n.phraseLength),r+="\n"):(r+=u(s),r+=`</node>\x3c!-- name="${n.name}" --\x3e\n`,s-=1)})),r+="</root>\n",r}},Gc=function(){const e=Yc,t=Kc,r="parser.js: Trace(): ";let s,n,i,o="",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)=>{n=e,i=t,s=r};const u=s=>{let o;switch(s.type){case e.ALT:o="ALT";break;case e.CAT:o="CAT";break;case e.REP:o=s.max===1/0?`REP(${s.min},inf)`:`REP(${s.min},${s.max})`;break;case e.RNM:o=`RNM(${n[s.index].name})`;break;case e.TRG:o=`TRG(${s.min},${s.max})`;break;case e.TBS:o=s.string.length>6?`TBS(${t.charsToString(s.string,0,3)}...)`:`TBS(${t.charsToString(s.string,0,6)})`;break;case e.TLS:o=s.string.length>6?`TLS(${t.charsToString(s.string,0,3)}...)`:`TLS(${t.charsToString(s.string,0,6)})`;break;case e.UDT:o=`UDT(${i[s.index].name})`;break;case e.AND:o="AND";break;case e.NOT:o="NOT";break;default:throw new Error(`${r}Trace: opName: unrecognized opcode`)}return o};c.down=(e,r)=>{const n=l(a),i=Math.min(100,s.length-r);let c=t.charsToString(s,r,i);i<s.length-r&&(c+="..."),c=`${n}|-|[${u(e)}]${c}\n`,o+=c,a+=1},c.up=(n,i,c,p)=>{const h=`${r}trace.up: `;a-=1;const d=l(a);let m,f,y;switch(i){case e.EMPTY:y="|E|",f="''";break;case e.MATCH:y="|M|",m=Math.min(100,p),f=m<p?`'${t.charsToString(s,c,m)}...'`:`'${t.charsToString(s,c,m)}'`;break;case e.NOMATCH:y="|N|",f="";break;default:throw new Error(`${h} unrecognized state`)}f=`${d}${y}[${u(n)}]${f}\n`,o+=f},c.displayTrace=()=>o},Wc=function(){const e=Yc;let t,r,s;const n=[],i=[],o=[];this.init=(e,s)=>{t=e,r=s,h()},this.collect=(t,r)=>{d(s,r.state,r.phraseLength),d(n[t.type],r.state,r.phraseLength),t.type===e.RNM&&d(i[t.index],r.state,r.phraseLength),t.type===e.UDT&&d(o[t.index],r.state,r.phraseLength)},this.displayStats=()=>{let t="";const r={match:0,empty:0,nomatch:0,total:0},s=(e,t,s,n,i)=>{r.match+=t,r.empty+=s,r.nomatch+=n,r.total+=i;return`${e} | ${a(t)} | ${a(s)} | ${a(n)} | ${a(i)} |\n`};return t+=" OPERATOR STATS\n",t+=" | MATCH | EMPTY | NOMATCH | TOTAL |\n",t+=s(" ALT",n[e.ALT].match,n[e.ALT].empty,n[e.ALT].nomatch,n[e.ALT].total),t+=s(" CAT",n[e.CAT].match,n[e.CAT].empty,n[e.CAT].nomatch,n[e.CAT].total),t+=s(" REP",n[e.REP].match,n[e.REP].empty,n[e.REP].nomatch,n[e.REP].total),t+=s(" RNM",n[e.RNM].match,n[e.RNM].empty,n[e.RNM].nomatch,n[e.RNM].total),t+=s(" TRG",n[e.TRG].match,n[e.TRG].empty,n[e.TRG].nomatch,n[e.TRG].total),t+=s(" TBS",n[e.TBS].match,n[e.TBS].empty,n[e.TBS].nomatch,n[e.TBS].total),t+=s(" TLS",n[e.TLS].match,n[e.TLS].empty,n[e.TLS].nomatch,n[e.TLS].total),t+=s(" UDT",n[e.UDT].match,n[e.UDT].empty,n[e.UDT].nomatch,n[e.UDT].total),t+=s(" AND",n[e.AND].match,n[e.AND].empty,n[e.AND].nomatch,n[e.AND].total),t+=s(" NOT",n[e.NOT].match,n[e.NOT].empty,n[e.NOT].nomatch,n[e.NOT].total),t+=s("TOTAL",r.match,r.empty,r.nomatch,r.total),t},this.displayHits=e=>{let t="";const r=(e,t,r,n,i)=>{s.match+=e,s.empty+=t,s.nomatch+=r,s.total+=n;return`| ${a(e)} | ${a(t)} | ${a(r)} | ${a(n)} | ${i}\n`};"string"==typeof e&&"a"===e.toLowerCase()[0]?(i.sort(c),o.sort(c),t+=" RULES/UDTS ALPHABETICALLY\n"):"string"==typeof e&&"i"===e.toLowerCase()[0]?(i.sort(u),o.sort(u),t+=" RULES/UDTS BY INDEX\n"):(i.sort(l),o.sort(l),t+=" RULES/UDTS BY HIT COUNT\n"),t+="| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";for(let e=0;e<i.length;e+=1){let s=i[e];s.total&&(t+=r(s.match,s.empty,s.nomatch,s.total,s.name))}for(let e=0;e<o.length;e+=1){let s=o[e];s.total&&(t+=r(s.match,s.empty,s.nomatch,s.total,s.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=()=>{n.length=0,s=new p,n[e.ALT]=new p,n[e.CAT]=new p,n[e.REP]=new p,n[e.RNM]=new p,n[e.TRG]=new p,n[e.TBS]=new p,n[e.TLS]=new p,n[e.UDT]=new p,n[e.AND]=new p,n[e.NOT]=new p,i.length=0;for(let e=0;e<t.length;e+=1)i.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){o.length=0;for(let e=0;e<r.length;e+=1)o.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}`)}}},Kc={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let s=e;for(;!(void 0===t||t<0);){if(void 0===r){s=e.slice(t);break}if(r<=0)return"";s=e.slice(t,t+r);break}return String.fromCodePoint(...s)}},Yc={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 Yc.ALT:return"ALT";case Yc.CAT:return"CAT";case Yc.REP:return"REP";case Yc.RNM:return"RNM";case Yc.TRG:return"TRG";case Yc.TBS:return"TBS";case Yc.TLS:return"TLS";case Yc.UDT:return"UDT";case Yc.AND:return"AND";case Yc.NOT:return"NOT";case Yc.ACTIVE:return"ACTIVE";case Yc.EMPTY:return"EMPTY";case Yc.MATCH:return"MATCH";case Yc.NOMATCH:return"NOMATCH";case Yc.SEM_PRE:return"SEM_PRE";case Yc.SEM_POST:return"SEM_POST";case Yc.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Xc(){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 Qc 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 Zc=Qc;const el=class extends Zc{},tl=e=>(t,r,s,n,i)=>{if("object"!=typeof i||null===i||Array.isArray(i))throw new el("parser's user data must be an object");if(t===Yc.SEM_PRE){const t={type:e,text:Kc.charsToString(r,s,n),start:s,length:n,children:[]};if(i.stack.length>0){i.stack[i.stack.length-1].children.push(t)}else i.root=t;i.stack.push(t)}t===Yc.SEM_POST&&i.stack.pop()};const rl=class extends zc{constructor(){super(),this.callbacks["json-pointer"]=tl("json-pointer"),this.callbacks["reference-token"]=tl("reference-token"),this.callbacks.slash=tl("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}},sl=e=>{if("string"!=typeof e)throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")};const nl=class extends rl{getTree(){const{root:e}=super.getTree();return e.children.filter((({type:e})=>"reference-token"===e)).map((({text:e})=>sl(e)))}};const il=class extends Array{toString(){return this.map((e=>`"${String(e)}"`)).join(", ")}};const ol=class extends Gc{inferExpectations(){const e=this.displayTrace().split("\n"),t=new Set;let r=-1;for(let s=0;s<e.length;s++){const n=e[s];if(n.includes("M|")){const e=n.match(/]'(.*)'$/);e&&e[1]&&(r=s)}if(s>r){const e=n.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new il(...t)}},al=new Xc,cl=(e,{translator:t=new nl,stats:r=!1,trace:s=!1}={})=>{if("string"!=typeof e)throw new TypeError("JSON Pointer must be a string");try{const n=new Hc;t&&(n.ast=t),r&&(n.stats=new Wc),s&&(n.trace=new ol);const i=n.parse(al,"json-pointer",e);return{result:i,tree:i.success&&t?n.ast.getTree():void 0,stats:n.stats,trace:n.trace}}catch(t){throw new el("Unexpected error during JSON Pointer parsing",{cause:t,jsonPointer:e})}};new Xc,new Hc,new Xc,new Hc;const ll=new Xc,ul=new Hc,pl=e=>{if("string"!=typeof e)return!1;try{return ul.parse(ll,"array-index",e).success}catch{return!1}},hl=new Xc,dl=new Hc,ml=e=>{if("string"!=typeof e)return!1;try{return dl.parse(hl,"array-dash",e).success}catch{return!1}},fl=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")};const yl=class extends Zc{},gl=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 fl(String(e))})).join("/")}`}catch(t){throw new yl("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const vl=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:s=!0,reason:n}){const i=this.#t.length;this.#t.push(e);const o={referenceToken:e,referenceTokenPosition:i,input:t,inputType:this.#r.isObject(t)?"object":this.#r.isArray(t)?"array":"unrecognized",output:r,success:s};n&&(o.reason=n),this.#e.steps.push(o),s||(this.#e.failed=!0,this.#e.failedAt=i,this.#e.message=n)}};const bl=class{name="";isArray(e){throw new Zc("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new Zc("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new Zc("Realm.sizeOf(node) must be implemented in a subclass")}has(e,t){throw new Zc("Realm.has(node) must be implemented in a subclass")}evaluate(e,t){throw new Zc("Realm.evaluate(node) must be implemented in a subclass")}};const xl=class extends Zc{};const wl=class extends xl{};const El=class extends bl{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),s=r>>>0;if(r!==s)throw new wl(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return s<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]}};const Sl=class extends xl{};const jl=class extends xl{},Ol=(e,t,{strictArrays:r=!0,strictObjects:s=!0,realm:n=new El,trace:i=!0}={})=>{const{result:o,tree:a,trace:c}=cl(t,{trace:!!i}),l="object"==typeof i&&null!==i?new vl(i,{jsonPointer:t,referenceTokens:a,strictArrays:r,strictObjects:s,realm:n,value:e}):null;try{let i;if(!o.success){let r=`Invalid JSON Pointer: "${t}". Syntax error at position ${o.maxMatched}`;throw r+=c?`, expected ${c.inferExpectations()}`:"",new xl(r,{jsonPointer:t,currentValue:e,realm:n.name})}return a.reduce(((e,o,c)=>{if(n.isArray(e)){if(ml(o)){if(r)throw new wl(`Invalid array index "-" at position ${c} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});return i=n.evaluate(e,String(n.sizeOf(e))),null==l||l.step({referenceToken:o,input:e,output:i}),i}if(!pl(o))throw new wl(`Invalid array index "${o}" at position ${c} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});const s=Number(o);if(!Number.isSafeInteger(s))throw new wl(`Invalid array index "${o}" at position ${c} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});if(!n.has(e,o)&&r)throw new wl(`Invalid array index "${o}" at position ${c} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});return i=n.evaluate(e,o),null==l||l.step({referenceToken:o,input:e,output:i}),i}if(n.isObject(e)){if(!n.has(e,o)&&s)throw new jl(`Invalid object key "${o}" at position ${c} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name});return i=n.evaluate(e,o),null==l||l.step({referenceToken:o,input:e,output:i}),i}throw new Sl(`Invalid reference token "${o}" at position ${c} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:n.name})}),e)}catch(e){if(null==l||l.step({referenceToken:e.referenceToken,input:e.currentValue,success:!1,reason:e.message}),e instanceof xl)throw e;throw new xl("Unexpected error during JSON Pointer evaluation",{cause:e,jsonPointer:t,referenceTokens:a})}};const Al=class extends bl{name="apidom";isArray(e){return xa(e)}isObject(e){return ba(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,t){if(this.isArray(e)){const r=Number(t),s=r>>>0;if(r!==s)throw new wl(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return s<this.sizeOf(e)}if(this.isObject(e)){const r=e.keys(),s=new Set(r);if(r.length!==s.size)throw new jl(`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)}},Pl=(e,t,r={})=>Ol(e,t,{...r,realm:new Al});class kl extends Xo.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const $l=kl;class Tl extends Xo.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 Cl=Tl;class Fl extends Xo.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 Il=Fl;class Ml extends Xo.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 _l=Ml;class Rl extends Xo.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 Dl=Rl;class Nl extends Xo.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 Ll=Nl;class Bl extends Xo.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 ql=Bl;class Ul extends Xo.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Xo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Xo.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(Ul.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Jl=Ul;class Vl extends Xo.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 Hl=Vl;class zl extends Xo.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 Gl=zl;class Wl extends Xo.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 fa(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):fa(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 Kl=Wl;class Yl extends Xo.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 Xl=Yl;class Ql extends Xo.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 Zl=Ql;class eu extends Xo.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 tu=eu;class ru extends Xo.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const su=ru;class nu extends Xo.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 iu=nu;class ou extends Xo.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 Xo.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 au=ou;class cu extends Xo.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 Xo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Xo.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(cu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const lu=cu;class uu extends Xo.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 pu=uu;class hu extends Xo.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const du=hu;class mu extends Xo.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 fu=mu;class yu extends Xo.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 Xo.bd(!1)}set required(e){this.set("required",e)}}const gu=yu;class vu extends Xo.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 bu=vu;class xu extends Xo.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 wu=xu;const Eu=class extends rs{};class Su extends Xo.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 ju=Su;class Ou extends Xo.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 Au=Ou;class Pu extends Xo.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 ku=Pu;class $u extends Xo.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 Tu=$u,Cu=e=>{const t=e.meta.length>0?sc(e.meta):void 0,r=e.attributes.length>0?sc(e.attributes):void 0;return new e.constructor(void 0,t,r)},Fu=(e,t)=>t.clone&&t.isMergeableElement(e)?Mu(Cu(e),e,t):e,Iu={clone:!0,isMergeableElement:e=>ba(e)||xa(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>Fu(e,r))),objectElementMerge:(e,t,r)=>{const s=ba(e)?Cu(e):Cu(t);return ba(e)&&e.forEach(((e,t,n)=>{const i=oc(n);i.value=Fu(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=bc(n);let a;if(ba(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=oc(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Mu;const r=t.customMerge(e,t);return"function"==typeof r?r:Mu})(n,r)(s,t,r)}else a=oc(i),a.value=Fu(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Mu=(e,t,r)=>{var s,n,i;const o={...Iu,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:Iu.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:Iu.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Iu.objectElementMerge;const a=xa(t);if(!(a===xa(e)))return Fu(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>sc(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>sc(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};Mu.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Xo.Sh:e.reduce(((e,r)=>Mu(e,r,t)),Cu(e[0]))};const _u=Mu;const Ru=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=_u(t.meta,e.meta)),ka(e)&&rc(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=_u(t.attributes,e.attributes))}};const Du=class extends Ru{enter(e){return this.element=sc(e),Ma}},Nu=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},Lu=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Lu(r,[...t,r])},Bu=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Lu(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),o=Lu(n);for(let t of e){let e=Lu(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(Nu(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},qu=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Uu=(e,t)=>{const r=t.map((e=>Lu(e)));let s=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}s++}},Ju=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(Uu(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==Uu(s,e)||void 0!==t[s],get:(r,s)=>(Uu(s,e)||t)[s],set(t,r,s){const n=Uu(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),Vu=null,Hu="copy",zu="copy",Gu="deep",Wu=new WeakMap,Ku=e=>Wu.get(e),Yu=(e,t)=>{var r,s;const n=qu([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=qu([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},Xu=(e,t)=>{var r,s,n,i;return{property:Yu(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:Yu(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Qu=(e,t)=>{var r,s,n,i,o,a;return{class:qu([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:Xu(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:Xu(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Zu=new Map,ep=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...Lu(e.prototype).map((e=>e.constructor)),...null!==(t=Ku(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map((e=>Zu.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Qu(e,t)))},tp=e=>{let t=Zu.get(e);return t||(t={},Zu.set(e,t)),t};function rp(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=Vu;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};n.push(r)}function o(...t){for(const r of e)Nu(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===zu?Bu(n,o):(a=n,c=o,Ju([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Hu?Bu(e,null,["prototype"]):Ju(e,Function.prototype));let l=o;if("none"!==Gu){const n="deep"===Gu?ep(...e):((...e)=>{const t=e.map((e=>tp(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Qu(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}sp(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},l),sp(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},l.prototype)}var u,p;return u=l,p=e,Wu.set(u,p),l}const sp=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const np=as((function(e){return Ms(Es(Ln,0,Bn("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 ip=as((function(e){return!kc(e)}));const op=cs((function(e,t){return e||t}));var ap=Mn(Ms(1,ko(To,cs((function(e,t){return Rs(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:In(op)(e,t)}))(Fo,zn))));const cp=np([Xn,ap,ip]);const lp=cs((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r}));const up=class extends Ru{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return lp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ya(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ao(zn,["visitors",...e],this.specObj)?Ya(["visitors",...e],this.specObj):Ya(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof Du&&(null==s?void 0:s.constructor)===Du?sc(t):(hc(t,s,r),s.element)}};const pp=class extends up{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,s,n)=>{if(fa(s)&&r.includes(bc(s))&&!this.ignoredFields.includes(bc(s))){const r=this.toRefractedElement([...t,"fixedFields",bc(s)],e),i=new Xo.Pr(sc(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(bc(s))||this.element.content.push(sc(n))})),this.copyMetaAndAttributes(e,this.element),Ma}};const hp=class{parent;constructor({parent:e}){this.parent=e}},dp=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ju||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),mp=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Au||e(s)&&t("JSONReference",s)&&r("object",s))),fp=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ku||e(s)&&t("media",s)&&r("object",s))),yp=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tu||e(s)&&t("linkDescription",s)&&r("object",s)));class gp extends(rp(pp,hp,Du)){constructor(e){super(e),this.element=new ju,this.specPath=_n(["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,pp.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Dn(this.parent)&&!fa(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(dp(this.parent)&&!fa(e.get("$schema"))){const e=Ps(bc(this.parent.meta.get("inheritedDialectIdentifier")),bc(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?sc(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new Xo.wE,s=bc(e.get(t));cp(s)&&r.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const vp=gp,bp=e=>ba(e)&&e.hasKey("$ref");class xp extends(rp(up,hp,Du)){ObjectElement(e){const t=bp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Ma}ArrayElement(e){return this.element=new Xo.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=bp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const wp=xp;const Ep=class extends Du{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Sp=class extends up{specPath;ignoredFields;fieldPatternPredicate=Fa;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(bc(t))&&this.fieldPatternPredicate(bc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Xo.Pr(sc(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(bc(t))||this.element.content.push(sc(r))})),this.copyMetaAndAttributes(e,this.element),Ma}};const jp=class extends Sp{constructor(e){super(e),this.fieldPatternPredicate=cp}};class Op extends(rp(jp,hp,Du)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>bp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ap=Op;class Pp extends(rp(jp,hp,Du)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>bp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const kp=Pp;class $p extends(rp(jp,hp,Du)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>bp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Tp=$p;const Cp=class extends Du{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Fp=class extends Du{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}};class Ip extends(rp(up,hp,Du)){constructor(e){super(e),this.element=new Xo.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=bp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const Mp=Ip;class _p extends(rp(up,hp,Du)){constructor(e){super(e),this.element=new Xo.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=bp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const Rp=_p;class Dp extends(rp(up,hp,Du)){constructor(e){super(e),this.element=new Xo.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=bp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const Np=Dp;class Lp extends(rp(jp,hp,Du)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>bp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Bp=Lp;class qp extends(rp(up,hp,Du)){constructor(e){super(e),this.element=new Xo.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),Ma}}const Up=qp;class Jp extends(rp(pp,Du)){constructor(e){super(e),this.element=new Au,this.specPath=_n(["document","objects","JSONReference"])}ObjectElement(e){const t=pp.prototype.ObjectElement.call(this,e);return fa(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Vp=Jp;const Hp=class extends Du{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const zp=ls((function(e,t,r){return Ms(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Gp=as((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Wp=cs((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Kp=Wp;const Yp=as((function(e){return $s(0,e)}));const Xp=as(Qo);const Qp=Mn(Va);const Zp=ko($c,ip);function eh(e){return function(e){if(Array.isArray(e))return th(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return th(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)?th(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function th(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var rh=As(Kp(Gp((function(e,t){return e.length>t.length}))),Yp,Ts("length")),sh=_s((function(e,t,r){var s=r.apply(void 0,eh(e));return Qp(s)?Xp(s):t}));const nh=zp(Zp,(function(e){var t=rh(e);return Ms(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return Es(sh(r),void 0,e)}))}),Rn);const ih=class extends up{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>zp(e,_n(t),Rn))),r=nh(t)(e);return this.element=this.toRefractedElement(r,e),Ma}};const oh=class extends ih{constructor(e){super(e),this.alternator=[{predicate:bp,specPath:["document","objects","JSONReference"]},{predicate:Ca,specPath:["document","objects","JSONSchema"]}]}};class ah extends(rp(pp,Du)){constructor(e){super(e),this.element=new ku,this.specPath=_n(["document","objects","Media"])}}const ch=ah;class lh extends(rp(pp,Du)){constructor(e){super(e),this.element=new Tu,this.specPath=_n(["document","objects","LinkDescription"])}}const uh=lh,ph={visitors:{value:Du,JSONSchemaOrJSONReferenceVisitor:oh,document:{objects:{JSONSchema:{$visitor:vp,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:oh,items:wp,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Ep,properties:Ap,additionalProperties:oh,patternProperties:kp,dependencies:Tp,enum:Cp,type:Fp,allOf:Mp,anyOf:Rp,oneOf:Np,not:oh,definitions:Bp,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Up,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Vp,fixedFields:{$ref:Hp}},Media:{$visitor:ch,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:uh,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:oh,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:oh}}}}}},hh=e=>{if(ma(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},dh={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...uc},mh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ju),t.register("jSONReference",Au),t.register("media",ku),t.register("linkDescription",Tu),t}},fh=()=>{const e=_c(mh);return{predicates:{...o,isStringElement:fa},namespace:e}},yh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=ph}={})=>{const n=(0,Xo.e)(e),i=tc(s),o=new(Ya(t,i))({specObj:i});return hc(n,o),Lc(o.element,r,{toolboxCreator:fh,visitorOptions:{keyMap:dh,nodeTypeGetter:hh}})},gh=e=>(t,r={})=>yh(t,{specPath:e,...r});ju.refract=gh(["visitors","document","objects","JSONSchema","$visitor"]),Au.refract=gh(["visitors","document","objects","JSONReference","$visitor"]),ku.refract=gh(["visitors","document","objects","Media","$visitor"]),Tu.refract=gh(["visitors","document","objects","LinkDescription","$visitor"]);const vh=class extends ju{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Eu("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Eu("idProp setter in Schema class is not not supported.")}get $schema(){throw new Eu("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Eu("$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 Eu("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Eu("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Eu("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Eu("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 Eu("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Eu("definitions setter in Schema class is not not supported.")}get base(){throw new Eu("base getter in Schema class is not not supported.")}set base(e){throw new Eu("base setter in Schema class is not not supported.")}get links(){throw new Eu("links getter in Schema class is not not supported.")}set links(e){throw new Eu("links setter in Schema class is not not supported.")}get media(){throw new Eu("media getter in Schema class is not not supported.")}set media(e){throw new Eu("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 bh extends Xo.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const xh=bh;class wh extends Xo.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 Eh=wh;class Sh extends Xo.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 jh=Sh;class Oh extends Xo.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 Ah=Oh;class Ph extends Xo.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 kh=Ph;class $h extends Xo.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 Th=$h;const Ch=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=_u(t.meta,e.meta)),ka(e)&&rc(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=_u(t.attributes,e.attributes))}};const Fh=class extends Ch{enter(e){return this.element=sc(e),Ma}};const Ih=class extends Ch{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:s,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=s,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return lp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ya(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ao(zn,["visitors",...e],this.specObj)?Ya(["visitors",...e],this.specObj):Ya(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof Fh&&(null==s?void 0:s.constructor)===Fh?sc(t):(hc(t,s,r),s.element)}};var Mh=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=un,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?Qo(r):r},e}();function _h(e){return function(t){return new Mh(e,t)}}const Rh=cs(an(["take"],_h,(function(e,t){return js(0,e<0?1/0:e,t)})));const Dh=cs((function(e,t){return Qs(Rh(e.length,t),e)})),Nh=e=>ba(e)&&e.hasKey("$ref"),Lh=ba,Bh=ba,qh=e=>fa(e.key)&&Dh("x-",bc(e.key));const Uh=class extends Ih{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=qh;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(fa(s)&&r.includes(bc(s))&&!this.ignoredFields.includes(bc(s))){const r=this.toRefractedElement([...t,"fixedFields",bc(s)],e),i=new Xo.Pr(sc(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(bc(s))||this.element.content.push(sc(n))})),this.copyMetaAndAttributes(e,this.element),Ma}};class Jh extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new iu,this.specPath=_n(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Uh.prototype.ObjectElement.call(this,e)}}const Vh=Jh;class Hh extends(rp(Ih,Fh)){StringElement(e){const t=new su(bc(e));return this.copyMetaAndAttributes(e,t),this.element=t,Ma}}const zh=Hh;const Gh=class extends Ih{MemberElement(e){return this.element=sc(e),this.element.classes.push("specification-extension"),Ma}};class Wh extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Hl,this.specPath=_n(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Kh=Wh;const Yh=class extends Fh{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Xh extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Il,this.specPath=_n(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Qh=Xh;class Zh extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Gl,this.specPath=_n(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const ed=Zh;class td extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Kl,this.specPath=_n(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Uh.prototype.ObjectElement.call(this,e);return(fa(this.element.operationId)||fa(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const rd=td;const sd=class extends Fh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const nd=class extends Fh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const id=class extends Ih{specPath;ignoredFields;fieldPatternPredicate=Fa;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=qh;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}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(bc(t))&&this.fieldPatternPredicate(bc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Xo.Pr(sc(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(bc(t))||this.element.content.push(sc(r))})),this.copyMetaAndAttributes(e,this.element),Ma}};const od=class extends id{constructor(e){super(e),this.fieldPatternPredicate=cp}};class ad extends Xo.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(ad.primaryClass)}}const cd=ad;class ld extends(rp(od,Fh)){constructor(e){super(e),this.element=new cd,this.specPath=_n(["value"])}}const ud=ld;class pd extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new jh,this.specPath=_n(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const hd=pd;const dd=class extends Fh{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class md extends Xo.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(md.primaryClass)}}const fd=md;class yd extends(rp(Ih,Fh)){constructor(e){super(e),this.element=new fd}ArrayElement(e){return e.forEach((e=>{const t=Lh(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const gd=yd;class vd extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Ah,this.specPath=_n(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const bd=vd;class xd extends Xo.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(xd.primaryClass)}}const wd=xd;class Ed extends(rp(od,Fh)){constructor(e){super(e),this.element=new wd,this.specPath=_n(["document","objects","ServerVariable"])}}const Sd=Ed;class jd extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Xl,this.specPath=_n(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Od=jd;const Ad=class extends Ih{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>zp(e,_n(t),Rn))),r=nh(t)(e);return this.element=this.toRefractedElement(r,e),Ma}},Pd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $l||e(s)&&t("callback",s)&&r("object",s))),kd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cl||e(s)&&t("components",s)&&r("object",s))),$d=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Il||e(s)&&t("contact",s)&&r("object",s))),Td=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ll||e(s)&&t("example",s)&&r("object",s))),Cd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ql||e(s)&&t("externalDocumentation",s)&&r("object",s))),Fd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jl||e(s)&&t("header",s)&&r("object",s))),Id=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hl||e(s)&&t("info",s)&&r("object",s))),Md=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gl||e(s)&&t("license",s)&&r("object",s))),_d=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kl||e(s)&&t("link",s)&&r("object",s))),Rd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof su||e(s)&&t("openapi",s)&&r("string",s))),Dd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof iu||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),Nd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof au||e(s)&&t("operation",s)&&r("object",s))),Ld=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof lu||e(s)&&t("parameter",s)&&r("object",s))),Bd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pu||e(s)&&t("pathItem",s)&&r("object",s))),qd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof du||e(s)&&t("paths",s)&&r("object",s))),Ud=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fu||e(s)&&t("reference",s)&&r("object",s))),Jd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gu||e(s)&&t("requestBody",s)&&r("object",s))),Vd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bu||e(s)&&t("response",s)&&r("object",s))),Hd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wu||e(s)&&t("responses",s)&&r("object",s))),zd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vh||e(s)&&t("schema",s)&&r("object",s))),Gd=e=>va(e)&&e.classes.includes("boolean-json-schema"),Wd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xh||e(s)&&t("securityRequirement",s)&&r("object",s))),Kd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Eh||e(s)&&t("securityScheme",s)&&r("object",s))),Yd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jh||e(s)&&t("server",s)&&r("object",s))),Xd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ah||e(s)&&t("serverVariable",s)&&r("object",s))),Qd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xl||e(s)&&t("mediaType",s)&&r("object",s))),Zd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof fd||e(n)&&t("array",n)&&r("array",n)&&s("servers",n))),em=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _l||e(s)&&t("discriminator",s)&&r("object",s)));class tm extends(rp(Ad,Fh)){constructor(e){super(e),this.alternator=[{predicate:Nh,specPath:["document","objects","Reference"]},{predicate:Ca,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Ad.prototype.enter.call(this,e);return Ud(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const rm=tm;class sm extends(rp(od,Fh)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("examples"),this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const nm=sm;class im extends Xo.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(im.primaryClass),this.classes.push("examples")}}const om=im;const am=class extends nm{constructor(e){super(e),this.element=new om}};class cm extends Xo.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(cm.primaryClass)}}const lm=cm;class um extends(rp(od,Fh)){constructor(e){super(e),this.element=new lm,this.specPath=_n(["document","objects","Encoding"])}}const pm=um;class hm extends(rp(od,Fh)){constructor(e){super(e),this.element=new xh,this.specPath=_n(["value"])}}const dm=hm;class mm extends Xo.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(mm.primaryClass)}}const fm=mm;class ym extends(rp(Ih,Fh)){constructor(e){super(e),this.element=new fm}ArrayElement(e){return e.forEach((e=>{if(ba(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(sc(e))})),this.copyMetaAndAttributes(e,this.element),Ma}}const gm=ym;class vm extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Cl,this.specPath=_n(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const bm=vm;class xm extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new kh,this.specPath=_n(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const wm=xm;class Em extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new fu,this.specPath=_n(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Uh.prototype.ObjectElement.call(this,e);return fa(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Sm=Em;const jm=class extends Fh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Om extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new lu,this.specPath=_n(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Uh.prototype.ObjectElement.call(this,e);return ba(this.element.contentProp)&&this.element.contentProp.filter(Qd).forEach(((e,t)=>{e.setMetaProperty("media-type",bc(t))})),t}}const Am=Om;class Pm extends(rp(Ad,Fh)){constructor(e){super(e),this.alternator=[{predicate:Nh,specPath:["document","objects","Reference"]},{predicate:Ca,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Ad.prototype.enter.call(this,e);return Ud(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const km=Pm;class $m extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Jl,this.specPath=_n(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Tm=$m;class Cm extends(rp(Ad,Fh)){constructor(e){super(e),this.alternator=[{predicate:Nh,specPath:["document","objects","Reference"]},{predicate:Ca,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Ad.prototype.enter.call(this,e);return Ud(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Fm=Cm;class Im extends Xo.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Im.primaryClass),this.classes.push("examples")}}const Mm=Im;const _m=class extends nm{constructor(e){super(e),this.element=new Mm}};class Rm extends(rp(od,Fh)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("content"),this.specPath=_n(["document","objects","MediaType"])}}const Dm=Rm;class Nm extends Xo.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(Nm.primaryClass),this.classes.push("content")}}const Lm=Nm;const Bm=class extends Dm{constructor(e){super(e),this.element=new Lm}};class qm extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new vh,this.specPath=_n(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Um=qm,Jm=ph.visitors.document.objects.JSONSchema.fixedFields.allOf;const Vm=class extends Jm{ArrayElement(e){const t=Jm.prototype.ArrayElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Hm=ph.visitors.document.objects.JSONSchema.fixedFields.anyOf;const zm=class extends Hm{ArrayElement(e){const t=Hm.prototype.ArrayElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Gm=ph.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Wm=class extends Gm{ArrayElement(e){const t=Gm.prototype.ArrayElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Km=ph.visitors.document.objects.JSONSchema.fixedFields.items;const Ym=class extends Km{ObjectElement(e){const t=Km.prototype.ObjectElement.call(this,e);return Ud(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},Xm=ph.visitors.document.objects.JSONSchema.fixedFields.properties;const Qm=class extends Xm{ObjectElement(e){const t=Xm.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Zm=ph.visitors.document.objects.JSONSchema.fixedFields.type;const ef=class extends Zm{ArrayElement(e){return this.enter(e)}},tf=ph.visitors.JSONSchemaOrJSONReferenceVisitor;const rf=class extends tf{ObjectElement(e){const t=tf.prototype.enter.call(this,e);return Ud(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class sf extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new _l,this.specPath=_n(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const nf=sf;class of extends Xo.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(of.primaryClass)}}const af=of;class cf extends(rp(od,Fh)){constructor(e){super(e),this.element=new af,this.specPath=_n(["value"])}}const lf=cf;class uf extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Th,this.specPath=_n(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const pf=uf;class hf extends Xo.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(hf.primaryClass),this.classes.push("examples")}}const df=hf;const mf=class extends nm{constructor(e){super(e),this.element=new df}};class ff extends Xo.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(ff.primaryClass),this.classes.push("content")}}const yf=ff;const gf=class extends Dm{constructor(e){super(e),this.element=new yf}};class vf extends Xo.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(vf.primaryClass)}}const bf=vf;class xf extends(rp(od,Fh)){constructor(e){super(e),this.element=new bf,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const wf=xf;class Ef extends Xo.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(Ef.primaryClass)}}const Sf=Ef;class jf extends(rp(od,Fh)){constructor(e){super(e),this.element=new Sf,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Vd).forEach(((e,t)=>{e.setMetaProperty("http-status-code",bc(t))})),t}}const Of=jf;class Af extends Xo.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Af.primaryClass),this.classes.push("parameters")}}const Pf=Af;class kf extends(rp(od,Fh)){constructor(e){super(e),this.element=new Pf,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const $f=kf;class Tf extends Xo.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Tf.primaryClass),this.classes.push("examples")}}const Cf=Tf;class Ff extends(rp(od,Fh)){constructor(e){super(e),this.element=new Cf,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const If=Ff;class Mf extends Xo.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(Mf.primaryClass)}}const _f=Mf;class Rf extends(rp(od,Fh)){constructor(e){super(e),this.element=new _f,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const Df=Rf;class Nf extends Xo.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Nf.primaryClass)}}const Lf=Nf;class Bf extends(rp(od,Fh)){constructor(e){super(e),this.element=new Lf,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Fd).forEach(((e,t)=>{e.setMetaProperty("header-name",bc(t))})),t}}const qf=Bf;class Uf extends Xo.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Uf.primaryClass)}}const Jf=Uf;class Vf extends(rp(od,Fh)){constructor(e){super(e),this.element=new Jf,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Hf=Vf;class zf extends Xo.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(zf.primaryClass)}}const Gf=zf;class Wf extends(rp(od,Fh)){constructor(e){super(e),this.element=new Gf,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Kf=Wf;class Yf extends Xo.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Yf.primaryClass)}}const Xf=Yf;class Qf extends(rp(od,Fh)){constructor(e){super(e),this.element=new Xf,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Zf=Qf;class ey extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Ll,this.specPath=_n(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Uh.prototype.ObjectElement.call(this,e);return fa(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const ty=ey;const ry=class extends Fh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class sy extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new ql,this.specPath=_n(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const ny=sy;class iy extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Dl,this.specPath=_n(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Uh.prototype.ObjectElement.call(this,e);return ba(this.element.headers)&&this.element.headers.filter(Fd).forEach(((e,t)=>{e.setMetaProperty("header-name",bc(t))})),t}}const oy=iy;class ay extends Xo.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(ay.primaryClass)}}const cy=ay;class ly extends(rp(od,Fh)){constructor(e){super(e),this.element=new cy,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Fd(e))return;const r=bc(t);e.setMetaProperty("headerName",r)})),t}}const uy=ly;class py extends(rp(id,Fh)){constructor(e){super(e),this.element=new du,this.specPath=_n(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Ca}ObjectElement(e){const t=id.prototype.ObjectElement.call(this,e);return this.element.filter(Bd).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",sc(t))})),t}}const hy=py;class dy extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new gu,this.specPath=_n(["document","objects","RequestBody"])}ObjectElement(e){const t=Uh.prototype.ObjectElement.call(this,e);return ba(this.element.contentProp)&&this.element.contentProp.filter(Qd).forEach(((e,t)=>{e.setMetaProperty("media-type",bc(t))})),t}}const my=dy;class fy extends Xo.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(fy.primaryClass),this.classes.push("content")}}const yy=fy;const gy=class extends Dm{constructor(e){super(e),this.element=new yy}};class vy extends(rp(id,Fh)){constructor(e){super(e),this.element=new $l,this.specPath=_n(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Bd).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",bc(t))})),t}}const by=vy;class xy extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new bu,this.specPath=_n(["document","objects","Response"])}ObjectElement(e){const t=Uh.prototype.ObjectElement.call(this,e);return ba(this.element.contentProp)&&this.element.contentProp.filter(Qd).forEach(((e,t)=>{e.setMetaProperty("media-type",bc(t))})),ba(this.element.headers)&&this.element.headers.filter(Fd).forEach(((e,t)=>{e.setMetaProperty("header-name",bc(t))})),t}}const wy=xy;class Ey extends Xo.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Ey.primaryClass)}}const Sy=Ey;class jy extends(rp(od,Fh)){constructor(e){super(e),this.element=new Sy,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Fd(e))return;const r=bc(t);e.setMetaProperty("header-name",r)})),t}}const Oy=jy;class Ay extends Xo.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(Ay.primaryClass),this.classes.push("content")}}const Py=Ay;const ky=class extends Dm{constructor(e){super(e),this.element=new Py}};class $y extends Xo.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push($y.primaryClass)}}const Ty=$y;class Cy extends(rp(od,Fh)){constructor(e){super(e),this.element=new Ty,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Fy=Cy;function Iy(e){return"[object Number]"===Object.prototype.toString.call(e)}var My=cs((function(e,t){if(!Iy(e)||!Iy(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),s=e<0?t+Math.abs(e):t-e,n=0;n<s;)r[n]=n+e,n+=1;return r}));const _y=My;function Ry(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var i=e?1:0;return!!r._items[n][i]||(t&&(r._items[n][i]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!Zs(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!Zs(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const Dy=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Ry(e,!0,this)},e.prototype.has=function(e){return Ry(e,!1,this)},e}();var Ny=cs((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new Dy,a=0;a<i;a+=1)o.add(t[a]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));const Ly=Ny;class By extends(rp(Uh,id)){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,...Ly(e.keys(),t)],Uh.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,id.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Ma}}const qy=By;class Uy extends(rp(qy,Fh)){constructor(e){super(e),this.element=new wu,this.specPathFixedFields=_n(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Nh(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=qy.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Vd).forEach(((e,t)=>{const r=sc(t);this.fieldPatternPredicate(bc(r))&&e.setMetaProperty("http-status-code",r)})),t}}const Jy=Uy;class Vy extends(rp(Ad,Fh)){constructor(e){super(e),this.alternator=[{predicate:Nh,specPath:["document","objects","Reference"]},{predicate:Ca,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Ad.prototype.enter.call(this,e);return Ud(this.element)?this.element.setMetaProperty("referenced-element","response"):Vd(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Hy=Vy;class zy extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new au,this.specPath=_n(["document","objects","Operation"])}}const Gy=zy;class Wy extends Xo.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Wy.primaryClass)}}const Ky=Wy;const Yy=class extends Fh{constructor(e){super(e),this.element=new Ky}ArrayElement(e){return this.element=this.element.concat(sc(e)),Ma}};class Xy extends Xo.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Xy.primaryClass),this.classes.push("parameters")}}const Qy=Xy;class Zy extends(rp(Ih,Fh)){constructor(e){super(e),this.element=new Xo.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=Nh(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Ud(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const eg=Zy;const tg=class extends eg{constructor(e){super(e),this.element=new Qy}};const rg=class extends Ad{constructor(e){super(e),this.alternator=[{predicate:Nh,specPath:["document","objects","Reference"]},{predicate:Ca,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Ad.prototype.enter.call(this,e);return Ud(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class sg extends Xo.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(sg.primaryClass)}}const ng=sg;class ig extends(rp(od,Fh)){specPath;constructor(e){super(e),this.element=new ng,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Ud).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const og=ig;class ag extends Xo.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(ag.primaryClass),this.classes.push("security")}}const cg=ag;class lg extends(rp(Ih,Fh)){constructor(e){super(e),this.element=new cg}ArrayElement(e){return e.forEach((e=>{const t=ba(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const ug=lg;class pg extends Xo.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(pg.primaryClass),this.classes.push("servers")}}const hg=pg;const dg=class extends gd{constructor(e){super(e),this.element=new hg}};class mg extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new pu,this.specPath=_n(["document","objects","PathItem"])}ObjectElement(e){const t=Uh.prototype.ObjectElement.call(this,e);return this.element.filter(Nd).forEach(((e,t)=>{const r=sc(t);r.content=bc(r).toUpperCase(),e.setMetaProperty("http-method",r)})),fa(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const fg=mg;const yg=class extends Fh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class gg extends Xo.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(gg.primaryClass),this.classes.push("servers")}}const vg=gg;const bg=class extends gd{constructor(e){super(e),this.element=new vg}};class xg extends Xo.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(xg.primaryClass),this.classes.push("parameters")}}const wg=xg;const Eg=class extends eg{constructor(e){super(e),this.element=new wg}};class Sg extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Eh,this.specPath=_n(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const jg=Sg;class Og extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new tu,this.specPath=_n(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Ag=Og;class Pg extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new Zl,this.specPath=_n(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const kg=Pg;class $g extends Xo.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push($g.primaryClass)}}const Tg=$g;class Cg extends(rp(od,Fh)){constructor(e){super(e),this.element=new Tg,this.specPath=_n(["value"])}}const Fg=Cg;class Ig extends Xo.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(Ig.primaryClass)}}const Mg=Ig;class _g extends(rp(Ih,Fh)){constructor(e){super(e),this.element=new Mg}ArrayElement(e){return e.forEach((e=>{const t=Bh(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const Rg=_g,{fixedFields:Dg}=ph.visitors.document.objects.JSONSchema,Ng={visitors:{value:Fh,document:{objects:{OpenApi:{$visitor:Vh,fixedFields:{openapi:zh,info:{$ref:"#/visitors/document/objects/Info"},servers:gd,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:gm,tags:Rg,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Kh,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:Yh}},Contact:{$visitor:Qh,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:ed,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:hd,fixedFields:{url:dd,description:{$ref:"#/visitors/value"},variables:Sd}},ServerVariable:{$visitor:bd,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:bm,fixedFields:{schemas:wf,responses:Of,parameters:$f,examples:If,requestBodies:Df,headers:qf,securitySchemes:Hf,links:Kf,callbacks:Zf}},Paths:{$visitor:hy},PathItem:{$visitor:fg,fixedFields:{$ref:yg,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:bg,parameters:Eg}},Operation:{$visitor:Gy,fixedFields:{tags:Yy,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:tg,requestBody:rg,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:og,deprecated:{$ref:"#/visitors/value"},security:ug,servers:dg}},ExternalDocumentation:{$visitor:ny,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Am,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:km,example:{$ref:"#/visitors/value"},examples:mf,content:gf}},RequestBody:{$visitor:my,fixedFields:{description:{$ref:"#/visitors/value"},content:gy,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Od,fixedFields:{schema:rm,example:{$ref:"#/visitors/value"},examples:am,encoding:pm}},Encoding:{$visitor:oy,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:uy,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Jy,fixedFields:{default:Hy}},Response:{$visitor:wy,fixedFields:{description:{$ref:"#/visitors/value"},headers:Oy,content:ky,links:Fy}},Callback:{$visitor:by},Example:{$visitor:ty,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:ry}},Link:{$visitor:rd,fixedFields:{operationRef:sd,operationId:nd,parameters:ud,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Tm,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:Fm,example:{$ref:"#/visitors/value"},examples:_m,content:Bm}},Tag:{$visitor:wm,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Sm,fixedFields:{$ref:jm}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Um,fixedFields:{title:Dg.title,multipleOf:Dg.multipleOf,maximum:Dg.maximum,exclusiveMaximum:Dg.exclusiveMaximum,minimum:Dg.minimum,exclusiveMinimum:Dg.exclusiveMinimum,maxLength:Dg.maxLength,minLength:Dg.minLength,pattern:Dg.pattern,maxItems:Dg.maxItems,minItems:Dg.minItems,uniqueItems:Dg.uniqueItems,maxProperties:Dg.maxProperties,minProperties:Dg.minProperties,required:Dg.required,enum:Dg.enum,type:ef,allOf:Vm,anyOf:zm,oneOf:Wm,not:rf,items:Ym,properties:Qm,additionalProperties:rf,description:Dg.description,format:Dg.format,default:Dg.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:nf,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:lf}},XML:{$visitor:pf,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:jg,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:Ag,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:kg,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Fg}},SecurityRequirement:{$visitor:dm}},extension:{$visitor:Gh}}}},Lg=e=>{if(ma(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Bg={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"],...uc},qg={namespace:e=>{const{base:t}=e;return t.register("callback",$l),t.register("components",Cl),t.register("contact",Il),t.register("discriminator",_l),t.register("encoding",Dl),t.register("example",Ll),t.register("externalDocumentation",ql),t.register("header",Jl),t.register("info",Hl),t.register("license",Gl),t.register("link",Kl),t.register("mediaType",Xl),t.register("oAuthFlow",Zl),t.register("oAuthFlows",tu),t.register("openapi",su),t.register("openApi3_0",iu),t.register("operation",au),t.register("parameter",lu),t.register("pathItem",pu),t.register("paths",du),t.register("reference",fu),t.register("requestBody",gu),t.register("response",bu),t.register("responses",wu),t.register("schema",vh),t.register("securityRequirement",xh),t.register("securityScheme",Eh),t.register("server",jh),t.register("serverVariable",Ah),t.register("tag",kh),t.register("xml",Th),t}},Ug=()=>{const e=_c(qg);return{predicates:{...a,isElement:ma,isStringElement:fa,isArrayElement:xa,isObjectElement:ba,isMemberElement:wa,includesClasses:Ta,hasElementSourceMap:ka},namespace:e}},Jg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Xo.e)(e),n=tc(Ng),i=new(Ya(t,n))({specObj:n});return hc(s,i),Lc(i.element,r,{toolboxCreator:Ug,visitorOptions:{keyMap:Bg,nodeTypeGetter:Lg}})},Vg=e=>(t,r={})=>Jg(t,{specPath:e,...r});$l.refract=Vg(["visitors","document","objects","Callback","$visitor"]),Cl.refract=Vg(["visitors","document","objects","Components","$visitor"]),Il.refract=Vg(["visitors","document","objects","Contact","$visitor"]),Ll.refract=Vg(["visitors","document","objects","Example","$visitor"]),_l.refract=Vg(["visitors","document","objects","Discriminator","$visitor"]),Dl.refract=Vg(["visitors","document","objects","Encoding","$visitor"]),ql.refract=Vg(["visitors","document","objects","ExternalDocumentation","$visitor"]),Jl.refract=Vg(["visitors","document","objects","Header","$visitor"]),Hl.refract=Vg(["visitors","document","objects","Info","$visitor"]),Gl.refract=Vg(["visitors","document","objects","License","$visitor"]),Kl.refract=Vg(["visitors","document","objects","Link","$visitor"]),Xl.refract=Vg(["visitors","document","objects","MediaType","$visitor"]),Zl.refract=Vg(["visitors","document","objects","OAuthFlow","$visitor"]),tu.refract=Vg(["visitors","document","objects","OAuthFlows","$visitor"]),su.refract=Vg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),iu.refract=Vg(["visitors","document","objects","OpenApi","$visitor"]),au.refract=Vg(["visitors","document","objects","Operation","$visitor"]),lu.refract=Vg(["visitors","document","objects","Parameter","$visitor"]),pu.refract=Vg(["visitors","document","objects","PathItem","$visitor"]),du.refract=Vg(["visitors","document","objects","Paths","$visitor"]),fu.refract=Vg(["visitors","document","objects","Reference","$visitor"]),gu.refract=Vg(["visitors","document","objects","RequestBody","$visitor"]),bu.refract=Vg(["visitors","document","objects","Response","$visitor"]),wu.refract=Vg(["visitors","document","objects","Responses","$visitor"]),vh.refract=Vg(["visitors","document","objects","Schema","$visitor"]),xh.refract=Vg(["visitors","document","objects","SecurityRequirement","$visitor"]),Eh.refract=Vg(["visitors","document","objects","SecurityScheme","$visitor"]),jh.refract=Vg(["visitors","document","objects","Server","$visitor"]),Ah.refract=Vg(["visitors","document","objects","ServerVariable","$visitor"]),kh.refract=Vg(["visitors","document","objects","Tag","$visitor"]),Th.refract=Vg(["visitors","document","objects","XML","$visitor"]);const Hg=class extends $l{};const zg=class extends Cl{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Gg=class extends Il{};const Wg=class extends _l{};const Kg=class extends Dl{};const Yg=class extends Ll{};const Xg=class extends ql{};const Qg=class extends Jl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Zg=class extends Hl{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 ev extends Xo.Om{static default=new ev("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const tv=ev;const rv=class extends Gl{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const sv=class extends Kl{};const nv=class extends Xl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const iv=class extends Zl{};const ov=class extends tu{};const av=class extends su{};class cv extends Xo.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 lv=cv;const uv=class extends au{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const pv=class extends lu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const hv=class extends pu{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)}};const dv=class extends du{};class mv extends fu{}Object.defineProperty(mv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(mv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const fv=mv;const yv=class extends gu{};const gv=class extends bu{};const vv=class extends wu{};const bv=class extends ju{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new Eu("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Eu("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)}};const xv=class extends Tu{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 Eu("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Eu("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 Eu("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Eu("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Eu("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Eu("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 wv=ls((function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!Va(s)&&Ls(n,s)&&"object"==typeof s[n]?s[n]:ks(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(ks(e)&&us(r)){var s=[].concat(r);return s[e]=t,s}var n={};for(var i in r)n[i]=r[i];return n[e]=t,n}(n,r,s)}));const Ev=wv;const Sv=ls((function(e,t,r){var s=Array.prototype.slice.call(r,0);return s.splice(e,t),s}));var jv=ls((function(e,t,r){return Ev([e],t,r)}));const Ov=jv;var Av=cs((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(ks(e)&&us(t))return Sv(e,1,t);var r={};for(var s in t)r[s]=t[s];return delete r[e],r}(t[0],r);default:var s=t[0],n=Array.prototype.slice.call(t,1);return null==r[s]?function(e,t){if(ks(e)&&us(t))return[].concat(t);var r={};for(var s in t)r[s]=t[s];return r}(s,r):Ov(s,e(n,r[s]),r)}}));const Pv=Av;const kv=class extends vp{constructor(e){super(e),this.element=new bv}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)}};const $v=class extends wp{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Ma}};const Tv=class extends Du{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const Cv=class extends uh{constructor(e){super(e),this.element=new xv}},Fv=As(Ev(["visitors","document","objects","JSONSchema","$visitor"],kv),Pv(["visitors","document","objects","JSONSchema","fixedFields","id"]),Ev(["visitors","document","objects","JSONSchema","fixedFields","$id"],ph.visitors.value),Ev(["visitors","document","objects","JSONSchema","fixedFields","contains"],ph.visitors.JSONSchemaOrJSONReferenceVisitor),Ev(["visitors","document","objects","JSONSchema","fixedFields","items"],$v),Ev(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],ph.visitors.JSONSchemaOrJSONReferenceVisitor),Ev(["visitors","document","objects","JSONSchema","fixedFields","const"],ph.visitors.value),Ev(["visitors","document","objects","JSONSchema","fixedFields","examples"],Tv),Ev(["visitors","document","objects","LinkDescription","$visitor"],Cv),Ev(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],ph.visitors.JSONSchemaOrJSONReferenceVisitor),Pv(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Ev(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],ph.visitors.JSONSchemaOrJSONReferenceVisitor),Pv(["visitors","document","objects","LinkDescription","fixedFields","method"]),Pv(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Ev(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],ph.visitors.value))(ph),Iv={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...uc},Mv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bv||e(s)&&t("JSONSchemaDraft6",s)&&r("object",s))),_v=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xv||e(s)&&t("linkDescription",s)&&r("object",s))),Rv={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",bv),t.register("jSONReference",Au),t.register("media",ku),t.register("linkDescription",xv),t}},Dv=()=>{const e=_c(Rv);return{predicates:{...c,isStringElement:fa},namespace:e}},Nv=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Fv}={})=>{const n=(0,Xo.e)(e),i=tc(s),o=new(Ya(t,i))({specObj:i});return hc(n,o),Lc(o.element,r,{toolboxCreator:Dv,visitorOptions:{keyMap:Iv,nodeTypeGetter:hh}})},Lv=e=>(t,r={})=>Nv(t,{specPath:e,...r});bv.refract=Lv(["visitors","document","objects","JSONSchema","$visitor"]),xv.refract=Lv(["visitors","document","objects","LinkDescription","$visitor"]);const Bv=class extends bv{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 Eu('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Eu('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)}};const qv=class extends xv{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 Eu("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Eu("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 Eu("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Eu("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const Uv=class extends kv{constructor(e){super(e),this.element=new Bv}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const Jv=class extends Cv{constructor(e){super(e),this.element=new qv}},Vv=As(Ev(["visitors","document","objects","JSONSchema","$visitor"],Uv),Ev(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Fv.visitors.value),Ev(["visitors","document","objects","JSONSchema","fixedFields","if"],Fv.visitors.JSONSchemaOrJSONReferenceVisitor),Ev(["visitors","document","objects","JSONSchema","fixedFields","then"],Fv.visitors.JSONSchemaOrJSONReferenceVisitor),Ev(["visitors","document","objects","JSONSchema","fixedFields","else"],Fv.visitors.JSONSchemaOrJSONReferenceVisitor),Pv(["visitors","document","objects","JSONSchema","fixedFields","media"]),Ev(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Fv.visitors.value),Ev(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Fv.visitors.value),Ev(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Fv.visitors.value),Ev(["visitors","document","objects","LinkDescription","$visitor"],Jv),Ev(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Fv.visitors.value),Ev(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Fv.visitors.value),Pv(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Ev(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Fv.visitors.value),Ev(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Fv.visitors.value),Ev(["visitors","document","objects","LinkDescription","fixedFields","description"],Fv.visitors.value),Ev(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Fv.visitors.value),Ev(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Fv.visitors.JSONSchemaOrJSONReferenceVisitor),Pv(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Ev(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Fv.visitors.value))(Fv),Hv={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...uc},zv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bv||e(s)&&t("JSONSchemaDraft7",s)&&r("object",s))),Gv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qv||e(s)&&t("linkDescription",s)&&r("object",s))),Wv={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",Bv),t.register("jSONReference",Au),t.register("linkDescription",qv),t}},Kv=()=>{const e=_c(Wv);return{predicates:{...l,isStringElement:fa},namespace:e}},Yv=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Vv}={})=>{const n=(0,Xo.e)(e),i=tc(s),o=new(Ya(t,i))({specObj:i});return hc(n,o),Lc(o.element,r,{toolboxCreator:Kv,visitorOptions:{keyMap:Hv,nodeTypeGetter:hh}})},Xv=e=>(t,r={})=>Yv(t,{specPath:e,...r});Bv.refract=Xv(["visitors","document","objects","JSONSchema","$visitor"]),qv.refract=Xv(["visitors","document","objects","LinkDescription","$visitor"]);const Qv=class extends Bv{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 Eu("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Eu("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 Eu("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Eu("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)}};const Zv=class extends qv{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)}};const eb=class extends Uv{constructor(e){super(e),this.element=new Qv}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=pp.prototype.ObjectElement.call(this,e);return fa(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const tb=class extends Du{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const rb=class extends Du{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class sb extends(rp(jp,hp,Du)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=_n(["document","objects","JSONSchema"])}}const nb=sb;class ib extends(rp(up,hp,Du)){constructor(e){super(e),this.element=new Xo.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),Ma}}const ob=ib;class ab extends(rp(up,hp,Du)){constructor(e){super(e),this.element=new Xo.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),Ma}}const cb=ab;class lb extends(rp(up,hp,Du)){constructor(e){super(e),this.element=new Xo.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),Ma}}const ub=lb;class pb extends(rp(jp,hp,Du)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=_n(["document","objects","JSONSchema"])}}const hb=pb;class db extends(rp(up,hp,Du)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Ma}ArrayElement(e){return this.element=new Xo.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),Ma}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Ma}}const mb=db;class fb extends(rp(jp,hp,Du)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=_n(["document","objects","JSONSchema"])}}const yb=fb;class gb extends(rp(jp,hp,Du)){constructor(e){super(e),this.element=new Xo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=_n(["document","objects","JSONSchema"])}}const vb=gb;const bb=class extends Du{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const xb=class extends Jv{constructor(e){super(e),this.element=new Zv}},wb=As(Ev(["visitors","document","objects","JSONSchema","$visitor"],eb),Ev(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],tb),Ev(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Vv.visitors.value),Ev(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Vv.visitors.value),Ev(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Vv.visitors.value),Pv(["visitors","document","objects","JSONReference","$visitor"]),Ev(["visitors","document","objects","JSONSchema","fixedFields","$ref"],rb),Pv(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Ev(["visitors","document","objects","JSONSchema","fixedFields","$defs"],nb),Ev(["visitors","document","objects","JSONSchema","fixedFields","allOf"],ob),Ev(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],cb),Ev(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],ub),Ev(["visitors","document","objects","JSONSchema","fixedFields","not"],eb),Ev(["visitors","document","objects","JSONSchema","fixedFields","if"],eb),Ev(["visitors","document","objects","JSONSchema","fixedFields","then"],eb),Ev(["visitors","document","objects","JSONSchema","fixedFields","else"],eb),Pv(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Ev(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],hb),Ev(["visitors","document","objects","JSONSchema","fixedFields","items"],mb),Ev(["visitors","document","objects","JSONSchema","fixedFields","contains"],eb),Ev(["visitors","document","objects","JSONSchema","fixedFields","properties"],yb),Ev(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],vb),Ev(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],eb),Ev(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],eb),Ev(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],eb),Ev(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],eb),Ev(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],eb),Ev(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Vv.visitors.value),Ev(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Vv.visitors.value),Ev(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],bb),Ev(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Vv.visitors.value),Ev(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],eb),Ev(["visitors","document","objects","LinkDescription","$visitor"],xb),Ev(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],eb),Ev(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],eb),Ev(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],eb),Ev(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],eb))(Vv),Eb={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...uc},Sb=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qv||e(s)&&t("JSONSchema201909",s)&&r("object",s))),jb=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zv||e(s)&&t("linkDescription",s)&&r("object",s))),Ob={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Qv),t.register("linkDescription",Zv),t}},Ab=()=>{const e=_c(Ob);return{predicates:{...u,isStringElement:fa},namespace:e}},Pb=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=wb}={})=>{const n=(0,Xo.e)(e),i=tc(s),o=new(Ya(t,i))({specObj:i});return hc(n,o),Lc(o.element,r,{toolboxCreator:Ab,visitorOptions:{keyMap:Eb,nodeTypeGetter:hh}})},kb=e=>(t,r={})=>Pb(t,{specPath:e,...r});Qv.refract=kb(["visitors","document","objects","JSONSchema","$visitor"]),Zv.refract=kb(["visitors","document","objects","LinkDescription","$visitor"]);const $b=class extends Qv{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 Eu("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Eu("$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 Eu("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Eu("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const Tb=class extends Zv{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)}};const Cb=class extends eb{constructor(e){super(e),this.element=new $b}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class Fb extends(rp(up,hp,Du)){constructor(e){super(e),this.element=new Xo.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),Ma}}const Ib=Fb;const Mb=class extends xb{constructor(e){super(e),this.element=new Tb}},_b=As(Ev(["visitors","document","objects","JSONSchema","$visitor"],Cb),Pv(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Ev(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],wb.visitors.value),Pv(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Ev(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],wb.visitors.value),Ev(["visitors","document","objects","JSONSchema","fixedFields","not"],Cb),Ev(["visitors","document","objects","JSONSchema","fixedFields","if"],Cb),Ev(["visitors","document","objects","JSONSchema","fixedFields","then"],Cb),Ev(["visitors","document","objects","JSONSchema","fixedFields","else"],Cb),Ev(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],Ib),Ev(["visitors","document","objects","JSONSchema","fixedFields","items"],Cb),Ev(["visitors","document","objects","JSONSchema","fixedFields","contains"],Cb),Ev(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Cb),Pv(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Ev(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Cb),Ev(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Cb),Ev(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Cb),Ev(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Cb),Ev(["visitors","document","objects","LinkDescription","$visitor"],Mb),Ev(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Cb),Ev(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Cb),Ev(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Cb),Ev(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Cb))(wb),Rb={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...uc},Db=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $b||e(s)&&t("JSONSchema202012",s)&&r("object",s))),Nb=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tb||e(s)&&t("linkDescription",s)&&r("object",s))),Lb={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",$b),t.register("linkDescription",Tb),t}},Bb=()=>{const e=_c(Lb);return{predicates:{...p,isStringElement:fa},namespace:e}},qb=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=_b}={})=>{const n=(0,Xo.e)(e),i=tc(s),o=new(Ya(t,i))({specObj:i});return hc(n,o),Lc(o.element,r,{toolboxCreator:Bb,visitorOptions:{keyMap:Rb,nodeTypeGetter:hh}})},Ub=e=>(t,r={})=>qb(t,{specPath:e,...r});$b.refract=Ub(["visitors","document","objects","JSONSchema","$visitor"]),Tb.refract=Ub(["visitors","document","objects","LinkDescription","$visitor"]);const Jb=class extends $b{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)}};const Vb=class extends xh{};const Hb=class extends Eh{};const zb=class extends jh{};const Gb=class extends Ah{};const Wb=class extends kh{};const Kb=class extends Th{};class Yb extends(rp(Uh,Fh)){constructor(e){super(e),this.element=new lv,this.specPath=_n(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Uh.prototype.ObjectElement.call(this,e)}}const Xb=Yb,Qb=Ng.visitors.document.objects.Info.$visitor;const Zb=class extends Qb{constructor(e){super(e),this.element=new Zg}},ex=Ng.visitors.document.objects.Contact.$visitor;const tx=class extends ex{constructor(e){super(e),this.element=new Gg}},rx=Ng.visitors.document.objects.License.$visitor;const sx=class extends rx{constructor(e){super(e),this.element=new rv}},nx=Ng.visitors.document.objects.Link.$visitor;const ix=class extends nx{constructor(e){super(e),this.element=new sv}};class ox extends(rp(Ih,Fh)){StringElement(e){const t=new tv(bc(e));return this.copyMetaAndAttributes(e,t),this.element=t,Ma}}const ax=ox,cx=Ng.visitors.document.objects.Server.$visitor;const lx=class extends cx{constructor(e){super(e),this.element=new zb}},ux=Ng.visitors.document.objects.ServerVariable.$visitor;const px=class extends ux{constructor(e){super(e),this.element=new Gb}},hx=Ng.visitors.document.objects.MediaType.$visitor;const dx=class extends hx{constructor(e){super(e),this.element=new nv}},mx=Ng.visitors.document.objects.SecurityRequirement.$visitor;const fx=class extends mx{constructor(e){super(e),this.element=new Vb}},yx=Ng.visitors.document.objects.Components.$visitor;const gx=class extends yx{constructor(e){super(e),this.element=new zg}},vx=Ng.visitors.document.objects.Tag.$visitor;const bx=class extends vx{constructor(e){super(e),this.element=new Wb}},xx=Ng.visitors.document.objects.Reference.$visitor;const wx=class extends xx{constructor(e){super(e),this.element=new fv}},Ex=Ng.visitors.document.objects.Parameter.$visitor;const Sx=class extends Ex{constructor(e){super(e),this.element=new pv}},jx=Ng.visitors.document.objects.Header.$visitor;const Ox=class extends jx{constructor(e){super(e),this.element=new Qg}},Ax=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hg||e(s)&&t("callback",s)&&r("object",s))),Px=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zg||e(s)&&t("components",s)&&r("object",s))),kx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gg||e(s)&&t("contact",s)&&r("object",s))),$x=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yg||e(s)&&t("example",s)&&r("object",s))),Tx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xg||e(s)&&t("externalDocumentation",s)&&r("object",s))),Cx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qg||e(s)&&t("header",s)&&r("object",s))),Fx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zg||e(s)&&t("info",s)&&r("object",s))),Ix=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tv||e(s)&&t("jsonSchemaDialect",s)&&r("string",s))),Mx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rv||e(s)&&t("license",s)&&r("object",s))),_x=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sv||e(s)&&t("link",s)&&r("object",s))),Rx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof av||e(s)&&t("openapi",s)&&r("string",s))),Dx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof lv||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n))),Nx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uv||e(s)&&t("operation",s)&&r("object",s))),Lx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pv||e(s)&&t("parameter",s)&&r("object",s))),Bx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hv||e(s)&&t("pathItem",s)&&r("object",s))),qx=e=>{if(!Bx(e))return!1;if(!fa(e.$ref))return!1;const t=bc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Ux=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof dv||e(s)&&t("paths",s)&&r("object",s))),Jx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fv||e(s)&&t("reference",s)&&r("object",s))),Vx=e=>{if(!Jx(e))return!1;if(!fa(e.$ref))return!1;const t=bc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Hx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yv||e(s)&&t("requestBody",s)&&r("object",s))),zx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gv||e(s)&&t("response",s)&&r("object",s))),Gx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vv||e(s)&&t("responses",s)&&r("object",s))),Wx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jb||e(s)&&t("schema",s)&&r("object",s))),Kx=e=>va(e)&&e.classes.includes("boolean-json-schema"),Yx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vb||e(s)&&t("securityRequirement",s)&&r("object",s))),Xx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hb||e(s)&&t("securityScheme",s)&&r("object",s))),Qx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zb||e(s)&&t("server",s)&&r("object",s))),Zx=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gb||e(s)&&t("serverVariable",s)&&r("object",s))),ew=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nv||e(s)&&t("mediaType",s)&&r("object",s)));class tw extends(rp(Uh,hp,Fh)){constructor(e){super(e),this.element=new Jb,this.specPath=_n(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=tv.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Uh.prototype.ObjectElement.call(this,e);return fa(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return Cb.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&Ix(this.openApiSemanticElement.jsonSchemaDialect)?bc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&fa(this.openApiGenericElement.get("jsonSchemaDialect"))?bc(this.openApiGenericElement.get("jsonSchemaDialect")):bc(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return Cb.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return Cb.prototype.handleSchemaIdentifier.call(this,e)}}const rw=tw;const sw=class extends nb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const nw=class extends ob{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const iw=class extends cb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const ow=class extends ub{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const aw=class extends hb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const cw=class extends Ib{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const lw=class extends yb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const uw=class extends vb{constructor(e){super(e),this.passingOptionsNames.push("parent")}},pw=Ng.visitors.document.objects.Discriminator.$visitor;const hw=class extends pw{constructor(e){super(e),this.element=new Wg,this.canSupportSpecificationExtensions=!0}},dw=Ng.visitors.document.objects.XML.$visitor;const mw=class extends dw{constructor(e){super(e),this.element=new Kb}};class fw extends(rp(od,Fh)){constructor(e){super(e),this.element=new bf,this.specPath=_n(["document","objects","Schema"])}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Wx).forEach(((e,t)=>{e.setMetaProperty("schemaName",bc(t))})),t}}const yw=fw;class gw extends Xo.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(gw.primaryClass)}}const vw=gw;class bw extends(rp(od,Fh)){constructor(e){super(e),this.element=new vw,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Jx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const xw=bw,ww=Ng.visitors.document.objects.Example.$visitor;const Ew=class extends ww{constructor(e){super(e),this.element=new Yg}},Sw=Ng.visitors.document.objects.ExternalDocumentation.$visitor;const jw=class extends Sw{constructor(e){super(e),this.element=new Xg}},Ow=Ng.visitors.document.objects.Encoding.$visitor;const Aw=class extends Ow{constructor(e){super(e),this.element=new Kg}},Pw=Ng.visitors.document.objects.Paths.$visitor;const kw=class extends Pw{constructor(e){super(e),this.element=new dv}},$w=Ng.visitors.document.objects.RequestBody.$visitor;const Tw=class extends $w{constructor(e){super(e),this.element=new yv}},Cw=Ng.visitors.document.objects.Callback.$visitor;const Fw=class extends Cw{constructor(e){super(e),this.element=new Hg,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Cw.prototype.ObjectElement.call(this,e);return this.element.filter(Jx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},Iw=Ng.visitors.document.objects.Response.$visitor;const Mw=class extends Iw{constructor(e){super(e),this.element=new gv}},_w=Ng.visitors.document.objects.Responses.$visitor;const Rw=class extends _w{constructor(e){super(e),this.element=new vv}},Dw=Ng.visitors.document.objects.Operation.$visitor;const Nw=class extends Dw{constructor(e){super(e),this.element=new uv}},Lw=Ng.visitors.document.objects.PathItem.$visitor;const Bw=class extends Lw{constructor(e){super(e),this.element=new hv}},qw=Ng.visitors.document.objects.SecurityScheme.$visitor;const Uw=class extends qw{constructor(e){super(e),this.element=new Hb}},Jw=Ng.visitors.document.objects.OAuthFlows.$visitor;const Vw=class extends Jw{constructor(e){super(e),this.element=new ov}},Hw=Ng.visitors.document.objects.OAuthFlow.$visitor;const zw=class extends Hw{constructor(e){super(e),this.element=new iv}};class Gw extends Xo.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(Gw.primaryClass)}}const Ww=Gw;class Kw extends(rp(od,Fh)){constructor(e){super(e),this.element=new Ww,this.specPath=e=>Nh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=od.prototype.ObjectElement.call(this,e);return this.element.filter(Jx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Bx).forEach(((e,t)=>{e.setMetaProperty("webhook-name",bc(t))})),t}}const Yw=Kw,{JSONSchema:Xw,LinkDescription:Qw}=_b.visitors.document.objects,Zw={visitors:{value:Ng.visitors.value,document:{objects:{OpenApi:{$visitor:Xb,fixedFields:{openapi:Ng.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:ax,servers:Ng.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Yw,components:{$ref:"#/visitors/document/objects/Components"},security:Ng.visitors.document.objects.OpenApi.fixedFields.security,tags:Ng.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Zb,fixedFields:{title:Ng.visitors.document.objects.Info.fixedFields.title,description:Ng.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Ng.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Ng.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:tx,fixedFields:{name:Ng.visitors.document.objects.Contact.fixedFields.name,url:Ng.visitors.document.objects.Contact.fixedFields.url,email:Ng.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:sx,fixedFields:{name:Ng.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Ng.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:lx,fixedFields:{url:Ng.visitors.document.objects.Server.fixedFields.url,description:Ng.visitors.document.objects.Server.fixedFields.description,variables:Ng.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:px,fixedFields:{enum:Ng.visitors.document.objects.ServerVariable.fixedFields.enum,default:Ng.visitors.document.objects.ServerVariable.fixedFields.default,description:Ng.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:gx,fixedFields:{schemas:yw,responses:Ng.visitors.document.objects.Components.fixedFields.responses,parameters:Ng.visitors.document.objects.Components.fixedFields.parameters,examples:Ng.visitors.document.objects.Components.fixedFields.examples,requestBodies:Ng.visitors.document.objects.Components.fixedFields.requestBodies,headers:Ng.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Ng.visitors.document.objects.Components.fixedFields.securitySchemes,links:Ng.visitors.document.objects.Components.fixedFields.links,callbacks:Ng.visitors.document.objects.Components.fixedFields.callbacks,pathItems:xw}},Paths:{$visitor:kw},PathItem:{$visitor:Bw,fixedFields:{$ref:Ng.visitors.document.objects.PathItem.fixedFields.$ref,summary:Ng.visitors.document.objects.PathItem.fixedFields.summary,description:Ng.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:Ng.visitors.document.objects.PathItem.fixedFields.servers,parameters:Ng.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Nw,fixedFields:{tags:Ng.visitors.document.objects.Operation.fixedFields.tags,summary:Ng.visitors.document.objects.Operation.fixedFields.summary,description:Ng.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Ng.visitors.document.objects.Operation.fixedFields.operationId,parameters:Ng.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Ng.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Ng.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Ng.visitors.document.objects.Operation.fixedFields.deprecated,security:Ng.visitors.document.objects.Operation.fixedFields.security,servers:Ng.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:jw,fixedFields:{description:Ng.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Ng.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Sx,fixedFields:{name:Ng.visitors.document.objects.Parameter.fixedFields.name,in:Ng.visitors.document.objects.Parameter.fixedFields.in,description:Ng.visitors.document.objects.Parameter.fixedFields.description,required:Ng.visitors.document.objects.Parameter.fixedFields.required,deprecated:Ng.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Ng.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Ng.visitors.document.objects.Parameter.fixedFields.style,explode:Ng.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Ng.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ng.visitors.document.objects.Parameter.fixedFields.example,examples:Ng.visitors.document.objects.Parameter.fixedFields.examples,content:Ng.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Tw,fixedFields:{description:Ng.visitors.document.objects.RequestBody.fixedFields.description,content:Ng.visitors.document.objects.RequestBody.fixedFields.content,required:Ng.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:dx,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Ng.visitors.document.objects.MediaType.fixedFields.example,examples:Ng.visitors.document.objects.MediaType.fixedFields.examples,encoding:Ng.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Aw,fixedFields:{contentType:Ng.visitors.document.objects.Encoding.fixedFields.contentType,headers:Ng.visitors.document.objects.Encoding.fixedFields.headers,style:Ng.visitors.document.objects.Encoding.fixedFields.style,explode:Ng.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Ng.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Rw,fixedFields:{default:Ng.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Mw,fixedFields:{description:Ng.visitors.document.objects.Response.fixedFields.description,headers:Ng.visitors.document.objects.Response.fixedFields.headers,content:Ng.visitors.document.objects.Response.fixedFields.content,links:Ng.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Fw},Example:{$visitor:Ew,fixedFields:{summary:Ng.visitors.document.objects.Example.fixedFields.summary,description:Ng.visitors.document.objects.Example.fixedFields.description,value:Ng.visitors.document.objects.Example.fixedFields.value,externalValue:Ng.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:ix,fixedFields:{operationRef:Ng.visitors.document.objects.Link.fixedFields.operationRef,operationId:Ng.visitors.document.objects.Link.fixedFields.operationId,parameters:Ng.visitors.document.objects.Link.fixedFields.parameters,requestBody:Ng.visitors.document.objects.Link.fixedFields.requestBody,description:Ng.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Ox,fixedFields:{description:Ng.visitors.document.objects.Header.fixedFields.description,required:Ng.visitors.document.objects.Header.fixedFields.required,deprecated:Ng.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Ng.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Ng.visitors.document.objects.Header.fixedFields.style,explode:Ng.visitors.document.objects.Header.fixedFields.explode,allowReserved:Ng.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ng.visitors.document.objects.Header.fixedFields.example,examples:Ng.visitors.document.objects.Header.fixedFields.examples,content:Ng.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:bx,fixedFields:{name:Ng.visitors.document.objects.Tag.fixedFields.name,description:Ng.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:wx,fixedFields:{$ref:Ng.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Qw},Schema:{$visitor:rw,fixedFields:{...Xw.fixedFields,$defs:sw,allOf:nw,anyOf:iw,oneOf:ow,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:aw,prefixItems:cw,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:lw,patternProperties:uw,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:hw,fixedFields:{propertyName:Ng.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Ng.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:mw,fixedFields:{name:Ng.visitors.document.objects.XML.fixedFields.name,namespace:Ng.visitors.document.objects.XML.fixedFields.namespace,prefix:Ng.visitors.document.objects.XML.fixedFields.prefix,attribute:Ng.visitors.document.objects.XML.fixedFields.attribute,wrapped:Ng.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Uw,fixedFields:{type:Ng.visitors.document.objects.SecurityScheme.fixedFields.type,description:Ng.visitors.document.objects.SecurityScheme.fixedFields.description,name:Ng.visitors.document.objects.SecurityScheme.fixedFields.name,in:Ng.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Ng.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Ng.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Ng.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Vw,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:zw,fixedFields:{authorizationUrl:Ng.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Ng.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Ng.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Ng.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:fx}},extension:{$visitor:Ng.visitors.document.extension.$visitor}}}},eE=e=>{if(ma(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},tE={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"],...uc},rE={namespace:e=>{const{base:t}=e;return t.register("callback",Hg),t.register("components",zg),t.register("contact",Gg),t.register("discriminator",Wg),t.register("encoding",Kg),t.register("example",Yg),t.register("externalDocumentation",Xg),t.register("header",Qg),t.register("info",Zg),t.register("jsonSchemaDialect",tv),t.register("license",rv),t.register("link",sv),t.register("mediaType",nv),t.register("oAuthFlow",iv),t.register("oAuthFlows",ov),t.register("openapi",av),t.register("openApi3_1",lv),t.register("operation",uv),t.register("parameter",pv),t.register("pathItem",hv),t.register("paths",dv),t.register("reference",fv),t.register("requestBody",yv),t.register("response",gv),t.register("responses",vv),t.register("schema",Jb),t.register("securityRequirement",Vb),t.register("securityScheme",Hb),t.register("server",zb),t.register("serverVariable",Gb),t.register("tag",Wb),t.register("xml",Kb),t}},sE=e=>{const t=e.reduce(((t,r,s)=>{if(wa(r)){const e=String(bc(r.key));t.push(e)}else if(xa(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t}),[]);return gl(t)},nE=()=>{const e=_c(rE);return{predicates:{...h,isElement:ma,isStringElement:fa,isArrayElement:xa,isObjectElement:ba,isMemberElement:wa,isServersElement:Zd,includesClasses:Ta,hasElementSourceMap:ka},ancestorLineageToJSONPointer:sE,namespace:e}},iE=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Xo.e)(e),n=tc(Zw),i=new(Ya(t,n))({specObj:n});return hc(s,i),Lc(i.element,r,{toolboxCreator:nE,visitorOptions:{keyMap:tE,nodeTypeGetter:eE}})},oE=e=>(t,r={})=>iE(t,{specPath:e,...r});Hg.refract=oE(["visitors","document","objects","Callback","$visitor"]),zg.refract=oE(["visitors","document","objects","Components","$visitor"]),Gg.refract=oE(["visitors","document","objects","Contact","$visitor"]),Yg.refract=oE(["visitors","document","objects","Example","$visitor"]),Wg.refract=oE(["visitors","document","objects","Discriminator","$visitor"]),Kg.refract=oE(["visitors","document","objects","Encoding","$visitor"]),Xg.refract=oE(["visitors","document","objects","ExternalDocumentation","$visitor"]),Qg.refract=oE(["visitors","document","objects","Header","$visitor"]),Zg.refract=oE(["visitors","document","objects","Info","$visitor"]),tv.refract=oE(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),rv.refract=oE(["visitors","document","objects","License","$visitor"]),sv.refract=oE(["visitors","document","objects","Link","$visitor"]),nv.refract=oE(["visitors","document","objects","MediaType","$visitor"]),iv.refract=oE(["visitors","document","objects","OAuthFlow","$visitor"]),ov.refract=oE(["visitors","document","objects","OAuthFlows","$visitor"]),av.refract=oE(["visitors","document","objects","OpenApi","fixedFields","openapi"]),lv.refract=oE(["visitors","document","objects","OpenApi","$visitor"]),uv.refract=oE(["visitors","document","objects","Operation","$visitor"]),pv.refract=oE(["visitors","document","objects","Parameter","$visitor"]),hv.refract=oE(["visitors","document","objects","PathItem","$visitor"]),dv.refract=oE(["visitors","document","objects","Paths","$visitor"]),fv.refract=oE(["visitors","document","objects","Reference","$visitor"]),yv.refract=oE(["visitors","document","objects","RequestBody","$visitor"]),gv.refract=oE(["visitors","document","objects","Response","$visitor"]),vv.refract=oE(["visitors","document","objects","Responses","$visitor"]),Jb.refract=oE(["visitors","document","objects","Schema","$visitor"]),Vb.refract=oE(["visitors","document","objects","SecurityRequirement","$visitor"]),Hb.refract=oE(["visitors","document","objects","SecurityScheme","$visitor"]),zb.refract=oE(["visitors","document","objects","Server","$visitor"]),Gb.refract=oE(["visitors","document","objects","ServerVariable","$visitor"]),Wb.refract=oE(["visitors","document","objects","Tag","$visitor"]),Kb.refract=oE(["visitors","document","objects","XML","$visitor"]);const aE=class extends Eu{};const cE=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new aE("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new aE("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new aE("latest method in MediaTypes class is not yet implemented.")}};class lE extends cE{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 Fs(this.filterByFormat(e))}}const uE=new lE("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");const pE=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:r,value:s}){this.uri=e,this.value=s,this.depth=t,this.refSet=r,this.errors=[]}};const hE=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=Xn(e)?e:e.uri;return Nn(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 dE(e){return e}const mE=as(dE),fE={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:mE,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const yE=cs((function(e,t){return function(r){return function(s){return Tn((function(e){return t(e,s)}),r(e(s)))}}}));var gE=function(e){return{value:e,map:function(t){return gE(t(e))}}},vE=ls((function(e,t,r){return e((function(e){return gE(t(e))}))(r).value}));const bE=vE;const xE=Qs(""),wE=yE(Ya(["resolve","baseURI"]),Ev(["resolve","baseURI"])),EE=e=>xE(e)?hi():e,SE=(e,t)=>{const r=Ec(e,t);return bE(wE,EE,r)};const jE=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t="text/plain",data:r,parseResult:s}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=s}get extension(){return Xn(this.uri)?oi(this.uri):""}toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Ks(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};const OE=class extends rs{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},AE=async(e,t,r)=>{const s=await Promise.all(r.map(Fc([e],t)));return r.filter(((e,t)=>s[t]))},PE=async(e,t,r)=>{let s;for(const n of r)try{const r=await n[e].call(n,...t);return{plugin:n,result:r}}catch(e){s=new OE("Error while running plugin",{cause:e,plugin:n})}return Promise.reject(s)};const kE=class extends rs{};const $E=class extends kE{};const TE=async(e,t)=>{let r=e,s=!1;if(!Aa(e)){const t=oc(e);t.classes.push("result"),r=new aa([t]),s=!0}const n=new jE({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await AE("canDereference",[n,t],t.dereference.strategies);if(kc(i))throw new $E(n.uri);try{const{result:e}=await PE("dereference",[n,t],i);return s?e.get(0):e}catch(e){throw new kE(`Error while dereferencing file "${n.uri}"`,{cause:e})}};const CE=class extends rs{};const FE=class extends CE{};const IE=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:r=!1,fileExtensions:s=[],mediaTypes:n=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=r,this.fileExtensions=s,this.mediaTypes=n}};const ME=class extends IE{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),s=new aa;if(0!==r.length){const e=new Xo.Om(r);e.classes.push("result"),s.push(e)}return s}catch(t){throw new FE(`Error parsing "${e.uri}"`,{cause:t})}}};const _E=class{name;constructor({name:e}){this.name=e}};const RE=class extends _E{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 $E('"openapi-3-1" dereference strategy is not available.');const s=new hE,n=SE(t,{resolve:{internal:!1},dereference:{refSet:s}});return await r.dereference(e,n),s}};const DE=class{name;constructor({name:e}){this.name=e}};const NE=class extends DE{timeout;redirects;withCredentials;constructor(e){const{name:t="http-resolver",timeout:r=5e3,redirects:s=5,withCredentials:n=!1}=null!=e?e:{};super({name:t}),this.timeout=r,this.redirects=s,this.withCredentials=n}canRead(e){return ci(e.uri)}};const LE=class extends rs{};const BE=class extends LE{},{AbortController:qE,AbortSignal:UE}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=qE),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=UE);const JE=class extends NE{swaggerHTTPClient=er;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=er,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:s}=r,n=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",a=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:s,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:i,redirect:o,follow:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new BE(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(n)}}},VE=(e,t=Rc)=>{if(Xn(e))try{return t.fromRefract(JSON.parse(e))}catch{}return Do(e)&&Wa("element",e)?t.fromRefract(e):t.toElement(e)};const HE=class extends IE{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return JSON.parse(e.toString()),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new FE("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new aa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=VE(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new FE(`Error parsing "${e.uri}"`,{cause:t})}}};const zE=class extends IE{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return Xt.load(e.toString(),{schema:Bt}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new FE("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new aa,r=e.toString();try{const e=Xt.load(r,{schema:Bt});if(this.allowEmpty&&void 0===e)return t;const s=VE(e);return s.classes.push("result"),t.push(s),t}catch(t){throw new FE(`Error parsing "${e.uri}"`,{cause:t})}}};const GE=class extends IE{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new lE(...uE.filterByFormat("generic"),...uE.filterByFormat("json")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)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 FE("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new aa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=lv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new FE(`Error parsing "${e.uri}"`,{cause:t})}}};const WE=class extends IE{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 lE(...uE.filterByFormat("generic"),...uE.filterByFormat("yaml")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return Xt.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new FE("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new aa,r=e.toString();try{const e=Xt.load(r,{schema:Bt});if(this.allowEmpty&&void 0===e)return t;const s=lv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new FE(`Error parsing "${e.uri}"`,{cause:t})}}};const KE=ls((function(e,t,r){return Qs(e,Ts(t,r))}));const YE=class{name;constructor({name:e}){this.name=e}};const XE=cs((function(e,t){return ta(nn(e),t)}));var QE=r(8068);const ZE=class extends ss{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class eS{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new QE({length:e}),this.identityMap=new WeakMap}identify(e){if(!ma(e))throw new ZE("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&fa(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 Xo.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 eS;const tS=ls((function(e,t,r){return Ps(e,Oo(t,r))})),rS=(e,t)=>{const r=new pc({predicate:e,returnOnTrue:Ma});return hc(t,r),tS(void 0,[0],r.result)};const sS=class extends rs{};const nS=class extends sS{};const iS=class extends sS{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},oS=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),aS=e=>{const t=ui(e);return ec("#",t)},cS=(e,t)=>{const r=(e=>{if(!oS(e))throw new iS(e);return e})(e),s=rS((e=>Wx(e)&&bc(e.$anchor)===r),t);if(Dn(s))throw new nS(`Evaluation failed on token: "${r}"`);return s},lS=(e,t)=>{const r=new pc({predicate:e});return hc(t,r),new Xo.G6(r.result)};const uS=class extends rs{};const pS=class extends uS{},hS=(e,t)=>{if(void 0===t.$ref)return;const r=ui(bc(t.$ref)),s=bc(t.meta.get("ancestorsSchemaIdentifiers"));return`${Es(((e,t)=>di(e,mi(pi(t)))),e,[...s,bc(t.$ref)])}${"#"===r?"":r}`},dS=e=>{if(dS.cache.has(e))return dS.cache.get(e);const t=Jb.refract(e);return dS.cache.set(e,t),t};dS.cache=new WeakMap;const mS=e=>Pa(e)?dS(e):e,fS=(e,t)=>{const{cache:r}=fS,s=pi(e),n=e=>Wx(e)&&void 0!==e.$id;if(!r.has(t)){const e=lS(n,t);r.set(t,Array.from(e))}const i=r.get(t).find((e=>((e,t)=>{if(void 0===t.$id)return;const r=bc(t.meta.get("ancestorsSchemaIdentifiers"));return Es(((e,t)=>di(e,mi(pi(t)))),e,r)})(s,e)===s));if(Dn(i))throw new pS(`Evaluation failed on URI: "${e}"`);return oS(aS(e))?cS(aS(e),i):Pl(i,Vc(e))};fS.cache=new WeakMap;const yS=class extends kE{};const gS=class extends LE{};const vS=class extends BE{},bS="apidom-file-cache",xS=async({cacheKey:e,result:t,error:r,cacheTTL:s})=>{if(0!==s)try{const s={cachedResult:t,cachedError:r,timestamp:Date.now()},n=await caches.open(bS),i=new Response(JSON.stringify(s),{headers:{"Content-Type":"application/json"}});await n.put(e,i)}catch(e){console.error("CacheStorage is not available")}},wS=async(e,t)=>{const{cacheTTL:r=0}=t.resolve.resolverOpts,s=`read_${e.uri}`,{cachedResult:n,cachedError:i}=await(async({cacheKey:e,cacheTTL:t})=>{if(0===t)return{cachedResult:null,cachedError:null};try{const r=await caches.open(bS),s=await r.match(e);if(s){const{cachedResult:n,cachedError:i,timestamp:o}=await s.json();if(Date.now()-o<t)return{cachedResult:n,cachedError:i};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:s,cacheTTL:r});if(null!==n)return n;if(null!==i)throw new LE(`Error while reading file "${e.uri}"`,{cause:i});const o=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),a=await AE("canRead",[e,t],o);if(kc(a))throw new vS(e.uri);try{const{result:t}=await PE("read",[e],a),n=new jE({...e,data:t}).toString();return await xS({cacheKey:s,result:n,error:null,cacheTTL:r}),t}catch(t){var c,l,u;throw await xS({cacheKey:s,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 LE(`Error while reading file "${e.uri}"`,{cause:t})}},ES=async(e,t)=>{const r=new jE({uri:mi(pi(e)),mediaType:t.parse.mediaType}),s=await wS(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)})),s=await AE("canParse",[e,t],r);if(kc(s))throw new vS(e.uri);try{const{plugin:r,result:n}=await PE("parse",[e,t],s);return!r.allowEmpty&&n.isEmpty?Promise.reject(new CE(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new CE(`Error while parsing file "${e.uri}"`,{cause:t})}})(new jE({...r,data:s}),t)};class SS 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(ma(r)&&e(r))return r}}const jS=hc[Symbol.for("nodejs.util.promisify.custom")],OS=new eS,AS=(e,t,r,s)=>{wa(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class PS{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new SS,refractCache:i=new Map,allOfDiscriminatorMapping:o=new Map}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new SS(...n),this.refractCache=i,this.allOfDiscriminatorMapping=o}handleDereferenceError(e,t,r){var s,n;if(null===(s=this.options.dereference.dereferenceOpts)||void 0===s||!s.continueOnError)throw e;if(r){const t=[...r].find((e=>ba(e)&&e.getMetaProperty("ref-referencing-element")));var i;if(t)null===(i=this.options.dereference.dereferenceOpts)||void 0===i||i.errors.push({error:e,refEl:t.getMetaProperty("ref-referencing-element")})}null===(n=this.options.dereference.dereferenceOpts)||void 0===n||n.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||!bc(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,mi(pi(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new gS(`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(KE(t,"uri"));const s=await ES(fi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new pE({uri:t,value:sc(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new pE({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(ma));return[new SS(...this.ancestors,t),t]}OpenApi3_1Element={leave:(e,t,r,s,n,i)=>{var o;if(null===(o=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===o||!o.dereferenceDiscriminatorMapping)return;const a=oc(e);return a.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),i.replaceWith(a,AS),r?void 0:a}};async ReferenceElement(e,t,r,s,n,i){var o,a;if(this.indirections.includes(e))return!1;const[c,l]=this.toAncestorLineage([...n,r]),u=this.toBaseURI(bc(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(bc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,l)}const m=di(u,bc(e.$ref));this.indirections.push(e);const f=Vc(m);let y;try{y=Pl(d.value.result,f)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(y.id=OS.identify(y),Pa(y)){const t=bc(e.meta.get("referenced-element")),r=`${t}-${bc(OS.identify(y))}`;if(this.refractCache.has(r))y=this.refractCache.get(r);else if(Nh(y))y=fv.refract(y),y.setMetaProperty("referenced-element",t),this.refractCache.set(r,y);else{y=this.namespace.getElementClass(t).refract(y),this.refractCache.set(r,y)}}if(e===y){const t=new rs("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if(this.indirections.length>this.options.dereference.maxDepth){const t=new yS(`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(y)){if(d.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new rs("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,l)}if("replace"===this.options.dereference.circular){var g,v;const t=new Xo.sI(y.id,{type:"reference",uri:d.uri,$ref:bc(e.$ref)}),s=(null!==(g=null===(v=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===v?void 0:v.circularReplacer)&&void 0!==g?g:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,AS),!r&&s}}const b=pi(d.refSet.rootRef.uri)!==d.uri,x=["error","replace"].includes(this.options.dereference.circular);if((h||b||Jx(y)||x||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!c.includesCycle(y)){l.add(e);const t=new PS({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{y=await jS(y,t,{keyMap:tE,nodeTypeGetter:eE})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,l)}l.delete(e)}this.indirections.pop();const w=oc(y);return w.setMetaProperty("id",OS.generateId()),w.setMetaProperty("ref-fields",{$ref:bc(e.$ref),description:bc(e.description),summary:bc(e.summary)}),w.setMetaProperty("ref-origin",d.uri),w.setMetaProperty("ref-referencing-element-id",sc(OS.identify(e))),null!==(a=this.options.dereference.dereferenceOpts)&&void 0!==a&&a.continueOnError&&w.setMetaProperty("ref-referencing-element",e),ba(y)&&ba(w)&&(e.hasKey("description")&&"description"in y&&(w.remove("description"),w.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in y&&(w.remove("summary"),w.set("summary",e.get("summary")))),i.replaceWith(w,AS),!r&&w}async PathItemElement(e,t,r,s,n,i){var o;if(!fa(e.$ref))return;if(this.indirections.includes(e))return!1;const[a,c]=this.toAncestorLineage([...n,r]),l=this.toBaseURI(bc(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(bc(e.$ref))}catch(t){return this.handleDereferenceError(t,e,c)}const d=di(l,bc(e.$ref));this.indirections.push(e);const m=Vc(d);let f;try{f=Pl(h.value.result,m)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if(f.id=OS.identify(f),Pa(f)){const e=`path-item-${bc(OS.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=hv.refract(f),this.refractCache.set(e,f))}if(e===f){const t=new rs("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 yS(`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(f)){if(h.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new rs("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if("replace"===this.options.dereference.circular){var y,g;const t=new Xo.sI(f.id,{type:"path-item",uri:h.uri,$ref:bc(e.$ref)}),s=(null!==(y=null===(g=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===g?void 0:g.circularReplacer)&&void 0!==y?y:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,AS),!r&&s}}const v=pi(h.refSet.rootRef.uri)!==h.uri,b=["error","replace"].includes(this.options.dereference.circular);if((p||v||Bx(f)&&fa(f.$ref)||b||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!a.includesCycle(f)){c.add(e);const t=new PS({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{f=await jS(f,t,{keyMap:tE,nodeTypeGetter:eE})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}c.delete(e)}if(this.indirections.pop(),Bx(f)){var x;const t=new hv([...f.content],sc(f.meta),sc(f.attributes));t.setMetaProperty("id",OS.generateId()),e.forEach(((e,r,s)=>{t.remove(bc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:bc(e.$ref)}),t.setMetaProperty("ref-origin",h.uri),t.setMetaProperty("ref-referencing-element-id",sc(OS.identify(e))),null!==(x=this.options.dereference.dereferenceOpts)&&void 0!==x&&x.continueOnError&&t.setMetaProperty("ref-referencing-element",e),f=t}return i.replaceWith(f,AS),r?void 0:f}async LinkElement(e,t,r,s,n,i){if(!fa(e.operationRef)&&!fa(e.operationId))return;if(fa(e.operationRef)&&fa(e.operationId)){const t=new rs("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(t,e)}let o;if(fa(e.operationRef)){var a;const t=Vc(bc(e.operationRef)),s=this.toBaseURI(bc(e.operationRef)),n=pi(this.reference.uri)===s,c=!n;if(!this.options.resolve.internal&&n)return;if(!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(bc(e.operationRef)),o=Pl(l.value.result,t)}catch(t){return this.handleDereferenceError(t,e)}if(Pa(o)){const e=`operation-${bc(OS.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=uv.refract(o),this.refractCache.set(e,o))}o=oc(o),o.setMetaProperty("ref-origin",l.uri);const u=oc(e);return null===(a=u.operationRef)||void 0===a||a.meta.set("operation",o),i.replaceWith(u,AS),r?void 0:u}if(fa(e.operationId)){var c;const t=bc(e.operationId);let s;try{s=await this.toReference(fi(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=rS((e=>Nx(e)&&ma(e.operationId)&&e.operationId.equals(t)),s.value.result),Dn(o)){const r=new rs(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(r,e)}const n=oc(e);return null===(c=n.operationId)||void 0===c||c.meta.set("operation",o),i.replaceWith(n,AS),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!fa(e.externalValue))return;if(e.hasKey("value")&&fa(e.externalValue)){const t=new rs("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(t,e)}const o=this.toBaseURI(bc(e.externalValue)),a=pi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(bc(e.externalValue))}catch(t){return this.handleDereferenceError(t,e)}const u=oc(l.value.result);u.setMetaProperty("ref-origin",l.uri);const p=oc(e);return p.value=u,i.replaceWith(p,AS),r?void 0:p}async MemberElement(e,t,r,s,n,i){var o;const a=n[n.length-1];if(!ba(a)||!a.classes.contains("discriminator-mapping"))return;if(null===(o=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===o||!o.dereferenceDiscriminatorMapping)return!1;if(!fa(e.key)||!fa(e.value))return!1;if(this.indirections.includes(e))return!1;this.indirections.push(e);const[c,l]=this.toAncestorLineage([...n,r]),u=[...l].findLast(Wx),p=sc(u.getMetaProperty("ancestorsSchemaIdentifiers")),h=bc(e.value),d=/^[a-zA-Z0-9\\.\\-_]+$/.test(h)?`#/components/schemas/${h}`:h,m=new Jb({$ref:d});m.setMetaProperty("ancestorsSchemaIdentifiers",p),l.add(m);const f=new PS({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(m),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});let y;try{y=await jS(m,f,{keyMap:tE,nodeTypeGetter:eE})}catch(e){return this.handleDereferenceError(e,m,l)}l.delete(m),this.indirections.pop();const g=oc(e);return g.value.setMetaProperty("ref-schema",y),i.replaceWith(g,AS),r?void 0:g}async SchemaElement(e,t,r,s,n,i){var o;if(!fa(e.$ref))return;if(this.indirections.includes(e))return!1;const[a,c]=this.toAncestorLineage([...n,r]);let l;try{l=await this.toReference(fi(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e,c)}let{uri:u}=l;const p=hS(u,e),h=pi(p),d=new jE({uri:h}),m=XE((e=>e.canRead(d)),this.options.resolve.resolvers),f=!m;let y,g=pi(this.reference.uri)===p,v=!g;this.indirections.push(e);try{if(m||f){u=this.toBaseURI(p);const e=p,t=mS(l.value.result);if(y=fS(e,t),y=mS(y),y.id=OS.identify(y),!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&v)return}else{if(u=this.toBaseURI(p),g=pi(this.reference.uri)===u,v=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&v)return;l=await this.toReference(fi(p));const e=Vc(p),t=mS(l.value.result);y=Pl(t,e),y=mS(y),y.id=OS.identify(y)}}catch(t){if(!(f&&t instanceof pS))return this.indirections.pop(),this.handleDereferenceError(t,e,c);if(oS(aS(p))){if(g=pi(this.reference.uri)===u,v=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&v)return;try{l=await this.toReference(fi(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}const t=aS(p),r=mS(l.value.result);try{y=cS(t,r)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}y=mS(y),y.id=OS.identify(y)}else{if(u=this.toBaseURI(p),g=pi(this.reference.uri)===u,v=!g,!this.options.resolve.internal&&g)return;if(!this.options.resolve.external&&v)return;try{l=await this.toReference(fi(p))}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}const t=Vc(p),r=mS(l.value.result);try{y=Pl(r,t)}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}y=mS(y),y.id=OS.identify(y)}}if(e===y){const t=new rs("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 yS(`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(y)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular){const t=new rs("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(t,e,c)}if("replace"===this.options.dereference.circular){var b,x;const t=new Xo.sI(y.id,{type:"json-schema",uri:l.uri,$ref:bc(e.$ref)}),s=(null!==(b=null===(x=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===x?void 0:x.circularReplacer)&&void 0!==b?b:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,AS),!r&&s}}const w=pi(l.refSet.rootRef.uri)!==l.uri,E=["error","replace"].includes(this.options.dereference.circular);if((v||w||Wx(y)&&fa(y.$ref)||E||null!==(o=this.options.dereference.dereferenceOpts)&&void 0!==o&&o.continueOnError)&&!a.includesCycle(y)){c.add(e);const t=new PS({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:a,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{y=await jS(y,t,{keyMap:tE,nodeTypeGetter:eE})}catch(t){return this.indirections.pop(),this.handleDereferenceError(t,e,c)}c.delete(e)}if(this.indirections.pop(),Kx(y)){const t=sc(y);return t.setMetaProperty("id",OS.generateId()),t.setMetaProperty("ref-fields",{$ref:bc(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",sc(OS.identify(e))),i.replaceWith(t,AS),!r&&t}if(Wx(y)){var S,j;const t=new Jb([...y.content],sc(y.meta),sc(y.attributes));if(t.setMetaProperty("id",OS.generateId()),e.forEach(((e,r,s)=>{t.remove(bc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:bc(e.$ref),$refBaseURI:p}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",sc(OS.identify(e))),null!==(S=this.options.dereference.dereferenceOpts)&&void 0!==S&&S.continueOnError&&t.setMetaProperty("ref-referencing-element",e),null!==(j=this.options.dereference.strategyOpts["openapi-3-1"])&&void 0!==j&&j.dereferenceDiscriminatorMapping){var O;const e=n[n.length-1],r=[...c].findLast(Wx),s=null==r?void 0:r.getMetaProperty("schemaName"),i=bc(t.getMetaProperty("schemaName"));if(i&&s&&null!=e&&null!==(O=e.classes)&&void 0!==O&&O.contains("json-schema-allOf")){var A;const e=null!==(A=this.allOfDiscriminatorMapping.get(i))&&void 0!==A?A:[];e.push(r),this.allOfDiscriminatorMapping.set(i,e)}}y=t}return i.replaceWith(y,AS),r?void 0:y}}const kS=PS,$S=hc[Symbol.for("nodejs.util.promisify.custom")];const TS=class extends YE{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?uE.includes(e.mediaType):Dx(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=_c(rE),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new hE,i=new hE;let o,a=n;n.has(e.uri)?o=n.find(KE(e.uri,"uri")):(o=new pE({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map((e=>new pE({...e,value:sc(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=new kS({reference:o,namespace:s,options:t}),l=await $S(a.rootRef.value,c,{keyMap:tE,nodeTypeGetter:eE});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new pE({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>n.add(e))),null===t.dereference.refSet&&n.clean(),i.clean(),l}},CS=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,s)=>{if(wa(r)){const t=String(bc(r.key));e.push(t)}else if(xa(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e}),[])};const FS=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&ba(e.properties)&&e.properties.forEach((t=>{if(ba(t))try{const e=this.modelPropertyMacro(bc(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...CS([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};var IS=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=un,e.prototype["@@transducer/step"]=function(e,t){return Ns(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function MS(e){return function(t){return new IS(e,t)}}const _S=cs(an([],MS,(function(e,t){for(var r,s=0,n=t.length,i=[];s<n;)Ns(e,r=t[s],i)||(i[i.length]=r),s+=1;return i})));const RS=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!xa(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...CS([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return void e.remove("allOf");if(!e.allOf.content.every(Wx)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...CS([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=_u.all([...t.content,e],{customMerge:e=>"enum"===bc(e)?(e,t)=>{if(Ta(["json-schema-enum"],e)&&Ta(["json-schema-enum"],t)){const r=(e,t)=>!(xa(e)||xa(t)||ba(e)||ba(t))&&e.equals(bc(t)),s=oc(e);return s.content=_S(r)([...e.content,...t.content]),s}return _u(e,t)}:_u});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}};const DS=class{parameterMacro;options;#s;OperationElement={enter:e=>{this.#s=e},leave:()=>{this.#s=void 0}};ParameterElement={leave:(e,t,r,s,n)=>{const i=this.#s?bc(this.#s):null,o=bc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=CS([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},NS=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const LS=class extends ss{},{wrapError:BS}=ro,qS=hc[Symbol.for("nodejs.util.promisify.custom")],US=new eS,JS=(e,t,r,s)=>{wa(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class VS extends kS{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...s}){super(s),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,s,n,i){try{if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(bc(e.$ref)),a=pi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return!1;if(!this.options.resolve.external&&c)return!1;const l=await this.toReference(bc(e.$ref)),u=di(o,bc(e.$ref));this.indirections.push(e);const p=Vc(u);let h=Pl(l.value.result,p);if(h.id=US.identify(h),Pa(h)){const t=bc(e.meta.get("referenced-element")),r=`${t}-${bc(US.identify(h))}`;if(this.refractCache.has(r))h=this.refractCache.get(r);else if(Nh(h))h=fv.refract(h),h.setMetaProperty("referenced-element",t),this.refractCache.set(r,h);else{h=this.namespace.getElementClass(t).refract(h),this.refractCache.set(r,h)}}if(e===h)throw new rs("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new yS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Xo.sI(h.id,{type:"reference",uri:l.uri,$ref:bc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,JS),!r&&s}}const d=pi(l.refSet.rootRef.uri)!==l.uri,m=["error","replace"].includes(this.options.dereference.circular);if((c||d||Jx(h)||m)&&!t.includesCycle(h)){s.add(e);const i=new VS({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...CS([...n,r,e]),"$ref"]});h=await qS(h,i,{keyMap:tE,nodeTypeGetter:eE}),s.delete(e)}this.indirections.pop();const f=oc(h);if(f.setMetaProperty("ref-fields",{$ref:bc(e.$ref),description:bc(e.description),summary:bc(e.summary)}),f.setMetaProperty("ref-origin",l.uri),f.setMetaProperty("ref-referencing-element-id",sc(US.identify(e))),ba(h)&&(e.hasKey("description")&&"description"in h&&(f.remove("description"),f.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in h&&(f.remove("summary"),f.set("summary",e.get("summary")))),this.allowMetaPatches&&ba(f)&&!f.hasKey("$$ref")){const e=di(o,u);f.set("$$ref",e)}return i.replaceWith(f,JS),!r&&f}catch(t){const s=NS(t),i=BS(s,{baseDoc:this.reference.uri,$ref:bc(e.$ref),pointer:Vc(bc(e.$ref)),fullPath:this.basePath??[...CS([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,s,n,i){try{if(!fa(e.$ref))return;if(this.indirections.includes(e))return!1;if(Ta(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(bc(e.$ref)),a=pi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(bc(e.$ref)),u=di(o,bc(e.$ref));this.indirections.push(e);const p=Vc(u);let h=Pl(l.value.result,p);if(h.id=US.identify(h),Pa(h)){const e=`path-item-${bc(US.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=hv.refract(h),this.refractCache.set(e,h))}if(e===h)throw new rs("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new yS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Xo.sI(h.id,{type:"path-item",uri:l.uri,$ref:bc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,JS),!r&&s}}const d=pi(l.refSet.rootRef.uri)!==l.uri,m=["error","replace"].includes(this.options.dereference.circular);if((c||d||Bx(h)&&fa(h.$ref)||m)&&!t.includesCycle(h)){s.add(e);const i=new VS({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...CS([...n,r,e]),"$ref"]});h=await qS(h,i,{keyMap:tE,nodeTypeGetter:eE}),s.delete(e)}if(this.indirections.pop(),Bx(h)){const t=new hv([...h.content],sc(h.meta),sc(h.attributes));if(e.forEach(((e,r,s)=>{t.remove(bc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:bc(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",sc(US.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=di(o,u);t.set("$$ref",e)}h=t}return i.replaceWith(h,JS),r?void 0:h}catch(t){const s=NS(t),i=BS(s,{baseDoc:this.reference.uri,$ref:bc(e.$ref),pointer:Vc(bc(e.$ref)),fullPath:this.basePath??[...CS([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,s,n,i){try{if(!fa(e.$ref))return;if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let o=await this.toReference(fi(this.reference.uri)),{uri:a}=o;const c=hS(a,e),l=pi(c),u=new jE({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p;let d,m=pi(this.reference.uri)===c,f=!m;this.indirections.push(e);try{if(p||h){a=this.toBaseURI(c);const e=c,t=mS(o.value.result);if(d=fS(e,t),d=mS(d),d.id=US.identify(d),!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return}else{if(a=this.toBaseURI(c),m=pi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(fi(c));const e=Vc(c),t=mS(o.value.result);d=Pl(t,e),d=mS(d),d.id=US.identify(d)}}catch(e){if(!(h&&e instanceof pS))throw e;if(oS(aS(c))){if(m=pi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(fi(c));const e=aS(c),t=mS(o.value.result);d=cS(e,t),d=mS(d),d.id=US.identify(d)}else{if(a=this.toBaseURI(bc(c)),m=pi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(fi(c));const e=Vc(c),t=mS(o.value.result);d=Pl(t,e),d=mS(d),d.id=US.identify(d)}}if(e===d)throw new rs("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new yS(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(d)){if(o.refSet.circular=!0,"error"===this.options.dereference.circular)throw new rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Xo.sI(d.id,{type:"json-schema",uri:o.uri,$ref:bc(e.$ref),baseURI:di(a,c),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,JS),!r&&s}}const y=pi(o.refSet.rootRef.uri)!==o.uri,g=["error","replace"].includes(this.options.dereference.circular);if((f||y||Wx(d)&&fa(d.$ref)||g)&&!t.includesCycle(d)){s.add(e);const i=new VS({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...CS([...n,r,e]),"$ref"]});d=await qS(d,i,{keyMap:tE,nodeTypeGetter:eE}),s.delete(e)}if(this.indirections.pop(),Kx(d)){const t=sc(d);return t.setMetaProperty("ref-fields",{$ref:bc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",sc(US.identify(e))),i.replaceWith(t,JS),!r&&t}if(Wx(d)){const t=new Jb([...d.content],sc(d.meta),sc(d.attributes));if(e.forEach(((e,r,s)=>{t.remove(bc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:bc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",sc(US.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=di(a,c);t.set("$$ref",e)}d=t}return i.replaceWith(d,JS),r?void 0:d}catch(t){const s=NS(t),i=new LS(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:bc(e.$ref),fullPath:this.basePath??[...CS([...n,r,e]),"$ref"],cause:s});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async LinkElement(){}async ExampleElement(e,t,r,s,n,i){try{return await super.ExampleElement(e,t,r,s,n,i)}catch(t){const s=NS(t),i=BS(s,{baseDoc:this.reference.uri,externalValue:bc(e.externalValue),fullPath:this.basePath??[...CS([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const HS=VS,zS=Na[Symbol.for("nodejs.util.promisify.custom")];const GS=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new HS({...n,options:s})),"function"==typeof t&&i.push(new FS({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new RS({options:s})),"function"==typeof e&&i.push(new DS({parameterMacro:e,options:s}));const o=zS(i,{nodeTypeGetter:eE});Object.assign(this,o)}},WS=hc[Symbol.for("nodejs.util.promisify.custom")];const KS=class extends TS{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:s="non-strict",ancestors:n=[],...i}={}){super({...i}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=s,this.ancestors=[...n]}async dereference(e,t){const r=_c(rE),s=t.dereference.refSet??new hE,n=new hE;let i,o=s;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=new pE({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map((e=>new pE({...e,value:sc(e.value)}))).forEach((e=>n.add(e))),i=n.find((t=>t.uri===e.uri)),o=n);const a=new GS({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await WS(o.rootRef.value,a,{keyMap:tE,nodeTypeGetter:eE});return t.dereference.immutable&&n.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new pE({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),n.clean(),c}},YS=e=>{const t=bc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new Xo.Sh({$ref:t},sc(r.meta),sc(r.attributes))},XS=async e=>{const{spec:t,timeout:r,redirects:s,requestInterceptor:n,responseInterceptor:i,pathDiscriminator:o=[],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:m}=XS,y=d.find((e=>e.match(t))),g=ci(hi())?hi():f,v=rr(e),b=di(g,v);let x;m.has(t)?x=m.get(t):(x=lv.refract(t),x.classes.push("result"),m.set(t,x));const w=new aa([x]),E=gl(o),S=""===E?"":`#${E}`,j=Pl(x,E),O=new pE({uri:b,value:w}),A=new hE({refs:[O]});""!==E&&(A.rootRef=void 0);const P=[new Set([j])],k=[],$=await(async(e,t={})=>{const r=SE(fE,t);return TE(e,r)})(j,{resolve:{baseURI:`${b}${S}`,resolvers:[new JE({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new RE]},parse:{mediaType:uE.latest(),parsers:[new GE({allowEmpty:!1,sourceMap:!1}),new WE({allowEmpty:!1,sourceMap:!1}),new HE({allowEmpty:!1,sourceMap:!1}),new zE({allowEmpty:!1,sourceMap:!1}),new ME({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new KS({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:P})],refSet:A,dereferenceOpts:{errors:k},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?fE.dereference.circularReplacer:YS}}),T=((e,t,r)=>new Jc({element:r}).transclude(e,t))(j,$,x),C=l?T:y.normalize(T);return{spec:bc(C),errors:k}}catch(e){if(e instanceof xl)return{spec:t,errors:[]};throw e}};XS.cache=new WeakMap;const QS=XS;function ZS(e,t,r){if(r||(r=new ej),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var s,n=function(s){var n=r.get(e);if(n)return n;for(var i in r.set(e,s),e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=t?ZS(e[i],!0,r):e[i]);return s};switch(Ks(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return s=e,new RegExp(s.source,s.flags?s.flags:(s.global?"g":"")+(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.sticky?"y":"")+(s.unicode?"u":"")+(s.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 ej=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),s=this.map[r];s||(this.map[r]=s=[]),s.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],s=0;s<r.length;s+=1){if((i=r[s])[0]===e)return i[1]}else{var n=this.hash(e);if(r=this.map[n])for(s=0;s<r.length;s+=1){var i;if((i=r[s])[0]===e)return i[1]}}},e}(),tj=function(){function e(e,t,r,s){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=s,this.inputs={}}return e.prototype["@@transducer/init"]=ln,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(Ls(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 rj(e,t,r){return function(s){return new tj(e,t,r,s)}}const sj=cs(Ss("groupBy",Is(4,[],an([],rj,(function(e,t,r,s){var n=ws((function(s,n){var i=r(n),o=e(Ls(i,s)?s[i]:ZS(t,!1),n);return o&&o["@@transducer/reduced"]?Qo(s):(s[i]=o,s)}));return bs(n,{},s)})))((function(e,t){return e.push(t),e}),[])));const nj=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);ba(e)||(e=new Xo.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);xa(t)||(t=new Xo.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)}},ij=e=>e.replace(/\s/g,""),oj=e=>e.replace(/\W/gi,"_"),aj=(e,t,r)=>{const s=ij(e);return s.length>0?oj(s):((e,t)=>`${oj(ij(t.toLowerCase()))}${oj(ij(e))}`)(t,r)},cj=({storageField:e="x-normalized",operationIdNormalizer:t=aj}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],a=[],c=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){l=new nj(t,e,"operation-ids")},leave(){const e=sj((e=>bc(e.operationId)),a);Object.entries(e).forEach((([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach(((t,r)=>{const s=`${e}${r+1}`;t.operationId=new i.elements.String(s)})))})),c.forEach((e=>{if(void 0===e.operationId)return;const t=String(bc(e.operationId)),r=a.find((e=>bc(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=sc.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=Ps("path",bc(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,s,c,u){if(void 0===e.operationId)return;const p=n([...u,s,e]);if(l.includes(p))return;const h=String(bc(e.operationId)),d=Fs(o),m=Ps("method",bc(e.meta.get("http-method"))),f=t(h,d,m);h!==f&&(e.operationId=new i.elements.String(f),e.set("__originalOperationId",h),e.meta.set("originalOperationId",h),a.push(e),l.append(p))}},LinkElement:{leave(e){s.isLinkElement(e)&&void 0!==e.operationId&&c.push(e)}}}}},lj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t,n=(e,t)=>!!r.isParameterElement(e)&&(!!r.isParameterElement(t)&&(!!r.isStringElement(e.name)&&(!!r.isStringElement(e.in)&&(!!r.isStringElement(t.name)&&(!!r.isStringElement(t.in)&&(bc(e.name)===bc(t.name)&&bc(e.in)===bc(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new nj(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,s,n,o){if(o.some(r.isComponentsElement))return;const{parameters:a}=e;r.isArrayElement(a)?i.push([...a.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,a,c){const l=Fs(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...c,r,e]);if(o.includes(u))return;const p=tS([],["parameters","content"],e),h=_S(n,[...p,...l]);e.parameters=new Qy(h),o.append(u)}}}}},uj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new nj(t,e,"security-requirements"),r.isArrayElement(t.security)&&(n=t.security)},leave(){i=void 0,n=void 0}},OperationElement:{leave(e,t,o,a,c){if(c.some(r.isComponentsElement))return;const l=s([...c,o,e]);if(i.includes(l))return;var u;void 0===e.security&&void 0!==n&&(e.security=new cg(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},pj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new nj(t,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e,t,i,o,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=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>sc.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[sc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",sc(e.example)),n.append(u)))}}}}}},hj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new nj(t,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e,t,i,o,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=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>sc.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[sc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",sc(e.example)),n.append(u)))}}}}}},dj=e=>{if(!ba(e))return e;const t=[cj({operationIdNormalizer:(e,t,r)=>Lo({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),lj(),uj(),pj(),hj()];return Lc(e,t,{toolboxCreator:nE,visitorOptions:{keyMap:tE,nodeTypeGetter:eE}})},mj={name:"openapi-3-1-apidom",match:e=>Vo(e),normalize(e){if(!ma(e)&&Do(e)&&!e.$$normalized){const r=(t=dj,e=>{const r=lv.refract(e);r.classes.push("result");const s=t(r),n=bc(s);return QS.cache.set(n,s),bc(s)})(e);return r.$$normalized=!0,r}var t;return ma(e)?dj(e):e},resolve:async e=>QS(e)};function fj(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:s}=e;for(const n in s)for(const i in s[n]){if("PARAMETERS"===i.toUpperCase())continue;const o=s[n][i];if(!o||"object"!=typeof o)continue;const a={spec:e,pathName:n,method:i.toUpperCase(),operation:o},c=t(a);if(r&&c)return a}}const yj=()=>null,gj={mapTagOperations:function({spec:e,cb:t=yj,defaultTag:r="default",v2OperationIdCompatibilityMode:s}){const n={},i={};return fj(e,(({pathName:o,method:a,operation:c})=>{var l;(c.tags?(l=c.tags,Array.isArray(l)?l:[l]):[r]).forEach((r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const l=i[r],u=Lo(c,o,a,{v2OperationIdCompatibilityMode:s}),p=t({spec:e,pathName:o,method:a,operation:c,operationId:u});if(n[u])n[u]+=1,l[`${u}${n[u]}`]=p;else if(void 0!==l[u]){const e=n[u]||1;n[u]=e+1,l[`${u}${n[u]}`]=p;const t=l[u];delete l[u],l[`${u}${e}`]=t}else l[u]=p}))})),i},makeExecute:function(e={}){return({pathName:t,method:r,operationId:s})=>(n,i={})=>{const{requestInterceptor:o,responseInterceptor:a,userFetch:c}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:c,pathName:t,method:r,parameters:n,operationId:s,...i})}}};const vj=(e,t,r,s,n)=>{if(e===Yc.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-url-template",Kc.charsToString(t,r,s)])}return Yc.SEM_OK},bj=(e,t,r,s,n)=>{if(e===Yc.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable",Kc.charsToString(t,r,s)])}return Yc.SEM_OK},xj=(e,t,r,s,n)=>{if(e===Yc.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable-name",Kc.charsToString(t,r,s)])}return Yc.SEM_OK},wj=(e,t,r,s,n)=>{if(e===Yc.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["literals",Kc.charsToString(t,r,s)])}return Yc.SEM_OK},Ej=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'}},Sj=e=>{const t=new Hc;t.ast=new zc,t.ast.callbacks["server-url-template"]=vj,t.ast.callbacks["server-variable"]=bj,t.ast.callbacks["server-variable-name"]=xj,t.ast.callbacks.literals=wj;return{result:t.parse(Ej,"server-url-template",e),ast:t.ast}},jj=(e,{strict:t=!1}={})=>{try{const r=Sj(e);if(!r.result.success)return!1;const s=[];r.ast.translate(s);const n=s.some((([e])=>"server-variable"===e));if(!t&&!n)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||n}catch{return!1}},Oj=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),Aj=["literals","server-variable-name"],Pj=(e,t,r={})=>{const s={...{encoder:Oj},...r},n=Sj(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>Aj.includes(e))).map((([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")};function kj(){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 $j=(e,t,r,s,n)=>(e===Yc.SEM_PRE?n.push(["slash",Kc.charsToString(t,r,s)]):Yc.SEM_POST,Yc.SEM_OK),Tj=(e,t,r,s,n)=>{if(e===Yc.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["path-template",Kc.charsToString(t,r,s)])}return Yc.SEM_OK},Cj=(e,t,r,s,n)=>(e===Yc.SEM_PRE?n.push(["path-literal",Kc.charsToString(t,r,s)]):Yc.SEM_POST,Yc.SEM_OK),Fj=(e,t,r,s,n)=>(e===Yc.SEM_PRE?n.push(["template-expression",Kc.charsToString(t,r,s)]):Yc.SEM_POST,Yc.SEM_OK),Ij=(e,t,r,s,n)=>(e===Yc.SEM_PRE?n.push(["template-expression-param-name",Kc.charsToString(t,r,s)]):Yc.SEM_POST,Yc.SEM_OK),Mj=new kj,_j=e=>{const t=new Hc;t.ast=new zc,t.ast.callbacks["path-template"]=Tj,t.ast.callbacks.slash=$j,t.ast.callbacks["path-literal"]=Cj,t.ast.callbacks["template-expression"]=Fj,t.ast.callbacks["template-expression-param-name"]=Ij;return{result:t.parse(Mj,"path-template",e),ast:t.ast}};const Rj=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),Dj=["slash","path-literal","template-expression-param-name"],Nj=(e,t,r={})=>{const s={...{encoder:Rj},...r},n=_j(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>Dj.includes(e))).map((([e,r])=>"template-expression-param-name"===e?Object.prototype.hasOwnProperty.call(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")};new kj,new Hc;const Lj={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}){e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(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:s}){if(void 0!==t){const n=e.url.replace(s,""),i=Nj(n,{[r.name]:t});e.url=s+i}},formData:function({req:e,value:t,parameter:r}){!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(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 Bj(e,t){return t.includes("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 qj(){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 qj;const Uj=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)},Jj=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),Vj=e=>Jj(e)?e.slice(1,-1):e,Hj=e=>`"${e}"`,zj=e=>e,Gj=new Hc,Wj=new qj,Kj=(e,{strict:t=!0,quoted:r=null}={})=>{try{const s=t?"cookie-value":"lenient-cookie-value",n=Gj.parse(Wj,s,e);return"boolean"==typeof r?n.success&&r===Jj(e):n.success}catch{return!1}},Yj=e=>{const t=(new TextEncoder).encode(e).reduce(((e,t)=>e+String.fromCharCode(t)),"");return btoa(t)},Xj=(e,t=Yj)=>{const r=String(e);if(Kj(r))return r;const s=Jj(r),n=t(s?Vj(r):r);return s?Hj(n):n},Qj=e=>Yj(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),Zj=e=>Xj(e,Qj),eO=new Hc,tO=new qj,rO=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return eO.parse(tO,r,e).success}catch{return!1}},sO=e=>{if(!rO(e))throw new TypeError(`Invalid cookie name: ${e}`)},nO=e=>{if(!Kj(e))throw new TypeError(`Invalid cookie value: ${e}`)},iO={encoders:{name:zj,value:Zj},validators:{name:sO,value:nO}},oO=(e,t,r={})=>{const s={...iO,...r,encoders:{...iO.encoders,...r.encoders},validators:{...iO.validators,...r.validators}},n=s.encoders.name(e),i=s.encoders.value(t);return s.validators.name(n),s.validators.value(i),`${n}=${i}`},aO=(e,t={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map((([e,r])=>oO(e,r,t))).join("; ");const cO=new Hc,lO=new qj,uO=e=>{const t=String(e);if(Kj(t))return t;const r=Jj(t),s=r?Vj(t):t;let n="";for(const e of s)n+=cO.parse(lO,"cookie-octet",e).success?e:Uj(e);return r?Hj(n):n};new Hc,new qj;const pO=e=>{if(!rO(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)};const hO=e=>uO(e).replace(/[=&]/gu,(e=>"="===e?"%3D":"%26")),dO=(e,t={})=>aO(e,Ec({encoders:{name:zj,value:hO},validators:{name:pO,value:nO}},t));function mO({req:e,value:t,parameter:r,baseURL:s}){const{name:n,style:i,explode:o,content:a}=r;if(void 0===t)return;const c=e.url.replace(s,"");let l;if(a){const e=Object.keys(a)[0];l=Nj(c,{[n]:t},{encoder:t=>T(Bj(t,e))})}else l=Nj(c,{[n]:t},{encoder:e=>C({key:r.name,value:e,style:i||"simple",explode:o??!1,escape:"reserved"})});e.url=s+l}function fO({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const s=Bj(t,Object.keys(r.content)[0]);if(s)e.query[r.name]=s;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:s,explode:n,allowReserved:i}=r;e.query[r.name]={value:t,serializationOption:{style:s,explode:n,allowReserved:i}}}else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}const yO=["accept","authorization","content-type"];function gO({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(yO.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];e.headers[t.name]=Bj(r,s)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=C({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}function vO({req:e,parameter:t,value:r}){const{name:s}=t;if(e.headers=e.headers||{},void 0!==r&&t.content){const n=Bj(r,Object.keys(t.content)[0]);e.headers.Cookie=dO({[s]:n})}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const n=C({key:t.name,value:r,escape:!1,style:t.style||"form",explode:t.explode??!1}),i=Array.isArray(r)&&t.explode?`${s}=${n}`:n;e.headers.Cookie=dO({[s]:i})}}const bO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:xO}=bO,wO=xO;function EO(e,t){const{operation:r,requestBody:s,securities:n,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={}}=t,o=r.security||s.security||[],a=i&&!!Object.keys(i).length,c=s?.components?.securitySchemes||{};if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!a||!o||Array.isArray(r.security)&&!r.security.length)return e;return o.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e],r=c[e];if(!t)return;const s=t.value||t,{type:o}=r;if(t)if("apiKey"===o)"query"===r.in&&(n.query[r.name]=s),"header"===r.in&&(n.headers[r.name]=s),"cookie"===r.in&&(n.cookies[r.name]=s);else if("http"===o){if(/^basic$/i.test(r.scheme)){const e=s.username||"",t=s.password||"",r=wO(`${e}:${t}`);n.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(n.headers.Authorization=`Bearer ${s}`)}else if("oauth2"===o||"openIdConnect"===o){const e=t.token||{},s=e[r["x-tokenName"]||"access_token"];let i=e.token_type;i&&"bearer"!==i.toLowerCase()||(i="Bearer"),n.headers.Authorization=`${i} ${s}`}}))})),n}({request:t,securities:n,operation:r,spec:i});const c=r.requestBody||{},l=Object.keys(c.content||{}),u=a&&l.indexOf(a)>-1;if(s||o){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&&Do(t.content)})).reduce(((e,[,t])=>e.concat(Object.keys(t.content))),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(s)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof s){const e=c.content[a]?.encoding??{};t.form={},Object.keys(s).forEach((r=>{let n;try{n=JSON.parse(s[r])}catch{n=s[r]}t.form[r]={value:n,encoding:e[r]||{}}}))}else if("string"==typeof s){const e=c.content[a]?.encoding??{};try{t.form={};const r=JSON.parse(s);Object.entries(r).forEach((([r,s])=>{t.form[r]={value:s,encoding:e[r]||{}}}))}catch{t.form=s}}else t.form=s;else t.body=s}else t.body=s;return t}function SO(e,t){const{spec:r,operation:s,securities:n,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={},specSecurity:o=[]}=t,a=r.security||o,c=i&&!!Object.keys(i).length,l=s.securityDefinitions;if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!c||!a||Array.isArray(r.security)&&!r.security.length)return e;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e];if(!t)return;const{token:r}=t,s=t.value||t,o=l[e],{type:a}=o,c=o["x-tokenName"]||"access_token",u=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===o.in?"query":"headers";n[e]=n[e]||{},n[e][o.name]=s}else if("basic"===a)if(s.header)n.headers.authorization=s.header;else{const e=s.username||"",t=s.password||"";s.base64=wO(`${e}:${t}`),n.headers.authorization=`Basic ${s.base64}`}else"oauth2"===a&&u&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",n.headers.authorization=`${p} ${u}`)}))})),n}({request:t,securities:n,operation:s,spec:r}),t.body||t.form||a)i?t.headers["Content-Type"]=i:Array.isArray(s.consumes)?[t.headers["Content-Type"]]=s.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:s.parameters&&s.parameters.filter((e=>"file"===e.type)).length?t.headers["Content-Type"]="multipart/form-data":s.parameters&&s.parameters.filter((e=>"formData"===e.in)).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=s.parameters&&s.parameters.filter((e=>"body"===e.in)).length>0,r=s.parameters&&s.parameters.filter((e=>"formData"===e.in)).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(s.produces)&&s.produces.length>0&&(t.headers.accept=s.produces.join(", ")),t}function jO(e,t){return`${t.toLowerCase()}-${e}`}function OO(e,t){return e&&e.paths?function(e,t){return fj(e,t,!0)||null}(e,(({pathName:e,method:r,operation:s})=>{if(!s||"object"!=typeof s)return!1;const n=s.operationId;return[Lo(s,e,r),jO(e,r),n].some((e=>e&&e===t))})):null}const AO=e=>Array.isArray(e)?e:[],PO=(e,{recurse:t=!0,depth:r=1}={})=>{if(Do(e)){if("object"===e.type||"array"===e.type||Array.isArray(e.type)&&(e.type.includes("object")||e.type.includes("array")))return e;if(!(r>g)&&t){const s=Array.isArray(e.oneOf)?e.oneOf.find((e=>PO(e,{recurse:t,depth:r+1}))):void 0;if(s)return s;const n=Array.isArray(e.anyOf)?e.anyOf.find((e=>PO(e,{recurse:t,depth:r+1}))):void 0;if(n)return n}}},kO=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if(Do(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},$O=e=>{try{return new URL(e)}catch{const t=new URL(e,f),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 TO extends ss{}const CO={buildRequest:FO};function FO(e){const{spec:t,operationId:r,responseContentType:s,scheme:n,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:l,serverVariables:u,http:p,signal:h,serverVariableEncoder:m}=e;let{parameters:f,parameterBuilders:y,baseURL:g}=e;const v=Ho(t);y||(y=v?d:Lj);let b={url:"",credentials:p&&p.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(b.signal=h),i&&(b.requestInterceptor=i),o&&(b.responseInterceptor=o),c&&(b.userFetch=c);const x=OO(t,r);if(!x)throw new TO(`Operation ${r} not found`);const{operation:w={},method:E,pathName:S}=x;if(g=g??MO({spec:t,scheme:n,contextUrl:a,server:l,serverVariables:u,pathName:S,method:E,serverVariableEncoder:m}),b.url+=g,!r)return delete b.cookies,b;b.url+=S,b.method=`${E}`.toUpperCase(),f=f||{};const j=t.paths[S]||{};s&&(b.headers.accept=s);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((s=>{r.push(t[e][s])}))})),r})([].concat(AO(w.parameters)).concat(AO(j.parameters)));O.forEach((e=>{const r=y[e.in];let s;if("body"===e.in&&e.schema&&e.schema.properties&&(s=f),s=e&&e.name&&f[e.name],void 0===s?s=e&&e.name&&f[`${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!==s){if(void 0!==e.default&&void 0===s&&(s=e.default),void 0===s&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);v&&"string"==typeof s&&(Wa("type",e.schema)&&"string"==typeof e.schema.type&&PO(e.schema,{recurse:!1})?s=kO({value:s,silentFail:!1}):(Wa("type",e.schema)&&Array.isArray(e.schema.type)&&PO(e.schema,{recurse:!1})||!Wa("type",e.schema)&&PO(e.schema,{recurse:!0}))&&(s=kO({value:s,silentFail:!0}))),r&&r({req:b,parameter:e,value:s,operation:w,spec:t,baseURL:g})}}));const A={...e,operation:w};if(b=v?EO(A,b):SO(A,b),b.cookies&&Object.keys(b.cookies).length>0){const e=dO(b.cookies);cp(b.headers.Cookie)?b.headers.Cookie+=`; ${e}`:b.headers.Cookie=e}return b.cookies&&delete b.cookies,N(b)}const IO=e=>e?e.replace(/\W/g,""):null;function MO(e){return Ho(e.spec)?function({spec:e,pathName:t,method:r,server:s,contextUrl:n,serverVariables:i={},serverVariableEncoder:o}){let a,c=[],l="";const u=e?.paths?.[t]?.[(r||"").toLowerCase()]?.servers,p=e?.paths?.[t]?.servers,h=e?.servers;c=_O(u)?u:_O(p)?p:_O(h)?h:[y],s&&(a=c.find((e=>e.url===s)),a&&(l=s));l||([a]=c,l=a.url);if(jj(l,{strict:!0})){const e=Object.entries({...a.variables}).reduce(((e,[t,r])=>(e[t]=r.default,e)),{});l=Pj(l,{...e,...i},{encoder:"function"==typeof o?o:mE})}return function(e="",t=""){const r=$O(e&&t?di(t,e):e),s=$O(t),n=IO(r.protocol)||IO(s.protocol),i=r.host||s.host,o=r.pathname;let a;a=n&&i?`${n}://${i+o}`:o;return"/"===a[a.length-1]?a.slice(0,-1):a}(l,n)}(e):function({spec:e,scheme:t,contextUrl:r=""}){const s=$O(r),n=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||n||IO(s.protocol)||"http",o=e.host||s.host||"",a=e.basePath||"";let c;c=i&&o?`${i}://${o+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(e)}const _O=e=>Array.isArray(e)&&e.length>0;const{q$:RO}=n,DO=RO;function NO(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof NO))return new NO(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,NO.makeApisTagOperation(this)),this)));return r.client=this,r}NO.http=er,NO.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),s=>("string"==typeof s&&(s={url:s}),s=N(s),s=t(s),r(e(s)))}.bind(null,NO.http),NO.resolveStrategies={"openapi-3-1-apidom":mj,"openapi-3-0":Go,"openapi-2-0":zo,generic:qo},NO.resolve=Wo({strategies:[NO.resolveStrategies["openapi-3-1-apidom"],NO.resolveStrategies["openapi-3-0"],NO.resolveStrategies["openapi-2-0"],NO.resolveStrategies.generic]}),NO.resolveSubtree=Yo({strategies:[NO.resolveStrategies["openapi-3-1-apidom"],NO.resolveStrategies["openapi-3-0"],NO.resolveStrategies["openapi-2-0"],NO.resolveStrategies.generic]}),NO.execute=function({http:e,fetch:t,spec:r,operationId:s,pathName:n,method:i,parameters:o,securities:a,...c}){const l=e||t||er;n&&i&&!s&&(s=jO(n,i));const u=CO.buildRequest({spec:r,operationId:s,parameters:o,securities:a,http:l,...c});return u.body&&(Do(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},NO.serializeRes=Zt,NO.serializeHeaders=Qt,NO.clearCache=function(){So.refs.clearCache()},NO.makeApisTagOperation=function(e={}){const t=gj.makeExecute(e);return{apis:gj.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},NO.buildRequest=FO,NO.helpers={opId:Lo},NO.getBaseUrl=MO,NO.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:JE}},parse:{parsers:{JsonParser:HE,YamlParser:zE,OpenApiJson3_1Parser:GE,OpenApiYaml3_1Parser:WE}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:KS}}},NO.prototype={http:er,execute(e){return this.applyDefaults(),NO.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(e={}){return NO.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,pathDiscriminator:this.pathDiscriminator||[],skipNormalization:this.skipNormalization||!1,...e}).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},NO.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(Uo(e)&&DO(t)){const r=new URL(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}else if(Ho(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[y])}};const{helpers:LO}=NO,BO=NO})(),s=s.default})()));
3
3
  //# sourceMappingURL=swagger-client.browser.min.js.map